@d19n/youfibre-odin-sdk 2.0.106-beta.2 → 2.0.106-beta.3
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/CreateInboundCallDto.d.ts +140 -0
- package/dist/actions-v2/CreateInboundCallDto.js +54 -0
- package/dist/actions-v2/CreateOutboundCallDto.d.ts +156 -0
- package/dist/actions-v2/CreateOutboundCallDto.js +54 -0
- package/dist/entities-v2/Call.d.ts +7 -0
- package/dist/entities-v2/Call.js +2 -0
- package/dist/records-v2/CallRecord.d.ts +58 -0
- package/dist/records-v2/CallRecord.js +72 -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 **640** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -1196,6 +1196,8 @@ This SDK includes **638** actions.
|
|
|
1196
1196
|
| Action | Type | Event |
|
|
1197
1197
|
|--------|------|-------|
|
|
1198
1198
|
| `CreateCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateCall |
|
|
1199
|
+
| `CreateInboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall |
|
|
1200
|
+
| `CreateOutboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall |
|
|
1199
1201
|
| `UpdateCallOnInboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered |
|
|
1200
1202
|
| `UpdateCallOnInboundCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCanceled |
|
|
1201
1203
|
| `UpdateCallOnInboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted |
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateInboundCall Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Create call on inbound call webhook
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey CreateInboundCall
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateInboundCall created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateInboundCallMessage extends OdinRecordCreatedEvent<CreateInboundCallDto, CreateInboundCallProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateInboundCall action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 10
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateInboundCallProperties {
|
|
28
|
+
/**
|
|
29
|
+
* external id
|
|
30
|
+
*
|
|
31
|
+
* the external id from the call management system (Communications - Call)
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
ExternalId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Source
|
|
38
|
+
*
|
|
39
|
+
* Data field for Call records. Used by Communications team.
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Source: string;
|
|
44
|
+
/**
|
|
45
|
+
* From
|
|
46
|
+
*
|
|
47
|
+
* Data field for Call records. Used by Communications team.
|
|
48
|
+
* @type {TEXT}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
From: string;
|
|
52
|
+
/**
|
|
53
|
+
* Direction
|
|
54
|
+
*
|
|
55
|
+
* Direction of call (Communications - Call)
|
|
56
|
+
* @type {ENUM}
|
|
57
|
+
* @required
|
|
58
|
+
*/
|
|
59
|
+
Direction: string;
|
|
60
|
+
/**
|
|
61
|
+
* call status
|
|
62
|
+
*
|
|
63
|
+
* the status of the call (Communications - Call)
|
|
64
|
+
* @type {TEXT}
|
|
65
|
+
* @required
|
|
66
|
+
*/
|
|
67
|
+
CallStatus: string;
|
|
68
|
+
/**
|
|
69
|
+
* Call stage
|
|
70
|
+
*
|
|
71
|
+
* The granular stage of a call, more extensive than CallStatus (Communications - Call)
|
|
72
|
+
* @type {ENUM}
|
|
73
|
+
* @required
|
|
74
|
+
*/
|
|
75
|
+
CallStage: string;
|
|
76
|
+
/**
|
|
77
|
+
* channel
|
|
78
|
+
*
|
|
79
|
+
* the source channel (Communications - Call)
|
|
80
|
+
* @type {TEXT}
|
|
81
|
+
* @required
|
|
82
|
+
*/
|
|
83
|
+
Channel: string;
|
|
84
|
+
/**
|
|
85
|
+
* StartTime
|
|
86
|
+
*
|
|
87
|
+
* Data field for Call records. Used by Communications team.
|
|
88
|
+
* @type {DATE_TIME}
|
|
89
|
+
* @required
|
|
90
|
+
*/
|
|
91
|
+
StartTime: string;
|
|
92
|
+
/**
|
|
93
|
+
* TransferCount
|
|
94
|
+
*
|
|
95
|
+
* Number of times this call was transferred (Communications - Call)
|
|
96
|
+
* @type {NUMBER}
|
|
97
|
+
* @required
|
|
98
|
+
*/
|
|
99
|
+
TransferCount: number;
|
|
100
|
+
/**
|
|
101
|
+
* Title
|
|
102
|
+
*
|
|
103
|
+
* Title of the call record
|
|
104
|
+
* @type {TEXT}
|
|
105
|
+
* @required
|
|
106
|
+
*/
|
|
107
|
+
Title: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* CreateInboundCall
|
|
111
|
+
*
|
|
112
|
+
* Create call on inbound call webhook
|
|
113
|
+
*
|
|
114
|
+
* @actionType CREATE - Creates a new Call record
|
|
115
|
+
* @module NotificationModule
|
|
116
|
+
* @entity Call
|
|
117
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
|
|
118
|
+
* @permission schema.action.createinboundcall.trigger
|
|
119
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
120
|
+
*/
|
|
121
|
+
export declare class CreateInboundCallDto extends OdinRecordCreateDto<CreateInboundCallProperties> {
|
|
122
|
+
/** Used by SDK generators to identify action type */
|
|
123
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
124
|
+
static readonly ACTION_KEY = "CreateInboundCall";
|
|
125
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
126
|
+
static readonly ENTITIES: string[];
|
|
127
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall";
|
|
128
|
+
static readonly PERMISSION = "schema.action.createinboundcall.trigger";
|
|
129
|
+
/** Step metadata - entity this action targets */
|
|
130
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
131
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
132
|
+
static readonly STEP_SCHEMA_ACTION_ID = "299d1984-3e76-45ce-90ec-088398480578";
|
|
133
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
134
|
+
readonly actionName: string;
|
|
135
|
+
readonly schemaActionId: string;
|
|
136
|
+
readonly entity: string;
|
|
137
|
+
constructor(properties: CreateInboundCallProperties, options?: {
|
|
138
|
+
journeyId?: string;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateInboundCall Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Create call on inbound call webhook
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey CreateInboundCall
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateInboundCallDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateInboundCall
|
|
19
|
+
*
|
|
20
|
+
* Create call on inbound call webhook
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
|
|
26
|
+
* @permission schema.action.createinboundcall.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class CreateInboundCallDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'NotificationModule:Call',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'CreateInboundCall';
|
|
38
|
+
this.schemaActionId = '299d1984-3e76-45ce-90ec-088398480578';
|
|
39
|
+
this.entity = 'NotificationModule:Call';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CreateInboundCallDto = CreateInboundCallDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
CreateInboundCallDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
CreateInboundCallDto.ACTION_KEY = 'CreateInboundCall';
|
|
46
|
+
CreateInboundCallDto.MODULE_NAME = 'NotificationModule';
|
|
47
|
+
CreateInboundCallDto.ENTITIES = ['Call'];
|
|
48
|
+
CreateInboundCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall';
|
|
49
|
+
CreateInboundCallDto.PERMISSION = 'schema.action.createinboundcall.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
CreateInboundCallDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
52
|
+
CreateInboundCallDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
53
|
+
CreateInboundCallDto.STEP_SCHEMA_ACTION_ID = '299d1984-3e76-45ce-90ec-088398480578';
|
|
54
|
+
CreateInboundCallDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateOutboundCall Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Create call on outbound call webhook
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey CreateOutboundCall
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateOutboundCall created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateOutboundCallMessage extends OdinRecordCreatedEvent<CreateOutboundCallDto, CreateOutboundCallProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateOutboundCall action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 12
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateOutboundCallProperties {
|
|
28
|
+
/**
|
|
29
|
+
* external id
|
|
30
|
+
*
|
|
31
|
+
* the external id from the call management system (Communications - Call)
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
ExternalId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Source
|
|
38
|
+
*
|
|
39
|
+
* Data field for Call records. Used by Communications team.
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Source: string;
|
|
44
|
+
/**
|
|
45
|
+
* From
|
|
46
|
+
*
|
|
47
|
+
* Data field for Call records. Used by Communications team.
|
|
48
|
+
* @type {TEXT}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
From: string;
|
|
52
|
+
/**
|
|
53
|
+
* To
|
|
54
|
+
*
|
|
55
|
+
* Data field for Call records. Used by Communications team.
|
|
56
|
+
* @type {TEXT}
|
|
57
|
+
* @required
|
|
58
|
+
*/
|
|
59
|
+
To: string;
|
|
60
|
+
/**
|
|
61
|
+
* Direction
|
|
62
|
+
*
|
|
63
|
+
* Direction of call (Communications - Call)
|
|
64
|
+
* @type {ENUM}
|
|
65
|
+
* @required
|
|
66
|
+
*/
|
|
67
|
+
Direction: string;
|
|
68
|
+
/**
|
|
69
|
+
* call status
|
|
70
|
+
*
|
|
71
|
+
* the status of the call (Communications - Call)
|
|
72
|
+
* @type {TEXT}
|
|
73
|
+
* @required
|
|
74
|
+
*/
|
|
75
|
+
CallStatus: string;
|
|
76
|
+
/**
|
|
77
|
+
* Call stage
|
|
78
|
+
*
|
|
79
|
+
* The granular stage of a call, more extensive than CallStatus (Communications - Call)
|
|
80
|
+
* @type {ENUM}
|
|
81
|
+
* @required
|
|
82
|
+
*/
|
|
83
|
+
CallStage: string;
|
|
84
|
+
/**
|
|
85
|
+
* channel
|
|
86
|
+
*
|
|
87
|
+
* the source channel (Communications - Call)
|
|
88
|
+
* @type {TEXT}
|
|
89
|
+
* @required
|
|
90
|
+
*/
|
|
91
|
+
Channel: string;
|
|
92
|
+
/**
|
|
93
|
+
* StartTime
|
|
94
|
+
*
|
|
95
|
+
* Data field for Call records. Used by Communications team.
|
|
96
|
+
* @type {DATE_TIME}
|
|
97
|
+
* @required
|
|
98
|
+
*/
|
|
99
|
+
StartTime: string;
|
|
100
|
+
/**
|
|
101
|
+
* CurrentAgentEmail
|
|
102
|
+
*
|
|
103
|
+
* Email of currently assigned agent (Communications - Call)
|
|
104
|
+
* @type {TEXT}
|
|
105
|
+
* @required
|
|
106
|
+
*/
|
|
107
|
+
CurrentAgentEmail: string;
|
|
108
|
+
/**
|
|
109
|
+
* TransferCount
|
|
110
|
+
*
|
|
111
|
+
* Number of times this call was transferred (Communications - Call)
|
|
112
|
+
* @type {NUMBER}
|
|
113
|
+
* @required
|
|
114
|
+
*/
|
|
115
|
+
TransferCount: number;
|
|
116
|
+
/**
|
|
117
|
+
* Title
|
|
118
|
+
*
|
|
119
|
+
* Title of the call record
|
|
120
|
+
* @type {TEXT}
|
|
121
|
+
* @required
|
|
122
|
+
*/
|
|
123
|
+
Title: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* CreateOutboundCall
|
|
127
|
+
*
|
|
128
|
+
* Create call on outbound call webhook
|
|
129
|
+
*
|
|
130
|
+
* @actionType CREATE - Creates a new Call record
|
|
131
|
+
* @module NotificationModule
|
|
132
|
+
* @entity Call
|
|
133
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
|
|
134
|
+
* @permission schema.action.createoutboundcall.trigger
|
|
135
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
136
|
+
*/
|
|
137
|
+
export declare class CreateOutboundCallDto extends OdinRecordCreateDto<CreateOutboundCallProperties> {
|
|
138
|
+
/** Used by SDK generators to identify action type */
|
|
139
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
140
|
+
static readonly ACTION_KEY = "CreateOutboundCall";
|
|
141
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
142
|
+
static readonly ENTITIES: string[];
|
|
143
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall";
|
|
144
|
+
static readonly PERMISSION = "schema.action.createoutboundcall.trigger";
|
|
145
|
+
/** Step metadata - entity this action targets */
|
|
146
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
147
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
148
|
+
static readonly STEP_SCHEMA_ACTION_ID = "c30cd248-c889-47e3-8e50-44d97bc571fd";
|
|
149
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
150
|
+
readonly actionName: string;
|
|
151
|
+
readonly schemaActionId: string;
|
|
152
|
+
readonly entity: string;
|
|
153
|
+
constructor(properties: CreateOutboundCallProperties, options?: {
|
|
154
|
+
journeyId?: string;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateOutboundCall Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Create call on outbound call webhook
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey CreateOutboundCall
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateOutboundCallDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateOutboundCall
|
|
19
|
+
*
|
|
20
|
+
* Create call on outbound call webhook
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
|
|
26
|
+
* @permission schema.action.createoutboundcall.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class CreateOutboundCallDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'NotificationModule:Call',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'CreateOutboundCall';
|
|
38
|
+
this.schemaActionId = 'c30cd248-c889-47e3-8e50-44d97bc571fd';
|
|
39
|
+
this.entity = 'NotificationModule:Call';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CreateOutboundCallDto = CreateOutboundCallDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
CreateOutboundCallDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
CreateOutboundCallDto.ACTION_KEY = 'CreateOutboundCall';
|
|
46
|
+
CreateOutboundCallDto.MODULE_NAME = 'NotificationModule';
|
|
47
|
+
CreateOutboundCallDto.ENTITIES = ['Call'];
|
|
48
|
+
CreateOutboundCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall';
|
|
49
|
+
CreateOutboundCallDto.PERMISSION = 'schema.action.createoutboundcall.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
CreateOutboundCallDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
52
|
+
CreateOutboundCallDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
53
|
+
CreateOutboundCallDto.STEP_SCHEMA_ACTION_ID = 'c30cd248-c889-47e3-8e50-44d97bc571fd';
|
|
54
|
+
CreateOutboundCallDto.AUTO_LINK_PARENT = true;
|
|
@@ -200,6 +200,8 @@ export declare enum CallPropertyKeys {
|
|
|
200
200
|
TimeInQueued = "TimeInQueued",
|
|
201
201
|
/** TimeInProgress (Communications - Call) */
|
|
202
202
|
TimeInProgress = "TimeInProgress",
|
|
203
|
+
/** Title of the call record */
|
|
204
|
+
Title = "Title",
|
|
203
205
|
/** ActiveTransferId */
|
|
204
206
|
ActiveTransferId = "ActiveTransferId",
|
|
205
207
|
/** Data field for Call records. Used by Communications team. */
|
|
@@ -453,6 +455,11 @@ export interface CallProperties {
|
|
|
453
455
|
* @type {TEXT}
|
|
454
456
|
*/
|
|
455
457
|
TimeInProgress: string;
|
|
458
|
+
/** Title of the call record
|
|
459
|
+
*
|
|
460
|
+
* @type {TEXT}
|
|
461
|
+
*/
|
|
462
|
+
Title: string;
|
|
456
463
|
/** ActiveTransferId
|
|
457
464
|
*
|
|
458
465
|
* @type {TEXT}
|
package/dist/entities-v2/Call.js
CHANGED
|
@@ -200,6 +200,8 @@ var CallPropertyKeys;
|
|
|
200
200
|
CallPropertyKeys["TimeInQueued"] = "TimeInQueued";
|
|
201
201
|
/** TimeInProgress (Communications - Call) */
|
|
202
202
|
CallPropertyKeys["TimeInProgress"] = "TimeInProgress";
|
|
203
|
+
/** Title of the call record */
|
|
204
|
+
CallPropertyKeys["Title"] = "Title";
|
|
203
205
|
/** ActiveTransferId */
|
|
204
206
|
CallPropertyKeys["ActiveTransferId"] = "ActiveTransferId";
|
|
205
207
|
/** Data field for Call records. Used by Communications team. */
|
|
@@ -25,6 +25,8 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
|
|
|
25
25
|
import { CallProperties } from '../entities-v2/Call';
|
|
26
26
|
import { CreateCallProperties } from '../actions-v2/CreateCallDto';
|
|
27
27
|
import { CreateCallBuilder } from '../actions-v2/CreateCallDto';
|
|
28
|
+
import { CreateInboundCallProperties } from '../actions-v2/CreateInboundCallDto';
|
|
29
|
+
import { CreateOutboundCallProperties } from '../actions-v2/CreateOutboundCallDto';
|
|
28
30
|
import { UpdateCallOnInboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnInboundCallAnsweredDto';
|
|
29
31
|
import { UpdateCallOnInboundCallCanceledProperties } from '../actions-v2/UpdateCallOnInboundCallCanceledDto';
|
|
30
32
|
import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
|
|
@@ -365,6 +367,62 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
365
367
|
journeyId?: string;
|
|
366
368
|
stageKey?: string;
|
|
367
369
|
}): CreateCallBuilder;
|
|
370
|
+
/**
|
|
371
|
+
* CreateInboundCall
|
|
372
|
+
*
|
|
373
|
+
* Creates a new Call record with the specified properties.
|
|
374
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
375
|
+
*
|
|
376
|
+
* @param properties - The properties for the new record
|
|
377
|
+
* @param options - Optional settings
|
|
378
|
+
* @param options.type - Override the record type
|
|
379
|
+
* @param options.journeyId - Associate with a journey
|
|
380
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
381
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
382
|
+
*
|
|
383
|
+
* @example
|
|
384
|
+
* ```typescript
|
|
385
|
+
* // Create with properties
|
|
386
|
+
* const record = odinClient.calls.new();
|
|
387
|
+
* await record.createInboundCall({ ... }).execute();
|
|
388
|
+
*
|
|
389
|
+
* // Dry run (for debugging)
|
|
390
|
+
* const payload = record.createInboundCall({ ... }).dryRun();
|
|
391
|
+
* ```
|
|
392
|
+
*/
|
|
393
|
+
createInboundCall(properties: CreateInboundCallProperties, options?: {
|
|
394
|
+
type?: string;
|
|
395
|
+
journeyId?: string;
|
|
396
|
+
stageKey?: string;
|
|
397
|
+
}): ActionBuilder;
|
|
398
|
+
/**
|
|
399
|
+
* CreateOutboundCall
|
|
400
|
+
*
|
|
401
|
+
* Creates a new Call record with the specified properties.
|
|
402
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
403
|
+
*
|
|
404
|
+
* @param properties - The properties for the new record
|
|
405
|
+
* @param options - Optional settings
|
|
406
|
+
* @param options.type - Override the record type
|
|
407
|
+
* @param options.journeyId - Associate with a journey
|
|
408
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
409
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* ```typescript
|
|
413
|
+
* // Create with properties
|
|
414
|
+
* const record = odinClient.calls.new();
|
|
415
|
+
* await record.createOutboundCall({ ... }).execute();
|
|
416
|
+
*
|
|
417
|
+
* // Dry run (for debugging)
|
|
418
|
+
* const payload = record.createOutboundCall({ ... }).dryRun();
|
|
419
|
+
* ```
|
|
420
|
+
*/
|
|
421
|
+
createOutboundCall(properties: CreateOutboundCallProperties, options?: {
|
|
422
|
+
type?: string;
|
|
423
|
+
journeyId?: string;
|
|
424
|
+
stageKey?: string;
|
|
425
|
+
}): ActionBuilder;
|
|
368
426
|
/**
|
|
369
427
|
* UpdateCallOnInboundCallAnswered
|
|
370
428
|
*
|
|
@@ -503,6 +503,78 @@ class CallRecord {
|
|
|
503
503
|
createCall(properties, options) {
|
|
504
504
|
return new CreateCallDto_1.CreateCallBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'NotificationModule', 'Call', () => { this._pendingLinks = []; });
|
|
505
505
|
}
|
|
506
|
+
/**
|
|
507
|
+
* CreateInboundCall
|
|
508
|
+
*
|
|
509
|
+
* Creates a new Call record with the specified properties.
|
|
510
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
511
|
+
*
|
|
512
|
+
* @param properties - The properties for the new record
|
|
513
|
+
* @param options - Optional settings
|
|
514
|
+
* @param options.type - Override the record type
|
|
515
|
+
* @param options.journeyId - Associate with a journey
|
|
516
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
517
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
518
|
+
*
|
|
519
|
+
* @example
|
|
520
|
+
* ```typescript
|
|
521
|
+
* // Create with properties
|
|
522
|
+
* const record = odinClient.calls.new();
|
|
523
|
+
* await record.createInboundCall({ ... }).execute();
|
|
524
|
+
*
|
|
525
|
+
* // Dry run (for debugging)
|
|
526
|
+
* const payload = record.createInboundCall({ ... }).dryRun();
|
|
527
|
+
* ```
|
|
528
|
+
*/
|
|
529
|
+
createInboundCall(properties, options) {
|
|
530
|
+
var _a, _b;
|
|
531
|
+
const payload = {
|
|
532
|
+
entity: 'NotificationModule:Call',
|
|
533
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
534
|
+
actionName: 'CreateInboundCall',
|
|
535
|
+
properties: properties || {},
|
|
536
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
537
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
538
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
539
|
+
};
|
|
540
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* CreateOutboundCall
|
|
544
|
+
*
|
|
545
|
+
* Creates a new Call record with the specified properties.
|
|
546
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
547
|
+
*
|
|
548
|
+
* @param properties - The properties for the new record
|
|
549
|
+
* @param options - Optional settings
|
|
550
|
+
* @param options.type - Override the record type
|
|
551
|
+
* @param options.journeyId - Associate with a journey
|
|
552
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
553
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
554
|
+
*
|
|
555
|
+
* @example
|
|
556
|
+
* ```typescript
|
|
557
|
+
* // Create with properties
|
|
558
|
+
* const record = odinClient.calls.new();
|
|
559
|
+
* await record.createOutboundCall({ ... }).execute();
|
|
560
|
+
*
|
|
561
|
+
* // Dry run (for debugging)
|
|
562
|
+
* const payload = record.createOutboundCall({ ... }).dryRun();
|
|
563
|
+
* ```
|
|
564
|
+
*/
|
|
565
|
+
createOutboundCall(properties, options) {
|
|
566
|
+
var _a, _b;
|
|
567
|
+
const payload = {
|
|
568
|
+
entity: 'NotificationModule:Call',
|
|
569
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
570
|
+
actionName: 'CreateOutboundCall',
|
|
571
|
+
properties: properties || {},
|
|
572
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
573
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
574
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
575
|
+
};
|
|
576
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
577
|
+
}
|
|
506
578
|
// ============================================
|
|
507
579
|
// UPDATE ACTIONS (require existing record)
|
|
508
580
|
// ============================================
|