@d19n/youfibre-odin-sdk 2.0.255 → 2.0.256-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.
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 **
|
|
363
|
+
This SDK includes **782** actions.
|
|
364
364
|
|
|
365
365
|
### Action Types
|
|
366
366
|
|
|
@@ -403,6 +403,7 @@ This SDK includes **781** actions.
|
|
|
403
403
|
| `OderUpdate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.OderUpdate |
|
|
404
404
|
| `ReactivateOrderAfterRollback` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.ReactivateOrderAfterRollback |
|
|
405
405
|
| `SetOrderAffiliateCode` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetOrderAffiliateCode |
|
|
406
|
+
| `SetOrderCancelDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate |
|
|
406
407
|
| `SetOrderCancelOnDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetOrderCancelOnDate |
|
|
407
408
|
| `SetOrderDeactivateOnDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetOrderDeactivateOnDate |
|
|
408
409
|
| `SetPendingAmcoWorkOrder` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetPendingAmcoWorkOrder |
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SetOrderCancelDate Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Set Order Cancel Date
|
|
5
|
+
*
|
|
6
|
+
* @module OrderModule
|
|
7
|
+
* @entity Order
|
|
8
|
+
* @actionKey SetOrderCancelDate
|
|
9
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate
|
|
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 SetOrderCancelDate
|
|
17
|
+
*/
|
|
18
|
+
export interface SetOrderCancelDateStepLink {
|
|
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 SetOrderCancelDate
|
|
33
|
+
*/
|
|
34
|
+
export interface SetOrderCancelDateStepDefinition {
|
|
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: SetOrderCancelDateStepLink[] | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Type-safe step keys for SetOrderCancelDate
|
|
46
|
+
*/
|
|
47
|
+
export declare const SetOrderCancelDateSteps: {
|
|
48
|
+
readonly step_1: "step_1";
|
|
49
|
+
};
|
|
50
|
+
export declare type SetOrderCancelDateStepKey = typeof SetOrderCancelDateSteps[keyof typeof SetOrderCancelDateSteps];
|
|
51
|
+
/**
|
|
52
|
+
* RabbitMQ message payload for SetOrderCancelDate step flow events
|
|
53
|
+
*
|
|
54
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate
|
|
55
|
+
*/
|
|
56
|
+
export interface SetOrderCancelDateMessage extends OdinRecordUpdatedEvent<SetOrderCancelDateDto, {}> {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Properties for SetOrderCancelDate action
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export interface SetOrderCancelDateProperties {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* SetOrderCancelDate
|
|
66
|
+
*
|
|
67
|
+
* Set Order Cancel Date
|
|
68
|
+
*
|
|
69
|
+
* @actionType MULTI_STEP_FLOW - Multi-step workflow action
|
|
70
|
+
* @module OrderModule
|
|
71
|
+
* @entity Order
|
|
72
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate
|
|
73
|
+
* @permission schema.action.setordercanceldate.trigger
|
|
74
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
75
|
+
*/
|
|
76
|
+
export declare class SetOrderCancelDateDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
77
|
+
/** Used by SDK generators to identify action type */
|
|
78
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
79
|
+
static readonly ACTION_KEY = "SetOrderCancelDate";
|
|
80
|
+
static readonly MODULE_NAME = "OrderModule";
|
|
81
|
+
static readonly ENTITIES: string[];
|
|
82
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate";
|
|
83
|
+
static readonly SCHEMA_ACTION_ID = "142e518a-5810-487e-8ffa-e758abfdb4c6";
|
|
84
|
+
static readonly PERMISSION = "schema.action.setordercanceldate.trigger";
|
|
85
|
+
static readonly IS_STAGE_TRANSITION = false;
|
|
86
|
+
static readonly IS_MULTI_STEP_FLOW = true;
|
|
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: SetOrderCancelDateStepDefinition[];
|
|
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
|
+
constructor(record: OdinRecord<any> | {
|
|
101
|
+
id: string;
|
|
102
|
+
entity: string;
|
|
103
|
+
type?: string;
|
|
104
|
+
}, options?: {
|
|
105
|
+
journeyId?: string;
|
|
106
|
+
});
|
|
107
|
+
/** Step classes that can be used with this action */
|
|
108
|
+
static readonly stepClasses: readonly [];
|
|
109
|
+
steps: StepClassMap[(typeof SetOrderCancelDateDto.stepClasses)[number]][];
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SetOrderCancelDate Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Set Order Cancel Date
|
|
6
|
+
*
|
|
7
|
+
* @module OrderModule
|
|
8
|
+
* @entity Order
|
|
9
|
+
* @actionKey SetOrderCancelDate
|
|
10
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SetOrderCancelDateDto = exports.SetOrderCancelDateSteps = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Type-safe step keys for SetOrderCancelDate
|
|
19
|
+
*/
|
|
20
|
+
exports.SetOrderCancelDateSteps = {
|
|
21
|
+
step_1: 'step_1',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* SetOrderCancelDate
|
|
25
|
+
*
|
|
26
|
+
* Set Order Cancel Date
|
|
27
|
+
*
|
|
28
|
+
* @actionType MULTI_STEP_FLOW - Multi-step workflow action
|
|
29
|
+
* @module OrderModule
|
|
30
|
+
* @entity Order
|
|
31
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate
|
|
32
|
+
* @permission schema.action.setordercanceldate.trigger
|
|
33
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
34
|
+
*/
|
|
35
|
+
class SetOrderCancelDateDto extends core_1.OdinRecordUpdateDto {
|
|
36
|
+
constructor(record, options) {
|
|
37
|
+
super({
|
|
38
|
+
id: record.id,
|
|
39
|
+
entity: record.entity,
|
|
40
|
+
type: record.type,
|
|
41
|
+
properties: {},
|
|
42
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
43
|
+
});
|
|
44
|
+
this.actionName = 'SetOrderCancelDate';
|
|
45
|
+
this.schemaActionId = '142e518a-5810-487e-8ffa-e758abfdb4c6';
|
|
46
|
+
this.entity = 'OrderModule:Order';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.SetOrderCancelDateDto = SetOrderCancelDateDto;
|
|
50
|
+
/** Used by SDK generators to identify action type */
|
|
51
|
+
SetOrderCancelDateDto.ACTION_TYPE = 'UPDATE';
|
|
52
|
+
SetOrderCancelDateDto.ACTION_KEY = 'SetOrderCancelDate';
|
|
53
|
+
SetOrderCancelDateDto.MODULE_NAME = 'OrderModule';
|
|
54
|
+
SetOrderCancelDateDto.ENTITIES = ['Order'];
|
|
55
|
+
SetOrderCancelDateDto.EVENT_NAME = 'k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate';
|
|
56
|
+
SetOrderCancelDateDto.SCHEMA_ACTION_ID = '142e518a-5810-487e-8ffa-e758abfdb4c6';
|
|
57
|
+
SetOrderCancelDateDto.PERMISSION = 'schema.action.setordercanceldate.trigger';
|
|
58
|
+
SetOrderCancelDateDto.IS_STAGE_TRANSITION = false;
|
|
59
|
+
SetOrderCancelDateDto.IS_MULTI_STEP_FLOW = true;
|
|
60
|
+
SetOrderCancelDateDto.HAS_STEP_LINKS = false;
|
|
61
|
+
/**
|
|
62
|
+
* Step definitions with linking metadata
|
|
63
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
64
|
+
*/
|
|
65
|
+
SetOrderCancelDateDto.stepDefinitions = [
|
|
66
|
+
{
|
|
67
|
+
stepKey: 'step_1',
|
|
68
|
+
dtoClass: 'unknown',
|
|
69
|
+
entity: 'unknown',
|
|
70
|
+
linksTo: null
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
/** Type-safe step key accessor */
|
|
74
|
+
SetOrderCancelDateDto.Steps = exports.SetOrderCancelDateSteps;
|
|
75
|
+
/** Step classes that can be used with this action */
|
|
76
|
+
SetOrderCancelDateDto.stepClasses = [];
|