@d19n/youfibre-odin-sdk 2.0.103-beta.2 → 2.0.103-beta.4
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 +6 -1
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto.d.ts +81 -0
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto.js +56 -0
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto.d.ts +81 -0
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto.js +56 -0
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto.d.ts +89 -0
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto.js +56 -0
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallRindingDto.d.ts +81 -0
- package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallRindingDto.js +56 -0
- package/dist/actions-v2/UpdateCallOnInboundCallCanceledDto.d.ts +10 -6
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto.d.ts +81 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto.js +56 -0
- package/dist/records-v2/CallLegRecord.d.ts +135 -0
- package/dist/records-v2/CallLegRecord.js +145 -0
- package/dist/records-v2/CallRecord.d.ts +6 -7
- package/dist/records-v2/CallRecord.js +7 -15
- 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 **630** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -1113,7 +1113,12 @@ This SDK includes **625** actions.
|
|
|
1113
1113
|
|--------|------|-------|
|
|
1114
1114
|
| `CreateAgentCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg |
|
|
1115
1115
|
| `CreateCustomerCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateCustomerCallLeg |
|
|
1116
|
+
| `UpdateAgentCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered |
|
|
1117
|
+
| `UpdateAgentCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled |
|
|
1118
|
+
| `UpdateAgentCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted |
|
|
1119
|
+
| `UpdateAgentCallLegOnIncomingCallRinding` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding |
|
|
1116
1120
|
| `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
|
|
1121
|
+
| `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
|
|
1117
1122
|
|
|
1118
1123
|
#### Appointment
|
|
1119
1124
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentCallLegOnIncomingCallAnswered Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on incoming call answered
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallAnswered
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
|
|
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 UpdateAgentCallLegOnIncomingCallAnswered updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentCallLegOnIncomingCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallAnsweredDto, UpdateAgentCallLegOnIncomingCallAnsweredProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentCallLegOnIncomingCallAnswered action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentCallLegOnIncomingCallAnsweredProperties {
|
|
28
|
+
/**
|
|
29
|
+
* AnsweredAt
|
|
30
|
+
*
|
|
31
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
AnsweredAt: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status
|
|
38
|
+
*
|
|
39
|
+
* Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
|
|
40
|
+
* @type {ENUM}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Status: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* UpdateAgentCallLegOnIncomingCallAnswered
|
|
47
|
+
*
|
|
48
|
+
* Update agent call leg on incoming call answered
|
|
49
|
+
*
|
|
50
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
51
|
+
* @module NotificationModule
|
|
52
|
+
* @entity CallLeg
|
|
53
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
|
|
54
|
+
* @permission schema.action.updateagentcalllegonincomingcallanswered.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateAgentCallLegOnIncomingCallAnsweredDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallAnsweredProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallAnswered";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallanswered.trigger";
|
|
65
|
+
/** Step metadata - entity this action targets */
|
|
66
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
67
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
68
|
+
static readonly STEP_SCHEMA_ACTION_ID = "7b941398-8279-400c-b752-b4c72ed46007";
|
|
69
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
70
|
+
readonly actionName: string;
|
|
71
|
+
readonly schemaActionId: string;
|
|
72
|
+
readonly entity: string;
|
|
73
|
+
constructor(record: OdinRecord<any> | {
|
|
74
|
+
id: string;
|
|
75
|
+
entity: string;
|
|
76
|
+
type?: string;
|
|
77
|
+
}, properties: UpdateAgentCallLegOnIncomingCallAnsweredProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentCallLegOnIncomingCallAnswered Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on incoming call answered
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallAnswered
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentCallLegOnIncomingCallAnsweredDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateAgentCallLegOnIncomingCallAnswered
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on incoming call answered
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
|
|
26
|
+
* @permission schema.action.updateagentcalllegonincomingcallanswered.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateAgentCallLegOnIncomingCallAnsweredDto 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 = 'UpdateAgentCallLegOnIncomingCallAnswered';
|
|
40
|
+
this.schemaActionId = '7b941398-8279-400c-b752-b4c72ed46007';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateAgentCallLegOnIncomingCallAnsweredDto = UpdateAgentCallLegOnIncomingCallAnsweredDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallAnswered';
|
|
48
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered';
|
|
51
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallanswered.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ACTION_ID = '7b941398-8279-400c-b752-b4c72ed46007';
|
|
56
|
+
UpdateAgentCallLegOnIncomingCallAnsweredDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentCallLegOnIncomingCallCanceled Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on incoming call canceled
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallCanceled
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
|
|
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 UpdateAgentCallLegOnIncomingCallCanceled updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentCallLegOnIncomingCallCanceledMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallCanceledDto, UpdateAgentCallLegOnIncomingCallCanceledProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentCallLegOnIncomingCallCanceled action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentCallLegOnIncomingCallCanceledProperties {
|
|
28
|
+
/**
|
|
29
|
+
* EndedAt
|
|
30
|
+
*
|
|
31
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
EndedAt: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status
|
|
38
|
+
*
|
|
39
|
+
* Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
|
|
40
|
+
* @type {ENUM}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Status: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* UpdateAgentCallLegOnIncomingCallCanceled
|
|
47
|
+
*
|
|
48
|
+
* Update agent call leg on incoming call canceled
|
|
49
|
+
*
|
|
50
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
51
|
+
* @module NotificationModule
|
|
52
|
+
* @entity CallLeg
|
|
53
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
|
|
54
|
+
* @permission schema.action.updateagentcalllegonincomingcallcanceled.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateAgentCallLegOnIncomingCallCanceledDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallCanceledProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallCanceled";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallcanceled.trigger";
|
|
65
|
+
/** Step metadata - entity this action targets */
|
|
66
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
67
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
68
|
+
static readonly STEP_SCHEMA_ACTION_ID = "2c07942e-ade3-4060-9eb9-33832f38b14c";
|
|
69
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
70
|
+
readonly actionName: string;
|
|
71
|
+
readonly schemaActionId: string;
|
|
72
|
+
readonly entity: string;
|
|
73
|
+
constructor(record: OdinRecord<any> | {
|
|
74
|
+
id: string;
|
|
75
|
+
entity: string;
|
|
76
|
+
type?: string;
|
|
77
|
+
}, properties: UpdateAgentCallLegOnIncomingCallCanceledProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentCallLegOnIncomingCallCanceled Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on incoming call canceled
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallCanceled
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentCallLegOnIncomingCallCanceledDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateAgentCallLegOnIncomingCallCanceled
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on incoming call canceled
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
|
|
26
|
+
* @permission schema.action.updateagentcalllegonincomingcallcanceled.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateAgentCallLegOnIncomingCallCanceledDto 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 = 'UpdateAgentCallLegOnIncomingCallCanceled';
|
|
40
|
+
this.schemaActionId = '2c07942e-ade3-4060-9eb9-33832f38b14c';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateAgentCallLegOnIncomingCallCanceledDto = UpdateAgentCallLegOnIncomingCallCanceledDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallCanceled';
|
|
48
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled';
|
|
51
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallcanceled.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ACTION_ID = '2c07942e-ade3-4060-9eb9-33832f38b14c';
|
|
56
|
+
UpdateAgentCallLegOnIncomingCallCanceledDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentCallLegOnIncomingCallCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on incoming call completed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
|
|
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 UpdateAgentCallLegOnIncomingCallCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentCallLegOnIncomingCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallCompletedDto, UpdateAgentCallLegOnIncomingCallCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentCallLegOnIncomingCallCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 3
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentCallLegOnIncomingCallCompletedProperties {
|
|
28
|
+
/**
|
|
29
|
+
* EndedAt
|
|
30
|
+
*
|
|
31
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
EndedAt: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status
|
|
38
|
+
*
|
|
39
|
+
* Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
|
|
40
|
+
* @type {ENUM}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Status: string;
|
|
44
|
+
/**
|
|
45
|
+
* Duration
|
|
46
|
+
*
|
|
47
|
+
* Duration of THIS leg only in seconds (Communications - CallLeg)
|
|
48
|
+
* @type {NUMBER}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
Duration: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* UpdateAgentCallLegOnIncomingCallCompleted
|
|
55
|
+
*
|
|
56
|
+
* Update agent call leg on incoming call completed
|
|
57
|
+
*
|
|
58
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
59
|
+
* @module NotificationModule
|
|
60
|
+
* @entity CallLeg
|
|
61
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
|
|
62
|
+
* @permission schema.action.updateagentcalllegonincomingcallcompleted.trigger
|
|
63
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
64
|
+
*/
|
|
65
|
+
export declare class UpdateAgentCallLegOnIncomingCallCompletedDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallCompletedProperties> {
|
|
66
|
+
/** Used by SDK generators to identify action type */
|
|
67
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
68
|
+
static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallCompleted";
|
|
69
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
70
|
+
static readonly ENTITIES: string[];
|
|
71
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted";
|
|
72
|
+
static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallcompleted.trigger";
|
|
73
|
+
/** Step metadata - entity this action targets */
|
|
74
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
75
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
76
|
+
static readonly STEP_SCHEMA_ACTION_ID = "6d3ee2f2-a677-43c8-8cdd-14f6c5a376cf";
|
|
77
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
78
|
+
readonly actionName: string;
|
|
79
|
+
readonly schemaActionId: string;
|
|
80
|
+
readonly entity: string;
|
|
81
|
+
constructor(record: OdinRecord<any> | {
|
|
82
|
+
id: string;
|
|
83
|
+
entity: string;
|
|
84
|
+
type?: string;
|
|
85
|
+
}, properties: UpdateAgentCallLegOnIncomingCallCompletedProperties, options?: {
|
|
86
|
+
journeyId?: string;
|
|
87
|
+
stageKey?: string;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentCallLegOnIncomingCallCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on incoming call completed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentCallLegOnIncomingCallCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateAgentCallLegOnIncomingCallCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on incoming call completed
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
|
|
26
|
+
* @permission schema.action.updateagentcalllegonincomingcallcompleted.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateAgentCallLegOnIncomingCallCompletedDto 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 = 'UpdateAgentCallLegOnIncomingCallCompleted';
|
|
40
|
+
this.schemaActionId = '6d3ee2f2-a677-43c8-8cdd-14f6c5a376cf';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateAgentCallLegOnIncomingCallCompletedDto = UpdateAgentCallLegOnIncomingCallCompletedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallCompleted';
|
|
48
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted';
|
|
51
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallcompleted.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ACTION_ID = '6d3ee2f2-a677-43c8-8cdd-14f6c5a376cf';
|
|
56
|
+
UpdateAgentCallLegOnIncomingCallCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentCallLegOnIncomingCallRinding Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on incoming call rinding
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallRinding
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
|
|
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 UpdateAgentCallLegOnIncomingCallRinding updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentCallLegOnIncomingCallRindingMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallRindingDto, UpdateAgentCallLegOnIncomingCallRindingProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentCallLegOnIncomingCallRinding action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentCallLegOnIncomingCallRindingProperties {
|
|
28
|
+
/**
|
|
29
|
+
* RingingAt
|
|
30
|
+
*
|
|
31
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
RingingAt: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status
|
|
38
|
+
*
|
|
39
|
+
* Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
|
|
40
|
+
* @type {ENUM}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Status: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* UpdateAgentCallLegOnIncomingCallRinding
|
|
47
|
+
*
|
|
48
|
+
* Update agent call leg on incoming call rinding
|
|
49
|
+
*
|
|
50
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
51
|
+
* @module NotificationModule
|
|
52
|
+
* @entity CallLeg
|
|
53
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
|
|
54
|
+
* @permission schema.action.updateagentcalllegonincomingcallrinding.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateAgentCallLegOnIncomingCallRindingDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallRindingProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallRinding";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallrinding.trigger";
|
|
65
|
+
/** Step metadata - entity this action targets */
|
|
66
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
67
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
68
|
+
static readonly STEP_SCHEMA_ACTION_ID = "a3d8be43-ce38-4841-a836-7f38ceba4761";
|
|
69
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
70
|
+
readonly actionName: string;
|
|
71
|
+
readonly schemaActionId: string;
|
|
72
|
+
readonly entity: string;
|
|
73
|
+
constructor(record: OdinRecord<any> | {
|
|
74
|
+
id: string;
|
|
75
|
+
entity: string;
|
|
76
|
+
type?: string;
|
|
77
|
+
}, properties: UpdateAgentCallLegOnIncomingCallRindingProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentCallLegOnIncomingCallRinding Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on incoming call rinding
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateAgentCallLegOnIncomingCallRinding
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentCallLegOnIncomingCallRindingDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateAgentCallLegOnIncomingCallRinding
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on incoming call rinding
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
|
|
26
|
+
* @permission schema.action.updateagentcalllegonincomingcallrinding.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateAgentCallLegOnIncomingCallRindingDto 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 = 'UpdateAgentCallLegOnIncomingCallRinding';
|
|
40
|
+
this.schemaActionId = 'a3d8be43-ce38-4841-a836-7f38ceba4761';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateAgentCallLegOnIncomingCallRindingDto = UpdateAgentCallLegOnIncomingCallRindingDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallRinding';
|
|
48
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding';
|
|
51
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallrinding.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.STEP_SCHEMA_ACTION_ID = 'a3d8be43-ce38-4841-a836-7f38ceba4761';
|
|
56
|
+
UpdateAgentCallLegOnIncomingCallRindingDto.AUTO_LINK_PARENT = false;
|
|
@@ -21,8 +21,8 @@ export interface UpdateCallOnInboundCallCanceledMessage extends OdinRecordUpdate
|
|
|
21
21
|
/**
|
|
22
22
|
* Properties for UpdateCallOnInboundCallCanceled action
|
|
23
23
|
*
|
|
24
|
-
* @property Required fields:
|
|
25
|
-
* @property Optional fields:
|
|
24
|
+
* @property Required fields: 4
|
|
25
|
+
* @property Optional fields: 0
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateCallOnInboundCallCanceledProperties {
|
|
28
28
|
/**
|
|
@@ -30,29 +30,33 @@ export interface UpdateCallOnInboundCallCanceledProperties {
|
|
|
30
30
|
*
|
|
31
31
|
* The granular stage of a call, more extensive than CallStatus (Communications - Call)
|
|
32
32
|
* @type {ENUM}
|
|
33
|
+
* @required
|
|
33
34
|
*/
|
|
34
|
-
CallStage
|
|
35
|
+
CallStage: string;
|
|
35
36
|
/**
|
|
36
37
|
* call status
|
|
37
38
|
*
|
|
38
39
|
* the status of the call (Communications - Call)
|
|
39
40
|
* @type {TEXT}
|
|
41
|
+
* @required
|
|
40
42
|
*/
|
|
41
|
-
CallStatus
|
|
43
|
+
CallStatus: string;
|
|
42
44
|
/**
|
|
43
45
|
* EndTime
|
|
44
46
|
*
|
|
45
47
|
* Data field for Call records. Used by Communications team.
|
|
46
48
|
* @type {DATE_TIME}
|
|
49
|
+
* @required
|
|
47
50
|
*/
|
|
48
|
-
EndTime
|
|
51
|
+
EndTime: string;
|
|
49
52
|
/**
|
|
50
53
|
* CallEndReason
|
|
51
54
|
*
|
|
52
55
|
* CallEndReason
|
|
53
56
|
* @type {ENUM}
|
|
57
|
+
* @required
|
|
54
58
|
*/
|
|
55
|
-
CallEndReason
|
|
59
|
+
CallEndReason: string;
|
|
56
60
|
}
|
|
57
61
|
/**
|
|
58
62
|
* UpdateCallOnInboundCallCanceled
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCustomerCallLegOnIncomingCallAnswered Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update customer call leg on incoming call answered
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallAnswered
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
|
|
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 UpdateCustomerCallLegOnIncomingCallAnswered updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCustomerCallLegOnIncomingCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallAnsweredDto, UpdateCustomerCallLegOnIncomingCallAnsweredProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCustomerCallLegOnIncomingCallAnswered action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCustomerCallLegOnIncomingCallAnsweredProperties {
|
|
28
|
+
/**
|
|
29
|
+
* AnsweredAt
|
|
30
|
+
*
|
|
31
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
AnsweredAt: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status
|
|
38
|
+
*
|
|
39
|
+
* Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
|
|
40
|
+
* @type {ENUM}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Status: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* UpdateCustomerCallLegOnIncomingCallAnswered
|
|
47
|
+
*
|
|
48
|
+
* Update customer call leg on incoming call answered
|
|
49
|
+
*
|
|
50
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
51
|
+
* @module NotificationModule
|
|
52
|
+
* @entity CallLeg
|
|
53
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
|
|
54
|
+
* @permission schema.action.updatecustomercalllegonincomingcallanswered.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateCustomerCallLegOnIncomingCallAnsweredDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallAnsweredProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallAnswered";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallanswered.trigger";
|
|
65
|
+
/** Step metadata - entity this action targets */
|
|
66
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
67
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
68
|
+
static readonly STEP_SCHEMA_ACTION_ID = "99b2a2f3-33b6-4772-845d-e5a607f4d83d";
|
|
69
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
70
|
+
readonly actionName: string;
|
|
71
|
+
readonly schemaActionId: string;
|
|
72
|
+
readonly entity: string;
|
|
73
|
+
constructor(record: OdinRecord<any> | {
|
|
74
|
+
id: string;
|
|
75
|
+
entity: string;
|
|
76
|
+
type?: string;
|
|
77
|
+
}, properties: UpdateCustomerCallLegOnIncomingCallAnsweredProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCustomerCallLegOnIncomingCallAnswered Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update customer call leg on incoming call answered
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallAnswered
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCustomerCallLegOnIncomingCallAnsweredDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCustomerCallLegOnIncomingCallAnswered
|
|
19
|
+
*
|
|
20
|
+
* Update customer call leg on incoming call answered
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
|
|
26
|
+
* @permission schema.action.updatecustomercalllegonincomingcallanswered.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCustomerCallLegOnIncomingCallAnsweredDto 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 = 'UpdateCustomerCallLegOnIncomingCallAnswered';
|
|
40
|
+
this.schemaActionId = '99b2a2f3-33b6-4772-845d-e5a607f4d83d';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerCallLegOnIncomingCallAnsweredDto = UpdateCustomerCallLegOnIncomingCallAnsweredDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallAnswered';
|
|
48
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered';
|
|
51
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallanswered.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ACTION_ID = '99b2a2f3-33b6-4772-845d-e5a607f4d83d';
|
|
56
|
+
UpdateCustomerCallLegOnIncomingCallAnsweredDto.AUTO_LINK_PARENT = false;
|
|
@@ -25,7 +25,12 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
|
|
|
25
25
|
import { CallLegProperties } from '../entities-v2/CallLeg';
|
|
26
26
|
import { CreateAgentCallLegProperties } from '../actions-v2/CreateAgentCallLegDto';
|
|
27
27
|
import { CreateCustomerCallLegProperties } from '../actions-v2/CreateCustomerCallLegDto';
|
|
28
|
+
import { UpdateAgentCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto';
|
|
29
|
+
import { UpdateAgentCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto';
|
|
30
|
+
import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto';
|
|
31
|
+
import { UpdateAgentCallLegOnIncomingCallRindingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRindingDto';
|
|
28
32
|
import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
|
|
33
|
+
import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
|
|
29
34
|
import { CallRecord } from './CallRecord';
|
|
30
35
|
import { CallEventRecord } from './CallEventRecord';
|
|
31
36
|
import { CallTransferRecord } from './CallTransferRecord';
|
|
@@ -269,6 +274,110 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
269
274
|
journeyId?: string;
|
|
270
275
|
stageKey?: string;
|
|
271
276
|
}): ActionBuilder;
|
|
277
|
+
/**
|
|
278
|
+
* UpdateAgentCallLegOnIncomingCallAnswered
|
|
279
|
+
*
|
|
280
|
+
* Updates this CallLeg record with the specified properties.
|
|
281
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
282
|
+
*
|
|
283
|
+
* @param properties - Required properties for this action
|
|
284
|
+
* @param options - Optional settings
|
|
285
|
+
* @param options.journeyId - Associate with a journey
|
|
286
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
287
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
288
|
+
* @throws Error if called on a new (unsaved) record
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* ```typescript
|
|
292
|
+
* const record = await odinClient.callLegs.get(id);
|
|
293
|
+
* await record.updateAgentCallLegOnIncomingCallAnswered({ ... }).execute();
|
|
294
|
+
*
|
|
295
|
+
* // Dry run (for debugging)
|
|
296
|
+
* const payload = record.updateAgentCallLegOnIncomingCallAnswered({ ... }).dryRun();
|
|
297
|
+
* ```
|
|
298
|
+
*/
|
|
299
|
+
updateAgentCallLegOnIncomingCallAnswered(properties: UpdateAgentCallLegOnIncomingCallAnsweredProperties, options?: {
|
|
300
|
+
journeyId?: string;
|
|
301
|
+
stageKey?: string;
|
|
302
|
+
}): ActionBuilder;
|
|
303
|
+
/**
|
|
304
|
+
* UpdateAgentCallLegOnIncomingCallCanceled
|
|
305
|
+
*
|
|
306
|
+
* Updates this CallLeg record with the specified properties.
|
|
307
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
308
|
+
*
|
|
309
|
+
* @param properties - Required properties for this action
|
|
310
|
+
* @param options - Optional settings
|
|
311
|
+
* @param options.journeyId - Associate with a journey
|
|
312
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
313
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
314
|
+
* @throws Error if called on a new (unsaved) record
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```typescript
|
|
318
|
+
* const record = await odinClient.callLegs.get(id);
|
|
319
|
+
* await record.updateAgentCallLegOnIncomingCallCanceled({ ... }).execute();
|
|
320
|
+
*
|
|
321
|
+
* // Dry run (for debugging)
|
|
322
|
+
* const payload = record.updateAgentCallLegOnIncomingCallCanceled({ ... }).dryRun();
|
|
323
|
+
* ```
|
|
324
|
+
*/
|
|
325
|
+
updateAgentCallLegOnIncomingCallCanceled(properties: UpdateAgentCallLegOnIncomingCallCanceledProperties, options?: {
|
|
326
|
+
journeyId?: string;
|
|
327
|
+
stageKey?: string;
|
|
328
|
+
}): ActionBuilder;
|
|
329
|
+
/**
|
|
330
|
+
* UpdateAgentCallLegOnIncomingCallCompleted
|
|
331
|
+
*
|
|
332
|
+
* Updates this CallLeg record with the specified properties.
|
|
333
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
334
|
+
*
|
|
335
|
+
* @param properties - Required properties for this action
|
|
336
|
+
* @param options - Optional settings
|
|
337
|
+
* @param options.journeyId - Associate with a journey
|
|
338
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
339
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
340
|
+
* @throws Error if called on a new (unsaved) record
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* ```typescript
|
|
344
|
+
* const record = await odinClient.callLegs.get(id);
|
|
345
|
+
* await record.updateAgentCallLegOnIncomingCallCompleted({ ... }).execute();
|
|
346
|
+
*
|
|
347
|
+
* // Dry run (for debugging)
|
|
348
|
+
* const payload = record.updateAgentCallLegOnIncomingCallCompleted({ ... }).dryRun();
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
updateAgentCallLegOnIncomingCallCompleted(properties: UpdateAgentCallLegOnIncomingCallCompletedProperties, options?: {
|
|
352
|
+
journeyId?: string;
|
|
353
|
+
stageKey?: string;
|
|
354
|
+
}): ActionBuilder;
|
|
355
|
+
/**
|
|
356
|
+
* UpdateAgentCallLegOnIncomingCallRinding
|
|
357
|
+
*
|
|
358
|
+
* Updates this CallLeg record with the specified properties.
|
|
359
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
360
|
+
*
|
|
361
|
+
* @param properties - Required properties for this action
|
|
362
|
+
* @param options - Optional settings
|
|
363
|
+
* @param options.journeyId - Associate with a journey
|
|
364
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
365
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
366
|
+
* @throws Error if called on a new (unsaved) record
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
* ```typescript
|
|
370
|
+
* const record = await odinClient.callLegs.get(id);
|
|
371
|
+
* await record.updateAgentCallLegOnIncomingCallRinding({ ... }).execute();
|
|
372
|
+
*
|
|
373
|
+
* // Dry run (for debugging)
|
|
374
|
+
* const payload = record.updateAgentCallLegOnIncomingCallRinding({ ... }).dryRun();
|
|
375
|
+
* ```
|
|
376
|
+
*/
|
|
377
|
+
updateAgentCallLegOnIncomingCallRinding(properties: UpdateAgentCallLegOnIncomingCallRindingProperties, options?: {
|
|
378
|
+
journeyId?: string;
|
|
379
|
+
stageKey?: string;
|
|
380
|
+
}): ActionBuilder;
|
|
272
381
|
/**
|
|
273
382
|
* UpdateCall
|
|
274
383
|
*
|
|
@@ -296,6 +405,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
296
405
|
journeyId?: string;
|
|
297
406
|
stageKey?: string;
|
|
298
407
|
}): ActionBuilder;
|
|
408
|
+
/**
|
|
409
|
+
* UpdateCustomerCallLegOnIncomingCallAnswered
|
|
410
|
+
*
|
|
411
|
+
* Updates this CallLeg record with the specified properties.
|
|
412
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
413
|
+
*
|
|
414
|
+
* @param properties - Required properties for this action
|
|
415
|
+
* @param options - Optional settings
|
|
416
|
+
* @param options.journeyId - Associate with a journey
|
|
417
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
418
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
419
|
+
* @throws Error if called on a new (unsaved) record
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* ```typescript
|
|
423
|
+
* const record = await odinClient.callLegs.get(id);
|
|
424
|
+
* await record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).execute();
|
|
425
|
+
*
|
|
426
|
+
* // Dry run (for debugging)
|
|
427
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).dryRun();
|
|
428
|
+
* ```
|
|
429
|
+
*/
|
|
430
|
+
updateCustomerCallLegOnIncomingCallAnswered(properties: UpdateCustomerCallLegOnIncomingCallAnsweredProperties, options?: {
|
|
431
|
+
journeyId?: string;
|
|
432
|
+
stageKey?: string;
|
|
433
|
+
}): ActionBuilder;
|
|
299
434
|
}
|
|
300
435
|
/** Type guard to check if an object is a CallLegRecord */
|
|
301
436
|
export declare function isCallLegRecord(obj: any): obj is CallLegRecord;
|
|
@@ -367,6 +367,122 @@ class CallLegRecord {
|
|
|
367
367
|
// ============================================
|
|
368
368
|
// UPDATE ACTIONS (require existing record)
|
|
369
369
|
// ============================================
|
|
370
|
+
/**
|
|
371
|
+
* UpdateAgentCallLegOnIncomingCallAnswered
|
|
372
|
+
*
|
|
373
|
+
* Updates this CallLeg record with the specified properties.
|
|
374
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
375
|
+
*
|
|
376
|
+
* @param properties - Required properties for this action
|
|
377
|
+
* @param options - Optional settings
|
|
378
|
+
* @param options.journeyId - Associate with a journey
|
|
379
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
380
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
381
|
+
* @throws Error if called on a new (unsaved) record
|
|
382
|
+
*
|
|
383
|
+
* @example
|
|
384
|
+
* ```typescript
|
|
385
|
+
* const record = await odinClient.callLegs.get(id);
|
|
386
|
+
* await record.updateAgentCallLegOnIncomingCallAnswered({ ... }).execute();
|
|
387
|
+
*
|
|
388
|
+
* // Dry run (for debugging)
|
|
389
|
+
* const payload = record.updateAgentCallLegOnIncomingCallAnswered({ ... }).dryRun();
|
|
390
|
+
* ```
|
|
391
|
+
*/
|
|
392
|
+
updateAgentCallLegOnIncomingCallAnswered(properties, options) {
|
|
393
|
+
var _a;
|
|
394
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
395
|
+
throw new Error('updateAgentCallLegOnIncomingCallAnswered requires an existing record. Use accessor.get() first.');
|
|
396
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
397
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* UpdateAgentCallLegOnIncomingCallCanceled
|
|
401
|
+
*
|
|
402
|
+
* Updates this CallLeg record with the specified properties.
|
|
403
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
404
|
+
*
|
|
405
|
+
* @param properties - Required properties for this action
|
|
406
|
+
* @param options - Optional settings
|
|
407
|
+
* @param options.journeyId - Associate with a journey
|
|
408
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
409
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
410
|
+
* @throws Error if called on a new (unsaved) record
|
|
411
|
+
*
|
|
412
|
+
* @example
|
|
413
|
+
* ```typescript
|
|
414
|
+
* const record = await odinClient.callLegs.get(id);
|
|
415
|
+
* await record.updateAgentCallLegOnIncomingCallCanceled({ ... }).execute();
|
|
416
|
+
*
|
|
417
|
+
* // Dry run (for debugging)
|
|
418
|
+
* const payload = record.updateAgentCallLegOnIncomingCallCanceled({ ... }).dryRun();
|
|
419
|
+
* ```
|
|
420
|
+
*/
|
|
421
|
+
updateAgentCallLegOnIncomingCallCanceled(properties, options) {
|
|
422
|
+
var _a;
|
|
423
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
424
|
+
throw new Error('updateAgentCallLegOnIncomingCallCanceled requires an existing record. Use accessor.get() first.');
|
|
425
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
426
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* UpdateAgentCallLegOnIncomingCallCompleted
|
|
430
|
+
*
|
|
431
|
+
* Updates this CallLeg record with the specified properties.
|
|
432
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
433
|
+
*
|
|
434
|
+
* @param properties - Required properties for this action
|
|
435
|
+
* @param options - Optional settings
|
|
436
|
+
* @param options.journeyId - Associate with a journey
|
|
437
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
438
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
439
|
+
* @throws Error if called on a new (unsaved) record
|
|
440
|
+
*
|
|
441
|
+
* @example
|
|
442
|
+
* ```typescript
|
|
443
|
+
* const record = await odinClient.callLegs.get(id);
|
|
444
|
+
* await record.updateAgentCallLegOnIncomingCallCompleted({ ... }).execute();
|
|
445
|
+
*
|
|
446
|
+
* // Dry run (for debugging)
|
|
447
|
+
* const payload = record.updateAgentCallLegOnIncomingCallCompleted({ ... }).dryRun();
|
|
448
|
+
* ```
|
|
449
|
+
*/
|
|
450
|
+
updateAgentCallLegOnIncomingCallCompleted(properties, options) {
|
|
451
|
+
var _a;
|
|
452
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
453
|
+
throw new Error('updateAgentCallLegOnIncomingCallCompleted requires an existing record. Use accessor.get() first.');
|
|
454
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
455
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* UpdateAgentCallLegOnIncomingCallRinding
|
|
459
|
+
*
|
|
460
|
+
* Updates this CallLeg record with the specified properties.
|
|
461
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
462
|
+
*
|
|
463
|
+
* @param properties - Required properties for this action
|
|
464
|
+
* @param options - Optional settings
|
|
465
|
+
* @param options.journeyId - Associate with a journey
|
|
466
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
467
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
468
|
+
* @throws Error if called on a new (unsaved) record
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```typescript
|
|
472
|
+
* const record = await odinClient.callLegs.get(id);
|
|
473
|
+
* await record.updateAgentCallLegOnIncomingCallRinding({ ... }).execute();
|
|
474
|
+
*
|
|
475
|
+
* // Dry run (for debugging)
|
|
476
|
+
* const payload = record.updateAgentCallLegOnIncomingCallRinding({ ... }).dryRun();
|
|
477
|
+
* ```
|
|
478
|
+
*/
|
|
479
|
+
updateAgentCallLegOnIncomingCallRinding(properties, options) {
|
|
480
|
+
var _a;
|
|
481
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
482
|
+
throw new Error('updateAgentCallLegOnIncomingCallRinding requires an existing record. Use accessor.get() first.');
|
|
483
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallRinding', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
484
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
485
|
+
}
|
|
370
486
|
/**
|
|
371
487
|
* UpdateCall
|
|
372
488
|
*
|
|
@@ -404,6 +520,35 @@ class CallLegRecord {
|
|
|
404
520
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCall', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
405
521
|
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
406
522
|
}
|
|
523
|
+
/**
|
|
524
|
+
* UpdateCustomerCallLegOnIncomingCallAnswered
|
|
525
|
+
*
|
|
526
|
+
* Updates this CallLeg record with the specified properties.
|
|
527
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
528
|
+
*
|
|
529
|
+
* @param properties - Required properties for this action
|
|
530
|
+
* @param options - Optional settings
|
|
531
|
+
* @param options.journeyId - Associate with a journey
|
|
532
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
533
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
534
|
+
* @throws Error if called on a new (unsaved) record
|
|
535
|
+
*
|
|
536
|
+
* @example
|
|
537
|
+
* ```typescript
|
|
538
|
+
* const record = await odinClient.callLegs.get(id);
|
|
539
|
+
* await record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).execute();
|
|
540
|
+
*
|
|
541
|
+
* // Dry run (for debugging)
|
|
542
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).dryRun();
|
|
543
|
+
* ```
|
|
544
|
+
*/
|
|
545
|
+
updateCustomerCallLegOnIncomingCallAnswered(properties, options) {
|
|
546
|
+
var _a;
|
|
547
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
548
|
+
throw new Error('updateCustomerCallLegOnIncomingCallAnswered requires an existing record. Use accessor.get() first.');
|
|
549
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
550
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
551
|
+
}
|
|
407
552
|
}
|
|
408
553
|
exports.CallLegRecord = CallLegRecord;
|
|
409
554
|
// ============================================
|
|
@@ -394,11 +394,13 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
394
394
|
/**
|
|
395
395
|
* UpdateCallOnInboundCallCanceled
|
|
396
396
|
*
|
|
397
|
-
* Updates this Call record.
|
|
397
|
+
* Updates this Call record with the specified properties.
|
|
398
398
|
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
399
399
|
*
|
|
400
|
-
* @param
|
|
401
|
-
* @param options - Optional settings
|
|
400
|
+
* @param properties - Required properties for this action
|
|
401
|
+
* @param options - Optional settings
|
|
402
|
+
* @param options.journeyId - Associate with a journey
|
|
403
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
402
404
|
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
403
405
|
* @throws Error if called on a new (unsaved) record
|
|
404
406
|
*
|
|
@@ -411,10 +413,7 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
411
413
|
* const payload = record.updateCallOnInboundCallCanceled({ ... }).dryRun();
|
|
412
414
|
* ```
|
|
413
415
|
*/
|
|
414
|
-
updateCallOnInboundCallCanceled(
|
|
415
|
-
journeyId?: string;
|
|
416
|
-
stageKey?: string;
|
|
417
|
-
}, options?: {
|
|
416
|
+
updateCallOnInboundCallCanceled(properties: UpdateCallOnInboundCallCanceledProperties, options?: {
|
|
418
417
|
journeyId?: string;
|
|
419
418
|
stageKey?: string;
|
|
420
419
|
}): ActionBuilder;
|
|
@@ -546,11 +546,13 @@ class CallRecord {
|
|
|
546
546
|
/**
|
|
547
547
|
* UpdateCallOnInboundCallCanceled
|
|
548
548
|
*
|
|
549
|
-
* Updates this Call record.
|
|
549
|
+
* Updates this Call record with the specified properties.
|
|
550
550
|
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
551
551
|
*
|
|
552
|
-
* @param
|
|
553
|
-
* @param options - Optional settings
|
|
552
|
+
* @param properties - Required properties for this action
|
|
553
|
+
* @param options - Optional settings
|
|
554
|
+
* @param options.journeyId - Associate with a journey
|
|
555
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
554
556
|
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
555
557
|
* @throws Error if called on a new (unsaved) record
|
|
556
558
|
*
|
|
@@ -563,21 +565,11 @@ class CallRecord {
|
|
|
563
565
|
* const payload = record.updateCallOnInboundCallCanceled({ ... }).dryRun();
|
|
564
566
|
* ```
|
|
565
567
|
*/
|
|
566
|
-
updateCallOnInboundCallCanceled(
|
|
568
|
+
updateCallOnInboundCallCanceled(properties, options) {
|
|
567
569
|
var _a;
|
|
568
570
|
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
569
571
|
throw new Error('updateCallOnInboundCallCanceled requires an existing record. Use accessor.get() first.');
|
|
570
|
-
|
|
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: 'UpdateCallOnInboundCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
572
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
581
573
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
582
574
|
}
|
|
583
575
|
/**
|