@d19n/youfibre-odin-sdk 2.0.141 → 2.0.142

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.
@@ -21,52 +21,42 @@ export interface UpdateCallOnInboundCallAnsweredMessage extends OdinRecordUpdate
21
21
  /**
22
22
  * Properties for UpdateCallOnInboundCallAnswered action
23
23
  *
24
- * @property Required fields: 0
25
- * @property Optional fields: 6
24
+ * @property Required fields: 4
25
+ * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateCallOnInboundCallAnsweredProperties {
28
- /**
29
- * CurrentAgentEmail
30
- *
31
- * Email of currently assigned agent (Communications - Call)
32
- * @type {TEXT}
33
- */
34
- CurrentAgentEmail?: string | null;
35
- /**
36
- * user Id
37
- *
38
- * The Odin user that handled the call (Communications - Call)
39
- * @type {UUID}
40
- */
41
- UserId?: string | null;
42
28
  /**
43
29
  * Call stage
44
30
  *
45
31
  * The granular stage of a call, more extensive than CallStatus (Communications - Call)
46
32
  * @type {ENUM}
33
+ * @required
47
34
  */
48
- CallStage?: string | null;
35
+ CallStage: string;
49
36
  /**
50
37
  * call status
51
38
  *
52
39
  * the status of the call (Communications - Call)
53
40
  * @type {TEXT}
41
+ * @required
54
42
  */
55
- CallStatus?: string | null;
43
+ CallStatus: string;
56
44
  /**
57
45
  * AnswerTime
58
46
  *
59
47
  * When customer call was answered (Communications - Call)
60
48
  * @type {DATE_TIME}
49
+ * @required
61
50
  */
62
- AnswerTime?: string | null;
51
+ AnswerTime: string;
63
52
  /**
64
53
  * QueueTime
65
54
  *
66
55
  * Seconds spent in queue (Communications - Call)
67
56
  * @type {NUMBER}
57
+ * @required
68
58
  */
69
- QueueTime?: number | null;
59
+ QueueTime: number;
70
60
  }
71
61
  /**
72
62
  * UpdateCallOnInboundCallAnswered
@@ -485,11 +485,13 @@ export declare class CallRecord<TProps = CallProperties> {
485
485
  /**
486
486
  * UpdateCallOnInboundCallAnswered
487
487
  *
488
- * Updates this Call record.
488
+ * Updates this Call record with the specified properties.
489
489
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
490
490
  *
491
- * @param propertiesOrOptions - Properties to update, or options object
492
- * @param options - Optional settings (journeyId, stageKey)
491
+ * @param properties - Required properties for this action
492
+ * @param options - Optional settings
493
+ * @param options.journeyId - Associate with a journey
494
+ * @param options.stageKey - Transition to pipeline stage
493
495
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
494
496
  * @throws Error if called on a new (unsaved) record
495
497
  *
@@ -502,10 +504,7 @@ export declare class CallRecord<TProps = CallProperties> {
502
504
  * const payload = record.updateCallOnInboundCallAnswered({ ... }).dryRun();
503
505
  * ```
504
506
  */
505
- updateCallOnInboundCallAnswered(propertiesOrOptions?: UpdateCallOnInboundCallAnsweredProperties | {
506
- journeyId?: string;
507
- stageKey?: string;
508
- }, options?: {
507
+ updateCallOnInboundCallAnswered(properties: UpdateCallOnInboundCallAnsweredProperties, options?: {
509
508
  journeyId?: string;
510
509
  stageKey?: string;
511
510
  }): ActionBuilder;
@@ -624,11 +624,13 @@ class CallRecord {
624
624
  /**
625
625
  * UpdateCallOnInboundCallAnswered
626
626
  *
627
- * Updates this Call record.
627
+ * Updates this Call record with the specified properties.
628
628
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
629
629
  *
630
- * @param propertiesOrOptions - Properties to update, or options object
631
- * @param options - Optional settings (journeyId, stageKey)
630
+ * @param properties - Required properties for this action
631
+ * @param options - Optional settings
632
+ * @param options.journeyId - Associate with a journey
633
+ * @param options.stageKey - Transition to pipeline stage
632
634
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
633
635
  * @throws Error if called on a new (unsaved) record
634
636
  *
@@ -641,21 +643,11 @@ class CallRecord {
641
643
  * const payload = record.updateCallOnInboundCallAnswered({ ... }).dryRun();
642
644
  * ```
643
645
  */
644
- updateCallOnInboundCallAnswered(propertiesOrOptions, options) {
646
+ updateCallOnInboundCallAnswered(properties, options) {
645
647
  var _a;
646
648
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
647
649
  throw new Error('updateCallOnInboundCallAnswered requires an existing record. Use accessor.get() first.');
648
- let properties = {};
649
- let opts = options;
650
- if (propertiesOrOptions) {
651
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
652
- opts = propertiesOrOptions;
653
- }
654
- else {
655
- properties = propertiesOrOptions;
656
- }
657
- }
658
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
650
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
659
651
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
660
652
  }
661
653
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.141",
3
+ "version": "2.0.142",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",