@d19n/youfibre-odin-sdk 2.0.22 → 2.0.23-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 (41) hide show
  1. package/README.md +7 -1
  2. package/dist/actions-v2/CreateInstallDto.d.ts +16 -15
  3. package/dist/actions-v2/CreateInstallDto.js +6 -4
  4. package/dist/actions-v2/CreateServiceDto.d.ts +14 -13
  5. package/dist/actions-v2/CreateServiceDto.js +3 -1
  6. package/dist/actions-v2/MoveOrderFromSupplyToActiveDto.d.ts +112 -0
  7. package/dist/actions-v2/MoveOrderFromSupplyToActiveDto.js +77 -0
  8. package/dist/actions-v2/MoveOrderFromSupplyToCancelledDto.d.ts +112 -0
  9. package/dist/actions-v2/MoveOrderFromSupplyToCancelledDto.js +77 -0
  10. package/dist/actions-v2/UpdateAccountCreditBalanceDto.d.ts +10 -0
  11. package/dist/api-sdk-v2/AccountCreditApi.d.ts +2 -0
  12. package/dist/api-sdk-v2/AccountCreditApi.js +6 -0
  13. package/dist/api-sdk-v2/BngProvisionApi.js +1 -1
  14. package/dist/api-sdk-v2/CreditNoteApi.d.ts +2 -0
  15. package/dist/api-sdk-v2/CreditNoteApi.js +6 -0
  16. package/dist/api-sdk-v2/OrderItemApi.js +1 -1
  17. package/dist/db-sdk-v2/AccountCreditDb.d.ts +2 -0
  18. package/dist/db-sdk-v2/AccountCreditDb.js +6 -0
  19. package/dist/db-sdk-v2/BngProvisionDb.js +1 -1
  20. package/dist/db-sdk-v2/CreditNoteDb.d.ts +2 -0
  21. package/dist/db-sdk-v2/CreditNoteDb.js +6 -0
  22. package/dist/db-sdk-v2/OrderItemDb.js +1 -1
  23. package/dist/entities-v2/AccountCredit.d.ts +7 -0
  24. package/dist/entities-v2/AccountCredit.js +5 -1
  25. package/dist/entities-v2/BngProvision.d.ts +1 -1
  26. package/dist/entities-v2/CreditNote.d.ts +3 -0
  27. package/dist/entities-v2/OrderItem.d.ts +3 -3
  28. package/dist/entities-v2/OrderItem.js +2 -2
  29. package/dist/records-v2/AccountCreditRecord.d.ts +26 -7
  30. package/dist/records-v2/AccountCreditRecord.js +40 -15
  31. package/dist/records-v2/BngProvisionRecord.d.ts +3 -3
  32. package/dist/records-v2/BngProvisionRecord.js +4 -4
  33. package/dist/records-v2/CreditNoteRecord.d.ts +20 -0
  34. package/dist/records-v2/CreditNoteRecord.js +33 -0
  35. package/dist/records-v2/OrderItemRecord.d.ts +3 -3
  36. package/dist/records-v2/OrderItemRecord.js +4 -4
  37. package/dist/records-v2/OrderRecord.d.ts +50 -0
  38. package/dist/records-v2/OrderRecord.js +58 -0
  39. package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +1 -1
  40. package/dist/records-v2/ServiceAppointmentConfigRecord.js +2 -2
  41. 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 **585** actions.
355
+ This SDK includes **587** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -387,6 +387,8 @@ This SDK includes **585** actions.
387
387
  | `MoveOrderFromDraftToAnyStage` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromDraftToAnyStage |
388
388
  | `MoveOrderFromPendingCancellationToActive` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromPendingCancellationToActive |
389
389
  | `MoveOrderFromPreOrderToCancelled` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromPreOrderToCancelled |
390
+ | `MoveOrderFromSupplyToActive` | STAGE_TRANSITION | k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive |
391
+ | `MoveOrderFromSupplyToCancelled` | STAGE_TRANSITION | k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled |
390
392
  | `MoveOrderToActive` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Update.ActivateOrder |
391
393
  | `MoveOrderToDeactivatedFromActive` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderToDeactivatedFromActive |
392
394
  | `OderUpdate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.OderUpdate |
@@ -418,6 +420,10 @@ This SDK includes **585** actions.
418
420
 
419
421
  **MoveOrderFromPreOrderToCancelled Target Stages:** `OrderStageCancelled`
420
422
 
423
+ **MoveOrderFromSupplyToActive Target Stages:** `OrderStageActive`
424
+
425
+ **MoveOrderFromSupplyToCancelled Target Stages:** `OrderStageCancelled`
426
+
421
427
  **MoveOrderToActive Target Stages:** `OrderStageActive`
422
428
 
423
429
  **MoveOrderToDeactivatedFromActive Target Stages:** `OrderStageDeactivated`
@@ -1,29 +1,29 @@
1
1
  /**
2
- * Create INSTALL Action DTO
2
+ * CreateINSTALL Action DTO
3
3
  *
4
4
  * Create INSTALL
5
5
  *
6
6
  * @module FieldServiceModule
7
7
  * @entity ServiceAppointmentConfig
8
8
  * @entityType INSTALL
9
- * @actionKey Create INSTALL
9
+ * @actionKey CreateINSTALL
10
10
  * @event k1.t-hEOJjsDb.FieldServiceModule.ServiceAppointmentConfig.Create.CreateINSTALL
11
11
  *
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
14
14
  import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
15
  /**
16
- * RabbitMQ message payload for Create INSTALL created events
16
+ * RabbitMQ message payload for CreateINSTALL created events
17
17
  *
18
18
  * @event k1.t-hEOJjsDb.FieldServiceModule.ServiceAppointmentConfig.Create.CreateINSTALL
19
19
  */
20
20
  export interface CreateInstallMessage extends OdinRecordCreatedEvent<CreateInstallDto, CreateInstallProperties> {
21
21
  }
22
22
  /**
23
- * Properties for Create INSTALL action
23
+ * Properties for CreateINSTALL action
24
24
  *
25
- * @property Required fields: 4
26
- * @property Optional fields: 7
25
+ * @property Required fields: 3
26
+ * @property Optional fields: 8
27
27
  */
28
28
  export interface CreateInstallProperties {
29
29
  /**
@@ -51,14 +51,6 @@ export interface CreateInstallProperties {
51
51
  * @required
52
52
  */
53
53
  Contractor: string;
54
- /**
55
- * Region
56
- *
57
- * The linked region (Field Operations - ServiceAppointmentConfig)
58
- * @type {LOOKUP}
59
- * @required
60
- */
61
- RegionId: string;
62
54
  /**
63
55
  * ExPolygonId
64
56
  *
@@ -81,6 +73,13 @@ export interface CreateInstallProperties {
81
73
  * @format DD/MM/YYYY
82
74
  */
83
75
  AvailableTo?: string | null;
76
+ /**
77
+ * Region
78
+ *
79
+ * The linked region (Field Operations - ServiceAppointmentConfig)
80
+ * @type {LOOKUP}
81
+ */
82
+ RegionId?: string | null;
84
83
  /**
85
84
  * BookingDelay
86
85
  *
@@ -111,6 +110,8 @@ export interface CreateInstallProperties {
111
110
  Name?: string | null;
112
111
  }
113
112
  /**
113
+ * CreateINSTALL
114
+ *
114
115
  * Create INSTALL
115
116
  *
116
117
  * @actionType CREATE - Creates a new ServiceAppointmentConfig record
@@ -126,7 +127,7 @@ export interface CreateInstallProperties {
126
127
  export declare class CreateInstallDto extends OdinRecordCreateDto<CreateInstallProperties> {
127
128
  /** Used by SDK generators to identify action type */
128
129
  static readonly ACTION_TYPE = "CREATE";
129
- static readonly ACTION_KEY = "Create INSTALL";
130
+ static readonly ACTION_KEY = "CreateINSTALL";
130
131
  static readonly MODULE_NAME = "FieldServiceModule";
131
132
  static readonly ENTITIES: string[];
132
133
  static readonly ENTITY_TYPE = "INSTALL";
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  /**
3
- * Create INSTALL Action DTO
3
+ * CreateINSTALL Action DTO
4
4
  *
5
5
  * Create INSTALL
6
6
  *
7
7
  * @module FieldServiceModule
8
8
  * @entity ServiceAppointmentConfig
9
9
  * @entityType INSTALL
10
- * @actionKey Create INSTALL
10
+ * @actionKey CreateINSTALL
11
11
  * @event k1.t-hEOJjsDb.FieldServiceModule.ServiceAppointmentConfig.Create.CreateINSTALL
12
12
  *
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateInstallDto = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
+ * CreateINSTALL
20
+ *
19
21
  * Create INSTALL
20
22
  *
21
23
  * @actionType CREATE - Creates a new ServiceAppointmentConfig record
@@ -36,7 +38,7 @@ class CreateInstallDto extends core_1.OdinRecordCreateDto {
36
38
  properties,
37
39
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
40
  });
39
- this.actionName = 'Create INSTALL';
41
+ this.actionName = 'CreateINSTALL';
40
42
  this.schemaActionId = 'b92d1d40-11cb-4475-9a72-16207992afe5';
41
43
  this.entity = 'FieldServiceModule:ServiceAppointmentConfig';
42
44
  }
@@ -44,7 +46,7 @@ class CreateInstallDto extends core_1.OdinRecordCreateDto {
44
46
  exports.CreateInstallDto = CreateInstallDto;
45
47
  /** Used by SDK generators to identify action type */
46
48
  CreateInstallDto.ACTION_TYPE = 'CREATE';
47
- CreateInstallDto.ACTION_KEY = 'Create INSTALL';
49
+ CreateInstallDto.ACTION_KEY = 'CreateINSTALL';
48
50
  CreateInstallDto.MODULE_NAME = 'FieldServiceModule';
49
51
  CreateInstallDto.ENTITIES = ['ServiceAppointmentConfig'];
50
52
  CreateInstallDto.ENTITY_TYPE = 'INSTALL';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Create SERVICE Action DTO
2
+ * CreateSERVICE Action DTO
3
3
  *
4
4
  * Create SERVICE
5
5
  *
@@ -13,17 +13,17 @@
13
13
  */
14
14
  import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
15
  /**
16
- * RabbitMQ message payload for Create SERVICE created events
16
+ * RabbitMQ message payload for CreateSERVICE created events
17
17
  *
18
18
  * @event k1.t-hEOJjsDb.FieldServiceModule.ServiceAppointmentConfig.Create.CreateSERVICE
19
19
  */
20
20
  export interface CreateServiceMessage extends OdinRecordCreatedEvent<CreateServiceDto, CreateServiceProperties> {
21
21
  }
22
22
  /**
23
- * Properties for Create SERVICE action
23
+ * Properties for CreateSERVICE action
24
24
  *
25
- * @property Required fields: 4
26
- * @property Optional fields: 7
25
+ * @property Required fields: 3
26
+ * @property Optional fields: 8
27
27
  */
28
28
  export interface CreateServiceProperties {
29
29
  /**
@@ -51,14 +51,6 @@ export interface CreateServiceProperties {
51
51
  * @required
52
52
  */
53
53
  Contractor: string;
54
- /**
55
- * Region
56
- *
57
- * The linked region (Field Operations - ServiceAppointmentConfig)
58
- * @type {LOOKUP}
59
- * @required
60
- */
61
- RegionId: string;
62
54
  /**
63
55
  * ExPolygonId
64
56
  *
@@ -81,6 +73,13 @@ export interface CreateServiceProperties {
81
73
  * @format DD/MM/YYYY
82
74
  */
83
75
  AvailableTo?: string | null;
76
+ /**
77
+ * Region
78
+ *
79
+ * The linked region (Field Operations - ServiceAppointmentConfig)
80
+ * @type {LOOKUP}
81
+ */
82
+ RegionId?: string | null;
84
83
  /**
85
84
  * BookingDelay
86
85
  *
@@ -111,6 +110,8 @@ export interface CreateServiceProperties {
111
110
  Name?: string | null;
112
111
  }
113
112
  /**
113
+ * CreateSERVICE
114
+ *
114
115
  * Create SERVICE
115
116
  *
116
117
  * @actionType CREATE - Creates a new ServiceAppointmentConfig record
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Create SERVICE Action DTO
3
+ * CreateSERVICE Action DTO
4
4
  *
5
5
  * Create SERVICE
6
6
  *
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateServiceDto = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
+ * CreateSERVICE
20
+ *
19
21
  * Create SERVICE
20
22
  *
21
23
  * @actionType CREATE - Creates a new ServiceAppointmentConfig record
@@ -0,0 +1,112 @@
1
+ /**
2
+ * MoveOrderFromSupplyToActive Action DTO
3
+ *
4
+ * MoveOrderFromSupplyToActive
5
+ *
6
+ * @module OrderModule
7
+ * @entity Order
8
+ * @actionKey MoveOrderFromSupplyToActive
9
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ declare type StepClassMap = {};
15
+ /**
16
+ * Link definition for connecting steps in MoveOrderFromSupplyToActive
17
+ */
18
+ export interface MoveOrderFromSupplyToActiveStepLink {
19
+ /**
20
+ * The stepKey of the target step to link TO
21
+ * Must reference another step's stepKey in the same flow
22
+ */
23
+ stepKey: string;
24
+ /**
25
+ * The schema association ID (UUID) defining the relationship
26
+ * Use the association.id from the schema association definition
27
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
28
+ */
29
+ schemaAssociationId: string;
30
+ }
31
+ /**
32
+ * Step definition with linking metadata for MoveOrderFromSupplyToActive
33
+ */
34
+ export interface MoveOrderFromSupplyToActiveStepDefinition {
35
+ /** Unique identifier for this step */
36
+ stepKey: string;
37
+ /** The DTO class name for this step */
38
+ dtoClass: string;
39
+ /** The entity this step creates (Module:Entity format) */
40
+ entity: string;
41
+ /** Links to create after this step executes */
42
+ linksTo: MoveOrderFromSupplyToActiveStepLink[] | null;
43
+ }
44
+ /**
45
+ * Type-safe step keys for MoveOrderFromSupplyToActive
46
+ */
47
+ export declare const MoveOrderFromSupplyToActiveSteps: {
48
+ readonly step_1: "step_1";
49
+ };
50
+ export declare type MoveOrderFromSupplyToActiveStepKey = typeof MoveOrderFromSupplyToActiveSteps[keyof typeof MoveOrderFromSupplyToActiveSteps];
51
+ /**
52
+ * RabbitMQ message payload for MoveOrderFromSupplyToActive step flow events
53
+ *
54
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive
55
+ */
56
+ export interface MoveOrderFromSupplyToActiveMessage extends OdinRecordUpdatedEvent<MoveOrderFromSupplyToActiveDto, {}> {
57
+ }
58
+ /**
59
+ * Properties for MoveOrderFromSupplyToActive action
60
+ *
61
+ */
62
+ export interface MoveOrderFromSupplyToActiveProperties {
63
+ }
64
+ /**
65
+ * MoveOrderFromSupplyToActive
66
+ *
67
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
68
+ * @module OrderModule
69
+ * @entity Order
70
+ * @targetStages OrderStageActive
71
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive
72
+ * @permission schema.action.moveorderfromsupplytoactive.trigger
73
+ * @benchmark This action is tracked for performance benchmarks
74
+ */
75
+ export declare class MoveOrderFromSupplyToActiveDto extends OdinRecordUpdateDto<Record<string, any>> {
76
+ /** Used by SDK generators to identify action type */
77
+ static readonly ACTION_TYPE = "UPDATE";
78
+ static readonly ACTION_KEY = "MoveOrderFromSupplyToActive";
79
+ static readonly MODULE_NAME = "OrderModule";
80
+ static readonly ENTITIES: string[];
81
+ static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive";
82
+ static readonly SCHEMA_ACTION_ID = "03257b42-d641-4fc8-9e9d-91e8c660d4e8";
83
+ static readonly PERMISSION = "schema.action.moveorderfromsupplytoactive.trigger";
84
+ static readonly TARGET_STAGES: readonly ["OrderStageActive"];
85
+ static readonly IS_STAGE_TRANSITION = true;
86
+ static readonly IS_MULTI_STEP_FLOW = false;
87
+ static readonly HAS_STEP_LINKS = false;
88
+ /**
89
+ * Step definitions with linking metadata
90
+ * Used by SDK and backend for auto-linking after step execution
91
+ */
92
+ static readonly stepDefinitions: MoveOrderFromSupplyToActiveStepDefinition[];
93
+ /** Type-safe step key accessor */
94
+ static readonly Steps: {
95
+ readonly step_1: "step_1";
96
+ };
97
+ readonly actionName: string;
98
+ readonly schemaActionId: string;
99
+ readonly entity: string;
100
+ readonly stageKey: string;
101
+ constructor(record: OdinRecord<any> | {
102
+ id: string;
103
+ entity: string;
104
+ type?: string;
105
+ }, options?: {
106
+ journeyId?: string;
107
+ });
108
+ /** Step classes that can be used with this action */
109
+ static readonly stepClasses: readonly [];
110
+ steps: StepClassMap[(typeof MoveOrderFromSupplyToActiveDto.stepClasses)[number]][];
111
+ }
112
+ export {};
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /**
3
+ * MoveOrderFromSupplyToActive Action DTO
4
+ *
5
+ * MoveOrderFromSupplyToActive
6
+ *
7
+ * @module OrderModule
8
+ * @entity Order
9
+ * @actionKey MoveOrderFromSupplyToActive
10
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MoveOrderFromSupplyToActiveDto = exports.MoveOrderFromSupplyToActiveSteps = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Type-safe step keys for MoveOrderFromSupplyToActive
19
+ */
20
+ exports.MoveOrderFromSupplyToActiveSteps = {
21
+ step_1: 'step_1',
22
+ };
23
+ /**
24
+ * MoveOrderFromSupplyToActive
25
+ *
26
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
27
+ * @module OrderModule
28
+ * @entity Order
29
+ * @targetStages OrderStageActive
30
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive
31
+ * @permission schema.action.moveorderfromsupplytoactive.trigger
32
+ * @benchmark This action is tracked for performance benchmarks
33
+ */
34
+ class MoveOrderFromSupplyToActiveDto extends core_1.OdinRecordUpdateDto {
35
+ constructor(record, options) {
36
+ super({
37
+ id: record.id,
38
+ entity: record.entity,
39
+ type: record.type,
40
+ properties: {},
41
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
42
+ });
43
+ this.actionName = 'MoveOrderFromSupplyToActive';
44
+ this.schemaActionId = '03257b42-d641-4fc8-9e9d-91e8c660d4e8';
45
+ this.entity = 'OrderModule:Order';
46
+ this.stageKey = 'OrderStageActive';
47
+ }
48
+ }
49
+ exports.MoveOrderFromSupplyToActiveDto = MoveOrderFromSupplyToActiveDto;
50
+ /** Used by SDK generators to identify action type */
51
+ MoveOrderFromSupplyToActiveDto.ACTION_TYPE = 'UPDATE';
52
+ MoveOrderFromSupplyToActiveDto.ACTION_KEY = 'MoveOrderFromSupplyToActive';
53
+ MoveOrderFromSupplyToActiveDto.MODULE_NAME = 'OrderModule';
54
+ MoveOrderFromSupplyToActiveDto.ENTITIES = ['Order'];
55
+ MoveOrderFromSupplyToActiveDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive';
56
+ MoveOrderFromSupplyToActiveDto.SCHEMA_ACTION_ID = '03257b42-d641-4fc8-9e9d-91e8c660d4e8';
57
+ MoveOrderFromSupplyToActiveDto.PERMISSION = 'schema.action.moveorderfromsupplytoactive.trigger';
58
+ MoveOrderFromSupplyToActiveDto.TARGET_STAGES = ['OrderStageActive'];
59
+ MoveOrderFromSupplyToActiveDto.IS_STAGE_TRANSITION = true;
60
+ MoveOrderFromSupplyToActiveDto.IS_MULTI_STEP_FLOW = false;
61
+ MoveOrderFromSupplyToActiveDto.HAS_STEP_LINKS = false;
62
+ /**
63
+ * Step definitions with linking metadata
64
+ * Used by SDK and backend for auto-linking after step execution
65
+ */
66
+ MoveOrderFromSupplyToActiveDto.stepDefinitions = [
67
+ {
68
+ stepKey: 'step_1',
69
+ dtoClass: 'unknown',
70
+ entity: 'unknown',
71
+ linksTo: null
72
+ }
73
+ ];
74
+ /** Type-safe step key accessor */
75
+ MoveOrderFromSupplyToActiveDto.Steps = exports.MoveOrderFromSupplyToActiveSteps;
76
+ /** Step classes that can be used with this action */
77
+ MoveOrderFromSupplyToActiveDto.stepClasses = [];
@@ -0,0 +1,112 @@
1
+ /**
2
+ * MoveOrderFromSupplyToCancelled Action DTO
3
+ *
4
+ * MoveOrderFromSupplyToCancelled
5
+ *
6
+ * @module OrderModule
7
+ * @entity Order
8
+ * @actionKey MoveOrderFromSupplyToCancelled
9
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ declare type StepClassMap = {};
15
+ /**
16
+ * Link definition for connecting steps in MoveOrderFromSupplyToCancelled
17
+ */
18
+ export interface MoveOrderFromSupplyToCancelledStepLink {
19
+ /**
20
+ * The stepKey of the target step to link TO
21
+ * Must reference another step's stepKey in the same flow
22
+ */
23
+ stepKey: string;
24
+ /**
25
+ * The schema association ID (UUID) defining the relationship
26
+ * Use the association.id from the schema association definition
27
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
28
+ */
29
+ schemaAssociationId: string;
30
+ }
31
+ /**
32
+ * Step definition with linking metadata for MoveOrderFromSupplyToCancelled
33
+ */
34
+ export interface MoveOrderFromSupplyToCancelledStepDefinition {
35
+ /** Unique identifier for this step */
36
+ stepKey: string;
37
+ /** The DTO class name for this step */
38
+ dtoClass: string;
39
+ /** The entity this step creates (Module:Entity format) */
40
+ entity: string;
41
+ /** Links to create after this step executes */
42
+ linksTo: MoveOrderFromSupplyToCancelledStepLink[] | null;
43
+ }
44
+ /**
45
+ * Type-safe step keys for MoveOrderFromSupplyToCancelled
46
+ */
47
+ export declare const MoveOrderFromSupplyToCancelledSteps: {
48
+ readonly step_1: "step_1";
49
+ };
50
+ export declare type MoveOrderFromSupplyToCancelledStepKey = typeof MoveOrderFromSupplyToCancelledSteps[keyof typeof MoveOrderFromSupplyToCancelledSteps];
51
+ /**
52
+ * RabbitMQ message payload for MoveOrderFromSupplyToCancelled step flow events
53
+ *
54
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled
55
+ */
56
+ export interface MoveOrderFromSupplyToCancelledMessage extends OdinRecordUpdatedEvent<MoveOrderFromSupplyToCancelledDto, {}> {
57
+ }
58
+ /**
59
+ * Properties for MoveOrderFromSupplyToCancelled action
60
+ *
61
+ */
62
+ export interface MoveOrderFromSupplyToCancelledProperties {
63
+ }
64
+ /**
65
+ * MoveOrderFromSupplyToCancelled
66
+ *
67
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
68
+ * @module OrderModule
69
+ * @entity Order
70
+ * @targetStages OrderStageCancelled
71
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled
72
+ * @permission schema.action.moveorderfromsupplytocancelled.trigger
73
+ * @benchmark This action is tracked for performance benchmarks
74
+ */
75
+ export declare class MoveOrderFromSupplyToCancelledDto extends OdinRecordUpdateDto<Record<string, any>> {
76
+ /** Used by SDK generators to identify action type */
77
+ static readonly ACTION_TYPE = "UPDATE";
78
+ static readonly ACTION_KEY = "MoveOrderFromSupplyToCancelled";
79
+ static readonly MODULE_NAME = "OrderModule";
80
+ static readonly ENTITIES: string[];
81
+ static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled";
82
+ static readonly SCHEMA_ACTION_ID = "59a2c079-144d-454f-9a9b-32a3d0542179";
83
+ static readonly PERMISSION = "schema.action.moveorderfromsupplytocancelled.trigger";
84
+ static readonly TARGET_STAGES: readonly ["OrderStageCancelled"];
85
+ static readonly IS_STAGE_TRANSITION = true;
86
+ static readonly IS_MULTI_STEP_FLOW = false;
87
+ static readonly HAS_STEP_LINKS = false;
88
+ /**
89
+ * Step definitions with linking metadata
90
+ * Used by SDK and backend for auto-linking after step execution
91
+ */
92
+ static readonly stepDefinitions: MoveOrderFromSupplyToCancelledStepDefinition[];
93
+ /** Type-safe step key accessor */
94
+ static readonly Steps: {
95
+ readonly step_1: "step_1";
96
+ };
97
+ readonly actionName: string;
98
+ readonly schemaActionId: string;
99
+ readonly entity: string;
100
+ readonly stageKey: string;
101
+ constructor(record: OdinRecord<any> | {
102
+ id: string;
103
+ entity: string;
104
+ type?: string;
105
+ }, options?: {
106
+ journeyId?: string;
107
+ });
108
+ /** Step classes that can be used with this action */
109
+ static readonly stepClasses: readonly [];
110
+ steps: StepClassMap[(typeof MoveOrderFromSupplyToCancelledDto.stepClasses)[number]][];
111
+ }
112
+ export {};
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /**
3
+ * MoveOrderFromSupplyToCancelled Action DTO
4
+ *
5
+ * MoveOrderFromSupplyToCancelled
6
+ *
7
+ * @module OrderModule
8
+ * @entity Order
9
+ * @actionKey MoveOrderFromSupplyToCancelled
10
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MoveOrderFromSupplyToCancelledDto = exports.MoveOrderFromSupplyToCancelledSteps = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Type-safe step keys for MoveOrderFromSupplyToCancelled
19
+ */
20
+ exports.MoveOrderFromSupplyToCancelledSteps = {
21
+ step_1: 'step_1',
22
+ };
23
+ /**
24
+ * MoveOrderFromSupplyToCancelled
25
+ *
26
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
27
+ * @module OrderModule
28
+ * @entity Order
29
+ * @targetStages OrderStageCancelled
30
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled
31
+ * @permission schema.action.moveorderfromsupplytocancelled.trigger
32
+ * @benchmark This action is tracked for performance benchmarks
33
+ */
34
+ class MoveOrderFromSupplyToCancelledDto extends core_1.OdinRecordUpdateDto {
35
+ constructor(record, options) {
36
+ super({
37
+ id: record.id,
38
+ entity: record.entity,
39
+ type: record.type,
40
+ properties: {},
41
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
42
+ });
43
+ this.actionName = 'MoveOrderFromSupplyToCancelled';
44
+ this.schemaActionId = '59a2c079-144d-454f-9a9b-32a3d0542179';
45
+ this.entity = 'OrderModule:Order';
46
+ this.stageKey = 'OrderStageCancelled';
47
+ }
48
+ }
49
+ exports.MoveOrderFromSupplyToCancelledDto = MoveOrderFromSupplyToCancelledDto;
50
+ /** Used by SDK generators to identify action type */
51
+ MoveOrderFromSupplyToCancelledDto.ACTION_TYPE = 'UPDATE';
52
+ MoveOrderFromSupplyToCancelledDto.ACTION_KEY = 'MoveOrderFromSupplyToCancelled';
53
+ MoveOrderFromSupplyToCancelledDto.MODULE_NAME = 'OrderModule';
54
+ MoveOrderFromSupplyToCancelledDto.ENTITIES = ['Order'];
55
+ MoveOrderFromSupplyToCancelledDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled';
56
+ MoveOrderFromSupplyToCancelledDto.SCHEMA_ACTION_ID = '59a2c079-144d-454f-9a9b-32a3d0542179';
57
+ MoveOrderFromSupplyToCancelledDto.PERMISSION = 'schema.action.moveorderfromsupplytocancelled.trigger';
58
+ MoveOrderFromSupplyToCancelledDto.TARGET_STAGES = ['OrderStageCancelled'];
59
+ MoveOrderFromSupplyToCancelledDto.IS_STAGE_TRANSITION = true;
60
+ MoveOrderFromSupplyToCancelledDto.IS_MULTI_STEP_FLOW = false;
61
+ MoveOrderFromSupplyToCancelledDto.HAS_STEP_LINKS = false;
62
+ /**
63
+ * Step definitions with linking metadata
64
+ * Used by SDK and backend for auto-linking after step execution
65
+ */
66
+ MoveOrderFromSupplyToCancelledDto.stepDefinitions = [
67
+ {
68
+ stepKey: 'step_1',
69
+ dtoClass: 'unknown',
70
+ entity: 'unknown',
71
+ linksTo: null
72
+ }
73
+ ];
74
+ /** Type-safe step key accessor */
75
+ MoveOrderFromSupplyToCancelledDto.Steps = exports.MoveOrderFromSupplyToCancelledSteps;
76
+ /** Step classes that can be used with this action */
77
+ MoveOrderFromSupplyToCancelledDto.stepClasses = [];
@@ -21,8 +21,18 @@ export interface UpdateAccountCreditBalanceMessage extends OdinRecordUpdatedEven
21
21
  /**
22
22
  * Properties for UpdateAccountCreditBalance action
23
23
  *
24
+ * @property Required fields: 1
25
+ * @property Optional fields: 0
24
26
  */
25
27
  export interface UpdateAccountCreditBalanceProperties {
28
+ /**
29
+ * CreditBalance
30
+ *
31
+ * Credit Balance
32
+ * @type {CURRENCY}
33
+ * @required
34
+ */
35
+ CreditBalance: string;
26
36
  }
27
37
  /**
28
38
  * UpdateAccountCreditBalance
@@ -17,9 +17,11 @@ export declare class AccountCreditApi extends ApiProvider {
17
17
  private readonly moduleName;
18
18
  private readonly entityName;
19
19
  private sourceRecord;
20
+ private _creditnote?;
20
21
  private _contact?;
21
22
  private _invoice?;
22
23
  constructor(authParams?: OauthParams, authToken?: string);
24
+ get creditnote(): ApiRecordLinkManager;
23
25
  get contact(): ApiRecordLinkManager;
24
26
  get invoice(): ApiRecordLinkManager;
25
27
  setRecord(sourceRecord: any): void;
@@ -33,6 +33,12 @@ class AccountCreditApi extends api_provider_1.ApiProvider {
33
33
  // LAZY-LOADED LINK MANAGERS (Public Getters)
34
34
  // ============================================
35
35
  // Usage remains identical: api.address.list(recordId)
36
+ get creditnote() {
37
+ if (!this._creditnote) {
38
+ this._creditnote = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:AccountCredit', 'BillingModule:CreditNote', 'AccountCredit__CreditNote');
39
+ }
40
+ return this._creditnote;
41
+ }
36
42
  get contact() {
37
43
  if (!this._contact) {
38
44
  this._contact = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:AccountCredit', 'CrmModule:Contact', 'Contact__AccountCredit');
@@ -35,7 +35,7 @@ class BngProvisionApi extends api_provider_1.ApiProvider {
35
35
  // Usage remains identical: api.address.list(recordId)
36
36
  get orderitem() {
37
37
  if (!this._orderitem) {
38
- this._orderitem = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:BngProvision', 'OrderModule:OrderItem', 'OrderItem__BngProvision');
38
+ this._orderitem = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ServiceModule:BngProvision', 'OrderModule:OrderItem', 'OrderItem_BngProvision');
39
39
  }
40
40
  return this._orderitem;
41
41
  }