@d19n/youfibre-odin-sdk 2.0.183 → 2.0.185

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
@@ -354,7 +354,7 @@ This SDK includes **166** entities across **12** modules.
354
354
 
355
355
  ## Actions
356
356
 
357
- This SDK includes **684** actions.
357
+ This SDK includes **685** actions.
358
358
 
359
359
  ### Action Types
360
360
 
@@ -1407,6 +1407,7 @@ This SDK includes **684** actions.
1407
1407
  | Action | Type | Event |
1408
1408
  |--------|------|-------|
1409
1409
  | `CreateInboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall |
1410
+ | `CreateMissedIncomingCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall |
1410
1411
  | `CreateOutboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall |
1411
1412
  | `UpdateCallAnalytics` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallAnalytics |
1412
1413
  | `UpdateCallInsights` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights |
@@ -0,0 +1,140 @@
1
+ /**
2
+ * CreateMissedIncomingCall Action DTO
3
+ *
4
+ * Create missed incoming call
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey CreateMissedIncomingCall
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall
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 CreateMissedIncomingCall created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall
18
+ */
19
+ export interface CreateMissedIncomingCallMessage extends OdinRecordCreatedEvent<CreateMissedIncomingCallDto, CreateMissedIncomingCallProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateMissedIncomingCall action
23
+ *
24
+ * @property Required fields: 10
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface CreateMissedIncomingCallProperties {
28
+ /**
29
+ * external id
30
+ *
31
+ * the external id from the call management system (Communications - Call)
32
+ * @type {TEXT}
33
+ * @required
34
+ */
35
+ ExternalId: string;
36
+ /**
37
+ * Source
38
+ *
39
+ * Data field for Call records. Used by Communications team.
40
+ * @type {TEXT}
41
+ * @required
42
+ */
43
+ Source: string;
44
+ /**
45
+ * From
46
+ *
47
+ * Data field for Call records. Used by Communications team.
48
+ * @type {TEXT}
49
+ * @required
50
+ */
51
+ From: string;
52
+ /**
53
+ * Direction
54
+ *
55
+ * Direction of call (Communications - Call)
56
+ * @type {ENUM}
57
+ * @required
58
+ */
59
+ Direction: string;
60
+ /**
61
+ * call status
62
+ *
63
+ * the status of the call (Communications - Call)
64
+ * @type {TEXT}
65
+ * @required
66
+ */
67
+ CallStatus: string;
68
+ /**
69
+ * Call stage
70
+ *
71
+ * The granular stage of a call, more extensive than CallStatus (Communications - Call)
72
+ * @type {ENUM}
73
+ * @required
74
+ */
75
+ CallStage: string;
76
+ /**
77
+ * channel
78
+ *
79
+ * the source channel (Communications - Call)
80
+ * @type {TEXT}
81
+ * @required
82
+ */
83
+ Channel: string;
84
+ /**
85
+ * Title
86
+ *
87
+ * Title of the call record
88
+ * @type {TEXT}
89
+ * @required
90
+ */
91
+ Title: string;
92
+ /**
93
+ * EndTime
94
+ *
95
+ * Data field for Call records. Used by Communications team.
96
+ * @type {DATE_TIME}
97
+ * @required
98
+ */
99
+ EndTime: string;
100
+ /**
101
+ * Duration
102
+ *
103
+ * Data field for Call records. Used by Communications team.
104
+ * @type {TEXT}
105
+ * @required
106
+ */
107
+ Duration: string;
108
+ }
109
+ /**
110
+ * CreateMissedIncomingCall
111
+ *
112
+ * Create missed incoming call
113
+ *
114
+ * @actionType CREATE - Creates a new Call record
115
+ * @module NotificationModule
116
+ * @entity Call
117
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall
118
+ * @permission schema.action.createmissedincomingcall.trigger
119
+ * @benchmark This action is tracked for performance benchmarks
120
+ */
121
+ export declare class CreateMissedIncomingCallDto extends OdinRecordCreateDto<CreateMissedIncomingCallProperties> {
122
+ /** Used by SDK generators to identify action type */
123
+ static readonly ACTION_TYPE = "CREATE";
124
+ static readonly ACTION_KEY = "CreateMissedIncomingCall";
125
+ static readonly MODULE_NAME = "NotificationModule";
126
+ static readonly ENTITIES: string[];
127
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall";
128
+ static readonly PERMISSION = "schema.action.createmissedincomingcall.trigger";
129
+ /** Step metadata - entity this action targets */
130
+ static readonly STEP_ENTITY = "NotificationModule:Call";
131
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
132
+ static readonly STEP_SCHEMA_ACTION_ID = "32bf2c3c-9fa1-4582-a3b4-32c821d9989c";
133
+ static readonly AUTO_LINK_PARENT = true;
134
+ readonly actionName: string;
135
+ readonly schemaActionId: string;
136
+ readonly entity: string;
137
+ constructor(properties: CreateMissedIncomingCallProperties, options?: {
138
+ journeyId?: string;
139
+ });
140
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * CreateMissedIncomingCall Action DTO
4
+ *
5
+ * Create missed incoming call
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey CreateMissedIncomingCall
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateMissedIncomingCallDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateMissedIncomingCall
19
+ *
20
+ * Create missed incoming call
21
+ *
22
+ * @actionType CREATE - Creates a new Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall
26
+ * @permission schema.action.createmissedincomingcall.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateMissedIncomingCallDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'NotificationModule:Call',
33
+ type: undefined,
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateMissedIncomingCall';
38
+ this.schemaActionId = '32bf2c3c-9fa1-4582-a3b4-32c821d9989c';
39
+ this.entity = 'NotificationModule:Call';
40
+ }
41
+ }
42
+ exports.CreateMissedIncomingCallDto = CreateMissedIncomingCallDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateMissedIncomingCallDto.ACTION_TYPE = 'CREATE';
45
+ CreateMissedIncomingCallDto.ACTION_KEY = 'CreateMissedIncomingCall';
46
+ CreateMissedIncomingCallDto.MODULE_NAME = 'NotificationModule';
47
+ CreateMissedIncomingCallDto.ENTITIES = ['Call'];
48
+ CreateMissedIncomingCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateMissedIncomingCall';
49
+ CreateMissedIncomingCallDto.PERMISSION = 'schema.action.createmissedincomingcall.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ CreateMissedIncomingCallDto.STEP_ENTITY = 'NotificationModule:Call';
52
+ CreateMissedIncomingCallDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
53
+ CreateMissedIncomingCallDto.STEP_SCHEMA_ACTION_ID = '32bf2c3c-9fa1-4582-a3b4-32c821d9989c';
54
+ CreateMissedIncomingCallDto.AUTO_LINK_PARENT = true;
@@ -25,6 +25,7 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
25
25
  import { CallProperties } from '../entities-v2/Call';
26
26
  import { CreateInboundCallProperties } from '../actions-v2/CreateInboundCallDto';
27
27
  import { CreateInboundCallBuilder } from '../actions-v2/CreateInboundCallDto';
28
+ import { CreateMissedIncomingCallProperties } from '../actions-v2/CreateMissedIncomingCallDto';
28
29
  import { CreateOutboundCallProperties } from '../actions-v2/CreateOutboundCallDto';
29
30
  import { CreateOutboundCallBuilder } from '../actions-v2/CreateOutboundCallDto';
30
31
  import { UpdateCallAnalyticsProperties } from '../actions-v2/UpdateCallAnalyticsDto';
@@ -371,6 +372,34 @@ export declare class CallRecord<TProps = CallProperties> {
371
372
  journeyId?: string;
372
373
  stageKey?: string;
373
374
  }): CreateInboundCallBuilder;
375
+ /**
376
+ * CreateMissedIncomingCall
377
+ *
378
+ * Creates a new Call record with the specified properties.
379
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
380
+ *
381
+ * @param properties - The properties for the new record
382
+ * @param options - Optional settings
383
+ * @param options.type - Override the record type
384
+ * @param options.journeyId - Associate with a journey
385
+ * @param options.stageKey - Set initial pipeline stage
386
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
387
+ *
388
+ * @example
389
+ * ```typescript
390
+ * // Create with properties
391
+ * const record = odinClient.calls.new();
392
+ * await record.createMissedIncomingCall({ ... }).execute();
393
+ *
394
+ * // Dry run (for debugging)
395
+ * const payload = record.createMissedIncomingCall({ ... }).dryRun();
396
+ * ```
397
+ */
398
+ createMissedIncomingCall(properties: CreateMissedIncomingCallProperties, options?: {
399
+ type?: string;
400
+ journeyId?: string;
401
+ stageKey?: string;
402
+ }): ActionBuilder;
374
403
  /**
375
404
  * CreateOutboundCall
376
405
  *
@@ -504,6 +504,42 @@ class CallRecord {
504
504
  createInboundCall(properties, options) {
505
505
  return new CreateInboundCallDto_1.CreateInboundCallBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'NotificationModule', 'Call', () => { this._pendingLinks = []; });
506
506
  }
507
+ /**
508
+ * CreateMissedIncomingCall
509
+ *
510
+ * Creates a new Call record with the specified properties.
511
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
512
+ *
513
+ * @param properties - The properties for the new record
514
+ * @param options - Optional settings
515
+ * @param options.type - Override the record type
516
+ * @param options.journeyId - Associate with a journey
517
+ * @param options.stageKey - Set initial pipeline stage
518
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
519
+ *
520
+ * @example
521
+ * ```typescript
522
+ * // Create with properties
523
+ * const record = odinClient.calls.new();
524
+ * await record.createMissedIncomingCall({ ... }).execute();
525
+ *
526
+ * // Dry run (for debugging)
527
+ * const payload = record.createMissedIncomingCall({ ... }).dryRun();
528
+ * ```
529
+ */
530
+ createMissedIncomingCall(properties, options) {
531
+ var _a, _b;
532
+ const payload = {
533
+ entity: 'NotificationModule:Call',
534
+ 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,
535
+ actionName: 'CreateMissedIncomingCall',
536
+ properties: properties || {},
537
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
538
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
539
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
540
+ };
541
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
542
+ }
507
543
  /**
508
544
  * CreateOutboundCall
509
545
  *
@@ -25,7 +25,7 @@
25
25
  *
26
26
  * Linked: T-20260508-009 / T-20260508-010
27
27
  */
28
- export type { WholesaleProvider, CreateOrderOptions, CancellationReasonCode, CancelServiceWorkOrderArgs, ReserveAppointmentArgs, ListAppointmentsArgs, ScheduleServiceWorkOrderArgs, RescheduleServiceWorkOrderArgs, AmendAppointmentArgs, SyncWorkOrderToSupplierArgs, UpdateOrderExternalRefArgs, } from './interface';
28
+ export type { WholesaleProvider, CreateOrderOptions, CancellationReasonCode, CancelServiceWorkOrderArgs, ReserveAppointmentArgs, ListAppointmentsArgs, ScheduleServiceWorkOrderArgs, RescheduleServiceWorkOrderArgs, AmendAppointmentArgs, RequestTenantReappointmentArgs, RequestTenantReappointmentReason, SyncWorkOrderToSupplierArgs, UpdateOrderExternalRefArgs, } from './interface';
29
29
  export type { WholesaleResult, WholesaleSyncResponse, WholesaleRejectionResponse, WholesaleRejectionMessage, WholesaleBUS, WholesaleSYS, ISO8601DateTime, ISODate, TransactionId, UPRN, UUID, SwitchOrderReference, } from './types/wholesale';
30
30
  export { NetomniaProvider, AggregateNotificationError } from './providers/netomnia-provider';
31
31
  export type { NetomniaProviderDeps } from './providers/netomnia-provider';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.183",
3
+ "version": "2.0.185",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",