@d19n/youfibre-odin-sdk 2.0.113 → 2.0.114

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,140 @@
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 { OdinRecordCreateDto, OdinRecordCreatedEvent } 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
+ * CreateInboundCall
111
+ *
112
+ * Create call on inbound call webhook
113
+ *
114
+ * @actionType CREATE - Creates a new Call record
115
+ * @module NotificationModule
116
+ * @entity Call
117
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
118
+ * @permission schema.action.createinboundcall.trigger
119
+ * @benchmark This action is tracked for performance benchmarks
120
+ */
121
+ export declare class CreateInboundCallDto extends OdinRecordCreateDto<CreateInboundCallProperties> {
122
+ /** Used by SDK generators to identify action type */
123
+ static readonly ACTION_TYPE = "CREATE";
124
+ static readonly ACTION_KEY = "CreateInboundCall";
125
+ static readonly MODULE_NAME = "NotificationModule";
126
+ static readonly ENTITIES: string[];
127
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall";
128
+ static readonly PERMISSION = "schema.action.createinboundcall.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 = "299d1984-3e76-45ce-90ec-088398480578";
133
+ static readonly AUTO_LINK_PARENT = true;
134
+ readonly actionName: string;
135
+ readonly schemaActionId: string;
136
+ readonly entity: string;
137
+ constructor(properties: CreateInboundCallProperties, options?: {
138
+ journeyId?: string;
139
+ });
140
+ }
@@ -0,0 +1,54 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateInboundCallDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateInboundCall
19
+ *
20
+ * Create call on inbound call webhook
21
+ *
22
+ * @actionType CREATE - Creates a new Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall
26
+ * @permission schema.action.createinboundcall.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateInboundCallDto 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 = 'CreateInboundCall';
38
+ this.schemaActionId = '299d1984-3e76-45ce-90ec-088398480578';
39
+ this.entity = 'NotificationModule:Call';
40
+ }
41
+ }
42
+ exports.CreateInboundCallDto = CreateInboundCallDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateInboundCallDto.ACTION_TYPE = 'CREATE';
45
+ CreateInboundCallDto.ACTION_KEY = 'CreateInboundCall';
46
+ CreateInboundCallDto.MODULE_NAME = 'NotificationModule';
47
+ CreateInboundCallDto.ENTITIES = ['Call'];
48
+ CreateInboundCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall';
49
+ CreateInboundCallDto.PERMISSION = 'schema.action.createinboundcall.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ CreateInboundCallDto.STEP_ENTITY = 'NotificationModule:Call';
52
+ CreateInboundCallDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
53
+ CreateInboundCallDto.STEP_SCHEMA_ACTION_ID = '299d1984-3e76-45ce-90ec-088398480578';
54
+ CreateInboundCallDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,156 @@
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 { OdinRecordCreateDto, OdinRecordCreatedEvent } 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
+ * CreateOutboundCall
127
+ *
128
+ * Create call on outbound call webhook
129
+ *
130
+ * @actionType CREATE - Creates a new Call record
131
+ * @module NotificationModule
132
+ * @entity Call
133
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
134
+ * @permission schema.action.createoutboundcall.trigger
135
+ * @benchmark This action is tracked for performance benchmarks
136
+ */
137
+ export declare class CreateOutboundCallDto extends OdinRecordCreateDto<CreateOutboundCallProperties> {
138
+ /** Used by SDK generators to identify action type */
139
+ static readonly ACTION_TYPE = "CREATE";
140
+ static readonly ACTION_KEY = "CreateOutboundCall";
141
+ static readonly MODULE_NAME = "NotificationModule";
142
+ static readonly ENTITIES: string[];
143
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall";
144
+ static readonly PERMISSION = "schema.action.createoutboundcall.trigger";
145
+ /** Step metadata - entity this action targets */
146
+ static readonly STEP_ENTITY = "NotificationModule:Call";
147
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
148
+ static readonly STEP_SCHEMA_ACTION_ID = "c30cd248-c889-47e3-8e50-44d97bc571fd";
149
+ static readonly AUTO_LINK_PARENT = true;
150
+ readonly actionName: string;
151
+ readonly schemaActionId: string;
152
+ readonly entity: string;
153
+ constructor(properties: CreateOutboundCallProperties, options?: {
154
+ journeyId?: string;
155
+ });
156
+ }
@@ -0,0 +1,54 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateOutboundCallDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateOutboundCall
19
+ *
20
+ * Create call on outbound call webhook
21
+ *
22
+ * @actionType CREATE - Creates a new Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall
26
+ * @permission schema.action.createoutboundcall.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateOutboundCallDto 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 = 'CreateOutboundCall';
38
+ this.schemaActionId = 'c30cd248-c889-47e3-8e50-44d97bc571fd';
39
+ this.entity = 'NotificationModule:Call';
40
+ }
41
+ }
42
+ exports.CreateOutboundCallDto = CreateOutboundCallDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateOutboundCallDto.ACTION_TYPE = 'CREATE';
45
+ CreateOutboundCallDto.ACTION_KEY = 'CreateOutboundCall';
46
+ CreateOutboundCallDto.MODULE_NAME = 'NotificationModule';
47
+ CreateOutboundCallDto.ENTITIES = ['Call'];
48
+ CreateOutboundCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall';
49
+ CreateOutboundCallDto.PERMISSION = 'schema.action.createoutboundcall.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ CreateOutboundCallDto.STEP_ENTITY = 'NotificationModule:Call';
52
+ CreateOutboundCallDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
53
+ CreateOutboundCallDto.STEP_SCHEMA_ACTION_ID = 'c30cd248-c889-47e3-8e50-44d97bc571fd';
54
+ CreateOutboundCallDto.AUTO_LINK_PARENT = true;
@@ -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,8 @@ 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 { CreateOutboundCallProperties } from '../actions-v2/CreateOutboundCallDto';
28
30
  import { UpdateCallOnInboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnInboundCallAnsweredDto';
29
31
  import { UpdateCallOnInboundCallCanceledProperties } from '../actions-v2/UpdateCallOnInboundCallCanceledDto';
30
32
  import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
@@ -365,6 +367,62 @@ export declare class CallRecord<TProps = CallProperties> {
365
367
  journeyId?: string;
366
368
  stageKey?: string;
367
369
  }): CreateCallBuilder;
370
+ /**
371
+ * CreateInboundCall
372
+ *
373
+ * Creates a new Call record with the specified properties.
374
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
375
+ *
376
+ * @param properties - The properties for the new record
377
+ * @param options - Optional settings
378
+ * @param options.type - Override the record type
379
+ * @param options.journeyId - Associate with a journey
380
+ * @param options.stageKey - Set initial pipeline stage
381
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
382
+ *
383
+ * @example
384
+ * ```typescript
385
+ * // Create with properties
386
+ * const record = odinClient.calls.new();
387
+ * await record.createInboundCall({ ... }).execute();
388
+ *
389
+ * // Dry run (for debugging)
390
+ * const payload = record.createInboundCall({ ... }).dryRun();
391
+ * ```
392
+ */
393
+ createInboundCall(properties: CreateInboundCallProperties, options?: {
394
+ type?: string;
395
+ journeyId?: string;
396
+ stageKey?: string;
397
+ }): ActionBuilder;
398
+ /**
399
+ * CreateOutboundCall
400
+ *
401
+ * Creates a new Call record with the specified properties.
402
+ * Returns an ActionBuilder - 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.type - Override the record type
407
+ * @param options.journeyId - Associate with a journey
408
+ * @param options.stageKey - Set initial pipeline stage
409
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
410
+ *
411
+ * @example
412
+ * ```typescript
413
+ * // Create with properties
414
+ * const record = odinClient.calls.new();
415
+ * await record.createOutboundCall({ ... }).execute();
416
+ *
417
+ * // Dry run (for debugging)
418
+ * const payload = record.createOutboundCall({ ... }).dryRun();
419
+ * ```
420
+ */
421
+ createOutboundCall(properties: CreateOutboundCallProperties, options?: {
422
+ type?: string;
423
+ journeyId?: string;
424
+ stageKey?: string;
425
+ }): ActionBuilder;
368
426
  /**
369
427
  * UpdateCallOnInboundCallAnswered
370
428
  *
@@ -503,6 +503,78 @@ class CallRecord {
503
503
  createCall(properties, options) {
504
504
  return new CreateCallDto_1.CreateCallBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'NotificationModule', 'Call', () => { this._pendingLinks = []; });
505
505
  }
506
+ /**
507
+ * CreateInboundCall
508
+ *
509
+ * Creates a new Call record with the specified properties.
510
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
511
+ *
512
+ * @param properties - The properties for the new record
513
+ * @param options - Optional settings
514
+ * @param options.type - Override the record type
515
+ * @param options.journeyId - Associate with a journey
516
+ * @param options.stageKey - Set initial pipeline stage
517
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
518
+ *
519
+ * @example
520
+ * ```typescript
521
+ * // Create with properties
522
+ * const record = odinClient.calls.new();
523
+ * await record.createInboundCall({ ... }).execute();
524
+ *
525
+ * // Dry run (for debugging)
526
+ * const payload = record.createInboundCall({ ... }).dryRun();
527
+ * ```
528
+ */
529
+ createInboundCall(properties, options) {
530
+ var _a, _b;
531
+ const payload = {
532
+ entity: 'NotificationModule:Call',
533
+ 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,
534
+ actionName: 'CreateInboundCall',
535
+ properties: properties || {},
536
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
537
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
538
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
539
+ };
540
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
541
+ }
542
+ /**
543
+ * CreateOutboundCall
544
+ *
545
+ * Creates a new Call record with the specified properties.
546
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
547
+ *
548
+ * @param properties - The properties for the new record
549
+ * @param options - Optional settings
550
+ * @param options.type - Override the record type
551
+ * @param options.journeyId - Associate with a journey
552
+ * @param options.stageKey - Set initial pipeline stage
553
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
554
+ *
555
+ * @example
556
+ * ```typescript
557
+ * // Create with properties
558
+ * const record = odinClient.calls.new();
559
+ * await record.createOutboundCall({ ... }).execute();
560
+ *
561
+ * // Dry run (for debugging)
562
+ * const payload = record.createOutboundCall({ ... }).dryRun();
563
+ * ```
564
+ */
565
+ createOutboundCall(properties, options) {
566
+ var _a, _b;
567
+ const payload = {
568
+ entity: 'NotificationModule:Call',
569
+ 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,
570
+ actionName: 'CreateOutboundCall',
571
+ properties: properties || {},
572
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
573
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
574
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
575
+ };
576
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
577
+ }
506
578
  // ============================================
507
579
  // UPDATE ACTIONS (require existing record)
508
580
  // ============================================
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.114",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",