@d19n/youfibre-odin-sdk 2.0.231 → 2.0.232

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 (45) hide show
  1. package/README.md +12 -2
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/ModifyServiceRequestAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/ModifyServiceRequestAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +5 -3
  12. package/dist/actions-v2/CreateModifyServiceRequestDto.d.ts +56 -0
  13. package/dist/actions-v2/CreateModifyServiceRequestDto.js +52 -0
  14. package/dist/actions-v2/CreateOrderConfirmationDto.d.ts +135 -0
  15. package/dist/actions-v2/CreateOrderConfirmationDto.js +59 -0
  16. package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +5 -0
  17. package/dist/actions-v2/CreateOutboundDialCampaignDto.js +6 -1
  18. package/dist/actions-v2/CreateoutbounddialcampaigncaseDto.d.ts +5 -0
  19. package/dist/actions-v2/CreateoutbounddialcampaigncaseDto.js +6 -1
  20. package/dist/actions-v2/DefaultCreateOutboundDialCampaignDto.d.ts +112 -0
  21. package/dist/actions-v2/DefaultCreateOutboundDialCampaignDto.js +57 -0
  22. package/dist/actions-v2/DefaultUpdateOutboundDialCampaignDto.d.ts +117 -0
  23. package/dist/actions-v2/DefaultUpdateOutboundDialCampaignDto.js +59 -0
  24. package/dist/actions-v2/UpdateCallOnOutboundCallAnsweredDto.d.ts +8 -1
  25. package/dist/api-sdk-v2/ModifyServiceRequestApi.d.ts +45 -0
  26. package/dist/api-sdk-v2/ModifyServiceRequestApi.js +151 -0
  27. package/dist/db-accessors-v2/ModifyServiceRequestDbAccessor.d.ts +149 -0
  28. package/dist/db-accessors-v2/ModifyServiceRequestDbAccessor.js +227 -0
  29. package/dist/db-accessors-v2/index.d.ts +1 -0
  30. package/dist/db-accessors-v2/index.js +5 -3
  31. package/dist/db-sdk-v2/ModifyServiceRequestDb.d.ts +117 -0
  32. package/dist/db-sdk-v2/ModifyServiceRequestDb.js +200 -0
  33. package/dist/entities-v2/ModifyServiceRequest.d.ts +123 -0
  34. package/dist/entities-v2/ModifyServiceRequest.js +108 -0
  35. package/dist/records-v2/EmailRecord.d.ts +29 -0
  36. package/dist/records-v2/EmailRecord.js +36 -0
  37. package/dist/records-v2/ModifyServiceRequestRecord.d.ts +184 -0
  38. package/dist/records-v2/ModifyServiceRequestRecord.js +243 -0
  39. package/dist/records-v2/OutboundDialCampaignCaseRecord.d.ts +2 -2
  40. package/dist/records-v2/OutboundDialCampaignCaseRecord.js +3 -3
  41. package/dist/records-v2/OutboundDialCampaignRecord.d.ts +59 -2
  42. package/dist/records-v2/OutboundDialCampaignRecord.js +76 -3
  43. package/dist/records-v2/index.d.ts +1 -0
  44. package/dist/records-v2/index.js +6 -3
  45. package/package.json +1 -1
@@ -0,0 +1,135 @@
1
+ /**
2
+ * CreateOrderConfirmation Action DTO
3
+ *
4
+ * Create order confirmation email
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @entityType TRANSACTIONAL
9
+ * @actionKey CreateOrderConfirmation
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateOrderConfirmation created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation
19
+ */
20
+ export interface CreateOrderConfirmationMessage extends OdinRecordCreatedEvent<CreateOrderConfirmationDto, CreateOrderConfirmationProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateOrderConfirmation action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 10
27
+ */
28
+ export interface CreateOrderConfirmationProperties {
29
+ /**
30
+ * Date
31
+ *
32
+ * Date field for Email records. Used by Communications team.
33
+ * @type {DATE_TIME}
34
+ */
35
+ Date?: string | null;
36
+ /**
37
+ * EmailingService
38
+ *
39
+ * The provider we use to send email (eg. Sendgrid)
40
+ * @type {ENUM}
41
+ */
42
+ EmailingService?: string | null;
43
+ /**
44
+ * ContactId
45
+ *
46
+ * The related Contact to send the email
47
+ * @type {LOOKUP}
48
+ */
49
+ ContactId?: string | null;
50
+ /**
51
+ * TemplateLabel
52
+ *
53
+ * The template label from email templates engine
54
+ * @type {TEXT}
55
+ */
56
+ TemplateLabel?: string | null;
57
+ /**
58
+ * MessageId
59
+ *
60
+ * SMTP Message Id (Communications - Email)
61
+ * @type {TEXT}
62
+ */
63
+ MessageId?: string | null;
64
+ /**
65
+ * EmailSenderId
66
+ *
67
+ * The Email Sender related entity
68
+ * @type {LOOKUP}
69
+ */
70
+ EmailSenderId?: string | null;
71
+ /**
72
+ * DynamicData
73
+ *
74
+ * Data will pass to emailing service (variables)
75
+ * @type {JSON}
76
+ */
77
+ DynamicData?: string | null;
78
+ /**
79
+ * Title
80
+ *
81
+ * Used for title
82
+ * @type {TEXT}
83
+ */
84
+ Title?: string | null;
85
+ /**
86
+ * Subject
87
+ *
88
+ * Data field for Email records. Used by Communications team.
89
+ * @type {TEXT}
90
+ */
91
+ Subject?: string | null;
92
+ /**
93
+ * To
94
+ *
95
+ * Data field for Email records. Used by Communications team.
96
+ * @type {TEXT}
97
+ */
98
+ To?: string | null;
99
+ }
100
+ /**
101
+ * CreateOrderConfirmation
102
+ *
103
+ * Create order confirmation email
104
+ *
105
+ * @actionType CREATE - Creates a new Email record
106
+ * @module NotificationModule
107
+ * @entity Email
108
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
109
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation
110
+ * @permission schema.action.createorderconfirmation.trigger
111
+ * @benchmark This action is tracked for performance benchmarks
112
+ */
113
+ export declare class CreateOrderConfirmationDto extends OdinRecordCreateDto<CreateOrderConfirmationProperties> {
114
+ /** Used by SDK generators to identify action type */
115
+ static readonly ACTION_TYPE = "CREATE";
116
+ static readonly ACTION_KEY = "CreateOrderConfirmation";
117
+ static readonly MODULE_NAME = "NotificationModule";
118
+ static readonly ENTITIES: string[];
119
+ static readonly ENTITY_TYPE = "TRANSACTIONAL";
120
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation";
121
+ static readonly PERMISSION = "schema.action.createorderconfirmation.trigger";
122
+ /** Step metadata - entity this action targets */
123
+ static readonly STEP_ENTITY = "NotificationModule:Email";
124
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
125
+ static readonly STEP_SCHEMA_ACTION_ID = "682eb942-a4d2-4f23-98b0-9266ccbae01a";
126
+ static readonly STEP_SCHEMA_TYPE_ID = "14042940-a388-44c7-87fe-3a4105d92e94";
127
+ static readonly STEP_TYPE = "TRANSACTIONAL";
128
+ static readonly AUTO_LINK_PARENT = true;
129
+ readonly actionName: string;
130
+ readonly schemaActionId: string;
131
+ readonly entity: string;
132
+ constructor(properties: CreateOrderConfirmationProperties, options?: {
133
+ journeyId?: string;
134
+ });
135
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOrderConfirmation Action DTO
4
+ *
5
+ * Create order confirmation email
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @entityType TRANSACTIONAL
10
+ * @actionKey CreateOrderConfirmation
11
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateOrderConfirmationDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateOrderConfirmation
20
+ *
21
+ * Create order confirmation email
22
+ *
23
+ * @actionType CREATE - Creates a new Email record
24
+ * @module NotificationModule
25
+ * @entity Email
26
+ * @entityType TRANSACTIONAL (TRANSACTIONAL)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation
28
+ * @permission schema.action.createorderconfirmation.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateOrderConfirmationDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:Email',
35
+ type: 'TRANSACTIONAL',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateOrderConfirmation';
40
+ this.schemaActionId = '682eb942-a4d2-4f23-98b0-9266ccbae01a';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateOrderConfirmationDto = CreateOrderConfirmationDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateOrderConfirmationDto.ACTION_TYPE = 'CREATE';
47
+ CreateOrderConfirmationDto.ACTION_KEY = 'CreateOrderConfirmation';
48
+ CreateOrderConfirmationDto.MODULE_NAME = 'NotificationModule';
49
+ CreateOrderConfirmationDto.ENTITIES = ['Email'];
50
+ CreateOrderConfirmationDto.ENTITY_TYPE = 'TRANSACTIONAL';
51
+ CreateOrderConfirmationDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Create.CreateOrderConfirmation';
52
+ CreateOrderConfirmationDto.PERMISSION = 'schema.action.createorderconfirmation.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateOrderConfirmationDto.STEP_ENTITY = 'NotificationModule:Email';
55
+ CreateOrderConfirmationDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
56
+ CreateOrderConfirmationDto.STEP_SCHEMA_ACTION_ID = '682eb942-a4d2-4f23-98b0-9266ccbae01a';
57
+ CreateOrderConfirmationDto.STEP_SCHEMA_TYPE_ID = '14042940-a388-44c7-87fe-3a4105d92e94';
58
+ CreateOrderConfirmationDto.STEP_TYPE = 'TRANSACTIONAL';
59
+ CreateOrderConfirmationDto.AUTO_LINK_PARENT = true;
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * @module SupportModule
7
7
  * @entity OutboundDialCampaign
8
+ * @entityType DEFAULT
8
9
  * @actionKey CreateOutboundDialCampaign
9
10
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.CreateOutboundDialCampaign
10
11
  *
@@ -89,6 +90,7 @@ export interface CreateOutboundDialCampaignProperties {
89
90
  * @actionType CREATE - Creates a new OutboundDialCampaign record
90
91
  * @module SupportModule
91
92
  * @entity OutboundDialCampaign
93
+ * @entityType DEFAULT (Default)
92
94
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.CreateOutboundDialCampaign
93
95
  * @permission schema.action.createoutbounddialcampaign.trigger
94
96
  * @benchmark This action is tracked for performance benchmarks
@@ -99,12 +101,15 @@ export declare class CreateOutboundDialCampaignDto extends OdinRecordCreateDto<C
99
101
  static readonly ACTION_KEY = "CreateOutboundDialCampaign";
100
102
  static readonly MODULE_NAME = "SupportModule";
101
103
  static readonly ENTITIES: string[];
104
+ static readonly ENTITY_TYPE = "DEFAULT";
102
105
  static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.CreateOutboundDialCampaign";
103
106
  static readonly PERMISSION = "schema.action.createoutbounddialcampaign.trigger";
104
107
  /** Step metadata - entity this action targets */
105
108
  static readonly STEP_ENTITY = "SupportModule:OutboundDialCampaign";
106
109
  static readonly STEP_SCHEMA_ID = "039655e5-c145-4399-a4f5-7b44bcb048ec";
107
110
  static readonly STEP_SCHEMA_ACTION_ID = "3d91db76-bfe3-4525-87c3-537ed8c4104d";
111
+ static readonly STEP_SCHEMA_TYPE_ID = "2395e0c6-fdb3-4600-8caf-f0678a06ae2e";
112
+ static readonly STEP_TYPE = "DEFAULT";
108
113
  static readonly AUTO_LINK_PARENT = true;
109
114
  readonly actionName: string;
110
115
  readonly schemaActionId: string;
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @module SupportModule
8
8
  * @entity OutboundDialCampaign
9
+ * @entityType DEFAULT
9
10
  * @actionKey CreateOutboundDialCampaign
10
11
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.CreateOutboundDialCampaign
11
12
  *
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
22
23
  * @actionType CREATE - Creates a new OutboundDialCampaign record
23
24
  * @module SupportModule
24
25
  * @entity OutboundDialCampaign
26
+ * @entityType DEFAULT (Default)
25
27
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.CreateOutboundDialCampaign
26
28
  * @permission schema.action.createoutbounddialcampaign.trigger
27
29
  * @benchmark This action is tracked for performance benchmarks
@@ -30,7 +32,7 @@ class CreateOutboundDialCampaignDto extends core_1.OdinRecordCreateDto {
30
32
  constructor(properties, options) {
31
33
  super({
32
34
  entity: 'SupportModule:OutboundDialCampaign',
33
- type: undefined,
35
+ type: 'DEFAULT',
34
36
  properties,
35
37
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
38
  });
@@ -45,10 +47,13 @@ CreateOutboundDialCampaignDto.ACTION_TYPE = 'CREATE';
45
47
  CreateOutboundDialCampaignDto.ACTION_KEY = 'CreateOutboundDialCampaign';
46
48
  CreateOutboundDialCampaignDto.MODULE_NAME = 'SupportModule';
47
49
  CreateOutboundDialCampaignDto.ENTITIES = ['OutboundDialCampaign'];
50
+ CreateOutboundDialCampaignDto.ENTITY_TYPE = 'DEFAULT';
48
51
  CreateOutboundDialCampaignDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.CreateOutboundDialCampaign';
49
52
  CreateOutboundDialCampaignDto.PERMISSION = 'schema.action.createoutbounddialcampaign.trigger';
50
53
  /** Step metadata - entity this action targets */
51
54
  CreateOutboundDialCampaignDto.STEP_ENTITY = 'SupportModule:OutboundDialCampaign';
52
55
  CreateOutboundDialCampaignDto.STEP_SCHEMA_ID = '039655e5-c145-4399-a4f5-7b44bcb048ec';
53
56
  CreateOutboundDialCampaignDto.STEP_SCHEMA_ACTION_ID = '3d91db76-bfe3-4525-87c3-537ed8c4104d';
57
+ CreateOutboundDialCampaignDto.STEP_SCHEMA_TYPE_ID = '2395e0c6-fdb3-4600-8caf-f0678a06ae2e';
58
+ CreateOutboundDialCampaignDto.STEP_TYPE = 'DEFAULT';
54
59
  CreateOutboundDialCampaignDto.AUTO_LINK_PARENT = true;
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * @module SupportModule
7
7
  * @entity OutboundDialCampaignCase
8
+ * @entityType DEFAULT
8
9
  * @actionKey Createoutbounddialcampaigncase
9
10
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaignCase.Create.Createoutbounddialcampaigncase
10
11
  *
@@ -66,6 +67,7 @@ export interface CreateoutbounddialcampaigncaseProperties {
66
67
  * @actionType CREATE - Creates a new OutboundDialCampaignCase record
67
68
  * @module SupportModule
68
69
  * @entity OutboundDialCampaignCase
70
+ * @entityType DEFAULT (Default)
69
71
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaignCase.Create.Createoutbounddialcampaigncase
70
72
  * @permission schema.action.createoutbounddialcampaigncase.trigger
71
73
  * @benchmark This action is tracked for performance benchmarks
@@ -76,12 +78,15 @@ export declare class CreateoutbounddialcampaigncaseDto extends OdinRecordCreateD
76
78
  static readonly ACTION_KEY = "Createoutbounddialcampaigncase";
77
79
  static readonly MODULE_NAME = "SupportModule";
78
80
  static readonly ENTITIES: string[];
81
+ static readonly ENTITY_TYPE = "DEFAULT";
79
82
  static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.OutboundDialCampaignCase.Create.Createoutbounddialcampaigncase";
80
83
  static readonly PERMISSION = "schema.action.createoutbounddialcampaigncase.trigger";
81
84
  /** Step metadata - entity this action targets */
82
85
  static readonly STEP_ENTITY = "SupportModule:OutboundDialCampaignCase";
83
86
  static readonly STEP_SCHEMA_ID = "67b2297d-fa5d-48ae-8596-3b6c7305cae3";
84
87
  static readonly STEP_SCHEMA_ACTION_ID = "b12de753-6b90-4a6e-bcd3-5c49c17796f0";
88
+ static readonly STEP_SCHEMA_TYPE_ID = "390b34e5-ae39-4387-b7e0-ed24a5d182c9";
89
+ static readonly STEP_TYPE = "DEFAULT";
85
90
  static readonly AUTO_LINK_PARENT = true;
86
91
  readonly actionName: string;
87
92
  readonly schemaActionId: string;
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @module SupportModule
8
8
  * @entity OutboundDialCampaignCase
9
+ * @entityType DEFAULT
9
10
  * @actionKey Createoutbounddialcampaigncase
10
11
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaignCase.Create.Createoutbounddialcampaigncase
11
12
  *
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
22
23
  * @actionType CREATE - Creates a new OutboundDialCampaignCase record
23
24
  * @module SupportModule
24
25
  * @entity OutboundDialCampaignCase
26
+ * @entityType DEFAULT (Default)
25
27
  * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaignCase.Create.Createoutbounddialcampaigncase
26
28
  * @permission schema.action.createoutbounddialcampaigncase.trigger
27
29
  * @benchmark This action is tracked for performance benchmarks
@@ -30,7 +32,7 @@ class CreateoutbounddialcampaigncaseDto extends core_1.OdinRecordCreateDto {
30
32
  constructor(properties, options) {
31
33
  super({
32
34
  entity: 'SupportModule:OutboundDialCampaignCase',
33
- type: undefined,
35
+ type: 'DEFAULT',
34
36
  properties,
35
37
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
38
  });
@@ -45,10 +47,13 @@ CreateoutbounddialcampaigncaseDto.ACTION_TYPE = 'CREATE';
45
47
  CreateoutbounddialcampaigncaseDto.ACTION_KEY = 'Createoutbounddialcampaigncase';
46
48
  CreateoutbounddialcampaigncaseDto.MODULE_NAME = 'SupportModule';
47
49
  CreateoutbounddialcampaigncaseDto.ENTITIES = ['OutboundDialCampaignCase'];
50
+ CreateoutbounddialcampaigncaseDto.ENTITY_TYPE = 'DEFAULT';
48
51
  CreateoutbounddialcampaigncaseDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.OutboundDialCampaignCase.Create.Createoutbounddialcampaigncase';
49
52
  CreateoutbounddialcampaigncaseDto.PERMISSION = 'schema.action.createoutbounddialcampaigncase.trigger';
50
53
  /** Step metadata - entity this action targets */
51
54
  CreateoutbounddialcampaigncaseDto.STEP_ENTITY = 'SupportModule:OutboundDialCampaignCase';
52
55
  CreateoutbounddialcampaigncaseDto.STEP_SCHEMA_ID = '67b2297d-fa5d-48ae-8596-3b6c7305cae3';
53
56
  CreateoutbounddialcampaigncaseDto.STEP_SCHEMA_ACTION_ID = 'b12de753-6b90-4a6e-bcd3-5c49c17796f0';
57
+ CreateoutbounddialcampaigncaseDto.STEP_SCHEMA_TYPE_ID = '390b34e5-ae39-4387-b7e0-ed24a5d182c9';
58
+ CreateoutbounddialcampaigncaseDto.STEP_TYPE = 'DEFAULT';
54
59
  CreateoutbounddialcampaigncaseDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,112 @@
1
+ /**
2
+ * DefaultCreateOutboundDialCampaign Action DTO
3
+ *
4
+ * DefaultCreateOutboundDialCampaign
5
+ *
6
+ * @module SupportModule
7
+ * @entity OutboundDialCampaign
8
+ * @entityType DEFAULT
9
+ * @actionKey DefaultCreateOutboundDialCampaign
10
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.DefaultCreateOutboundDialCampaign
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for DefaultCreateOutboundDialCampaign created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.DefaultCreateOutboundDialCampaign
19
+ */
20
+ export interface DefaultCreateOutboundDialCampaignMessage extends OdinRecordCreatedEvent<DefaultCreateOutboundDialCampaignDto, DefaultCreateOutboundDialCampaignProperties> {
21
+ }
22
+ /**
23
+ * Properties for DefaultCreateOutboundDialCampaign action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 7
27
+ */
28
+ export interface DefaultCreateOutboundDialCampaignProperties {
29
+ /**
30
+ * CallerId
31
+ *
32
+ * Override Twilio CLI Outbound number in case needed for different campaigns
33
+ * @type {PHONE_NUMBER}
34
+ */
35
+ CallerId?: string | null;
36
+ /**
37
+ * IsActive
38
+ *
39
+ * Inactive campaigns hidden from agents
40
+ * @type {BOOLEAN}
41
+ */
42
+ IsActive?: boolean | null;
43
+ /**
44
+ * MaxRetries
45
+ *
46
+ * MaxRetries
47
+ * @type {NUMBER}
48
+ */
49
+ MaxRetries?: number | null;
50
+ /**
51
+ * RetryIntervalMinutes
52
+ *
53
+ * Minutes before re-queue
54
+ * @type {NUMBER}
55
+ */
56
+ RetryIntervalMinutes?: number | null;
57
+ /**
58
+ * TeamId
59
+ *
60
+ * TeamId
61
+ * @type {LOOKUP}
62
+ */
63
+ TeamId?: string | null;
64
+ /**
65
+ * Name
66
+ *
67
+ * Name
68
+ * @type {TEXT}
69
+ */
70
+ Name?: string | null;
71
+ /**
72
+ * DialMode
73
+ *
74
+ * DialMode
75
+ * @type {ENUM}
76
+ */
77
+ DialMode?: string | null;
78
+ }
79
+ /**
80
+ * DefaultCreateOutboundDialCampaign
81
+ *
82
+ * @actionType CREATE - Creates a new OutboundDialCampaign record
83
+ * @module SupportModule
84
+ * @entity OutboundDialCampaign
85
+ * @entityType DEFAULT (Default)
86
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.DefaultCreateOutboundDialCampaign
87
+ * @permission schema.action.defaultcreateoutbounddialcampaign.trigger
88
+ * @benchmark This action is tracked for performance benchmarks
89
+ */
90
+ export declare class DefaultCreateOutboundDialCampaignDto extends OdinRecordCreateDto<DefaultCreateOutboundDialCampaignProperties> {
91
+ /** Used by SDK generators to identify action type */
92
+ static readonly ACTION_TYPE = "CREATE";
93
+ static readonly ACTION_KEY = "DefaultCreateOutboundDialCampaign";
94
+ static readonly MODULE_NAME = "SupportModule";
95
+ static readonly ENTITIES: string[];
96
+ static readonly ENTITY_TYPE = "DEFAULT";
97
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.DefaultCreateOutboundDialCampaign";
98
+ static readonly PERMISSION = "schema.action.defaultcreateoutbounddialcampaign.trigger";
99
+ /** Step metadata - entity this action targets */
100
+ static readonly STEP_ENTITY = "SupportModule:OutboundDialCampaign";
101
+ static readonly STEP_SCHEMA_ID = "039655e5-c145-4399-a4f5-7b44bcb048ec";
102
+ static readonly STEP_SCHEMA_ACTION_ID = "dfc494c1-2d64-4d6b-9a08-c7ee7e1d1be1";
103
+ static readonly STEP_SCHEMA_TYPE_ID = "2395e0c6-fdb3-4600-8caf-f0678a06ae2e";
104
+ static readonly STEP_TYPE = "DEFAULT";
105
+ static readonly AUTO_LINK_PARENT = true;
106
+ readonly actionName: string;
107
+ readonly schemaActionId: string;
108
+ readonly entity: string;
109
+ constructor(properties: DefaultCreateOutboundDialCampaignProperties, options?: {
110
+ journeyId?: string;
111
+ });
112
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * DefaultCreateOutboundDialCampaign Action DTO
4
+ *
5
+ * DefaultCreateOutboundDialCampaign
6
+ *
7
+ * @module SupportModule
8
+ * @entity OutboundDialCampaign
9
+ * @entityType DEFAULT
10
+ * @actionKey DefaultCreateOutboundDialCampaign
11
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.DefaultCreateOutboundDialCampaign
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DefaultCreateOutboundDialCampaignDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * DefaultCreateOutboundDialCampaign
20
+ *
21
+ * @actionType CREATE - Creates a new OutboundDialCampaign record
22
+ * @module SupportModule
23
+ * @entity OutboundDialCampaign
24
+ * @entityType DEFAULT (Default)
25
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.DefaultCreateOutboundDialCampaign
26
+ * @permission schema.action.defaultcreateoutbounddialcampaign.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class DefaultCreateOutboundDialCampaignDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'SupportModule:OutboundDialCampaign',
33
+ type: 'DEFAULT',
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'DefaultCreateOutboundDialCampaign';
38
+ this.schemaActionId = 'dfc494c1-2d64-4d6b-9a08-c7ee7e1d1be1';
39
+ this.entity = 'SupportModule:OutboundDialCampaign';
40
+ }
41
+ }
42
+ exports.DefaultCreateOutboundDialCampaignDto = DefaultCreateOutboundDialCampaignDto;
43
+ /** Used by SDK generators to identify action type */
44
+ DefaultCreateOutboundDialCampaignDto.ACTION_TYPE = 'CREATE';
45
+ DefaultCreateOutboundDialCampaignDto.ACTION_KEY = 'DefaultCreateOutboundDialCampaign';
46
+ DefaultCreateOutboundDialCampaignDto.MODULE_NAME = 'SupportModule';
47
+ DefaultCreateOutboundDialCampaignDto.ENTITIES = ['OutboundDialCampaign'];
48
+ DefaultCreateOutboundDialCampaignDto.ENTITY_TYPE = 'DEFAULT';
49
+ DefaultCreateOutboundDialCampaignDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Create.DefaultCreateOutboundDialCampaign';
50
+ DefaultCreateOutboundDialCampaignDto.PERMISSION = 'schema.action.defaultcreateoutbounddialcampaign.trigger';
51
+ /** Step metadata - entity this action targets */
52
+ DefaultCreateOutboundDialCampaignDto.STEP_ENTITY = 'SupportModule:OutboundDialCampaign';
53
+ DefaultCreateOutboundDialCampaignDto.STEP_SCHEMA_ID = '039655e5-c145-4399-a4f5-7b44bcb048ec';
54
+ DefaultCreateOutboundDialCampaignDto.STEP_SCHEMA_ACTION_ID = 'dfc494c1-2d64-4d6b-9a08-c7ee7e1d1be1';
55
+ DefaultCreateOutboundDialCampaignDto.STEP_SCHEMA_TYPE_ID = '2395e0c6-fdb3-4600-8caf-f0678a06ae2e';
56
+ DefaultCreateOutboundDialCampaignDto.STEP_TYPE = 'DEFAULT';
57
+ DefaultCreateOutboundDialCampaignDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,117 @@
1
+ /**
2
+ * DefaultUpdateOutboundDialCampaign Action DTO
3
+ *
4
+ * DefaultUpdateOutboundDialCampaign
5
+ *
6
+ * @module SupportModule
7
+ * @entity OutboundDialCampaign
8
+ * @entityType DEFAULT
9
+ * @actionKey DefaultUpdateOutboundDialCampaign
10
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Update.DefaultUpdateOutboundDialCampaign
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for DefaultUpdateOutboundDialCampaign updated events
17
+ *
18
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Update.DefaultUpdateOutboundDialCampaign
19
+ */
20
+ export interface DefaultUpdateOutboundDialCampaignMessage extends OdinRecordUpdatedEvent<DefaultUpdateOutboundDialCampaignDto, DefaultUpdateOutboundDialCampaignProperties> {
21
+ }
22
+ /**
23
+ * Properties for DefaultUpdateOutboundDialCampaign action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 7
27
+ */
28
+ export interface DefaultUpdateOutboundDialCampaignProperties {
29
+ /**
30
+ * DialMode
31
+ *
32
+ * DialMode
33
+ * @type {ENUM}
34
+ */
35
+ DialMode?: string | null;
36
+ /**
37
+ * CallerId
38
+ *
39
+ * Override Twilio CLI Outbound number in case needed for different campaigns
40
+ * @type {PHONE_NUMBER}
41
+ */
42
+ CallerId?: string | null;
43
+ /**
44
+ * MaxRetries
45
+ *
46
+ * MaxRetries
47
+ * @type {NUMBER}
48
+ */
49
+ MaxRetries?: number | null;
50
+ /**
51
+ * RetryIntervalMinutes
52
+ *
53
+ * Minutes before re-queue
54
+ * @type {NUMBER}
55
+ */
56
+ RetryIntervalMinutes?: number | null;
57
+ /**
58
+ * TeamId
59
+ *
60
+ * TeamId
61
+ * @type {LOOKUP}
62
+ */
63
+ TeamId?: string | null;
64
+ /**
65
+ * IsActive
66
+ *
67
+ * Inactive campaigns hidden from agents
68
+ * @type {BOOLEAN}
69
+ */
70
+ IsActive?: boolean | null;
71
+ /**
72
+ * Name
73
+ *
74
+ * Name
75
+ * @type {TEXT}
76
+ */
77
+ Name?: string | null;
78
+ }
79
+ /**
80
+ * DefaultUpdateOutboundDialCampaign
81
+ *
82
+ * @actionType UPDATE - Updates an existing OutboundDialCampaign record
83
+ * @module SupportModule
84
+ * @entity OutboundDialCampaign
85
+ * @entityType DEFAULT (Default)
86
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Update.DefaultUpdateOutboundDialCampaign
87
+ * @permission schema.action.defaultupdateoutbounddialcampaign.trigger
88
+ * @benchmark This action is tracked for performance benchmarks
89
+ */
90
+ export declare class DefaultUpdateOutboundDialCampaignDto extends OdinRecordUpdateDto<DefaultUpdateOutboundDialCampaignProperties> {
91
+ /** Used by SDK generators to identify action type */
92
+ static readonly ACTION_TYPE = "UPDATE";
93
+ static readonly ACTION_KEY = "DefaultUpdateOutboundDialCampaign";
94
+ static readonly MODULE_NAME = "SupportModule";
95
+ static readonly ENTITIES: string[];
96
+ static readonly ENTITY_TYPE = "DEFAULT";
97
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Update.DefaultUpdateOutboundDialCampaign";
98
+ static readonly PERMISSION = "schema.action.defaultupdateoutbounddialcampaign.trigger";
99
+ /** Step metadata - entity this action targets */
100
+ static readonly STEP_ENTITY = "SupportModule:OutboundDialCampaign";
101
+ static readonly STEP_SCHEMA_ID = "039655e5-c145-4399-a4f5-7b44bcb048ec";
102
+ static readonly STEP_SCHEMA_ACTION_ID = "8e0dee41-ef68-4b9f-b421-5e7eed234ca0";
103
+ static readonly STEP_SCHEMA_TYPE_ID = "2395e0c6-fdb3-4600-8caf-f0678a06ae2e";
104
+ static readonly STEP_TYPE = "DEFAULT";
105
+ static readonly AUTO_LINK_PARENT = false;
106
+ readonly actionName: string;
107
+ readonly schemaActionId: string;
108
+ readonly entity: string;
109
+ constructor(record: OdinRecord<any> | {
110
+ id: string;
111
+ entity: string;
112
+ type?: string;
113
+ }, properties: DefaultUpdateOutboundDialCampaignProperties, options?: {
114
+ journeyId?: string;
115
+ stageKey?: string;
116
+ });
117
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * DefaultUpdateOutboundDialCampaign Action DTO
4
+ *
5
+ * DefaultUpdateOutboundDialCampaign
6
+ *
7
+ * @module SupportModule
8
+ * @entity OutboundDialCampaign
9
+ * @entityType DEFAULT
10
+ * @actionKey DefaultUpdateOutboundDialCampaign
11
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Update.DefaultUpdateOutboundDialCampaign
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DefaultUpdateOutboundDialCampaignDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * DefaultUpdateOutboundDialCampaign
20
+ *
21
+ * @actionType UPDATE - Updates an existing OutboundDialCampaign record
22
+ * @module SupportModule
23
+ * @entity OutboundDialCampaign
24
+ * @entityType DEFAULT (Default)
25
+ * @event k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Update.DefaultUpdateOutboundDialCampaign
26
+ * @permission schema.action.defaultupdateoutbounddialcampaign.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class DefaultUpdateOutboundDialCampaignDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'DefaultUpdateOutboundDialCampaign';
40
+ this.schemaActionId = '8e0dee41-ef68-4b9f-b421-5e7eed234ca0';
41
+ this.entity = 'SupportModule:OutboundDialCampaign';
42
+ }
43
+ }
44
+ exports.DefaultUpdateOutboundDialCampaignDto = DefaultUpdateOutboundDialCampaignDto;
45
+ /** Used by SDK generators to identify action type */
46
+ DefaultUpdateOutboundDialCampaignDto.ACTION_TYPE = 'UPDATE';
47
+ DefaultUpdateOutboundDialCampaignDto.ACTION_KEY = 'DefaultUpdateOutboundDialCampaign';
48
+ DefaultUpdateOutboundDialCampaignDto.MODULE_NAME = 'SupportModule';
49
+ DefaultUpdateOutboundDialCampaignDto.ENTITIES = ['OutboundDialCampaign'];
50
+ DefaultUpdateOutboundDialCampaignDto.ENTITY_TYPE = 'DEFAULT';
51
+ DefaultUpdateOutboundDialCampaignDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.OutboundDialCampaign.Update.DefaultUpdateOutboundDialCampaign';
52
+ DefaultUpdateOutboundDialCampaignDto.PERMISSION = 'schema.action.defaultupdateoutbounddialcampaign.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ DefaultUpdateOutboundDialCampaignDto.STEP_ENTITY = 'SupportModule:OutboundDialCampaign';
55
+ DefaultUpdateOutboundDialCampaignDto.STEP_SCHEMA_ID = '039655e5-c145-4399-a4f5-7b44bcb048ec';
56
+ DefaultUpdateOutboundDialCampaignDto.STEP_SCHEMA_ACTION_ID = '8e0dee41-ef68-4b9f-b421-5e7eed234ca0';
57
+ DefaultUpdateOutboundDialCampaignDto.STEP_SCHEMA_TYPE_ID = '2395e0c6-fdb3-4600-8caf-f0678a06ae2e';
58
+ DefaultUpdateOutboundDialCampaignDto.STEP_TYPE = 'DEFAULT';
59
+ DefaultUpdateOutboundDialCampaignDto.AUTO_LINK_PARENT = false;