@d19n/youfibre-odin-sdk 2.0.111 → 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.
Files changed (34) hide show
  1. package/README.md +3 -1
  2. package/dist/actions-v2/CompleteCollectionInspectionDetailsDto.d.ts +5 -0
  3. package/dist/actions-v2/CompleteCollectionInspectionDetailsDto.js +5 -0
  4. package/dist/actions-v2/CompleteInstallWorkOrderFlowDto.d.ts +3 -0
  5. package/dist/actions-v2/CompleteInstallWorkOrderFlowDto.js +3 -0
  6. package/dist/actions-v2/CompleteServiceWorkOrderFlowDto.d.ts +3 -0
  7. package/dist/actions-v2/CompleteServiceWorkOrderFlowDto.js +3 -0
  8. package/dist/actions-v2/CreateCallDto.d.ts +8 -1
  9. package/dist/actions-v2/CreateInboundCallDto.d.ts +140 -0
  10. package/dist/actions-v2/CreateInboundCallDto.js +54 -0
  11. package/dist/actions-v2/CreateOutboundCallDto.d.ts +156 -0
  12. package/dist/actions-v2/CreateOutboundCallDto.js +54 -0
  13. package/dist/actions-v2/MoveBusinessInstallToCompleteDto.d.ts +3 -0
  14. package/dist/actions-v2/MoveBusinessInstallToCompleteDto.js +3 -0
  15. package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -0
  16. package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -0
  17. package/dist/api-sdk-v2/TransactionApi.d.ts +2 -0
  18. package/dist/api-sdk-v2/TransactionApi.js +6 -0
  19. package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -0
  20. package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -0
  21. package/dist/db-sdk-v2/TransactionDb.d.ts +2 -0
  22. package/dist/db-sdk-v2/TransactionDb.js +6 -0
  23. package/dist/entities-v2/Call.d.ts +7 -0
  24. package/dist/entities-v2/Call.js +2 -0
  25. package/dist/entities-v2/PaymentMethodRefund.d.ts +7 -0
  26. package/dist/entities-v2/PaymentMethodRefund.js +5 -1
  27. package/dist/entities-v2/Transaction.d.ts +3 -0
  28. package/dist/records-v2/CallRecord.d.ts +58 -0
  29. package/dist/records-v2/CallRecord.js +72 -0
  30. package/dist/records-v2/PaymentMethodRefundRecord.d.ts +20 -0
  31. package/dist/records-v2/PaymentMethodRefundRecord.js +33 -0
  32. package/dist/records-v2/TransactionRecord.d.ts +20 -0
  33. package/dist/records-v2/TransactionRecord.js +33 -0
  34. package/package.json +1 -1
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';
@@ -26,6 +26,7 @@ export declare class PaymentMethodRefundApi extends ApiProvider {
26
26
  private _workorder?;
27
27
  private _invoice?;
28
28
  private _activity?;
29
+ private _transaction?;
29
30
  constructor(authParams?: OauthParams, authToken?: string);
30
31
  get reward(): ApiRecordLinkManager;
31
32
  get file(): ApiRecordLinkManager;
@@ -36,6 +37,7 @@ export declare class PaymentMethodRefundApi extends ApiProvider {
36
37
  get workorder(): ApiRecordLinkManager;
37
38
  get invoice(): ApiRecordLinkManager;
38
39
  get activity(): ApiRecordLinkManager;
40
+ get transaction(): ApiRecordLinkManager;
39
41
  setRecord(sourceRecord: any): void;
40
42
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
41
43
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PaymentMethodRefundProperties>>>;
@@ -87,6 +87,12 @@ class PaymentMethodRefundApi extends api_provider_1.ApiProvider {
87
87
  }
88
88
  return this._activity;
89
89
  }
90
+ get transaction() {
91
+ if (!this._transaction) {
92
+ this._transaction = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PaymentMethodRefund', 'BillingModule:Transaction', 'PaymentMethodRefund__Transaction');
93
+ }
94
+ return this._transaction;
95
+ }
90
96
  // ============================================
91
97
  // STANDARD METHODS (Unchanged API)
92
98
  // ============================================
@@ -25,6 +25,7 @@ export declare class TransactionApi extends ApiProvider {
25
25
  private _transaction?;
26
26
  private _billingrequest?;
27
27
  private _payment?;
28
+ private _paymentmethodrefund?;
28
29
  constructor(authParams?: OauthParams, authToken?: string);
29
30
  get file(): ApiRecordLinkManager;
30
31
  get note(): ApiRecordLinkManager;
@@ -34,6 +35,7 @@ export declare class TransactionApi extends ApiProvider {
34
35
  get transaction(): ApiRecordLinkManager;
35
36
  get billingrequest(): ApiRecordLinkManager;
36
37
  get payment(): ApiRecordLinkManager;
38
+ get paymentmethodrefund(): ApiRecordLinkManager;
37
39
  setRecord(sourceRecord: any): void;
38
40
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
39
41
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<TransactionProperties>>>;
@@ -81,6 +81,12 @@ class TransactionApi extends api_provider_1.ApiProvider {
81
81
  }
82
82
  return this._payment;
83
83
  }
84
+ get paymentmethodrefund() {
85
+ if (!this._paymentmethodrefund) {
86
+ this._paymentmethodrefund = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:Transaction', 'BillingModule:PaymentMethodRefund', 'PaymentMethodRefund__Transaction');
87
+ }
88
+ return this._paymentmethodrefund;
89
+ }
84
90
  // ============================================
85
91
  // STANDARD METHODS (Unchanged API)
86
92
  // ============================================
@@ -30,6 +30,7 @@ export declare class PaymentMethodRefundDb extends DbProvider {
30
30
  private _workorder?;
31
31
  private _invoice?;
32
32
  private _activity?;
33
+ private _transaction?;
33
34
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
34
35
  get reward(): DbRecordLinkManager;
35
36
  get file(): DbRecordLinkManager;
@@ -40,6 +41,7 @@ export declare class PaymentMethodRefundDb extends DbProvider {
40
41
  get workorder(): DbRecordLinkManager;
41
42
  get invoice(): DbRecordLinkManager;
42
43
  get activity(): DbRecordLinkManager;
44
+ get transaction(): DbRecordLinkManager;
43
45
  setRecord(sourceRecord: any): void;
44
46
  /**
45
47
  * Search records with manual pagination control
@@ -92,6 +92,12 @@ class PaymentMethodRefundDb extends db_provider_1.DbProvider {
92
92
  }
93
93
  return this._activity;
94
94
  }
95
+ get transaction() {
96
+ if (!this._transaction) {
97
+ this._transaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PaymentMethodRefund', 'BillingModule:Transaction', 'PaymentMethodRefund__Transaction');
98
+ }
99
+ return this._transaction;
100
+ }
95
101
  // ============================================
96
102
  // STANDARD METHODS
97
103
  // ============================================
@@ -29,6 +29,7 @@ export declare class TransactionDb extends DbProvider {
29
29
  private _transaction?;
30
30
  private _billingrequest?;
31
31
  private _payment?;
32
+ private _paymentmethodrefund?;
32
33
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
33
34
  get file(): DbRecordLinkManager;
34
35
  get note(): DbRecordLinkManager;
@@ -38,6 +39,7 @@ export declare class TransactionDb extends DbProvider {
38
39
  get transaction(): DbRecordLinkManager;
39
40
  get billingrequest(): DbRecordLinkManager;
40
41
  get payment(): DbRecordLinkManager;
42
+ get paymentmethodrefund(): DbRecordLinkManager;
41
43
  setRecord(sourceRecord: any): void;
42
44
  /**
43
45
  * Search records with manual pagination control
@@ -86,6 +86,12 @@ class TransactionDb extends db_provider_1.DbProvider {
86
86
  }
87
87
  return this._payment;
88
88
  }
89
+ get paymentmethodrefund() {
90
+ if (!this._paymentmethodrefund) {
91
+ this._paymentmethodrefund = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:Transaction', 'BillingModule:PaymentMethodRefund', 'PaymentMethodRefund__Transaction');
92
+ }
93
+ return this._paymentmethodrefund;
94
+ }
89
95
  // ============================================
90
96
  // STANDARD METHODS
91
97
  // ============================================
@@ -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. */
@@ -20,6 +20,7 @@ import { ContactProperties } from './Contact';
20
20
  import { WorkOrderProperties } from './WorkOrder';
21
21
  import { InvoiceProperties } from './Invoice';
22
22
  import { ActivityProperties } from './Activity';
23
+ import { TransactionProperties } from './Transaction';
23
24
  /**
24
25
  * Available types for PaymentMethodRefund records
25
26
  */
@@ -196,6 +197,8 @@ export declare class PaymentMethodRefund extends OdinRecord<PaymentMethodRefundP
196
197
  Invoice: OdinLink<LinkedOdinRecord<InvoiceProperties>>;
197
198
  /** Linked Activity records (PaymentMethodRefund__Activity) */
198
199
  Activity: OdinLink<LinkedOdinRecord<ActivityProperties>>;
200
+ /** Linked Transaction records (PaymentMethodRefund__Transaction) */
201
+ Transaction: OdinLink<LinkedOdinRecord<TransactionProperties>>;
199
202
  }
200
203
  /**
201
204
  * RabbitMQ routing keys for PaymentMethodRefund events
@@ -237,3 +240,7 @@ export declare const ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_INVOICE_DELETED = "B
237
240
  export declare const ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_CREATED = "BillingModule.PaymentMethodRefund.Activity.SubDbRecordAssociationCreated";
238
241
  /** Event: PaymentMethodRefund__Activity link deleted */
239
242
  export declare const ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_DELETED = "BillingModule.PaymentMethodRefund.Activity.SubDbRecordAssociationDeleted";
243
+ /** Event: PaymentMethodRefund__Transaction link created */
244
+ export declare const ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_TRANSACTION_CREATED = "BillingModule.PaymentMethodRefund.Transaction.SubDbRecordAssociationCreated";
245
+ /** Event: PaymentMethodRefund__Transaction link deleted */
246
+ export declare const ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_TRANSACTION_DELETED = "BillingModule.PaymentMethodRefund.Transaction.SubDbRecordAssociationDeleted";
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_INVOICE_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_INVOICE_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ORDER_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ORDER_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_NOTE_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_NOTE_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_FILE_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_FILE_CREATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DEFAULT_DELETED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DEFAULT_UPDATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DEFAULT_CREATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DELETED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_UPDATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_CREATED = exports.PaymentMethodRefund = exports.PaymentMethodRefundPropertyKeys = exports.PaymentMethodRefundOutcome = exports.DefaultPaymentMethodRefundStageKeys = exports.DefaultPaymentMethodRefundStageNames = exports.PaymentMethodRefundEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_TRANSACTION_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_TRANSACTION_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_INVOICE_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_INVOICE_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ORDER_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ORDER_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_NOTE_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_NOTE_CREATED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_FILE_DELETED = exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_FILE_CREATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DEFAULT_DELETED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DEFAULT_UPDATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DEFAULT_CREATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_DELETED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_UPDATED = exports.ROUTING_KEY_PAYMENT_METHOD_REFUND_CREATED = exports.PaymentMethodRefund = exports.PaymentMethodRefundPropertyKeys = exports.PaymentMethodRefundOutcome = exports.DefaultPaymentMethodRefundStageKeys = exports.DefaultPaymentMethodRefundStageNames = exports.PaymentMethodRefundEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for PaymentMethodRefund records
@@ -153,3 +153,7 @@ exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_INVOICE_DELETED = 'BillingModule.
153
153
  exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_CREATED = 'BillingModule.PaymentMethodRefund.Activity.SubDbRecordAssociationCreated';
154
154
  /** Event: PaymentMethodRefund__Activity link deleted */
155
155
  exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_ACTIVITY_DELETED = 'BillingModule.PaymentMethodRefund.Activity.SubDbRecordAssociationDeleted';
156
+ /** Event: PaymentMethodRefund__Transaction link created */
157
+ exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_TRANSACTION_CREATED = 'BillingModule.PaymentMethodRefund.Transaction.SubDbRecordAssociationCreated';
158
+ /** Event: PaymentMethodRefund__Transaction link deleted */
159
+ exports.ROUTING_KEY_LINK_PAYMENT_METHOD_REFUND_TRANSACTION_DELETED = 'BillingModule.PaymentMethodRefund.Transaction.SubDbRecordAssociationDeleted';
@@ -18,6 +18,7 @@ import { InvoiceProperties } from './Invoice';
18
18
  import { CreditNoteProperties } from './CreditNote';
19
19
  import { BillingRequestProperties } from './BillingRequest';
20
20
  import { PaymentProperties } from './Payment';
21
+ import { PaymentMethodRefundProperties } from './PaymentMethodRefund';
21
22
  /**
22
23
  * Available types for Transaction records
23
24
  */
@@ -348,6 +349,8 @@ export declare class Transaction extends OdinRecord<TransactionProperties> {
348
349
  BillingRequest: OdinLink<LinkedOdinRecord<BillingRequestProperties>>;
349
350
  /** Linked Payment records (Payment_Transaction) */
350
351
  Payment: OdinLink<LinkedOdinRecord<PaymentProperties>>;
352
+ /** Linked PaymentMethodRefund records (PaymentMethodRefund__Transaction) */
353
+ PaymentMethodRefund: OdinLink<LinkedOdinRecord<PaymentMethodRefundProperties>>;
351
354
  }
352
355
  /**
353
356
  * RabbitMQ routing keys for Transaction events
@@ -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
  // ============================================
@@ -34,6 +34,7 @@ import { ContactRecord } from './ContactRecord';
34
34
  import { WorkOrderRecord } from './WorkOrderRecord';
35
35
  import { InvoiceRecord } from './InvoiceRecord';
36
36
  import { ActivityRecord } from './ActivityRecord';
37
+ import { TransactionRecord } from './TransactionRecord';
37
38
  /**
38
39
  * Builder for action execution with dryRun support
39
40
  *
@@ -168,6 +169,7 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
168
169
  private _workOrders?;
169
170
  private _invoices?;
170
171
  private _activities?;
172
+ private _transactions?;
171
173
  /**
172
174
  * Create a record wrapper.
173
175
  * @param record - The underlying record, or null for create operations
@@ -355,6 +357,24 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
355
357
  * ```
356
358
  */
357
359
  get activities(): RecordLinkManager<ActivityRecord, typeof PaymentMethodRefundRecord['activitiesLabels'][number]>;
360
+ /** Valid labels for Transaction associations */
361
+ static readonly transactionsLabels: readonly ["PaymentMethodRefund__Transaction"];
362
+ /**
363
+ * Access linked Transaction records
364
+ * @remarks Available labels: PaymentMethodRefund__Transaction
365
+ * @throws Error if called on a new (unsaved) record
366
+ *
367
+ * @example
368
+ * ```typescript
369
+ * // Get all linked Transaction records
370
+ * const items = await record.transactions.list();
371
+ * const first = await record.transactions.first();
372
+ *
373
+ * // Filter by label
374
+ * const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
375
+ * ```
376
+ */
377
+ get transactions(): RecordLinkManager<TransactionRecord, typeof PaymentMethodRefundRecord['transactionsLabels'][number]>;
358
378
  /**
359
379
  * Queue a link to be created with the next action.
360
380
  * Works for both create and update actions.
@@ -40,6 +40,7 @@ const ContactRecord_1 = require("./ContactRecord");
40
40
  const WorkOrderRecord_1 = require("./WorkOrderRecord");
41
41
  const InvoiceRecord_1 = require("./InvoiceRecord");
42
42
  const ActivityRecord_1 = require("./ActivityRecord");
43
+ const TransactionRecord_1 = require("./TransactionRecord");
43
44
  /**
44
45
  * Builder for action execution with dryRun support
45
46
  *
@@ -527,6 +528,36 @@ class PaymentMethodRefundRecord {
527
528
  }
528
529
  return this._activities;
529
530
  }
531
+ /**
532
+ * Access linked Transaction records
533
+ * @remarks Available labels: PaymentMethodRefund__Transaction
534
+ * @throws Error if called on a new (unsaved) record
535
+ *
536
+ * @example
537
+ * ```typescript
538
+ * // Get all linked Transaction records
539
+ * const items = await record.transactions.list();
540
+ * const first = await record.transactions.first();
541
+ *
542
+ * // Filter by label
543
+ * const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
544
+ * ```
545
+ */
546
+ get transactions() {
547
+ var _a;
548
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
549
+ throw new Error('Cannot access links on a new (unsaved) record');
550
+ if (!this._transactions) {
551
+ this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
552
+ sourceEntity: 'BillingModule:PaymentMethodRefund',
553
+ targetEntity: 'BillingModule:Transaction',
554
+ targetModuleName: 'BillingModule',
555
+ targetEntityName: 'Transaction',
556
+ labels: ['PaymentMethodRefund__Transaction'],
557
+ }, TransactionRecord_1.TransactionRecord);
558
+ }
559
+ return this._transactions;
560
+ }
530
561
  // ============================================
531
562
  // LINK MANAGEMENT
532
563
  // ============================================
@@ -707,6 +738,8 @@ PaymentMethodRefundRecord.workOrdersLabels = ['PaymentMethodRefund__WorkOrder'];
707
738
  PaymentMethodRefundRecord.invoicesLabels = ['PaymentMethodRefund__Invoice'];
708
739
  /** Valid labels for Activity associations */
709
740
  PaymentMethodRefundRecord.activitiesLabels = ['PaymentMethodRefund__Activity'];
741
+ /** Valid labels for Transaction associations */
742
+ PaymentMethodRefundRecord.transactionsLabels = ['PaymentMethodRefund__Transaction'];
710
743
  /** Type guard to check if an object is a PaymentMethodRefundRecord */
711
744
  function isPaymentMethodRefundRecord(obj) {
712
745
  return obj instanceof PaymentMethodRefundRecord;
@@ -39,6 +39,7 @@ import { InvoiceRecord } from './InvoiceRecord';
39
39
  import { CreditNoteRecord } from './CreditNoteRecord';
40
40
  import { BillingRequestRecord } from './BillingRequestRecord';
41
41
  import { PaymentRecord } from './PaymentRecord';
42
+ import { PaymentMethodRefundRecord } from './PaymentMethodRefundRecord';
42
43
  /** Valid entity types for Transaction */
43
44
  export declare type TransactionType = 'DEFAULT';
44
45
  /**
@@ -112,6 +113,7 @@ export declare class TransactionRecord<TProps = TransactionProperties> {
112
113
  private _transactions?;
113
114
  private _billingRequests?;
114
115
  private _payments?;
116
+ private _paymentMethodRefunds?;
115
117
  /**
116
118
  * Create a record wrapper.
117
119
  * @param record - The underlying record, or null for create operations
@@ -297,6 +299,24 @@ export declare class TransactionRecord<TProps = TransactionProperties> {
297
299
  * ```
298
300
  */
299
301
  get payments(): RecordLinkManager<PaymentRecord, typeof TransactionRecord['paymentsLabels'][number]>;
302
+ /** Valid labels for PaymentMethodRefund associations */
303
+ static readonly paymentMethodRefundsLabels: readonly ["PaymentMethodRefund__Transaction"];
304
+ /**
305
+ * Access linked PaymentMethodRefund records
306
+ * @remarks Available labels: PaymentMethodRefund__Transaction
307
+ * @throws Error if called on a new (unsaved) record
308
+ *
309
+ * @example
310
+ * ```typescript
311
+ * // Get all linked PaymentMethodRefund records
312
+ * const items = await record.paymentMethodRefunds.list();
313
+ * const first = await record.paymentMethodRefunds.first();
314
+ *
315
+ * // Filter by label
316
+ * const specific = await record.paymentMethodRefunds.first({ label: 'PaymentMethodRefund__Transaction' });
317
+ * ```
318
+ */
319
+ get paymentMethodRefunds(): RecordLinkManager<PaymentMethodRefundRecord, typeof TransactionRecord['paymentMethodRefundsLabels'][number]>;
300
320
  /**
301
321
  * Queue a link to be created with the next action.
302
322
  * Works for both create and update actions.
@@ -39,6 +39,7 @@ const InvoiceRecord_1 = require("./InvoiceRecord");
39
39
  const CreditNoteRecord_1 = require("./CreditNoteRecord");
40
40
  const BillingRequestRecord_1 = require("./BillingRequestRecord");
41
41
  const PaymentRecord_1 = require("./PaymentRecord");
42
+ const PaymentMethodRefundRecord_1 = require("./PaymentMethodRefundRecord");
42
43
  /**
43
44
  * Builder for action execution with dryRun support
44
45
  *
@@ -408,6 +409,36 @@ class TransactionRecord {
408
409
  }
409
410
  return this._payments;
410
411
  }
412
+ /**
413
+ * Access linked PaymentMethodRefund records
414
+ * @remarks Available labels: PaymentMethodRefund__Transaction
415
+ * @throws Error if called on a new (unsaved) record
416
+ *
417
+ * @example
418
+ * ```typescript
419
+ * // Get all linked PaymentMethodRefund records
420
+ * const items = await record.paymentMethodRefunds.list();
421
+ * const first = await record.paymentMethodRefunds.first();
422
+ *
423
+ * // Filter by label
424
+ * const specific = await record.paymentMethodRefunds.first({ label: 'PaymentMethodRefund__Transaction' });
425
+ * ```
426
+ */
427
+ get paymentMethodRefunds() {
428
+ var _a;
429
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
430
+ throw new Error('Cannot access links on a new (unsaved) record');
431
+ if (!this._paymentMethodRefunds) {
432
+ this._paymentMethodRefunds = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
433
+ sourceEntity: 'BillingModule:Transaction',
434
+ targetEntity: 'BillingModule:PaymentMethodRefund',
435
+ targetModuleName: 'BillingModule',
436
+ targetEntityName: 'PaymentMethodRefund',
437
+ labels: ['PaymentMethodRefund__Transaction'],
438
+ }, PaymentMethodRefundRecord_1.PaymentMethodRefundRecord);
439
+ }
440
+ return this._paymentMethodRefunds;
441
+ }
411
442
  // ============================================
412
443
  // LINK MANAGEMENT
413
444
  // ============================================
@@ -760,6 +791,8 @@ TransactionRecord.transactionsLabels = ['Transaction__Transaction'];
760
791
  TransactionRecord.billingRequestsLabels = ['BillingRequest__Transaction'];
761
792
  /** Valid labels for Payment associations */
762
793
  TransactionRecord.paymentsLabels = ['Payment_Transaction'];
794
+ /** Valid labels for PaymentMethodRefund associations */
795
+ TransactionRecord.paymentMethodRefundsLabels = ['PaymentMethodRefund__Transaction'];
763
796
  /** Type guard to check if an object is a TransactionRecord */
764
797
  function isTransactionRecord(obj) {
765
798
  return obj instanceof TransactionRecord;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.111",
3
+ "version": "2.0.114",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",