@d19n/youfibre-odin-sdk 2.0.211 → 2.0.213
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 +13 -1
- package/dist/actions-v2/CancelActiveOrderDto.d.ts +1 -1
- package/dist/actions-v2/CancelOrderForRecontractDto.d.ts +67 -0
- package/dist/actions-v2/CancelOrderForRecontractDto.js +59 -0
- package/dist/actions-v2/CancelOrderForRollbackDto.d.ts +67 -0
- package/dist/actions-v2/CancelOrderForRollbackDto.js +59 -0
- package/dist/actions-v2/CboUpdateDto.d.ts +1 -1
- package/dist/actions-v2/CreateChurnRequestDto.d.ts +1 -1
- package/dist/actions-v2/DefaultUpdateChurnRequestDto.d.ts +15 -1
- package/dist/actions-v2/ImportTwilioActivityDto.d.ts +84 -0
- package/dist/actions-v2/ImportTwilioActivityDto.js +54 -0
- package/dist/actions-v2/ImportTwilioTaskQueueDto.d.ts +58 -0
- package/dist/actions-v2/ImportTwilioTaskQueueDto.js +54 -0
- package/dist/actions-v2/ImportTwilioWorkerDto.d.ts +195 -0
- package/dist/actions-v2/ImportTwilioWorkerDto.js +174 -0
- package/dist/actions-v2/MoveOrderFromDeactivatedToCancelledDto.d.ts +1 -1
- package/dist/actions-v2/MoveOrderFromPendingCancellationToCancelledDto.d.ts +1 -1
- package/dist/actions-v2/MoveOrderFromSupplyToSoldDto.d.ts +67 -0
- package/dist/actions-v2/MoveOrderFromSupplyToSoldDto.js +59 -0
- package/dist/actions-v2/UpdateOrderDto.d.ts +39 -1
- package/dist/entities-v2/Order.d.ts +10 -13
- package/dist/entities-v2/Order.js +3 -5
- package/dist/records-v2/OrderRecord.d.ts +75 -0
- package/dist/records-v2/OrderRecord.js +87 -0
- package/dist/records-v2/TwilioActivityRecord.d.ts +29 -0
- package/dist/records-v2/TwilioActivityRecord.js +36 -0
- package/dist/records-v2/TwilioTaskQueueRecord.d.ts +29 -0
- package/dist/records-v2/TwilioTaskQueueRecord.js +36 -0
- package/dist/records-v2/TwilioWorkerRecord.d.ts +27 -0
- package/dist/records-v2/TwilioWorkerRecord.js +25 -0
- package/package.json +1 -1
|
@@ -1430,6 +1430,56 @@ export declare class OrderRecord<TProps = OrderProperties> {
|
|
|
1430
1430
|
cancelActiveOrder(options?: {
|
|
1431
1431
|
journeyId?: string;
|
|
1432
1432
|
}): CancelActiveOrderFlowBuilder;
|
|
1433
|
+
/**
|
|
1434
|
+
* CancelOrderForRecontract
|
|
1435
|
+
*
|
|
1436
|
+
* Transitions this Order record to a new pipeline stage.
|
|
1437
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
1438
|
+
*
|
|
1439
|
+
* @remarks Transitions to stage: OrderStageCancelled
|
|
1440
|
+
*
|
|
1441
|
+
* @param options - Optional settings
|
|
1442
|
+
* @param options.journeyId - Associate with a journey
|
|
1443
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
1444
|
+
* @throws Error if called on a new (unsaved) record
|
|
1445
|
+
*
|
|
1446
|
+
* @example
|
|
1447
|
+
* ```typescript
|
|
1448
|
+
* const record = await odinClient.orders.get(id);
|
|
1449
|
+
* await record.cancelOrderForRecontract().execute();
|
|
1450
|
+
*
|
|
1451
|
+
* // Dry run (for debugging)
|
|
1452
|
+
* const payload = record.cancelOrderForRecontract().dryRun();
|
|
1453
|
+
* ```
|
|
1454
|
+
*/
|
|
1455
|
+
cancelOrderForRecontract(options?: {
|
|
1456
|
+
journeyId?: string;
|
|
1457
|
+
}): ActionBuilder;
|
|
1458
|
+
/**
|
|
1459
|
+
* CancelOrderForRollback
|
|
1460
|
+
*
|
|
1461
|
+
* Transitions this Order record to a new pipeline stage.
|
|
1462
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
1463
|
+
*
|
|
1464
|
+
* @remarks Transitions to stage: OrderStageCancelled
|
|
1465
|
+
*
|
|
1466
|
+
* @param options - Optional settings
|
|
1467
|
+
* @param options.journeyId - Associate with a journey
|
|
1468
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
1469
|
+
* @throws Error if called on a new (unsaved) record
|
|
1470
|
+
*
|
|
1471
|
+
* @example
|
|
1472
|
+
* ```typescript
|
|
1473
|
+
* const record = await odinClient.orders.get(id);
|
|
1474
|
+
* await record.cancelOrderForRollback().execute();
|
|
1475
|
+
*
|
|
1476
|
+
* // Dry run (for debugging)
|
|
1477
|
+
* const payload = record.cancelOrderForRollback().dryRun();
|
|
1478
|
+
* ```
|
|
1479
|
+
*/
|
|
1480
|
+
cancelOrderForRollback(options?: {
|
|
1481
|
+
journeyId?: string;
|
|
1482
|
+
}): ActionBuilder;
|
|
1433
1483
|
/**
|
|
1434
1484
|
* CancelOrderPreInstall
|
|
1435
1485
|
*
|
|
@@ -1949,6 +1999,31 @@ export declare class OrderRecord<TProps = OrderProperties> {
|
|
|
1949
1999
|
moveOrderFromPreOrderToCancelled(options?: {
|
|
1950
2000
|
journeyId?: string;
|
|
1951
2001
|
}): ActionBuilder;
|
|
2002
|
+
/**
|
|
2003
|
+
* MoveOrderFromSupplyToSold
|
|
2004
|
+
*
|
|
2005
|
+
* Transitions this Order record to a new pipeline stage.
|
|
2006
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
2007
|
+
*
|
|
2008
|
+
* @remarks Transitions to stage: OrderStageSold
|
|
2009
|
+
*
|
|
2010
|
+
* @param options - Optional settings
|
|
2011
|
+
* @param options.journeyId - Associate with a journey
|
|
2012
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
2013
|
+
* @throws Error if called on a new (unsaved) record
|
|
2014
|
+
*
|
|
2015
|
+
* @example
|
|
2016
|
+
* ```typescript
|
|
2017
|
+
* const record = await odinClient.orders.get(id);
|
|
2018
|
+
* await record.moveOrderFromSupplyToSold().execute();
|
|
2019
|
+
*
|
|
2020
|
+
* // Dry run (for debugging)
|
|
2021
|
+
* const payload = record.moveOrderFromSupplyToSold().dryRun();
|
|
2022
|
+
* ```
|
|
2023
|
+
*/
|
|
2024
|
+
moveOrderFromSupplyToSold(options?: {
|
|
2025
|
+
journeyId?: string;
|
|
2026
|
+
}): ActionBuilder;
|
|
1952
2027
|
/**
|
|
1953
2028
|
* MoveOrderToActive
|
|
1954
2029
|
*
|
|
@@ -2224,6 +2224,64 @@ class OrderRecord {
|
|
|
2224
2224
|
throw new Error('cancelActiveOrder requires an existing record. Use accessor.get() first.');
|
|
2225
2225
|
return new CancelActiveOrderFlowBuilder(this, this._provider, this._pendingLinks, options);
|
|
2226
2226
|
}
|
|
2227
|
+
/**
|
|
2228
|
+
* CancelOrderForRecontract
|
|
2229
|
+
*
|
|
2230
|
+
* Transitions this Order record to a new pipeline stage.
|
|
2231
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
2232
|
+
*
|
|
2233
|
+
* @remarks Transitions to stage: OrderStageCancelled
|
|
2234
|
+
*
|
|
2235
|
+
* @param options - Optional settings
|
|
2236
|
+
* @param options.journeyId - Associate with a journey
|
|
2237
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
2238
|
+
* @throws Error if called on a new (unsaved) record
|
|
2239
|
+
*
|
|
2240
|
+
* @example
|
|
2241
|
+
* ```typescript
|
|
2242
|
+
* const record = await odinClient.orders.get(id);
|
|
2243
|
+
* await record.cancelOrderForRecontract().execute();
|
|
2244
|
+
*
|
|
2245
|
+
* // Dry run (for debugging)
|
|
2246
|
+
* const payload = record.cancelOrderForRecontract().dryRun();
|
|
2247
|
+
* ```
|
|
2248
|
+
*/
|
|
2249
|
+
cancelOrderForRecontract(options) {
|
|
2250
|
+
var _a;
|
|
2251
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
2252
|
+
throw new Error('cancelOrderForRecontract requires an existing record. Use accessor.get() first.');
|
|
2253
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CancelOrderForRecontract', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OrderStageCancelled' }, options);
|
|
2254
|
+
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* CancelOrderForRollback
|
|
2258
|
+
*
|
|
2259
|
+
* Transitions this Order record to a new pipeline stage.
|
|
2260
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
2261
|
+
*
|
|
2262
|
+
* @remarks Transitions to stage: OrderStageCancelled
|
|
2263
|
+
*
|
|
2264
|
+
* @param options - Optional settings
|
|
2265
|
+
* @param options.journeyId - Associate with a journey
|
|
2266
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
2267
|
+
* @throws Error if called on a new (unsaved) record
|
|
2268
|
+
*
|
|
2269
|
+
* @example
|
|
2270
|
+
* ```typescript
|
|
2271
|
+
* const record = await odinClient.orders.get(id);
|
|
2272
|
+
* await record.cancelOrderForRollback().execute();
|
|
2273
|
+
*
|
|
2274
|
+
* // Dry run (for debugging)
|
|
2275
|
+
* const payload = record.cancelOrderForRollback().dryRun();
|
|
2276
|
+
* ```
|
|
2277
|
+
*/
|
|
2278
|
+
cancelOrderForRollback(options) {
|
|
2279
|
+
var _a;
|
|
2280
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
2281
|
+
throw new Error('cancelOrderForRollback requires an existing record. Use accessor.get() first.');
|
|
2282
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CancelOrderForRollback', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OrderStageCancelled' }, options);
|
|
2283
|
+
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
2284
|
+
}
|
|
2227
2285
|
/**
|
|
2228
2286
|
* CancelOrderPreInstall
|
|
2229
2287
|
*
|
|
@@ -2812,6 +2870,35 @@ class OrderRecord {
|
|
|
2812
2870
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveOrderFromPreOrderToCancelled', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OrderStageCancelled' }, options);
|
|
2813
2871
|
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
2814
2872
|
}
|
|
2873
|
+
/**
|
|
2874
|
+
* MoveOrderFromSupplyToSold
|
|
2875
|
+
*
|
|
2876
|
+
* Transitions this Order record to a new pipeline stage.
|
|
2877
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
2878
|
+
*
|
|
2879
|
+
* @remarks Transitions to stage: OrderStageSold
|
|
2880
|
+
*
|
|
2881
|
+
* @param options - Optional settings
|
|
2882
|
+
* @param options.journeyId - Associate with a journey
|
|
2883
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
2884
|
+
* @throws Error if called on a new (unsaved) record
|
|
2885
|
+
*
|
|
2886
|
+
* @example
|
|
2887
|
+
* ```typescript
|
|
2888
|
+
* const record = await odinClient.orders.get(id);
|
|
2889
|
+
* await record.moveOrderFromSupplyToSold().execute();
|
|
2890
|
+
*
|
|
2891
|
+
* // Dry run (for debugging)
|
|
2892
|
+
* const payload = record.moveOrderFromSupplyToSold().dryRun();
|
|
2893
|
+
* ```
|
|
2894
|
+
*/
|
|
2895
|
+
moveOrderFromSupplyToSold(options) {
|
|
2896
|
+
var _a;
|
|
2897
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
2898
|
+
throw new Error('moveOrderFromSupplyToSold requires an existing record. Use accessor.get() first.');
|
|
2899
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveOrderFromSupplyToSold', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OrderStageSold' }, options);
|
|
2900
|
+
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
2901
|
+
}
|
|
2815
2902
|
/**
|
|
2816
2903
|
* MoveOrderToActive
|
|
2817
2904
|
*
|
|
@@ -24,6 +24,7 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { TwilioActivityProperties } from '../entities-v2/TwilioActivity';
|
|
26
26
|
import { CreateTwilioActivityProperties } from '../actions-v2/CreateTwilioActivityDto';
|
|
27
|
+
import { ImportTwilioActivityProperties } from '../actions-v2/ImportTwilioActivityDto';
|
|
27
28
|
import { SyncTwilioActivityProperties } from '../actions-v2/SyncTwilioActivityDto';
|
|
28
29
|
import { UpdateTwilioActivityProperties } from '../actions-v2/UpdateTwilioActivityDto';
|
|
29
30
|
import { TwilioTaskQueueRecord } from './TwilioTaskQueueRecord';
|
|
@@ -201,6 +202,34 @@ export declare class TwilioActivityRecord<TProps = TwilioActivityProperties> {
|
|
|
201
202
|
journeyId?: string;
|
|
202
203
|
stageKey?: string;
|
|
203
204
|
}): ActionBuilder;
|
|
205
|
+
/**
|
|
206
|
+
* ImportTwilioActivity
|
|
207
|
+
*
|
|
208
|
+
* Creates a new TwilioActivity record with the specified properties.
|
|
209
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
210
|
+
*
|
|
211
|
+
* @param properties - The properties for the new record
|
|
212
|
+
* @param options - Optional settings
|
|
213
|
+
* @param options.type - Override the record type
|
|
214
|
+
* @param options.journeyId - Associate with a journey
|
|
215
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
216
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```typescript
|
|
220
|
+
* // Create with properties
|
|
221
|
+
* const record = odinClient.twilioActivitys.new();
|
|
222
|
+
* await record.importTwilioActivity({ ... }).execute();
|
|
223
|
+
*
|
|
224
|
+
* // Dry run (for debugging)
|
|
225
|
+
* const payload = record.importTwilioActivity({ ... }).dryRun();
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
importTwilioActivity(properties: ImportTwilioActivityProperties, options?: {
|
|
229
|
+
type?: string;
|
|
230
|
+
journeyId?: string;
|
|
231
|
+
stageKey?: string;
|
|
232
|
+
}): ActionBuilder;
|
|
204
233
|
/**
|
|
205
234
|
* SyncTwilioActivity
|
|
206
235
|
*
|
|
@@ -266,6 +266,42 @@ class TwilioActivityRecord {
|
|
|
266
266
|
};
|
|
267
267
|
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioActivity', payload, () => { this._pendingLinks = []; });
|
|
268
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* ImportTwilioActivity
|
|
271
|
+
*
|
|
272
|
+
* Creates a new TwilioActivity record with the specified properties.
|
|
273
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
274
|
+
*
|
|
275
|
+
* @param properties - The properties for the new record
|
|
276
|
+
* @param options - Optional settings
|
|
277
|
+
* @param options.type - Override the record type
|
|
278
|
+
* @param options.journeyId - Associate with a journey
|
|
279
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
280
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* ```typescript
|
|
284
|
+
* // Create with properties
|
|
285
|
+
* const record = odinClient.twilioActivitys.new();
|
|
286
|
+
* await record.importTwilioActivity({ ... }).execute();
|
|
287
|
+
*
|
|
288
|
+
* // Dry run (for debugging)
|
|
289
|
+
* const payload = record.importTwilioActivity({ ... }).dryRun();
|
|
290
|
+
* ```
|
|
291
|
+
*/
|
|
292
|
+
importTwilioActivity(properties, options) {
|
|
293
|
+
var _a, _b;
|
|
294
|
+
const payload = {
|
|
295
|
+
entity: 'SupportModule:TwilioActivity',
|
|
296
|
+
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,
|
|
297
|
+
actionName: 'ImportTwilioActivity',
|
|
298
|
+
properties: properties || {},
|
|
299
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
300
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
301
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
302
|
+
};
|
|
303
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioActivity', payload, () => { this._pendingLinks = []; });
|
|
304
|
+
}
|
|
269
305
|
// ============================================
|
|
270
306
|
// UPDATE ACTIONS (require existing record)
|
|
271
307
|
// ============================================
|
|
@@ -24,6 +24,7 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { TwilioTaskQueueProperties } from '../entities-v2/TwilioTaskQueue';
|
|
26
26
|
import { CreateTwilioTaskQueueProperties } from '../actions-v2/CreateTwilioTaskQueueDto';
|
|
27
|
+
import { ImportTwilioTaskQueueProperties } from '../actions-v2/ImportTwilioTaskQueueDto';
|
|
27
28
|
import { SyncTwilioTaskQueueProperties } from '../actions-v2/SyncTwilioTaskQueueDto';
|
|
28
29
|
import { UpdateTwilioTaskQueueProperties } from '../actions-v2/UpdateTwilioTaskQueueDto';
|
|
29
30
|
import { TwilioWorkerRecord } from './TwilioWorkerRecord';
|
|
@@ -221,6 +222,34 @@ export declare class TwilioTaskQueueRecord<TProps = TwilioTaskQueueProperties> {
|
|
|
221
222
|
journeyId?: string;
|
|
222
223
|
stageKey?: string;
|
|
223
224
|
}): ActionBuilder;
|
|
225
|
+
/**
|
|
226
|
+
* ImportTwilioTaskQueue
|
|
227
|
+
*
|
|
228
|
+
* Creates a new TwilioTaskQueue record with the specified properties.
|
|
229
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
230
|
+
*
|
|
231
|
+
* @param properties - The properties for the new record
|
|
232
|
+
* @param options - Optional settings
|
|
233
|
+
* @param options.type - Override the record type
|
|
234
|
+
* @param options.journeyId - Associate with a journey
|
|
235
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
236
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```typescript
|
|
240
|
+
* // Create with properties
|
|
241
|
+
* const record = odinClient.twilioTaskQueues.new();
|
|
242
|
+
* await record.importTwilioTaskQueue({ ... }).execute();
|
|
243
|
+
*
|
|
244
|
+
* // Dry run (for debugging)
|
|
245
|
+
* const payload = record.importTwilioTaskQueue({ ... }).dryRun();
|
|
246
|
+
* ```
|
|
247
|
+
*/
|
|
248
|
+
importTwilioTaskQueue(properties?: ImportTwilioTaskQueueProperties, options?: {
|
|
249
|
+
type?: string;
|
|
250
|
+
journeyId?: string;
|
|
251
|
+
stageKey?: string;
|
|
252
|
+
}): ActionBuilder;
|
|
224
253
|
/**
|
|
225
254
|
* SyncTwilioTaskQueue
|
|
226
255
|
*
|
|
@@ -297,6 +297,42 @@ class TwilioTaskQueueRecord {
|
|
|
297
297
|
};
|
|
298
298
|
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioTaskQueue', payload, () => { this._pendingLinks = []; });
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* ImportTwilioTaskQueue
|
|
302
|
+
*
|
|
303
|
+
* Creates a new TwilioTaskQueue record with the specified properties.
|
|
304
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
305
|
+
*
|
|
306
|
+
* @param properties - The properties for the new record
|
|
307
|
+
* @param options - Optional settings
|
|
308
|
+
* @param options.type - Override the record type
|
|
309
|
+
* @param options.journeyId - Associate with a journey
|
|
310
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
311
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```typescript
|
|
315
|
+
* // Create with properties
|
|
316
|
+
* const record = odinClient.twilioTaskQueues.new();
|
|
317
|
+
* await record.importTwilioTaskQueue({ ... }).execute();
|
|
318
|
+
*
|
|
319
|
+
* // Dry run (for debugging)
|
|
320
|
+
* const payload = record.importTwilioTaskQueue({ ... }).dryRun();
|
|
321
|
+
* ```
|
|
322
|
+
*/
|
|
323
|
+
importTwilioTaskQueue(properties, options) {
|
|
324
|
+
var _a, _b;
|
|
325
|
+
const payload = {
|
|
326
|
+
entity: 'SupportModule:TwilioTaskQueue',
|
|
327
|
+
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,
|
|
328
|
+
actionName: 'ImportTwilioTaskQueue',
|
|
329
|
+
properties: properties || {},
|
|
330
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
331
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
332
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
333
|
+
};
|
|
334
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'TwilioTaskQueue', payload, () => { this._pendingLinks = []; });
|
|
335
|
+
}
|
|
300
336
|
// ============================================
|
|
301
337
|
// UPDATE ACTIONS (require existing record)
|
|
302
338
|
// ============================================
|
|
@@ -25,6 +25,8 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
|
|
|
25
25
|
import { TwilioWorkerProperties } from '../entities-v2/TwilioWorker';
|
|
26
26
|
import { CreateTwilioWorkerProperties } from '../actions-v2/CreateTwilioWorkerDto';
|
|
27
27
|
import { CreateTwilioWorkerBuilder } from '../actions-v2/CreateTwilioWorkerDto';
|
|
28
|
+
import { ImportTwilioWorkerProperties } from '../actions-v2/ImportTwilioWorkerDto';
|
|
29
|
+
import { ImportTwilioWorkerBuilder } from '../actions-v2/ImportTwilioWorkerDto';
|
|
28
30
|
import { SyncTwilioWorkerProperties } from '../actions-v2/SyncTwilioWorkerDto';
|
|
29
31
|
import { UpdateTwilioWorkerProperties } from '../actions-v2/UpdateTwilioWorkerDto';
|
|
30
32
|
import { UpdateTwilioWorkerBuilder } from '../actions-v2/UpdateTwilioWorkerDto';
|
|
@@ -220,6 +222,31 @@ export declare class TwilioWorkerRecord<TProps = TwilioWorkerProperties> {
|
|
|
220
222
|
journeyId?: string;
|
|
221
223
|
stageKey?: string;
|
|
222
224
|
}): CreateTwilioWorkerBuilder;
|
|
225
|
+
/**
|
|
226
|
+
* ImportTwilioWorker
|
|
227
|
+
*
|
|
228
|
+
* Creates a new TwilioWorker record with the specified properties.
|
|
229
|
+
* Returns a builder with fluent .link*() methods for associations.
|
|
230
|
+
* Call .execute() to create or .dryRun() for debugging.
|
|
231
|
+
*
|
|
232
|
+
* @param properties - The properties for the new record
|
|
233
|
+
* @param options - Optional settings
|
|
234
|
+
* @param options.journeyId - Associate with a journey
|
|
235
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
236
|
+
* @returns ImportTwilioWorkerBuilder - chain .link*() then .execute()
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```typescript
|
|
240
|
+
* const record = odinClient.twilioWorkers.new();
|
|
241
|
+
* await record.importTwilioWorker({ ... })
|
|
242
|
+
* .linkAssociation_xxx(target)
|
|
243
|
+
* .execute();
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
importTwilioWorker(properties: ImportTwilioWorkerProperties, options?: {
|
|
247
|
+
journeyId?: string;
|
|
248
|
+
stageKey?: string;
|
|
249
|
+
}): ImportTwilioWorkerBuilder;
|
|
223
250
|
/**
|
|
224
251
|
* SyncTwilioWorker
|
|
225
252
|
*
|
|
@@ -33,6 +33,7 @@ const uuid_1 = require("uuid");
|
|
|
33
33
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
34
|
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
35
|
const CreateTwilioWorkerDto_1 = require("../actions-v2/CreateTwilioWorkerDto");
|
|
36
|
+
const ImportTwilioWorkerDto_1 = require("../actions-v2/ImportTwilioWorkerDto");
|
|
36
37
|
const UpdateTwilioWorkerDto_1 = require("../actions-v2/UpdateTwilioWorkerDto");
|
|
37
38
|
const UserRecord_1 = require("./UserRecord");
|
|
38
39
|
const TwilioTaskQueueRecord_1 = require("./TwilioTaskQueueRecord");
|
|
@@ -287,6 +288,30 @@ class TwilioWorkerRecord {
|
|
|
287
288
|
createTwilioWorker(properties, options) {
|
|
288
289
|
return new CreateTwilioWorkerDto_1.CreateTwilioWorkerBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'SupportModule', 'TwilioWorker', () => { this._pendingLinks = []; });
|
|
289
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* ImportTwilioWorker
|
|
293
|
+
*
|
|
294
|
+
* Creates a new TwilioWorker record with the specified properties.
|
|
295
|
+
* Returns a builder with fluent .link*() methods for associations.
|
|
296
|
+
* Call .execute() to create or .dryRun() for debugging.
|
|
297
|
+
*
|
|
298
|
+
* @param properties - The properties for the new record
|
|
299
|
+
* @param options - Optional settings
|
|
300
|
+
* @param options.journeyId - Associate with a journey
|
|
301
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
302
|
+
* @returns ImportTwilioWorkerBuilder - chain .link*() then .execute()
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```typescript
|
|
306
|
+
* const record = odinClient.twilioWorkers.new();
|
|
307
|
+
* await record.importTwilioWorker({ ... })
|
|
308
|
+
* .linkAssociation_xxx(target)
|
|
309
|
+
* .execute();
|
|
310
|
+
* ```
|
|
311
|
+
*/
|
|
312
|
+
importTwilioWorker(properties, options) {
|
|
313
|
+
return new ImportTwilioWorkerDto_1.ImportTwilioWorkerBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'SupportModule', 'TwilioWorker', () => { this._pendingLinks = []; });
|
|
314
|
+
}
|
|
290
315
|
// ============================================
|
|
291
316
|
// UPDATE ACTIONS (require existing record)
|
|
292
317
|
// ============================================
|