@coast/core-api-types 1.5.51 → 1.5.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/auth/ChannelMembership.d.ts +6 -11
- package/dist/models/auth/GroupChannelMembership.d.ts +9 -0
- package/dist/models/auth/GroupChannelMembership.js +3 -0
- package/dist/models/auth/GroupChannelMembership.js.map +1 -0
- package/dist/models/auth/GroupChannelMembershipEntity.d.ts +6 -0
- package/dist/models/auth/GroupChannelMembershipEntity.js +3 -0
- package/dist/models/auth/GroupChannelMembershipEntity.js.map +1 -0
- package/dist/models/auth/ListGroupChannelMemberships.d.ts +4 -0
- package/dist/models/auth/ListGroupChannelMemberships.js +3 -0
- package/dist/models/auth/ListGroupChannelMemberships.js.map +1 -0
- package/dist/models/auth/ListGroupChannelMembershipsResult.d.ts +5 -0
- package/dist/models/auth/ListGroupChannelMembershipsResult.js +3 -0
- package/dist/models/auth/ListGroupChannelMembershipsResult.js.map +1 -0
- package/dist/models/auth/UserChannelMembershipEntity.d.ts +11 -0
- package/dist/models/auth/UserChannelMembershipEntity.js +3 -0
- package/dist/models/auth/UserChannelMembershipEntity.js.map +1 -0
- package/dist/models/automations/action/audit/AnyAutomationActionAuditResult.d.ts +3 -1
- package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.d.ts +6 -0
- package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.js +3 -0
- package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.js.map +1 -0
- package/dist/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.d.ts +6 -0
- package/dist/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.js +3 -0
- package/dist/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.js.map +1 -0
- package/dist/models/user/User.d.ts +2 -2
- package/package.json +3 -4
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { AccessLevelType } from '@coast/core-types/auth/AccessLevelType';
|
|
2
2
|
import { ConfigAccessLevel } from '@coast/core-types/auth/ConfigAccessLevel';
|
|
3
3
|
import { PrincipalId } from '@coast/core-types/auth/PrincipalId';
|
|
4
|
-
import {
|
|
4
|
+
import { PrincipalType } from '@coast/core-types/auth/PrincipalType';
|
|
5
5
|
import { Audit } from '../application/Audit';
|
|
6
6
|
import { DataEntity } from '../application/DataEntity';
|
|
7
7
|
import { Channel } from '../channel/Channel';
|
|
8
|
-
import { User } from '../user/User';
|
|
9
8
|
import { AccessLevel } from './AccessLevel';
|
|
10
|
-
export interface ChannelMembership extends DataEntity, Audit {
|
|
9
|
+
export interface ChannelMembership<T extends PrincipalType = PrincipalType> extends DataEntity, Audit {
|
|
10
|
+
id: number;
|
|
11
|
+
channel: Channel;
|
|
12
|
+
principalId: PrincipalId;
|
|
13
|
+
principalType: T;
|
|
11
14
|
accessLevel: AccessLevel;
|
|
12
15
|
accessLevelType: AccessLevelType;
|
|
13
|
-
cardsViewedAt?: Date;
|
|
14
|
-
channel: Channel;
|
|
15
16
|
configAccessLevelType?: ConfigAccessLevel;
|
|
16
|
-
id: number;
|
|
17
|
-
notificationsPreference?: NotificationsPreference;
|
|
18
|
-
principalId: PrincipalId;
|
|
19
|
-
readCardCount: number;
|
|
20
|
-
snoozeUntil?: Date;
|
|
21
|
-
user: User;
|
|
22
17
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WorkspaceId } from '@coast/core-types/channel/WorkspaceId';
|
|
2
|
+
import { UserGroupId } from '@coast/core-types/user/group/UserGroupId';
|
|
3
|
+
import { AccessLevel } from './AccessLevel';
|
|
4
|
+
export interface GroupChannelMembership {
|
|
5
|
+
id: number;
|
|
6
|
+
channelId: WorkspaceId;
|
|
7
|
+
userGroupId: UserGroupId;
|
|
8
|
+
accessLevel: AccessLevel;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupChannelMembership.js","sourceRoot":"","sources":["../../../src/models/auth/GroupChannelMembership.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrincipalType } from '@coast/core-types/auth/PrincipalType';
|
|
2
|
+
import { UserGroup } from '../user/group/UserGroup';
|
|
3
|
+
import { ChannelMembership } from './ChannelMembership';
|
|
4
|
+
export interface GroupChannelMembershipEntity extends ChannelMembership<PrincipalType.GROUP> {
|
|
5
|
+
userGroup: UserGroup;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupChannelMembershipEntity.js","sourceRoot":"","sources":["../../../src/models/auth/GroupChannelMembershipEntity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListGroupChannelMemberships.js","sourceRoot":"","sources":["../../../src/models/auth/ListGroupChannelMemberships.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OffsetPaginatedResult } from '../pagination/OffsetPaginatedResult';
|
|
2
|
+
import { GroupChannelMembership } from './GroupChannelMembership';
|
|
3
|
+
export interface ListGroupChannelMembershipsResult extends OffsetPaginatedResult {
|
|
4
|
+
groupChannelMemberships: GroupChannelMembership[];
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListGroupChannelMembershipsResult.js","sourceRoot":"","sources":["../../../src/models/auth/ListGroupChannelMembershipsResult.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrincipalType } from '@coast/core-types/auth/PrincipalType';
|
|
2
|
+
import { NotificationsPreference } from '@coast/core-types/user/NotificationsPreference';
|
|
3
|
+
import { User } from '../user/User';
|
|
4
|
+
import { ChannelMembership } from './ChannelMembership';
|
|
5
|
+
export interface UserChannelMembershipEntity extends ChannelMembership<PrincipalType.USER> {
|
|
6
|
+
user: User;
|
|
7
|
+
readCardCount: number;
|
|
8
|
+
cardsViewedAt?: Date;
|
|
9
|
+
notificationsPreference?: NotificationsPreference;
|
|
10
|
+
snoozeUntil?: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserChannelMembershipEntity.js","sourceRoot":"","sources":["../../../src/models/auth/UserChannelMembershipEntity.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
|
|
2
2
|
import { AutomationActionAuditResult } from './AutomationActionAuditResult';
|
|
3
|
+
import { CurrentWorkflowEntityUpdateActionAuditResult } from './CurrentWorkflowEntityUpdateActionAuditResult';
|
|
3
4
|
import { SendEmailActionAuditResult } from './SendEmailActionAuditResult';
|
|
4
5
|
import { SendPushNotificationActionAuditResult } from './SendPushNotificationActionAuditResult';
|
|
5
6
|
import { SendWebhookActionAuditResult } from './SendWebhookActionAuditResult';
|
|
6
7
|
import { TriggerRelatedCardAutomationActionAuditResult } from './TriggerRelatedCardAutomationActionAuditResult';
|
|
8
|
+
import { UpdateRelatedCardQuantityActionAuditResult } from './UpdateRelatedCardQuantityActionAuditResult';
|
|
7
9
|
import { WorkflowEntityCreateActionAuditResult } from './WorkflowEntityCreateActionAuditResult';
|
|
8
10
|
import { WorkflowEntityUpdateActionAuditResult } from './WorkflowEntityUpdateActionAuditResult';
|
|
9
|
-
export type AnyAutomationActionAuditResult = AutomationActionAuditResult<AutomationActionType> | SendEmailActionAuditResult | SendPushNotificationActionAuditResult | SendWebhookActionAuditResult | TriggerRelatedCardAutomationActionAuditResult | WorkflowEntityCreateActionAuditResult | WorkflowEntityUpdateActionAuditResult;
|
|
11
|
+
export type AnyAutomationActionAuditResult = AutomationActionAuditResult<AutomationActionType> | CurrentWorkflowEntityUpdateActionAuditResult | SendEmailActionAuditResult | SendPushNotificationActionAuditResult | SendWebhookActionAuditResult | TriggerRelatedCardAutomationActionAuditResult | UpdateRelatedCardQuantityActionAuditResult | WorkflowEntityCreateActionAuditResult | WorkflowEntityUpdateActionAuditResult;
|
package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
|
|
2
|
+
import { AutomationActionAuditResult } from './AutomationActionAuditResult';
|
|
3
|
+
export interface CurrentWorkflowEntityUpdateActionAuditResult extends AutomationActionAuditResult<AutomationActionType.UPDATE_CURRENT_WORKFLOW_ENTITY> {
|
|
4
|
+
type: AutomationActionType.UPDATE_CURRENT_WORKFLOW_ENTITY;
|
|
5
|
+
updatedWorkflowEntityId: string;
|
|
6
|
+
}
|
package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentWorkflowEntityUpdateActionAuditResult.js","sourceRoot":"","sources":["../../../../../src/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
|
|
2
|
+
import { AutomationActionAuditResult } from './AutomationActionAuditResult';
|
|
3
|
+
export interface UpdateRelatedCardQuantityActionAuditResult extends AutomationActionAuditResult<AutomationActionType.UPDATE_RELATED_CARD_QUANTITY> {
|
|
4
|
+
type: AutomationActionType.UPDATE_RELATED_CARD_QUANTITY;
|
|
5
|
+
updatedWorkflowEntityId: string;
|
|
6
|
+
}
|
package/dist/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateRelatedCardQuantityActionAuditResult.js","sourceRoot":"","sources":["../../../../../src/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.ts"],"names":[],"mappings":""}
|
|
@@ -4,12 +4,12 @@ import { UserCreationMethod } from '@coast/core-types/user/UserCreationMethod';
|
|
|
4
4
|
import { UserId } from '@coast/core-types/user/UserId';
|
|
5
5
|
import { UserRole } from '@coast/core-types/user/UserRole';
|
|
6
6
|
import { Audit } from '../application/Audit';
|
|
7
|
-
import {
|
|
7
|
+
import { UserChannelMembershipEntity } from '../auth/UserChannelMembershipEntity';
|
|
8
8
|
import { BusinessMembership } from '../business/BusinessMembership';
|
|
9
9
|
import { ThreadMembershipEntity } from '../messaging/persistence/ThreadMembershipEntity';
|
|
10
10
|
export interface User extends Audit {
|
|
11
11
|
businessMemberships?: Promise<BusinessMembership[]>;
|
|
12
|
-
channelMemberships?: Promise<
|
|
12
|
+
channelMemberships?: Promise<UserChannelMembershipEntity[]>;
|
|
13
13
|
creationMethod?: UserCreationMethod;
|
|
14
14
|
creatorId?: number;
|
|
15
15
|
defaultChannelId?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coast/core-api-types",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.53",
|
|
4
4
|
"description": "Facilitates the generation of core-api-types npm package",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"author": "Coast Engineering",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@coast/core-types": "0.0.
|
|
27
|
-
"@coast/core-utils": "0.0.
|
|
26
|
+
"@coast/core-types": "0.0.168",
|
|
27
|
+
"@coast/core-utils": "0.0.35",
|
|
28
28
|
"@coast/schemas": "^4.0.2",
|
|
29
29
|
"@coast/service-common": "^2.0.91",
|
|
30
30
|
"@paradoxical-io/types": "^2.1.0",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@coast/service-common-scripts": "^1.0.50",
|
|
38
|
-
"glob": "^10.5.0",
|
|
39
38
|
"ts-morph": "^24.0.0",
|
|
40
39
|
"ts-node": "^10.9.2",
|
|
41
40
|
"tsx": "^4"
|