@d19n/youfibre-odin-sdk 2.0.142 → 2.0.144

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 (48) hide show
  1. package/README.md +14 -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/CreateInboundCallStatusUpdateEventDto.d.ts +113 -0
  13. package/dist/actions-v2/CreateInboundCallStatusUpdateEventDto.js +59 -0
  14. package/dist/actions-v2/CreateNumberCallStatusEventDto.d.ts +105 -0
  15. package/dist/actions-v2/CreateNumberCallStatusEventDto.js +59 -0
  16. package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.d.ts +113 -0
  17. package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.js +59 -0
  18. package/dist/actions-v2/CreateOutboundDialActionEventDto.d.ts +113 -0
  19. package/dist/actions-v2/CreateOutboundDialActionEventDto.js +59 -0
  20. package/dist/actions-v2/UpdateCallOnTaskCanceledDto.d.ts +66 -0
  21. package/dist/actions-v2/UpdateCallOnTaskCanceledDto.js +52 -0
  22. package/dist/api-sdk-v2/CallApi.d.ts +2 -0
  23. package/dist/api-sdk-v2/CallApi.js +6 -0
  24. package/dist/api-sdk-v2/TwilioCallEventsApi.d.ts +48 -0
  25. package/dist/api-sdk-v2/TwilioCallEventsApi.js +155 -0
  26. package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.d.ts +149 -0
  27. package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.js +227 -0
  28. package/dist/db-accessors-v2/index.d.ts +1 -0
  29. package/dist/db-accessors-v2/index.js +4 -2
  30. package/dist/db-sdk-v2/CallDb.d.ts +2 -0
  31. package/dist/db-sdk-v2/CallDb.js +6 -0
  32. package/dist/db-sdk-v2/TwilioCallEventsDb.d.ts +120 -0
  33. package/dist/db-sdk-v2/TwilioCallEventsDb.js +204 -0
  34. package/dist/entities-v2/Call.d.ts +7 -0
  35. package/dist/entities-v2/Call.js +5 -1
  36. package/dist/entities-v2/CallEvent.d.ts +67 -1
  37. package/dist/entities-v2/CallEvent.js +9 -1
  38. package/dist/entities-v2/TwilioCallEvents.d.ts +282 -0
  39. package/dist/entities-v2/TwilioCallEvents.js +99 -0
  40. package/dist/records-v2/CallEventRecord.d.ts +19 -3
  41. package/dist/records-v2/CallEventRecord.js +17 -1
  42. package/dist/records-v2/CallRecord.d.ts +49 -0
  43. package/dist/records-v2/CallRecord.js +69 -0
  44. package/dist/records-v2/TwilioCallEventsRecord.d.ts +340 -0
  45. package/dist/records-v2/TwilioCallEventsRecord.js +436 -0
  46. package/dist/records-v2/index.d.ts +1 -0
  47. package/dist/records-v2/index.js +6 -3
  48. package/package.json +1 -1
@@ -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,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;
@@ -0,0 +1,113 @@
1
+ /**
2
+ * CreateOutboundDialActionEvent Action DTO
3
+ *
4
+ * Create outbound dial action event
5
+ *
6
+ * @module NotificationModule
7
+ * @entity TwilioCallEvents
8
+ * @entityType OUTBOUND_DIAL_ACTION_EVENT
9
+ * @actionKey CreateOutboundDialActionEvent
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent
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 CreateOutboundDialActionEvent created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent
19
+ */
20
+ export interface CreateOutboundDialActionEventMessage extends OdinRecordCreatedEvent<CreateOutboundDialActionEventDto, CreateOutboundDialActionEventProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateOutboundDialActionEvent action
24
+ *
25
+ * @property Required fields: 6
26
+ * @property Optional fields: 0
27
+ */
28
+ export interface CreateOutboundDialActionEventProperties {
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
+ * CreateOutboundDialActionEvent
80
+ *
81
+ * Create outbound dial action event
82
+ *
83
+ * @actionType CREATE - Creates a new TwilioCallEvents record
84
+ * @module NotificationModule
85
+ * @entity TwilioCallEvents
86
+ * @entityType OUTBOUND_DIAL_ACTION_EVENT (OUTBOUND_DIAL_ACTION_EVENT)
87
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent
88
+ * @permission schema.action.createoutbounddialactionevent.trigger
89
+ * @benchmark This action is tracked for performance benchmarks
90
+ */
91
+ export declare class CreateOutboundDialActionEventDto extends OdinRecordCreateDto<CreateOutboundDialActionEventProperties> {
92
+ /** Used by SDK generators to identify action type */
93
+ static readonly ACTION_TYPE = "CREATE";
94
+ static readonly ACTION_KEY = "CreateOutboundDialActionEvent";
95
+ static readonly MODULE_NAME = "NotificationModule";
96
+ static readonly ENTITIES: string[];
97
+ static readonly ENTITY_TYPE = "OUTBOUND_DIAL_ACTION_EVENT";
98
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent";
99
+ static readonly PERMISSION = "schema.action.createoutbounddialactionevent.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 = "26b4d029-fa33-4121-a653-05f67b265772";
104
+ static readonly STEP_SCHEMA_TYPE_ID = "bc1fcd12-02c7-49f1-9e58-eec50677e084";
105
+ static readonly STEP_TYPE = "OUTBOUND_DIAL_ACTION_EVENT";
106
+ static readonly AUTO_LINK_PARENT = true;
107
+ readonly actionName: string;
108
+ readonly schemaActionId: string;
109
+ readonly entity: string;
110
+ constructor(properties: CreateOutboundDialActionEventProperties, options?: {
111
+ journeyId?: string;
112
+ });
113
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOutboundDialActionEvent Action DTO
4
+ *
5
+ * Create outbound dial action event
6
+ *
7
+ * @module NotificationModule
8
+ * @entity TwilioCallEvents
9
+ * @entityType OUTBOUND_DIAL_ACTION_EVENT
10
+ * @actionKey CreateOutboundDialActionEvent
11
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateOutboundDialActionEventDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateOutboundDialActionEvent
20
+ *
21
+ * Create outbound dial action event
22
+ *
23
+ * @actionType CREATE - Creates a new TwilioCallEvents record
24
+ * @module NotificationModule
25
+ * @entity TwilioCallEvents
26
+ * @entityType OUTBOUND_DIAL_ACTION_EVENT (OUTBOUND_DIAL_ACTION_EVENT)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent
28
+ * @permission schema.action.createoutbounddialactionevent.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateOutboundDialActionEventDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:TwilioCallEvents',
35
+ type: 'OUTBOUND_DIAL_ACTION_EVENT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateOutboundDialActionEvent';
40
+ this.schemaActionId = '26b4d029-fa33-4121-a653-05f67b265772';
41
+ this.entity = 'NotificationModule:TwilioCallEvents';
42
+ }
43
+ }
44
+ exports.CreateOutboundDialActionEventDto = CreateOutboundDialActionEventDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateOutboundDialActionEventDto.ACTION_TYPE = 'CREATE';
47
+ CreateOutboundDialActionEventDto.ACTION_KEY = 'CreateOutboundDialActionEvent';
48
+ CreateOutboundDialActionEventDto.MODULE_NAME = 'NotificationModule';
49
+ CreateOutboundDialActionEventDto.ENTITIES = ['TwilioCallEvents'];
50
+ CreateOutboundDialActionEventDto.ENTITY_TYPE = 'OUTBOUND_DIAL_ACTION_EVENT';
51
+ CreateOutboundDialActionEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent';
52
+ CreateOutboundDialActionEventDto.PERMISSION = 'schema.action.createoutbounddialactionevent.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateOutboundDialActionEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
55
+ CreateOutboundDialActionEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
56
+ CreateOutboundDialActionEventDto.STEP_SCHEMA_ACTION_ID = '26b4d029-fa33-4121-a653-05f67b265772';
57
+ CreateOutboundDialActionEventDto.STEP_SCHEMA_TYPE_ID = 'bc1fcd12-02c7-49f1-9e58-eec50677e084';
58
+ CreateOutboundDialActionEventDto.STEP_TYPE = 'OUTBOUND_DIAL_ACTION_EVENT';
59
+ CreateOutboundDialActionEventDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,66 @@
1
+ /**
2
+ * UpdateCallOnTaskCanceled Action DTO
3
+ *
4
+ * UpdateCallOnTaskCanceled
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallOnTaskCanceled
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
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 UpdateCallOnTaskCanceled created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
18
+ */
19
+ export interface UpdateCallOnTaskCanceledMessage extends OdinRecordCreatedEvent<UpdateCallOnTaskCanceledDto, UpdateCallOnTaskCanceledProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallOnTaskCanceled action
23
+ *
24
+ * @property Required fields: 1
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCallOnTaskCanceledProperties {
28
+ /**
29
+ * missed call reason
30
+ *
31
+ * reason for the call being missed (Communications - Call)
32
+ * @type {TEXT}
33
+ * @required
34
+ */
35
+ MissedCallReason: string;
36
+ }
37
+ /**
38
+ * UpdateCallOnTaskCanceled
39
+ *
40
+ * @actionType CREATE - Creates a new Call record
41
+ * @module NotificationModule
42
+ * @entity Call
43
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
44
+ * @permission schema.action.updatecallontaskcanceled.trigger
45
+ * @benchmark This action is tracked for performance benchmarks
46
+ */
47
+ export declare class UpdateCallOnTaskCanceledDto extends OdinRecordCreateDto<UpdateCallOnTaskCanceledProperties> {
48
+ /** Used by SDK generators to identify action type */
49
+ static readonly ACTION_TYPE = "CREATE";
50
+ static readonly ACTION_KEY = "UpdateCallOnTaskCanceled";
51
+ static readonly MODULE_NAME = "NotificationModule";
52
+ static readonly ENTITIES: string[];
53
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled";
54
+ static readonly PERMISSION = "schema.action.updatecallontaskcanceled.trigger";
55
+ /** Step metadata - entity this action targets */
56
+ static readonly STEP_ENTITY = "NotificationModule:Call";
57
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
58
+ static readonly STEP_SCHEMA_ACTION_ID = "7f8ddb83-6251-49d0-9c10-80a07d1a94e6";
59
+ static readonly AUTO_LINK_PARENT = true;
60
+ readonly actionName: string;
61
+ readonly schemaActionId: string;
62
+ readonly entity: string;
63
+ constructor(properties: UpdateCallOnTaskCanceledProperties, options?: {
64
+ journeyId?: string;
65
+ });
66
+ }