@d19n/youfibre-odin-sdk 2.0.102 → 2.0.103-beta.1
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.
- package/README.md +5 -1
- package/dist/actions-v2/CreateAgentCallLegDto.d.ts +8 -1
- package/dist/actions-v2/UpdateCallOnInboundCallAnsweredDto.d.ts +107 -0
- package/dist/actions-v2/UpdateCallOnInboundCallAnsweredDto.js +56 -0
- package/dist/actions-v2/UpdateCallOnInboundCallCompletedDto.d.ts +135 -0
- package/dist/actions-v2/UpdateCallOnInboundCallCompletedDto.js +56 -0
- package/dist/actions-v2/UpdateCallOnInboundCallInitiatedDto.d.ts +72 -0
- package/dist/actions-v2/UpdateCallOnInboundCallInitiatedDto.js +56 -0
- package/dist/actions-v2/UpdateCallOnInboundCallRingingDto.d.ts +73 -0
- package/dist/actions-v2/UpdateCallOnInboundCallRingingDto.js +56 -0
- package/dist/records-v2/CallRecord.d.ts +111 -0
- package/dist/records-v2/CallRecord.js +140 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
|
|
|
352
352
|
|
|
353
353
|
## Actions
|
|
354
354
|
|
|
355
|
-
This SDK includes **
|
|
355
|
+
This SDK includes **624** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -1171,6 +1171,10 @@ This SDK includes **620** actions.
|
|
|
1171
1171
|
| Action | Type | Event |
|
|
1172
1172
|
|--------|------|-------|
|
|
1173
1173
|
| `CreateCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateCall |
|
|
1174
|
+
| `UpdateCallOnInboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered |
|
|
1175
|
+
| `UpdateCallOnInboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted |
|
|
1176
|
+
| `UpdateCallOnInboundCallInitiated` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated |
|
|
1177
|
+
| `UpdateCallOnInboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging |
|
|
1174
1178
|
| `UpdateCallOnTaskRouterAssign` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskRouterAssign |
|
|
1175
1179
|
| `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
|
|
1176
1180
|
|
|
@@ -22,7 +22,7 @@ export interface CreateAgentCallLegMessage extends OdinRecordCreatedEvent<Create
|
|
|
22
22
|
* Properties for CreateAgentCallLeg action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 9
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 2
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateAgentCallLegProperties {
|
|
28
28
|
/**
|
|
@@ -104,6 +104,13 @@ export interface CreateAgentCallLegProperties {
|
|
|
104
104
|
* @type {TEXT}
|
|
105
105
|
*/
|
|
106
106
|
ReservationSid?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* AgentId
|
|
109
|
+
*
|
|
110
|
+
* UUID of agent if this is an agent leg (Communications - CallLeg)
|
|
111
|
+
* @type {TEXT}
|
|
112
|
+
*/
|
|
113
|
+
AgentId?: string | null;
|
|
107
114
|
}
|
|
108
115
|
/**
|
|
109
116
|
* CreateAgentCallLeg
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCallOnInboundCallAnswered Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update call on inbound call answered
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey UpdateCallOnInboundCallAnswered
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCallOnInboundCallAnswered updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCallOnInboundCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateCallOnInboundCallAnsweredDto, UpdateCallOnInboundCallAnsweredProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCallOnInboundCallAnswered action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 6
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCallOnInboundCallAnsweredProperties {
|
|
28
|
+
/**
|
|
29
|
+
* CurrentAgentEmail
|
|
30
|
+
*
|
|
31
|
+
* Email of currently assigned agent (Communications - Call)
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
*/
|
|
34
|
+
CurrentAgentEmail?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* user Id
|
|
37
|
+
*
|
|
38
|
+
* The Odin user that handled the call (Communications - Call)
|
|
39
|
+
* @type {UUID}
|
|
40
|
+
*/
|
|
41
|
+
UserId?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Call stage
|
|
44
|
+
*
|
|
45
|
+
* The granular stage of a call, more extensive than CallStatus (Communications - Call)
|
|
46
|
+
* @type {ENUM}
|
|
47
|
+
*/
|
|
48
|
+
CallStage?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* call status
|
|
51
|
+
*
|
|
52
|
+
* the status of the call (Communications - Call)
|
|
53
|
+
* @type {TEXT}
|
|
54
|
+
*/
|
|
55
|
+
CallStatus?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* AnswerTime
|
|
58
|
+
*
|
|
59
|
+
* When customer call was answered (Communications - Call)
|
|
60
|
+
* @type {DATE_TIME}
|
|
61
|
+
*/
|
|
62
|
+
AnswerTime?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* QueueTime
|
|
65
|
+
*
|
|
66
|
+
* Seconds spent in queue (Communications - Call)
|
|
67
|
+
* @type {NUMBER}
|
|
68
|
+
*/
|
|
69
|
+
QueueTime?: number | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* UpdateCallOnInboundCallAnswered
|
|
73
|
+
*
|
|
74
|
+
* Update call on inbound call answered
|
|
75
|
+
*
|
|
76
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
77
|
+
* @module NotificationModule
|
|
78
|
+
* @entity Call
|
|
79
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered
|
|
80
|
+
* @permission schema.action.updatecalloninboundcallanswered.trigger
|
|
81
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
82
|
+
*/
|
|
83
|
+
export declare class UpdateCallOnInboundCallAnsweredDto extends OdinRecordUpdateDto<UpdateCallOnInboundCallAnsweredProperties> {
|
|
84
|
+
/** Used by SDK generators to identify action type */
|
|
85
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
86
|
+
static readonly ACTION_KEY = "UpdateCallOnInboundCallAnswered";
|
|
87
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
88
|
+
static readonly ENTITIES: string[];
|
|
89
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered";
|
|
90
|
+
static readonly PERMISSION = "schema.action.updatecalloninboundcallanswered.trigger";
|
|
91
|
+
/** Step metadata - entity this action targets */
|
|
92
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
93
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
94
|
+
static readonly STEP_SCHEMA_ACTION_ID = "e8d1cee2-04c1-4515-bed8-3a8e98ec3a31";
|
|
95
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
96
|
+
readonly actionName: string;
|
|
97
|
+
readonly schemaActionId: string;
|
|
98
|
+
readonly entity: string;
|
|
99
|
+
constructor(record: OdinRecord<any> | {
|
|
100
|
+
id: string;
|
|
101
|
+
entity: string;
|
|
102
|
+
type?: string;
|
|
103
|
+
}, properties: UpdateCallOnInboundCallAnsweredProperties, options?: {
|
|
104
|
+
journeyId?: string;
|
|
105
|
+
stageKey?: string;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCallOnInboundCallAnswered Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update call on inbound call answered
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey UpdateCallOnInboundCallAnswered
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCallOnInboundCallAnsweredDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCallOnInboundCallAnswered
|
|
19
|
+
*
|
|
20
|
+
* Update call on inbound call answered
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered
|
|
26
|
+
* @permission schema.action.updatecalloninboundcallanswered.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCallOnInboundCallAnsweredDto 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 = 'UpdateCallOnInboundCallAnswered';
|
|
40
|
+
this.schemaActionId = 'e8d1cee2-04c1-4515-bed8-3a8e98ec3a31';
|
|
41
|
+
this.entity = 'NotificationModule:Call';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCallOnInboundCallAnsweredDto = UpdateCallOnInboundCallAnsweredDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCallOnInboundCallAnsweredDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCallOnInboundCallAnsweredDto.ACTION_KEY = 'UpdateCallOnInboundCallAnswered';
|
|
48
|
+
UpdateCallOnInboundCallAnsweredDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCallOnInboundCallAnsweredDto.ENTITIES = ['Call'];
|
|
50
|
+
UpdateCallOnInboundCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered';
|
|
51
|
+
UpdateCallOnInboundCallAnsweredDto.PERMISSION = 'schema.action.updatecalloninboundcallanswered.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCallOnInboundCallAnsweredDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
54
|
+
UpdateCallOnInboundCallAnsweredDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
55
|
+
UpdateCallOnInboundCallAnsweredDto.STEP_SCHEMA_ACTION_ID = 'e8d1cee2-04c1-4515-bed8-3a8e98ec3a31';
|
|
56
|
+
UpdateCallOnInboundCallAnsweredDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCallOnInboundCallCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update call on inbound call answered
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey UpdateCallOnInboundCallCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCallOnInboundCallCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCallOnInboundCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateCallOnInboundCallCompletedDto, UpdateCallOnInboundCallCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCallOnInboundCallCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 10
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCallOnInboundCallCompletedProperties {
|
|
28
|
+
/**
|
|
29
|
+
* EndTime
|
|
30
|
+
*
|
|
31
|
+
* Data field for Call records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
*/
|
|
34
|
+
EndTime?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* TotalDuration
|
|
37
|
+
*
|
|
38
|
+
* Total call duration in seconds from customer perspective (Communications - Call)
|
|
39
|
+
* @type {NUMBER}
|
|
40
|
+
*/
|
|
41
|
+
TotalDuration?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* call status
|
|
44
|
+
*
|
|
45
|
+
* the status of the call (Communications - Call)
|
|
46
|
+
* @type {TEXT}
|
|
47
|
+
*/
|
|
48
|
+
CallStatus?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Call stage
|
|
51
|
+
*
|
|
52
|
+
* The granular stage of a call, more extensive than CallStatus (Communications - Call)
|
|
53
|
+
* @type {ENUM}
|
|
54
|
+
*/
|
|
55
|
+
CallStage?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* QueueTime
|
|
58
|
+
*
|
|
59
|
+
* Seconds spent in queue (Communications - Call)
|
|
60
|
+
* @type {NUMBER}
|
|
61
|
+
*/
|
|
62
|
+
QueueTime?: number | null;
|
|
63
|
+
/**
|
|
64
|
+
* CallEndReason
|
|
65
|
+
*
|
|
66
|
+
* CallEndReason
|
|
67
|
+
* @type {ENUM}
|
|
68
|
+
*/
|
|
69
|
+
CallEndReason?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* RecordingSid
|
|
72
|
+
*
|
|
73
|
+
* Twilio ID for Recording (Communications - Call)
|
|
74
|
+
* @type {TEXT}
|
|
75
|
+
*/
|
|
76
|
+
RecordingSid?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* RecordingStatus
|
|
79
|
+
*
|
|
80
|
+
* RecordingStatus (Communications - Call)
|
|
81
|
+
* @type {TEXT}
|
|
82
|
+
*/
|
|
83
|
+
RecordingStatus?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* RecordingDuration
|
|
86
|
+
*
|
|
87
|
+
* RecordingDuration (Communications - Call)
|
|
88
|
+
* @type {NUMBER}
|
|
89
|
+
*/
|
|
90
|
+
RecordingDuration?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* RecordingUrl
|
|
93
|
+
*
|
|
94
|
+
* RecordingUrl (Communications - Call)
|
|
95
|
+
* @type {TEXT}
|
|
96
|
+
*/
|
|
97
|
+
RecordingUrl?: string | null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* UpdateCallOnInboundCallCompleted
|
|
101
|
+
*
|
|
102
|
+
* Update call on inbound call answered
|
|
103
|
+
*
|
|
104
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
105
|
+
* @module NotificationModule
|
|
106
|
+
* @entity Call
|
|
107
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted
|
|
108
|
+
* @permission schema.action.updatecalloninboundcallcompleted.trigger
|
|
109
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
110
|
+
*/
|
|
111
|
+
export declare class UpdateCallOnInboundCallCompletedDto extends OdinRecordUpdateDto<UpdateCallOnInboundCallCompletedProperties> {
|
|
112
|
+
/** Used by SDK generators to identify action type */
|
|
113
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
114
|
+
static readonly ACTION_KEY = "UpdateCallOnInboundCallCompleted";
|
|
115
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
116
|
+
static readonly ENTITIES: string[];
|
|
117
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted";
|
|
118
|
+
static readonly PERMISSION = "schema.action.updatecalloninboundcallcompleted.trigger";
|
|
119
|
+
/** Step metadata - entity this action targets */
|
|
120
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
121
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
122
|
+
static readonly STEP_SCHEMA_ACTION_ID = "47432984-b84b-45cc-a84a-8c14352e26ec";
|
|
123
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
124
|
+
readonly actionName: string;
|
|
125
|
+
readonly schemaActionId: string;
|
|
126
|
+
readonly entity: string;
|
|
127
|
+
constructor(record: OdinRecord<any> | {
|
|
128
|
+
id: string;
|
|
129
|
+
entity: string;
|
|
130
|
+
type?: string;
|
|
131
|
+
}, properties: UpdateCallOnInboundCallCompletedProperties, options?: {
|
|
132
|
+
journeyId?: string;
|
|
133
|
+
stageKey?: string;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCallOnInboundCallCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update call on inbound call answered
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey UpdateCallOnInboundCallCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCallOnInboundCallCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCallOnInboundCallCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update call on inbound call answered
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted
|
|
26
|
+
* @permission schema.action.updatecalloninboundcallcompleted.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCallOnInboundCallCompletedDto 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 = 'UpdateCallOnInboundCallCompleted';
|
|
40
|
+
this.schemaActionId = '47432984-b84b-45cc-a84a-8c14352e26ec';
|
|
41
|
+
this.entity = 'NotificationModule:Call';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCallOnInboundCallCompletedDto = UpdateCallOnInboundCallCompletedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCallOnInboundCallCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCallOnInboundCallCompletedDto.ACTION_KEY = 'UpdateCallOnInboundCallCompleted';
|
|
48
|
+
UpdateCallOnInboundCallCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCallOnInboundCallCompletedDto.ENTITIES = ['Call'];
|
|
50
|
+
UpdateCallOnInboundCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted';
|
|
51
|
+
UpdateCallOnInboundCallCompletedDto.PERMISSION = 'schema.action.updatecalloninboundcallcompleted.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCallOnInboundCallCompletedDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
54
|
+
UpdateCallOnInboundCallCompletedDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
55
|
+
UpdateCallOnInboundCallCompletedDto.STEP_SCHEMA_ACTION_ID = '47432984-b84b-45cc-a84a-8c14352e26ec';
|
|
56
|
+
UpdateCallOnInboundCallCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCallOnInboundCallInitiated Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update call on inbound call initiated
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey UpdateCallOnInboundCallInitiated
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCallOnInboundCallInitiated updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCallOnInboundCallInitiatedMessage extends OdinRecordUpdatedEvent<UpdateCallOnInboundCallInitiatedDto, UpdateCallOnInboundCallInitiatedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCallOnInboundCallInitiated action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCallOnInboundCallInitiatedProperties {
|
|
28
|
+
/**
|
|
29
|
+
* TaskSid
|
|
30
|
+
*
|
|
31
|
+
* Wrap up taskSid (Communications - Call)
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
*/
|
|
34
|
+
TaskSid?: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* UpdateCallOnInboundCallInitiated
|
|
38
|
+
*
|
|
39
|
+
* Update call on inbound call initiated
|
|
40
|
+
*
|
|
41
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
42
|
+
* @module NotificationModule
|
|
43
|
+
* @entity Call
|
|
44
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated
|
|
45
|
+
* @permission schema.action.updatecalloninboundcallinitiated.trigger
|
|
46
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
47
|
+
*/
|
|
48
|
+
export declare class UpdateCallOnInboundCallInitiatedDto extends OdinRecordUpdateDto<UpdateCallOnInboundCallInitiatedProperties> {
|
|
49
|
+
/** Used by SDK generators to identify action type */
|
|
50
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
51
|
+
static readonly ACTION_KEY = "UpdateCallOnInboundCallInitiated";
|
|
52
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
53
|
+
static readonly ENTITIES: string[];
|
|
54
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated";
|
|
55
|
+
static readonly PERMISSION = "schema.action.updatecalloninboundcallinitiated.trigger";
|
|
56
|
+
/** Step metadata - entity this action targets */
|
|
57
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
58
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
59
|
+
static readonly STEP_SCHEMA_ACTION_ID = "520b3b58-4492-4551-bd6f-4ba6eace78fb";
|
|
60
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
61
|
+
readonly actionName: string;
|
|
62
|
+
readonly schemaActionId: string;
|
|
63
|
+
readonly entity: string;
|
|
64
|
+
constructor(record: OdinRecord<any> | {
|
|
65
|
+
id: string;
|
|
66
|
+
entity: string;
|
|
67
|
+
type?: string;
|
|
68
|
+
}, properties: UpdateCallOnInboundCallInitiatedProperties, options?: {
|
|
69
|
+
journeyId?: string;
|
|
70
|
+
stageKey?: string;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCallOnInboundCallInitiated Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update call on inbound call initiated
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey UpdateCallOnInboundCallInitiated
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCallOnInboundCallInitiatedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCallOnInboundCallInitiated
|
|
19
|
+
*
|
|
20
|
+
* Update call on inbound call initiated
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated
|
|
26
|
+
* @permission schema.action.updatecalloninboundcallinitiated.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCallOnInboundCallInitiatedDto 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 = 'UpdateCallOnInboundCallInitiated';
|
|
40
|
+
this.schemaActionId = '520b3b58-4492-4551-bd6f-4ba6eace78fb';
|
|
41
|
+
this.entity = 'NotificationModule:Call';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCallOnInboundCallInitiatedDto = UpdateCallOnInboundCallInitiatedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCallOnInboundCallInitiatedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCallOnInboundCallInitiatedDto.ACTION_KEY = 'UpdateCallOnInboundCallInitiated';
|
|
48
|
+
UpdateCallOnInboundCallInitiatedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCallOnInboundCallInitiatedDto.ENTITIES = ['Call'];
|
|
50
|
+
UpdateCallOnInboundCallInitiatedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated';
|
|
51
|
+
UpdateCallOnInboundCallInitiatedDto.PERMISSION = 'schema.action.updatecalloninboundcallinitiated.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCallOnInboundCallInitiatedDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
54
|
+
UpdateCallOnInboundCallInitiatedDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
55
|
+
UpdateCallOnInboundCallInitiatedDto.STEP_SCHEMA_ACTION_ID = '520b3b58-4492-4551-bd6f-4ba6eace78fb';
|
|
56
|
+
UpdateCallOnInboundCallInitiatedDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCallOnInboundCallRinging Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update call on inbound call ringing
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey UpdateCallOnInboundCallRinging
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCallOnInboundCallRinging updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCallOnInboundCallRingingMessage extends OdinRecordUpdatedEvent<UpdateCallOnInboundCallRingingDto, UpdateCallOnInboundCallRingingProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCallOnInboundCallRinging action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCallOnInboundCallRingingProperties {
|
|
28
|
+
/**
|
|
29
|
+
* AgentRingTime
|
|
30
|
+
*
|
|
31
|
+
* AgentRingTime
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
AgentRingTime: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* UpdateCallOnInboundCallRinging
|
|
39
|
+
*
|
|
40
|
+
* Update call on inbound call ringing
|
|
41
|
+
*
|
|
42
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
43
|
+
* @module NotificationModule
|
|
44
|
+
* @entity Call
|
|
45
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging
|
|
46
|
+
* @permission schema.action.updatecalloninboundcallringing.trigger
|
|
47
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
48
|
+
*/
|
|
49
|
+
export declare class UpdateCallOnInboundCallRingingDto extends OdinRecordUpdateDto<UpdateCallOnInboundCallRingingProperties> {
|
|
50
|
+
/** Used by SDK generators to identify action type */
|
|
51
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
52
|
+
static readonly ACTION_KEY = "UpdateCallOnInboundCallRinging";
|
|
53
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
54
|
+
static readonly ENTITIES: string[];
|
|
55
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging";
|
|
56
|
+
static readonly PERMISSION = "schema.action.updatecalloninboundcallringing.trigger";
|
|
57
|
+
/** Step metadata - entity this action targets */
|
|
58
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
59
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
60
|
+
static readonly STEP_SCHEMA_ACTION_ID = "4eabdb74-b597-4804-937b-440562c20bd3";
|
|
61
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
62
|
+
readonly actionName: string;
|
|
63
|
+
readonly schemaActionId: string;
|
|
64
|
+
readonly entity: string;
|
|
65
|
+
constructor(record: OdinRecord<any> | {
|
|
66
|
+
id: string;
|
|
67
|
+
entity: string;
|
|
68
|
+
type?: string;
|
|
69
|
+
}, properties: UpdateCallOnInboundCallRingingProperties, options?: {
|
|
70
|
+
journeyId?: string;
|
|
71
|
+
stageKey?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCallOnInboundCallRinging Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update call on inbound call ringing
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey UpdateCallOnInboundCallRinging
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCallOnInboundCallRingingDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCallOnInboundCallRinging
|
|
19
|
+
*
|
|
20
|
+
* Update call on inbound call ringing
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging
|
|
26
|
+
* @permission schema.action.updatecalloninboundcallringing.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCallOnInboundCallRingingDto 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 = 'UpdateCallOnInboundCallRinging';
|
|
40
|
+
this.schemaActionId = '4eabdb74-b597-4804-937b-440562c20bd3';
|
|
41
|
+
this.entity = 'NotificationModule:Call';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCallOnInboundCallRingingDto = UpdateCallOnInboundCallRingingDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCallOnInboundCallRingingDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCallOnInboundCallRingingDto.ACTION_KEY = 'UpdateCallOnInboundCallRinging';
|
|
48
|
+
UpdateCallOnInboundCallRingingDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCallOnInboundCallRingingDto.ENTITIES = ['Call'];
|
|
50
|
+
UpdateCallOnInboundCallRingingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging';
|
|
51
|
+
UpdateCallOnInboundCallRingingDto.PERMISSION = 'schema.action.updatecalloninboundcallringing.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCallOnInboundCallRingingDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
54
|
+
UpdateCallOnInboundCallRingingDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
55
|
+
UpdateCallOnInboundCallRingingDto.STEP_SCHEMA_ACTION_ID = '4eabdb74-b597-4804-937b-440562c20bd3';
|
|
56
|
+
UpdateCallOnInboundCallRingingDto.AUTO_LINK_PARENT = false;
|
|
@@ -25,6 +25,10 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
|
|
|
25
25
|
import { CallProperties } from '../entities-v2/Call';
|
|
26
26
|
import { CreateCallProperties } from '../actions-v2/CreateCallDto';
|
|
27
27
|
import { CreateCallBuilder } from '../actions-v2/CreateCallDto';
|
|
28
|
+
import { UpdateCallOnInboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnInboundCallAnsweredDto';
|
|
29
|
+
import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
|
|
30
|
+
import { UpdateCallOnInboundCallInitiatedProperties } from '../actions-v2/UpdateCallOnInboundCallInitiatedDto';
|
|
31
|
+
import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCallOnInboundCallRingingDto';
|
|
28
32
|
import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
|
|
29
33
|
import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
|
|
30
34
|
import { LeadRecord } from './LeadRecord';
|
|
@@ -359,6 +363,113 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
359
363
|
journeyId?: string;
|
|
360
364
|
stageKey?: string;
|
|
361
365
|
}): CreateCallBuilder;
|
|
366
|
+
/**
|
|
367
|
+
* UpdateCallOnInboundCallAnswered
|
|
368
|
+
*
|
|
369
|
+
* Updates this Call record.
|
|
370
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
371
|
+
*
|
|
372
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
373
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
374
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
375
|
+
* @throws Error if called on a new (unsaved) record
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```typescript
|
|
379
|
+
* const record = await odinClient.calls.get(id);
|
|
380
|
+
* await record.updateCallOnInboundCallAnswered({ ... }).execute();
|
|
381
|
+
*
|
|
382
|
+
* // Dry run (for debugging)
|
|
383
|
+
* const payload = record.updateCallOnInboundCallAnswered({ ... }).dryRun();
|
|
384
|
+
* ```
|
|
385
|
+
*/
|
|
386
|
+
updateCallOnInboundCallAnswered(propertiesOrOptions?: UpdateCallOnInboundCallAnsweredProperties | {
|
|
387
|
+
journeyId?: string;
|
|
388
|
+
stageKey?: string;
|
|
389
|
+
}, options?: {
|
|
390
|
+
journeyId?: string;
|
|
391
|
+
stageKey?: string;
|
|
392
|
+
}): ActionBuilder;
|
|
393
|
+
/**
|
|
394
|
+
* UpdateCallOnInboundCallCompleted
|
|
395
|
+
*
|
|
396
|
+
* Updates this Call record.
|
|
397
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
398
|
+
*
|
|
399
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
400
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
401
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
402
|
+
* @throws Error if called on a new (unsaved) record
|
|
403
|
+
*
|
|
404
|
+
* @example
|
|
405
|
+
* ```typescript
|
|
406
|
+
* const record = await odinClient.calls.get(id);
|
|
407
|
+
* await record.updateCallOnInboundCallCompleted({ ... }).execute();
|
|
408
|
+
*
|
|
409
|
+
* // Dry run (for debugging)
|
|
410
|
+
* const payload = record.updateCallOnInboundCallCompleted({ ... }).dryRun();
|
|
411
|
+
* ```
|
|
412
|
+
*/
|
|
413
|
+
updateCallOnInboundCallCompleted(propertiesOrOptions?: UpdateCallOnInboundCallCompletedProperties | {
|
|
414
|
+
journeyId?: string;
|
|
415
|
+
stageKey?: string;
|
|
416
|
+
}, options?: {
|
|
417
|
+
journeyId?: string;
|
|
418
|
+
stageKey?: string;
|
|
419
|
+
}): ActionBuilder;
|
|
420
|
+
/**
|
|
421
|
+
* UpdateCallOnInboundCallInitiated
|
|
422
|
+
*
|
|
423
|
+
* Updates this Call record.
|
|
424
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
425
|
+
*
|
|
426
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
427
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
428
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
429
|
+
* @throws Error if called on a new (unsaved) record
|
|
430
|
+
*
|
|
431
|
+
* @example
|
|
432
|
+
* ```typescript
|
|
433
|
+
* const record = await odinClient.calls.get(id);
|
|
434
|
+
* await record.updateCallOnInboundCallInitiated({ ... }).execute();
|
|
435
|
+
*
|
|
436
|
+
* // Dry run (for debugging)
|
|
437
|
+
* const payload = record.updateCallOnInboundCallInitiated({ ... }).dryRun();
|
|
438
|
+
* ```
|
|
439
|
+
*/
|
|
440
|
+
updateCallOnInboundCallInitiated(propertiesOrOptions?: UpdateCallOnInboundCallInitiatedProperties | {
|
|
441
|
+
journeyId?: string;
|
|
442
|
+
stageKey?: string;
|
|
443
|
+
}, options?: {
|
|
444
|
+
journeyId?: string;
|
|
445
|
+
stageKey?: string;
|
|
446
|
+
}): ActionBuilder;
|
|
447
|
+
/**
|
|
448
|
+
* UpdateCallOnInboundCallRinging
|
|
449
|
+
*
|
|
450
|
+
* Updates this Call record with the specified properties.
|
|
451
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
452
|
+
*
|
|
453
|
+
* @param properties - Required properties for this action
|
|
454
|
+
* @param options - Optional settings
|
|
455
|
+
* @param options.journeyId - Associate with a journey
|
|
456
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
457
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
458
|
+
* @throws Error if called on a new (unsaved) record
|
|
459
|
+
*
|
|
460
|
+
* @example
|
|
461
|
+
* ```typescript
|
|
462
|
+
* const record = await odinClient.calls.get(id);
|
|
463
|
+
* await record.updateCallOnInboundCallRinging({ ... }).execute();
|
|
464
|
+
*
|
|
465
|
+
* // Dry run (for debugging)
|
|
466
|
+
* const payload = record.updateCallOnInboundCallRinging({ ... }).dryRun();
|
|
467
|
+
* ```
|
|
468
|
+
*/
|
|
469
|
+
updateCallOnInboundCallRinging(properties: UpdateCallOnInboundCallRingingProperties, options?: {
|
|
470
|
+
journeyId?: string;
|
|
471
|
+
stageKey?: string;
|
|
472
|
+
}): ActionBuilder;
|
|
362
473
|
/**
|
|
363
474
|
* UpdateCallOnTaskRouterAssign
|
|
364
475
|
*
|
|
@@ -506,6 +506,146 @@ class CallRecord {
|
|
|
506
506
|
// ============================================
|
|
507
507
|
// UPDATE ACTIONS (require existing record)
|
|
508
508
|
// ============================================
|
|
509
|
+
/**
|
|
510
|
+
* UpdateCallOnInboundCallAnswered
|
|
511
|
+
*
|
|
512
|
+
* Updates this Call record.
|
|
513
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
514
|
+
*
|
|
515
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
516
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
517
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
518
|
+
* @throws Error if called on a new (unsaved) record
|
|
519
|
+
*
|
|
520
|
+
* @example
|
|
521
|
+
* ```typescript
|
|
522
|
+
* const record = await odinClient.calls.get(id);
|
|
523
|
+
* await record.updateCallOnInboundCallAnswered({ ... }).execute();
|
|
524
|
+
*
|
|
525
|
+
* // Dry run (for debugging)
|
|
526
|
+
* const payload = record.updateCallOnInboundCallAnswered({ ... }).dryRun();
|
|
527
|
+
* ```
|
|
528
|
+
*/
|
|
529
|
+
updateCallOnInboundCallAnswered(propertiesOrOptions, options) {
|
|
530
|
+
var _a;
|
|
531
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
532
|
+
throw new Error('updateCallOnInboundCallAnswered requires an existing record. Use accessor.get() first.');
|
|
533
|
+
let properties = {};
|
|
534
|
+
let opts = options;
|
|
535
|
+
if (propertiesOrOptions) {
|
|
536
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
537
|
+
opts = propertiesOrOptions;
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
properties = propertiesOrOptions;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
544
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* UpdateCallOnInboundCallCompleted
|
|
548
|
+
*
|
|
549
|
+
* Updates this Call record.
|
|
550
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
551
|
+
*
|
|
552
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
553
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
554
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
555
|
+
* @throws Error if called on a new (unsaved) record
|
|
556
|
+
*
|
|
557
|
+
* @example
|
|
558
|
+
* ```typescript
|
|
559
|
+
* const record = await odinClient.calls.get(id);
|
|
560
|
+
* await record.updateCallOnInboundCallCompleted({ ... }).execute();
|
|
561
|
+
*
|
|
562
|
+
* // Dry run (for debugging)
|
|
563
|
+
* const payload = record.updateCallOnInboundCallCompleted({ ... }).dryRun();
|
|
564
|
+
* ```
|
|
565
|
+
*/
|
|
566
|
+
updateCallOnInboundCallCompleted(propertiesOrOptions, options) {
|
|
567
|
+
var _a;
|
|
568
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
569
|
+
throw new Error('updateCallOnInboundCallCompleted requires an existing record. Use accessor.get() first.');
|
|
570
|
+
let properties = {};
|
|
571
|
+
let opts = options;
|
|
572
|
+
if (propertiesOrOptions) {
|
|
573
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
574
|
+
opts = propertiesOrOptions;
|
|
575
|
+
}
|
|
576
|
+
else {
|
|
577
|
+
properties = propertiesOrOptions;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
581
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* UpdateCallOnInboundCallInitiated
|
|
585
|
+
*
|
|
586
|
+
* Updates this Call record.
|
|
587
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
588
|
+
*
|
|
589
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
590
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
591
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
592
|
+
* @throws Error if called on a new (unsaved) record
|
|
593
|
+
*
|
|
594
|
+
* @example
|
|
595
|
+
* ```typescript
|
|
596
|
+
* const record = await odinClient.calls.get(id);
|
|
597
|
+
* await record.updateCallOnInboundCallInitiated({ ... }).execute();
|
|
598
|
+
*
|
|
599
|
+
* // Dry run (for debugging)
|
|
600
|
+
* const payload = record.updateCallOnInboundCallInitiated({ ... }).dryRun();
|
|
601
|
+
* ```
|
|
602
|
+
*/
|
|
603
|
+
updateCallOnInboundCallInitiated(propertiesOrOptions, options) {
|
|
604
|
+
var _a;
|
|
605
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
606
|
+
throw new Error('updateCallOnInboundCallInitiated requires an existing record. Use accessor.get() first.');
|
|
607
|
+
let properties = {};
|
|
608
|
+
let opts = options;
|
|
609
|
+
if (propertiesOrOptions) {
|
|
610
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
611
|
+
opts = propertiesOrOptions;
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
properties = propertiesOrOptions;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallInitiated', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
618
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* UpdateCallOnInboundCallRinging
|
|
622
|
+
*
|
|
623
|
+
* Updates this Call record with the specified properties.
|
|
624
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
625
|
+
*
|
|
626
|
+
* @param properties - Required properties for this action
|
|
627
|
+
* @param options - Optional settings
|
|
628
|
+
* @param options.journeyId - Associate with a journey
|
|
629
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
630
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
631
|
+
* @throws Error if called on a new (unsaved) record
|
|
632
|
+
*
|
|
633
|
+
* @example
|
|
634
|
+
* ```typescript
|
|
635
|
+
* const record = await odinClient.calls.get(id);
|
|
636
|
+
* await record.updateCallOnInboundCallRinging({ ... }).execute();
|
|
637
|
+
*
|
|
638
|
+
* // Dry run (for debugging)
|
|
639
|
+
* const payload = record.updateCallOnInboundCallRinging({ ... }).dryRun();
|
|
640
|
+
* ```
|
|
641
|
+
*/
|
|
642
|
+
updateCallOnInboundCallRinging(properties, options) {
|
|
643
|
+
var _a;
|
|
644
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
645
|
+
throw new Error('updateCallOnInboundCallRinging requires an existing record. Use accessor.get() first.');
|
|
646
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
647
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
648
|
+
}
|
|
509
649
|
/**
|
|
510
650
|
* UpdateCallOnTaskRouterAssign
|
|
511
651
|
*
|