-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from beabee-communityrm/fix/1124-callout-filte…
…r-cron fix: callout filter in segment cronjob
- Loading branch information
Showing
11 changed files
with
109 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
import { RoleType } from "@beabee/beabee-common"; | ||
import type { ApiKey, Contact } from "@beabee/core/models"; | ||
import type { Contact } from "@beabee/core/models"; | ||
|
||
export interface AuthInfo { | ||
method: "user" | "api-key"; | ||
entity: Contact | ApiKey; | ||
interface AuthInfoContact { | ||
method: "user"; | ||
contact: Contact; | ||
roles: RoleType[]; | ||
} | ||
|
||
interface AuthInfoApiKey { | ||
method: "api-key"; | ||
contact?: Contact; | ||
roles: RoleType[]; | ||
} | ||
|
||
interface AuthInfoInternal { | ||
method: "internal"; | ||
contact?: undefined; | ||
roles: RoleType[]; | ||
} | ||
|
||
export type AuthInfo = AuthInfoContact | AuthInfoApiKey | AuthInfoInternal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { PaginatedQuery } from "@beabee/beabee-common"; | ||
import { ObjectLiteral } from "typeorm"; | ||
|
||
export interface FetchRawResult< | ||
Model extends ObjectLiteral, | ||
Query extends PaginatedQuery | ||
> { | ||
items: Model[]; | ||
total: number; | ||
query: Query; | ||
offset: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters