@d19n/youfibre-odin-sdk 2.0.134 → 2.0.136
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/EditFieldServiceProductDto.d.ts +8 -1
- package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallRingingDto.d.ts +81 -0
- package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallRingingDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCanceledDto.d.ts +81 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCanceledDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCompletedDto.d.ts +88 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCompletedDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallFailedDto.d.ts +81 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallFailedDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto.d.ts +18 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallRingingDto.d.ts +81 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallRingingDto.js +56 -0
- package/dist/entities-v2/FieldServiceProduct.d.ts +18 -0
- package/dist/entities-v2/FieldServiceProduct.js +14 -0
- package/dist/records-v2/CallLegRecord.d.ts +139 -5
- package/dist/records-v2/CallLegRecord.js +152 -15
- 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 **687** actions.
|
|
357
357
|
|
|
358
358
|
### Action Types
|
|
359
359
|
|
|
@@ -1206,9 +1206,14 @@ This SDK includes **682** actions.
|
|
|
1206
1206
|
| `UpdateAgentCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted |
|
|
1207
1207
|
| `UpdateAgentCallLegOnOutboundCallFailed` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed |
|
|
1208
1208
|
| `UpdateAgentCallLegOnOutboundCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallNoAnswer |
|
|
1209
|
+
| `UpdateAgentCallLegOnOutboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging |
|
|
1209
1210
|
| `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
|
|
1210
1211
|
| `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
|
|
1212
|
+
| `UpdateCustomerCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled |
|
|
1213
|
+
| `UpdateCustomerCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted |
|
|
1214
|
+
| `UpdateCustomerCallLegOnIncomingCallFailed` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed |
|
|
1211
1215
|
| `UpdateCustomerCallLegOnIncomingCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallNoAnswer |
|
|
1216
|
+
| `UpdateCustomerCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging |
|
|
1212
1217
|
| `UpdateCustomerCallLegOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted |
|
|
1213
1218
|
| `UpdateCustomerCallLegOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallAnswered |
|
|
1214
1219
|
| `UpdateCustomerCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallCompleted |
|
|
@@ -22,7 +22,7 @@ export interface EditFieldServiceProductMessage extends OdinRecordUpdatedEvent<E
|
|
|
22
22
|
* Properties for EditFieldServiceProduct action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 7
|
|
26
26
|
*/
|
|
27
27
|
export interface EditFieldServiceProductProperties {
|
|
28
28
|
/**
|
|
@@ -60,6 +60,13 @@ export interface EditFieldServiceProductProperties {
|
|
|
60
60
|
* @type {BOOLEAN}
|
|
61
61
|
*/
|
|
62
62
|
Active?: boolean | null;
|
|
63
|
+
/**
|
|
64
|
+
* provider
|
|
65
|
+
*
|
|
66
|
+
* network provider (Sales - Order)
|
|
67
|
+
* @type {ENUM}
|
|
68
|
+
*/
|
|
69
|
+
Provider?: string | null;
|
|
63
70
|
}
|
|
64
71
|
/**
|
|
65
72
|
* EditFieldServiceProduct
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateAgentCallLegOnOutboundCallRinging Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on outbound call ringing
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateAgentCallLegOnOutboundCallRinging
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
|
|
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 UpdateAgentCallLegOnOutboundCallRinging updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateAgentCallLegOnOutboundCallRingingMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnOutboundCallRingingDto, UpdateAgentCallLegOnOutboundCallRingingProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateAgentCallLegOnOutboundCallRinging action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateAgentCallLegOnOutboundCallRingingProperties {
|
|
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
|
+
* UpdateAgentCallLegOnOutboundCallRinging
|
|
47
|
+
*
|
|
48
|
+
* Update agent call leg on outbound call ringing
|
|
49
|
+
*
|
|
50
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
51
|
+
* @module NotificationModule
|
|
52
|
+
* @entity CallLeg
|
|
53
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
|
|
54
|
+
* @permission schema.action.updateagentcalllegonoutboundcallringing.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateAgentCallLegOnOutboundCallRingingDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallRingingProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateAgentCallLegOnOutboundCallRinging";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updateagentcalllegonoutboundcallringing.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 = "10c0860c-a814-4879-b506-e718a2fd4b50";
|
|
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: UpdateAgentCallLegOnOutboundCallRingingProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateAgentCallLegOnOutboundCallRinging Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on outbound call ringing
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateAgentCallLegOnOutboundCallRinging
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateAgentCallLegOnOutboundCallRingingDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateAgentCallLegOnOutboundCallRinging
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on outbound call ringing
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
|
|
26
|
+
* @permission schema.action.updateagentcalllegonoutboundcallringing.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateAgentCallLegOnOutboundCallRingingDto 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 = 'UpdateAgentCallLegOnOutboundCallRinging';
|
|
40
|
+
this.schemaActionId = '10c0860c-a814-4879-b506-e718a2fd4b50';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateAgentCallLegOnOutboundCallRingingDto = UpdateAgentCallLegOnOutboundCallRingingDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.ACTION_KEY = 'UpdateAgentCallLegOnOutboundCallRinging';
|
|
48
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging';
|
|
51
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.PERMISSION = 'schema.action.updateagentcalllegonoutboundcallringing.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.STEP_SCHEMA_ACTION_ID = '10c0860c-a814-4879-b506-e718a2fd4b50';
|
|
56
|
+
UpdateAgentCallLegOnOutboundCallRingingDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCustomerCallLegOnIncomingCallCanceled Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update customer call leg on incoming call canceled
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallCanceled
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled
|
|
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 UpdateCustomerCallLegOnIncomingCallCanceled updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCustomerCallLegOnIncomingCallCanceledMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallCanceledDto, UpdateCustomerCallLegOnIncomingCallCanceledProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCustomerCallLegOnIncomingCallCanceled action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCustomerCallLegOnIncomingCallCanceledProperties {
|
|
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
|
+
* UpdateCustomerCallLegOnIncomingCallCanceled
|
|
47
|
+
*
|
|
48
|
+
* Update customer 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.UpdateCustomerCallLegOnIncomingCallCanceled
|
|
54
|
+
* @permission schema.action.updatecustomercalllegonincomingcallcanceled.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateCustomerCallLegOnIncomingCallCanceledDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallCanceledProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallCanceled";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallcanceled.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 = "aa945ebd-fc99-473a-bd67-6651fb6b6350";
|
|
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: UpdateCustomerCallLegOnIncomingCallCanceledProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCustomerCallLegOnIncomingCallCanceled Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update customer call leg on incoming call canceled
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallCanceled
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCustomerCallLegOnIncomingCallCanceledDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCustomerCallLegOnIncomingCallCanceled
|
|
19
|
+
*
|
|
20
|
+
* Update customer 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.UpdateCustomerCallLegOnIncomingCallCanceled
|
|
26
|
+
* @permission schema.action.updatecustomercalllegonincomingcallcanceled.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCustomerCallLegOnIncomingCallCanceledDto 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 = 'UpdateCustomerCallLegOnIncomingCallCanceled';
|
|
40
|
+
this.schemaActionId = 'aa945ebd-fc99-473a-bd67-6651fb6b6350';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerCallLegOnIncomingCallCanceledDto = UpdateCustomerCallLegOnIncomingCallCanceledDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallCanceled';
|
|
48
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled';
|
|
51
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallcanceled.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ACTION_ID = 'aa945ebd-fc99-473a-bd67-6651fb6b6350';
|
|
56
|
+
UpdateCustomerCallLegOnIncomingCallCanceledDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCustomerCallLegOnIncomingCallCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update customer call leg on incoming call completed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
|
|
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 UpdateCustomerCallLegOnIncomingCallCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCustomerCallLegOnIncomingCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallCompletedDto, UpdateCustomerCallLegOnIncomingCallCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCustomerCallLegOnIncomingCallCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCustomerCallLegOnIncomingCallCompletedProperties {
|
|
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
|
+
* UpdateCustomerCallLegOnIncomingCallCompleted
|
|
54
|
+
*
|
|
55
|
+
* Update customer call leg on incoming 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.UpdateCustomerCallLegOnIncomingCallCompleted
|
|
61
|
+
* @permission schema.action.updatecustomercalllegonincomingcallcompleted.trigger
|
|
62
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
63
|
+
*/
|
|
64
|
+
export declare class UpdateCustomerCallLegOnIncomingCallCompletedDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallCompletedProperties> {
|
|
65
|
+
/** Used by SDK generators to identify action type */
|
|
66
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
67
|
+
static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallCompleted";
|
|
68
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
69
|
+
static readonly ENTITIES: string[];
|
|
70
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted";
|
|
71
|
+
static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallcompleted.trigger";
|
|
72
|
+
/** Step metadata - entity this action targets */
|
|
73
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
74
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
75
|
+
static readonly STEP_SCHEMA_ACTION_ID = "2a9223e7-e81f-4efc-9d61-2949d93f1932";
|
|
76
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
77
|
+
readonly actionName: string;
|
|
78
|
+
readonly schemaActionId: string;
|
|
79
|
+
readonly entity: string;
|
|
80
|
+
constructor(record: OdinRecord<any> | {
|
|
81
|
+
id: string;
|
|
82
|
+
entity: string;
|
|
83
|
+
type?: string;
|
|
84
|
+
}, properties: UpdateCustomerCallLegOnIncomingCallCompletedProperties, options?: {
|
|
85
|
+
journeyId?: string;
|
|
86
|
+
stageKey?: string;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCustomerCallLegOnIncomingCallCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update customer call leg on incoming call completed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCustomerCallLegOnIncomingCallCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCustomerCallLegOnIncomingCallCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update customer 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.UpdateCustomerCallLegOnIncomingCallCompleted
|
|
26
|
+
* @permission schema.action.updatecustomercalllegonincomingcallcompleted.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCustomerCallLegOnIncomingCallCompletedDto 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 = 'UpdateCustomerCallLegOnIncomingCallCompleted';
|
|
40
|
+
this.schemaActionId = '2a9223e7-e81f-4efc-9d61-2949d93f1932';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerCallLegOnIncomingCallCompletedDto = UpdateCustomerCallLegOnIncomingCallCompletedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallCompleted';
|
|
48
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted';
|
|
51
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallcompleted.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ACTION_ID = '2a9223e7-e81f-4efc-9d61-2949d93f1932';
|
|
56
|
+
UpdateCustomerCallLegOnIncomingCallCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCustomerCallLegOnIncomingCallFailed Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update agent call leg on incoming call failed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallFailed
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
|
|
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 UpdateCustomerCallLegOnIncomingCallFailed updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCustomerCallLegOnIncomingCallFailedMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallFailedDto, UpdateCustomerCallLegOnIncomingCallFailedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCustomerCallLegOnIncomingCallFailed action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCustomerCallLegOnIncomingCallFailedProperties {
|
|
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
|
+
* UpdateCustomerCallLegOnIncomingCallFailed
|
|
47
|
+
*
|
|
48
|
+
* Update agent call leg on incoming call failed
|
|
49
|
+
*
|
|
50
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
51
|
+
* @module NotificationModule
|
|
52
|
+
* @entity CallLeg
|
|
53
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
|
|
54
|
+
* @permission schema.action.updatecustomercalllegonincomingcallfailed.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateCustomerCallLegOnIncomingCallFailedDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallFailedProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallFailed";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallfailed.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 = "9570a7ac-effe-4002-a933-6f92a3914321";
|
|
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: UpdateCustomerCallLegOnIncomingCallFailedProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCustomerCallLegOnIncomingCallFailed Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update agent call leg on incoming call failed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallFailed
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCustomerCallLegOnIncomingCallFailedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCustomerCallLegOnIncomingCallFailed
|
|
19
|
+
*
|
|
20
|
+
* Update agent call leg on incoming call failed
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
|
|
26
|
+
* @permission schema.action.updatecustomercalllegonincomingcallfailed.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCustomerCallLegOnIncomingCallFailedDto 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 = 'UpdateCustomerCallLegOnIncomingCallFailed';
|
|
40
|
+
this.schemaActionId = '9570a7ac-effe-4002-a933-6f92a3914321';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerCallLegOnIncomingCallFailedDto = UpdateCustomerCallLegOnIncomingCallFailedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallFailed';
|
|
48
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed';
|
|
51
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallfailed.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.STEP_SCHEMA_ACTION_ID = '9570a7ac-effe-4002-a933-6f92a3914321';
|
|
56
|
+
UpdateCustomerCallLegOnIncomingCallFailedDto.AUTO_LINK_PARENT = false;
|
|
@@ -21,8 +21,26 @@ export interface UpdateCustomerCallLegOnIncomingCallNoAnswerMessage extends Odin
|
|
|
21
21
|
/**
|
|
22
22
|
* Properties for UpdateCustomerCallLegOnIncomingCallNoAnswer action
|
|
23
23
|
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
24
26
|
*/
|
|
25
27
|
export interface UpdateCustomerCallLegOnIncomingCallNoAnswerProperties {
|
|
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;
|
|
26
44
|
}
|
|
27
45
|
/**
|
|
28
46
|
* UpdateCustomerCallLegOnIncomingCallNoAnswer
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCustomerCallLegOnIncomingCallRinging Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update customer call leg on incoming call ringing
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallRinging
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
|
|
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 UpdateCustomerCallLegOnIncomingCallRinging updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCustomerCallLegOnIncomingCallRingingMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallRingingDto, UpdateCustomerCallLegOnIncomingCallRingingProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCustomerCallLegOnIncomingCallRinging action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCustomerCallLegOnIncomingCallRingingProperties {
|
|
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
|
+
* UpdateCustomerCallLegOnIncomingCallRinging
|
|
47
|
+
*
|
|
48
|
+
* Update customer call leg on incoming call ringing
|
|
49
|
+
*
|
|
50
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
51
|
+
* @module NotificationModule
|
|
52
|
+
* @entity CallLeg
|
|
53
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
|
|
54
|
+
* @permission schema.action.updatecustomercalllegonincomingcallringing.trigger
|
|
55
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
56
|
+
*/
|
|
57
|
+
export declare class UpdateCustomerCallLegOnIncomingCallRingingDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallRingingProperties> {
|
|
58
|
+
/** Used by SDK generators to identify action type */
|
|
59
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
60
|
+
static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallRinging";
|
|
61
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
62
|
+
static readonly ENTITIES: string[];
|
|
63
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging";
|
|
64
|
+
static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallringing.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 = "e3ad4d61-d76c-4f5e-9fd9-a31f4ca97a15";
|
|
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: UpdateCustomerCallLegOnIncomingCallRingingProperties, options?: {
|
|
78
|
+
journeyId?: string;
|
|
79
|
+
stageKey?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCustomerCallLegOnIncomingCallRinging Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update customer call leg on incoming call ringing
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateCustomerCallLegOnIncomingCallRinging
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCustomerCallLegOnIncomingCallRingingDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCustomerCallLegOnIncomingCallRinging
|
|
19
|
+
*
|
|
20
|
+
* Update customer call leg on incoming call ringing
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
|
|
26
|
+
* @permission schema.action.updatecustomercalllegonincomingcallringing.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCustomerCallLegOnIncomingCallRingingDto 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 = 'UpdateCustomerCallLegOnIncomingCallRinging';
|
|
40
|
+
this.schemaActionId = 'e3ad4d61-d76c-4f5e-9fd9-a31f4ca97a15';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerCallLegOnIncomingCallRingingDto = UpdateCustomerCallLegOnIncomingCallRingingDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallRinging';
|
|
48
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging';
|
|
51
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallringing.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.STEP_SCHEMA_ACTION_ID = 'e3ad4d61-d76c-4f5e-9fd9-a31f4ca97a15';
|
|
56
|
+
UpdateCustomerCallLegOnIncomingCallRingingDto.AUTO_LINK_PARENT = false;
|
|
@@ -67,8 +67,22 @@ export declare enum FieldServiceProductVendor {
|
|
|
67
67
|
* Valid values for FieldServiceProduct.Provider
|
|
68
68
|
*
|
|
69
69
|
* network provider (Sales - Order)
|
|
70
|
+
*
|
|
71
|
+
* @remarks Available options:
|
|
72
|
+
* - `BRSK` - Brsk
|
|
73
|
+
* - `CITYFIBRE` - CityFibre
|
|
74
|
+
* - `NETOMNIA` - Netomnia
|
|
75
|
+
* - `NETOMNIA_LEGACY` - Netomnia legacy
|
|
76
|
+
* - `OPENREACH` - Openreach
|
|
77
|
+
* - `PYOMNI` - PyOmni
|
|
70
78
|
*/
|
|
71
79
|
export declare enum FieldServiceProductProvider {
|
|
80
|
+
BRSK = "BRSK",
|
|
81
|
+
CITY_FIBRE = "CITYFIBRE",
|
|
82
|
+
NETOMNIA = "NETOMNIA",
|
|
83
|
+
NETOMNIA_LEGACY = "NETOMNIA_LEGACY",
|
|
84
|
+
OPENREACH = "OPENREACH",
|
|
85
|
+
PY_OMNI = "PYOMNI"
|
|
72
86
|
}
|
|
73
87
|
/**
|
|
74
88
|
* Property keys for FieldServiceProduct
|
|
@@ -125,6 +139,7 @@ export interface FieldServiceProductProperties {
|
|
|
125
139
|
/** network provider (Sales - Order)
|
|
126
140
|
*
|
|
127
141
|
* @type {ENUM}
|
|
142
|
+
* @enum {FieldServiceProductProvider}
|
|
128
143
|
*/
|
|
129
144
|
Provider: FieldServiceProductProvider;
|
|
130
145
|
}
|
|
@@ -165,6 +180,7 @@ export interface CpeRouterFieldServiceProductProperties {
|
|
|
165
180
|
/** network provider (Sales - Order)
|
|
166
181
|
*
|
|
167
182
|
* @type {ENUM}
|
|
183
|
+
* @enum {FieldServiceProductProvider}
|
|
168
184
|
*/
|
|
169
185
|
Provider: FieldServiceProductProvider;
|
|
170
186
|
}
|
|
@@ -205,6 +221,7 @@ export interface MeshFieldServiceProductProperties {
|
|
|
205
221
|
/** network provider (Sales - Order)
|
|
206
222
|
*
|
|
207
223
|
* @type {ENUM}
|
|
224
|
+
* @enum {FieldServiceProductProvider}
|
|
208
225
|
*/
|
|
209
226
|
Provider: FieldServiceProductProvider;
|
|
210
227
|
}
|
|
@@ -245,6 +262,7 @@ export interface MiscFieldServiceProductProperties {
|
|
|
245
262
|
/** network provider (Sales - Order)
|
|
246
263
|
*
|
|
247
264
|
* @type {ENUM}
|
|
265
|
+
* @enum {FieldServiceProductProvider}
|
|
248
266
|
*/
|
|
249
267
|
Provider: FieldServiceProductProvider;
|
|
250
268
|
}
|
|
@@ -70,9 +70,23 @@ var FieldServiceProductVendor;
|
|
|
70
70
|
* Valid values for FieldServiceProduct.Provider
|
|
71
71
|
*
|
|
72
72
|
* network provider (Sales - Order)
|
|
73
|
+
*
|
|
74
|
+
* @remarks Available options:
|
|
75
|
+
* - `BRSK` - Brsk
|
|
76
|
+
* - `CITYFIBRE` - CityFibre
|
|
77
|
+
* - `NETOMNIA` - Netomnia
|
|
78
|
+
* - `NETOMNIA_LEGACY` - Netomnia legacy
|
|
79
|
+
* - `OPENREACH` - Openreach
|
|
80
|
+
* - `PYOMNI` - PyOmni
|
|
73
81
|
*/
|
|
74
82
|
var FieldServiceProductProvider;
|
|
75
83
|
(function (FieldServiceProductProvider) {
|
|
84
|
+
FieldServiceProductProvider["BRSK"] = "BRSK";
|
|
85
|
+
FieldServiceProductProvider["CITY_FIBRE"] = "CITYFIBRE";
|
|
86
|
+
FieldServiceProductProvider["NETOMNIA"] = "NETOMNIA";
|
|
87
|
+
FieldServiceProductProvider["NETOMNIA_LEGACY"] = "NETOMNIA_LEGACY";
|
|
88
|
+
FieldServiceProductProvider["OPENREACH"] = "OPENREACH";
|
|
89
|
+
FieldServiceProductProvider["PY_OMNI"] = "PYOMNI";
|
|
76
90
|
})(FieldServiceProductProvider = exports.FieldServiceProductProvider || (exports.FieldServiceProductProvider = {}));
|
|
77
91
|
/**
|
|
78
92
|
* Property keys for FieldServiceProduct
|
|
@@ -35,9 +35,14 @@ import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v
|
|
|
35
35
|
import { UpdateAgentCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto';
|
|
36
36
|
import { UpdateAgentCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto';
|
|
37
37
|
import { UpdateAgentCallLegOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallNoAnswerDto';
|
|
38
|
+
import { UpdateAgentCallLegOnOutboundCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallRingingDto';
|
|
38
39
|
import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
|
|
39
40
|
import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
|
|
41
|
+
import { UpdateCustomerCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallCanceledDto';
|
|
42
|
+
import { UpdateCustomerCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallCompletedDto';
|
|
43
|
+
import { UpdateCustomerCallLegOnIncomingCallFailedProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallFailedDto';
|
|
40
44
|
import { UpdateCustomerCallLegOnIncomingCallNoAnswerProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto';
|
|
45
|
+
import { UpdateCustomerCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallRingingDto';
|
|
41
46
|
import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
|
|
42
47
|
import { UpdateCustomerCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallAnsweredDto';
|
|
43
48
|
import { UpdateCustomerCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallCompletedDto';
|
|
@@ -547,6 +552,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
547
552
|
journeyId?: string;
|
|
548
553
|
stageKey?: string;
|
|
549
554
|
}): ActionBuilder;
|
|
555
|
+
/**
|
|
556
|
+
* UpdateAgentCallLegOnOutboundCallRinging
|
|
557
|
+
*
|
|
558
|
+
* Updates this CallLeg record with the specified properties.
|
|
559
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
560
|
+
*
|
|
561
|
+
* @param properties - Required properties for this action
|
|
562
|
+
* @param options - Optional settings
|
|
563
|
+
* @param options.journeyId - Associate with a journey
|
|
564
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
565
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
566
|
+
* @throws Error if called on a new (unsaved) record
|
|
567
|
+
*
|
|
568
|
+
* @example
|
|
569
|
+
* ```typescript
|
|
570
|
+
* const record = await odinClient.callLegs.get(id);
|
|
571
|
+
* await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
|
|
572
|
+
*
|
|
573
|
+
* // Dry run (for debugging)
|
|
574
|
+
* const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
|
|
575
|
+
* ```
|
|
576
|
+
*/
|
|
577
|
+
updateAgentCallLegOnOutboundCallRinging(properties: UpdateAgentCallLegOnOutboundCallRingingProperties, options?: {
|
|
578
|
+
journeyId?: string;
|
|
579
|
+
stageKey?: string;
|
|
580
|
+
}): ActionBuilder;
|
|
550
581
|
/**
|
|
551
582
|
* UpdateCall
|
|
552
583
|
*
|
|
@@ -600,14 +631,94 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
600
631
|
journeyId?: string;
|
|
601
632
|
stageKey?: string;
|
|
602
633
|
}): ActionBuilder;
|
|
634
|
+
/**
|
|
635
|
+
* UpdateCustomerCallLegOnIncomingCallCanceled
|
|
636
|
+
*
|
|
637
|
+
* Updates this CallLeg record with the specified properties.
|
|
638
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
639
|
+
*
|
|
640
|
+
* @param properties - Required properties for this action
|
|
641
|
+
* @param options - Optional settings
|
|
642
|
+
* @param options.journeyId - Associate with a journey
|
|
643
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
644
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
645
|
+
* @throws Error if called on a new (unsaved) record
|
|
646
|
+
*
|
|
647
|
+
* @example
|
|
648
|
+
* ```typescript
|
|
649
|
+
* const record = await odinClient.callLegs.get(id);
|
|
650
|
+
* await record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).execute();
|
|
651
|
+
*
|
|
652
|
+
* // Dry run (for debugging)
|
|
653
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).dryRun();
|
|
654
|
+
* ```
|
|
655
|
+
*/
|
|
656
|
+
updateCustomerCallLegOnIncomingCallCanceled(properties: UpdateCustomerCallLegOnIncomingCallCanceledProperties, options?: {
|
|
657
|
+
journeyId?: string;
|
|
658
|
+
stageKey?: string;
|
|
659
|
+
}): ActionBuilder;
|
|
660
|
+
/**
|
|
661
|
+
* UpdateCustomerCallLegOnIncomingCallCompleted
|
|
662
|
+
*
|
|
663
|
+
* Updates this CallLeg record with the specified properties.
|
|
664
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
665
|
+
*
|
|
666
|
+
* @param properties - Required properties for this action
|
|
667
|
+
* @param options - Optional settings
|
|
668
|
+
* @param options.journeyId - Associate with a journey
|
|
669
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
670
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
671
|
+
* @throws Error if called on a new (unsaved) record
|
|
672
|
+
*
|
|
673
|
+
* @example
|
|
674
|
+
* ```typescript
|
|
675
|
+
* const record = await odinClient.callLegs.get(id);
|
|
676
|
+
* await record.updateCustomerCallLegOnIncomingCallCompleted({ ... }).execute();
|
|
677
|
+
*
|
|
678
|
+
* // Dry run (for debugging)
|
|
679
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallCompleted({ ... }).dryRun();
|
|
680
|
+
* ```
|
|
681
|
+
*/
|
|
682
|
+
updateCustomerCallLegOnIncomingCallCompleted(properties: UpdateCustomerCallLegOnIncomingCallCompletedProperties, options?: {
|
|
683
|
+
journeyId?: string;
|
|
684
|
+
stageKey?: string;
|
|
685
|
+
}): ActionBuilder;
|
|
686
|
+
/**
|
|
687
|
+
* UpdateCustomerCallLegOnIncomingCallFailed
|
|
688
|
+
*
|
|
689
|
+
* Updates this CallLeg record with the specified properties.
|
|
690
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
691
|
+
*
|
|
692
|
+
* @param properties - Required properties for this action
|
|
693
|
+
* @param options - Optional settings
|
|
694
|
+
* @param options.journeyId - Associate with a journey
|
|
695
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
696
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
697
|
+
* @throws Error if called on a new (unsaved) record
|
|
698
|
+
*
|
|
699
|
+
* @example
|
|
700
|
+
* ```typescript
|
|
701
|
+
* const record = await odinClient.callLegs.get(id);
|
|
702
|
+
* await record.updateCustomerCallLegOnIncomingCallFailed({ ... }).execute();
|
|
703
|
+
*
|
|
704
|
+
* // Dry run (for debugging)
|
|
705
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallFailed({ ... }).dryRun();
|
|
706
|
+
* ```
|
|
707
|
+
*/
|
|
708
|
+
updateCustomerCallLegOnIncomingCallFailed(properties: UpdateCustomerCallLegOnIncomingCallFailedProperties, options?: {
|
|
709
|
+
journeyId?: string;
|
|
710
|
+
stageKey?: string;
|
|
711
|
+
}): ActionBuilder;
|
|
603
712
|
/**
|
|
604
713
|
* UpdateCustomerCallLegOnIncomingCallNoAnswer
|
|
605
714
|
*
|
|
606
|
-
* Updates this CallLeg record.
|
|
715
|
+
* Updates this CallLeg record with the specified properties.
|
|
607
716
|
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
608
717
|
*
|
|
609
|
-
* @param
|
|
610
|
-
* @param options - Optional settings
|
|
718
|
+
* @param properties - Required properties for this action
|
|
719
|
+
* @param options - Optional settings
|
|
720
|
+
* @param options.journeyId - Associate with a journey
|
|
721
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
611
722
|
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
612
723
|
* @throws Error if called on a new (unsaved) record
|
|
613
724
|
*
|
|
@@ -620,10 +731,33 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
620
731
|
* const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
|
|
621
732
|
* ```
|
|
622
733
|
*/
|
|
623
|
-
updateCustomerCallLegOnIncomingCallNoAnswer(
|
|
734
|
+
updateCustomerCallLegOnIncomingCallNoAnswer(properties: UpdateCustomerCallLegOnIncomingCallNoAnswerProperties, options?: {
|
|
624
735
|
journeyId?: string;
|
|
625
736
|
stageKey?: string;
|
|
626
|
-
}
|
|
737
|
+
}): ActionBuilder;
|
|
738
|
+
/**
|
|
739
|
+
* UpdateCustomerCallLegOnIncomingCallRinging
|
|
740
|
+
*
|
|
741
|
+
* Updates this CallLeg record with the specified properties.
|
|
742
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
743
|
+
*
|
|
744
|
+
* @param properties - Required properties for this action
|
|
745
|
+
* @param options - Optional settings
|
|
746
|
+
* @param options.journeyId - Associate with a journey
|
|
747
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
748
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
749
|
+
* @throws Error if called on a new (unsaved) record
|
|
750
|
+
*
|
|
751
|
+
* @example
|
|
752
|
+
* ```typescript
|
|
753
|
+
* const record = await odinClient.callLegs.get(id);
|
|
754
|
+
* await record.updateCustomerCallLegOnIncomingCallRinging({ ... }).execute();
|
|
755
|
+
*
|
|
756
|
+
* // Dry run (for debugging)
|
|
757
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallRinging({ ... }).dryRun();
|
|
758
|
+
* ```
|
|
759
|
+
*/
|
|
760
|
+
updateCustomerCallLegOnIncomingCallRinging(properties: UpdateCustomerCallLegOnIncomingCallRingingProperties, options?: {
|
|
627
761
|
journeyId?: string;
|
|
628
762
|
stageKey?: string;
|
|
629
763
|
}): ActionBuilder;
|
|
@@ -657,6 +657,35 @@ class CallLegRecord {
|
|
|
657
657
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
658
658
|
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
659
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* UpdateAgentCallLegOnOutboundCallRinging
|
|
662
|
+
*
|
|
663
|
+
* Updates this CallLeg record with the specified properties.
|
|
664
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
665
|
+
*
|
|
666
|
+
* @param properties - Required properties for this action
|
|
667
|
+
* @param options - Optional settings
|
|
668
|
+
* @param options.journeyId - Associate with a journey
|
|
669
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
670
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
671
|
+
* @throws Error if called on a new (unsaved) record
|
|
672
|
+
*
|
|
673
|
+
* @example
|
|
674
|
+
* ```typescript
|
|
675
|
+
* const record = await odinClient.callLegs.get(id);
|
|
676
|
+
* await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
|
|
677
|
+
*
|
|
678
|
+
* // Dry run (for debugging)
|
|
679
|
+
* const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
|
|
680
|
+
* ```
|
|
681
|
+
*/
|
|
682
|
+
updateAgentCallLegOnOutboundCallRinging(properties, options) {
|
|
683
|
+
var _a;
|
|
684
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
685
|
+
throw new Error('updateAgentCallLegOnOutboundCallRinging requires an existing record. Use accessor.get() first.');
|
|
686
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
687
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
688
|
+
}
|
|
660
689
|
/**
|
|
661
690
|
* UpdateCall
|
|
662
691
|
*
|
|
@@ -723,14 +752,103 @@ class CallLegRecord {
|
|
|
723
752
|
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);
|
|
724
753
|
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
725
754
|
}
|
|
755
|
+
/**
|
|
756
|
+
* UpdateCustomerCallLegOnIncomingCallCanceled
|
|
757
|
+
*
|
|
758
|
+
* Updates this CallLeg record with the specified properties.
|
|
759
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
760
|
+
*
|
|
761
|
+
* @param properties - Required properties for this action
|
|
762
|
+
* @param options - Optional settings
|
|
763
|
+
* @param options.journeyId - Associate with a journey
|
|
764
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
765
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
766
|
+
* @throws Error if called on a new (unsaved) record
|
|
767
|
+
*
|
|
768
|
+
* @example
|
|
769
|
+
* ```typescript
|
|
770
|
+
* const record = await odinClient.callLegs.get(id);
|
|
771
|
+
* await record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).execute();
|
|
772
|
+
*
|
|
773
|
+
* // Dry run (for debugging)
|
|
774
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).dryRun();
|
|
775
|
+
* ```
|
|
776
|
+
*/
|
|
777
|
+
updateCustomerCallLegOnIncomingCallCanceled(properties, options) {
|
|
778
|
+
var _a;
|
|
779
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
780
|
+
throw new Error('updateCustomerCallLegOnIncomingCallCanceled requires an existing record. Use accessor.get() first.');
|
|
781
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
782
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* UpdateCustomerCallLegOnIncomingCallCompleted
|
|
786
|
+
*
|
|
787
|
+
* Updates this CallLeg record with the specified properties.
|
|
788
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
789
|
+
*
|
|
790
|
+
* @param properties - Required properties for this action
|
|
791
|
+
* @param options - Optional settings
|
|
792
|
+
* @param options.journeyId - Associate with a journey
|
|
793
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
794
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
795
|
+
* @throws Error if called on a new (unsaved) record
|
|
796
|
+
*
|
|
797
|
+
* @example
|
|
798
|
+
* ```typescript
|
|
799
|
+
* const record = await odinClient.callLegs.get(id);
|
|
800
|
+
* await record.updateCustomerCallLegOnIncomingCallCompleted({ ... }).execute();
|
|
801
|
+
*
|
|
802
|
+
* // Dry run (for debugging)
|
|
803
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallCompleted({ ... }).dryRun();
|
|
804
|
+
* ```
|
|
805
|
+
*/
|
|
806
|
+
updateCustomerCallLegOnIncomingCallCompleted(properties, options) {
|
|
807
|
+
var _a;
|
|
808
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
809
|
+
throw new Error('updateCustomerCallLegOnIncomingCallCompleted requires an existing record. Use accessor.get() first.');
|
|
810
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
811
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* UpdateCustomerCallLegOnIncomingCallFailed
|
|
815
|
+
*
|
|
816
|
+
* Updates this CallLeg record with the specified properties.
|
|
817
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
818
|
+
*
|
|
819
|
+
* @param properties - Required properties for this action
|
|
820
|
+
* @param options - Optional settings
|
|
821
|
+
* @param options.journeyId - Associate with a journey
|
|
822
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
823
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
824
|
+
* @throws Error if called on a new (unsaved) record
|
|
825
|
+
*
|
|
826
|
+
* @example
|
|
827
|
+
* ```typescript
|
|
828
|
+
* const record = await odinClient.callLegs.get(id);
|
|
829
|
+
* await record.updateCustomerCallLegOnIncomingCallFailed({ ... }).execute();
|
|
830
|
+
*
|
|
831
|
+
* // Dry run (for debugging)
|
|
832
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallFailed({ ... }).dryRun();
|
|
833
|
+
* ```
|
|
834
|
+
*/
|
|
835
|
+
updateCustomerCallLegOnIncomingCallFailed(properties, options) {
|
|
836
|
+
var _a;
|
|
837
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
838
|
+
throw new Error('updateCustomerCallLegOnIncomingCallFailed requires an existing record. Use accessor.get() first.');
|
|
839
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
840
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
841
|
+
}
|
|
726
842
|
/**
|
|
727
843
|
* UpdateCustomerCallLegOnIncomingCallNoAnswer
|
|
728
844
|
*
|
|
729
|
-
* Updates this CallLeg record.
|
|
845
|
+
* Updates this CallLeg record with the specified properties.
|
|
730
846
|
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
731
847
|
*
|
|
732
|
-
* @param
|
|
733
|
-
* @param options - Optional settings
|
|
848
|
+
* @param properties - Required properties for this action
|
|
849
|
+
* @param options - Optional settings
|
|
850
|
+
* @param options.journeyId - Associate with a journey
|
|
851
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
734
852
|
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
735
853
|
* @throws Error if called on a new (unsaved) record
|
|
736
854
|
*
|
|
@@ -743,21 +861,40 @@ class CallLegRecord {
|
|
|
743
861
|
* const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
|
|
744
862
|
* ```
|
|
745
863
|
*/
|
|
746
|
-
updateCustomerCallLegOnIncomingCallNoAnswer(
|
|
864
|
+
updateCustomerCallLegOnIncomingCallNoAnswer(properties, options) {
|
|
747
865
|
var _a;
|
|
748
866
|
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
749
867
|
throw new Error('updateCustomerCallLegOnIncomingCallNoAnswer requires an existing record. Use accessor.get() first.');
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
868
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
869
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* UpdateCustomerCallLegOnIncomingCallRinging
|
|
873
|
+
*
|
|
874
|
+
* Updates this CallLeg record with the specified properties.
|
|
875
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
876
|
+
*
|
|
877
|
+
* @param properties - Required properties for this action
|
|
878
|
+
* @param options - Optional settings
|
|
879
|
+
* @param options.journeyId - Associate with a journey
|
|
880
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
881
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
882
|
+
* @throws Error if called on a new (unsaved) record
|
|
883
|
+
*
|
|
884
|
+
* @example
|
|
885
|
+
* ```typescript
|
|
886
|
+
* const record = await odinClient.callLegs.get(id);
|
|
887
|
+
* await record.updateCustomerCallLegOnIncomingCallRinging({ ... }).execute();
|
|
888
|
+
*
|
|
889
|
+
* // Dry run (for debugging)
|
|
890
|
+
* const payload = record.updateCustomerCallLegOnIncomingCallRinging({ ... }).dryRun();
|
|
891
|
+
* ```
|
|
892
|
+
*/
|
|
893
|
+
updateCustomerCallLegOnIncomingCallRinging(properties, options) {
|
|
894
|
+
var _a;
|
|
895
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
896
|
+
throw new Error('updateCustomerCallLegOnIncomingCallRinging requires an existing record. Use accessor.get() first.');
|
|
897
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
761
898
|
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
762
899
|
}
|
|
763
900
|
/**
|