@d19n/youfibre-odin-sdk 2.0.103-beta.17 → 2.0.103-beta.2

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.
Files changed (35) hide show
  1. package/README.md +1 -6
  2. package/dist/actions-v2/UpdateCallOnInboundCallCanceledDto.d.ts +6 -10
  3. package/dist/records-v2/CallLegRecord.d.ts +0 -135
  4. package/dist/records-v2/CallLegRecord.js +0 -145
  5. package/dist/records-v2/CallRecord.d.ts +7 -6
  6. package/dist/records-v2/CallRecord.js +15 -7
  7. package/package.json +3 -26
  8. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto.d.ts +0 -81
  9. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto.js +0 -56
  10. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto.d.ts +0 -81
  11. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto.js +0 -56
  12. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto.d.ts +0 -89
  13. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto.js +0 -56
  14. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto.d.ts +0 -81
  15. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto.js +0 -56
  16. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto.d.ts +0 -81
  17. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto.js +0 -56
  18. package/dist/wholesale-provider/index.d.ts +0 -35
  19. package/dist/wholesale-provider/index.js +0 -64
  20. package/dist/wholesale-provider/interface.d.ts +0 -176
  21. package/dist/wholesale-provider/interface.js +0 -2
  22. package/dist/wholesale-provider/kci-effect-bridge.d.ts +0 -124
  23. package/dist/wholesale-provider/kci-effect-bridge.js +0 -493
  24. package/dist/wholesale-provider/providers/netomnia-provider.d.ts +0 -112
  25. package/dist/wholesale-provider/providers/netomnia-provider.js +0 -124
  26. package/dist/wholesale-provider/test/kci-effect-bridge.spec.d.ts +0 -1
  27. package/dist/wholesale-provider/test/kci-effect-bridge.spec.js +0 -211
  28. package/dist/wholesale-provider/test/netomnia-provider.spec.d.ts +0 -1
  29. package/dist/wholesale-provider/test/netomnia-provider.spec.js +0 -428
  30. package/dist/wholesale-provider/types/fibrecafe.d.ts +0 -519
  31. package/dist/wholesale-provider/types/fibrecafe.js +0 -21
  32. package/dist/wholesale-provider/types/vmo2.d.ts +0 -390
  33. package/dist/wholesale-provider/types/vmo2.js +0 -2
  34. package/dist/wholesale-provider/types/wholesale.d.ts +0 -51
  35. package/dist/wholesale-provider/types/wholesale.js +0 -9
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 **630** actions.
355
+ This SDK includes **625** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -1113,12 +1113,7 @@ This SDK includes **630** actions.
1113
1113
  |--------|------|-------|
1114
1114
  | `CreateAgentCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg |
1115
1115
  | `CreateCustomerCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateCustomerCallLeg |
1116
- | `UpdateAgentCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered |
1117
- | `UpdateAgentCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled |
1118
- | `UpdateAgentCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted |
1119
- | `UpdateAgentCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinging |
1120
1116
  | `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
1121
- | `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
1122
1117
 
1123
1118
  #### Appointment
1124
1119
 
@@ -21,8 +21,8 @@ export interface UpdateCallOnInboundCallCanceledMessage extends OdinRecordUpdate
21
21
  /**
22
22
  * Properties for UpdateCallOnInboundCallCanceled action
23
23
  *
24
- * @property Required fields: 4
25
- * @property Optional fields: 0
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 4
26
26
  */
27
27
  export interface UpdateCallOnInboundCallCanceledProperties {
28
28
  /**
@@ -30,33 +30,29 @@ export interface UpdateCallOnInboundCallCanceledProperties {
30
30
  *
31
31
  * The granular stage of a call, more extensive than CallStatus (Communications - Call)
32
32
  * @type {ENUM}
33
- * @required
34
33
  */
35
- CallStage: string;
34
+ CallStage?: string | null;
36
35
  /**
37
36
  * call status
38
37
  *
39
38
  * the status of the call (Communications - Call)
40
39
  * @type {TEXT}
41
- * @required
42
40
  */
43
- CallStatus: string;
41
+ CallStatus?: string | null;
44
42
  /**
45
43
  * EndTime
46
44
  *
47
45
  * Data field for Call records. Used by Communications team.
48
46
  * @type {DATE_TIME}
49
- * @required
50
47
  */
51
- EndTime: string;
48
+ EndTime?: string | null;
52
49
  /**
53
50
  * CallEndReason
54
51
  *
55
52
  * CallEndReason
56
53
  * @type {ENUM}
57
- * @required
58
54
  */
59
- CallEndReason: string;
55
+ CallEndReason?: string | null;
60
56
  }
61
57
  /**
62
58
  * UpdateCallOnInboundCallCanceled
@@ -25,12 +25,7 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
25
25
  import { CallLegProperties } from '../entities-v2/CallLeg';
26
26
  import { CreateAgentCallLegProperties } from '../actions-v2/CreateAgentCallLegDto';
27
27
  import { CreateCustomerCallLegProperties } from '../actions-v2/CreateCustomerCallLegDto';
28
- import { UpdateAgentCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto';
29
- import { UpdateAgentCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto';
30
- import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto';
31
- import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
32
28
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
33
- import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
34
29
  import { CallRecord } from './CallRecord';
35
30
  import { CallEventRecord } from './CallEventRecord';
36
31
  import { CallTransferRecord } from './CallTransferRecord';
@@ -274,110 +269,6 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
274
269
  journeyId?: string;
275
270
  stageKey?: string;
276
271
  }): ActionBuilder;
277
- /**
278
- * UpdateAgentCallLegOnIncomingCallAnswered
279
- *
280
- * Updates this CallLeg record with the specified properties.
281
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
282
- *
283
- * @param properties - Required properties for this action
284
- * @param options - Optional settings
285
- * @param options.journeyId - Associate with a journey
286
- * @param options.stageKey - Transition to pipeline stage
287
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
288
- * @throws Error if called on a new (unsaved) record
289
- *
290
- * @example
291
- * ```typescript
292
- * const record = await odinClient.callLegs.get(id);
293
- * await record.updateAgentCallLegOnIncomingCallAnswered({ ... }).execute();
294
- *
295
- * // Dry run (for debugging)
296
- * const payload = record.updateAgentCallLegOnIncomingCallAnswered({ ... }).dryRun();
297
- * ```
298
- */
299
- updateAgentCallLegOnIncomingCallAnswered(properties: UpdateAgentCallLegOnIncomingCallAnsweredProperties, options?: {
300
- journeyId?: string;
301
- stageKey?: string;
302
- }): ActionBuilder;
303
- /**
304
- * UpdateAgentCallLegOnIncomingCallCanceled
305
- *
306
- * Updates this CallLeg record with the specified properties.
307
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
308
- *
309
- * @param properties - Required properties for this action
310
- * @param options - Optional settings
311
- * @param options.journeyId - Associate with a journey
312
- * @param options.stageKey - Transition to pipeline stage
313
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
314
- * @throws Error if called on a new (unsaved) record
315
- *
316
- * @example
317
- * ```typescript
318
- * const record = await odinClient.callLegs.get(id);
319
- * await record.updateAgentCallLegOnIncomingCallCanceled({ ... }).execute();
320
- *
321
- * // Dry run (for debugging)
322
- * const payload = record.updateAgentCallLegOnIncomingCallCanceled({ ... }).dryRun();
323
- * ```
324
- */
325
- updateAgentCallLegOnIncomingCallCanceled(properties: UpdateAgentCallLegOnIncomingCallCanceledProperties, options?: {
326
- journeyId?: string;
327
- stageKey?: string;
328
- }): ActionBuilder;
329
- /**
330
- * UpdateAgentCallLegOnIncomingCallCompleted
331
- *
332
- * Updates this CallLeg record with the specified properties.
333
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
334
- *
335
- * @param properties - Required properties for this action
336
- * @param options - Optional settings
337
- * @param options.journeyId - Associate with a journey
338
- * @param options.stageKey - Transition to pipeline stage
339
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
340
- * @throws Error if called on a new (unsaved) record
341
- *
342
- * @example
343
- * ```typescript
344
- * const record = await odinClient.callLegs.get(id);
345
- * await record.updateAgentCallLegOnIncomingCallCompleted({ ... }).execute();
346
- *
347
- * // Dry run (for debugging)
348
- * const payload = record.updateAgentCallLegOnIncomingCallCompleted({ ... }).dryRun();
349
- * ```
350
- */
351
- updateAgentCallLegOnIncomingCallCompleted(properties: UpdateAgentCallLegOnIncomingCallCompletedProperties, options?: {
352
- journeyId?: string;
353
- stageKey?: string;
354
- }): ActionBuilder;
355
- /**
356
- * UpdateAgentCallLegOnIncomingCallRinging
357
- *
358
- * Updates this CallLeg record with the specified properties.
359
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
360
- *
361
- * @param properties - Required properties for this action
362
- * @param options - Optional settings
363
- * @param options.journeyId - Associate with a journey
364
- * @param options.stageKey - Transition to pipeline stage
365
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
366
- * @throws Error if called on a new (unsaved) record
367
- *
368
- * @example
369
- * ```typescript
370
- * const record = await odinClient.callLegs.get(id);
371
- * await record.updateAgentCallLegOnIncomingCallRinging({ ... }).execute();
372
- *
373
- * // Dry run (for debugging)
374
- * const payload = record.updateAgentCallLegOnIncomingCallRinging({ ... }).dryRun();
375
- * ```
376
- */
377
- updateAgentCallLegOnIncomingCallRinging(properties: UpdateAgentCallLegOnIncomingCallRingingProperties, options?: {
378
- journeyId?: string;
379
- stageKey?: string;
380
- }): ActionBuilder;
381
272
  /**
382
273
  * UpdateCall
383
274
  *
@@ -405,32 +296,6 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
405
296
  journeyId?: string;
406
297
  stageKey?: string;
407
298
  }): ActionBuilder;
408
- /**
409
- * UpdateCustomerCallLegOnIncomingCallAnswered
410
- *
411
- * Updates this CallLeg record with the specified properties.
412
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
413
- *
414
- * @param properties - Required properties for this action
415
- * @param options - Optional settings
416
- * @param options.journeyId - Associate with a journey
417
- * @param options.stageKey - Transition to pipeline stage
418
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
419
- * @throws Error if called on a new (unsaved) record
420
- *
421
- * @example
422
- * ```typescript
423
- * const record = await odinClient.callLegs.get(id);
424
- * await record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).execute();
425
- *
426
- * // Dry run (for debugging)
427
- * const payload = record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).dryRun();
428
- * ```
429
- */
430
- updateCustomerCallLegOnIncomingCallAnswered(properties: UpdateCustomerCallLegOnIncomingCallAnsweredProperties, options?: {
431
- journeyId?: string;
432
- stageKey?: string;
433
- }): ActionBuilder;
434
299
  }
435
300
  /** Type guard to check if an object is a CallLegRecord */
436
301
  export declare function isCallLegRecord(obj: any): obj is CallLegRecord;
@@ -367,122 +367,6 @@ class CallLegRecord {
367
367
  // ============================================
368
368
  // UPDATE ACTIONS (require existing record)
369
369
  // ============================================
370
- /**
371
- * UpdateAgentCallLegOnIncomingCallAnswered
372
- *
373
- * Updates this CallLeg record with the specified properties.
374
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
375
- *
376
- * @param properties - Required properties for this action
377
- * @param options - Optional settings
378
- * @param options.journeyId - Associate with a journey
379
- * @param options.stageKey - Transition to pipeline stage
380
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
381
- * @throws Error if called on a new (unsaved) record
382
- *
383
- * @example
384
- * ```typescript
385
- * const record = await odinClient.callLegs.get(id);
386
- * await record.updateAgentCallLegOnIncomingCallAnswered({ ... }).execute();
387
- *
388
- * // Dry run (for debugging)
389
- * const payload = record.updateAgentCallLegOnIncomingCallAnswered({ ... }).dryRun();
390
- * ```
391
- */
392
- updateAgentCallLegOnIncomingCallAnswered(properties, options) {
393
- var _a;
394
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
395
- throw new Error('updateAgentCallLegOnIncomingCallAnswered requires an existing record. Use accessor.get() first.');
396
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
397
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
398
- }
399
- /**
400
- * UpdateAgentCallLegOnIncomingCallCanceled
401
- *
402
- * Updates this CallLeg record with the specified properties.
403
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
404
- *
405
- * @param properties - Required properties for this action
406
- * @param options - Optional settings
407
- * @param options.journeyId - Associate with a journey
408
- * @param options.stageKey - Transition to pipeline stage
409
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
410
- * @throws Error if called on a new (unsaved) record
411
- *
412
- * @example
413
- * ```typescript
414
- * const record = await odinClient.callLegs.get(id);
415
- * await record.updateAgentCallLegOnIncomingCallCanceled({ ... }).execute();
416
- *
417
- * // Dry run (for debugging)
418
- * const payload = record.updateAgentCallLegOnIncomingCallCanceled({ ... }).dryRun();
419
- * ```
420
- */
421
- updateAgentCallLegOnIncomingCallCanceled(properties, options) {
422
- var _a;
423
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
424
- throw new Error('updateAgentCallLegOnIncomingCallCanceled requires an existing record. Use accessor.get() first.');
425
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
426
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
427
- }
428
- /**
429
- * UpdateAgentCallLegOnIncomingCallCompleted
430
- *
431
- * Updates this CallLeg record with the specified properties.
432
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
433
- *
434
- * @param properties - Required properties for this action
435
- * @param options - Optional settings
436
- * @param options.journeyId - Associate with a journey
437
- * @param options.stageKey - Transition to pipeline stage
438
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
439
- * @throws Error if called on a new (unsaved) record
440
- *
441
- * @example
442
- * ```typescript
443
- * const record = await odinClient.callLegs.get(id);
444
- * await record.updateAgentCallLegOnIncomingCallCompleted({ ... }).execute();
445
- *
446
- * // Dry run (for debugging)
447
- * const payload = record.updateAgentCallLegOnIncomingCallCompleted({ ... }).dryRun();
448
- * ```
449
- */
450
- updateAgentCallLegOnIncomingCallCompleted(properties, options) {
451
- var _a;
452
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
453
- throw new Error('updateAgentCallLegOnIncomingCallCompleted requires an existing record. Use accessor.get() first.');
454
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
455
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
456
- }
457
- /**
458
- * UpdateAgentCallLegOnIncomingCallRinging
459
- *
460
- * Updates this CallLeg record with the specified properties.
461
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
462
- *
463
- * @param properties - Required properties for this action
464
- * @param options - Optional settings
465
- * @param options.journeyId - Associate with a journey
466
- * @param options.stageKey - Transition to pipeline stage
467
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
468
- * @throws Error if called on a new (unsaved) record
469
- *
470
- * @example
471
- * ```typescript
472
- * const record = await odinClient.callLegs.get(id);
473
- * await record.updateAgentCallLegOnIncomingCallRinging({ ... }).execute();
474
- *
475
- * // Dry run (for debugging)
476
- * const payload = record.updateAgentCallLegOnIncomingCallRinging({ ... }).dryRun();
477
- * ```
478
- */
479
- updateAgentCallLegOnIncomingCallRinging(properties, options) {
480
- var _a;
481
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
482
- throw new Error('updateAgentCallLegOnIncomingCallRinging requires an existing record. Use accessor.get() first.');
483
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
484
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
485
- }
486
370
  /**
487
371
  * UpdateCall
488
372
  *
@@ -520,35 +404,6 @@ class CallLegRecord {
520
404
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCall', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
521
405
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
522
406
  }
523
- /**
524
- * UpdateCustomerCallLegOnIncomingCallAnswered
525
- *
526
- * Updates this CallLeg record with the specified properties.
527
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
528
- *
529
- * @param properties - Required properties for this action
530
- * @param options - Optional settings
531
- * @param options.journeyId - Associate with a journey
532
- * @param options.stageKey - Transition to pipeline stage
533
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
534
- * @throws Error if called on a new (unsaved) record
535
- *
536
- * @example
537
- * ```typescript
538
- * const record = await odinClient.callLegs.get(id);
539
- * await record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).execute();
540
- *
541
- * // Dry run (for debugging)
542
- * const payload = record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).dryRun();
543
- * ```
544
- */
545
- updateCustomerCallLegOnIncomingCallAnswered(properties, options) {
546
- var _a;
547
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
548
- throw new Error('updateCustomerCallLegOnIncomingCallAnswered requires an existing record. Use accessor.get() first.');
549
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
550
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
551
- }
552
407
  }
553
408
  exports.CallLegRecord = CallLegRecord;
554
409
  // ============================================
@@ -394,13 +394,11 @@ export declare class CallRecord<TProps = CallProperties> {
394
394
  /**
395
395
  * UpdateCallOnInboundCallCanceled
396
396
  *
397
- * Updates this Call record with the specified properties.
397
+ * Updates this Call record.
398
398
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
399
399
  *
400
- * @param properties - Required properties for this action
401
- * @param options - Optional settings
402
- * @param options.journeyId - Associate with a journey
403
- * @param options.stageKey - Transition to pipeline stage
400
+ * @param propertiesOrOptions - Properties to update, or options object
401
+ * @param options - Optional settings (journeyId, stageKey)
404
402
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
405
403
  * @throws Error if called on a new (unsaved) record
406
404
  *
@@ -413,7 +411,10 @@ export declare class CallRecord<TProps = CallProperties> {
413
411
  * const payload = record.updateCallOnInboundCallCanceled({ ... }).dryRun();
414
412
  * ```
415
413
  */
416
- updateCallOnInboundCallCanceled(properties: UpdateCallOnInboundCallCanceledProperties, options?: {
414
+ updateCallOnInboundCallCanceled(propertiesOrOptions?: UpdateCallOnInboundCallCanceledProperties | {
415
+ journeyId?: string;
416
+ stageKey?: string;
417
+ }, options?: {
417
418
  journeyId?: string;
418
419
  stageKey?: string;
419
420
  }): ActionBuilder;
@@ -546,13 +546,11 @@ class CallRecord {
546
546
  /**
547
547
  * UpdateCallOnInboundCallCanceled
548
548
  *
549
- * Updates this Call record with the specified properties.
549
+ * Updates this Call record.
550
550
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
551
551
  *
552
- * @param properties - Required properties for this action
553
- * @param options - Optional settings
554
- * @param options.journeyId - Associate with a journey
555
- * @param options.stageKey - Transition to pipeline stage
552
+ * @param propertiesOrOptions - Properties to update, or options object
553
+ * @param options - Optional settings (journeyId, stageKey)
556
554
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
557
555
  * @throws Error if called on a new (unsaved) record
558
556
  *
@@ -565,11 +563,21 @@ class CallRecord {
565
563
  * const payload = record.updateCallOnInboundCallCanceled({ ... }).dryRun();
566
564
  * ```
567
565
  */
568
- updateCallOnInboundCallCanceled(properties, options) {
566
+ updateCallOnInboundCallCanceled(propertiesOrOptions, options) {
569
567
  var _a;
570
568
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
571
569
  throw new Error('updateCallOnInboundCallCanceled requires an existing record. Use accessor.get() first.');
572
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
570
+ let properties = {};
571
+ let opts = options;
572
+ if (propertiesOrOptions) {
573
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
574
+ opts = propertiesOrOptions;
575
+ }
576
+ else {
577
+ properties = propertiesOrOptions;
578
+ }
579
+ }
580
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
573
581
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
574
582
  }
575
583
  /**
package/package.json CHANGED
@@ -1,33 +1,11 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.103-beta.17",
3
+ "version": "2.0.103-beta.2",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "require": "./dist/index.js",
12
- "import": "./dist/index.js",
13
- "types": "./dist/index.d.ts"
14
- },
15
- "./wholesale-provider": {
16
- "require": "./dist/wholesale-provider/index.js",
17
- "import": "./dist/wholesale-provider/index.js",
18
- "types": "./dist/wholesale-provider/index.d.ts"
19
- },
20
- "./dist/wholesale-provider": {
21
- "require": "./dist/wholesale-provider/index.js",
22
- "import": "./dist/wholesale-provider/index.js",
23
- "types": "./dist/wholesale-provider/index.d.ts"
24
- },
25
- "./dist/*": {
26
- "require": "./dist/*.js",
27
- "import": "./dist/*.js",
28
- "types": "./dist/*.d.ts"
29
- }
30
- },
31
9
  "devDependencies": {
32
10
  "ts-node": "^10.9.2",
33
11
  "typescript": "4.8.4"
@@ -37,9 +15,8 @@
37
15
  "@d19n/odin-types": "^3.0.41"
38
16
  },
39
17
  "scripts": {
40
- "test:wholesale-provider": "npx --yes tsx src/wholesale-provider/test/netomnia-provider.spec.ts && npx --yes tsx src/wholesale-provider/test/kci-effect-bridge.spec.ts",
41
- "release:beta": "git pull --ff-only && rm -rf dist && tsc && npm version prerelease --preid=beta && git push && npm publish --tag beta",
42
- "release:prod": "git pull --ff-only && rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
18
+ "release:beta": "rm -rf dist && tsc && npm version prerelease --preid=beta && git push && npm publish --tag beta",
19
+ "release:prod": "rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
43
20
  },
44
21
  "files": [
45
22
  "dist",
@@ -1,81 +0,0 @@
1
- /**
2
- * UpdateAgentCallLegOnIncomingCallAnswered Action DTO
3
- *
4
- * Update agent call leg on incoming call answered
5
- *
6
- * @module NotificationModule
7
- * @entity CallLeg
8
- * @actionKey UpdateAgentCallLegOnIncomingCallAnswered
9
- * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
10
- *
11
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
- */
13
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
- /**
15
- * RabbitMQ message payload for UpdateAgentCallLegOnIncomingCallAnswered updated events
16
- *
17
- * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
18
- */
19
- export interface UpdateAgentCallLegOnIncomingCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallAnsweredDto, UpdateAgentCallLegOnIncomingCallAnsweredProperties> {
20
- }
21
- /**
22
- * Properties for UpdateAgentCallLegOnIncomingCallAnswered action
23
- *
24
- * @property Required fields: 2
25
- * @property Optional fields: 0
26
- */
27
- export interface UpdateAgentCallLegOnIncomingCallAnsweredProperties {
28
- /**
29
- * AnsweredAt
30
- *
31
- * Data field for CallLeg records. Used by Communications team.
32
- * @type {DATE_TIME}
33
- * @required
34
- */
35
- AnsweredAt: string;
36
- /**
37
- * Status
38
- *
39
- * Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
40
- * @type {ENUM}
41
- * @required
42
- */
43
- Status: string;
44
- }
45
- /**
46
- * UpdateAgentCallLegOnIncomingCallAnswered
47
- *
48
- * Update agent call leg on incoming call answered
49
- *
50
- * @actionType UPDATE - Updates an existing CallLeg record
51
- * @module NotificationModule
52
- * @entity CallLeg
53
- * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
54
- * @permission schema.action.updateagentcalllegonincomingcallanswered.trigger
55
- * @benchmark This action is tracked for performance benchmarks
56
- */
57
- export declare class UpdateAgentCallLegOnIncomingCallAnsweredDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallAnsweredProperties> {
58
- /** Used by SDK generators to identify action type */
59
- static readonly ACTION_TYPE = "UPDATE";
60
- static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallAnswered";
61
- static readonly MODULE_NAME = "NotificationModule";
62
- static readonly ENTITIES: string[];
63
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered";
64
- static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallanswered.trigger";
65
- /** Step metadata - entity this action targets */
66
- static readonly STEP_ENTITY = "NotificationModule:CallLeg";
67
- static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
68
- static readonly STEP_SCHEMA_ACTION_ID = "7b941398-8279-400c-b752-b4c72ed46007";
69
- static readonly AUTO_LINK_PARENT = false;
70
- readonly actionName: string;
71
- readonly schemaActionId: string;
72
- readonly entity: string;
73
- constructor(record: OdinRecord<any> | {
74
- id: string;
75
- entity: string;
76
- type?: string;
77
- }, properties: UpdateAgentCallLegOnIncomingCallAnsweredProperties, options?: {
78
- journeyId?: string;
79
- stageKey?: string;
80
- });
81
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /**
3
- * UpdateAgentCallLegOnIncomingCallAnswered Action DTO
4
- *
5
- * Update agent call leg on incoming call answered
6
- *
7
- * @module NotificationModule
8
- * @entity CallLeg
9
- * @actionKey UpdateAgentCallLegOnIncomingCallAnswered
10
- * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.UpdateAgentCallLegOnIncomingCallAnsweredDto = void 0;
16
- const core_1 = require("@d19n/odin-types/dist/core");
17
- /**
18
- * UpdateAgentCallLegOnIncomingCallAnswered
19
- *
20
- * Update agent call leg on incoming call answered
21
- *
22
- * @actionType UPDATE - Updates an existing CallLeg record
23
- * @module NotificationModule
24
- * @entity CallLeg
25
- * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
26
- * @permission schema.action.updateagentcalllegonincomingcallanswered.trigger
27
- * @benchmark This action is tracked for performance benchmarks
28
- */
29
- class UpdateAgentCallLegOnIncomingCallAnsweredDto extends core_1.OdinRecordUpdateDto {
30
- constructor(record, properties, options) {
31
- super({
32
- id: record.id,
33
- entity: record.entity,
34
- type: record.type,
35
- properties,
36
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
- });
39
- this.actionName = 'UpdateAgentCallLegOnIncomingCallAnswered';
40
- this.schemaActionId = '7b941398-8279-400c-b752-b4c72ed46007';
41
- this.entity = 'NotificationModule:CallLeg';
42
- }
43
- }
44
- exports.UpdateAgentCallLegOnIncomingCallAnsweredDto = UpdateAgentCallLegOnIncomingCallAnsweredDto;
45
- /** Used by SDK generators to identify action type */
46
- UpdateAgentCallLegOnIncomingCallAnsweredDto.ACTION_TYPE = 'UPDATE';
47
- UpdateAgentCallLegOnIncomingCallAnsweredDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallAnswered';
48
- UpdateAgentCallLegOnIncomingCallAnsweredDto.MODULE_NAME = 'NotificationModule';
49
- UpdateAgentCallLegOnIncomingCallAnsweredDto.ENTITIES = ['CallLeg'];
50
- UpdateAgentCallLegOnIncomingCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered';
51
- UpdateAgentCallLegOnIncomingCallAnsweredDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallanswered.trigger';
52
- /** Step metadata - entity this action targets */
53
- UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
- UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
- UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ACTION_ID = '7b941398-8279-400c-b752-b4c72ed46007';
56
- UpdateAgentCallLegOnIncomingCallAnsweredDto.AUTO_LINK_PARENT = false;