@d19n/youfibre-odin-sdk 2.0.105 → 2.0.106-beta.0
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/UpdateCallOnNumberCallStatusCompletedDto.d.ts +97 -0
- package/dist/actions-v2/UpdateCallOnNumberCallStatusCompletedDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto.d.ts +79 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto.js +56 -0
- package/dist/entities-v2/AddressInteraction.d.ts +4 -4
- package/dist/entities-v2/AddressInteraction.js +4 -4
- package/dist/entities-v2/WorkOrder.d.ts +4 -0
- package/dist/entities-v2/WorkOrder.js +4 -0
- package/dist/records-v2/CallLegRecord.d.ts +28 -0
- package/dist/records-v2/CallLegRecord.js +37 -0
- package/dist/records-v2/CallRecord.d.ts +27 -0
- package/dist/records-v2/CallRecord.js +29 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
|
|
|
352
352
|
|
|
353
353
|
## Actions
|
|
354
354
|
|
|
355
|
-
This SDK includes **
|
|
355
|
+
This SDK includes **634** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -1123,6 +1123,7 @@ This SDK includes **632** actions.
|
|
|
1123
1123
|
| `UpdateAgentCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinging |
|
|
1124
1124
|
| `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
|
|
1125
1125
|
| `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
|
|
1126
|
+
| `UpdateCustomerCallLegOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted |
|
|
1126
1127
|
|
|
1127
1128
|
#### Appointment
|
|
1128
1129
|
|
|
@@ -1185,6 +1186,7 @@ This SDK includes **632** actions.
|
|
|
1185
1186
|
| `UpdateCallOnInboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted |
|
|
1186
1187
|
| `UpdateCallOnInboundCallInitiated` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated |
|
|
1187
1188
|
| `UpdateCallOnInboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging |
|
|
1189
|
+
| `UpdateCallOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted |
|
|
1188
1190
|
| `UpdateCallOnTaskRouterAssign` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskRouterAssign |
|
|
1189
1191
|
| `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
|
|
1190
1192
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCallOnNumberCallStatusCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update call on number call status completed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey UpdateCallOnNumberCallStatusCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
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 UpdateCallOnNumberCallStatusCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCallOnNumberCallStatusCompletedMessage extends OdinRecordUpdatedEvent<UpdateCallOnNumberCallStatusCompletedDto, UpdateCallOnNumberCallStatusCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCallOnNumberCallStatusCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 4
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCallOnNumberCallStatusCompletedProperties {
|
|
28
|
+
/**
|
|
29
|
+
* CallEndReason
|
|
30
|
+
*
|
|
31
|
+
* CallEndReason
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
CallEndReason: string;
|
|
36
|
+
/**
|
|
37
|
+
* call status
|
|
38
|
+
*
|
|
39
|
+
* the status of the call (Communications - Call)
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
CallStatus: string;
|
|
44
|
+
/**
|
|
45
|
+
* Call stage
|
|
46
|
+
*
|
|
47
|
+
* The granular stage of a call, more extensive than CallStatus (Communications - Call)
|
|
48
|
+
* @type {ENUM}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
CallStage: string;
|
|
52
|
+
/**
|
|
53
|
+
* missed call reason
|
|
54
|
+
*
|
|
55
|
+
* reason for the call being missed (Communications - Call)
|
|
56
|
+
* @type {TEXT}
|
|
57
|
+
* @required
|
|
58
|
+
*/
|
|
59
|
+
MissedCallReason: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
63
|
+
*
|
|
64
|
+
* Update call on number call status completed
|
|
65
|
+
*
|
|
66
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
67
|
+
* @module NotificationModule
|
|
68
|
+
* @entity Call
|
|
69
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
70
|
+
* @permission schema.action.updatecallonnumbercallstatuscompleted.trigger
|
|
71
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
72
|
+
*/
|
|
73
|
+
export declare class UpdateCallOnNumberCallStatusCompletedDto extends OdinRecordUpdateDto<UpdateCallOnNumberCallStatusCompletedProperties> {
|
|
74
|
+
/** Used by SDK generators to identify action type */
|
|
75
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
76
|
+
static readonly ACTION_KEY = "UpdateCallOnNumberCallStatusCompleted";
|
|
77
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
78
|
+
static readonly ENTITIES: string[];
|
|
79
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted";
|
|
80
|
+
static readonly PERMISSION = "schema.action.updatecallonnumbercallstatuscompleted.trigger";
|
|
81
|
+
/** Step metadata - entity this action targets */
|
|
82
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
83
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
84
|
+
static readonly STEP_SCHEMA_ACTION_ID = "16180a1f-2391-487e-8bc6-d6a212ac14e1";
|
|
85
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
86
|
+
readonly actionName: string;
|
|
87
|
+
readonly schemaActionId: string;
|
|
88
|
+
readonly entity: string;
|
|
89
|
+
constructor(record: OdinRecord<any> | {
|
|
90
|
+
id: string;
|
|
91
|
+
entity: string;
|
|
92
|
+
type?: string;
|
|
93
|
+
}, properties: UpdateCallOnNumberCallStatusCompletedProperties, options?: {
|
|
94
|
+
journeyId?: string;
|
|
95
|
+
stageKey?: string;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCallOnNumberCallStatusCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update call on number call status completed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey UpdateCallOnNumberCallStatusCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCallOnNumberCallStatusCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update call on number call status completed
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
26
|
+
* @permission schema.action.updatecallonnumbercallstatuscompleted.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCallOnNumberCallStatusCompletedDto 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 = 'UpdateCallOnNumberCallStatusCompleted';
|
|
40
|
+
this.schemaActionId = '16180a1f-2391-487e-8bc6-d6a212ac14e1';
|
|
41
|
+
this.entity = 'NotificationModule:Call';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCallOnNumberCallStatusCompletedDto = UpdateCallOnNumberCallStatusCompletedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCallOnNumberCallStatusCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCallOnNumberCallStatusCompletedDto.ACTION_KEY = 'UpdateCallOnNumberCallStatusCompleted';
|
|
48
|
+
UpdateCallOnNumberCallStatusCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCallOnNumberCallStatusCompletedDto.ENTITIES = ['Call'];
|
|
50
|
+
UpdateCallOnNumberCallStatusCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted';
|
|
51
|
+
UpdateCallOnNumberCallStatusCompletedDto.PERMISSION = 'schema.action.updatecallonnumbercallstatuscompleted.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCallOnNumberCallStatusCompletedDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
54
|
+
UpdateCallOnNumberCallStatusCompletedDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
55
|
+
UpdateCallOnNumberCallStatusCompletedDto.STEP_SCHEMA_ACTION_ID = '16180a1f-2391-487e-8bc6-d6a212ac14e1';
|
|
56
|
+
UpdateCallOnNumberCallStatusCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update customer call leg on number call status completed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
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 UpdateCustomerCallLegOnNumberCallStatusCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCustomerCallLegOnNumberCallStatusCompletedMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnNumberCallStatusCompletedDto, UpdateCustomerCallLegOnNumberCallStatusCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCustomerCallLegOnNumberCallStatusCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 2
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCustomerCallLegOnNumberCallStatusCompletedProperties {
|
|
28
|
+
/**
|
|
29
|
+
* EndedAt
|
|
30
|
+
*
|
|
31
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
*/
|
|
34
|
+
EndedAt?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Duration
|
|
37
|
+
*
|
|
38
|
+
* Duration of THIS leg only in seconds (Communications - CallLeg)
|
|
39
|
+
* @type {NUMBER}
|
|
40
|
+
*/
|
|
41
|
+
Duration?: number | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
45
|
+
*
|
|
46
|
+
* Update customer call leg on number call status completed
|
|
47
|
+
*
|
|
48
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
49
|
+
* @module NotificationModule
|
|
50
|
+
* @entity CallLeg
|
|
51
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
52
|
+
* @permission schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger
|
|
53
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
54
|
+
*/
|
|
55
|
+
export declare class UpdateCustomerCallLegOnNumberCallStatusCompletedDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnNumberCallStatusCompletedProperties> {
|
|
56
|
+
/** Used by SDK generators to identify action type */
|
|
57
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
58
|
+
static readonly ACTION_KEY = "UpdateCustomerCallLegOnNumberCallStatusCompleted";
|
|
59
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
60
|
+
static readonly ENTITIES: string[];
|
|
61
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted";
|
|
62
|
+
static readonly PERMISSION = "schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger";
|
|
63
|
+
/** Step metadata - entity this action targets */
|
|
64
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
65
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
66
|
+
static readonly STEP_SCHEMA_ACTION_ID = "b6ce9396-ddd2-45ec-ae82-0e8e65b673ef";
|
|
67
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
68
|
+
readonly actionName: string;
|
|
69
|
+
readonly schemaActionId: string;
|
|
70
|
+
readonly entity: string;
|
|
71
|
+
constructor(record: OdinRecord<any> | {
|
|
72
|
+
id: string;
|
|
73
|
+
entity: string;
|
|
74
|
+
type?: string;
|
|
75
|
+
}, properties: UpdateCustomerCallLegOnNumberCallStatusCompletedProperties, options?: {
|
|
76
|
+
journeyId?: string;
|
|
77
|
+
stageKey?: string;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update customer call leg on number call status completed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCustomerCallLegOnNumberCallStatusCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update customer call leg on number call status completed
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
26
|
+
* @permission schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCustomerCallLegOnNumberCallStatusCompletedDto 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 = 'UpdateCustomerCallLegOnNumberCallStatusCompleted';
|
|
40
|
+
this.schemaActionId = 'b6ce9396-ddd2-45ec-ae82-0e8e65b673ef';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerCallLegOnNumberCallStatusCompletedDto = UpdateCustomerCallLegOnNumberCallStatusCompletedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.ACTION_KEY = 'UpdateCustomerCallLegOnNumberCallStatusCompleted';
|
|
48
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted';
|
|
51
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.PERMISSION = 'schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.STEP_SCHEMA_ACTION_ID = 'b6ce9396-ddd2-45ec-ae82-0e8e65b673ef';
|
|
56
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -16,7 +16,7 @@ import { AddressProperties } from './Address';
|
|
|
16
16
|
* Available types for AddressInteraction records
|
|
17
17
|
*/
|
|
18
18
|
export declare enum AddressInteractionEntityTypes {
|
|
19
|
-
/**
|
|
19
|
+
/** Default record type */
|
|
20
20
|
DEFAULT = "DEFAULT"
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -155,11 +155,11 @@ export declare const ROUTING_KEY_ADDRESS_INTERACTION_DELETED = "CrmModule.Addres
|
|
|
155
155
|
* Type-specific routing keys for AddressInteraction events
|
|
156
156
|
* Subscribe to these for events on specific entity types only
|
|
157
157
|
*/
|
|
158
|
-
/**
|
|
158
|
+
/** Default record type created */
|
|
159
159
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordCreated";
|
|
160
|
-
/**
|
|
160
|
+
/** Default record type updated */
|
|
161
161
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordUpdated";
|
|
162
|
-
/**
|
|
162
|
+
/** Default record type deleted */
|
|
163
163
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordDeleted";
|
|
164
164
|
/** Event: AddressInteraction__Address link created */
|
|
165
165
|
export declare const ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_CREATED = "CrmModule.AddressInteraction.Address.SubDbRecordAssociationCreated";
|
|
@@ -19,7 +19,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
|
|
|
19
19
|
*/
|
|
20
20
|
var AddressInteractionEntityTypes;
|
|
21
21
|
(function (AddressInteractionEntityTypes) {
|
|
22
|
-
/**
|
|
22
|
+
/** Default record type */
|
|
23
23
|
AddressInteractionEntityTypes["DEFAULT"] = "DEFAULT";
|
|
24
24
|
})(AddressInteractionEntityTypes = exports.AddressInteractionEntityTypes || (exports.AddressInteractionEntityTypes = {}));
|
|
25
25
|
/**
|
|
@@ -94,11 +94,11 @@ exports.ROUTING_KEY_ADDRESS_INTERACTION_DELETED = 'CrmModule.AddressInteraction.
|
|
|
94
94
|
* Type-specific routing keys for AddressInteraction events
|
|
95
95
|
* Subscribe to these for events on specific entity types only
|
|
96
96
|
*/
|
|
97
|
-
/**
|
|
97
|
+
/** Default record type created */
|
|
98
98
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordCreated';
|
|
99
|
-
/**
|
|
99
|
+
/** Default record type updated */
|
|
100
100
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordUpdated';
|
|
101
|
-
/**
|
|
101
|
+
/** Default record type deleted */
|
|
102
102
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordDeleted';
|
|
103
103
|
/** Event: AddressInteraction__Address link created */
|
|
104
104
|
exports.ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_CREATED = 'CrmModule.AddressInteraction.Address.SubDbRecordAssociationCreated';
|
|
@@ -382,6 +382,8 @@ export declare enum InstallBusinessWorkOrderStageNames {
|
|
|
382
382
|
RemediationRequired = "Remediation Required",
|
|
383
383
|
/** In-Progress */
|
|
384
384
|
InProgress = "In-Progress",
|
|
385
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
386
|
+
Pending = "Pending",
|
|
385
387
|
/** Complete (success) */
|
|
386
388
|
Complete = "Complete",
|
|
387
389
|
/** Cancelled (fail) */
|
|
@@ -406,6 +408,8 @@ export declare enum InstallBusinessWorkOrderStageKeys {
|
|
|
406
408
|
BusinessInstallPipelineStageRemediationRequired = "BusinessInstallPipelineStageRemediationRequired",
|
|
407
409
|
/** In-Progress */
|
|
408
410
|
BusinessInstallPipelineStageInProgress = "BusinessInstallPipelineStageInProgress",
|
|
411
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
412
|
+
BusinessInstallPipelineStagePending = "BusinessInstallPipelineStagePending",
|
|
409
413
|
/** Complete */
|
|
410
414
|
BusinessInstallPipelineStageComplete = "BusinessInstallPipelineStageComplete",
|
|
411
415
|
/** Cancelled */
|
|
@@ -345,6 +345,8 @@ var InstallBusinessWorkOrderStageNames;
|
|
|
345
345
|
InstallBusinessWorkOrderStageNames["RemediationRequired"] = "Remediation Required";
|
|
346
346
|
/** In-Progress */
|
|
347
347
|
InstallBusinessWorkOrderStageNames["InProgress"] = "In-Progress";
|
|
348
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
349
|
+
InstallBusinessWorkOrderStageNames["Pending"] = "Pending";
|
|
348
350
|
/** Complete (success) */
|
|
349
351
|
InstallBusinessWorkOrderStageNames["Complete"] = "Complete";
|
|
350
352
|
/** Cancelled (fail) */
|
|
@@ -370,6 +372,8 @@ var InstallBusinessWorkOrderStageKeys;
|
|
|
370
372
|
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStageRemediationRequired"] = "BusinessInstallPipelineStageRemediationRequired";
|
|
371
373
|
/** In-Progress */
|
|
372
374
|
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStageInProgress"] = "BusinessInstallPipelineStageInProgress";
|
|
375
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
376
|
+
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStagePending"] = "BusinessInstallPipelineStagePending";
|
|
373
377
|
/** Complete */
|
|
374
378
|
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStageComplete"] = "BusinessInstallPipelineStageComplete";
|
|
375
379
|
/** Cancelled */
|
|
@@ -31,6 +31,7 @@ import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-
|
|
|
31
31
|
import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
|
|
32
32
|
import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
|
|
33
33
|
import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
|
|
34
|
+
import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
|
|
34
35
|
import { CallRecord } from './CallRecord';
|
|
35
36
|
import { CallEventRecord } from './CallEventRecord';
|
|
36
37
|
import { CallTransferRecord } from './CallTransferRecord';
|
|
@@ -431,6 +432,33 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
431
432
|
journeyId?: string;
|
|
432
433
|
stageKey?: string;
|
|
433
434
|
}): ActionBuilder;
|
|
435
|
+
/**
|
|
436
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
437
|
+
*
|
|
438
|
+
* Updates this CallLeg record.
|
|
439
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
440
|
+
*
|
|
441
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
442
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
443
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
444
|
+
* @throws Error if called on a new (unsaved) record
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* ```typescript
|
|
448
|
+
* const record = await odinClient.callLegs.get(id);
|
|
449
|
+
* await record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).execute();
|
|
450
|
+
*
|
|
451
|
+
* // Dry run (for debugging)
|
|
452
|
+
* const payload = record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
453
|
+
* ```
|
|
454
|
+
*/
|
|
455
|
+
updateCustomerCallLegOnNumberCallStatusCompleted(propertiesOrOptions?: UpdateCustomerCallLegOnNumberCallStatusCompletedProperties | {
|
|
456
|
+
journeyId?: string;
|
|
457
|
+
stageKey?: string;
|
|
458
|
+
}, options?: {
|
|
459
|
+
journeyId?: string;
|
|
460
|
+
stageKey?: string;
|
|
461
|
+
}): ActionBuilder;
|
|
434
462
|
}
|
|
435
463
|
/** Type guard to check if an object is a CallLegRecord */
|
|
436
464
|
export declare function isCallLegRecord(obj: any): obj is CallLegRecord;
|
|
@@ -549,6 +549,43 @@ class CallLegRecord {
|
|
|
549
549
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
550
550
|
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
551
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
554
|
+
*
|
|
555
|
+
* Updates this CallLeg record.
|
|
556
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
557
|
+
*
|
|
558
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
559
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
560
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
561
|
+
* @throws Error if called on a new (unsaved) record
|
|
562
|
+
*
|
|
563
|
+
* @example
|
|
564
|
+
* ```typescript
|
|
565
|
+
* const record = await odinClient.callLegs.get(id);
|
|
566
|
+
* await record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).execute();
|
|
567
|
+
*
|
|
568
|
+
* // Dry run (for debugging)
|
|
569
|
+
* const payload = record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
570
|
+
* ```
|
|
571
|
+
*/
|
|
572
|
+
updateCustomerCallLegOnNumberCallStatusCompleted(propertiesOrOptions, options) {
|
|
573
|
+
var _a;
|
|
574
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
575
|
+
throw new Error('updateCustomerCallLegOnNumberCallStatusCompleted requires an existing record. Use accessor.get() first.');
|
|
576
|
+
let properties = {};
|
|
577
|
+
let opts = options;
|
|
578
|
+
if (propertiesOrOptions) {
|
|
579
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
580
|
+
opts = propertiesOrOptions;
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
properties = propertiesOrOptions;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnNumberCallStatusCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
587
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
588
|
+
}
|
|
552
589
|
}
|
|
553
590
|
exports.CallLegRecord = CallLegRecord;
|
|
554
591
|
// ============================================
|
|
@@ -30,6 +30,7 @@ import { UpdateCallOnInboundCallCanceledProperties } from '../actions-v2/UpdateC
|
|
|
30
30
|
import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
|
|
31
31
|
import { UpdateCallOnInboundCallInitiatedProperties } from '../actions-v2/UpdateCallOnInboundCallInitiatedDto';
|
|
32
32
|
import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCallOnInboundCallRingingDto';
|
|
33
|
+
import { UpdateCallOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCallOnNumberCallStatusCompletedDto';
|
|
33
34
|
import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
|
|
34
35
|
import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
|
|
35
36
|
import { LeadRecord } from './LeadRecord';
|
|
@@ -497,6 +498,32 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
497
498
|
journeyId?: string;
|
|
498
499
|
stageKey?: string;
|
|
499
500
|
}): ActionBuilder;
|
|
501
|
+
/**
|
|
502
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
503
|
+
*
|
|
504
|
+
* Updates this Call record with the specified properties.
|
|
505
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
506
|
+
*
|
|
507
|
+
* @param properties - Required properties for this action
|
|
508
|
+
* @param options - Optional settings
|
|
509
|
+
* @param options.journeyId - Associate with a journey
|
|
510
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
511
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
512
|
+
* @throws Error if called on a new (unsaved) record
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```typescript
|
|
516
|
+
* const record = await odinClient.calls.get(id);
|
|
517
|
+
* await record.updateCallOnNumberCallStatusCompleted({ ... }).execute();
|
|
518
|
+
*
|
|
519
|
+
* // Dry run (for debugging)
|
|
520
|
+
* const payload = record.updateCallOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
521
|
+
* ```
|
|
522
|
+
*/
|
|
523
|
+
updateCallOnNumberCallStatusCompleted(properties: UpdateCallOnNumberCallStatusCompletedProperties, options?: {
|
|
524
|
+
journeyId?: string;
|
|
525
|
+
stageKey?: string;
|
|
526
|
+
}): ActionBuilder;
|
|
500
527
|
/**
|
|
501
528
|
* UpdateCallOnTaskRouterAssign
|
|
502
529
|
*
|
|
@@ -675,6 +675,35 @@ class CallRecord {
|
|
|
675
675
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
676
676
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
677
677
|
}
|
|
678
|
+
/**
|
|
679
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
680
|
+
*
|
|
681
|
+
* Updates this Call record with the specified properties.
|
|
682
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
683
|
+
*
|
|
684
|
+
* @param properties - Required properties for this action
|
|
685
|
+
* @param options - Optional settings
|
|
686
|
+
* @param options.journeyId - Associate with a journey
|
|
687
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
688
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
689
|
+
* @throws Error if called on a new (unsaved) record
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* ```typescript
|
|
693
|
+
* const record = await odinClient.calls.get(id);
|
|
694
|
+
* await record.updateCallOnNumberCallStatusCompleted({ ... }).execute();
|
|
695
|
+
*
|
|
696
|
+
* // Dry run (for debugging)
|
|
697
|
+
* const payload = record.updateCallOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
698
|
+
* ```
|
|
699
|
+
*/
|
|
700
|
+
updateCallOnNumberCallStatusCompleted(properties, options) {
|
|
701
|
+
var _a;
|
|
702
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
703
|
+
throw new Error('updateCallOnNumberCallStatusCompleted requires an existing record. Use accessor.get() first.');
|
|
704
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnNumberCallStatusCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
705
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
706
|
+
}
|
|
678
707
|
/**
|
|
679
708
|
* UpdateCallOnTaskRouterAssign
|
|
680
709
|
*
|