@d19n/youfibre-odin-sdk 2.0.143 → 2.0.145

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 (69) hide show
  1. package/README.md +19 -3
  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/TwilioCallEventsAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/TwilioCallEventsAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +4 -2
  12. package/dist/actions-v2/CloseAndMergeCaseActionDto.d.ts +92 -0
  13. package/dist/actions-v2/CloseAndMergeCaseActionDto.js +61 -0
  14. package/dist/actions-v2/CloseAndMergeCaseDto.d.ts +190 -0
  15. package/dist/actions-v2/CloseAndMergeCaseDto.js +126 -0
  16. package/dist/actions-v2/CreateCaseWithDpaDto.d.ts +16 -10
  17. package/dist/actions-v2/CreateInboundCallEventDto.d.ts +121 -0
  18. package/dist/actions-v2/CreateInboundCallEventDto.js +59 -0
  19. package/dist/actions-v2/CreateInboundCallStatusUpdateEventDto.d.ts +113 -0
  20. package/dist/actions-v2/CreateInboundCallStatusUpdateEventDto.js +59 -0
  21. package/dist/actions-v2/CreateNumberCallStatusEventDto.d.ts +105 -0
  22. package/dist/actions-v2/CreateNumberCallStatusEventDto.js +59 -0
  23. package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +116 -0
  24. package/dist/actions-v2/CreateOutboundCallEventDto.js +54 -0
  25. package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.d.ts +113 -0
  26. package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.js +59 -0
  27. package/dist/actions-v2/CreateOutboundDialActionEventDto.d.ts +113 -0
  28. package/dist/actions-v2/CreateOutboundDialActionEventDto.js +59 -0
  29. package/dist/actions-v2/MoveAccountCreditToCancelledDto.d.ts +1 -48
  30. package/dist/actions-v2/MoveAccountCreditToCancelledDto.js +1 -21
  31. package/dist/actions-v2/MoveAccountCreditToCompleteDto.d.ts +1 -48
  32. package/dist/actions-v2/MoveAccountCreditToCompleteDto.js +1 -21
  33. package/dist/actions-v2/MoveAccountCreditToInProgressDto.d.ts +1 -48
  34. package/dist/actions-v2/MoveAccountCreditToInProgressDto.js +1 -21
  35. package/dist/actions-v2/MoveAccountCreditToPendingDto.d.ts +1 -48
  36. package/dist/actions-v2/MoveAccountCreditToPendingDto.js +1 -21
  37. package/dist/actions-v2/MoveAccountCreditToVoidDto.d.ts +1 -48
  38. package/dist/actions-v2/MoveAccountCreditToVoidDto.js +1 -21
  39. package/dist/api-sdk-v2/CallApi.d.ts +2 -0
  40. package/dist/api-sdk-v2/CallApi.js +6 -0
  41. package/dist/api-sdk-v2/TwilioCallEventsApi.d.ts +48 -0
  42. package/dist/api-sdk-v2/TwilioCallEventsApi.js +155 -0
  43. package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.d.ts +149 -0
  44. package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.js +227 -0
  45. package/dist/db-accessors-v2/index.d.ts +1 -0
  46. package/dist/db-accessors-v2/index.js +4 -2
  47. package/dist/db-sdk-v2/CallDb.d.ts +2 -0
  48. package/dist/db-sdk-v2/CallDb.js +6 -0
  49. package/dist/db-sdk-v2/TwilioCallEventsDb.d.ts +120 -0
  50. package/dist/db-sdk-v2/TwilioCallEventsDb.js +204 -0
  51. package/dist/entities-v2/Call.d.ts +7 -0
  52. package/dist/entities-v2/Call.js +5 -1
  53. package/dist/entities-v2/CallEvent.d.ts +67 -1
  54. package/dist/entities-v2/CallEvent.js +9 -1
  55. package/dist/entities-v2/Case.d.ts +12 -0
  56. package/dist/entities-v2/Case.js +2 -0
  57. package/dist/entities-v2/TwilioCallEvents.d.ts +433 -0
  58. package/dist/entities-v2/TwilioCallEvents.js +135 -0
  59. package/dist/records-v2/CallEventRecord.d.ts +19 -3
  60. package/dist/records-v2/CallEventRecord.js +17 -1
  61. package/dist/records-v2/CallRecord.d.ts +20 -0
  62. package/dist/records-v2/CallRecord.js +33 -0
  63. package/dist/records-v2/CaseRecord.d.ts +114 -0
  64. package/dist/records-v2/CaseRecord.js +173 -1
  65. package/dist/records-v2/TwilioCallEventsRecord.d.ts +430 -0
  66. package/dist/records-v2/TwilioCallEventsRecord.js +540 -0
  67. package/dist/records-v2/index.d.ts +1 -0
  68. package/dist/records-v2/index.js +6 -3
  69. package/package.json +1 -1
@@ -0,0 +1,113 @@
1
+ /**
2
+ * CreateInboundCallStatusUpdateEvent Action DTO
3
+ *
4
+ * Create inbound call status update event
5
+ *
6
+ * @module NotificationModule
7
+ * @entity TwilioCallEvents
8
+ * @entityType INBOUND_CALL_STATUS_UPDATE_EVENT
9
+ * @actionKey CreateInboundCallStatusUpdateEvent
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent
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 CreateInboundCallStatusUpdateEvent created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent
19
+ */
20
+ export interface CreateInboundCallStatusUpdateEventMessage extends OdinRecordCreatedEvent<CreateInboundCallStatusUpdateEventDto, CreateInboundCallStatusUpdateEventProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateInboundCallStatusUpdateEvent action
24
+ *
25
+ * @property Required fields: 6
26
+ * @property Optional fields: 0
27
+ */
28
+ export interface CreateInboundCallStatusUpdateEventProperties {
29
+ /**
30
+ * CallSid
31
+ *
32
+ * Twilio id of the call
33
+ * @type {TEXT}
34
+ * @required
35
+ */
36
+ CallSid: string;
37
+ /**
38
+ * CallId
39
+ *
40
+ * Reference of the call record
41
+ * @type {LOOKUP}
42
+ * @required
43
+ */
44
+ CallId: string;
45
+ /**
46
+ * Query
47
+ *
48
+ * Query parameters of the request received from Twilio
49
+ * @type {JSON}
50
+ * @required
51
+ */
52
+ Query: string;
53
+ /**
54
+ * Body
55
+ *
56
+ * Body of the request received from Twilio
57
+ * @type {JSON}
58
+ * @required
59
+ */
60
+ Body: string;
61
+ /**
62
+ * ReceivedAt
63
+ *
64
+ * Moment of storing the event in odin
65
+ * @type {DATE_TIME}
66
+ * @required
67
+ */
68
+ ReceivedAt: string;
69
+ /**
70
+ * Title
71
+ *
72
+ * Title of twilio call event record
73
+ * @type {TEXT}
74
+ * @required
75
+ */
76
+ Title: string;
77
+ }
78
+ /**
79
+ * CreateInboundCallStatusUpdateEvent
80
+ *
81
+ * Create inbound call status update event
82
+ *
83
+ * @actionType CREATE - Creates a new TwilioCallEvents record
84
+ * @module NotificationModule
85
+ * @entity TwilioCallEvents
86
+ * @entityType INBOUND_CALL_STATUS_UPDATE_EVENT (INBOUND_CALL_STATUS_UPDATE_EVENT)
87
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent
88
+ * @permission schema.action.createinboundcallstatusupdateevent.trigger
89
+ * @benchmark This action is tracked for performance benchmarks
90
+ */
91
+ export declare class CreateInboundCallStatusUpdateEventDto extends OdinRecordCreateDto<CreateInboundCallStatusUpdateEventProperties> {
92
+ /** Used by SDK generators to identify action type */
93
+ static readonly ACTION_TYPE = "CREATE";
94
+ static readonly ACTION_KEY = "CreateInboundCallStatusUpdateEvent";
95
+ static readonly MODULE_NAME = "NotificationModule";
96
+ static readonly ENTITIES: string[];
97
+ static readonly ENTITY_TYPE = "INBOUND_CALL_STATUS_UPDATE_EVENT";
98
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent";
99
+ static readonly PERMISSION = "schema.action.createinboundcallstatusupdateevent.trigger";
100
+ /** Step metadata - entity this action targets */
101
+ static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvents";
102
+ static readonly STEP_SCHEMA_ID = "dff5448f-59f1-42dd-b6c8-f6ab4789b447";
103
+ static readonly STEP_SCHEMA_ACTION_ID = "560a05c9-c0fb-472d-a2d7-f8671b090d18";
104
+ static readonly STEP_SCHEMA_TYPE_ID = "6bc39832-3ee7-47db-85ad-169546464619";
105
+ static readonly STEP_TYPE = "INBOUND_CALL_STATUS_UPDATE_EVENT";
106
+ static readonly AUTO_LINK_PARENT = true;
107
+ readonly actionName: string;
108
+ readonly schemaActionId: string;
109
+ readonly entity: string;
110
+ constructor(properties: CreateInboundCallStatusUpdateEventProperties, options?: {
111
+ journeyId?: string;
112
+ });
113
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateInboundCallStatusUpdateEvent Action DTO
4
+ *
5
+ * Create inbound call status update event
6
+ *
7
+ * @module NotificationModule
8
+ * @entity TwilioCallEvents
9
+ * @entityType INBOUND_CALL_STATUS_UPDATE_EVENT
10
+ * @actionKey CreateInboundCallStatusUpdateEvent
11
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateInboundCallStatusUpdateEventDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateInboundCallStatusUpdateEvent
20
+ *
21
+ * Create inbound call status update event
22
+ *
23
+ * @actionType CREATE - Creates a new TwilioCallEvents record
24
+ * @module NotificationModule
25
+ * @entity TwilioCallEvents
26
+ * @entityType INBOUND_CALL_STATUS_UPDATE_EVENT (INBOUND_CALL_STATUS_UPDATE_EVENT)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent
28
+ * @permission schema.action.createinboundcallstatusupdateevent.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateInboundCallStatusUpdateEventDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:TwilioCallEvents',
35
+ type: 'INBOUND_CALL_STATUS_UPDATE_EVENT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateInboundCallStatusUpdateEvent';
40
+ this.schemaActionId = '560a05c9-c0fb-472d-a2d7-f8671b090d18';
41
+ this.entity = 'NotificationModule:TwilioCallEvents';
42
+ }
43
+ }
44
+ exports.CreateInboundCallStatusUpdateEventDto = CreateInboundCallStatusUpdateEventDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateInboundCallStatusUpdateEventDto.ACTION_TYPE = 'CREATE';
47
+ CreateInboundCallStatusUpdateEventDto.ACTION_KEY = 'CreateInboundCallStatusUpdateEvent';
48
+ CreateInboundCallStatusUpdateEventDto.MODULE_NAME = 'NotificationModule';
49
+ CreateInboundCallStatusUpdateEventDto.ENTITIES = ['TwilioCallEvents'];
50
+ CreateInboundCallStatusUpdateEventDto.ENTITY_TYPE = 'INBOUND_CALL_STATUS_UPDATE_EVENT';
51
+ CreateInboundCallStatusUpdateEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent';
52
+ CreateInboundCallStatusUpdateEventDto.PERMISSION = 'schema.action.createinboundcallstatusupdateevent.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateInboundCallStatusUpdateEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
55
+ CreateInboundCallStatusUpdateEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
56
+ CreateInboundCallStatusUpdateEventDto.STEP_SCHEMA_ACTION_ID = '560a05c9-c0fb-472d-a2d7-f8671b090d18';
57
+ CreateInboundCallStatusUpdateEventDto.STEP_SCHEMA_TYPE_ID = '6bc39832-3ee7-47db-85ad-169546464619';
58
+ CreateInboundCallStatusUpdateEventDto.STEP_TYPE = 'INBOUND_CALL_STATUS_UPDATE_EVENT';
59
+ CreateInboundCallStatusUpdateEventDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,105 @@
1
+ /**
2
+ * CreateNumberCallStatusEvent Action DTO
3
+ *
4
+ * Create number call status event
5
+ *
6
+ * @module NotificationModule
7
+ * @entity TwilioCallEvents
8
+ * @entityType NUMBER_CALL_STATUS_EVENT
9
+ * @actionKey CreateNumberCallStatusEvent
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent
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 CreateNumberCallStatusEvent created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent
19
+ */
20
+ export interface CreateNumberCallStatusEventMessage extends OdinRecordCreatedEvent<CreateNumberCallStatusEventDto, CreateNumberCallStatusEventProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateNumberCallStatusEvent action
24
+ *
25
+ * @property Required fields: 5
26
+ * @property Optional fields: 0
27
+ */
28
+ export interface CreateNumberCallStatusEventProperties {
29
+ /**
30
+ * CallId
31
+ *
32
+ * Reference of the call record
33
+ * @type {LOOKUP}
34
+ * @required
35
+ */
36
+ CallId: string;
37
+ /**
38
+ * CallSid
39
+ *
40
+ * Twilio id of the call
41
+ * @type {TEXT}
42
+ * @required
43
+ */
44
+ CallSid: string;
45
+ /**
46
+ * Body
47
+ *
48
+ * Body of the request received from Twilio
49
+ * @type {JSON}
50
+ * @required
51
+ */
52
+ Body: string;
53
+ /**
54
+ * ReceivedAt
55
+ *
56
+ * Moment of storing the event in odin
57
+ * @type {DATE_TIME}
58
+ * @required
59
+ */
60
+ ReceivedAt: string;
61
+ /**
62
+ * Title
63
+ *
64
+ * Title of twilio call event record
65
+ * @type {TEXT}
66
+ * @required
67
+ */
68
+ Title: string;
69
+ }
70
+ /**
71
+ * CreateNumberCallStatusEvent
72
+ *
73
+ * Create number call status event
74
+ *
75
+ * @actionType CREATE - Creates a new TwilioCallEvents record
76
+ * @module NotificationModule
77
+ * @entity TwilioCallEvents
78
+ * @entityType NUMBER_CALL_STATUS_EVENT (NUMBER_CALL_STATUS_EVENT)
79
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent
80
+ * @permission schema.action.createnumbercallstatusevent.trigger
81
+ * @benchmark This action is tracked for performance benchmarks
82
+ */
83
+ export declare class CreateNumberCallStatusEventDto extends OdinRecordCreateDto<CreateNumberCallStatusEventProperties> {
84
+ /** Used by SDK generators to identify action type */
85
+ static readonly ACTION_TYPE = "CREATE";
86
+ static readonly ACTION_KEY = "CreateNumberCallStatusEvent";
87
+ static readonly MODULE_NAME = "NotificationModule";
88
+ static readonly ENTITIES: string[];
89
+ static readonly ENTITY_TYPE = "NUMBER_CALL_STATUS_EVENT";
90
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent";
91
+ static readonly PERMISSION = "schema.action.createnumbercallstatusevent.trigger";
92
+ /** Step metadata - entity this action targets */
93
+ static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvents";
94
+ static readonly STEP_SCHEMA_ID = "dff5448f-59f1-42dd-b6c8-f6ab4789b447";
95
+ static readonly STEP_SCHEMA_ACTION_ID = "bcd78567-c88b-44f5-b20a-7b9e7618364a";
96
+ static readonly STEP_SCHEMA_TYPE_ID = "fbb07811-9180-417e-8f12-b13815c5ad6f";
97
+ static readonly STEP_TYPE = "NUMBER_CALL_STATUS_EVENT";
98
+ static readonly AUTO_LINK_PARENT = true;
99
+ readonly actionName: string;
100
+ readonly schemaActionId: string;
101
+ readonly entity: string;
102
+ constructor(properties: CreateNumberCallStatusEventProperties, options?: {
103
+ journeyId?: string;
104
+ });
105
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateNumberCallStatusEvent Action DTO
4
+ *
5
+ * Create number call status event
6
+ *
7
+ * @module NotificationModule
8
+ * @entity TwilioCallEvents
9
+ * @entityType NUMBER_CALL_STATUS_EVENT
10
+ * @actionKey CreateNumberCallStatusEvent
11
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateNumberCallStatusEventDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateNumberCallStatusEvent
20
+ *
21
+ * Create number call status event
22
+ *
23
+ * @actionType CREATE - Creates a new TwilioCallEvents record
24
+ * @module NotificationModule
25
+ * @entity TwilioCallEvents
26
+ * @entityType NUMBER_CALL_STATUS_EVENT (NUMBER_CALL_STATUS_EVENT)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent
28
+ * @permission schema.action.createnumbercallstatusevent.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateNumberCallStatusEventDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:TwilioCallEvents',
35
+ type: 'NUMBER_CALL_STATUS_EVENT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateNumberCallStatusEvent';
40
+ this.schemaActionId = 'bcd78567-c88b-44f5-b20a-7b9e7618364a';
41
+ this.entity = 'NotificationModule:TwilioCallEvents';
42
+ }
43
+ }
44
+ exports.CreateNumberCallStatusEventDto = CreateNumberCallStatusEventDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateNumberCallStatusEventDto.ACTION_TYPE = 'CREATE';
47
+ CreateNumberCallStatusEventDto.ACTION_KEY = 'CreateNumberCallStatusEvent';
48
+ CreateNumberCallStatusEventDto.MODULE_NAME = 'NotificationModule';
49
+ CreateNumberCallStatusEventDto.ENTITIES = ['TwilioCallEvents'];
50
+ CreateNumberCallStatusEventDto.ENTITY_TYPE = 'NUMBER_CALL_STATUS_EVENT';
51
+ CreateNumberCallStatusEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent';
52
+ CreateNumberCallStatusEventDto.PERMISSION = 'schema.action.createnumbercallstatusevent.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateNumberCallStatusEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
55
+ CreateNumberCallStatusEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
56
+ CreateNumberCallStatusEventDto.STEP_SCHEMA_ACTION_ID = 'bcd78567-c88b-44f5-b20a-7b9e7618364a';
57
+ CreateNumberCallStatusEventDto.STEP_SCHEMA_TYPE_ID = 'fbb07811-9180-417e-8f12-b13815c5ad6f';
58
+ CreateNumberCallStatusEventDto.STEP_TYPE = 'NUMBER_CALL_STATUS_EVENT';
59
+ CreateNumberCallStatusEventDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,116 @@
1
+ /**
2
+ * CreateOutboundCallEvent Action DTO
3
+ *
4
+ * Create outbound call event
5
+ *
6
+ * @module NotificationModule
7
+ * @entity TwilioCallEvents
8
+ * @actionKey CreateOutboundCallEvent
9
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateOutboundCallEvent created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
18
+ */
19
+ export interface CreateOutboundCallEventMessage extends OdinRecordCreatedEvent<CreateOutboundCallEventDto, CreateOutboundCallEventProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateOutboundCallEvent action
23
+ *
24
+ * @property Required fields: 7
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface CreateOutboundCallEventProperties {
28
+ /**
29
+ * CallId
30
+ *
31
+ * Reference of the call record
32
+ * @type {LOOKUP}
33
+ * @required
34
+ */
35
+ CallId: string;
36
+ /**
37
+ * CallSid
38
+ *
39
+ * Twilio id of the call
40
+ * @type {TEXT}
41
+ * @required
42
+ */
43
+ CallSid: string;
44
+ /**
45
+ * Query
46
+ *
47
+ * Query parameters of the request received from Twilio
48
+ * @type {JSON}
49
+ * @required
50
+ */
51
+ Query: string;
52
+ /**
53
+ * Body
54
+ *
55
+ * Body of the request received from Twilio
56
+ * @type {JSON}
57
+ * @required
58
+ */
59
+ Body: string;
60
+ /**
61
+ * WebhookSource
62
+ *
63
+ * Source of the captured event
64
+ * @type {ENUM}
65
+ * @required
66
+ */
67
+ WebhookSource: string;
68
+ /**
69
+ * ReceivedAt
70
+ *
71
+ * Moment of storing the event in odin
72
+ * @type {DATE_TIME}
73
+ * @required
74
+ */
75
+ ReceivedAt: string;
76
+ /**
77
+ * Title
78
+ *
79
+ * Title of twilio call event record
80
+ * @type {TEXT}
81
+ * @required
82
+ */
83
+ Title: string;
84
+ }
85
+ /**
86
+ * CreateOutboundCallEvent
87
+ *
88
+ * Create outbound call event
89
+ *
90
+ * @actionType CREATE - Creates a new TwilioCallEvents record
91
+ * @module NotificationModule
92
+ * @entity TwilioCallEvents
93
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
94
+ * @permission schema.action.createoutboundcallevent.trigger
95
+ * @benchmark This action is tracked for performance benchmarks
96
+ */
97
+ export declare class CreateOutboundCallEventDto extends OdinRecordCreateDto<CreateOutboundCallEventProperties> {
98
+ /** Used by SDK generators to identify action type */
99
+ static readonly ACTION_TYPE = "CREATE";
100
+ static readonly ACTION_KEY = "CreateOutboundCallEvent";
101
+ static readonly MODULE_NAME = "NotificationModule";
102
+ static readonly ENTITIES: string[];
103
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent";
104
+ static readonly PERMISSION = "schema.action.createoutboundcallevent.trigger";
105
+ /** Step metadata - entity this action targets */
106
+ static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvents";
107
+ static readonly STEP_SCHEMA_ID = "dff5448f-59f1-42dd-b6c8-f6ab4789b447";
108
+ static readonly STEP_SCHEMA_ACTION_ID = "f8f154c3-505d-4dab-b982-4c62e3e393c9";
109
+ static readonly AUTO_LINK_PARENT = true;
110
+ readonly actionName: string;
111
+ readonly schemaActionId: string;
112
+ readonly entity: string;
113
+ constructor(properties: CreateOutboundCallEventProperties, options?: {
114
+ journeyId?: string;
115
+ });
116
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOutboundCallEvent Action DTO
4
+ *
5
+ * Create outbound call event
6
+ *
7
+ * @module NotificationModule
8
+ * @entity TwilioCallEvents
9
+ * @actionKey CreateOutboundCallEvent
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateOutboundCallEventDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateOutboundCallEvent
19
+ *
20
+ * Create outbound call event
21
+ *
22
+ * @actionType CREATE - Creates a new TwilioCallEvents record
23
+ * @module NotificationModule
24
+ * @entity TwilioCallEvents
25
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
26
+ * @permission schema.action.createoutboundcallevent.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateOutboundCallEventDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'NotificationModule:TwilioCallEvents',
33
+ type: undefined,
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateOutboundCallEvent';
38
+ this.schemaActionId = 'f8f154c3-505d-4dab-b982-4c62e3e393c9';
39
+ this.entity = 'NotificationModule:TwilioCallEvents';
40
+ }
41
+ }
42
+ exports.CreateOutboundCallEventDto = CreateOutboundCallEventDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateOutboundCallEventDto.ACTION_TYPE = 'CREATE';
45
+ CreateOutboundCallEventDto.ACTION_KEY = 'CreateOutboundCallEvent';
46
+ CreateOutboundCallEventDto.MODULE_NAME = 'NotificationModule';
47
+ CreateOutboundCallEventDto.ENTITIES = ['TwilioCallEvents'];
48
+ CreateOutboundCallEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent';
49
+ CreateOutboundCallEventDto.PERMISSION = 'schema.action.createoutboundcallevent.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ CreateOutboundCallEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
52
+ CreateOutboundCallEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
53
+ CreateOutboundCallEventDto.STEP_SCHEMA_ACTION_ID = 'f8f154c3-505d-4dab-b982-4c62e3e393c9';
54
+ CreateOutboundCallEventDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,113 @@
1
+ /**
2
+ * CreateOutboundCallStatusUpdateEvent Action DTO
3
+ *
4
+ * Create outbound call status update event
5
+ *
6
+ * @module NotificationModule
7
+ * @entity TwilioCallEvents
8
+ * @entityType OUTBOUND_CALL_STATUS_UPDATE_EVENT
9
+ * @actionKey CreateOutboundCallStatusUpdateEvent
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent
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 CreateOutboundCallStatusUpdateEvent created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent
19
+ */
20
+ export interface CreateOutboundCallStatusUpdateEventMessage extends OdinRecordCreatedEvent<CreateOutboundCallStatusUpdateEventDto, CreateOutboundCallStatusUpdateEventProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateOutboundCallStatusUpdateEvent action
24
+ *
25
+ * @property Required fields: 6
26
+ * @property Optional fields: 0
27
+ */
28
+ export interface CreateOutboundCallStatusUpdateEventProperties {
29
+ /**
30
+ * CallId
31
+ *
32
+ * Reference of the call record
33
+ * @type {LOOKUP}
34
+ * @required
35
+ */
36
+ CallId: string;
37
+ /**
38
+ * CallSid
39
+ *
40
+ * Twilio id of the call
41
+ * @type {TEXT}
42
+ * @required
43
+ */
44
+ CallSid: string;
45
+ /**
46
+ * Body
47
+ *
48
+ * Body of the request received from Twilio
49
+ * @type {JSON}
50
+ * @required
51
+ */
52
+ Body: string;
53
+ /**
54
+ * Query
55
+ *
56
+ * Query parameters of the request received from Twilio
57
+ * @type {JSON}
58
+ * @required
59
+ */
60
+ Query: string;
61
+ /**
62
+ * ReceivedAt
63
+ *
64
+ * Moment of storing the event in odin
65
+ * @type {DATE_TIME}
66
+ * @required
67
+ */
68
+ ReceivedAt: string;
69
+ /**
70
+ * Title
71
+ *
72
+ * Title of twilio call event record
73
+ * @type {TEXT}
74
+ * @required
75
+ */
76
+ Title: string;
77
+ }
78
+ /**
79
+ * CreateOutboundCallStatusUpdateEvent
80
+ *
81
+ * Create outbound call status update event
82
+ *
83
+ * @actionType CREATE - Creates a new TwilioCallEvents record
84
+ * @module NotificationModule
85
+ * @entity TwilioCallEvents
86
+ * @entityType OUTBOUND_CALL_STATUS_UPDATE_EVENT (OUTBOUND_CALL_STATUS_UPDATE_EVENT)
87
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent
88
+ * @permission schema.action.createoutboundcallstatusupdateevent.trigger
89
+ * @benchmark This action is tracked for performance benchmarks
90
+ */
91
+ export declare class CreateOutboundCallStatusUpdateEventDto extends OdinRecordCreateDto<CreateOutboundCallStatusUpdateEventProperties> {
92
+ /** Used by SDK generators to identify action type */
93
+ static readonly ACTION_TYPE = "CREATE";
94
+ static readonly ACTION_KEY = "CreateOutboundCallStatusUpdateEvent";
95
+ static readonly MODULE_NAME = "NotificationModule";
96
+ static readonly ENTITIES: string[];
97
+ static readonly ENTITY_TYPE = "OUTBOUND_CALL_STATUS_UPDATE_EVENT";
98
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent";
99
+ static readonly PERMISSION = "schema.action.createoutboundcallstatusupdateevent.trigger";
100
+ /** Step metadata - entity this action targets */
101
+ static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvents";
102
+ static readonly STEP_SCHEMA_ID = "dff5448f-59f1-42dd-b6c8-f6ab4789b447";
103
+ static readonly STEP_SCHEMA_ACTION_ID = "1ab1f738-7a6f-45c9-9f17-928ea6bf8d52";
104
+ static readonly STEP_SCHEMA_TYPE_ID = "a6c1301b-ada9-4a57-940d-1afc3d643a76";
105
+ static readonly STEP_TYPE = "OUTBOUND_CALL_STATUS_UPDATE_EVENT";
106
+ static readonly AUTO_LINK_PARENT = true;
107
+ readonly actionName: string;
108
+ readonly schemaActionId: string;
109
+ readonly entity: string;
110
+ constructor(properties: CreateOutboundCallStatusUpdateEventProperties, options?: {
111
+ journeyId?: string;
112
+ });
113
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOutboundCallStatusUpdateEvent Action DTO
4
+ *
5
+ * Create outbound call status update event
6
+ *
7
+ * @module NotificationModule
8
+ * @entity TwilioCallEvents
9
+ * @entityType OUTBOUND_CALL_STATUS_UPDATE_EVENT
10
+ * @actionKey CreateOutboundCallStatusUpdateEvent
11
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateOutboundCallStatusUpdateEventDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateOutboundCallStatusUpdateEvent
20
+ *
21
+ * Create outbound call status update event
22
+ *
23
+ * @actionType CREATE - Creates a new TwilioCallEvents record
24
+ * @module NotificationModule
25
+ * @entity TwilioCallEvents
26
+ * @entityType OUTBOUND_CALL_STATUS_UPDATE_EVENT (OUTBOUND_CALL_STATUS_UPDATE_EVENT)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent
28
+ * @permission schema.action.createoutboundcallstatusupdateevent.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateOutboundCallStatusUpdateEventDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:TwilioCallEvents',
35
+ type: 'OUTBOUND_CALL_STATUS_UPDATE_EVENT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateOutboundCallStatusUpdateEvent';
40
+ this.schemaActionId = '1ab1f738-7a6f-45c9-9f17-928ea6bf8d52';
41
+ this.entity = 'NotificationModule:TwilioCallEvents';
42
+ }
43
+ }
44
+ exports.CreateOutboundCallStatusUpdateEventDto = CreateOutboundCallStatusUpdateEventDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateOutboundCallStatusUpdateEventDto.ACTION_TYPE = 'CREATE';
47
+ CreateOutboundCallStatusUpdateEventDto.ACTION_KEY = 'CreateOutboundCallStatusUpdateEvent';
48
+ CreateOutboundCallStatusUpdateEventDto.MODULE_NAME = 'NotificationModule';
49
+ CreateOutboundCallStatusUpdateEventDto.ENTITIES = ['TwilioCallEvents'];
50
+ CreateOutboundCallStatusUpdateEventDto.ENTITY_TYPE = 'OUTBOUND_CALL_STATUS_UPDATE_EVENT';
51
+ CreateOutboundCallStatusUpdateEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent';
52
+ CreateOutboundCallStatusUpdateEventDto.PERMISSION = 'schema.action.createoutboundcallstatusupdateevent.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateOutboundCallStatusUpdateEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
55
+ CreateOutboundCallStatusUpdateEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
56
+ CreateOutboundCallStatusUpdateEventDto.STEP_SCHEMA_ACTION_ID = '1ab1f738-7a6f-45c9-9f17-928ea6bf8d52';
57
+ CreateOutboundCallStatusUpdateEventDto.STEP_SCHEMA_TYPE_ID = 'a6c1301b-ada9-4a57-940d-1afc3d643a76';
58
+ CreateOutboundCallStatusUpdateEventDto.STEP_TYPE = 'OUTBOUND_CALL_STATUS_UPDATE_EVENT';
59
+ CreateOutboundCallStatusUpdateEventDto.AUTO_LINK_PARENT = true;