@coast/core-api-types 1.2.79 → 1.2.80

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.
@@ -3,11 +3,12 @@ import { CurrentWorkflowEntityUpdateAction } from './CurrentWorkflowEntityUpdate
3
3
  import { ExternalFormLinkCreateAction } from './ExternalFormLinkCreateAction';
4
4
  import { ReferencedInQuantitySumAction } from './ReferencedInQuantitySumAction';
5
5
  import { SendEmailAction } from './SendEmailAction';
6
+ import { SendNotificationAction } from './SendNotificationAction';
6
7
  import { SendPushNotificationAction } from './SendPushNotificationAction';
7
8
  import { TriggerRelatedCardAutomationAction } from './TriggerRelatedCardAutomationAction';
8
9
  import { UpdateRelatedCardQuantityAction } from './UpdateRelatedCardQuantityAction';
9
10
  import { WorkflowEntityCreateAction } from './WorkflowEntityCreateAction';
10
11
  import { WorkflowEntityUpdateAction } from './WorkflowEntityUpdateAction';
11
12
  export declare namespace AutomationActionRegistry {
12
- type Any = CalculateValueAction | CurrentWorkflowEntityUpdateAction | ExternalFormLinkCreateAction | ReferencedInQuantitySumAction | SendEmailAction | SendPushNotificationAction | TriggerRelatedCardAutomationAction | UpdateRelatedCardQuantityAction | WorkflowEntityCreateAction | WorkflowEntityUpdateAction;
13
+ type Any = CalculateValueAction | CurrentWorkflowEntityUpdateAction | ExternalFormLinkCreateAction | ReferencedInQuantitySumAction | SendEmailAction | SendNotificationAction | SendPushNotificationAction | TriggerRelatedCardAutomationAction | UpdateRelatedCardQuantityAction | WorkflowEntityCreateAction | WorkflowEntityUpdateAction;
13
14
  }
@@ -4,6 +4,7 @@ export declare enum AutomationActionType {
4
4
  CREATE_WORKFLOW_ENTITY = "CREATE_WORKFLOW_ENTITY",
5
5
  REFERENCED_IN_QUANTITY_SUM = "REFERENCED_IN_QUANTITY_SUM",
6
6
  SEND_EMAIL = "SEND_EMAIL",
7
+ SEND_NOTIFICATION = "SEND_NOTIFICATION",
7
8
  SEND_PUSH_NOTIFICATION = "SEND_PUSH_NOTIFICATION",
8
9
  TRIGGER_RELATED_CARD_AUTOMATION = "TRIGGER_RELATED_CARD_AUTOMATION",
9
10
  UPDATE_CURRENT_WORKFLOW_ENTITY = "UPDATE_CURRENT_WORKFLOW_ENTITY",
@@ -8,6 +8,7 @@ var AutomationActionType;
8
8
  AutomationActionType["CREATE_WORKFLOW_ENTITY"] = "CREATE_WORKFLOW_ENTITY";
9
9
  AutomationActionType["REFERENCED_IN_QUANTITY_SUM"] = "REFERENCED_IN_QUANTITY_SUM";
10
10
  AutomationActionType["SEND_EMAIL"] = "SEND_EMAIL";
11
+ AutomationActionType["SEND_NOTIFICATION"] = "SEND_NOTIFICATION";
11
12
  AutomationActionType["SEND_PUSH_NOTIFICATION"] = "SEND_PUSH_NOTIFICATION";
12
13
  AutomationActionType["TRIGGER_RELATED_CARD_AUTOMATION"] = "TRIGGER_RELATED_CARD_AUTOMATION";
13
14
  AutomationActionType["UPDATE_CURRENT_WORKFLOW_ENTITY"] = "UPDATE_CURRENT_WORKFLOW_ENTITY";
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationActionType.js","sourceRoot":"","sources":["../../../../src/models/automations/action/AutomationActionType.ts"],"names":[],"mappings":";;;AACA,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC5B,2DAAmC,CAAA;IACnC,+EAAuD,CAAA;IACvD,yEAAiD,CAAA;IACjD,iFAAyD,CAAA;IACzD,iDAAyB,CAAA;IACzB,yEAAiD,CAAA;IACjD,2FAAmE,CAAA;IACnE,yFAAiE,CAAA;IACjE,qFAA6D,CAAA;IAC7D,yEAAiD,CAAA;AACrD,CAAC,EAXW,oBAAoB,oCAApB,oBAAoB,QAW/B"}
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"}
@@ -0,0 +1,5 @@
1
+ import { AutomationAction } from './AutomationAction';
2
+ import { SendNotificationActionSettings } from './settings/SendNotificationActionSettings';
3
+ export interface SendNotificationAction extends Omit<AutomationAction, 'settings'> {
4
+ settings?: SendNotificationActionSettings;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SendNotificationAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendNotificationAction.js","sourceRoot":"","sources":["../../../../src/models/automations/action/SendNotificationAction.ts"],"names":[],"mappings":""}
@@ -6,6 +6,7 @@ import { CreateWorkflowEntityCreateActionSettings } from './CreateWorkflowEntity
6
6
  import { CreateWorkflowEntityUpdateActionSettings } from './CreateWorkflowEntityUpdateActionSettings';
7
7
  import { ReferencedInQuantitySumActionSettings } from './ReferencedInQuantitySumActionSettings';
8
8
  import { SendEmailActionSettings } from './SendEmailActionSettings';
9
+ import { SendNotificationActionSettings } from './SendNotificationActionSettings';
9
10
  import { SendPushNotificationActionSettings } from './SendPushNotificationActionSettings';
10
11
  import { TriggerRelatedCardAutomationActionSettings } from './TriggerRelatedCardAutomationActionSettings';
11
12
  export interface AutomationActionSettingsOneOf {
@@ -14,6 +15,7 @@ export interface AutomationActionSettingsOneOf {
14
15
  externalFormLinkCreateActionSettings?: CreateExternalFormLinkCreateActionSettings;
15
16
  referencedInQuantitySumActionSettings?: ReferencedInQuantitySumActionSettings;
16
17
  sendEmailActionSettings?: SendEmailActionSettings;
18
+ sendNotificationActionSettings?: SendNotificationActionSettings;
17
19
  sendPushNotificationActionSettings?: SendPushNotificationActionSettings;
18
20
  triggerRelatedCardAutomationActionSettings?: TriggerRelatedCardAutomationActionSettings;
19
21
  updateRelatedCardQuantityActionSettings?: CreateUpdateRelatedCardQuantityActionSettings;
@@ -3,11 +3,12 @@ import { CurrentWorkflowEntityUpdateActionSettings } from './CurrentWorkflowEnti
3
3
  import { ExternalFormLinkCreateActionSettings } from './ExternalFormLinkCreateActionSettings';
4
4
  import { ReferencedInQuantitySumActionSettings } from './ReferencedInQuantitySumActionSettings';
5
5
  import { SendEmailActionSettings } from './SendEmailActionSettings';
6
+ import { SendNotificationActionSettings } from './SendNotificationActionSettings';
6
7
  import { SendPushNotificationActionSettings } from './SendPushNotificationActionSettings';
7
8
  import { TriggerRelatedCardAutomationActionSettings } from './TriggerRelatedCardAutomationActionSettings';
8
9
  import { UpdateRelatedCardQuantityActionSettings } from './UpdateRelatedCardQuantityActionSettings';
9
10
  import { WorkflowEntityCreateActionSettings } from './WorkflowEntityCreateActionSettings';
10
11
  import { WorkflowEntityUpdateActionSettings } from './WorkflowEntityUpdateActionSettings';
11
12
  export declare namespace AutomationActionSettingsRegistry {
12
- type Any = CalculateValueActionSettings | CurrentWorkflowEntityUpdateActionSettings | ExternalFormLinkCreateActionSettings | ReferencedInQuantitySumActionSettings | SendEmailActionSettings | SendPushNotificationActionSettings | TriggerRelatedCardAutomationActionSettings | UpdateRelatedCardQuantityActionSettings | WorkflowEntityCreateActionSettings | WorkflowEntityUpdateActionSettings;
13
+ type Any = CalculateValueActionSettings | CurrentWorkflowEntityUpdateActionSettings | ExternalFormLinkCreateActionSettings | ReferencedInQuantitySumActionSettings | SendEmailActionSettings | SendNotificationActionSettings | SendPushNotificationActionSettings | TriggerRelatedCardAutomationActionSettings | UpdateRelatedCardQuantityActionSettings | WorkflowEntityCreateActionSettings | WorkflowEntityUpdateActionSettings;
13
14
  }
@@ -0,0 +1,10 @@
1
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
2
+ import { AutomationActionSettings } from './AutomationActionSettings';
3
+ export interface SendNotificationActionSettings extends AutomationActionSettings {
4
+ message: string;
5
+ recipientEmails?: string[];
6
+ recipientsFromEmailComponentIds?: string[];
7
+ replyTo?: string;
8
+ subject: string;
9
+ workflowTemplateId: WorkflowTemplateId;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SendNotificationActionSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendNotificationActionSettings.js","sourceRoot":"","sources":["../../../../../src/models/automations/action/settings/SendNotificationActionSettings.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.79",
3
+ "version": "1.2.80",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {