@d19n/youfibre-odin-sdk 2.0.103-beta.3 → 2.0.103-beta.4

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 CHANGED
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
352
352
 
353
353
  ## Actions
354
354
 
355
- This SDK includes **629** actions.
355
+ This SDK includes **630** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -1116,6 +1116,7 @@ This SDK includes **629** actions.
1116
1116
  | `UpdateAgentCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered |
1117
1117
  | `UpdateAgentCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled |
1118
1118
  | `UpdateAgentCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted |
1119
+ | `UpdateAgentCallLegOnIncomingCallRinding` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding |
1119
1120
  | `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
1120
1121
  | `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
1121
1122
 
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateAgentCallLegOnIncomingCallRinding Action DTO
3
+ *
4
+ * Update agent call leg on incoming call rinding
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnIncomingCallRinding
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
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 UpdateAgentCallLegOnIncomingCallRinding updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
18
+ */
19
+ export interface UpdateAgentCallLegOnIncomingCallRindingMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallRindingDto, UpdateAgentCallLegOnIncomingCallRindingProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnIncomingCallRinding action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateAgentCallLegOnIncomingCallRindingProperties {
28
+ /**
29
+ * RingingAt
30
+ *
31
+ * Data field for CallLeg records. Used by Communications team.
32
+ * @type {DATE_TIME}
33
+ * @required
34
+ */
35
+ RingingAt: 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
+ * UpdateAgentCallLegOnIncomingCallRinding
47
+ *
48
+ * Update agent call leg on incoming call rinding
49
+ *
50
+ * @actionType UPDATE - Updates an existing CallLeg record
51
+ * @module NotificationModule
52
+ * @entity CallLeg
53
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
54
+ * @permission schema.action.updateagentcalllegonincomingcallrinding.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateAgentCallLegOnIncomingCallRindingDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallRindingProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallRinding";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding";
64
+ static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallrinding.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 = "a3d8be43-ce38-4841-a836-7f38ceba4761";
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: UpdateAgentCallLegOnIncomingCallRindingProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnIncomingCallRinding Action DTO
4
+ *
5
+ * Update agent call leg on incoming call rinding
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnIncomingCallRinding
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnIncomingCallRindingDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnIncomingCallRinding
19
+ *
20
+ * Update agent call leg on incoming call rinding
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding
26
+ * @permission schema.action.updateagentcalllegonincomingcallrinding.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnIncomingCallRindingDto 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 = 'UpdateAgentCallLegOnIncomingCallRinding';
40
+ this.schemaActionId = 'a3d8be43-ce38-4841-a836-7f38ceba4761';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnIncomingCallRindingDto = UpdateAgentCallLegOnIncomingCallRindingDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnIncomingCallRindingDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnIncomingCallRindingDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallRinding';
48
+ UpdateAgentCallLegOnIncomingCallRindingDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnIncomingCallRindingDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnIncomingCallRindingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinding';
51
+ UpdateAgentCallLegOnIncomingCallRindingDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallrinding.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnIncomingCallRindingDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnIncomingCallRindingDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnIncomingCallRindingDto.STEP_SCHEMA_ACTION_ID = 'a3d8be43-ce38-4841-a836-7f38ceba4761';
56
+ UpdateAgentCallLegOnIncomingCallRindingDto.AUTO_LINK_PARENT = false;
@@ -28,6 +28,7 @@ import { CreateCustomerCallLegProperties } from '../actions-v2/CreateCustomerCal
28
28
  import { UpdateAgentCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto';
29
29
  import { UpdateAgentCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto';
30
30
  import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto';
31
+ import { UpdateAgentCallLegOnIncomingCallRindingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRindingDto';
31
32
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
32
33
  import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
33
34
  import { CallRecord } from './CallRecord';
@@ -351,6 +352,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
351
352
  journeyId?: string;
352
353
  stageKey?: string;
353
354
  }): ActionBuilder;
355
+ /**
356
+ * UpdateAgentCallLegOnIncomingCallRinding
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.updateAgentCallLegOnIncomingCallRinding({ ... }).execute();
372
+ *
373
+ * // Dry run (for debugging)
374
+ * const payload = record.updateAgentCallLegOnIncomingCallRinding({ ... }).dryRun();
375
+ * ```
376
+ */
377
+ updateAgentCallLegOnIncomingCallRinding(properties: UpdateAgentCallLegOnIncomingCallRindingProperties, options?: {
378
+ journeyId?: string;
379
+ stageKey?: string;
380
+ }): ActionBuilder;
354
381
  /**
355
382
  * UpdateCall
356
383
  *
@@ -454,6 +454,35 @@ class CallLegRecord {
454
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
455
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
456
456
  }
457
+ /**
458
+ * UpdateAgentCallLegOnIncomingCallRinding
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.updateAgentCallLegOnIncomingCallRinding({ ... }).execute();
474
+ *
475
+ * // Dry run (for debugging)
476
+ * const payload = record.updateAgentCallLegOnIncomingCallRinding({ ... }).dryRun();
477
+ * ```
478
+ */
479
+ updateAgentCallLegOnIncomingCallRinding(properties, options) {
480
+ var _a;
481
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
482
+ throw new Error('updateAgentCallLegOnIncomingCallRinding 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: 'UpdateAgentCallLegOnIncomingCallRinding', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
484
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
485
+ }
457
486
  /**
458
487
  * UpdateCall
459
488
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.103-beta.3",
3
+ "version": "2.0.103-beta.4",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",