@d19n/youfibre-odin-sdk 2.0.119 → 2.0.120
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 +3 -1
- package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto.d.ts +81 -0
- package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto.js +56 -0
- package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto.d.ts +86 -0
- package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto.js +54 -0
- package/dist/records-v2/CallLegRecord.d.ts +54 -0
- package/dist/records-v2/CallLegRecord.js +58 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -353,7 +353,7 @@ This SDK includes **165** entities across **12** modules.
|
|
|
353
353
|
|
|
354
354
|
## Actions
|
|
355
355
|
|
|
356
|
-
This SDK includes **
|
|
356
|
+
This SDK includes **646** actions.
|
|
357
357
|
|
|
358
358
|
### Action Types
|
|
359
359
|
|
|
@@ -1137,6 +1137,8 @@ This SDK includes **644** actions.
|
|
|
1137
1137
|
| `UpdateAgentCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled |
|
|
1138
1138
|
| `UpdateAgentCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted |
|
|
1139
1139
|
| `UpdateAgentCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinging |
|
|
1140
|
+
| `UpdateAgentCallLegOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered |
|
|
1141
|
+
| `UpdateAgentCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted |
|
|
1140
1142
|
| `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
|
|
1141
1143
|
| `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
|
|
1142
1144
|
| `UpdateCustomerCallLegOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted |
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentCallLegOnOutboundCallAnswered Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on outbound call answered
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateAgentCallLegOnOutboundCallAnswered
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
|
|
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 UpdateAgentCallLegOnOutboundCallAnswered updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentCallLegOnOutboundCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnOutboundCallAnsweredDto, UpdateAgentCallLegOnOutboundCallAnsweredProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentCallLegOnOutboundCallAnswered action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentCallLegOnOutboundCallAnsweredProperties {
|
|
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
|
+
* UpdateAgentCallLegOnOutboundCallAnswered
|
|
47
|
+
*
|
|
48
|
+
* Update agent call leg on outbound 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.UpdateAgentCallLegOnOutboundCallAnswered
|
|
54
|
+
* @permission schema.action.updateagentcalllegonoutboundcallanswered.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateAgentCallLegOnOutboundCallAnsweredDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallAnsweredProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateAgentCallLegOnOutboundCallAnswered";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updateagentcalllegonoutboundcallanswered.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 = "d93a6714-fda8-4635-a9f6-7b582d155f08";
|
|
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: UpdateAgentCallLegOnOutboundCallAnsweredProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentCallLegOnOutboundCallAnswered Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on outbound call answered
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateAgentCallLegOnOutboundCallAnswered
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentCallLegOnOutboundCallAnsweredDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateAgentCallLegOnOutboundCallAnswered
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on outbound 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.UpdateAgentCallLegOnOutboundCallAnswered
|
|
26
|
+
* @permission schema.action.updateagentcalllegonoutboundcallanswered.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateAgentCallLegOnOutboundCallAnsweredDto 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 = 'UpdateAgentCallLegOnOutboundCallAnswered';
|
|
40
|
+
this.schemaActionId = 'd93a6714-fda8-4635-a9f6-7b582d155f08';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateAgentCallLegOnOutboundCallAnsweredDto = UpdateAgentCallLegOnOutboundCallAnsweredDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.ACTION_KEY = 'UpdateAgentCallLegOnOutboundCallAnswered';
|
|
48
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered';
|
|
51
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.PERMISSION = 'schema.action.updateagentcalllegonoutboundcallanswered.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.STEP_SCHEMA_ACTION_ID = 'd93a6714-fda8-4635-a9f6-7b582d155f08';
|
|
56
|
+
UpdateAgentCallLegOnOutboundCallAnsweredDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentCallLegOnOutboundCallCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on outbound call completed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateAgentCallLegOnOutboundCallCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
|
|
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 UpdateAgentCallLegOnOutboundCallCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentCallLegOnOutboundCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnOutboundCallCompletedDto, UpdateAgentCallLegOnOutboundCallCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentCallLegOnOutboundCallCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentCallLegOnOutboundCallCompletedProperties {
|
|
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
|
+
*/
|
|
50
|
+
Duration?: number | null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* UpdateAgentCallLegOnOutboundCallCompleted
|
|
54
|
+
*
|
|
55
|
+
* Update agent call leg on outbound call completed
|
|
56
|
+
*
|
|
57
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
58
|
+
* @module NotificationModule
|
|
59
|
+
* @entity CallLeg
|
|
60
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
|
|
61
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
62
|
+
*/
|
|
63
|
+
export declare class UpdateAgentCallLegOnOutboundCallCompletedDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallCompletedProperties> {
|
|
64
|
+
/** Used by SDK generators to identify action type */
|
|
65
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
66
|
+
static readonly ACTION_KEY = "UpdateAgentCallLegOnOutboundCallCompleted";
|
|
67
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
68
|
+
static readonly ENTITIES: string[];
|
|
69
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted";
|
|
70
|
+
/** Step metadata - entity this action targets */
|
|
71
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
72
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
73
|
+
static readonly STEP_SCHEMA_ACTION_ID = "231be3cd-1ed9-40eb-937a-8cd1d7c0b983";
|
|
74
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
75
|
+
readonly actionName: string;
|
|
76
|
+
readonly schemaActionId: string;
|
|
77
|
+
readonly entity: string;
|
|
78
|
+
constructor(record: OdinRecord<any> | {
|
|
79
|
+
id: string;
|
|
80
|
+
entity: string;
|
|
81
|
+
type?: string;
|
|
82
|
+
}, properties: UpdateAgentCallLegOnOutboundCallCompletedProperties, options?: {
|
|
83
|
+
journeyId?: string;
|
|
84
|
+
stageKey?: string;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentCallLegOnOutboundCallCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on outbound call completed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateAgentCallLegOnOutboundCallCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentCallLegOnOutboundCallCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateAgentCallLegOnOutboundCallCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on outbound 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.UpdateAgentCallLegOnOutboundCallCompleted
|
|
26
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
27
|
+
*/
|
|
28
|
+
class UpdateAgentCallLegOnOutboundCallCompletedDto extends core_1.OdinRecordUpdateDto {
|
|
29
|
+
constructor(record, properties, options) {
|
|
30
|
+
super({
|
|
31
|
+
id: record.id,
|
|
32
|
+
entity: record.entity,
|
|
33
|
+
type: record.type,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
37
|
+
});
|
|
38
|
+
this.actionName = 'UpdateAgentCallLegOnOutboundCallCompleted';
|
|
39
|
+
this.schemaActionId = '231be3cd-1ed9-40eb-937a-8cd1d7c0b983';
|
|
40
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.UpdateAgentCallLegOnOutboundCallCompletedDto = UpdateAgentCallLegOnOutboundCallCompletedDto;
|
|
44
|
+
/** Used by SDK generators to identify action type */
|
|
45
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
46
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.ACTION_KEY = 'UpdateAgentCallLegOnOutboundCallCompleted';
|
|
47
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
48
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.ENTITIES = ['CallLeg'];
|
|
49
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
52
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
53
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_SCHEMA_ACTION_ID = '231be3cd-1ed9-40eb-937a-8cd1d7c0b983';
|
|
54
|
+
UpdateAgentCallLegOnOutboundCallCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -29,6 +29,8 @@ import { UpdateAgentCallLegOnIncomingCallAnsweredProperties } from '../actions-v
|
|
|
29
29
|
import { UpdateAgentCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto';
|
|
30
30
|
import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto';
|
|
31
31
|
import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
|
|
32
|
+
import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto';
|
|
33
|
+
import { UpdateAgentCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto';
|
|
32
34
|
import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
|
|
33
35
|
import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
|
|
34
36
|
import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
|
|
@@ -382,6 +384,58 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
382
384
|
journeyId?: string;
|
|
383
385
|
stageKey?: string;
|
|
384
386
|
}): ActionBuilder;
|
|
387
|
+
/**
|
|
388
|
+
* UpdateAgentCallLegOnOutboundCallAnswered
|
|
389
|
+
*
|
|
390
|
+
* Updates this CallLeg record with the specified properties.
|
|
391
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
392
|
+
*
|
|
393
|
+
* @param properties - Required properties for this action
|
|
394
|
+
* @param options - Optional settings
|
|
395
|
+
* @param options.journeyId - Associate with a journey
|
|
396
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
397
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
398
|
+
* @throws Error if called on a new (unsaved) record
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* ```typescript
|
|
402
|
+
* const record = await odinClient.callLegs.get(id);
|
|
403
|
+
* await record.updateAgentCallLegOnOutboundCallAnswered({ ... }).execute();
|
|
404
|
+
*
|
|
405
|
+
* // Dry run (for debugging)
|
|
406
|
+
* const payload = record.updateAgentCallLegOnOutboundCallAnswered({ ... }).dryRun();
|
|
407
|
+
* ```
|
|
408
|
+
*/
|
|
409
|
+
updateAgentCallLegOnOutboundCallAnswered(properties: UpdateAgentCallLegOnOutboundCallAnsweredProperties, options?: {
|
|
410
|
+
journeyId?: string;
|
|
411
|
+
stageKey?: string;
|
|
412
|
+
}): ActionBuilder;
|
|
413
|
+
/**
|
|
414
|
+
* UpdateAgentCallLegOnOutboundCallCompleted
|
|
415
|
+
*
|
|
416
|
+
* Updates this CallLeg record with the specified properties.
|
|
417
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
418
|
+
*
|
|
419
|
+
* @param properties - Required properties for this action
|
|
420
|
+
* @param options - Optional settings
|
|
421
|
+
* @param options.journeyId - Associate with a journey
|
|
422
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
423
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
424
|
+
* @throws Error if called on a new (unsaved) record
|
|
425
|
+
*
|
|
426
|
+
* @example
|
|
427
|
+
* ```typescript
|
|
428
|
+
* const record = await odinClient.callLegs.get(id);
|
|
429
|
+
* await record.updateAgentCallLegOnOutboundCallCompleted({ ... }).execute();
|
|
430
|
+
*
|
|
431
|
+
* // Dry run (for debugging)
|
|
432
|
+
* const payload = record.updateAgentCallLegOnOutboundCallCompleted({ ... }).dryRun();
|
|
433
|
+
* ```
|
|
434
|
+
*/
|
|
435
|
+
updateAgentCallLegOnOutboundCallCompleted(properties: UpdateAgentCallLegOnOutboundCallCompletedProperties, options?: {
|
|
436
|
+
journeyId?: string;
|
|
437
|
+
stageKey?: string;
|
|
438
|
+
}): ActionBuilder;
|
|
385
439
|
/**
|
|
386
440
|
* UpdateCall
|
|
387
441
|
*
|
|
@@ -483,6 +483,64 @@ class CallLegRecord {
|
|
|
483
483
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
484
484
|
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
485
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* UpdateAgentCallLegOnOutboundCallAnswered
|
|
488
|
+
*
|
|
489
|
+
* Updates this CallLeg record with the specified properties.
|
|
490
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
491
|
+
*
|
|
492
|
+
* @param properties - Required properties for this action
|
|
493
|
+
* @param options - Optional settings
|
|
494
|
+
* @param options.journeyId - Associate with a journey
|
|
495
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
496
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
497
|
+
* @throws Error if called on a new (unsaved) record
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
* ```typescript
|
|
501
|
+
* const record = await odinClient.callLegs.get(id);
|
|
502
|
+
* await record.updateAgentCallLegOnOutboundCallAnswered({ ... }).execute();
|
|
503
|
+
*
|
|
504
|
+
* // Dry run (for debugging)
|
|
505
|
+
* const payload = record.updateAgentCallLegOnOutboundCallAnswered({ ... }).dryRun();
|
|
506
|
+
* ```
|
|
507
|
+
*/
|
|
508
|
+
updateAgentCallLegOnOutboundCallAnswered(properties, options) {
|
|
509
|
+
var _a;
|
|
510
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
511
|
+
throw new Error('updateAgentCallLegOnOutboundCallAnswered requires an existing record. Use accessor.get() first.');
|
|
512
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
513
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* UpdateAgentCallLegOnOutboundCallCompleted
|
|
517
|
+
*
|
|
518
|
+
* Updates this CallLeg record with the specified properties.
|
|
519
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
520
|
+
*
|
|
521
|
+
* @param properties - Required properties for this action
|
|
522
|
+
* @param options - Optional settings
|
|
523
|
+
* @param options.journeyId - Associate with a journey
|
|
524
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
525
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
526
|
+
* @throws Error if called on a new (unsaved) record
|
|
527
|
+
*
|
|
528
|
+
* @example
|
|
529
|
+
* ```typescript
|
|
530
|
+
* const record = await odinClient.callLegs.get(id);
|
|
531
|
+
* await record.updateAgentCallLegOnOutboundCallCompleted({ ... }).execute();
|
|
532
|
+
*
|
|
533
|
+
* // Dry run (for debugging)
|
|
534
|
+
* const payload = record.updateAgentCallLegOnOutboundCallCompleted({ ... }).dryRun();
|
|
535
|
+
* ```
|
|
536
|
+
*/
|
|
537
|
+
updateAgentCallLegOnOutboundCallCompleted(properties, options) {
|
|
538
|
+
var _a;
|
|
539
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
540
|
+
throw new Error('updateAgentCallLegOnOutboundCallCompleted requires an existing record. Use accessor.get() first.');
|
|
541
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
542
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
543
|
+
}
|
|
486
544
|
/**
|
|
487
545
|
* UpdateCall
|
|
488
546
|
*
|