@d19n/youfibre-odin-sdk 2.0.245 → 2.0.246-beta.1

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 (33) hide show
  1. package/README.md +6 -1
  2. package/dist/actions-v2/CreateCampaignOutboundCallDto.d.ts +1 -8
  3. package/dist/actions-v2/CreateInstallDelayedChangeReasonTenantDto.d.ts +88 -0
  4. package/dist/actions-v2/CreateInstallDelayedChangeReasonTenantDto.js +59 -0
  5. package/dist/actions-v2/CreateOutboundCallDto.d.ts +1 -8
  6. package/dist/actions-v2/MoveMsrToCancelledDto.d.ts +115 -0
  7. package/dist/actions-v2/MoveMsrToCancelledDto.js +80 -0
  8. package/dist/actions-v2/UpdateCallOnInboundCallCompletedDto.d.ts +15 -1
  9. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCompletedDto.d.ts +86 -0
  10. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCompletedDto.js +56 -0
  11. package/dist/api-sdk-v2/ModifyServiceRequestApi.js +1 -1
  12. package/dist/api-sdk-v2/OrderApi.js +1 -1
  13. package/dist/db-sdk-v2/ModifyServiceRequestDb.js +1 -1
  14. package/dist/db-sdk-v2/OrderDb.js +1 -1
  15. package/dist/entities-v2/Call.d.ts +12 -28
  16. package/dist/entities-v2/Call.js +5 -21
  17. package/dist/entities-v2/ModifyServiceRequest.d.ts +11 -3
  18. package/dist/entities-v2/ModifyServiceRequest.js +9 -1
  19. package/dist/entities-v2/OfferTemplate.d.ts +8 -8
  20. package/dist/entities-v2/OfferTemplate.js +2 -2
  21. package/dist/entities-v2/Order.d.ts +1 -5
  22. package/dist/entities-v2/Order.js +1 -5
  23. package/dist/entities-v2/WorkOrder.d.ts +170 -168
  24. package/dist/entities-v2/WorkOrder.js +9 -7
  25. package/dist/records-v2/CallLegRecord.d.ts +28 -0
  26. package/dist/records-v2/CallLegRecord.js +37 -0
  27. package/dist/records-v2/ChangeReasonRecord.d.ts +29 -0
  28. package/dist/records-v2/ChangeReasonRecord.js +36 -0
  29. package/dist/records-v2/ModifyServiceRequestRecord.d.ts +28 -3
  30. package/dist/records-v2/ModifyServiceRequestRecord.js +33 -4
  31. package/dist/records-v2/OrderRecord.d.ts +3 -3
  32. package/dist/records-v2/OrderRecord.js +4 -4
  33. package/package.json +1 -1
package/README.md CHANGED
@@ -360,7 +360,7 @@ This SDK includes **172** entities across **12** modules.
360
360
 
361
361
  ## Actions
362
362
 
363
- This SDK includes **756** actions.
363
+ This SDK includes **759** actions.
364
364
 
365
365
  ### Action Types
366
366
 
@@ -1033,6 +1033,7 @@ This SDK includes **756** actions.
1033
1033
  | `CreateCollectionRescheduledChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateCollectionRescheduledChangeReasonTenant |
1034
1034
  | `CreateInstallCancelledChangeReasonSupplier` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonSupplier |
1035
1035
  | `CreateInstallCancelledChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonTenant |
1036
+ | `CreateInstallDelayedChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant |
1036
1037
  | `CreateInstallRescheduledChangeReasonSupplier` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallRescheduledChangeReasonSupplier |
1037
1038
  | `CreateInstallRescheduledChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallRescheduledChangeReasonTenant |
1038
1039
  | `CreatePrePullCancelledChangeReasonSupplier` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreatePrePullCancelledChangeReasonSupplier |
@@ -1237,6 +1238,7 @@ This SDK includes **756** actions.
1237
1238
  | `UpdateAgentCallLegOnOutboundDialAction` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundDialAction |
1238
1239
  | `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
1239
1240
  | `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
1241
+ | `UpdateCustomerCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted |
1240
1242
  | `UpdateCustomerCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging |
1241
1243
  | `UpdateCustomerCallLegOnNumberCallStatus` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatus |
1242
1244
  | `UpdateCustomerCallLegOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallAnswered |
@@ -1518,12 +1520,15 @@ This SDK includes **756** actions.
1518
1520
  | Action | Type | Event |
1519
1521
  |--------|------|-------|
1520
1522
  | `CreateModifyServiceRequest` | CREATE | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Create.CreateModifyServiceRequest |
1523
+ | `MoveMsrToCancelled` | STAGE_TRANSITION | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled |
1521
1524
  | `MoveMsrToComplete` | STAGE_TRANSITION | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest |
1522
1525
  | `MoveMsrToFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest |
1523
1526
  | `MoveMsrToHeld` | STAGE_TRANSITION | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest |
1524
1527
  | `MoveMsrToInProgress` | STAGE_TRANSITION | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest |
1525
1528
  | `UpdateModifyServiceRequest` | UPDATE | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest |
1526
1529
 
1530
+ **MoveMsrToCancelled Target Stages:** `ModifyServiceRequestStateStageCancelled`
1531
+
1527
1532
  **MoveMsrToComplete Target Stages:** `ModifyServiceRequestStateStageCompleted`
1528
1533
 
1529
1534
  **MoveMsrToFailed Target Stages:** `ModifyServiceRequestStateStageFailed`
@@ -22,7 +22,7 @@ export interface CreateCampaignOutboundCallMessage extends OdinRecordCreatedEven
22
22
  * Properties for CreateCampaignOutboundCall action
23
23
  *
24
24
  * @property Required fields: 15
25
- * @property Optional fields: 2
25
+ * @property Optional fields: 1
26
26
  */
27
27
  export interface CreateCampaignOutboundCallProperties {
28
28
  /**
@@ -152,13 +152,6 @@ export interface CreateCampaignOutboundCallProperties {
152
152
  * @type {ENUM}
153
153
  */
154
154
  AmdResult?: string | null;
155
- /**
156
- * DialOrigin
157
- *
158
- * DialOrigin
159
- * @type {ENUM}
160
- */
161
- DialOrigin?: string | null;
162
155
  }
163
156
  /**
164
157
  * Builder for CreateCampaignOutboundCall action
@@ -0,0 +1,88 @@
1
+ /**
2
+ * CreateInstallDelayedChangeReasonTenant Action DTO
3
+ *
4
+ * Create Install Delayed Change Reason Tenant
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity ChangeReason
8
+ * @entityType SA_DELAY
9
+ * @actionKey CreateInstallDelayedChangeReasonTenant
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateInstallDelayedChangeReasonTenant created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant
19
+ */
20
+ export interface CreateInstallDelayedChangeReasonTenantMessage extends OdinRecordCreatedEvent<CreateInstallDelayedChangeReasonTenantDto, CreateInstallDelayedChangeReasonTenantProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateInstallDelayedChangeReasonTenant action
24
+ *
25
+ * @property Required fields: 1
26
+ * @property Optional fields: 2
27
+ */
28
+ export interface CreateInstallDelayedChangeReasonTenantProperties {
29
+ /**
30
+ * Delay reason
31
+ *
32
+ * delay reason (Field Operations - ChangeReason)
33
+ * @type {ENUM}
34
+ * @required
35
+ */
36
+ DelayReason: string;
37
+ /**
38
+ * Owner
39
+ *
40
+ * Owner (Supplier or Tenant) (Field Operations - ChangeReason)
41
+ * @type {ENUM}
42
+ * @default TENANT
43
+ */
44
+ Owner?: string | null;
45
+ /**
46
+ * description
47
+ *
48
+ * cancellation description (Field Operations - ChangeReason)
49
+ * @type {TEXT_LONG}
50
+ */
51
+ Description?: string | null;
52
+ }
53
+ /**
54
+ * CreateInstallDelayedChangeReasonTenant
55
+ *
56
+ * Create Install Delayed Change Reason Tenant
57
+ *
58
+ * @actionType CREATE - Creates a new ChangeReason record
59
+ * @module FieldServiceModule
60
+ * @entity ChangeReason
61
+ * @entityType SA_DELAY (Delay)
62
+ * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant
63
+ * @permission schema.action.createinstalldelayedchangereasontenant.trigger
64
+ * @benchmark This action is tracked for performance benchmarks
65
+ */
66
+ export declare class CreateInstallDelayedChangeReasonTenantDto extends OdinRecordCreateDto<CreateInstallDelayedChangeReasonTenantProperties> {
67
+ /** Used by SDK generators to identify action type */
68
+ static readonly ACTION_TYPE = "CREATE";
69
+ static readonly ACTION_KEY = "CreateInstallDelayedChangeReasonTenant";
70
+ static readonly MODULE_NAME = "FieldServiceModule";
71
+ static readonly ENTITIES: string[];
72
+ static readonly ENTITY_TYPE = "SA_DELAY";
73
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant";
74
+ static readonly PERMISSION = "schema.action.createinstalldelayedchangereasontenant.trigger";
75
+ /** Step metadata - entity this action targets */
76
+ static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
77
+ static readonly STEP_SCHEMA_ID = "d411bca0-e0f3-437a-9886-2107cbb0b07d";
78
+ static readonly STEP_SCHEMA_ACTION_ID = "c549108e-e776-4e58-822e-757b9e95b517";
79
+ static readonly STEP_SCHEMA_TYPE_ID = "baa0fa45-7576-4502-b0ea-5253e664722b";
80
+ static readonly STEP_TYPE = "SA_DELAY";
81
+ static readonly AUTO_LINK_PARENT = true;
82
+ readonly actionName: string;
83
+ readonly schemaActionId: string;
84
+ readonly entity: string;
85
+ constructor(properties: CreateInstallDelayedChangeReasonTenantProperties, options?: {
86
+ journeyId?: string;
87
+ });
88
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateInstallDelayedChangeReasonTenant Action DTO
4
+ *
5
+ * Create Install Delayed Change Reason Tenant
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity ChangeReason
9
+ * @entityType SA_DELAY
10
+ * @actionKey CreateInstallDelayedChangeReasonTenant
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateInstallDelayedChangeReasonTenantDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateInstallDelayedChangeReasonTenant
20
+ *
21
+ * Create Install Delayed Change Reason Tenant
22
+ *
23
+ * @actionType CREATE - Creates a new ChangeReason record
24
+ * @module FieldServiceModule
25
+ * @entity ChangeReason
26
+ * @entityType SA_DELAY (Delay)
27
+ * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant
28
+ * @permission schema.action.createinstalldelayedchangereasontenant.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateInstallDelayedChangeReasonTenantDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'FieldServiceModule:ChangeReason',
35
+ type: 'SA_DELAY',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateInstallDelayedChangeReasonTenant';
40
+ this.schemaActionId = 'c549108e-e776-4e58-822e-757b9e95b517';
41
+ this.entity = 'FieldServiceModule:ChangeReason';
42
+ }
43
+ }
44
+ exports.CreateInstallDelayedChangeReasonTenantDto = CreateInstallDelayedChangeReasonTenantDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateInstallDelayedChangeReasonTenantDto.ACTION_TYPE = 'CREATE';
47
+ CreateInstallDelayedChangeReasonTenantDto.ACTION_KEY = 'CreateInstallDelayedChangeReasonTenant';
48
+ CreateInstallDelayedChangeReasonTenantDto.MODULE_NAME = 'FieldServiceModule';
49
+ CreateInstallDelayedChangeReasonTenantDto.ENTITIES = ['ChangeReason'];
50
+ CreateInstallDelayedChangeReasonTenantDto.ENTITY_TYPE = 'SA_DELAY';
51
+ CreateInstallDelayedChangeReasonTenantDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant';
52
+ CreateInstallDelayedChangeReasonTenantDto.PERMISSION = 'schema.action.createinstalldelayedchangereasontenant.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateInstallDelayedChangeReasonTenantDto.STEP_ENTITY = 'FieldServiceModule:ChangeReason';
55
+ CreateInstallDelayedChangeReasonTenantDto.STEP_SCHEMA_ID = 'd411bca0-e0f3-437a-9886-2107cbb0b07d';
56
+ CreateInstallDelayedChangeReasonTenantDto.STEP_SCHEMA_ACTION_ID = 'c549108e-e776-4e58-822e-757b9e95b517';
57
+ CreateInstallDelayedChangeReasonTenantDto.STEP_SCHEMA_TYPE_ID = 'baa0fa45-7576-4502-b0ea-5253e664722b';
58
+ CreateInstallDelayedChangeReasonTenantDto.STEP_TYPE = 'SA_DELAY';
59
+ CreateInstallDelayedChangeReasonTenantDto.AUTO_LINK_PARENT = true;
@@ -22,7 +22,7 @@ export interface CreateOutboundCallMessage extends OdinRecordCreatedEvent<Create
22
22
  * Properties for CreateOutboundCall action
23
23
  *
24
24
  * @property Required fields: 13
25
- * @property Optional fields: 4
25
+ * @property Optional fields: 3
26
26
  */
27
27
  export interface CreateOutboundCallProperties {
28
28
  /**
@@ -143,13 +143,6 @@ export interface CreateOutboundCallProperties {
143
143
  * @type {LOOKUP}
144
144
  */
145
145
  OutboundDialSessionId?: string | null;
146
- /**
147
- * DialOrigin
148
- *
149
- * DialOrigin
150
- * @type {ENUM}
151
- */
152
- DialOrigin?: string | null;
153
146
  /**
154
147
  * ContactId
155
148
  *
@@ -0,0 +1,115 @@
1
+ /**
2
+ * MoveMsrToCancelled Action DTO
3
+ *
4
+ * MoveMsrToCancelled
5
+ *
6
+ * @module ServiceModule
7
+ * @entity ModifyServiceRequest
8
+ * @entityType DEFAULT
9
+ * @actionKey MoveMsrToCancelled
10
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ declare type StepClassMap = {};
16
+ /**
17
+ * Link definition for connecting steps in MoveMsrToCancelled
18
+ */
19
+ export interface MoveMsrToCancelledStepLink {
20
+ /**
21
+ * The stepKey of the target step to link TO
22
+ * Must reference another step's stepKey in the same flow
23
+ */
24
+ stepKey: string;
25
+ /**
26
+ * The schema association ID (UUID) defining the relationship
27
+ * Use the association.id from the schema association definition
28
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
29
+ */
30
+ schemaAssociationId: string;
31
+ }
32
+ /**
33
+ * Step definition with linking metadata for MoveMsrToCancelled
34
+ */
35
+ export interface MoveMsrToCancelledStepDefinition {
36
+ /** Unique identifier for this step */
37
+ stepKey: string;
38
+ /** The DTO class name for this step */
39
+ dtoClass: string;
40
+ /** The entity this step creates (Module:Entity format) */
41
+ entity: string;
42
+ /** Links to create after this step executes */
43
+ linksTo: MoveMsrToCancelledStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MoveMsrToCancelled
47
+ */
48
+ export declare const MoveMsrToCancelledSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MoveMsrToCancelledStepKey = typeof MoveMsrToCancelledSteps[keyof typeof MoveMsrToCancelledSteps];
52
+ /**
53
+ * RabbitMQ message payload for MoveMsrToCancelled step flow events
54
+ *
55
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled
56
+ */
57
+ export interface MoveMsrToCancelledMessage extends OdinRecordUpdatedEvent<MoveMsrToCancelledDto, {}> {
58
+ }
59
+ /**
60
+ * Properties for MoveMsrToCancelled action
61
+ *
62
+ */
63
+ export interface MoveMsrToCancelledProperties {
64
+ }
65
+ /**
66
+ * MoveMsrToCancelled
67
+ *
68
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
69
+ * @module ServiceModule
70
+ * @entity ModifyServiceRequest
71
+ * @entityType DEFAULT (Default)
72
+ * @targetStages ModifyServiceRequestStateStageCancelled
73
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled
74
+ * @permission schema.action.movemsrtocancelled.trigger
75
+ * @benchmark This action is tracked for performance benchmarks
76
+ */
77
+ export declare class MoveMsrToCancelledDto extends OdinRecordUpdateDto<Record<string, any>> {
78
+ /** Used by SDK generators to identify action type */
79
+ static readonly ACTION_TYPE = "UPDATE";
80
+ static readonly ACTION_KEY = "MoveMsrToCancelled";
81
+ static readonly MODULE_NAME = "ServiceModule";
82
+ static readonly ENTITIES: string[];
83
+ static readonly ENTITY_TYPE = "DEFAULT";
84
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled";
85
+ static readonly SCHEMA_ACTION_ID = "1a7b5228-fbf5-4446-b15c-274776ab8cc7";
86
+ static readonly PERMISSION = "schema.action.movemsrtocancelled.trigger";
87
+ static readonly TARGET_STAGES: readonly ["ModifyServiceRequestStateStageCancelled"];
88
+ static readonly IS_STAGE_TRANSITION = true;
89
+ static readonly IS_MULTI_STEP_FLOW = false;
90
+ static readonly HAS_STEP_LINKS = false;
91
+ /**
92
+ * Step definitions with linking metadata
93
+ * Used by SDK and backend for auto-linking after step execution
94
+ */
95
+ static readonly stepDefinitions: MoveMsrToCancelledStepDefinition[];
96
+ /** Type-safe step key accessor */
97
+ static readonly Steps: {
98
+ readonly step_1: "step_1";
99
+ };
100
+ readonly actionName: string;
101
+ readonly schemaActionId: string;
102
+ readonly entity: string;
103
+ readonly stageKey: string;
104
+ constructor(record: OdinRecord<any> | {
105
+ id: string;
106
+ entity: string;
107
+ type?: string;
108
+ }, options?: {
109
+ journeyId?: string;
110
+ });
111
+ /** Step classes that can be used with this action */
112
+ static readonly stepClasses: readonly [];
113
+ steps: StepClassMap[(typeof MoveMsrToCancelledDto.stepClasses)[number]][];
114
+ }
115
+ export {};
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /**
3
+ * MoveMsrToCancelled Action DTO
4
+ *
5
+ * MoveMsrToCancelled
6
+ *
7
+ * @module ServiceModule
8
+ * @entity ModifyServiceRequest
9
+ * @entityType DEFAULT
10
+ * @actionKey MoveMsrToCancelled
11
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MoveMsrToCancelledDto = exports.MoveMsrToCancelledSteps = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MoveMsrToCancelled
20
+ */
21
+ exports.MoveMsrToCancelledSteps = {
22
+ step_1: 'step_1',
23
+ };
24
+ /**
25
+ * MoveMsrToCancelled
26
+ *
27
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
28
+ * @module ServiceModule
29
+ * @entity ModifyServiceRequest
30
+ * @entityType DEFAULT (Default)
31
+ * @targetStages ModifyServiceRequestStateStageCancelled
32
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled
33
+ * @permission schema.action.movemsrtocancelled.trigger
34
+ * @benchmark This action is tracked for performance benchmarks
35
+ */
36
+ class MoveMsrToCancelledDto extends core_1.OdinRecordUpdateDto {
37
+ constructor(record, options) {
38
+ super({
39
+ id: record.id,
40
+ entity: record.entity,
41
+ type: record.type,
42
+ properties: {},
43
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
44
+ });
45
+ this.actionName = 'MoveMsrToCancelled';
46
+ this.schemaActionId = '1a7b5228-fbf5-4446-b15c-274776ab8cc7';
47
+ this.entity = 'ServiceModule:ModifyServiceRequest';
48
+ this.stageKey = 'ModifyServiceRequestStateStageCancelled';
49
+ }
50
+ }
51
+ exports.MoveMsrToCancelledDto = MoveMsrToCancelledDto;
52
+ /** Used by SDK generators to identify action type */
53
+ MoveMsrToCancelledDto.ACTION_TYPE = 'UPDATE';
54
+ MoveMsrToCancelledDto.ACTION_KEY = 'MoveMsrToCancelled';
55
+ MoveMsrToCancelledDto.MODULE_NAME = 'ServiceModule';
56
+ MoveMsrToCancelledDto.ENTITIES = ['ModifyServiceRequest'];
57
+ MoveMsrToCancelledDto.ENTITY_TYPE = 'DEFAULT';
58
+ MoveMsrToCancelledDto.EVENT_NAME = 'k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Transition.MoveMsrToCancelled';
59
+ MoveMsrToCancelledDto.SCHEMA_ACTION_ID = '1a7b5228-fbf5-4446-b15c-274776ab8cc7';
60
+ MoveMsrToCancelledDto.PERMISSION = 'schema.action.movemsrtocancelled.trigger';
61
+ MoveMsrToCancelledDto.TARGET_STAGES = ['ModifyServiceRequestStateStageCancelled'];
62
+ MoveMsrToCancelledDto.IS_STAGE_TRANSITION = true;
63
+ MoveMsrToCancelledDto.IS_MULTI_STEP_FLOW = false;
64
+ MoveMsrToCancelledDto.HAS_STEP_LINKS = false;
65
+ /**
66
+ * Step definitions with linking metadata
67
+ * Used by SDK and backend for auto-linking after step execution
68
+ */
69
+ MoveMsrToCancelledDto.stepDefinitions = [
70
+ {
71
+ stepKey: 'step_1',
72
+ dtoClass: 'unknown',
73
+ entity: 'unknown',
74
+ linksTo: null
75
+ }
76
+ ];
77
+ /** Type-safe step key accessor */
78
+ MoveMsrToCancelledDto.Steps = exports.MoveMsrToCancelledSteps;
79
+ /** Step classes that can be used with this action */
80
+ MoveMsrToCancelledDto.stepClasses = [];
@@ -22,7 +22,7 @@ export interface UpdateCallOnInboundCallCompletedMessage extends OdinRecordUpdat
22
22
  * Properties for UpdateCallOnInboundCallCompleted action
23
23
  *
24
24
  * @property Required fields: 3
25
- * @property Optional fields: 2
25
+ * @property Optional fields: 4
26
26
  */
27
27
  export interface UpdateCallOnInboundCallCompletedProperties {
28
28
  /**
@@ -63,6 +63,20 @@ export interface UpdateCallOnInboundCallCompletedProperties {
63
63
  * @type {TEXT}
64
64
  */
65
65
  RecordingStatus?: string | null;
66
+ /**
67
+ * CustomerCallStatus
68
+ *
69
+ * Tracks the customer side call status. Used by Communications team.
70
+ * @type {TEXT}
71
+ */
72
+ CustomerCallStatus?: string | null;
73
+ /**
74
+ * AgentCallStatus
75
+ *
76
+ * Tracks the agent side call status. Used by Communications team.
77
+ * @type {TEXT}
78
+ */
79
+ AgentCallStatus?: string | null;
66
80
  }
67
81
  /**
68
82
  * UpdateCallOnInboundCallCompleted
@@ -0,0 +1,86 @@
1
+ /**
2
+ * UpdateCustomerCallLegOnIncomingCallCompleted Action DTO
3
+ *
4
+ * Update customer call leg on incoming call completed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateCustomerCallLegOnIncomingCallCompleted
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateCustomerCallLegOnIncomingCallCompleted updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
18
+ */
19
+ export interface UpdateCustomerCallLegOnIncomingCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallCompletedDto, UpdateCustomerCallLegOnIncomingCallCompletedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCustomerCallLegOnIncomingCallCompleted action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 3
26
+ */
27
+ export interface UpdateCustomerCallLegOnIncomingCallCompletedProperties {
28
+ /**
29
+ * EndedAt
30
+ *
31
+ * Data field for CallLeg records. Used by Communications team.
32
+ * @type {DATE_TIME}
33
+ */
34
+ EndedAt?: string | null;
35
+ /**
36
+ * Status
37
+ *
38
+ * Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
39
+ * @type {ENUM}
40
+ */
41
+ Status?: string | null;
42
+ /**
43
+ * Duration
44
+ *
45
+ * Duration of THIS leg only in seconds (Communications - CallLeg)
46
+ * @type {NUMBER}
47
+ */
48
+ Duration?: number | null;
49
+ }
50
+ /**
51
+ * UpdateCustomerCallLegOnIncomingCallCompleted
52
+ *
53
+ * Update customer call leg on incoming call completed
54
+ *
55
+ * @actionType UPDATE - Updates an existing CallLeg record
56
+ * @module NotificationModule
57
+ * @entity CallLeg
58
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
59
+ * @permission schema.action.updatecustomercalllegonincomingcallcompleted.trigger
60
+ * @benchmark This action is tracked for performance benchmarks
61
+ */
62
+ export declare class UpdateCustomerCallLegOnIncomingCallCompletedDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallCompletedProperties> {
63
+ /** Used by SDK generators to identify action type */
64
+ static readonly ACTION_TYPE = "UPDATE";
65
+ static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallCompleted";
66
+ static readonly MODULE_NAME = "NotificationModule";
67
+ static readonly ENTITIES: string[];
68
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted";
69
+ static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallcompleted.trigger";
70
+ /** Step metadata - entity this action targets */
71
+ static readonly STEP_ENTITY = "NotificationModule:CallLeg";
72
+ static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
73
+ static readonly STEP_SCHEMA_ACTION_ID = "47371999-0509-4f4b-9df0-db336f337695";
74
+ static readonly AUTO_LINK_PARENT = false;
75
+ readonly actionName: string;
76
+ readonly schemaActionId: string;
77
+ readonly entity: string;
78
+ constructor(record: OdinRecord<any> | {
79
+ id: string;
80
+ entity: string;
81
+ type?: string;
82
+ }, properties: UpdateCustomerCallLegOnIncomingCallCompletedProperties, options?: {
83
+ journeyId?: string;
84
+ stageKey?: string;
85
+ });
86
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCustomerCallLegOnIncomingCallCompleted Action DTO
4
+ *
5
+ * Update customer call leg on incoming call completed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateCustomerCallLegOnIncomingCallCompleted
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCustomerCallLegOnIncomingCallCompletedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCustomerCallLegOnIncomingCallCompleted
19
+ *
20
+ * Update customer call leg on incoming call completed
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted
26
+ * @permission schema.action.updatecustomercalllegonincomingcallcompleted.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCustomerCallLegOnIncomingCallCompletedDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateCustomerCallLegOnIncomingCallCompleted';
40
+ this.schemaActionId = '47371999-0509-4f4b-9df0-db336f337695';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateCustomerCallLegOnIncomingCallCompletedDto = UpdateCustomerCallLegOnIncomingCallCompletedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallCompleted';
48
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.ENTITIES = ['CallLeg'];
50
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCompleted';
51
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallcompleted.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ACTION_ID = '47371999-0509-4f4b-9df0-db336f337695';
56
+ UpdateCustomerCallLegOnIncomingCallCompletedDto.AUTO_LINK_PARENT = false;
@@ -41,7 +41,7 @@ class ModifyServiceRequestApi extends api_provider_1.ApiProvider {
41
41
  }
42
42
  get order() {
43
43
  if (!this._order) {
44
- this._order = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:ModifyServiceRequest', 'OrderModule:Order', 'Order__ModifyServiceRequest');
44
+ this._order = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:ModifyServiceRequest', 'OrderModule:Order', 'ModifyServiceRequest__Order');
45
45
  }
46
46
  return this._order;
47
47
  }
@@ -263,7 +263,7 @@ class OrderApi extends api_provider_1.ApiProvider {
263
263
  }
264
264
  get modifyservicerequest() {
265
265
  if (!this._modifyservicerequest) {
266
- this._modifyservicerequest = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:Order', 'ServiceModule:ModifyServiceRequest', 'Order__ModifyServiceRequest');
266
+ this._modifyservicerequest = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:Order', 'ServiceModule:ModifyServiceRequest', 'ModifyServiceRequest__Order');
267
267
  }
268
268
  return this._modifyservicerequest;
269
269
  }
@@ -46,7 +46,7 @@ class ModifyServiceRequestDb extends db_provider_1.DbProvider {
46
46
  }
47
47
  get order() {
48
48
  if (!this._order) {
49
- this._order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ServiceModule:ModifyServiceRequest', 'OrderModule:Order', 'Order__ModifyServiceRequest');
49
+ this._order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ServiceModule:ModifyServiceRequest', 'OrderModule:Order', 'ModifyServiceRequest__Order');
50
50
  }
51
51
  return this._order;
52
52
  }
@@ -268,7 +268,7 @@ class OrderDb extends db_provider_1.DbProvider {
268
268
  }
269
269
  get modifyservicerequest() {
270
270
  if (!this._modifyservicerequest) {
271
- this._modifyservicerequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'ServiceModule:ModifyServiceRequest', 'Order__ModifyServiceRequest');
271
+ this._modifyservicerequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'ServiceModule:ModifyServiceRequest', 'ModifyServiceRequest__Order');
272
272
  }
273
273
  return this._modifyservicerequest;
274
274
  }