@coast/core-api-types 1.2.183 → 1.2.185

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/ApiKey.d.ts +12 -0
  2. package/dist/models/auth/ApiKey.js +3 -0
  3. package/dist/models/auth/ApiKey.js.map +1 -0
  4. package/dist/models/auth/ApiKeyId.d.ts +2 -0
  5. package/dist/models/auth/ApiKeyId.js +3 -0
  6. package/dist/models/auth/ApiKeyId.js.map +1 -0
  7. package/dist/models/auth/CreateApiKey.d.ts +3 -0
  8. package/dist/models/auth/CreateApiKey.js +3 -0
  9. package/dist/models/auth/CreateApiKey.js.map +1 -0
  10. package/dist/models/automations/action/AutomationActionRegistry.d.ts +2 -1
  11. package/dist/models/automations/action/AutomationActionType.d.ts +1 -0
  12. package/dist/models/automations/action/AutomationActionType.js +1 -0
  13. package/dist/models/automations/action/AutomationActionType.js.map +1 -1
  14. package/dist/models/automations/action/SendWebhookAction.d.ts +5 -0
  15. package/dist/models/automations/action/SendWebhookAction.js +3 -0
  16. package/dist/models/automations/action/SendWebhookAction.js.map +1 -0
  17. package/dist/models/automations/action/settings/AutomationActionSettingsOneOf.d.ts +2 -0
  18. package/dist/models/automations/action/settings/AutomationActionSettingsRegistry.d.ts +2 -1
  19. package/dist/models/automations/action/settings/SendWebhookActionSettings.d.ts +5 -0
  20. package/dist/models/automations/action/settings/SendWebhookActionSettings.js +3 -0
  21. package/dist/models/automations/action/settings/SendWebhookActionSettings.js.map +1 -0
  22. package/dist/models/user/UserRole.d.ts +1 -0
  23. package/dist/models/user/UserRole.js +1 -0
  24. package/dist/models/user/UserRole.js.map +1 -1
  25. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { Audit } from '../application/Audit';
2
+ import { BusinessId } from '../business/BusinessId';
3
+ import { UserId } from '../user/UserId';
4
+ import { ApiKeyId } from './ApiKeyId';
5
+ export interface ApiKey extends Audit {
6
+ id: ApiKeyId;
7
+ name: string;
8
+ userId: UserId;
9
+ businessId: BusinessId;
10
+ expiresAt?: Date;
11
+ deletedAt?: Date;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ApiKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiKey.js","sourceRoot":"","sources":["../../../src/models/auth/ApiKey.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ApiKeyId = Brand<string, 'ApiKeyId'>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ApiKeyId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiKeyId.js","sourceRoot":"","sources":["../../../src/models/auth/ApiKeyId.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface CreateApiKey {
2
+ name: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CreateApiKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateApiKey.js","sourceRoot":"","sources":["../../../src/models/auth/CreateApiKey.ts"],"names":[],"mappings":""}
@@ -5,10 +5,11 @@ import { ReferencedInQuantitySumAction } from './ReferencedInQuantitySumAction';
5
5
  import { SendEmailAction } from './SendEmailAction';
6
6
  import { SendNotificationAction } from './SendNotificationAction';
7
7
  import { SendPushNotificationAction } from './SendPushNotificationAction';
8
+ import { SendWebhookAction } from './SendWebhookAction';
8
9
  import { TriggerRelatedCardAutomationAction } from './TriggerRelatedCardAutomationAction';
9
10
  import { UpdateRelatedCardQuantityAction } from './UpdateRelatedCardQuantityAction';
10
11
  import { WorkflowEntityCreateAction } from './WorkflowEntityCreateAction';
11
12
  import { WorkflowEntityUpdateAction } from './WorkflowEntityUpdateAction';
12
13
  export declare namespace AutomationActionRegistry {
13
- type Any = CalculateValueAction | CurrentWorkflowEntityUpdateAction | ExternalFormLinkCreateAction | ReferencedInQuantitySumAction | SendEmailAction | SendNotificationAction | SendPushNotificationAction | TriggerRelatedCardAutomationAction | UpdateRelatedCardQuantityAction | WorkflowEntityCreateAction | WorkflowEntityUpdateAction;
14
+ type Any = CalculateValueAction | CurrentWorkflowEntityUpdateAction | ExternalFormLinkCreateAction | ReferencedInQuantitySumAction | SendEmailAction | SendNotificationAction | SendPushNotificationAction | SendWebhookAction | TriggerRelatedCardAutomationAction | UpdateRelatedCardQuantityAction | WorkflowEntityCreateAction | WorkflowEntityUpdateAction;
14
15
  }
@@ -6,6 +6,7 @@ export declare enum AutomationActionType {
6
6
  SEND_EMAIL = "SEND_EMAIL",
7
7
  SEND_NOTIFICATION = "SEND_NOTIFICATION",
8
8
  SEND_PUSH_NOTIFICATION = "SEND_PUSH_NOTIFICATION",
9
+ SEND_WEBHOOK = "SEND_WEBHOOK",
9
10
  TRIGGER_RELATED_CARD_AUTOMATION = "TRIGGER_RELATED_CARD_AUTOMATION",
10
11
  UPDATE_CURRENT_WORKFLOW_ENTITY = "UPDATE_CURRENT_WORKFLOW_ENTITY",
11
12
  UPDATE_RELATED_CARD_QUANTITY = "UPDATE_RELATED_CARD_QUANTITY",
@@ -10,6 +10,7 @@ var AutomationActionType;
10
10
  AutomationActionType["SEND_EMAIL"] = "SEND_EMAIL";
11
11
  AutomationActionType["SEND_NOTIFICATION"] = "SEND_NOTIFICATION";
12
12
  AutomationActionType["SEND_PUSH_NOTIFICATION"] = "SEND_PUSH_NOTIFICATION";
13
+ AutomationActionType["SEND_WEBHOOK"] = "SEND_WEBHOOK";
13
14
  AutomationActionType["TRIGGER_RELATED_CARD_AUTOMATION"] = "TRIGGER_RELATED_CARD_AUTOMATION";
14
15
  AutomationActionType["UPDATE_CURRENT_WORKFLOW_ENTITY"] = "UPDATE_CURRENT_WORKFLOW_ENTITY";
15
16
  AutomationActionType["UPDATE_RELATED_CARD_QUANTITY"] = "UPDATE_RELATED_CARD_QUANTITY";
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationActionType.js","sourceRoot":"","sources":["../../../../src/models/automations/action/AutomationActionType.ts"],"names":[],"mappings":";;;AACA,IAAY,oBAYX;AAZD,WAAY,oBAAoB;IAC5B,2DAAmC,CAAA;IACnC,+EAAuD,CAAA;IACvD,yEAAiD,CAAA;IACjD,iFAAyD,CAAA;IACzD,iDAAyB,CAAA;IACzB,+DAAuC,CAAA;IACvC,yEAAiD,CAAA;IACjD,2FAAmE,CAAA;IACnE,yFAAiE,CAAA;IACjE,qFAA6D,CAAA;IAC7D,yEAAiD,CAAA;AACrD,CAAC,EAZW,oBAAoB,oCAApB,oBAAoB,QAY/B"}
1
+ {"version":3,"file":"AutomationActionType.js","sourceRoot":"","sources":["../../../../src/models/automations/action/AutomationActionType.ts"],"names":[],"mappings":";;;AACA,IAAY,oBAaX;AAbD,WAAY,oBAAoB;IAC5B,2DAAmC,CAAA;IACnC,+EAAuD,CAAA;IACvD,yEAAiD,CAAA;IACjD,iFAAyD,CAAA;IACzD,iDAAyB,CAAA;IACzB,+DAAuC,CAAA;IACvC,yEAAiD,CAAA;IACjD,qDAA6B,CAAA;IAC7B,2FAAmE,CAAA;IACnE,yFAAiE,CAAA;IACjE,qFAA6D,CAAA;IAC7D,yEAAiD,CAAA;AACrD,CAAC,EAbW,oBAAoB,oCAApB,oBAAoB,QAa/B"}
@@ -0,0 +1,5 @@
1
+ import { AutomationAction } from './AutomationAction';
2
+ import { SendWebhookActionSettings } from './settings/SendWebhookActionSettings';
3
+ export interface SendWebhookAction extends Omit<AutomationAction, 'settings'> {
4
+ settings: SendWebhookActionSettings;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SendWebhookAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendWebhookAction.js","sourceRoot":"","sources":["../../../../src/models/automations/action/SendWebhookAction.ts"],"names":[],"mappings":""}
@@ -8,6 +8,7 @@ import { ReferencedInQuantitySumActionSettings } from './ReferencedInQuantitySum
8
8
  import { SendEmailActionSettings } from './SendEmailActionSettings';
9
9
  import { SendNotificationActionSettings } from './SendNotificationActionSettings';
10
10
  import { SendPushNotificationActionSettings } from './SendPushNotificationActionSettings';
11
+ import { SendWebhookActionSettings } from './SendWebhookActionSettings';
11
12
  import { TriggerRelatedCardAutomationActionSettings } from './TriggerRelatedCardAutomationActionSettings';
12
13
  export interface AutomationActionSettingsOneOf {
13
14
  calculateValueActionSettings?: CreateCalculateValueActionSettings;
@@ -17,6 +18,7 @@ export interface AutomationActionSettingsOneOf {
17
18
  sendEmailActionSettings?: SendEmailActionSettings;
18
19
  sendNotificationActionSettings?: SendNotificationActionSettings;
19
20
  sendPushNotificationActionSettings?: SendPushNotificationActionSettings;
21
+ sendWebhookActionSettings?: SendWebhookActionSettings;
20
22
  triggerRelatedCardAutomationActionSettings?: TriggerRelatedCardAutomationActionSettings;
21
23
  updateRelatedCardQuantityActionSettings?: CreateUpdateRelatedCardQuantityActionSettings;
22
24
  workflowEntityCreateActionSettings?: CreateWorkflowEntityCreateActionSettings;
@@ -5,10 +5,11 @@ import { ReferencedInQuantitySumActionSettings } from './ReferencedInQuantitySum
5
5
  import { SendEmailActionSettings } from './SendEmailActionSettings';
6
6
  import { SendNotificationActionSettings } from './SendNotificationActionSettings';
7
7
  import { SendPushNotificationActionSettings } from './SendPushNotificationActionSettings';
8
+ import { SendWebhookActionSettings } from './SendWebhookActionSettings';
8
9
  import { TriggerRelatedCardAutomationActionSettings } from './TriggerRelatedCardAutomationActionSettings';
9
10
  import { UpdateRelatedCardQuantityActionSettings } from './UpdateRelatedCardQuantityActionSettings';
10
11
  import { WorkflowEntityCreateActionSettings } from './WorkflowEntityCreateActionSettings';
11
12
  import { WorkflowEntityUpdateActionSettings } from './WorkflowEntityUpdateActionSettings';
12
13
  export declare namespace AutomationActionSettingsRegistry {
13
- type Any = CalculateValueActionSettings | CurrentWorkflowEntityUpdateActionSettings | ExternalFormLinkCreateActionSettings | ReferencedInQuantitySumActionSettings | SendEmailActionSettings | SendNotificationActionSettings | SendPushNotificationActionSettings | TriggerRelatedCardAutomationActionSettings | UpdateRelatedCardQuantityActionSettings | WorkflowEntityCreateActionSettings | WorkflowEntityUpdateActionSettings;
14
+ type Any = CalculateValueActionSettings | CurrentWorkflowEntityUpdateActionSettings | ExternalFormLinkCreateActionSettings | ReferencedInQuantitySumActionSettings | SendEmailActionSettings | SendNotificationActionSettings | SendPushNotificationActionSettings | SendWebhookActionSettings | TriggerRelatedCardAutomationActionSettings | UpdateRelatedCardQuantityActionSettings | WorkflowEntityCreateActionSettings | WorkflowEntityUpdateActionSettings;
14
15
  }
@@ -0,0 +1,5 @@
1
+ import { AutomationActionSettings } from './AutomationActionSettings';
2
+ export interface SendWebhookActionSettings extends AutomationActionSettings {
3
+ destinationUrl: string;
4
+ secretKey: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SendWebhookActionSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendWebhookActionSettings.js","sourceRoot":"","sources":["../../../../../src/models/automations/action/settings/SendWebhookActionSettings.ts"],"names":[],"mappings":""}
@@ -5,6 +5,7 @@ export declare enum UserRole {
5
5
  INTEGRATION = "INTEGRATION",
6
6
  INTERNAL_TOOL = "INTERNAL_TOOL",
7
7
  MEMBER = "MEMBER",
8
+ PUBLIC_API = "PUBLIC_API",
8
9
  SITE_ADMIN = "SITE_ADMIN",
9
10
  SUPPORT = "SUPPORT",
10
11
  VIEW_CARD = "VIEW_CARD"
@@ -9,6 +9,7 @@ var UserRole;
9
9
  UserRole["INTEGRATION"] = "INTEGRATION";
10
10
  UserRole["INTERNAL_TOOL"] = "INTERNAL_TOOL";
11
11
  UserRole["MEMBER"] = "MEMBER";
12
+ UserRole["PUBLIC_API"] = "PUBLIC_API";
12
13
  UserRole["SITE_ADMIN"] = "SITE_ADMIN";
13
14
  UserRole["SUPPORT"] = "SUPPORT";
14
15
  UserRole["VIEW_CARD"] = "VIEW_CARD";
@@ -1 +1 @@
1
- {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../src/models/user/UserRole.ts"],"names":[],"mappings":";;;AACA,IAAY,QAUX;AAVD,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,6CAAiC,CAAA;IACjC,2CAA+B,CAAA;IAC/B,uCAA2B,CAAA;IAC3B,2CAA+B,CAAA;IAC/B,6BAAiB,CAAA;IACjB,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;AAC3B,CAAC,EAVW,QAAQ,wBAAR,QAAQ,QAUnB"}
1
+ {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../src/models/user/UserRole.ts"],"names":[],"mappings":";;;AACA,IAAY,QAiBX;AAjBD,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,6CAAiC,CAAA;IAIjC,2CAA+B,CAAA;IAC/B,uCAA2B,CAAA;IAC3B,2CAA+B,CAAA;IAC/B,6BAAiB,CAAA;IACjB,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IAInB,mCAAuB,CAAA;AAC3B,CAAC,EAjBW,QAAQ,wBAAR,QAAQ,QAiBnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.183",
3
+ "version": "1.2.185",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {