@d19n/youfibre-odin-sdk 2.0.113 → 2.0.115

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 **638** actions.
355
+ This SDK includes **640** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -1196,6 +1196,8 @@ This SDK includes **638** actions.
1196
1196
  | Action | Type | Event |
1197
1197
  |--------|------|-------|
1198
1198
  | `CreateCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateCall |
1199
+ | `CreateInboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall |
1200
+ | `CreateOutboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall |
1199
1201
  | `UpdateCallOnInboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered |
1200
1202
  | `UpdateCallOnInboundCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCanceled |
1201
1203
  | `UpdateCallOnInboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted |
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * @module FieldServiceModule
7
7
  * @entity WorkOrder
8
+ * @entityType COLLECTION
8
9
  * @actionKey CompleteCollectionInspectionDetails
9
10
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteCollectionInspectionDetails
10
11
  *
@@ -102,6 +103,7 @@ export interface CompleteCollectionInspectionDetailsProperties {
102
103
  * @actionType UPDATE - Updates an existing WorkOrder record
103
104
  * @module FieldServiceModule
104
105
  * @entity WorkOrder
106
+ * @entityType COLLECTION (Collection)
105
107
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteCollectionInspectionDetails
106
108
  * @permission schema.action.completecollectioninspectiondetails.trigger
107
109
  * @benchmark This action is tracked for performance benchmarks
@@ -112,12 +114,15 @@ export declare class CompleteCollectionInspectionDetailsDto extends OdinRecordUp
112
114
  static readonly ACTION_KEY = "CompleteCollectionInspectionDetails";
113
115
  static readonly MODULE_NAME = "FieldServiceModule";
114
116
  static readonly ENTITIES: string[];
117
+ static readonly ENTITY_TYPE = "COLLECTION";
115
118
  static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteCollectionInspectionDetails";
116
119
  static readonly PERMISSION = "schema.action.completecollectioninspectiondetails.trigger";
117
120
  /** Step metadata - entity this action targets */
118
121
  static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
119
122
  static readonly STEP_SCHEMA_ID = "966bf5d9-163e-4132-85e2-56a5f801c9de";
120
123
  static readonly STEP_SCHEMA_ACTION_ID = "fc34f614-9fda-474a-9e7c-a5277ddd3ae0";
124
+ static readonly STEP_SCHEMA_TYPE_ID = "1de76aa1-9853-40a4-8716-2e3db0813a65";
125
+ static readonly STEP_TYPE = "COLLECTION";
121
126
  static readonly AUTO_LINK_PARENT = false;
122
127
  readonly actionName: string;
123
128
  readonly schemaActionId: string;
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @module FieldServiceModule
8
8
  * @entity WorkOrder
9
+ * @entityType COLLECTION
9
10
  * @actionKey CompleteCollectionInspectionDetails
10
11
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteCollectionInspectionDetails
11
12
  *
@@ -20,6 +21,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
20
21
  * @actionType UPDATE - Updates an existing WorkOrder record
21
22
  * @module FieldServiceModule
22
23
  * @entity WorkOrder
24
+ * @entityType COLLECTION (Collection)
23
25
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteCollectionInspectionDetails
24
26
  * @permission schema.action.completecollectioninspectiondetails.trigger
25
27
  * @benchmark This action is tracked for performance benchmarks
@@ -45,10 +47,13 @@ CompleteCollectionInspectionDetailsDto.ACTION_TYPE = 'UPDATE';
45
47
  CompleteCollectionInspectionDetailsDto.ACTION_KEY = 'CompleteCollectionInspectionDetails';
46
48
  CompleteCollectionInspectionDetailsDto.MODULE_NAME = 'FieldServiceModule';
47
49
  CompleteCollectionInspectionDetailsDto.ENTITIES = ['WorkOrder'];
50
+ CompleteCollectionInspectionDetailsDto.ENTITY_TYPE = 'COLLECTION';
48
51
  CompleteCollectionInspectionDetailsDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteCollectionInspectionDetails';
49
52
  CompleteCollectionInspectionDetailsDto.PERMISSION = 'schema.action.completecollectioninspectiondetails.trigger';
50
53
  /** Step metadata - entity this action targets */
51
54
  CompleteCollectionInspectionDetailsDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
52
55
  CompleteCollectionInspectionDetailsDto.STEP_SCHEMA_ID = '966bf5d9-163e-4132-85e2-56a5f801c9de';
53
56
  CompleteCollectionInspectionDetailsDto.STEP_SCHEMA_ACTION_ID = 'fc34f614-9fda-474a-9e7c-a5277ddd3ae0';
57
+ CompleteCollectionInspectionDetailsDto.STEP_SCHEMA_TYPE_ID = '1de76aa1-9853-40a4-8716-2e3db0813a65';
58
+ CompleteCollectionInspectionDetailsDto.STEP_TYPE = 'COLLECTION';
54
59
  CompleteCollectionInspectionDetailsDto.AUTO_LINK_PARENT = false;
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * @module FieldServiceModule
7
7
  * @entity WorkOrder
8
+ * @entityType INSTALL
8
9
  * @actionKey CompleteInstallWorkOrderFlow
9
10
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteInstallWorkOrderFlow
10
11
  *
@@ -32,6 +33,7 @@ export interface CompleteInstallWorkOrderFlowProperties {
32
33
  * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
33
34
  * @module FieldServiceModule
34
35
  * @entity WorkOrder
36
+ * @entityType INSTALL (install)
35
37
  * @targetStages WorkOrderStageDone
36
38
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteInstallWorkOrderFlow
37
39
  * @permission schema.action.completeinstallworkorderflow.trigger
@@ -43,6 +45,7 @@ export declare class CompleteInstallWorkOrderFlowDto extends OdinRecordUpdateDto
43
45
  static readonly ACTION_KEY = "CompleteInstallWorkOrderFlow";
44
46
  static readonly MODULE_NAME = "FieldServiceModule";
45
47
  static readonly ENTITIES: string[];
48
+ static readonly ENTITY_TYPE = "INSTALL";
46
49
  static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteInstallWorkOrderFlow";
47
50
  static readonly SCHEMA_ACTION_ID = "bee3139b-becc-47df-994f-dc76dbba7b36";
48
51
  static readonly PERMISSION = "schema.action.completeinstallworkorderflow.trigger";
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @module FieldServiceModule
8
8
  * @entity WorkOrder
9
+ * @entityType INSTALL
9
10
  * @actionKey CompleteInstallWorkOrderFlow
10
11
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteInstallWorkOrderFlow
11
12
  *
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
22
23
  * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
23
24
  * @module FieldServiceModule
24
25
  * @entity WorkOrder
26
+ * @entityType INSTALL (install)
25
27
  * @targetStages WorkOrderStageDone
26
28
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteInstallWorkOrderFlow
27
29
  * @permission schema.action.completeinstallworkorderflow.trigger
@@ -48,6 +50,7 @@ CompleteInstallWorkOrderFlowDto.ACTION_TYPE = 'UPDATE';
48
50
  CompleteInstallWorkOrderFlowDto.ACTION_KEY = 'CompleteInstallWorkOrderFlow';
49
51
  CompleteInstallWorkOrderFlowDto.MODULE_NAME = 'FieldServiceModule';
50
52
  CompleteInstallWorkOrderFlowDto.ENTITIES = ['WorkOrder'];
53
+ CompleteInstallWorkOrderFlowDto.ENTITY_TYPE = 'INSTALL';
51
54
  CompleteInstallWorkOrderFlowDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteInstallWorkOrderFlow';
52
55
  CompleteInstallWorkOrderFlowDto.SCHEMA_ACTION_ID = 'bee3139b-becc-47df-994f-dc76dbba7b36';
53
56
  CompleteInstallWorkOrderFlowDto.PERMISSION = 'schema.action.completeinstallworkorderflow.trigger';
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * @module FieldServiceModule
7
7
  * @entity WorkOrder
8
+ * @entityType SERVICE
8
9
  * @actionKey CompleteServiceWorkOrderFlow
9
10
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlow
10
11
  *
@@ -32,6 +33,7 @@ export interface CompleteServiceWorkOrderFlowProperties {
32
33
  * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
33
34
  * @module FieldServiceModule
34
35
  * @entity WorkOrder
36
+ * @entityType SERVICE (service)
35
37
  * @targetStages WorkOrderStageDone
36
38
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlow
37
39
  * @permission schema.action.completeserviceworkorderflow.trigger
@@ -43,6 +45,7 @@ export declare class CompleteServiceWorkOrderFlowDto extends OdinRecordUpdateDto
43
45
  static readonly ACTION_KEY = "CompleteServiceWorkOrderFlow";
44
46
  static readonly MODULE_NAME = "FieldServiceModule";
45
47
  static readonly ENTITIES: string[];
48
+ static readonly ENTITY_TYPE = "SERVICE";
46
49
  static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlow";
47
50
  static readonly SCHEMA_ACTION_ID = "9f336efc-375f-4def-8a9b-74538a1cd974";
48
51
  static readonly PERMISSION = "schema.action.completeserviceworkorderflow.trigger";
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @module FieldServiceModule
8
8
  * @entity WorkOrder
9
+ * @entityType SERVICE
9
10
  * @actionKey CompleteServiceWorkOrderFlow
10
11
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlow
11
12
  *
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
22
23
  * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
23
24
  * @module FieldServiceModule
24
25
  * @entity WorkOrder
26
+ * @entityType SERVICE (service)
25
27
  * @targetStages WorkOrderStageDone
26
28
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlow
27
29
  * @permission schema.action.completeserviceworkorderflow.trigger
@@ -48,6 +50,7 @@ CompleteServiceWorkOrderFlowDto.ACTION_TYPE = 'UPDATE';
48
50
  CompleteServiceWorkOrderFlowDto.ACTION_KEY = 'CompleteServiceWorkOrderFlow';
49
51
  CompleteServiceWorkOrderFlowDto.MODULE_NAME = 'FieldServiceModule';
50
52
  CompleteServiceWorkOrderFlowDto.ENTITIES = ['WorkOrder'];
53
+ CompleteServiceWorkOrderFlowDto.ENTITY_TYPE = 'SERVICE';
51
54
  CompleteServiceWorkOrderFlowDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlow';
52
55
  CompleteServiceWorkOrderFlowDto.SCHEMA_ACTION_ID = '9f336efc-375f-4def-8a9b-74538a1cd974';
53
56
  CompleteServiceWorkOrderFlowDto.PERMISSION = 'schema.action.completeserviceworkorderflow.trigger';
@@ -22,7 +22,7 @@ export interface CreateCallMessage extends OdinRecordCreatedEvent<CreateCallDto,
22
22
  * Properties for CreateCall action
23
23
  *
24
24
  * @property Required fields: 9
25
- * @property Optional fields: 1
25
+ * @property Optional fields: 2
26
26
  */
27
27
  export interface CreateCallProperties {
28
28
  /**
@@ -104,6 +104,13 @@ export interface CreateCallProperties {
104
104
  * @type {TEXT}
105
105
  */
106
106
  To?: string | null;
107
+ /**
108
+ * CurrentAgentEmail
109
+ *
110
+ * Email of currently assigned agent (Communications - Call)
111
+ * @type {TEXT}
112
+ */
113
+ CurrentAgentEmail?: string | null;
107
114
  }
108
115
  /**
109
116
  * Builder for CreateCall action
@@ -0,0 +1,242 @@
1
+ /**
2
+ * CreateInboundCall Action DTO
3
+ *
4
+ * Create call on inbound call webhook
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey CreateInboundCall
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordCreateDto, OdinRecordCreatedEvent, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateInboundCall created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
18
+ */
19
+ export interface CreateInboundCallMessage extends OdinRecordCreatedEvent<CreateInboundCallDto, CreateInboundCallProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateInboundCall action
23
+ *
24
+ * @property Required fields: 10
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface CreateInboundCallProperties {
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
+ * StartTime
86
+ *
87
+ * Data field for Call records. Used by Communications team.
88
+ * @type {DATE_TIME}
89
+ * @required
90
+ */
91
+ StartTime: string;
92
+ /**
93
+ * TransferCount
94
+ *
95
+ * Number of times this call was transferred (Communications - Call)
96
+ * @type {NUMBER}
97
+ * @required
98
+ */
99
+ TransferCount: number;
100
+ /**
101
+ * Title
102
+ *
103
+ * Title of the call record
104
+ * @type {TEXT}
105
+ * @required
106
+ */
107
+ Title: string;
108
+ }
109
+ /**
110
+ * Builder for CreateInboundCall action
111
+ *
112
+ * Provides fluent API for adding associations before executing the action.
113
+ * Use .link*() methods to add associations, then call .execute() to run.
114
+ *
115
+ * @example
116
+ * ```typescript
117
+ * await record.createInboundCall({ ...properties })
118
+ * .linkAssociation_1778588888174({ id: '...', entity: '...' })
119
+ * .execute();
120
+ * ```
121
+ */
122
+ export declare class CreateInboundCallBuilder {
123
+ private _associations;
124
+ private _properties;
125
+ private _pendingLinks;
126
+ private _options?;
127
+ private _provider?;
128
+ private _moduleName?;
129
+ private _entityName?;
130
+ private _clearPendingLinks?;
131
+ private _externalId?;
132
+ private _externalAppId?;
133
+ private _groups?;
134
+ constructor(properties: CreateInboundCallProperties, pendingLinks: OdinRecordLinkDto[], options?: {
135
+ journeyId?: string;
136
+ stageKey?: string;
137
+ });
138
+ /**
139
+ * Link Call__Contact
140
+ * @schemaAssociationId 1a76c9bb-4359-435c-b61e-7bdfdcda7e13
141
+ * @param target - The record to link
142
+ * @returns this (for method chaining)
143
+ */
144
+ linkAssociation_1778588888174(target: OdinRecord<any> | {
145
+ id: string;
146
+ entity: string;
147
+ }): this;
148
+ /**
149
+ * Set an external system identifier for this record.
150
+ * Links the record to a corresponding entry in an external application.
151
+ * @param externalId - The ID in the external system
152
+ * @param externalAppId - The external application identifier
153
+ * @returns this (for chaining)
154
+ */
155
+ withExternalId(externalId: string, externalAppId: string): this;
156
+ /**
157
+ * Set security/access groups for this record.
158
+ * @param groups - Array of group names
159
+ * @returns this (for chaining)
160
+ */
161
+ withGroups(groups: string[]): this;
162
+ /**
163
+ * Get the action payload without executing
164
+ * @returns The action data that would be sent
165
+ */
166
+ getData(): {
167
+ entity: string;
168
+ type: string | undefined;
169
+ actionName: string;
170
+ properties: CreateInboundCallProperties;
171
+ associations?: OdinRecordLinkDto[];
172
+ journeyId?: string;
173
+ stageKey?: string;
174
+ externalId?: string;
175
+ externalAppId?: string;
176
+ groups?: string[];
177
+ };
178
+ /**
179
+ * Inject execution context (called by record wrapper)
180
+ * @internal
181
+ */
182
+ withProvider(provider: {
183
+ _applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
184
+ }, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
185
+ /**
186
+ * Execute the action
187
+ * @returns The result from the API
188
+ * @throws Error if withProvider() has not been called
189
+ */
190
+ execute(): Promise<any>;
191
+ /**
192
+ * Returns the request payload without executing (for debugging)
193
+ * @returns The request payload that would be sent to the API
194
+ */
195
+ dryRun(): Record<string, any>;
196
+ /**
197
+ * Prevents accidental `await builder` without .execute()
198
+ * @throws Error always - use .execute() or .dryRun() instead
199
+ */
200
+ then(): never;
201
+ }
202
+ /**
203
+ * CreateInboundCall
204
+ *
205
+ * Create call on inbound call webhook
206
+ *
207
+ * @actionType CREATE - Creates a new Call record
208
+ * @module NotificationModule
209
+ * @entity Call
210
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
211
+ * @permission schema.action.createinboundcall.trigger
212
+ * @benchmark This action is tracked for performance benchmarks
213
+ */
214
+ export declare class CreateInboundCallDto extends OdinRecordCreateDto<CreateInboundCallProperties> {
215
+ /** Used by SDK generators to identify action type */
216
+ static readonly ACTION_TYPE = "CREATE";
217
+ static readonly ACTION_KEY = "CreateInboundCall";
218
+ static readonly MODULE_NAME = "NotificationModule";
219
+ static readonly ENTITIES: string[];
220
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall";
221
+ static readonly PERMISSION = "schema.action.createinboundcall.trigger";
222
+ /** Step metadata - entity this action targets */
223
+ static readonly STEP_ENTITY = "NotificationModule:Call";
224
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
225
+ static readonly STEP_SCHEMA_ACTION_ID = "299d1984-3e76-45ce-90ec-088398480578";
226
+ static readonly AUTO_LINK_PARENT = true;
227
+ static readonly HAS_ASSOCIATIONS = true;
228
+ static readonly HAS_REQUIRED_ASSOCIATIONS = false;
229
+ static readonly BUILDER_CLASS = "CreateInboundCallBuilder";
230
+ static readonly ASSOCIATION_FIELDS: readonly [{
231
+ readonly name: "Association_1778588888174";
232
+ readonly methodName: "linkAssociation_1778588888174";
233
+ readonly required: false;
234
+ readonly schemaAssociationId: "1a76c9bb-4359-435c-b61e-7bdfdcda7e13";
235
+ }];
236
+ readonly actionName: string;
237
+ readonly schemaActionId: string;
238
+ readonly entity: string;
239
+ constructor(properties: CreateInboundCallProperties, options?: {
240
+ journeyId?: string;
241
+ });
242
+ }
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ /**
3
+ * CreateInboundCall Action DTO
4
+ *
5
+ * Create call on inbound call webhook
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey CreateInboundCall
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.CreateInboundCallDto = exports.CreateInboundCallBuilder = void 0;
25
+ const core_1 = require("@d19n/odin-types/dist/core");
26
+ /**
27
+ * Builder for CreateInboundCall action
28
+ *
29
+ * Provides fluent API for adding associations before executing the action.
30
+ * Use .link*() methods to add associations, then call .execute() to run.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * await record.createInboundCall({ ...properties })
35
+ * .linkAssociation_1778588888174({ id: '...', entity: '...' })
36
+ * .execute();
37
+ * ```
38
+ */
39
+ class CreateInboundCallBuilder {
40
+ constructor(properties, pendingLinks, options) {
41
+ this._associations = [];
42
+ this._properties = properties;
43
+ this._pendingLinks = pendingLinks;
44
+ this._options = options;
45
+ }
46
+ /**
47
+ * Link Call__Contact
48
+ * @schemaAssociationId 1a76c9bb-4359-435c-b61e-7bdfdcda7e13
49
+ * @param target - The record to link
50
+ * @returns this (for method chaining)
51
+ */
52
+ linkAssociation_1778588888174(target) {
53
+ this._associations.push(new core_1.OdinRecordLinkDto({
54
+ id: target.id,
55
+ entity: 'entity' in target ? target.entity : target.entity,
56
+ }));
57
+ return this;
58
+ }
59
+ /**
60
+ * Set an external system identifier for this record.
61
+ * Links the record to a corresponding entry in an external application.
62
+ * @param externalId - The ID in the external system
63
+ * @param externalAppId - The external application identifier
64
+ * @returns this (for chaining)
65
+ */
66
+ withExternalId(externalId, externalAppId) {
67
+ this._externalId = externalId;
68
+ this._externalAppId = externalAppId;
69
+ return this;
70
+ }
71
+ /**
72
+ * Set security/access groups for this record.
73
+ * @param groups - Array of group names
74
+ * @returns this (for chaining)
75
+ */
76
+ withGroups(groups) {
77
+ this._groups = groups;
78
+ return this;
79
+ }
80
+ /**
81
+ * Get the action payload without executing
82
+ * @returns The action data that would be sent
83
+ */
84
+ getData() {
85
+ var _a, _b;
86
+ const allAssociations = [...this._associations, ...this._pendingLinks];
87
+ return Object.assign(Object.assign({ entity: 'NotificationModule:Call', type: undefined, actionName: 'CreateInboundCall', properties: this._properties, associations: allAssociations.length > 0 ? allAssociations : undefined, journeyId: (_a = this._options) === null || _a === void 0 ? void 0 : _a.journeyId, stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey }, (this._externalId && { externalId: this._externalId, externalAppId: this._externalAppId })), (this._groups && { groups: this._groups }));
88
+ }
89
+ /**
90
+ * Inject execution context (called by record wrapper)
91
+ * @internal
92
+ */
93
+ withProvider(provider, moduleName, entityName, clearPendingLinks) {
94
+ this._provider = provider;
95
+ this._moduleName = moduleName;
96
+ this._entityName = entityName;
97
+ this._clearPendingLinks = clearPendingLinks;
98
+ return this;
99
+ }
100
+ /**
101
+ * Execute the action
102
+ * @returns The result from the API
103
+ * @throws Error if withProvider() has not been called
104
+ */
105
+ execute() {
106
+ var _a;
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ if (!this._provider || !this._moduleName || !this._entityName) {
109
+ throw new Error('Builder not connected to provider. Use the record wrapper API to get an executable builder.');
110
+ }
111
+ const result = yield this._provider._applyAction(this._moduleName, this._entityName, this.getData());
112
+ (_a = this._clearPendingLinks) === null || _a === void 0 ? void 0 : _a.call(this);
113
+ return result;
114
+ });
115
+ }
116
+ /**
117
+ * Returns the request payload without executing (for debugging)
118
+ * @returns The request payload that would be sent to the API
119
+ */
120
+ dryRun() {
121
+ return this.getData();
122
+ }
123
+ /**
124
+ * Prevents accidental `await builder` without .execute()
125
+ * @throws Error always - use .execute() or .dryRun() instead
126
+ */
127
+ then() {
128
+ throw new Error('Builder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
129
+ }
130
+ }
131
+ exports.CreateInboundCallBuilder = CreateInboundCallBuilder;
132
+ /**
133
+ * CreateInboundCall
134
+ *
135
+ * Create call on inbound call webhook
136
+ *
137
+ * @actionType CREATE - Creates a new Call record
138
+ * @module NotificationModule
139
+ * @entity Call
140
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
141
+ * @permission schema.action.createinboundcall.trigger
142
+ * @benchmark This action is tracked for performance benchmarks
143
+ */
144
+ class CreateInboundCallDto extends core_1.OdinRecordCreateDto {
145
+ constructor(properties, options) {
146
+ super({
147
+ entity: 'NotificationModule:Call',
148
+ type: undefined,
149
+ properties,
150
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
151
+ });
152
+ this.actionName = 'CreateInboundCall';
153
+ this.schemaActionId = '299d1984-3e76-45ce-90ec-088398480578';
154
+ this.entity = 'NotificationModule:Call';
155
+ }
156
+ }
157
+ exports.CreateInboundCallDto = CreateInboundCallDto;
158
+ /** Used by SDK generators to identify action type */
159
+ CreateInboundCallDto.ACTION_TYPE = 'CREATE';
160
+ CreateInboundCallDto.ACTION_KEY = 'CreateInboundCall';
161
+ CreateInboundCallDto.MODULE_NAME = 'NotificationModule';
162
+ CreateInboundCallDto.ENTITIES = ['Call'];
163
+ CreateInboundCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall';
164
+ CreateInboundCallDto.PERMISSION = 'schema.action.createinboundcall.trigger';
165
+ /** Step metadata - entity this action targets */
166
+ CreateInboundCallDto.STEP_ENTITY = 'NotificationModule:Call';
167
+ CreateInboundCallDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
168
+ CreateInboundCallDto.STEP_SCHEMA_ACTION_ID = '299d1984-3e76-45ce-90ec-088398480578';
169
+ CreateInboundCallDto.AUTO_LINK_PARENT = true;
170
+ CreateInboundCallDto.HAS_ASSOCIATIONS = true;
171
+ CreateInboundCallDto.HAS_REQUIRED_ASSOCIATIONS = false;
172
+ CreateInboundCallDto.BUILDER_CLASS = 'CreateInboundCallBuilder';
173
+ CreateInboundCallDto.ASSOCIATION_FIELDS = [{ "name": "Association_1778588888174", "methodName": "linkAssociation_1778588888174", "required": false, "schemaAssociationId": "1a76c9bb-4359-435c-b61e-7bdfdcda7e13" }];
@@ -0,0 +1,258 @@
1
+ /**
2
+ * CreateOutboundCall Action DTO
3
+ *
4
+ * Create call on outbound call webhook
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey CreateOutboundCall
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordCreateDto, OdinRecordCreatedEvent, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateOutboundCall created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
18
+ */
19
+ export interface CreateOutboundCallMessage extends OdinRecordCreatedEvent<CreateOutboundCallDto, CreateOutboundCallProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateOutboundCall action
23
+ *
24
+ * @property Required fields: 12
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface CreateOutboundCallProperties {
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
+ * To
54
+ *
55
+ * Data field for Call records. Used by Communications team.
56
+ * @type {TEXT}
57
+ * @required
58
+ */
59
+ To: string;
60
+ /**
61
+ * Direction
62
+ *
63
+ * Direction of call (Communications - Call)
64
+ * @type {ENUM}
65
+ * @required
66
+ */
67
+ Direction: string;
68
+ /**
69
+ * call status
70
+ *
71
+ * the status of the call (Communications - Call)
72
+ * @type {TEXT}
73
+ * @required
74
+ */
75
+ CallStatus: string;
76
+ /**
77
+ * Call stage
78
+ *
79
+ * The granular stage of a call, more extensive than CallStatus (Communications - Call)
80
+ * @type {ENUM}
81
+ * @required
82
+ */
83
+ CallStage: string;
84
+ /**
85
+ * channel
86
+ *
87
+ * the source channel (Communications - Call)
88
+ * @type {TEXT}
89
+ * @required
90
+ */
91
+ Channel: string;
92
+ /**
93
+ * StartTime
94
+ *
95
+ * Data field for Call records. Used by Communications team.
96
+ * @type {DATE_TIME}
97
+ * @required
98
+ */
99
+ StartTime: string;
100
+ /**
101
+ * CurrentAgentEmail
102
+ *
103
+ * Email of currently assigned agent (Communications - Call)
104
+ * @type {TEXT}
105
+ * @required
106
+ */
107
+ CurrentAgentEmail: string;
108
+ /**
109
+ * TransferCount
110
+ *
111
+ * Number of times this call was transferred (Communications - Call)
112
+ * @type {NUMBER}
113
+ * @required
114
+ */
115
+ TransferCount: number;
116
+ /**
117
+ * Title
118
+ *
119
+ * Title of the call record
120
+ * @type {TEXT}
121
+ * @required
122
+ */
123
+ Title: string;
124
+ }
125
+ /**
126
+ * Builder for CreateOutboundCall action
127
+ *
128
+ * Provides fluent API for adding associations before executing the action.
129
+ * Use .link*() methods to add associations, then call .execute() to run.
130
+ *
131
+ * @example
132
+ * ```typescript
133
+ * await record.createOutboundCall({ ...properties })
134
+ * .linkAssociation_1778588918055({ id: '...', entity: '...' })
135
+ * .execute();
136
+ * ```
137
+ */
138
+ export declare class CreateOutboundCallBuilder {
139
+ private _associations;
140
+ private _properties;
141
+ private _pendingLinks;
142
+ private _options?;
143
+ private _provider?;
144
+ private _moduleName?;
145
+ private _entityName?;
146
+ private _clearPendingLinks?;
147
+ private _externalId?;
148
+ private _externalAppId?;
149
+ private _groups?;
150
+ constructor(properties: CreateOutboundCallProperties, pendingLinks: OdinRecordLinkDto[], options?: {
151
+ journeyId?: string;
152
+ stageKey?: string;
153
+ });
154
+ /**
155
+ * Link Call__Contact
156
+ * @schemaAssociationId 1a76c9bb-4359-435c-b61e-7bdfdcda7e13
157
+ * @param target - The record to link
158
+ * @returns this (for method chaining)
159
+ */
160
+ linkAssociation_1778588918055(target: OdinRecord<any> | {
161
+ id: string;
162
+ entity: string;
163
+ }): this;
164
+ /**
165
+ * Set an external system identifier for this record.
166
+ * Links the record to a corresponding entry in an external application.
167
+ * @param externalId - The ID in the external system
168
+ * @param externalAppId - The external application identifier
169
+ * @returns this (for chaining)
170
+ */
171
+ withExternalId(externalId: string, externalAppId: string): this;
172
+ /**
173
+ * Set security/access groups for this record.
174
+ * @param groups - Array of group names
175
+ * @returns this (for chaining)
176
+ */
177
+ withGroups(groups: string[]): this;
178
+ /**
179
+ * Get the action payload without executing
180
+ * @returns The action data that would be sent
181
+ */
182
+ getData(): {
183
+ entity: string;
184
+ type: string | undefined;
185
+ actionName: string;
186
+ properties: CreateOutboundCallProperties;
187
+ associations?: OdinRecordLinkDto[];
188
+ journeyId?: string;
189
+ stageKey?: string;
190
+ externalId?: string;
191
+ externalAppId?: string;
192
+ groups?: string[];
193
+ };
194
+ /**
195
+ * Inject execution context (called by record wrapper)
196
+ * @internal
197
+ */
198
+ withProvider(provider: {
199
+ _applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
200
+ }, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
201
+ /**
202
+ * Execute the action
203
+ * @returns The result from the API
204
+ * @throws Error if withProvider() has not been called
205
+ */
206
+ execute(): Promise<any>;
207
+ /**
208
+ * Returns the request payload without executing (for debugging)
209
+ * @returns The request payload that would be sent to the API
210
+ */
211
+ dryRun(): Record<string, any>;
212
+ /**
213
+ * Prevents accidental `await builder` without .execute()
214
+ * @throws Error always - use .execute() or .dryRun() instead
215
+ */
216
+ then(): never;
217
+ }
218
+ /**
219
+ * CreateOutboundCall
220
+ *
221
+ * Create call on outbound call webhook
222
+ *
223
+ * @actionType CREATE - Creates a new Call record
224
+ * @module NotificationModule
225
+ * @entity Call
226
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
227
+ * @permission schema.action.createoutboundcall.trigger
228
+ * @benchmark This action is tracked for performance benchmarks
229
+ */
230
+ export declare class CreateOutboundCallDto extends OdinRecordCreateDto<CreateOutboundCallProperties> {
231
+ /** Used by SDK generators to identify action type */
232
+ static readonly ACTION_TYPE = "CREATE";
233
+ static readonly ACTION_KEY = "CreateOutboundCall";
234
+ static readonly MODULE_NAME = "NotificationModule";
235
+ static readonly ENTITIES: string[];
236
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall";
237
+ static readonly PERMISSION = "schema.action.createoutboundcall.trigger";
238
+ /** Step metadata - entity this action targets */
239
+ static readonly STEP_ENTITY = "NotificationModule:Call";
240
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
241
+ static readonly STEP_SCHEMA_ACTION_ID = "c30cd248-c889-47e3-8e50-44d97bc571fd";
242
+ static readonly AUTO_LINK_PARENT = true;
243
+ static readonly HAS_ASSOCIATIONS = true;
244
+ static readonly HAS_REQUIRED_ASSOCIATIONS = false;
245
+ static readonly BUILDER_CLASS = "CreateOutboundCallBuilder";
246
+ static readonly ASSOCIATION_FIELDS: readonly [{
247
+ readonly name: "Association_1778588918055";
248
+ readonly methodName: "linkAssociation_1778588918055";
249
+ readonly required: false;
250
+ readonly schemaAssociationId: "1a76c9bb-4359-435c-b61e-7bdfdcda7e13";
251
+ }];
252
+ readonly actionName: string;
253
+ readonly schemaActionId: string;
254
+ readonly entity: string;
255
+ constructor(properties: CreateOutboundCallProperties, options?: {
256
+ journeyId?: string;
257
+ });
258
+ }
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOutboundCall Action DTO
4
+ *
5
+ * Create call on outbound call webhook
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey CreateOutboundCall
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.CreateOutboundCallDto = exports.CreateOutboundCallBuilder = void 0;
25
+ const core_1 = require("@d19n/odin-types/dist/core");
26
+ /**
27
+ * Builder for CreateOutboundCall action
28
+ *
29
+ * Provides fluent API for adding associations before executing the action.
30
+ * Use .link*() methods to add associations, then call .execute() to run.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * await record.createOutboundCall({ ...properties })
35
+ * .linkAssociation_1778588918055({ id: '...', entity: '...' })
36
+ * .execute();
37
+ * ```
38
+ */
39
+ class CreateOutboundCallBuilder {
40
+ constructor(properties, pendingLinks, options) {
41
+ this._associations = [];
42
+ this._properties = properties;
43
+ this._pendingLinks = pendingLinks;
44
+ this._options = options;
45
+ }
46
+ /**
47
+ * Link Call__Contact
48
+ * @schemaAssociationId 1a76c9bb-4359-435c-b61e-7bdfdcda7e13
49
+ * @param target - The record to link
50
+ * @returns this (for method chaining)
51
+ */
52
+ linkAssociation_1778588918055(target) {
53
+ this._associations.push(new core_1.OdinRecordLinkDto({
54
+ id: target.id,
55
+ entity: 'entity' in target ? target.entity : target.entity,
56
+ }));
57
+ return this;
58
+ }
59
+ /**
60
+ * Set an external system identifier for this record.
61
+ * Links the record to a corresponding entry in an external application.
62
+ * @param externalId - The ID in the external system
63
+ * @param externalAppId - The external application identifier
64
+ * @returns this (for chaining)
65
+ */
66
+ withExternalId(externalId, externalAppId) {
67
+ this._externalId = externalId;
68
+ this._externalAppId = externalAppId;
69
+ return this;
70
+ }
71
+ /**
72
+ * Set security/access groups for this record.
73
+ * @param groups - Array of group names
74
+ * @returns this (for chaining)
75
+ */
76
+ withGroups(groups) {
77
+ this._groups = groups;
78
+ return this;
79
+ }
80
+ /**
81
+ * Get the action payload without executing
82
+ * @returns The action data that would be sent
83
+ */
84
+ getData() {
85
+ var _a, _b;
86
+ const allAssociations = [...this._associations, ...this._pendingLinks];
87
+ return Object.assign(Object.assign({ entity: 'NotificationModule:Call', type: undefined, actionName: 'CreateOutboundCall', properties: this._properties, associations: allAssociations.length > 0 ? allAssociations : undefined, journeyId: (_a = this._options) === null || _a === void 0 ? void 0 : _a.journeyId, stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey }, (this._externalId && { externalId: this._externalId, externalAppId: this._externalAppId })), (this._groups && { groups: this._groups }));
88
+ }
89
+ /**
90
+ * Inject execution context (called by record wrapper)
91
+ * @internal
92
+ */
93
+ withProvider(provider, moduleName, entityName, clearPendingLinks) {
94
+ this._provider = provider;
95
+ this._moduleName = moduleName;
96
+ this._entityName = entityName;
97
+ this._clearPendingLinks = clearPendingLinks;
98
+ return this;
99
+ }
100
+ /**
101
+ * Execute the action
102
+ * @returns The result from the API
103
+ * @throws Error if withProvider() has not been called
104
+ */
105
+ execute() {
106
+ var _a;
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ if (!this._provider || !this._moduleName || !this._entityName) {
109
+ throw new Error('Builder not connected to provider. Use the record wrapper API to get an executable builder.');
110
+ }
111
+ const result = yield this._provider._applyAction(this._moduleName, this._entityName, this.getData());
112
+ (_a = this._clearPendingLinks) === null || _a === void 0 ? void 0 : _a.call(this);
113
+ return result;
114
+ });
115
+ }
116
+ /**
117
+ * Returns the request payload without executing (for debugging)
118
+ * @returns The request payload that would be sent to the API
119
+ */
120
+ dryRun() {
121
+ return this.getData();
122
+ }
123
+ /**
124
+ * Prevents accidental `await builder` without .execute()
125
+ * @throws Error always - use .execute() or .dryRun() instead
126
+ */
127
+ then() {
128
+ throw new Error('Builder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
129
+ }
130
+ }
131
+ exports.CreateOutboundCallBuilder = CreateOutboundCallBuilder;
132
+ /**
133
+ * CreateOutboundCall
134
+ *
135
+ * Create call on outbound call webhook
136
+ *
137
+ * @actionType CREATE - Creates a new Call record
138
+ * @module NotificationModule
139
+ * @entity Call
140
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
141
+ * @permission schema.action.createoutboundcall.trigger
142
+ * @benchmark This action is tracked for performance benchmarks
143
+ */
144
+ class CreateOutboundCallDto extends core_1.OdinRecordCreateDto {
145
+ constructor(properties, options) {
146
+ super({
147
+ entity: 'NotificationModule:Call',
148
+ type: undefined,
149
+ properties,
150
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
151
+ });
152
+ this.actionName = 'CreateOutboundCall';
153
+ this.schemaActionId = 'c30cd248-c889-47e3-8e50-44d97bc571fd';
154
+ this.entity = 'NotificationModule:Call';
155
+ }
156
+ }
157
+ exports.CreateOutboundCallDto = CreateOutboundCallDto;
158
+ /** Used by SDK generators to identify action type */
159
+ CreateOutboundCallDto.ACTION_TYPE = 'CREATE';
160
+ CreateOutboundCallDto.ACTION_KEY = 'CreateOutboundCall';
161
+ CreateOutboundCallDto.MODULE_NAME = 'NotificationModule';
162
+ CreateOutboundCallDto.ENTITIES = ['Call'];
163
+ CreateOutboundCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall';
164
+ CreateOutboundCallDto.PERMISSION = 'schema.action.createoutboundcall.trigger';
165
+ /** Step metadata - entity this action targets */
166
+ CreateOutboundCallDto.STEP_ENTITY = 'NotificationModule:Call';
167
+ CreateOutboundCallDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
168
+ CreateOutboundCallDto.STEP_SCHEMA_ACTION_ID = 'c30cd248-c889-47e3-8e50-44d97bc571fd';
169
+ CreateOutboundCallDto.AUTO_LINK_PARENT = true;
170
+ CreateOutboundCallDto.HAS_ASSOCIATIONS = true;
171
+ CreateOutboundCallDto.HAS_REQUIRED_ASSOCIATIONS = false;
172
+ CreateOutboundCallDto.BUILDER_CLASS = 'CreateOutboundCallBuilder';
173
+ CreateOutboundCallDto.ASSOCIATION_FIELDS = [{ "name": "Association_1778588918055", "methodName": "linkAssociation_1778588918055", "required": false, "schemaAssociationId": "1a76c9bb-4359-435c-b61e-7bdfdcda7e13" }];
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * @module FieldServiceModule
7
7
  * @entity WorkOrder
8
+ * @entityType INSTALL_BUSINESS
8
9
  * @actionKey MoveBusinessInstallToComplete
9
10
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToComplete
10
11
  *
@@ -32,6 +33,7 @@ export interface MoveBusinessInstallToCompleteProperties {
32
33
  * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
33
34
  * @module FieldServiceModule
34
35
  * @entity WorkOrder
36
+ * @entityType INSTALL_BUSINESS (Business Install)
35
37
  * @targetStages BusinessInstallPipelineStageComplete
36
38
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToComplete
37
39
  * @permission schema.action.movebusinessinstalltocomplete.trigger
@@ -43,6 +45,7 @@ export declare class MoveBusinessInstallToCompleteDto extends OdinRecordUpdateDt
43
45
  static readonly ACTION_KEY = "MoveBusinessInstallToComplete";
44
46
  static readonly MODULE_NAME = "FieldServiceModule";
45
47
  static readonly ENTITIES: string[];
48
+ static readonly ENTITY_TYPE = "INSTALL_BUSINESS";
46
49
  static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToComplete";
47
50
  static readonly SCHEMA_ACTION_ID = "3592e38d-30c7-469f-991d-ea2013c07077";
48
51
  static readonly PERMISSION = "schema.action.movebusinessinstalltocomplete.trigger";
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @module FieldServiceModule
8
8
  * @entity WorkOrder
9
+ * @entityType INSTALL_BUSINESS
9
10
  * @actionKey MoveBusinessInstallToComplete
10
11
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToComplete
11
12
  *
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
22
23
  * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
23
24
  * @module FieldServiceModule
24
25
  * @entity WorkOrder
26
+ * @entityType INSTALL_BUSINESS (Business Install)
25
27
  * @targetStages BusinessInstallPipelineStageComplete
26
28
  * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToComplete
27
29
  * @permission schema.action.movebusinessinstalltocomplete.trigger
@@ -48,6 +50,7 @@ MoveBusinessInstallToCompleteDto.ACTION_TYPE = 'UPDATE';
48
50
  MoveBusinessInstallToCompleteDto.ACTION_KEY = 'MoveBusinessInstallToComplete';
49
51
  MoveBusinessInstallToCompleteDto.MODULE_NAME = 'FieldServiceModule';
50
52
  MoveBusinessInstallToCompleteDto.ENTITIES = ['WorkOrder'];
53
+ MoveBusinessInstallToCompleteDto.ENTITY_TYPE = 'INSTALL_BUSINESS';
51
54
  MoveBusinessInstallToCompleteDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToComplete';
52
55
  MoveBusinessInstallToCompleteDto.SCHEMA_ACTION_ID = '3592e38d-30c7-469f-991d-ea2013c07077';
53
56
  MoveBusinessInstallToCompleteDto.PERMISSION = 'schema.action.movebusinessinstalltocomplete.trigger';
@@ -200,6 +200,8 @@ export declare enum CallPropertyKeys {
200
200
  TimeInQueued = "TimeInQueued",
201
201
  /** TimeInProgress (Communications - Call) */
202
202
  TimeInProgress = "TimeInProgress",
203
+ /** Title of the call record */
204
+ Title = "Title",
203
205
  /** ActiveTransferId */
204
206
  ActiveTransferId = "ActiveTransferId",
205
207
  /** Data field for Call records. Used by Communications team. */
@@ -453,6 +455,11 @@ export interface CallProperties {
453
455
  * @type {TEXT}
454
456
  */
455
457
  TimeInProgress: string;
458
+ /** Title of the call record
459
+ *
460
+ * @type {TEXT}
461
+ */
462
+ Title: string;
456
463
  /** ActiveTransferId
457
464
  *
458
465
  * @type {TEXT}
@@ -200,6 +200,8 @@ var CallPropertyKeys;
200
200
  CallPropertyKeys["TimeInQueued"] = "TimeInQueued";
201
201
  /** TimeInProgress (Communications - Call) */
202
202
  CallPropertyKeys["TimeInProgress"] = "TimeInProgress";
203
+ /** Title of the call record */
204
+ CallPropertyKeys["Title"] = "Title";
203
205
  /** ActiveTransferId */
204
206
  CallPropertyKeys["ActiveTransferId"] = "ActiveTransferId";
205
207
  /** Data field for Call records. Used by Communications team. */
@@ -25,6 +25,10 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
25
25
  import { CallProperties } from '../entities-v2/Call';
26
26
  import { CreateCallProperties } from '../actions-v2/CreateCallDto';
27
27
  import { CreateCallBuilder } from '../actions-v2/CreateCallDto';
28
+ import { CreateInboundCallProperties } from '../actions-v2/CreateInboundCallDto';
29
+ import { CreateInboundCallBuilder } from '../actions-v2/CreateInboundCallDto';
30
+ import { CreateOutboundCallProperties } from '../actions-v2/CreateOutboundCallDto';
31
+ import { CreateOutboundCallBuilder } from '../actions-v2/CreateOutboundCallDto';
28
32
  import { UpdateCallOnInboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnInboundCallAnsweredDto';
29
33
  import { UpdateCallOnInboundCallCanceledProperties } from '../actions-v2/UpdateCallOnInboundCallCanceledDto';
30
34
  import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
@@ -365,6 +369,56 @@ export declare class CallRecord<TProps = CallProperties> {
365
369
  journeyId?: string;
366
370
  stageKey?: string;
367
371
  }): CreateCallBuilder;
372
+ /**
373
+ * CreateInboundCall
374
+ *
375
+ * Creates a new Call record with the specified properties.
376
+ * Returns a builder with fluent .link*() methods for associations.
377
+ * Call .execute() to create or .dryRun() for debugging.
378
+ *
379
+ * @param properties - The properties for the new record
380
+ * @param options - Optional settings
381
+ * @param options.journeyId - Associate with a journey
382
+ * @param options.stageKey - Set initial pipeline stage
383
+ * @returns CreateInboundCallBuilder - chain .link*() then .execute()
384
+ *
385
+ * @example
386
+ * ```typescript
387
+ * const record = odinClient.calls.new();
388
+ * await record.createInboundCall({ ... })
389
+ * .linkAssociation_xxx(target)
390
+ * .execute();
391
+ * ```
392
+ */
393
+ createInboundCall(properties: CreateInboundCallProperties, options?: {
394
+ journeyId?: string;
395
+ stageKey?: string;
396
+ }): CreateInboundCallBuilder;
397
+ /**
398
+ * CreateOutboundCall
399
+ *
400
+ * Creates a new Call record with the specified properties.
401
+ * Returns a builder with fluent .link*() methods for associations.
402
+ * Call .execute() to create or .dryRun() for debugging.
403
+ *
404
+ * @param properties - The properties for the new record
405
+ * @param options - Optional settings
406
+ * @param options.journeyId - Associate with a journey
407
+ * @param options.stageKey - Set initial pipeline stage
408
+ * @returns CreateOutboundCallBuilder - chain .link*() then .execute()
409
+ *
410
+ * @example
411
+ * ```typescript
412
+ * const record = odinClient.calls.new();
413
+ * await record.createOutboundCall({ ... })
414
+ * .linkAssociation_xxx(target)
415
+ * .execute();
416
+ * ```
417
+ */
418
+ createOutboundCall(properties: CreateOutboundCallProperties, options?: {
419
+ journeyId?: string;
420
+ stageKey?: string;
421
+ }): CreateOutboundCallBuilder;
368
422
  /**
369
423
  * UpdateCallOnInboundCallAnswered
370
424
  *
@@ -33,6 +33,8 @@ 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 CreateCallDto_1 = require("../actions-v2/CreateCallDto");
36
+ const CreateInboundCallDto_1 = require("../actions-v2/CreateInboundCallDto");
37
+ const CreateOutboundCallDto_1 = require("../actions-v2/CreateOutboundCallDto");
36
38
  const LeadRecord_1 = require("./LeadRecord");
37
39
  const FileRecord_1 = require("./FileRecord");
38
40
  const ActivityLogRecord_1 = require("./ActivityLogRecord");
@@ -503,6 +505,54 @@ class CallRecord {
503
505
  createCall(properties, options) {
504
506
  return new CreateCallDto_1.CreateCallBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'NotificationModule', 'Call', () => { this._pendingLinks = []; });
505
507
  }
508
+ /**
509
+ * CreateInboundCall
510
+ *
511
+ * Creates a new Call record with the specified properties.
512
+ * Returns a builder with fluent .link*() methods for associations.
513
+ * Call .execute() to create or .dryRun() for debugging.
514
+ *
515
+ * @param properties - The properties for the new record
516
+ * @param options - Optional settings
517
+ * @param options.journeyId - Associate with a journey
518
+ * @param options.stageKey - Set initial pipeline stage
519
+ * @returns CreateInboundCallBuilder - chain .link*() then .execute()
520
+ *
521
+ * @example
522
+ * ```typescript
523
+ * const record = odinClient.calls.new();
524
+ * await record.createInboundCall({ ... })
525
+ * .linkAssociation_xxx(target)
526
+ * .execute();
527
+ * ```
528
+ */
529
+ createInboundCall(properties, options) {
530
+ return new CreateInboundCallDto_1.CreateInboundCallBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'NotificationModule', 'Call', () => { this._pendingLinks = []; });
531
+ }
532
+ /**
533
+ * CreateOutboundCall
534
+ *
535
+ * Creates a new Call record with the specified properties.
536
+ * Returns a builder with fluent .link*() methods for associations.
537
+ * Call .execute() to create or .dryRun() for debugging.
538
+ *
539
+ * @param properties - The properties for the new record
540
+ * @param options - Optional settings
541
+ * @param options.journeyId - Associate with a journey
542
+ * @param options.stageKey - Set initial pipeline stage
543
+ * @returns CreateOutboundCallBuilder - chain .link*() then .execute()
544
+ *
545
+ * @example
546
+ * ```typescript
547
+ * const record = odinClient.calls.new();
548
+ * await record.createOutboundCall({ ... })
549
+ * .linkAssociation_xxx(target)
550
+ * .execute();
551
+ * ```
552
+ */
553
+ createOutboundCall(properties, options) {
554
+ return new CreateOutboundCallDto_1.CreateOutboundCallBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'NotificationModule', 'Call', () => { this._pendingLinks = []; });
555
+ }
506
556
  // ============================================
507
557
  // UPDATE ACTIONS (require existing record)
508
558
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.113",
3
+ "version": "2.0.115",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",