@d19n/youfibre-odin-sdk 2.0.23-beta.0 → 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.
- package/README.md +4 -1
- package/dist/actions-v2/MoveOrderFromSupplyToCancelledDto.d.ts +112 -0
- package/dist/actions-v2/MoveOrderFromSupplyToCancelledDto.js +77 -0
- package/dist/api-sdk-v2/BngProvisionApi.js +1 -1
- package/dist/api-sdk-v2/OrderItemApi.js +1 -1
- package/dist/db-sdk-v2/BngProvisionDb.js +1 -1
- package/dist/db-sdk-v2/OrderItemDb.js +1 -1
- package/dist/entities-v2/BngProvision.d.ts +1 -1
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +4 -4
- package/dist/entities-v2/OrderItem.d.ts +3 -3
- package/dist/entities-v2/OrderItem.js +2 -2
- package/dist/records-v2/BngProvisionRecord.d.ts +3 -3
- package/dist/records-v2/BngProvisionRecord.js +4 -4
- package/dist/records-v2/OrderItemRecord.d.ts +3 -3
- package/dist/records-v2/OrderItemRecord.js +4 -4
- package/dist/records-v2/OrderRecord.d.ts +25 -0
- package/dist/records-v2/OrderRecord.js +29 -0
- 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 **
|
|
355
|
+
This SDK includes **587** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -388,6 +388,7 @@ This SDK includes **586** actions.
|
|
|
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
390
|
| `MoveOrderFromSupplyToActive` | STAGE_TRANSITION | k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToActive |
|
|
391
|
+
| `MoveOrderFromSupplyToCancelled` | STAGE_TRANSITION | k1.t-t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderFromSupplyToCancelled |
|
|
391
392
|
| `MoveOrderToActive` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Update.ActivateOrder |
|
|
392
393
|
| `MoveOrderToDeactivatedFromActive` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.MoveOrderToDeactivatedFromActive |
|
|
393
394
|
| `OderUpdate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.OderUpdate |
|
|
@@ -421,6 +422,8 @@ This SDK includes **586** actions.
|
|
|
421
422
|
|
|
422
423
|
**MoveOrderFromSupplyToActive Target Stages:** `OrderStageActive`
|
|
423
424
|
|
|
425
|
+
**MoveOrderFromSupplyToCancelled Target Stages:** `OrderStageCancelled`
|
|
426
|
+
|
|
424
427
|
**MoveOrderToActive Target Stages:** `OrderStageActive`
|
|
425
428
|
|
|
426
429
|
**MoveOrderToDeactivatedFromActive Target Stages:** `OrderStageDeactivated`
|
|
@@ -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 = [];
|
|
@@ -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', '
|
|
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
|
}
|
|
@@ -35,7 +35,7 @@ class OrderItemApi extends api_provider_1.ApiProvider {
|
|
|
35
35
|
// Usage remains identical: api.address.list(recordId)
|
|
36
36
|
get bngprovision() {
|
|
37
37
|
if (!this._bngprovision) {
|
|
38
|
-
this._bngprovision = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:OrderItem', 'ServiceModule:BngProvision', '
|
|
38
|
+
this._bngprovision = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:OrderItem', 'ServiceModule:BngProvision', 'OrderItem_BngProvision');
|
|
39
39
|
}
|
|
40
40
|
return this._bngprovision;
|
|
41
41
|
}
|
|
@@ -40,7 +40,7 @@ class BngProvisionDb extends db_provider_1.DbProvider {
|
|
|
40
40
|
// Usage remains identical: db.address.list(recordId)
|
|
41
41
|
get orderitem() {
|
|
42
42
|
if (!this._orderitem) {
|
|
43
|
-
this._orderitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ServiceModule:BngProvision', 'OrderModule:OrderItem', '
|
|
43
|
+
this._orderitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ServiceModule:BngProvision', 'OrderModule:OrderItem', 'OrderItem_BngProvision');
|
|
44
44
|
}
|
|
45
45
|
return this._orderitem;
|
|
46
46
|
}
|
|
@@ -40,7 +40,7 @@ class OrderItemDb extends db_provider_1.DbProvider {
|
|
|
40
40
|
// Usage remains identical: db.address.list(recordId)
|
|
41
41
|
get bngprovision() {
|
|
42
42
|
if (!this._bngprovision) {
|
|
43
|
-
this._bngprovision = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:OrderItem', 'ServiceModule:BngProvision', '
|
|
43
|
+
this._bngprovision = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:OrderItem', 'ServiceModule:BngProvision', 'OrderItem_BngProvision');
|
|
44
44
|
}
|
|
45
45
|
return this._bngprovision;
|
|
46
46
|
}
|
|
@@ -103,7 +103,7 @@ export declare class BngProvision extends OdinRecord<BngProvisionProperties> {
|
|
|
103
103
|
type: BngProvisionEntityTypes;
|
|
104
104
|
schemaId: '2e521c74-7a0a-4093-b2a8-02839c5fb52d';
|
|
105
105
|
properties: BngProvisionProperties;
|
|
106
|
-
/** Linked OrderItem records (
|
|
106
|
+
/** Linked OrderItem records (OrderItem_BngProvision) */
|
|
107
107
|
OrderItem: OdinLink<LinkedOdinRecord<OrderItemProperties>>;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
|
|
|
23
23
|
* Use these constants instead of string literals for type safety
|
|
24
24
|
*/
|
|
25
25
|
export declare enum ConfigPropertyKeys {
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/** Data field for Config records. Used by Platform team. */
|
|
27
|
+
Test = "Test",
|
|
28
28
|
/** object of { key: value } mappings (Platform - Config) */
|
|
29
29
|
Mappings = "Mappings",
|
|
30
|
-
/**
|
|
31
|
-
|
|
30
|
+
/** the name of the app this config relates to (Platform - Config) */
|
|
31
|
+
AppName = "AppName"
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Properties for Config records
|
|
@@ -36,21 +36,21 @@ export declare enum ConfigPropertyKeys {
|
|
|
36
36
|
* @see SchemaModule:Config
|
|
37
37
|
*/
|
|
38
38
|
export interface ConfigProperties {
|
|
39
|
-
/**
|
|
39
|
+
/** Data field for Config records. Used by Platform team.
|
|
40
40
|
*
|
|
41
41
|
* @type {TEXT}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
Test: string;
|
|
44
44
|
/** object of { key: value } mappings (Platform - Config)
|
|
45
45
|
*
|
|
46
46
|
* @type {JSON}
|
|
47
47
|
*/
|
|
48
48
|
Mappings: string;
|
|
49
|
-
/**
|
|
49
|
+
/** the name of the app this config relates to (Platform - Config)
|
|
50
50
|
*
|
|
51
51
|
* @type {TEXT}
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
AppName: string;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Config entity from SchemaModule
|
|
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
|
|
|
28
28
|
*/
|
|
29
29
|
var ConfigPropertyKeys;
|
|
30
30
|
(function (ConfigPropertyKeys) {
|
|
31
|
-
/** the name of the app this config relates to (Platform - Config) */
|
|
32
|
-
ConfigPropertyKeys["AppName"] = "AppName";
|
|
33
|
-
/** object of { key: value } mappings (Platform - Config) */
|
|
34
|
-
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
31
|
/** Data field for Config records. Used by Platform team. */
|
|
36
32
|
ConfigPropertyKeys["Test"] = "Test";
|
|
33
|
+
/** object of { key: value } mappings (Platform - Config) */
|
|
34
|
+
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
|
+
/** the name of the app this config relates to (Platform - Config) */
|
|
36
|
+
ConfigPropertyKeys["AppName"] = "AppName";
|
|
37
37
|
})(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
|
|
38
38
|
/**
|
|
39
39
|
* Config entity from SchemaModule
|
|
@@ -523,7 +523,7 @@ export declare class OrderItem extends OdinRecord<OrderItemProperties> {
|
|
|
523
523
|
type: OrderItemEntityTypes;
|
|
524
524
|
schemaId: '4966152a-6468-462a-bd76-b48992e6769f';
|
|
525
525
|
properties: OrderItemProperties;
|
|
526
|
-
/** Linked BngProvision records (
|
|
526
|
+
/** Linked BngProvision records (OrderItem_BngProvision) */
|
|
527
527
|
BngProvision: OdinLink<LinkedOdinRecord<BngProvisionProperties>>;
|
|
528
528
|
/** Linked CustomerDeviceRouter records (OrderItem__CustomerDeviceRouter) */
|
|
529
529
|
CustomerDeviceRouter: OdinLink<LinkedOdinRecord<CustomerDeviceRouterProperties>>;
|
|
@@ -574,9 +574,9 @@ export declare const ROUTING_KEY_ORDER_ITEM_DEFAULT_CREATED = "OrderModule.Order
|
|
|
574
574
|
export declare const ROUTING_KEY_ORDER_ITEM_DEFAULT_UPDATED = "OrderModule.OrderItem.DEFAULT.SubDbRecordUpdated";
|
|
575
575
|
/** Default record type deleted */
|
|
576
576
|
export declare const ROUTING_KEY_ORDER_ITEM_DEFAULT_DELETED = "OrderModule.OrderItem.DEFAULT.SubDbRecordDeleted";
|
|
577
|
-
/** Event:
|
|
577
|
+
/** Event: OrderItem_BngProvision link created */
|
|
578
578
|
export declare const ROUTING_KEY_LINK_ORDER_ITEM_BNG_PROVISION_CREATED = "OrderModule.OrderItem.BngProvision.SubDbRecordAssociationCreated";
|
|
579
|
-
/** Event:
|
|
579
|
+
/** Event: OrderItem_BngProvision link deleted */
|
|
580
580
|
export declare const ROUTING_KEY_LINK_ORDER_ITEM_BNG_PROVISION_DELETED = "OrderModule.OrderItem.BngProvision.SubDbRecordAssociationDeleted";
|
|
581
581
|
/** Event: OrderItem__CustomerDeviceRouter link created */
|
|
582
582
|
export declare const ROUTING_KEY_LINK_ORDER_ITEM_CUSTOMER_DEVICE_ROUTER_CREATED = "OrderModule.OrderItem.CustomerDeviceRouter.SubDbRecordAssociationCreated";
|
|
@@ -278,9 +278,9 @@ exports.ROUTING_KEY_ORDER_ITEM_DEFAULT_CREATED = 'OrderModule.OrderItem.DEFAULT.
|
|
|
278
278
|
exports.ROUTING_KEY_ORDER_ITEM_DEFAULT_UPDATED = 'OrderModule.OrderItem.DEFAULT.SubDbRecordUpdated';
|
|
279
279
|
/** Default record type deleted */
|
|
280
280
|
exports.ROUTING_KEY_ORDER_ITEM_DEFAULT_DELETED = 'OrderModule.OrderItem.DEFAULT.SubDbRecordDeleted';
|
|
281
|
-
/** Event:
|
|
281
|
+
/** Event: OrderItem_BngProvision link created */
|
|
282
282
|
exports.ROUTING_KEY_LINK_ORDER_ITEM_BNG_PROVISION_CREATED = 'OrderModule.OrderItem.BngProvision.SubDbRecordAssociationCreated';
|
|
283
|
-
/** Event:
|
|
283
|
+
/** Event: OrderItem_BngProvision link deleted */
|
|
284
284
|
exports.ROUTING_KEY_LINK_ORDER_ITEM_BNG_PROVISION_DELETED = 'OrderModule.OrderItem.BngProvision.SubDbRecordAssociationDeleted';
|
|
285
285
|
/** Event: OrderItem__CustomerDeviceRouter link created */
|
|
286
286
|
exports.ROUTING_KEY_LINK_ORDER_ITEM_CUSTOMER_DEVICE_ROUTER_CREATED = 'OrderModule.OrderItem.CustomerDeviceRouter.SubDbRecordAssociationCreated';
|
|
@@ -133,10 +133,10 @@ export declare class BngProvisionRecord<TProps = BngProvisionProperties> {
|
|
|
133
133
|
*/
|
|
134
134
|
isDefault(): this is BngProvisionRecord<BngProvisionProperties>;
|
|
135
135
|
/** Valid labels for OrderItem associations */
|
|
136
|
-
static readonly orderItemsLabels: readonly ["
|
|
136
|
+
static readonly orderItemsLabels: readonly ["OrderItem_BngProvision"];
|
|
137
137
|
/**
|
|
138
138
|
* Access linked OrderItem records
|
|
139
|
-
* @remarks Available labels:
|
|
139
|
+
* @remarks Available labels: OrderItem_BngProvision
|
|
140
140
|
* @throws Error if called on a new (unsaved) record
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
@@ -146,7 +146,7 @@ export declare class BngProvisionRecord<TProps = BngProvisionProperties> {
|
|
|
146
146
|
* const first = await record.orderItems.first();
|
|
147
147
|
*
|
|
148
148
|
* // Filter by label
|
|
149
|
-
* const specific = await record.orderItems.first({ label: '
|
|
149
|
+
* const specific = await record.orderItems.first({ label: 'OrderItem_BngProvision' });
|
|
150
150
|
* ```
|
|
151
151
|
*/
|
|
152
152
|
get orderItems(): RecordLinkManager<OrderItemRecord, typeof BngProvisionRecord['orderItemsLabels'][number]>;
|
|
@@ -164,7 +164,7 @@ class BngProvisionRecord {
|
|
|
164
164
|
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
165
165
|
/**
|
|
166
166
|
* Access linked OrderItem records
|
|
167
|
-
* @remarks Available labels:
|
|
167
|
+
* @remarks Available labels: OrderItem_BngProvision
|
|
168
168
|
* @throws Error if called on a new (unsaved) record
|
|
169
169
|
*
|
|
170
170
|
* @example
|
|
@@ -174,7 +174,7 @@ class BngProvisionRecord {
|
|
|
174
174
|
* const first = await record.orderItems.first();
|
|
175
175
|
*
|
|
176
176
|
* // Filter by label
|
|
177
|
-
* const specific = await record.orderItems.first({ label: '
|
|
177
|
+
* const specific = await record.orderItems.first({ label: 'OrderItem_BngProvision' });
|
|
178
178
|
* ```
|
|
179
179
|
*/
|
|
180
180
|
get orderItems() {
|
|
@@ -187,7 +187,7 @@ class BngProvisionRecord {
|
|
|
187
187
|
targetEntity: 'OrderModule:OrderItem',
|
|
188
188
|
targetModuleName: 'OrderModule',
|
|
189
189
|
targetEntityName: 'OrderItem',
|
|
190
|
-
labels: ['
|
|
190
|
+
labels: ['OrderItem_BngProvision'],
|
|
191
191
|
}, OrderItemRecord_1.OrderItemRecord);
|
|
192
192
|
}
|
|
193
193
|
return this._orderItems;
|
|
@@ -272,7 +272,7 @@ exports.BngProvisionRecord = BngProvisionRecord;
|
|
|
272
272
|
// TYPED LINK ACCESSORS
|
|
273
273
|
// ============================================
|
|
274
274
|
/** Valid labels for OrderItem associations */
|
|
275
|
-
BngProvisionRecord.orderItemsLabels = ['
|
|
275
|
+
BngProvisionRecord.orderItemsLabels = ['OrderItem_BngProvision'];
|
|
276
276
|
/** Type guard to check if an object is a BngProvisionRecord */
|
|
277
277
|
function isBngProvisionRecord(obj) {
|
|
278
278
|
return obj instanceof BngProvisionRecord;
|
|
@@ -144,10 +144,10 @@ export declare class OrderItemRecord<TProps = OrderItemProperties> {
|
|
|
144
144
|
/** Access the underlying OdinRecord (null for new records) */
|
|
145
145
|
get record(): OdinRecord<TProps> | null;
|
|
146
146
|
/** Valid labels for BngProvision associations */
|
|
147
|
-
static readonly bngProvisionsLabels: readonly ["
|
|
147
|
+
static readonly bngProvisionsLabels: readonly ["OrderItem_BngProvision"];
|
|
148
148
|
/**
|
|
149
149
|
* Access linked BngProvision records
|
|
150
|
-
* @remarks Available labels:
|
|
150
|
+
* @remarks Available labels: OrderItem_BngProvision
|
|
151
151
|
* @throws Error if called on a new (unsaved) record
|
|
152
152
|
*
|
|
153
153
|
* @example
|
|
@@ -157,7 +157,7 @@ export declare class OrderItemRecord<TProps = OrderItemProperties> {
|
|
|
157
157
|
* const first = await record.bngProvisions.first();
|
|
158
158
|
*
|
|
159
159
|
* // Filter by label
|
|
160
|
-
* const specific = await record.bngProvisions.first({ label: '
|
|
160
|
+
* const specific = await record.bngProvisions.first({ label: 'OrderItem_BngProvision' });
|
|
161
161
|
* ```
|
|
162
162
|
*/
|
|
163
163
|
get bngProvisions(): RecordLinkManager<BngProvisionRecord, typeof OrderItemRecord['bngProvisionsLabels'][number]>;
|
|
@@ -156,7 +156,7 @@ class OrderItemRecord {
|
|
|
156
156
|
get record() { return this._record; }
|
|
157
157
|
/**
|
|
158
158
|
* Access linked BngProvision records
|
|
159
|
-
* @remarks Available labels:
|
|
159
|
+
* @remarks Available labels: OrderItem_BngProvision
|
|
160
160
|
* @throws Error if called on a new (unsaved) record
|
|
161
161
|
*
|
|
162
162
|
* @example
|
|
@@ -166,7 +166,7 @@ class OrderItemRecord {
|
|
|
166
166
|
* const first = await record.bngProvisions.first();
|
|
167
167
|
*
|
|
168
168
|
* // Filter by label
|
|
169
|
-
* const specific = await record.bngProvisions.first({ label: '
|
|
169
|
+
* const specific = await record.bngProvisions.first({ label: 'OrderItem_BngProvision' });
|
|
170
170
|
* ```
|
|
171
171
|
*/
|
|
172
172
|
get bngProvisions() {
|
|
@@ -179,7 +179,7 @@ class OrderItemRecord {
|
|
|
179
179
|
targetEntity: 'ServiceModule:BngProvision',
|
|
180
180
|
targetModuleName: 'ServiceModule',
|
|
181
181
|
targetEntityName: 'BngProvision',
|
|
182
|
-
labels: ['
|
|
182
|
+
labels: ['OrderItem_BngProvision'],
|
|
183
183
|
}, BngProvisionRecord_1.BngProvisionRecord);
|
|
184
184
|
}
|
|
185
185
|
return this._bngProvisions;
|
|
@@ -826,7 +826,7 @@ exports.OrderItemRecord = OrderItemRecord;
|
|
|
826
826
|
// TYPED LINK ACCESSORS
|
|
827
827
|
// ============================================
|
|
828
828
|
/** Valid labels for BngProvision associations */
|
|
829
|
-
OrderItemRecord.bngProvisionsLabels = ['
|
|
829
|
+
OrderItemRecord.bngProvisionsLabels = ['OrderItem_BngProvision'];
|
|
830
830
|
/** Valid labels for CustomerDeviceRouter associations */
|
|
831
831
|
OrderItemRecord.customerDeviceRoutersLabels = ['OrderItem__CustomerDeviceRouter'];
|
|
832
832
|
/** Valid labels for CustomerDeviceAta associations */
|
|
@@ -1884,6 +1884,31 @@ export declare class OrderRecord<TProps = OrderProperties> {
|
|
|
1884
1884
|
moveOrderFromSupplyToActive(options?: {
|
|
1885
1885
|
journeyId?: string;
|
|
1886
1886
|
}): ActionBuilder;
|
|
1887
|
+
/**
|
|
1888
|
+
* MoveOrderFromSupplyToCancelled
|
|
1889
|
+
*
|
|
1890
|
+
* Transitions this Order record to a new pipeline stage.
|
|
1891
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
1892
|
+
*
|
|
1893
|
+
* @remarks Transitions to stage: OrderStageCancelled
|
|
1894
|
+
*
|
|
1895
|
+
* @param options - Optional settings
|
|
1896
|
+
* @param options.journeyId - Associate with a journey
|
|
1897
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
1898
|
+
* @throws Error if called on a new (unsaved) record
|
|
1899
|
+
*
|
|
1900
|
+
* @example
|
|
1901
|
+
* ```typescript
|
|
1902
|
+
* const record = await odinClient.orders.get(id);
|
|
1903
|
+
* await record.moveOrderFromSupplyToCancelled().execute();
|
|
1904
|
+
*
|
|
1905
|
+
* // Dry run (for debugging)
|
|
1906
|
+
* const payload = record.moveOrderFromSupplyToCancelled().dryRun();
|
|
1907
|
+
* ```
|
|
1908
|
+
*/
|
|
1909
|
+
moveOrderFromSupplyToCancelled(options?: {
|
|
1910
|
+
journeyId?: string;
|
|
1911
|
+
}): ActionBuilder;
|
|
1887
1912
|
/**
|
|
1888
1913
|
* MoveOrderToActive
|
|
1889
1914
|
*
|
|
@@ -2748,6 +2748,35 @@ class OrderRecord {
|
|
|
2748
2748
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveOrderFromSupplyToActive', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OrderStageActive' }, options);
|
|
2749
2749
|
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
2750
2750
|
}
|
|
2751
|
+
/**
|
|
2752
|
+
* MoveOrderFromSupplyToCancelled
|
|
2753
|
+
*
|
|
2754
|
+
* Transitions this Order record to a new pipeline stage.
|
|
2755
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
2756
|
+
*
|
|
2757
|
+
* @remarks Transitions to stage: OrderStageCancelled
|
|
2758
|
+
*
|
|
2759
|
+
* @param options - Optional settings
|
|
2760
|
+
* @param options.journeyId - Associate with a journey
|
|
2761
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
2762
|
+
* @throws Error if called on a new (unsaved) record
|
|
2763
|
+
*
|
|
2764
|
+
* @example
|
|
2765
|
+
* ```typescript
|
|
2766
|
+
* const record = await odinClient.orders.get(id);
|
|
2767
|
+
* await record.moveOrderFromSupplyToCancelled().execute();
|
|
2768
|
+
*
|
|
2769
|
+
* // Dry run (for debugging)
|
|
2770
|
+
* const payload = record.moveOrderFromSupplyToCancelled().dryRun();
|
|
2771
|
+
* ```
|
|
2772
|
+
*/
|
|
2773
|
+
moveOrderFromSupplyToCancelled(options) {
|
|
2774
|
+
var _a;
|
|
2775
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
2776
|
+
throw new Error('moveOrderFromSupplyToCancelled requires an existing record. Use accessor.get() first.');
|
|
2777
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveOrderFromSupplyToCancelled', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OrderStageCancelled' }, options);
|
|
2778
|
+
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
2779
|
+
}
|
|
2751
2780
|
/**
|
|
2752
2781
|
* MoveOrderToActive
|
|
2753
2782
|
*
|