@d19n/youfibre-odin-sdk 2.0.100 → 2.0.102-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 +22 -13
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/TwilioUserUpdateAccessor.d.ts +111 -0
- package/dist/accessors-v2/TwilioUserUpdateAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +3 -1
- package/dist/actions-v2/CreateAgentCallLegDto.d.ts +139 -0
- package/dist/actions-v2/CreateAgentCallLegDto.js +54 -0
- package/dist/actions-v2/CreateCallDto.d.ts +124 -0
- package/dist/actions-v2/CreateCallDto.js +54 -0
- package/dist/actions-v2/CreateCallEventDto.d.ts +50 -0
- package/dist/actions-v2/CreateCustomerCallLegDto.d.ts +124 -0
- package/dist/actions-v2/CreateCustomerCallLegDto.js +54 -0
- package/dist/actions-v2/CreateTwilioUserUpdateDto.d.ts +93 -0
- package/dist/actions-v2/CreateTwilioUserUpdateDto.js +52 -0
- package/dist/db-accessors-v2/TwilioUserUpdateDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/TwilioUserUpdateDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +3 -1
- package/dist/entities-v2/AddressInteraction.d.ts +15 -14
- package/dist/entities-v2/AddressInteraction.js +4 -4
- package/dist/records-v2/CallEventRecord.d.ts +1 -1
- package/dist/records-v2/CallLegRecord.d.ts +58 -0
- package/dist/records-v2/CallLegRecord.js +75 -0
- package/dist/records-v2/CallRecord.d.ts +29 -0
- package/dist/records-v2/CallRecord.js +39 -0
- package/dist/records-v2/TwilioUserUpdateRecord.d.ts +205 -0
- package/dist/records-v2/TwilioUserUpdateRecord.js +280 -0
- package/dist/records-v2/UserRecord.d.ts +20 -0
- package/dist/records-v2/UserRecord.js +33 -0
- package/dist/records-v2/index.d.ts +3 -2
- package/dist/records-v2/index.js +13 -10
- 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 **619** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -1107,6 +1107,14 @@ This SDK includes **615** actions.
|
|
|
1107
1107
|
|--------|------|-------|
|
|
1108
1108
|
| `CreateAffiliateCode` | CREATE | k1.t-hEOJjsDb.CrmModule.AffiliateCode.Create.CreateAffiliateCode |
|
|
1109
1109
|
|
|
1110
|
+
#### CallLeg
|
|
1111
|
+
|
|
1112
|
+
| Action | Type | Event |
|
|
1113
|
+
|--------|------|-------|
|
|
1114
|
+
| `CreateAgentCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg |
|
|
1115
|
+
| `CreateCustomerCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateCustomerCallLeg |
|
|
1116
|
+
| `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
|
|
1117
|
+
|
|
1110
1118
|
#### Appointment
|
|
1111
1119
|
|
|
1112
1120
|
| Action | Type | Event |
|
|
@@ -1158,6 +1166,13 @@ This SDK includes **615** actions.
|
|
|
1158
1166
|
| `UpdateMobileProductAction` | UPDATE | k1.t-hEOJjsDb.ProductModule.Product.Update.UpdateMobileProductAction |
|
|
1159
1167
|
| `UpdateTelevisionProductAction` | UPDATE | k1.t-hEOJjsDb.ProductModule.Product.Update.UpdateTelevisionProductAction |
|
|
1160
1168
|
|
|
1169
|
+
#### Call
|
|
1170
|
+
|
|
1171
|
+
| Action | Type | Event |
|
|
1172
|
+
|--------|------|-------|
|
|
1173
|
+
| `CreateCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateCall |
|
|
1174
|
+
| `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
|
|
1175
|
+
|
|
1161
1176
|
#### CallEvent
|
|
1162
1177
|
|
|
1163
1178
|
| Action | Type | Event |
|
|
@@ -1728,6 +1743,12 @@ This SDK includes **615** actions.
|
|
|
1728
1743
|
| `CreateTwilioTaskQueue` | CREATE | k1.t-hEOJjsDb.ServiceModule.TwilioTaskQueue.Create.CreateTwilioTaskQueue |
|
|
1729
1744
|
| `UpdateTwilioTaskQueue` | UPDATE | k1.t-hEOJjsDb.ServiceModule.TwilioTaskQueue.Update.UpdateTwilioTaskQueue |
|
|
1730
1745
|
|
|
1746
|
+
#### TwilioUserUpdate
|
|
1747
|
+
|
|
1748
|
+
| Action | Type | Event |
|
|
1749
|
+
|--------|------|-------|
|
|
1750
|
+
| `CreateTwilioUserUpdate` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioUserUpdate.Create.CreateTwilioUserUpdate |
|
|
1751
|
+
|
|
1731
1752
|
#### User
|
|
1732
1753
|
|
|
1733
1754
|
| Action | Type | Event |
|
|
@@ -1856,18 +1877,6 @@ This SDK includes **615** actions.
|
|
|
1856
1877
|
| `ScheduleSlotCreate` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ScheduleSlot.Create.ScheduleSlotCreate |
|
|
1857
1878
|
| `ScheduleSlotUpdate` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.ScheduleSlot.Update.ScheduleSlotUpdate |
|
|
1858
1879
|
|
|
1859
|
-
#### CallLeg
|
|
1860
|
-
|
|
1861
|
-
| Action | Type | Event |
|
|
1862
|
-
|--------|------|-------|
|
|
1863
|
-
| `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
|
|
1864
|
-
|
|
1865
|
-
#### Call
|
|
1866
|
-
|
|
1867
|
-
| Action | Type | Event |
|
|
1868
|
-
|--------|------|-------|
|
|
1869
|
-
| `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
|
|
1870
|
-
|
|
1871
1880
|
#### Service
|
|
1872
1881
|
|
|
1873
1882
|
| Action | Type | Event |
|
package/dist/EntityRegistry.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ import { TeamAccessor } from './accessors-v2/TeamAccessor';
|
|
|
113
113
|
import { TimeSlotAccessor } from './accessors-v2/TimeSlotAccessor';
|
|
114
114
|
import { TransactionAccessor } from './accessors-v2/TransactionAccessor';
|
|
115
115
|
import { TwilioTaskQueueAccessor } from './accessors-v2/TwilioTaskQueueAccessor';
|
|
116
|
+
import { TwilioUserUpdateAccessor } from './accessors-v2/TwilioUserUpdateAccessor';
|
|
116
117
|
import { UgAuditOfInstallationAccessor } from './accessors-v2/UgAuditOfInstallationAccessor';
|
|
117
118
|
import { UgExternalAuditAccessor } from './accessors-v2/UgExternalAuditAccessor';
|
|
118
119
|
import { UgInProgressAuditAccessor } from './accessors-v2/UgInProgressAuditAccessor';
|
|
@@ -228,6 +229,7 @@ export declare const EntityRegistry: {
|
|
|
228
229
|
readonly TimeSlot: typeof TimeSlotAccessor;
|
|
229
230
|
readonly Transaction: typeof TransactionAccessor;
|
|
230
231
|
readonly TwilioTaskQueue: typeof TwilioTaskQueueAccessor;
|
|
232
|
+
readonly TwilioUserUpdate: typeof TwilioUserUpdateAccessor;
|
|
231
233
|
readonly UgAuditOfInstallation: typeof UgAuditOfInstallationAccessor;
|
|
232
234
|
readonly UgExternalAudit: typeof UgExternalAuditAccessor;
|
|
233
235
|
readonly UgInProgressAudit: typeof UgInProgressAuditAccessor;
|
package/dist/EntityRegistry.js
CHANGED
|
@@ -116,6 +116,7 @@ const TeamAccessor_1 = require("./accessors-v2/TeamAccessor");
|
|
|
116
116
|
const TimeSlotAccessor_1 = require("./accessors-v2/TimeSlotAccessor");
|
|
117
117
|
const TransactionAccessor_1 = require("./accessors-v2/TransactionAccessor");
|
|
118
118
|
const TwilioTaskQueueAccessor_1 = require("./accessors-v2/TwilioTaskQueueAccessor");
|
|
119
|
+
const TwilioUserUpdateAccessor_1 = require("./accessors-v2/TwilioUserUpdateAccessor");
|
|
119
120
|
const UgAuditOfInstallationAccessor_1 = require("./accessors-v2/UgAuditOfInstallationAccessor");
|
|
120
121
|
const UgExternalAuditAccessor_1 = require("./accessors-v2/UgExternalAuditAccessor");
|
|
121
122
|
const UgInProgressAuditAccessor_1 = require("./accessors-v2/UgInProgressAuditAccessor");
|
|
@@ -231,6 +232,7 @@ exports.EntityRegistry = {
|
|
|
231
232
|
'TimeSlot': TimeSlotAccessor_1.TimeSlotAccessor,
|
|
232
233
|
'Transaction': TransactionAccessor_1.TransactionAccessor,
|
|
233
234
|
'TwilioTaskQueue': TwilioTaskQueueAccessor_1.TwilioTaskQueueAccessor,
|
|
235
|
+
'TwilioUserUpdate': TwilioUserUpdateAccessor_1.TwilioUserUpdateAccessor,
|
|
234
236
|
'UgAuditOfInstallation': UgAuditOfInstallationAccessor_1.UgAuditOfInstallationAccessor,
|
|
235
237
|
'UgExternalAudit': UgExternalAuditAccessor_1.UgExternalAuditAccessor,
|
|
236
238
|
'UgInProgressAudit': UgInProgressAuditAccessor_1.UgInProgressAuditAccessor,
|
package/dist/OdinApiClient.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ import { TeamAccessor } from './accessors-v2/TeamAccessor';
|
|
|
123
123
|
import { TimeSlotAccessor } from './accessors-v2/TimeSlotAccessor';
|
|
124
124
|
import { TransactionAccessor } from './accessors-v2/TransactionAccessor';
|
|
125
125
|
import { TwilioTaskQueueAccessor } from './accessors-v2/TwilioTaskQueueAccessor';
|
|
126
|
+
import { TwilioUserUpdateAccessor } from './accessors-v2/TwilioUserUpdateAccessor';
|
|
126
127
|
import { UgAuditOfInstallationAccessor } from './accessors-v2/UgAuditOfInstallationAccessor';
|
|
127
128
|
import { UgExternalAuditAccessor } from './accessors-v2/UgExternalAuditAccessor';
|
|
128
129
|
import { UgInProgressAuditAccessor } from './accessors-v2/UgInProgressAuditAccessor';
|
|
@@ -247,6 +248,7 @@ export declare class OdinApiClient {
|
|
|
247
248
|
private _timeSlots?;
|
|
248
249
|
private _transactions?;
|
|
249
250
|
private _twilioTaskQueues?;
|
|
251
|
+
private _twilioUserUpdates?;
|
|
250
252
|
private _ugAuditOfInstallations?;
|
|
251
253
|
private _ugExternalAudits?;
|
|
252
254
|
private _ugInProgressAudits?;
|
|
@@ -474,6 +476,8 @@ export declare class OdinApiClient {
|
|
|
474
476
|
get transactions(): TransactionAccessor;
|
|
475
477
|
/** Access TwilioTaskQueue records */
|
|
476
478
|
get twilioTaskQueues(): TwilioTaskQueueAccessor;
|
|
479
|
+
/** Access TwilioUserUpdate records */
|
|
480
|
+
get twilioUserUpdates(): TwilioUserUpdateAccessor;
|
|
477
481
|
/** Access UgAuditOfInstallation records */
|
|
478
482
|
get ugAuditOfInstallations(): UgAuditOfInstallationAccessor;
|
|
479
483
|
/** Access UgExternalAudit records */
|
package/dist/OdinApiClient.js
CHANGED
|
@@ -134,6 +134,7 @@ const TeamAccessor_1 = require("./accessors-v2/TeamAccessor");
|
|
|
134
134
|
const TimeSlotAccessor_1 = require("./accessors-v2/TimeSlotAccessor");
|
|
135
135
|
const TransactionAccessor_1 = require("./accessors-v2/TransactionAccessor");
|
|
136
136
|
const TwilioTaskQueueAccessor_1 = require("./accessors-v2/TwilioTaskQueueAccessor");
|
|
137
|
+
const TwilioUserUpdateAccessor_1 = require("./accessors-v2/TwilioUserUpdateAccessor");
|
|
137
138
|
const UgAuditOfInstallationAccessor_1 = require("./accessors-v2/UgAuditOfInstallationAccessor");
|
|
138
139
|
const UgExternalAuditAccessor_1 = require("./accessors-v2/UgExternalAuditAccessor");
|
|
139
140
|
const UgInProgressAuditAccessor_1 = require("./accessors-v2/UgInProgressAuditAccessor");
|
|
@@ -888,6 +889,13 @@ class OdinApiClient {
|
|
|
888
889
|
}
|
|
889
890
|
return this._twilioTaskQueues;
|
|
890
891
|
}
|
|
892
|
+
/** Access TwilioUserUpdate records */
|
|
893
|
+
get twilioUserUpdates() {
|
|
894
|
+
if (!this._twilioUserUpdates) {
|
|
895
|
+
this._twilioUserUpdates = new TwilioUserUpdateAccessor_1.TwilioUserUpdateAccessor(this._provider);
|
|
896
|
+
}
|
|
897
|
+
return this._twilioUserUpdates;
|
|
898
|
+
}
|
|
891
899
|
/** Access UgAuditOfInstallation records */
|
|
892
900
|
get ugAuditOfInstallations() {
|
|
893
901
|
if (!this._ugAuditOfInstallations) {
|
package/dist/OdinDbClient.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ import { TeamDbAccessor } from './db-accessors-v2/TeamDbAccessor';
|
|
|
130
130
|
import { TimeSlotDbAccessor } from './db-accessors-v2/TimeSlotDbAccessor';
|
|
131
131
|
import { TransactionDbAccessor } from './db-accessors-v2/TransactionDbAccessor';
|
|
132
132
|
import { TwilioTaskQueueDbAccessor } from './db-accessors-v2/TwilioTaskQueueDbAccessor';
|
|
133
|
+
import { TwilioUserUpdateDbAccessor } from './db-accessors-v2/TwilioUserUpdateDbAccessor';
|
|
133
134
|
import { UgAuditOfInstallationDbAccessor } from './db-accessors-v2/UgAuditOfInstallationDbAccessor';
|
|
134
135
|
import { UgExternalAuditDbAccessor } from './db-accessors-v2/UgExternalAuditDbAccessor';
|
|
135
136
|
import { UgInProgressAuditDbAccessor } from './db-accessors-v2/UgInProgressAuditDbAccessor';
|
|
@@ -248,6 +249,7 @@ export declare class OdinDbClient {
|
|
|
248
249
|
private _timeSlots?;
|
|
249
250
|
private _transactions?;
|
|
250
251
|
private _twilioTaskQueues?;
|
|
252
|
+
private _twilioUserUpdates?;
|
|
251
253
|
private _ugAuditOfInstallations?;
|
|
252
254
|
private _ugExternalAudits?;
|
|
253
255
|
private _ugInProgressAudits?;
|
|
@@ -484,6 +486,8 @@ export declare class OdinDbClient {
|
|
|
484
486
|
get transactions(): TransactionDbAccessor;
|
|
485
487
|
/** Access TwilioTaskQueue records */
|
|
486
488
|
get twilioTaskQueues(): TwilioTaskQueueDbAccessor;
|
|
489
|
+
/** Access TwilioUserUpdate records */
|
|
490
|
+
get twilioUserUpdates(): TwilioUserUpdateDbAccessor;
|
|
487
491
|
/** Access UgAuditOfInstallation records */
|
|
488
492
|
get ugAuditOfInstallations(): UgAuditOfInstallationDbAccessor;
|
|
489
493
|
/** Access UgExternalAudit records */
|
package/dist/OdinDbClient.js
CHANGED
|
@@ -132,6 +132,7 @@ const TeamDbAccessor_1 = require("./db-accessors-v2/TeamDbAccessor");
|
|
|
132
132
|
const TimeSlotDbAccessor_1 = require("./db-accessors-v2/TimeSlotDbAccessor");
|
|
133
133
|
const TransactionDbAccessor_1 = require("./db-accessors-v2/TransactionDbAccessor");
|
|
134
134
|
const TwilioTaskQueueDbAccessor_1 = require("./db-accessors-v2/TwilioTaskQueueDbAccessor");
|
|
135
|
+
const TwilioUserUpdateDbAccessor_1 = require("./db-accessors-v2/TwilioUserUpdateDbAccessor");
|
|
135
136
|
const UgAuditOfInstallationDbAccessor_1 = require("./db-accessors-v2/UgAuditOfInstallationDbAccessor");
|
|
136
137
|
const UgExternalAuditDbAccessor_1 = require("./db-accessors-v2/UgExternalAuditDbAccessor");
|
|
137
138
|
const UgInProgressAuditDbAccessor_1 = require("./db-accessors-v2/UgInProgressAuditDbAccessor");
|
|
@@ -889,6 +890,13 @@ class OdinDbClient {
|
|
|
889
890
|
}
|
|
890
891
|
return this._twilioTaskQueues;
|
|
891
892
|
}
|
|
893
|
+
/** Access TwilioUserUpdate records */
|
|
894
|
+
get twilioUserUpdates() {
|
|
895
|
+
if (!this._twilioUserUpdates) {
|
|
896
|
+
this._twilioUserUpdates = new TwilioUserUpdateDbAccessor_1.TwilioUserUpdateDbAccessor(this._principal, this._dbService, this._defaultOptions);
|
|
897
|
+
}
|
|
898
|
+
return this._twilioUserUpdates;
|
|
899
|
+
}
|
|
892
900
|
/** Access UgAuditOfInstallation records */
|
|
893
901
|
get ugAuditOfInstallations() {
|
|
894
902
|
if (!this._ugAuditOfInstallations) {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TwilioUserUpdate Accessor
|
|
3
|
+
*
|
|
4
|
+
* Provides typed access to TwilioUserUpdate records via API.
|
|
5
|
+
* Returns wrapped records with typed action methods.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // Get existing record
|
|
10
|
+
* const record = await accessor.get(id);
|
|
11
|
+
* await record.updateTwilioUserUpdate({ ... });
|
|
12
|
+
*
|
|
13
|
+
* // Create new record
|
|
14
|
+
* const newRecord = accessor.new();
|
|
15
|
+
* await newRecord.createTwilioUserUpdate({ ... });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
|
+
*/
|
|
20
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
|
|
21
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
22
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
23
|
+
import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
|
|
24
|
+
import { TwilioUserUpdateProperties } from '../entities-v2/TwilioUserUpdate';
|
|
25
|
+
import { TwilioUserUpdateRecord } from '../records-v2/TwilioUserUpdateRecord';
|
|
26
|
+
/** List response with wrapped records */
|
|
27
|
+
export interface TwilioUserUpdateListResponse {
|
|
28
|
+
data: TwilioUserUpdateRecord[];
|
|
29
|
+
hasMore: boolean;
|
|
30
|
+
totalRecords: number;
|
|
31
|
+
}
|
|
32
|
+
/** Search response with wrapped records */
|
|
33
|
+
export interface TwilioUserUpdateSearchResponse {
|
|
34
|
+
records: TwilioUserUpdateRecord[];
|
|
35
|
+
totalRecords: number;
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare class TwilioUserUpdateAccessor {
|
|
39
|
+
private readonly _provider;
|
|
40
|
+
private readonly _moduleName;
|
|
41
|
+
private readonly _entityName;
|
|
42
|
+
constructor(provider: ApiProvider);
|
|
43
|
+
constructor(authParams: OauthParams);
|
|
44
|
+
constructor(authToken: string, host?: string);
|
|
45
|
+
get moduleName(): string;
|
|
46
|
+
get entityName(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Create a new empty TwilioUserUpdate record instance for create operations.
|
|
49
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
50
|
+
*
|
|
51
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
52
|
+
* @returns A new record wrapper with pre-generated ID
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* // Auto-generated ID
|
|
57
|
+
* const note = odinClient.notes.new();
|
|
58
|
+
* console.log(note.id); // UUID available immediately
|
|
59
|
+
*
|
|
60
|
+
* // Custom ID
|
|
61
|
+
* const order = odinClient.orders.new("custom-id-123");
|
|
62
|
+
*
|
|
63
|
+
* // Reference ID before save
|
|
64
|
+
* const account = odinClient.accounts.new();
|
|
65
|
+
* const contact = odinClient.contacts.new();
|
|
66
|
+
* await contact
|
|
67
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
68
|
+
* .createContact({ FirstName: "John" });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
new(id?: string): TwilioUserUpdateRecord;
|
|
72
|
+
/**
|
|
73
|
+
* Get a single TwilioUserUpdate record by ID
|
|
74
|
+
*/
|
|
75
|
+
get(id: string): Promise<TwilioUserUpdateRecord>;
|
|
76
|
+
/**
|
|
77
|
+
* Get multiple TwilioUserUpdate records by IDs
|
|
78
|
+
*/
|
|
79
|
+
getMany(ids: string[]): Promise<TwilioUserUpdateRecord[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Search TwilioUserUpdate records
|
|
82
|
+
*/
|
|
83
|
+
search(params: Partial<OdinSearchV2>): Promise<TwilioUserUpdateSearchResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Search all TwilioUserUpdate records with automatic pagination
|
|
86
|
+
*/
|
|
87
|
+
searchAll(params: Partial<OdinSearchV2>): Promise<TwilioUserUpdateRecord[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Async generator for paginating through all matching records.
|
|
90
|
+
* Yields batches of wrapped records.
|
|
91
|
+
*/
|
|
92
|
+
paginate(params: Partial<OdinSearchV2>): AsyncGenerator<TwilioUserUpdateRecord[]>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a fluent query builder for TwilioUserUpdate records
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const results = await accessor
|
|
99
|
+
* .query()
|
|
100
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
101
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
102
|
+
* .select('id', 'title', 'properties.*')
|
|
103
|
+
* .sortBy('createdAt', 'desc')
|
|
104
|
+
* .limit(100)
|
|
105
|
+
* .execute();
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
query(): QueryBuilder<TwilioUserUpdateProperties, TwilioUserUpdateRecord>;
|
|
109
|
+
/** Access the underlying ApiProvider */
|
|
110
|
+
get provider(): ApiProvider;
|
|
111
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* TwilioUserUpdate Accessor
|
|
4
|
+
*
|
|
5
|
+
* Provides typed access to TwilioUserUpdate records via API.
|
|
6
|
+
* Returns wrapped records with typed action methods.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* // Get existing record
|
|
11
|
+
* const record = await accessor.get(id);
|
|
12
|
+
* await record.updateTwilioUserUpdate({ ... });
|
|
13
|
+
*
|
|
14
|
+
* // Create new record
|
|
15
|
+
* const newRecord = accessor.new();
|
|
16
|
+
* await newRecord.createTwilioUserUpdate({ ... });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
|
+
*/
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
31
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
32
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
33
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
34
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
35
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
36
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
37
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
38
|
+
function fulfill(value) { resume("next", value); }
|
|
39
|
+
function reject(value) { resume("throw", value); }
|
|
40
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.TwilioUserUpdateAccessor = void 0;
|
|
44
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
45
|
+
const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
|
|
46
|
+
const TwilioUserUpdateRecord_1 = require("../records-v2/TwilioUserUpdateRecord");
|
|
47
|
+
class TwilioUserUpdateAccessor {
|
|
48
|
+
constructor(providerOrAuth, host) {
|
|
49
|
+
this._moduleName = 'NotificationModule';
|
|
50
|
+
this._entityName = 'TwilioUserUpdate';
|
|
51
|
+
if (providerOrAuth instanceof api_provider_1.ApiProvider) {
|
|
52
|
+
this._provider = providerOrAuth;
|
|
53
|
+
}
|
|
54
|
+
else if (typeof providerOrAuth === 'string') {
|
|
55
|
+
// Auth token provided
|
|
56
|
+
this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// OauthParams provided
|
|
60
|
+
this._provider = new api_provider_1.ApiProvider(providerOrAuth);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
get moduleName() { return this._moduleName; }
|
|
64
|
+
get entityName() { return this._entityName; }
|
|
65
|
+
// ============================================
|
|
66
|
+
// RECORD CREATION
|
|
67
|
+
// ============================================
|
|
68
|
+
/**
|
|
69
|
+
* Create a new empty TwilioUserUpdate record instance for create operations.
|
|
70
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
71
|
+
*
|
|
72
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
73
|
+
* @returns A new record wrapper with pre-generated ID
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* // Auto-generated ID
|
|
78
|
+
* const note = odinClient.notes.new();
|
|
79
|
+
* console.log(note.id); // UUID available immediately
|
|
80
|
+
*
|
|
81
|
+
* // Custom ID
|
|
82
|
+
* const order = odinClient.orders.new("custom-id-123");
|
|
83
|
+
*
|
|
84
|
+
* // Reference ID before save
|
|
85
|
+
* const account = odinClient.accounts.new();
|
|
86
|
+
* const contact = odinClient.contacts.new();
|
|
87
|
+
* await contact
|
|
88
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
89
|
+
* .createContact({ FirstName: "John" });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
new(id) {
|
|
93
|
+
return new TwilioUserUpdateRecord_1.TwilioUserUpdateRecord(null, this._provider, id);
|
|
94
|
+
}
|
|
95
|
+
// ============================================
|
|
96
|
+
// RECORD RETRIEVAL
|
|
97
|
+
// ============================================
|
|
98
|
+
/**
|
|
99
|
+
* Get a single TwilioUserUpdate record by ID
|
|
100
|
+
*/
|
|
101
|
+
get(id) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
|
|
104
|
+
return new TwilioUserUpdateRecord_1.TwilioUserUpdateRecord(record, this._provider);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get multiple TwilioUserUpdate records by IDs
|
|
109
|
+
*/
|
|
110
|
+
getMany(ids) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
if (ids.length === 0)
|
|
113
|
+
return [];
|
|
114
|
+
const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
|
|
115
|
+
return records.map((r) => new TwilioUserUpdateRecord_1.TwilioUserUpdateRecord(r, this._provider));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// ============================================
|
|
119
|
+
// SEARCH OPERATIONS
|
|
120
|
+
// ============================================
|
|
121
|
+
/**
|
|
122
|
+
* Search TwilioUserUpdate records
|
|
123
|
+
*/
|
|
124
|
+
search(params) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
|
|
127
|
+
return {
|
|
128
|
+
records: result.records.map((r) => new TwilioUserUpdateRecord_1.TwilioUserUpdateRecord(r, this._provider)),
|
|
129
|
+
totalRecords: result.totalRecords,
|
|
130
|
+
hasMore: result.hasMore,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Search all TwilioUserUpdate records with automatic pagination
|
|
136
|
+
*/
|
|
137
|
+
searchAll(params) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
|
|
140
|
+
return result.records.map((r) => new TwilioUserUpdateRecord_1.TwilioUserUpdateRecord(r, this._provider));
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Async generator for paginating through all matching records.
|
|
145
|
+
* Yields batches of wrapped records.
|
|
146
|
+
*/
|
|
147
|
+
paginate(params) {
|
|
148
|
+
var _a;
|
|
149
|
+
return __asyncGenerator(this, arguments, function* paginate_1() {
|
|
150
|
+
let hasMore = true;
|
|
151
|
+
let searchAfter;
|
|
152
|
+
const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
|
|
153
|
+
while (hasMore) {
|
|
154
|
+
const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
|
|
155
|
+
if (result.records.length > 0) {
|
|
156
|
+
yield yield __await(result.records.map((r) => new TwilioUserUpdateRecord_1.TwilioUserUpdateRecord(r, this._provider)));
|
|
157
|
+
const lastRecord = result.records[result.records.length - 1];
|
|
158
|
+
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
159
|
+
}
|
|
160
|
+
hasMore = result.hasMore && result.records.length >= query.pageSize;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
// ============================================
|
|
165
|
+
// QUERY BUILDER
|
|
166
|
+
// ============================================
|
|
167
|
+
/**
|
|
168
|
+
* Create a fluent query builder for TwilioUserUpdate records
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* const results = await accessor
|
|
173
|
+
* .query()
|
|
174
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
175
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
176
|
+
* .select('id', 'title', 'properties.*')
|
|
177
|
+
* .sortBy('createdAt', 'desc')
|
|
178
|
+
* .limit(100)
|
|
179
|
+
* .execute();
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
query() {
|
|
183
|
+
return (0, query_builder_1.createQueryBuilder)(this);
|
|
184
|
+
}
|
|
185
|
+
/** Access the underlying ApiProvider */
|
|
186
|
+
get provider() {
|
|
187
|
+
return this._provider;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.TwilioUserUpdateAccessor = TwilioUserUpdateAccessor;
|
|
@@ -108,6 +108,7 @@ export { TeamAccessor, TeamSearchResponse, TeamListResponse } from './TeamAccess
|
|
|
108
108
|
export { TimeSlotAccessor, TimeSlotSearchResponse, TimeSlotListResponse } from './TimeSlotAccessor';
|
|
109
109
|
export { TransactionAccessor, TransactionSearchResponse, TransactionListResponse } from './TransactionAccessor';
|
|
110
110
|
export { TwilioTaskQueueAccessor, TwilioTaskQueueSearchResponse, TwilioTaskQueueListResponse } from './TwilioTaskQueueAccessor';
|
|
111
|
+
export { TwilioUserUpdateAccessor, TwilioUserUpdateSearchResponse, TwilioUserUpdateListResponse } from './TwilioUserUpdateAccessor';
|
|
111
112
|
export { UgAuditOfInstallationAccessor, UgAuditOfInstallationSearchResponse, UgAuditOfInstallationListResponse } from './UgAuditOfInstallationAccessor';
|
|
112
113
|
export { UgExternalAuditAccessor, UgExternalAuditSearchResponse, UgExternalAuditListResponse } from './UgExternalAuditAccessor';
|
|
113
114
|
export { UgInProgressAuditAccessor, UgInProgressAuditSearchResponse, UgInProgressAuditListResponse } from './UgInProgressAuditAccessor';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.OfferAccessor = exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.MessageAccessor = exports.LeadAccessor = exports.KnowledgeArticleAccessor = exports.InvoiceAccessor = exports.InvoiceItemAccessor = exports.InternalInstallAuditAccessor = exports.ImpersonationTrackerAccessor = exports.FileAccessor = exports.FieldServiceProductAccessor = exports.FieldServiceDispatchedProductAccessor = exports.ExchangeAccessor = exports.EmailTemplateAccessor = exports.EmailSenderAccessor = exports.EmailAccessor = exports.DiscountAccessor = exports.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = exports.CustomerDeviceOntAccessor = exports.CustomerDeviceConfigurationAccessor = exports.CustomerDeviceAtaAccessor = exports.CrmDatasetAccessor = exports.CreditNoteAccessor = exports.ConversationAccessor = exports.ContractBuyOutAccessor = exports.ContactAccessor = exports.ContactIdentityAccessor = exports.ConfigAccessor = exports.ChurnRequestAccessor = exports.ChangeReasonAccessor = exports.CaseAccessor = exports.CampaignAccessor = exports.CallTransferAccessor = exports.CallAccessor = exports.CallLegAccessor = exports.CallEventAccessor = exports.BrskEntityMigrationErrorAccessor = exports.BngProvisionAccessor = exports.BlockageA55Accessor = exports.BillingRequestAccessor = exports.BillingAdjustmentAccessor = exports.AppointmentAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
|
|
12
12
|
exports.TimeSlotAccessor = exports.TeamAccessor = exports.SweeperMaintenanceAuditAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceVisitAuditAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgPaymentMethodAccessor = exports.PgLogAccessor = exports.PgFileAllocationAccessor = exports.PgDisputeAccessor = exports.PgDirectDebitFileAccessor = exports.PgContactAccessor = exports.PgAccountValidationAccessor = exports.PermissionToFailAccessor = exports.PaymentAccessor = exports.PaymentMethodRefundAccessor = exports.PaymentMethodAccessor = exports.PICRequestAccessor = exports.OverlayRealA55Accessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = exports.OhRetroAuditAccessor = exports.OhInstallationAuditAccessor = exports.OhInProgressAuditAccessor = exports.OhExternalAuditAccessor = exports.OhAuditOfInstallationAccessor = void 0;
|
|
13
|
-
exports.YfFieldServiceVisitAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgRetroAuditAccessor = exports.UgInstallationAuditAccessor = exports.UgInProgressAuditAccessor = exports.UgExternalAuditAccessor = exports.UgAuditOfInstallationAccessor = exports.TwilioTaskQueueAccessor = exports.TransactionAccessor = void 0;
|
|
13
|
+
exports.YfFieldServiceVisitAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgRetroAuditAccessor = exports.UgInstallationAuditAccessor = exports.UgInProgressAuditAccessor = exports.UgExternalAuditAccessor = exports.UgAuditOfInstallationAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TransactionAccessor = void 0;
|
|
14
14
|
var AccountCreditAccessor_1 = require("./AccountCreditAccessor");
|
|
15
15
|
Object.defineProperty(exports, "AccountCreditAccessor", { enumerable: true, get: function () { return AccountCreditAccessor_1.AccountCreditAccessor; } });
|
|
16
16
|
var AccountAccessor_1 = require("./AccountAccessor");
|
|
@@ -215,6 +215,8 @@ var TransactionAccessor_1 = require("./TransactionAccessor");
|
|
|
215
215
|
Object.defineProperty(exports, "TransactionAccessor", { enumerable: true, get: function () { return TransactionAccessor_1.TransactionAccessor; } });
|
|
216
216
|
var TwilioTaskQueueAccessor_1 = require("./TwilioTaskQueueAccessor");
|
|
217
217
|
Object.defineProperty(exports, "TwilioTaskQueueAccessor", { enumerable: true, get: function () { return TwilioTaskQueueAccessor_1.TwilioTaskQueueAccessor; } });
|
|
218
|
+
var TwilioUserUpdateAccessor_1 = require("./TwilioUserUpdateAccessor");
|
|
219
|
+
Object.defineProperty(exports, "TwilioUserUpdateAccessor", { enumerable: true, get: function () { return TwilioUserUpdateAccessor_1.TwilioUserUpdateAccessor; } });
|
|
218
220
|
var UgAuditOfInstallationAccessor_1 = require("./UgAuditOfInstallationAccessor");
|
|
219
221
|
Object.defineProperty(exports, "UgAuditOfInstallationAccessor", { enumerable: true, get: function () { return UgAuditOfInstallationAccessor_1.UgAuditOfInstallationAccessor; } });
|
|
220
222
|
var UgExternalAuditAccessor_1 = require("./UgExternalAuditAccessor");
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateAgentCallLeg Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Create call leg for agent
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey CreateAgentCallLeg
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg
|
|
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 CreateAgentCallLeg created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateAgentCallLegMessage extends OdinRecordCreatedEvent<CreateAgentCallLegDto, CreateAgentCallLegProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateAgentCallLeg action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 9
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateAgentCallLegProperties {
|
|
28
|
+
/**
|
|
29
|
+
* CallSid
|
|
30
|
+
*
|
|
31
|
+
* Twilio CallSid for THIS specific leg (Communications - CallLeg)
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
CallSid: string;
|
|
36
|
+
/**
|
|
37
|
+
* ParentCallId
|
|
38
|
+
*
|
|
39
|
+
* ParentCallId (Communications - CallLeg)
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
ParentCallId: string;
|
|
44
|
+
/**
|
|
45
|
+
* ParticipantType
|
|
46
|
+
*
|
|
47
|
+
* ParticipantType (Communications - CallLeg)
|
|
48
|
+
* @type {ENUM}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
ParticipantType: string;
|
|
52
|
+
/**
|
|
53
|
+
* Role
|
|
54
|
+
*
|
|
55
|
+
* Role
|
|
56
|
+
* @type {TEXT}
|
|
57
|
+
* @required
|
|
58
|
+
*/
|
|
59
|
+
Role: string;
|
|
60
|
+
/**
|
|
61
|
+
* PhoneNumber
|
|
62
|
+
*
|
|
63
|
+
* Phone number or client identifier for this leg (Communications - CallLeg)
|
|
64
|
+
* @type {TEXT}
|
|
65
|
+
* @required
|
|
66
|
+
*/
|
|
67
|
+
PhoneNumber: string;
|
|
68
|
+
/**
|
|
69
|
+
* Direction
|
|
70
|
+
*
|
|
71
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
72
|
+
* @type {ENUM}
|
|
73
|
+
* @required
|
|
74
|
+
*/
|
|
75
|
+
Direction: string;
|
|
76
|
+
/**
|
|
77
|
+
* Status
|
|
78
|
+
*
|
|
79
|
+
* Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
|
|
80
|
+
* @type {ENUM}
|
|
81
|
+
* @required
|
|
82
|
+
*/
|
|
83
|
+
Status: string;
|
|
84
|
+
/**
|
|
85
|
+
* InitiatedAt
|
|
86
|
+
*
|
|
87
|
+
* InitiatedAt (Communications - CallLeg)
|
|
88
|
+
* @type {DATE_TIME}
|
|
89
|
+
* @required
|
|
90
|
+
*/
|
|
91
|
+
InitiatedAt: string;
|
|
92
|
+
/**
|
|
93
|
+
* AgentEmail
|
|
94
|
+
*
|
|
95
|
+
* Email of agent (for quick lookup) (Communications - CallLeg)
|
|
96
|
+
* @type {TEXT}
|
|
97
|
+
* @required
|
|
98
|
+
*/
|
|
99
|
+
AgentEmail: string;
|
|
100
|
+
/**
|
|
101
|
+
* ReservationSid
|
|
102
|
+
*
|
|
103
|
+
* ReservationSid (Communications - CallLeg)
|
|
104
|
+
* @type {TEXT}
|
|
105
|
+
*/
|
|
106
|
+
ReservationSid?: string | null;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* CreateAgentCallLeg
|
|
110
|
+
*
|
|
111
|
+
* Create call leg for agent
|
|
112
|
+
*
|
|
113
|
+
* @actionType CREATE - Creates a new CallLeg record
|
|
114
|
+
* @module NotificationModule
|
|
115
|
+
* @entity CallLeg
|
|
116
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg
|
|
117
|
+
* @permission schema.action.createagentcallleg.trigger
|
|
118
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
119
|
+
*/
|
|
120
|
+
export declare class CreateAgentCallLegDto extends OdinRecordCreateDto<CreateAgentCallLegProperties> {
|
|
121
|
+
/** Used by SDK generators to identify action type */
|
|
122
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
123
|
+
static readonly ACTION_KEY = "CreateAgentCallLeg";
|
|
124
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
125
|
+
static readonly ENTITIES: string[];
|
|
126
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg";
|
|
127
|
+
static readonly PERMISSION = "schema.action.createagentcallleg.trigger";
|
|
128
|
+
/** Step metadata - entity this action targets */
|
|
129
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
130
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
131
|
+
static readonly STEP_SCHEMA_ACTION_ID = "4a3b8abd-733d-4142-b636-48c811d05280";
|
|
132
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
133
|
+
readonly actionName: string;
|
|
134
|
+
readonly schemaActionId: string;
|
|
135
|
+
readonly entity: string;
|
|
136
|
+
constructor(properties: CreateAgentCallLegProperties, options?: {
|
|
137
|
+
journeyId?: string;
|
|
138
|
+
});
|
|
139
|
+
}
|