@d19n/youfibre-odin-sdk 2.0.21 → 2.0.23-beta.0

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 (39) hide show
  1. package/README.md +4 -1
  2. package/dist/actions-v2/CreateAccountCreditDto.d.ts +22 -1
  3. package/dist/actions-v2/CreateInstallDto.d.ts +16 -15
  4. package/dist/actions-v2/CreateInstallDto.js +6 -4
  5. package/dist/actions-v2/CreateServiceDto.d.ts +14 -13
  6. package/dist/actions-v2/CreateServiceDto.js +3 -1
  7. package/dist/actions-v2/MoveOrderFromSupplyToActiveDto.d.ts +112 -0
  8. package/dist/actions-v2/MoveOrderFromSupplyToActiveDto.js +77 -0
  9. package/dist/actions-v2/PriceMatchDto.d.ts +12 -4
  10. package/dist/actions-v2/PriceMatchDto.js +1 -1
  11. package/dist/actions-v2/UpdateAccountCreditBalanceDto.d.ts +10 -0
  12. package/dist/api-sdk-v2/AccountCreditApi.d.ts +2 -0
  13. package/dist/api-sdk-v2/AccountCreditApi.js +6 -0
  14. package/dist/api-sdk-v2/CreditNoteApi.d.ts +2 -0
  15. package/dist/api-sdk-v2/CreditNoteApi.js +6 -0
  16. package/dist/db-sdk-v2/AccountCreditDb.d.ts +2 -0
  17. package/dist/db-sdk-v2/AccountCreditDb.js +6 -0
  18. package/dist/db-sdk-v2/CreditNoteDb.d.ts +2 -0
  19. package/dist/db-sdk-v2/CreditNoteDb.js +6 -0
  20. package/dist/entities-v2/AccountCredit.d.ts +7 -0
  21. package/dist/entities-v2/AccountCredit.js +5 -1
  22. package/dist/entities-v2/Config.d.ts +8 -8
  23. package/dist/entities-v2/Config.js +4 -4
  24. package/dist/entities-v2/CreditNote.d.ts +3 -0
  25. package/dist/entities-v2/Email.d.ts +0 -22
  26. package/dist/entities-v2/Email.js +0 -2
  27. package/dist/entities-v2/OrderItem.d.ts +44 -1
  28. package/dist/entities-v2/OrderItem.js +39 -1
  29. package/dist/entities-v2/PaymentMethodRefund.d.ts +29 -29
  30. package/dist/entities-v2/PaymentMethodRefund.js +8 -8
  31. package/dist/records-v2/AccountCreditRecord.d.ts +26 -7
  32. package/dist/records-v2/AccountCreditRecord.js +40 -15
  33. package/dist/records-v2/CreditNoteRecord.d.ts +20 -0
  34. package/dist/records-v2/CreditNoteRecord.js +33 -0
  35. package/dist/records-v2/OrderRecord.d.ts +25 -0
  36. package/dist/records-v2/OrderRecord.js +29 -0
  37. package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +1 -1
  38. package/dist/records-v2/ServiceAppointmentConfigRecord.js +2 -2
  39. 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 **586** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -387,6 +387,7 @@ 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 |
390
391
  | `MoveOrderToActive` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Update.ActivateOrder |
391
392
  | `MoveOrderToDeactivatedFromActive` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderToDeactivatedFromActive |
392
393
  | `OderUpdate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.OderUpdate |
@@ -418,6 +419,8 @@ This SDK includes **585** actions.
418
419
 
419
420
  **MoveOrderFromPreOrderToCancelled Target Stages:** `OrderStageCancelled`
420
421
 
422
+ **MoveOrderFromSupplyToActive Target Stages:** `OrderStageActive`
423
+
421
424
  **MoveOrderToActive Target Stages:** `OrderStageActive`
422
425
 
423
426
  **MoveOrderToDeactivatedFromActive Target Stages:** `OrderStageDeactivated`
@@ -23,7 +23,7 @@ export interface CreateAccountCreditMessage extends OdinRecordCreatedEvent<Creat
23
23
  * Properties for CreateAccountCredit action
24
24
  *
25
25
  * @property Required fields: 3
26
- * @property Optional fields: 0
26
+ * @property Optional fields: 3
27
27
  */
28
28
  export interface CreateAccountCreditProperties {
29
29
  /**
@@ -50,6 +50,27 @@ export interface CreateAccountCreditProperties {
50
50
  * @required
51
51
  */
52
52
  CreditBalance: string;
53
+ /**
54
+ * Description
55
+ *
56
+ * Description
57
+ * @type {TEXT}
58
+ */
59
+ Description?: string | null;
60
+ /**
61
+ * Reason
62
+ *
63
+ * Reason
64
+ * @type {ENUM}
65
+ */
66
+ Reason?: string | null;
67
+ /**
68
+ * Source
69
+ *
70
+ * Source
71
+ * @type {ENUM}
72
+ */
73
+ Source?: string | null;
53
74
  }
54
75
  /**
55
76
  * CreateAccountCredit
@@ -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 = [];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Price Match Action DTO
2
+ * PriceMatch Action DTO
3
3
  *
4
4
  * Price match this item with a competitor
5
5
  *
@@ -12,16 +12,16 @@
12
12
  */
13
13
  import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
14
  /**
15
- * RabbitMQ message payload for Price Match updated events
15
+ * RabbitMQ message payload for PriceMatch updated events
16
16
  *
17
17
  * @event k1.t-hEOJjsDb.OrderModule.OrderItem.Update.PriceMatch
18
18
  */
19
19
  export interface PriceMatchMessage extends OdinRecordUpdatedEvent<PriceMatchDto, PriceMatchProperties> {
20
20
  }
21
21
  /**
22
- * Properties for Price Match action
22
+ * Properties for PriceMatch action
23
23
  *
24
- * @property Required fields: 2
24
+ * @property Required fields: 3
25
25
  * @property Optional fields: 0
26
26
  */
27
27
  export interface PriceMatchProperties {
@@ -41,6 +41,14 @@ export interface PriceMatchProperties {
41
41
  * @required
42
42
  */
43
43
  UnitPrice: string;
44
+ /**
45
+ * Price Matched To
46
+ *
47
+ * PriceMatchedTo
48
+ * @type {ENUM}
49
+ * @required
50
+ */
51
+ PriceMatchedTo: string;
44
52
  }
45
53
  /**
46
54
  * Price Match
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Price Match Action DTO
3
+ * PriceMatch Action DTO
4
4
  *
5
5
  * Price match this item with a competitor
6
6
  *
@@ -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');
@@ -17,11 +17,13 @@ export declare class CreditNoteApi extends ApiProvider {
17
17
  private readonly moduleName;
18
18
  private readonly entityName;
19
19
  private sourceRecord;
20
+ private _accountcredit?;
20
21
  private _transaction?;
21
22
  private _note?;
22
23
  private _invoice?;
23
24
  private _file?;
24
25
  constructor(authParams?: OauthParams, authToken?: string);
26
+ get accountcredit(): ApiRecordLinkManager;
25
27
  get transaction(): ApiRecordLinkManager;
26
28
  get note(): ApiRecordLinkManager;
27
29
  get invoice(): ApiRecordLinkManager;
@@ -33,6 +33,12 @@ class CreditNoteApi 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 accountcredit() {
37
+ if (!this._accountcredit) {
38
+ this._accountcredit = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:CreditNote', 'BillingModule:AccountCredit', 'AccountCredit__CreditNote');
39
+ }
40
+ return this._accountcredit;
41
+ }
36
42
  get transaction() {
37
43
  if (!this._transaction) {
38
44
  this._transaction = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:CreditNote', 'BillingModule:Transaction', 'CreditNote__Transaction');
@@ -21,9 +21,11 @@ export declare class AccountCreditDb extends DbProvider {
21
21
  private readonly moduleName;
22
22
  private readonly entityName;
23
23
  private sourceRecord;
24
+ private _creditnote?;
24
25
  private _contact?;
25
26
  private _invoice?;
26
27
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
28
+ get creditnote(): DbRecordLinkManager;
27
29
  get contact(): DbRecordLinkManager;
28
30
  get invoice(): DbRecordLinkManager;
29
31
  setRecord(sourceRecord: any): void;
@@ -38,6 +38,12 @@ class AccountCreditDb extends db_provider_1.DbProvider {
38
38
  // LAZY-LOADED LINK MANAGERS (Public Getters)
39
39
  // ============================================
40
40
  // Usage remains identical: db.address.list(recordId)
41
+ get creditnote() {
42
+ if (!this._creditnote) {
43
+ this._creditnote = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:AccountCredit', 'BillingModule:CreditNote', 'AccountCredit__CreditNote');
44
+ }
45
+ return this._creditnote;
46
+ }
41
47
  get contact() {
42
48
  if (!this._contact) {
43
49
  this._contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:AccountCredit', 'CrmModule:Contact', 'Contact__AccountCredit');
@@ -21,11 +21,13 @@ export declare class CreditNoteDb extends DbProvider {
21
21
  private readonly moduleName;
22
22
  private readonly entityName;
23
23
  private sourceRecord;
24
+ private _accountcredit?;
24
25
  private _transaction?;
25
26
  private _note?;
26
27
  private _invoice?;
27
28
  private _file?;
28
29
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
30
+ get accountcredit(): DbRecordLinkManager;
29
31
  get transaction(): DbRecordLinkManager;
30
32
  get note(): DbRecordLinkManager;
31
33
  get invoice(): DbRecordLinkManager;
@@ -38,6 +38,12 @@ class CreditNoteDb extends db_provider_1.DbProvider {
38
38
  // LAZY-LOADED LINK MANAGERS (Public Getters)
39
39
  // ============================================
40
40
  // Usage remains identical: db.address.list(recordId)
41
+ get accountcredit() {
42
+ if (!this._accountcredit) {
43
+ this._accountcredit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:CreditNote', 'BillingModule:AccountCredit', 'AccountCredit__CreditNote');
44
+ }
45
+ return this._accountcredit;
46
+ }
41
47
  get transaction() {
42
48
  if (!this._transaction) {
43
49
  this._transaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:CreditNote', 'BillingModule:Transaction', 'CreditNote__Transaction');
@@ -11,6 +11,7 @@
11
11
  * Generated from Odin schema definition
12
12
  */
13
13
  import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
+ import { CreditNoteProperties } from './CreditNote';
14
15
  import { ContactProperties } from './Contact';
15
16
  import { InvoiceProperties } from './Invoice';
16
17
  /**
@@ -188,6 +189,8 @@ export declare class AccountCredit extends OdinRecord<AccountCreditProperties> {
188
189
  type: AccountCreditEntityTypes;
189
190
  schemaId: '5871ead3-e07b-44b8-a480-0c1152211a2b';
190
191
  properties: AccountCreditProperties;
192
+ /** Linked CreditNote records (AccountCredit__CreditNote) */
193
+ CreditNote: OdinLink<LinkedOdinRecord<CreditNoteProperties>>;
191
194
  /** Linked Contact records (Contact__AccountCredit) */
192
195
  Contact: OdinLink<LinkedOdinRecord<ContactProperties>>;
193
196
  /** Linked Invoice records (AccountCredit__Invoice) */
@@ -209,6 +212,10 @@ export declare const ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_CREATED = "BillingModule
209
212
  export declare const ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_UPDATED = "BillingModule.AccountCredit.DEFAULT.SubDbRecordUpdated";
210
213
  /** This is the default record type deleted */
211
214
  export declare const ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_DELETED = "BillingModule.AccountCredit.DEFAULT.SubDbRecordDeleted";
215
+ /** Event: AccountCredit__CreditNote link created */
216
+ export declare const ROUTING_KEY_LINK_ACCOUNT_CREDIT_CREDIT_NOTE_CREATED = "BillingModule.AccountCredit.CreditNote.SubDbRecordAssociationCreated";
217
+ /** Event: AccountCredit__CreditNote link deleted */
218
+ export declare const ROUTING_KEY_LINK_ACCOUNT_CREDIT_CREDIT_NOTE_DELETED = "BillingModule.AccountCredit.CreditNote.SubDbRecordAssociationDeleted";
212
219
  /** Event: AccountCredit__Invoice link created */
213
220
  export declare const ROUTING_KEY_LINK_ACCOUNT_CREDIT_INVOICE_CREATED = "BillingModule.AccountCredit.Invoice.SubDbRecordAssociationCreated";
214
221
  /** Event: AccountCredit__Invoice link deleted */