@d19n/youfibre-odin-sdk 1.0.302 → 1.0.303-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 (26) hide show
  1. package/README.md +25 -1
  2. package/dist/actions-v2/CreateDispatchAmcoWorkOrderDto.d.ts +1 -0
  3. package/dist/actions-v2/CreateDispatchAmcoWorkOrderFromOrderDto.d.ts +1 -0
  4. package/dist/actions-v2/MoveCashbackRewardToAwardedDto.d.ts +116 -0
  5. package/dist/actions-v2/MoveCashbackRewardToAwardedDto.js +81 -0
  6. package/dist/actions-v2/MoveCashbackRewardToFailedDto.d.ts +116 -0
  7. package/dist/actions-v2/MoveCashbackRewardToFailedDto.js +81 -0
  8. package/dist/actions-v2/MoveOrderReferralToCancelledDto.d.ts +116 -0
  9. package/dist/actions-v2/MoveOrderReferralToCancelledDto.js +81 -0
  10. package/dist/actions-v2/MoveOrderReferralToCompletedDto.d.ts +116 -0
  11. package/dist/actions-v2/MoveOrderReferralToCompletedDto.js +81 -0
  12. package/dist/actions-v2/MoveOrderReferralToNotQualifiedDto.d.ts +116 -0
  13. package/dist/actions-v2/MoveOrderReferralToNotQualifiedDto.js +81 -0
  14. package/dist/actions-v2/MoveOrderReferralToPendingActivationDto.d.ts +116 -0
  15. package/dist/actions-v2/MoveOrderReferralToPendingActivationDto.js +81 -0
  16. package/dist/actions-v2/MoveOrderReferralToPendingValidationDto.d.ts +116 -0
  17. package/dist/actions-v2/MoveOrderReferralToPendingValidationDto.js +81 -0
  18. package/dist/actions-v2/MoveOrderReferralToQualifiedDto.d.ts +116 -0
  19. package/dist/actions-v2/MoveOrderReferralToQualifiedDto.js +81 -0
  20. package/dist/entities-v2/Reward.d.ts +1 -1
  21. package/dist/entities-v2/Reward.js +1 -1
  22. package/dist/records-v2/ReferralRecord.d.ts +144 -0
  23. package/dist/records-v2/ReferralRecord.js +231 -0
  24. package/dist/records-v2/RewardRecord.d.ts +48 -0
  25. package/dist/records-v2/RewardRecord.js +79 -0
  26. package/package.json +2 -2
package/README.md CHANGED
@@ -346,7 +346,7 @@ This SDK includes **158** entities across **12** modules.
346
346
 
347
347
  ## Actions
348
348
 
349
- This SDK includes **481** actions.
349
+ This SDK includes **489** actions.
350
350
 
351
351
  ### Action Types
352
352
 
@@ -1044,6 +1044,12 @@ This SDK includes **481** actions.
1044
1044
  | Action | Type | Event |
1045
1045
  |--------|------|-------|
1046
1046
  | `CreateCashbackReward` | CREATE | CrmModule.Reward.Create.CreateCashbackReward |
1047
+ | `MoveCashbackRewardToAwarded` | STAGE_TRANSITION | CrmModule.Reward.Action.MoveCashbackRewardToAwarded |
1048
+ | `MoveCashbackRewardToFailed` | STAGE_TRANSITION | CrmModule.Reward.Action.MoveCashbackRewardToFailed |
1049
+
1050
+ **MoveCashbackRewardToAwarded Target Stages:** `CashBackFlowStagePending`
1051
+
1052
+ **MoveCashbackRewardToFailed Target Stages:** `CashBackFlowStageFailed`
1047
1053
 
1048
1054
  #### Config
1049
1055
 
@@ -1187,6 +1193,24 @@ This SDK includes **481** actions.
1187
1193
  | Action | Type | Event |
1188
1194
  |--------|------|-------|
1189
1195
  | `CreateOrderReferral` | CREATE | CrmModule.Referral.Create.CreateOrderReferral |
1196
+ | `MoveOrderReferralToCancelled` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToCancelled |
1197
+ | `MoveOrderReferralToCompleted` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToCompleted |
1198
+ | `MoveOrderReferralToNotQualified` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToNotQualified |
1199
+ | `MoveOrderReferralToPendingActivation` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToPendingActivation |
1200
+ | `MoveOrderReferralToPendingValidation` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToPendingValidation |
1201
+ | `MoveOrderReferralToQualified` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToQualified |
1202
+
1203
+ **MoveOrderReferralToCancelled Target Stages:** `OrderFlowStageCancelled`
1204
+
1205
+ **MoveOrderReferralToCompleted Target Stages:** `OrderFlowStageCompleted`
1206
+
1207
+ **MoveOrderReferralToNotQualified Target Stages:** `OrderFlowStageNotQualified`
1208
+
1209
+ **MoveOrderReferralToPendingActivation Target Stages:** `OrderFlowStagePendingActivation`
1210
+
1211
+ **MoveOrderReferralToPendingValidation Target Stages:** `OrderFlowStagePendingValidation`
1212
+
1213
+ **MoveOrderReferralToQualified Target Stages:** `OrderFlowStageQualified`
1190
1214
 
1191
1215
  #### PaymentMethod
1192
1216
 
@@ -32,6 +32,7 @@ export interface CreateDispatchAmcoWorkOrderProperties {
32
32
  * PendingAmcoOrder
33
33
  * @type {BOOLEAN}
34
34
  * @default Dynamic: {source_record_properties_PendingAmcoDispatch}
35
+ * @hidden This field is not visible in the UI
35
36
  */
36
37
  PendingAmcoOrder?: boolean | null;
37
38
  /**
@@ -24,6 +24,7 @@ export interface CreateDispatchAmcoWorkOrderProperties {
24
24
  * PendingAmcoOrder
25
25
  * @type {BOOLEAN}
26
26
  * @default Dynamic: {source_record_properties_PendingAmcoDispatch}
27
+ * @hidden This field is not visible in the UI
27
28
  */
28
29
  PendingAmcoOrder?: boolean | null;
29
30
  /**
@@ -0,0 +1,116 @@
1
+ /**
2
+ * MoveCashbackRewardToAwarded Action DTO
3
+ *
4
+ * Mark cashback reward as awarded
5
+ *
6
+ * @module CrmModule
7
+ * @entity Reward
8
+ * @entityType CASHBACK
9
+ * @actionKey MoveCashbackRewardToAwarded
10
+ * @event CrmModule.CashbackReward.TransitionToAwarded.MoveCashbackRewardToAwarded
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ declare type StepClassMap = {};
16
+ /**
17
+ * Link definition for connecting steps in MoveCashbackRewardToAwarded
18
+ */
19
+ export interface MoveCashbackRewardToAwardedStepLink {
20
+ /**
21
+ * The stepKey of the target step to link TO
22
+ * Must reference another step's stepKey in the same flow
23
+ */
24
+ stepKey: string;
25
+ /**
26
+ * The schema association ID (UUID) defining the relationship
27
+ * Use the association.id from the schema association definition
28
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
29
+ */
30
+ schemaAssociationId: string;
31
+ }
32
+ /**
33
+ * Step definition with linking metadata for MoveCashbackRewardToAwarded
34
+ */
35
+ export interface MoveCashbackRewardToAwardedStepDefinition {
36
+ /** Unique identifier for this step */
37
+ stepKey: string;
38
+ /** The DTO class name for this step */
39
+ dtoClass: string;
40
+ /** The entity this step creates (Module:Entity format) */
41
+ entity: string;
42
+ /** Links to create after this step executes */
43
+ linksTo: MoveCashbackRewardToAwardedStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MoveCashbackRewardToAwarded
47
+ */
48
+ export declare const MoveCashbackRewardToAwardedSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MoveCashbackRewardToAwardedStepKey = typeof MoveCashbackRewardToAwardedSteps[keyof typeof MoveCashbackRewardToAwardedSteps];
52
+ /**
53
+ * RabbitMQ message payload for MoveCashbackRewardToAwarded step flow events
54
+ *
55
+ * @event CrmModule.Reward.Action.MoveCashbackRewardToAwarded
56
+ */
57
+ export interface MoveCashbackRewardToAwardedMessage extends OdinRecordUpdatedEvent<MoveCashbackRewardToAwardedDto, {}> {
58
+ }
59
+ /**
60
+ * Properties for MoveCashbackRewardToAwarded action
61
+ *
62
+ */
63
+ export interface MoveCashbackRewardToAwardedProperties {
64
+ }
65
+ /**
66
+ * MoveCashbackRewardToAwarded
67
+ *
68
+ * Mark cashback reward as awarded
69
+ *
70
+ * @module CrmModule
71
+ * @entity Reward
72
+ * @entityType CASHBACK (CASHBACK)
73
+ * @targetStages CashBackFlowStagePending
74
+ * @event CrmModule.Reward.Action.MoveCashbackRewardToAwarded
75
+ * @permission schema.action.movecashbackrewardtoawarded.trigger
76
+ * @benchmark This action is tracked for performance benchmarks
77
+ */
78
+ export declare class MoveCashbackRewardToAwardedDto extends OdinRecordUpdateDto<Record<string, any>> {
79
+ /** Used by SDK generators to identify action type */
80
+ static readonly ACTION_TYPE = "UPDATE";
81
+ static readonly ACTION_KEY = "MoveCashbackRewardToAwarded";
82
+ static readonly MODULE_NAME = "CrmModule";
83
+ static readonly ENTITIES: string[];
84
+ static readonly ENTITY_TYPE = "CASHBACK";
85
+ static readonly EVENT_NAME = "CrmModule.Reward.Action.MoveCashbackRewardToAwarded";
86
+ static readonly SCHEMA_ACTION_ID = "f77ea026-72d8-4c0f-9c10-fc00b7d4318f";
87
+ static readonly PERMISSION = "schema.action.movecashbackrewardtoawarded.trigger";
88
+ static readonly TARGET_STAGES: readonly ["CashBackFlowStagePending"];
89
+ static readonly IS_STAGE_TRANSITION = false;
90
+ static readonly IS_MULTI_STEP_FLOW = false;
91
+ static readonly HAS_STEP_LINKS = false;
92
+ /**
93
+ * Step definitions with linking metadata
94
+ * Used by SDK and backend for auto-linking after step execution
95
+ */
96
+ static readonly stepDefinitions: MoveCashbackRewardToAwardedStepDefinition[];
97
+ /** Type-safe step key accessor */
98
+ static readonly Steps: {
99
+ readonly step_1: "step_1";
100
+ };
101
+ readonly actionName: string;
102
+ readonly schemaActionId: string;
103
+ readonly entity: string;
104
+ readonly stageKey: string;
105
+ constructor(record: OdinRecord<any> | {
106
+ id: string;
107
+ entity: string;
108
+ type?: string;
109
+ }, options?: {
110
+ journeyId?: string;
111
+ });
112
+ /** Step classes that can be used with this action */
113
+ static readonly stepClasses: readonly [];
114
+ steps: StepClassMap[(typeof MoveCashbackRewardToAwardedDto.stepClasses)[number]][];
115
+ }
116
+ export {};
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ * MoveCashbackRewardToAwarded Action DTO
4
+ *
5
+ * Mark cashback reward as awarded
6
+ *
7
+ * @module CrmModule
8
+ * @entity Reward
9
+ * @entityType CASHBACK
10
+ * @actionKey MoveCashbackRewardToAwarded
11
+ * @event CrmModule.CashbackReward.TransitionToAwarded.MoveCashbackRewardToAwarded
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MoveCashbackRewardToAwardedDto = exports.MoveCashbackRewardToAwardedSteps = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MoveCashbackRewardToAwarded
20
+ */
21
+ exports.MoveCashbackRewardToAwardedSteps = {
22
+ step_1: 'step_1',
23
+ };
24
+ /**
25
+ * MoveCashbackRewardToAwarded
26
+ *
27
+ * Mark cashback reward as awarded
28
+ *
29
+ * @module CrmModule
30
+ * @entity Reward
31
+ * @entityType CASHBACK (CASHBACK)
32
+ * @targetStages CashBackFlowStagePending
33
+ * @event CrmModule.Reward.Action.MoveCashbackRewardToAwarded
34
+ * @permission schema.action.movecashbackrewardtoawarded.trigger
35
+ * @benchmark This action is tracked for performance benchmarks
36
+ */
37
+ class MoveCashbackRewardToAwardedDto extends core_1.OdinRecordUpdateDto {
38
+ constructor(record, options) {
39
+ super({
40
+ id: record.id,
41
+ entity: record.entity,
42
+ type: record.type,
43
+ properties: {},
44
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
45
+ });
46
+ this.actionName = 'MoveCashbackRewardToAwarded';
47
+ this.schemaActionId = 'f77ea026-72d8-4c0f-9c10-fc00b7d4318f';
48
+ this.entity = 'CrmModule:Reward';
49
+ this.stageKey = 'CashBackFlowStagePending';
50
+ }
51
+ }
52
+ exports.MoveCashbackRewardToAwardedDto = MoveCashbackRewardToAwardedDto;
53
+ /** Used by SDK generators to identify action type */
54
+ MoveCashbackRewardToAwardedDto.ACTION_TYPE = 'UPDATE';
55
+ MoveCashbackRewardToAwardedDto.ACTION_KEY = 'MoveCashbackRewardToAwarded';
56
+ MoveCashbackRewardToAwardedDto.MODULE_NAME = 'CrmModule';
57
+ MoveCashbackRewardToAwardedDto.ENTITIES = ['Reward'];
58
+ MoveCashbackRewardToAwardedDto.ENTITY_TYPE = 'CASHBACK';
59
+ MoveCashbackRewardToAwardedDto.EVENT_NAME = 'CrmModule.Reward.Action.MoveCashbackRewardToAwarded';
60
+ MoveCashbackRewardToAwardedDto.SCHEMA_ACTION_ID = 'f77ea026-72d8-4c0f-9c10-fc00b7d4318f';
61
+ MoveCashbackRewardToAwardedDto.PERMISSION = 'schema.action.movecashbackrewardtoawarded.trigger';
62
+ MoveCashbackRewardToAwardedDto.TARGET_STAGES = ['CashBackFlowStagePending'];
63
+ MoveCashbackRewardToAwardedDto.IS_STAGE_TRANSITION = false;
64
+ MoveCashbackRewardToAwardedDto.IS_MULTI_STEP_FLOW = false;
65
+ MoveCashbackRewardToAwardedDto.HAS_STEP_LINKS = false;
66
+ /**
67
+ * Step definitions with linking metadata
68
+ * Used by SDK and backend for auto-linking after step execution
69
+ */
70
+ MoveCashbackRewardToAwardedDto.stepDefinitions = [
71
+ {
72
+ stepKey: 'step_1',
73
+ dtoClass: 'unknown',
74
+ entity: 'unknown',
75
+ linksTo: null
76
+ }
77
+ ];
78
+ /** Type-safe step key accessor */
79
+ MoveCashbackRewardToAwardedDto.Steps = exports.MoveCashbackRewardToAwardedSteps;
80
+ /** Step classes that can be used with this action */
81
+ MoveCashbackRewardToAwardedDto.stepClasses = [];
@@ -0,0 +1,116 @@
1
+ /**
2
+ * MoveCashbackRewardToFailed Action DTO
3
+ *
4
+ * Mark cashback reward as failed
5
+ *
6
+ * @module CrmModule
7
+ * @entity Reward
8
+ * @entityType CASHBACK
9
+ * @actionKey MoveCashbackRewardToFailed
10
+ * @event CrmModule.CashbackReward.TransitionToFailed.MoveCashbackRewardToFailed
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ declare type StepClassMap = {};
16
+ /**
17
+ * Link definition for connecting steps in MoveCashbackRewardToFailed
18
+ */
19
+ export interface MoveCashbackRewardToFailedStepLink {
20
+ /**
21
+ * The stepKey of the target step to link TO
22
+ * Must reference another step's stepKey in the same flow
23
+ */
24
+ stepKey: string;
25
+ /**
26
+ * The schema association ID (UUID) defining the relationship
27
+ * Use the association.id from the schema association definition
28
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
29
+ */
30
+ schemaAssociationId: string;
31
+ }
32
+ /**
33
+ * Step definition with linking metadata for MoveCashbackRewardToFailed
34
+ */
35
+ export interface MoveCashbackRewardToFailedStepDefinition {
36
+ /** Unique identifier for this step */
37
+ stepKey: string;
38
+ /** The DTO class name for this step */
39
+ dtoClass: string;
40
+ /** The entity this step creates (Module:Entity format) */
41
+ entity: string;
42
+ /** Links to create after this step executes */
43
+ linksTo: MoveCashbackRewardToFailedStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MoveCashbackRewardToFailed
47
+ */
48
+ export declare const MoveCashbackRewardToFailedSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MoveCashbackRewardToFailedStepKey = typeof MoveCashbackRewardToFailedSteps[keyof typeof MoveCashbackRewardToFailedSteps];
52
+ /**
53
+ * RabbitMQ message payload for MoveCashbackRewardToFailed step flow events
54
+ *
55
+ * @event CrmModule.Reward.Action.MoveCashbackRewardToFailed
56
+ */
57
+ export interface MoveCashbackRewardToFailedMessage extends OdinRecordUpdatedEvent<MoveCashbackRewardToFailedDto, {}> {
58
+ }
59
+ /**
60
+ * Properties for MoveCashbackRewardToFailed action
61
+ *
62
+ */
63
+ export interface MoveCashbackRewardToFailedProperties {
64
+ }
65
+ /**
66
+ * MoveCashbackRewardToFailed
67
+ *
68
+ * Mark cashback reward as failed
69
+ *
70
+ * @module CrmModule
71
+ * @entity Reward
72
+ * @entityType CASHBACK (CASHBACK)
73
+ * @targetStages CashBackFlowStageFailed
74
+ * @event CrmModule.Reward.Action.MoveCashbackRewardToFailed
75
+ * @permission schema.action.movecashbackrewardtofailed.trigger
76
+ * @benchmark This action is tracked for performance benchmarks
77
+ */
78
+ export declare class MoveCashbackRewardToFailedDto extends OdinRecordUpdateDto<Record<string, any>> {
79
+ /** Used by SDK generators to identify action type */
80
+ static readonly ACTION_TYPE = "UPDATE";
81
+ static readonly ACTION_KEY = "MoveCashbackRewardToFailed";
82
+ static readonly MODULE_NAME = "CrmModule";
83
+ static readonly ENTITIES: string[];
84
+ static readonly ENTITY_TYPE = "CASHBACK";
85
+ static readonly EVENT_NAME = "CrmModule.Reward.Action.MoveCashbackRewardToFailed";
86
+ static readonly SCHEMA_ACTION_ID = "ebb4e1ae-ce70-4952-9b73-dd247ea9299c";
87
+ static readonly PERMISSION = "schema.action.movecashbackrewardtofailed.trigger";
88
+ static readonly TARGET_STAGES: readonly ["CashBackFlowStageFailed"];
89
+ static readonly IS_STAGE_TRANSITION = false;
90
+ static readonly IS_MULTI_STEP_FLOW = false;
91
+ static readonly HAS_STEP_LINKS = false;
92
+ /**
93
+ * Step definitions with linking metadata
94
+ * Used by SDK and backend for auto-linking after step execution
95
+ */
96
+ static readonly stepDefinitions: MoveCashbackRewardToFailedStepDefinition[];
97
+ /** Type-safe step key accessor */
98
+ static readonly Steps: {
99
+ readonly step_1: "step_1";
100
+ };
101
+ readonly actionName: string;
102
+ readonly schemaActionId: string;
103
+ readonly entity: string;
104
+ readonly stageKey: string;
105
+ constructor(record: OdinRecord<any> | {
106
+ id: string;
107
+ entity: string;
108
+ type?: string;
109
+ }, options?: {
110
+ journeyId?: string;
111
+ });
112
+ /** Step classes that can be used with this action */
113
+ static readonly stepClasses: readonly [];
114
+ steps: StepClassMap[(typeof MoveCashbackRewardToFailedDto.stepClasses)[number]][];
115
+ }
116
+ export {};
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ * MoveCashbackRewardToFailed Action DTO
4
+ *
5
+ * Mark cashback reward as failed
6
+ *
7
+ * @module CrmModule
8
+ * @entity Reward
9
+ * @entityType CASHBACK
10
+ * @actionKey MoveCashbackRewardToFailed
11
+ * @event CrmModule.CashbackReward.TransitionToFailed.MoveCashbackRewardToFailed
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MoveCashbackRewardToFailedDto = exports.MoveCashbackRewardToFailedSteps = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MoveCashbackRewardToFailed
20
+ */
21
+ exports.MoveCashbackRewardToFailedSteps = {
22
+ step_1: 'step_1',
23
+ };
24
+ /**
25
+ * MoveCashbackRewardToFailed
26
+ *
27
+ * Mark cashback reward as failed
28
+ *
29
+ * @module CrmModule
30
+ * @entity Reward
31
+ * @entityType CASHBACK (CASHBACK)
32
+ * @targetStages CashBackFlowStageFailed
33
+ * @event CrmModule.Reward.Action.MoveCashbackRewardToFailed
34
+ * @permission schema.action.movecashbackrewardtofailed.trigger
35
+ * @benchmark This action is tracked for performance benchmarks
36
+ */
37
+ class MoveCashbackRewardToFailedDto extends core_1.OdinRecordUpdateDto {
38
+ constructor(record, options) {
39
+ super({
40
+ id: record.id,
41
+ entity: record.entity,
42
+ type: record.type,
43
+ properties: {},
44
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
45
+ });
46
+ this.actionName = 'MoveCashbackRewardToFailed';
47
+ this.schemaActionId = 'ebb4e1ae-ce70-4952-9b73-dd247ea9299c';
48
+ this.entity = 'CrmModule:Reward';
49
+ this.stageKey = 'CashBackFlowStageFailed';
50
+ }
51
+ }
52
+ exports.MoveCashbackRewardToFailedDto = MoveCashbackRewardToFailedDto;
53
+ /** Used by SDK generators to identify action type */
54
+ MoveCashbackRewardToFailedDto.ACTION_TYPE = 'UPDATE';
55
+ MoveCashbackRewardToFailedDto.ACTION_KEY = 'MoveCashbackRewardToFailed';
56
+ MoveCashbackRewardToFailedDto.MODULE_NAME = 'CrmModule';
57
+ MoveCashbackRewardToFailedDto.ENTITIES = ['Reward'];
58
+ MoveCashbackRewardToFailedDto.ENTITY_TYPE = 'CASHBACK';
59
+ MoveCashbackRewardToFailedDto.EVENT_NAME = 'CrmModule.Reward.Action.MoveCashbackRewardToFailed';
60
+ MoveCashbackRewardToFailedDto.SCHEMA_ACTION_ID = 'ebb4e1ae-ce70-4952-9b73-dd247ea9299c';
61
+ MoveCashbackRewardToFailedDto.PERMISSION = 'schema.action.movecashbackrewardtofailed.trigger';
62
+ MoveCashbackRewardToFailedDto.TARGET_STAGES = ['CashBackFlowStageFailed'];
63
+ MoveCashbackRewardToFailedDto.IS_STAGE_TRANSITION = false;
64
+ MoveCashbackRewardToFailedDto.IS_MULTI_STEP_FLOW = false;
65
+ MoveCashbackRewardToFailedDto.HAS_STEP_LINKS = false;
66
+ /**
67
+ * Step definitions with linking metadata
68
+ * Used by SDK and backend for auto-linking after step execution
69
+ */
70
+ MoveCashbackRewardToFailedDto.stepDefinitions = [
71
+ {
72
+ stepKey: 'step_1',
73
+ dtoClass: 'unknown',
74
+ entity: 'unknown',
75
+ linksTo: null
76
+ }
77
+ ];
78
+ /** Type-safe step key accessor */
79
+ MoveCashbackRewardToFailedDto.Steps = exports.MoveCashbackRewardToFailedSteps;
80
+ /** Step classes that can be used with this action */
81
+ MoveCashbackRewardToFailedDto.stepClasses = [];
@@ -0,0 +1,116 @@
1
+ /**
2
+ * MoveOrderReferralToCancelled Action DTO
3
+ *
4
+ * Mark order referral as cancelled
5
+ *
6
+ * @module CrmModule
7
+ * @entity Referral
8
+ * @entityType ORDER
9
+ * @actionKey MoveOrderReferralToCancelled
10
+ * @event CrmModule.OrderReferral.TransitionToCancelled.MoveOrderReferralToCancelled
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ declare type StepClassMap = {};
16
+ /**
17
+ * Link definition for connecting steps in MoveOrderReferralToCancelled
18
+ */
19
+ export interface MoveOrderReferralToCancelledStepLink {
20
+ /**
21
+ * The stepKey of the target step to link TO
22
+ * Must reference another step's stepKey in the same flow
23
+ */
24
+ stepKey: string;
25
+ /**
26
+ * The schema association ID (UUID) defining the relationship
27
+ * Use the association.id from the schema association definition
28
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
29
+ */
30
+ schemaAssociationId: string;
31
+ }
32
+ /**
33
+ * Step definition with linking metadata for MoveOrderReferralToCancelled
34
+ */
35
+ export interface MoveOrderReferralToCancelledStepDefinition {
36
+ /** Unique identifier for this step */
37
+ stepKey: string;
38
+ /** The DTO class name for this step */
39
+ dtoClass: string;
40
+ /** The entity this step creates (Module:Entity format) */
41
+ entity: string;
42
+ /** Links to create after this step executes */
43
+ linksTo: MoveOrderReferralToCancelledStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MoveOrderReferralToCancelled
47
+ */
48
+ export declare const MoveOrderReferralToCancelledSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MoveOrderReferralToCancelledStepKey = typeof MoveOrderReferralToCancelledSteps[keyof typeof MoveOrderReferralToCancelledSteps];
52
+ /**
53
+ * RabbitMQ message payload for MoveOrderReferralToCancelled step flow events
54
+ *
55
+ * @event CrmModule.Referral.Action.MoveOrderReferralToCancelled
56
+ */
57
+ export interface MoveOrderReferralToCancelledMessage extends OdinRecordUpdatedEvent<MoveOrderReferralToCancelledDto, {}> {
58
+ }
59
+ /**
60
+ * Properties for MoveOrderReferralToCancelled action
61
+ *
62
+ */
63
+ export interface MoveOrderReferralToCancelledProperties {
64
+ }
65
+ /**
66
+ * MoveOrderReferralToCancelled
67
+ *
68
+ * Mark order referral as cancelled
69
+ *
70
+ * @module CrmModule
71
+ * @entity Referral
72
+ * @entityType ORDER (ORDER)
73
+ * @targetStages OrderFlowStageCancelled
74
+ * @event CrmModule.Referral.Action.MoveOrderReferralToCancelled
75
+ * @permission schema.action.moveorderreferraltocancelled.trigger
76
+ * @benchmark This action is tracked for performance benchmarks
77
+ */
78
+ export declare class MoveOrderReferralToCancelledDto extends OdinRecordUpdateDto<Record<string, any>> {
79
+ /** Used by SDK generators to identify action type */
80
+ static readonly ACTION_TYPE = "UPDATE";
81
+ static readonly ACTION_KEY = "MoveOrderReferralToCancelled";
82
+ static readonly MODULE_NAME = "CrmModule";
83
+ static readonly ENTITIES: string[];
84
+ static readonly ENTITY_TYPE = "ORDER";
85
+ static readonly EVENT_NAME = "CrmModule.Referral.Action.MoveOrderReferralToCancelled";
86
+ static readonly SCHEMA_ACTION_ID = "f20785f2-f6ca-425c-be8f-e45880fe6105";
87
+ static readonly PERMISSION = "schema.action.moveorderreferraltocancelled.trigger";
88
+ static readonly TARGET_STAGES: readonly ["OrderFlowStageCancelled"];
89
+ static readonly IS_STAGE_TRANSITION = false;
90
+ static readonly IS_MULTI_STEP_FLOW = false;
91
+ static readonly HAS_STEP_LINKS = false;
92
+ /**
93
+ * Step definitions with linking metadata
94
+ * Used by SDK and backend for auto-linking after step execution
95
+ */
96
+ static readonly stepDefinitions: MoveOrderReferralToCancelledStepDefinition[];
97
+ /** Type-safe step key accessor */
98
+ static readonly Steps: {
99
+ readonly step_1: "step_1";
100
+ };
101
+ readonly actionName: string;
102
+ readonly schemaActionId: string;
103
+ readonly entity: string;
104
+ readonly stageKey: string;
105
+ constructor(record: OdinRecord<any> | {
106
+ id: string;
107
+ entity: string;
108
+ type?: string;
109
+ }, options?: {
110
+ journeyId?: string;
111
+ });
112
+ /** Step classes that can be used with this action */
113
+ static readonly stepClasses: readonly [];
114
+ steps: StepClassMap[(typeof MoveOrderReferralToCancelledDto.stepClasses)[number]][];
115
+ }
116
+ export {};
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ * MoveOrderReferralToCancelled Action DTO
4
+ *
5
+ * Mark order referral as cancelled
6
+ *
7
+ * @module CrmModule
8
+ * @entity Referral
9
+ * @entityType ORDER
10
+ * @actionKey MoveOrderReferralToCancelled
11
+ * @event CrmModule.OrderReferral.TransitionToCancelled.MoveOrderReferralToCancelled
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MoveOrderReferralToCancelledDto = exports.MoveOrderReferralToCancelledSteps = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MoveOrderReferralToCancelled
20
+ */
21
+ exports.MoveOrderReferralToCancelledSteps = {
22
+ step_1: 'step_1',
23
+ };
24
+ /**
25
+ * MoveOrderReferralToCancelled
26
+ *
27
+ * Mark order referral as cancelled
28
+ *
29
+ * @module CrmModule
30
+ * @entity Referral
31
+ * @entityType ORDER (ORDER)
32
+ * @targetStages OrderFlowStageCancelled
33
+ * @event CrmModule.Referral.Action.MoveOrderReferralToCancelled
34
+ * @permission schema.action.moveorderreferraltocancelled.trigger
35
+ * @benchmark This action is tracked for performance benchmarks
36
+ */
37
+ class MoveOrderReferralToCancelledDto extends core_1.OdinRecordUpdateDto {
38
+ constructor(record, options) {
39
+ super({
40
+ id: record.id,
41
+ entity: record.entity,
42
+ type: record.type,
43
+ properties: {},
44
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
45
+ });
46
+ this.actionName = 'MoveOrderReferralToCancelled';
47
+ this.schemaActionId = 'f20785f2-f6ca-425c-be8f-e45880fe6105';
48
+ this.entity = 'CrmModule:Referral';
49
+ this.stageKey = 'OrderFlowStageCancelled';
50
+ }
51
+ }
52
+ exports.MoveOrderReferralToCancelledDto = MoveOrderReferralToCancelledDto;
53
+ /** Used by SDK generators to identify action type */
54
+ MoveOrderReferralToCancelledDto.ACTION_TYPE = 'UPDATE';
55
+ MoveOrderReferralToCancelledDto.ACTION_KEY = 'MoveOrderReferralToCancelled';
56
+ MoveOrderReferralToCancelledDto.MODULE_NAME = 'CrmModule';
57
+ MoveOrderReferralToCancelledDto.ENTITIES = ['Referral'];
58
+ MoveOrderReferralToCancelledDto.ENTITY_TYPE = 'ORDER';
59
+ MoveOrderReferralToCancelledDto.EVENT_NAME = 'CrmModule.Referral.Action.MoveOrderReferralToCancelled';
60
+ MoveOrderReferralToCancelledDto.SCHEMA_ACTION_ID = 'f20785f2-f6ca-425c-be8f-e45880fe6105';
61
+ MoveOrderReferralToCancelledDto.PERMISSION = 'schema.action.moveorderreferraltocancelled.trigger';
62
+ MoveOrderReferralToCancelledDto.TARGET_STAGES = ['OrderFlowStageCancelled'];
63
+ MoveOrderReferralToCancelledDto.IS_STAGE_TRANSITION = false;
64
+ MoveOrderReferralToCancelledDto.IS_MULTI_STEP_FLOW = false;
65
+ MoveOrderReferralToCancelledDto.HAS_STEP_LINKS = false;
66
+ /**
67
+ * Step definitions with linking metadata
68
+ * Used by SDK and backend for auto-linking after step execution
69
+ */
70
+ MoveOrderReferralToCancelledDto.stepDefinitions = [
71
+ {
72
+ stepKey: 'step_1',
73
+ dtoClass: 'unknown',
74
+ entity: 'unknown',
75
+ linksTo: null
76
+ }
77
+ ];
78
+ /** Type-safe step key accessor */
79
+ MoveOrderReferralToCancelledDto.Steps = exports.MoveOrderReferralToCancelledSteps;
80
+ /** Step classes that can be used with this action */
81
+ MoveOrderReferralToCancelledDto.stepClasses = [];