@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.
Files changed (25) hide show
  1. package/dist/models/auth/ChannelMembership.d.ts +6 -11
  2. package/dist/models/auth/GroupChannelMembership.d.ts +9 -0
  3. package/dist/models/auth/GroupChannelMembership.js +3 -0
  4. package/dist/models/auth/GroupChannelMembership.js.map +1 -0
  5. package/dist/models/auth/GroupChannelMembershipEntity.d.ts +6 -0
  6. package/dist/models/auth/GroupChannelMembershipEntity.js +3 -0
  7. package/dist/models/auth/GroupChannelMembershipEntity.js.map +1 -0
  8. package/dist/models/auth/ListGroupChannelMemberships.d.ts +4 -0
  9. package/dist/models/auth/ListGroupChannelMemberships.js +3 -0
  10. package/dist/models/auth/ListGroupChannelMemberships.js.map +1 -0
  11. package/dist/models/auth/ListGroupChannelMembershipsResult.d.ts +5 -0
  12. package/dist/models/auth/ListGroupChannelMembershipsResult.js +3 -0
  13. package/dist/models/auth/ListGroupChannelMembershipsResult.js.map +1 -0
  14. package/dist/models/auth/UserChannelMembershipEntity.d.ts +11 -0
  15. package/dist/models/auth/UserChannelMembershipEntity.js +3 -0
  16. package/dist/models/auth/UserChannelMembershipEntity.js.map +1 -0
  17. package/dist/models/automations/action/audit/AnyAutomationActionAuditResult.d.ts +3 -1
  18. package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.d.ts +6 -0
  19. package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.js +3 -0
  20. package/dist/models/automations/action/audit/CurrentWorkflowEntityUpdateActionAuditResult.js.map +1 -0
  21. package/dist/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.d.ts +6 -0
  22. package/dist/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.js +3 -0
  23. package/dist/models/automations/action/audit/UpdateRelatedCardQuantityActionAuditResult.js.map +1 -0
  24. package/dist/models/user/User.d.ts +2 -2
  25. 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 { NotificationsPreference } from '@coast/core-types/user/NotificationsPreference';
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GroupChannelMembership.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GroupChannelMembershipEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupChannelMembershipEntity.js","sourceRoot":"","sources":["../../../src/models/auth/GroupChannelMembershipEntity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { OffsetPaginatedRequest } from '../pagination/OffsetPaginatedRequest';
2
+ export interface ListGroupChannelMemberships extends OffsetPaginatedRequest {
3
+ channelId: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListGroupChannelMemberships.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListGroupChannelMembershipsResult.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=UserChannelMembershipEntity.js.map
@@ -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;
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CurrentWorkflowEntityUpdateActionAuditResult.js.map
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=UpdateRelatedCardQuantityActionAuditResult.js.map
@@ -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 { ChannelMembership } from '../auth/ChannelMembership';
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<ChannelMembership[]>;
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.51",
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.167",
27
- "@coast/core-utils": "0.0.34",
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"