@d19n/youfibre-odin-sdk 2.0.230 → 2.0.231

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
@@ -358,7 +358,7 @@ This SDK includes **170** entities across **12** modules.
358
358
 
359
359
  ## Actions
360
360
 
361
- This SDK includes **734** actions.
361
+ This SDK includes **737** actions.
362
362
 
363
363
  ### Action Types
364
364
 
@@ -1692,8 +1692,17 @@ This SDK includes **734** actions.
1692
1692
  | Action | Type | Event |
1693
1693
  |--------|------|-------|
1694
1694
  | `CreatePgReportEvent` | CREATE | k1.t-hEOJjsDb.BillingModule.PgReportEvent.Create.CreatePgReportEvent |
1695
+ | `MovePgReportEventToFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed |
1696
+ | `MovePgReportEventToSkipped` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped |
1697
+ | `MovePgReportEventToSucceeded` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded |
1695
1698
  | `UpdatePgReportEvent` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgReportEvent.Update.UpdatePgReportEvent |
1696
1699
 
1700
+ **MovePgReportEventToFailed Target Stages:** `EventStatusStageFailed`
1701
+
1702
+ **MovePgReportEventToSkipped Target Stages:** `EventStatusStageSkipped`
1703
+
1704
+ **MovePgReportEventToSucceeded Target Stages:** `EventStatusStageSucceeded`
1705
+
1697
1706
  #### PgDirectDebitFile
1698
1707
 
1699
1708
  | Action | Type | Event |
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * CompletePICRequest Action DTO
3
3
  *
4
+ * CompletePICRequest
5
+ *
4
6
  * @module OrderModule
5
7
  * @entity PICRequest
6
8
  * @actionKey CompletePICRequest
@@ -19,10 +21,18 @@ export interface CompletePicRequestMessage extends OdinRecordUpdatedEvent<Comple
19
21
  /**
20
22
  * Properties for CompletePICRequest action
21
23
  *
22
- * @property Required fields: 1
24
+ * @property Required fields: 2
23
25
  * @property Optional fields: 4
24
26
  */
25
27
  export interface CompletePicRequestProperties {
28
+ /**
29
+ * reason
30
+ *
31
+ * the reason for the pre install cancellation request (Sales - PICRequest)
32
+ * @type {ENUM}
33
+ * @required
34
+ */
35
+ Reason: string;
26
36
  /**
27
37
  * Outcome
28
38
  *
@@ -43,14 +53,14 @@ export interface CompletePicRequestProperties {
43
53
  * Comparable Offer - Please add broadband price value.
44
54
  * @type {NUMBER}
45
55
  * @visibleWhen Outcome = ["LOST"]
46
- * @requiredWhen Outcome = ["LOST"]
56
+ * @requiredWhen Reason = ["C_02_DID_NOT_AGREE_ROUTE","C_04_REQUEST_TO_DELAY","C_05_RETENTION_OFFER_BY_PROVIDER","C_06_CBO_TOO_HIGH","C_07_CANT_AFFORD_MONTHLY_COST","C_08_OOH_SLOT_REQUIRED","C_09_POOR_CUSTOMER_EXPERIENCE","E_01_SLOT_MISSED_SUPPLIER","O_01_INCORRECT_PRODUCT_INFO","O_05_OVERSOLD_PROPOSITION"]
47
57
  */
48
58
  ComparableOffer?: number | null;
49
59
  /**
50
60
  * Winning Provider
51
61
  * @type {ENUM}
52
62
  * @visibleWhen Outcome = ["LOST"]
53
- * @requiredWhen Outcome = ["LOST"]
63
+ * @requiredWhen Reason = ["C_02_DID_NOT_AGREE_ROUTE","C_04_REQUEST_TO_DELAY","C_05_RETENTION_OFFER_BY_PROVIDER","C_06_CBO_TOO_HIGH","C_07_CANT_AFFORD_MONTHLY_COST","C_08_OOH_SLOT_REQUIRED","C_09_POOR_CUSTOMER_EXPERIENCE","E_01_SLOT_MISSED_SUPPLIER","O_01_INCORRECT_PRODUCT_INFO","O_05_OVERSOLD_PROPOSITION"]
54
64
  */
55
65
  WinningProvider?: string | null;
56
66
  /**
@@ -2,6 +2,8 @@
2
2
  /**
3
3
  * CompletePICRequest Action DTO
4
4
  *
5
+ * CompletePICRequest
6
+ *
5
7
  * @module OrderModule
6
8
  * @entity PICRequest
7
9
  * @actionKey CompletePICRequest
@@ -15,10 +15,18 @@ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/o
15
15
  /**
16
16
  * Properties for CompletePICRequest action
17
17
  *
18
- * @property Required fields: 1
18
+ * @property Required fields: 2
19
19
  * @property Optional fields: 4
20
20
  */
21
21
  export interface CompletePicRequestProperties {
22
+ /**
23
+ * reason
24
+ *
25
+ * the reason for the pre install cancellation request (Sales - PICRequest)
26
+ * @type {ENUM}
27
+ * @required
28
+ */
29
+ Reason: string;
22
30
  /**
23
31
  * Outcome
24
32
  *
@@ -39,14 +47,14 @@ export interface CompletePicRequestProperties {
39
47
  * Comparable Offer - Please add broadband price value.
40
48
  * @type {NUMBER}
41
49
  * @visibleWhen Outcome = ["LOST"]
42
- * @requiredWhen Outcome = ["LOST"]
50
+ * @requiredWhen Reason = ["C_02_DID_NOT_AGREE_ROUTE","C_04_REQUEST_TO_DELAY","C_05_RETENTION_OFFER_BY_PROVIDER","C_06_CBO_TOO_HIGH","C_07_CANT_AFFORD_MONTHLY_COST","C_08_OOH_SLOT_REQUIRED","C_09_POOR_CUSTOMER_EXPERIENCE","E_01_SLOT_MISSED_SUPPLIER","O_01_INCORRECT_PRODUCT_INFO","O_05_OVERSOLD_PROPOSITION"]
43
51
  */
44
52
  ComparableOffer?: number | null;
45
53
  /**
46
54
  * Winning Provider
47
55
  * @type {ENUM}
48
56
  * @visibleWhen Outcome = ["LOST"]
49
- * @requiredWhen Outcome = ["LOST"]
57
+ * @requiredWhen Reason = ["C_02_DID_NOT_AGREE_ROUTE","C_04_REQUEST_TO_DELAY","C_05_RETENTION_OFFER_BY_PROVIDER","C_06_CBO_TOO_HIGH","C_07_CANT_AFFORD_MONTHLY_COST","C_08_OOH_SLOT_REQUIRED","C_09_POOR_CUSTOMER_EXPERIENCE","E_01_SLOT_MISSED_SUPPLIER","O_01_INCORRECT_PRODUCT_INFO","O_05_OVERSOLD_PROPOSITION"]
50
58
  */
51
59
  WinningProvider?: string | null;
52
60
  /**
@@ -23,7 +23,7 @@ export interface CreatePgReportEventMessage extends OdinRecordCreatedEvent<Creat
23
23
  * Properties for CreatePgReportEvent action
24
24
  *
25
25
  * @property Required fields: 6
26
- * @property Optional fields: 2
26
+ * @property Optional fields: 3
27
27
  */
28
28
  export interface CreatePgReportEventProperties {
29
29
  /**
@@ -89,6 +89,13 @@ export interface CreatePgReportEventProperties {
89
89
  * @type {LOOKUP}
90
90
  */
91
91
  TransactionId?: string | null;
92
+ /**
93
+ * Amount
94
+ *
95
+ * Transaction Amount
96
+ * @type {CURRENCY}
97
+ */
98
+ Amount?: string | null;
92
99
  }
93
100
  /**
94
101
  * CreatePgReportEvent
@@ -0,0 +1,117 @@
1
+ /**
2
+ * MovePgReportEventToFailed Action DTO
3
+ *
4
+ * Move Report Event to Failed
5
+ *
6
+ * @module BillingModule
7
+ * @entity PgReportEvent
8
+ * @entityType DEFAULT
9
+ * @actionKey MovePgReportEventToFailed
10
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed
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 MovePgReportEventToFailed
18
+ */
19
+ export interface MovePgReportEventToFailedStepLink {
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 MovePgReportEventToFailed
34
+ */
35
+ export interface MovePgReportEventToFailedStepDefinition {
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: MovePgReportEventToFailedStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MovePgReportEventToFailed
47
+ */
48
+ export declare const MovePgReportEventToFailedSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MovePgReportEventToFailedStepKey = typeof MovePgReportEventToFailedSteps[keyof typeof MovePgReportEventToFailedSteps];
52
+ /**
53
+ * RabbitMQ message payload for MovePgReportEventToFailed step flow events
54
+ *
55
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed
56
+ */
57
+ export interface MovePgReportEventToFailedMessage extends OdinRecordUpdatedEvent<MovePgReportEventToFailedDto, {}> {
58
+ }
59
+ /**
60
+ * Properties for MovePgReportEventToFailed action
61
+ *
62
+ */
63
+ export interface MovePgReportEventToFailedProperties {
64
+ }
65
+ /**
66
+ * MovePgReportEventToFailed
67
+ *
68
+ * Move Report Event to Failed
69
+ *
70
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
71
+ * @module BillingModule
72
+ * @entity PgReportEvent
73
+ * @entityType DEFAULT (Default)
74
+ * @targetStages EventStatusStageFailed
75
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed
76
+ * @permission schema.action.movepgreporteventtofailed.trigger
77
+ * @benchmark This action is tracked for performance benchmarks
78
+ */
79
+ export declare class MovePgReportEventToFailedDto extends OdinRecordUpdateDto<Record<string, any>> {
80
+ /** Used by SDK generators to identify action type */
81
+ static readonly ACTION_TYPE = "UPDATE";
82
+ static readonly ACTION_KEY = "MovePgReportEventToFailed";
83
+ static readonly MODULE_NAME = "BillingModule";
84
+ static readonly ENTITIES: string[];
85
+ static readonly ENTITY_TYPE = "DEFAULT";
86
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed";
87
+ static readonly SCHEMA_ACTION_ID = "5bc28550-0b44-414a-96e2-2cb775aaf9bd";
88
+ static readonly PERMISSION = "schema.action.movepgreporteventtofailed.trigger";
89
+ static readonly TARGET_STAGES: readonly ["EventStatusStageFailed"];
90
+ static readonly IS_STAGE_TRANSITION = true;
91
+ static readonly IS_MULTI_STEP_FLOW = false;
92
+ static readonly HAS_STEP_LINKS = false;
93
+ /**
94
+ * Step definitions with linking metadata
95
+ * Used by SDK and backend for auto-linking after step execution
96
+ */
97
+ static readonly stepDefinitions: MovePgReportEventToFailedStepDefinition[];
98
+ /** Type-safe step key accessor */
99
+ static readonly Steps: {
100
+ readonly step_1: "step_1";
101
+ };
102
+ readonly actionName: string;
103
+ readonly schemaActionId: string;
104
+ readonly entity: string;
105
+ readonly stageKey: string;
106
+ constructor(record: OdinRecord<any> | {
107
+ id: string;
108
+ entity: string;
109
+ type?: string;
110
+ }, options?: {
111
+ journeyId?: string;
112
+ });
113
+ /** Step classes that can be used with this action */
114
+ static readonly stepClasses: readonly [];
115
+ steps: StepClassMap[(typeof MovePgReportEventToFailedDto.stepClasses)[number]][];
116
+ }
117
+ export {};
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /**
3
+ * MovePgReportEventToFailed Action DTO
4
+ *
5
+ * Move Report Event to Failed
6
+ *
7
+ * @module BillingModule
8
+ * @entity PgReportEvent
9
+ * @entityType DEFAULT
10
+ * @actionKey MovePgReportEventToFailed
11
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MovePgReportEventToFailedDto = exports.MovePgReportEventToFailedSteps = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MovePgReportEventToFailed
20
+ */
21
+ exports.MovePgReportEventToFailedSteps = {
22
+ step_1: 'step_1',
23
+ };
24
+ /**
25
+ * MovePgReportEventToFailed
26
+ *
27
+ * Move Report Event to Failed
28
+ *
29
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
30
+ * @module BillingModule
31
+ * @entity PgReportEvent
32
+ * @entityType DEFAULT (Default)
33
+ * @targetStages EventStatusStageFailed
34
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed
35
+ * @permission schema.action.movepgreporteventtofailed.trigger
36
+ * @benchmark This action is tracked for performance benchmarks
37
+ */
38
+ class MovePgReportEventToFailedDto extends core_1.OdinRecordUpdateDto {
39
+ constructor(record, options) {
40
+ super({
41
+ id: record.id,
42
+ entity: record.entity,
43
+ type: record.type,
44
+ properties: {},
45
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
46
+ });
47
+ this.actionName = 'MovePgReportEventToFailed';
48
+ this.schemaActionId = '5bc28550-0b44-414a-96e2-2cb775aaf9bd';
49
+ this.entity = 'BillingModule:PgReportEvent';
50
+ this.stageKey = 'EventStatusStageFailed';
51
+ }
52
+ }
53
+ exports.MovePgReportEventToFailedDto = MovePgReportEventToFailedDto;
54
+ /** Used by SDK generators to identify action type */
55
+ MovePgReportEventToFailedDto.ACTION_TYPE = 'UPDATE';
56
+ MovePgReportEventToFailedDto.ACTION_KEY = 'MovePgReportEventToFailed';
57
+ MovePgReportEventToFailedDto.MODULE_NAME = 'BillingModule';
58
+ MovePgReportEventToFailedDto.ENTITIES = ['PgReportEvent'];
59
+ MovePgReportEventToFailedDto.ENTITY_TYPE = 'DEFAULT';
60
+ MovePgReportEventToFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToFailed';
61
+ MovePgReportEventToFailedDto.SCHEMA_ACTION_ID = '5bc28550-0b44-414a-96e2-2cb775aaf9bd';
62
+ MovePgReportEventToFailedDto.PERMISSION = 'schema.action.movepgreporteventtofailed.trigger';
63
+ MovePgReportEventToFailedDto.TARGET_STAGES = ['EventStatusStageFailed'];
64
+ MovePgReportEventToFailedDto.IS_STAGE_TRANSITION = true;
65
+ MovePgReportEventToFailedDto.IS_MULTI_STEP_FLOW = false;
66
+ MovePgReportEventToFailedDto.HAS_STEP_LINKS = false;
67
+ /**
68
+ * Step definitions with linking metadata
69
+ * Used by SDK and backend for auto-linking after step execution
70
+ */
71
+ MovePgReportEventToFailedDto.stepDefinitions = [
72
+ {
73
+ stepKey: 'step_1',
74
+ dtoClass: 'unknown',
75
+ entity: 'unknown',
76
+ linksTo: null
77
+ }
78
+ ];
79
+ /** Type-safe step key accessor */
80
+ MovePgReportEventToFailedDto.Steps = exports.MovePgReportEventToFailedSteps;
81
+ /** Step classes that can be used with this action */
82
+ MovePgReportEventToFailedDto.stepClasses = [];
@@ -0,0 +1,117 @@
1
+ /**
2
+ * MovePgReportEventToSkipped Action DTO
3
+ *
4
+ * Move Report Event to Skipped
5
+ *
6
+ * @module BillingModule
7
+ * @entity PgReportEvent
8
+ * @entityType DEFAULT
9
+ * @actionKey MovePgReportEventToSkipped
10
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped
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 MovePgReportEventToSkipped
18
+ */
19
+ export interface MovePgReportEventToSkippedStepLink {
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 MovePgReportEventToSkipped
34
+ */
35
+ export interface MovePgReportEventToSkippedStepDefinition {
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: MovePgReportEventToSkippedStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MovePgReportEventToSkipped
47
+ */
48
+ export declare const MovePgReportEventToSkippedSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MovePgReportEventToSkippedStepKey = typeof MovePgReportEventToSkippedSteps[keyof typeof MovePgReportEventToSkippedSteps];
52
+ /**
53
+ * RabbitMQ message payload for MovePgReportEventToSkipped step flow events
54
+ *
55
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped
56
+ */
57
+ export interface MovePgReportEventToSkippedMessage extends OdinRecordUpdatedEvent<MovePgReportEventToSkippedDto, {}> {
58
+ }
59
+ /**
60
+ * Properties for MovePgReportEventToSkipped action
61
+ *
62
+ */
63
+ export interface MovePgReportEventToSkippedProperties {
64
+ }
65
+ /**
66
+ * MovePgReportEventToSkipped
67
+ *
68
+ * Move Report Event to Skipped
69
+ *
70
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
71
+ * @module BillingModule
72
+ * @entity PgReportEvent
73
+ * @entityType DEFAULT (Default)
74
+ * @targetStages EventStatusStageSkipped
75
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped
76
+ * @permission schema.action.movepgreporteventtoskipped.trigger
77
+ * @benchmark This action is tracked for performance benchmarks
78
+ */
79
+ export declare class MovePgReportEventToSkippedDto extends OdinRecordUpdateDto<Record<string, any>> {
80
+ /** Used by SDK generators to identify action type */
81
+ static readonly ACTION_TYPE = "UPDATE";
82
+ static readonly ACTION_KEY = "MovePgReportEventToSkipped";
83
+ static readonly MODULE_NAME = "BillingModule";
84
+ static readonly ENTITIES: string[];
85
+ static readonly ENTITY_TYPE = "DEFAULT";
86
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped";
87
+ static readonly SCHEMA_ACTION_ID = "36d53f7f-d362-43c2-ac5c-90b11e933346";
88
+ static readonly PERMISSION = "schema.action.movepgreporteventtoskipped.trigger";
89
+ static readonly TARGET_STAGES: readonly ["EventStatusStageSkipped"];
90
+ static readonly IS_STAGE_TRANSITION = true;
91
+ static readonly IS_MULTI_STEP_FLOW = false;
92
+ static readonly HAS_STEP_LINKS = false;
93
+ /**
94
+ * Step definitions with linking metadata
95
+ * Used by SDK and backend for auto-linking after step execution
96
+ */
97
+ static readonly stepDefinitions: MovePgReportEventToSkippedStepDefinition[];
98
+ /** Type-safe step key accessor */
99
+ static readonly Steps: {
100
+ readonly step_1: "step_1";
101
+ };
102
+ readonly actionName: string;
103
+ readonly schemaActionId: string;
104
+ readonly entity: string;
105
+ readonly stageKey: string;
106
+ constructor(record: OdinRecord<any> | {
107
+ id: string;
108
+ entity: string;
109
+ type?: string;
110
+ }, options?: {
111
+ journeyId?: string;
112
+ });
113
+ /** Step classes that can be used with this action */
114
+ static readonly stepClasses: readonly [];
115
+ steps: StepClassMap[(typeof MovePgReportEventToSkippedDto.stepClasses)[number]][];
116
+ }
117
+ export {};
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /**
3
+ * MovePgReportEventToSkipped Action DTO
4
+ *
5
+ * Move Report Event to Skipped
6
+ *
7
+ * @module BillingModule
8
+ * @entity PgReportEvent
9
+ * @entityType DEFAULT
10
+ * @actionKey MovePgReportEventToSkipped
11
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MovePgReportEventToSkippedDto = exports.MovePgReportEventToSkippedSteps = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MovePgReportEventToSkipped
20
+ */
21
+ exports.MovePgReportEventToSkippedSteps = {
22
+ step_1: 'step_1',
23
+ };
24
+ /**
25
+ * MovePgReportEventToSkipped
26
+ *
27
+ * Move Report Event to Skipped
28
+ *
29
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
30
+ * @module BillingModule
31
+ * @entity PgReportEvent
32
+ * @entityType DEFAULT (Default)
33
+ * @targetStages EventStatusStageSkipped
34
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped
35
+ * @permission schema.action.movepgreporteventtoskipped.trigger
36
+ * @benchmark This action is tracked for performance benchmarks
37
+ */
38
+ class MovePgReportEventToSkippedDto extends core_1.OdinRecordUpdateDto {
39
+ constructor(record, options) {
40
+ super({
41
+ id: record.id,
42
+ entity: record.entity,
43
+ type: record.type,
44
+ properties: {},
45
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
46
+ });
47
+ this.actionName = 'MovePgReportEventToSkipped';
48
+ this.schemaActionId = '36d53f7f-d362-43c2-ac5c-90b11e933346';
49
+ this.entity = 'BillingModule:PgReportEvent';
50
+ this.stageKey = 'EventStatusStageSkipped';
51
+ }
52
+ }
53
+ exports.MovePgReportEventToSkippedDto = MovePgReportEventToSkippedDto;
54
+ /** Used by SDK generators to identify action type */
55
+ MovePgReportEventToSkippedDto.ACTION_TYPE = 'UPDATE';
56
+ MovePgReportEventToSkippedDto.ACTION_KEY = 'MovePgReportEventToSkipped';
57
+ MovePgReportEventToSkippedDto.MODULE_NAME = 'BillingModule';
58
+ MovePgReportEventToSkippedDto.ENTITIES = ['PgReportEvent'];
59
+ MovePgReportEventToSkippedDto.ENTITY_TYPE = 'DEFAULT';
60
+ MovePgReportEventToSkippedDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSkipped';
61
+ MovePgReportEventToSkippedDto.SCHEMA_ACTION_ID = '36d53f7f-d362-43c2-ac5c-90b11e933346';
62
+ MovePgReportEventToSkippedDto.PERMISSION = 'schema.action.movepgreporteventtoskipped.trigger';
63
+ MovePgReportEventToSkippedDto.TARGET_STAGES = ['EventStatusStageSkipped'];
64
+ MovePgReportEventToSkippedDto.IS_STAGE_TRANSITION = true;
65
+ MovePgReportEventToSkippedDto.IS_MULTI_STEP_FLOW = false;
66
+ MovePgReportEventToSkippedDto.HAS_STEP_LINKS = false;
67
+ /**
68
+ * Step definitions with linking metadata
69
+ * Used by SDK and backend for auto-linking after step execution
70
+ */
71
+ MovePgReportEventToSkippedDto.stepDefinitions = [
72
+ {
73
+ stepKey: 'step_1',
74
+ dtoClass: 'unknown',
75
+ entity: 'unknown',
76
+ linksTo: null
77
+ }
78
+ ];
79
+ /** Type-safe step key accessor */
80
+ MovePgReportEventToSkippedDto.Steps = exports.MovePgReportEventToSkippedSteps;
81
+ /** Step classes that can be used with this action */
82
+ MovePgReportEventToSkippedDto.stepClasses = [];
@@ -0,0 +1,117 @@
1
+ /**
2
+ * MovePgReportEventToSucceeded Action DTO
3
+ *
4
+ * Move Report Event to Succeeded
5
+ *
6
+ * @module BillingModule
7
+ * @entity PgReportEvent
8
+ * @entityType DEFAULT
9
+ * @actionKey MovePgReportEventToSucceeded
10
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded
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 MovePgReportEventToSucceeded
18
+ */
19
+ export interface MovePgReportEventToSucceededStepLink {
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 MovePgReportEventToSucceeded
34
+ */
35
+ export interface MovePgReportEventToSucceededStepDefinition {
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: MovePgReportEventToSucceededStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MovePgReportEventToSucceeded
47
+ */
48
+ export declare const MovePgReportEventToSucceededSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MovePgReportEventToSucceededStepKey = typeof MovePgReportEventToSucceededSteps[keyof typeof MovePgReportEventToSucceededSteps];
52
+ /**
53
+ * RabbitMQ message payload for MovePgReportEventToSucceeded step flow events
54
+ *
55
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded
56
+ */
57
+ export interface MovePgReportEventToSucceededMessage extends OdinRecordUpdatedEvent<MovePgReportEventToSucceededDto, {}> {
58
+ }
59
+ /**
60
+ * Properties for MovePgReportEventToSucceeded action
61
+ *
62
+ */
63
+ export interface MovePgReportEventToSucceededProperties {
64
+ }
65
+ /**
66
+ * MovePgReportEventToSucceeded
67
+ *
68
+ * Move Report Event to Succeeded
69
+ *
70
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
71
+ * @module BillingModule
72
+ * @entity PgReportEvent
73
+ * @entityType DEFAULT (Default)
74
+ * @targetStages EventStatusStageSucceeded
75
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded
76
+ * @permission schema.action.movepgreporteventtosucceeded.trigger
77
+ * @benchmark This action is tracked for performance benchmarks
78
+ */
79
+ export declare class MovePgReportEventToSucceededDto extends OdinRecordUpdateDto<Record<string, any>> {
80
+ /** Used by SDK generators to identify action type */
81
+ static readonly ACTION_TYPE = "UPDATE";
82
+ static readonly ACTION_KEY = "MovePgReportEventToSucceeded";
83
+ static readonly MODULE_NAME = "BillingModule";
84
+ static readonly ENTITIES: string[];
85
+ static readonly ENTITY_TYPE = "DEFAULT";
86
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded";
87
+ static readonly SCHEMA_ACTION_ID = "03af6b90-5f75-41e3-a7f3-ecdbe706d72d";
88
+ static readonly PERMISSION = "schema.action.movepgreporteventtosucceeded.trigger";
89
+ static readonly TARGET_STAGES: readonly ["EventStatusStageSucceeded"];
90
+ static readonly IS_STAGE_TRANSITION = true;
91
+ static readonly IS_MULTI_STEP_FLOW = false;
92
+ static readonly HAS_STEP_LINKS = false;
93
+ /**
94
+ * Step definitions with linking metadata
95
+ * Used by SDK and backend for auto-linking after step execution
96
+ */
97
+ static readonly stepDefinitions: MovePgReportEventToSucceededStepDefinition[];
98
+ /** Type-safe step key accessor */
99
+ static readonly Steps: {
100
+ readonly step_1: "step_1";
101
+ };
102
+ readonly actionName: string;
103
+ readonly schemaActionId: string;
104
+ readonly entity: string;
105
+ readonly stageKey: string;
106
+ constructor(record: OdinRecord<any> | {
107
+ id: string;
108
+ entity: string;
109
+ type?: string;
110
+ }, options?: {
111
+ journeyId?: string;
112
+ });
113
+ /** Step classes that can be used with this action */
114
+ static readonly stepClasses: readonly [];
115
+ steps: StepClassMap[(typeof MovePgReportEventToSucceededDto.stepClasses)[number]][];
116
+ }
117
+ export {};
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /**
3
+ * MovePgReportEventToSucceeded Action DTO
4
+ *
5
+ * Move Report Event to Succeeded
6
+ *
7
+ * @module BillingModule
8
+ * @entity PgReportEvent
9
+ * @entityType DEFAULT
10
+ * @actionKey MovePgReportEventToSucceeded
11
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MovePgReportEventToSucceededDto = exports.MovePgReportEventToSucceededSteps = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MovePgReportEventToSucceeded
20
+ */
21
+ exports.MovePgReportEventToSucceededSteps = {
22
+ step_1: 'step_1',
23
+ };
24
+ /**
25
+ * MovePgReportEventToSucceeded
26
+ *
27
+ * Move Report Event to Succeeded
28
+ *
29
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
30
+ * @module BillingModule
31
+ * @entity PgReportEvent
32
+ * @entityType DEFAULT (Default)
33
+ * @targetStages EventStatusStageSucceeded
34
+ * @event k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded
35
+ * @permission schema.action.movepgreporteventtosucceeded.trigger
36
+ * @benchmark This action is tracked for performance benchmarks
37
+ */
38
+ class MovePgReportEventToSucceededDto extends core_1.OdinRecordUpdateDto {
39
+ constructor(record, options) {
40
+ super({
41
+ id: record.id,
42
+ entity: record.entity,
43
+ type: record.type,
44
+ properties: {},
45
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
46
+ });
47
+ this.actionName = 'MovePgReportEventToSucceeded';
48
+ this.schemaActionId = '03af6b90-5f75-41e3-a7f3-ecdbe706d72d';
49
+ this.entity = 'BillingModule:PgReportEvent';
50
+ this.stageKey = 'EventStatusStageSucceeded';
51
+ }
52
+ }
53
+ exports.MovePgReportEventToSucceededDto = MovePgReportEventToSucceededDto;
54
+ /** Used by SDK generators to identify action type */
55
+ MovePgReportEventToSucceededDto.ACTION_TYPE = 'UPDATE';
56
+ MovePgReportEventToSucceededDto.ACTION_KEY = 'MovePgReportEventToSucceeded';
57
+ MovePgReportEventToSucceededDto.MODULE_NAME = 'BillingModule';
58
+ MovePgReportEventToSucceededDto.ENTITIES = ['PgReportEvent'];
59
+ MovePgReportEventToSucceededDto.ENTITY_TYPE = 'DEFAULT';
60
+ MovePgReportEventToSucceededDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgReportEvent.Transition.MovePgReportEventToSucceeded';
61
+ MovePgReportEventToSucceededDto.SCHEMA_ACTION_ID = '03af6b90-5f75-41e3-a7f3-ecdbe706d72d';
62
+ MovePgReportEventToSucceededDto.PERMISSION = 'schema.action.movepgreporteventtosucceeded.trigger';
63
+ MovePgReportEventToSucceededDto.TARGET_STAGES = ['EventStatusStageSucceeded'];
64
+ MovePgReportEventToSucceededDto.IS_STAGE_TRANSITION = true;
65
+ MovePgReportEventToSucceededDto.IS_MULTI_STEP_FLOW = false;
66
+ MovePgReportEventToSucceededDto.HAS_STEP_LINKS = false;
67
+ /**
68
+ * Step definitions with linking metadata
69
+ * Used by SDK and backend for auto-linking after step execution
70
+ */
71
+ MovePgReportEventToSucceededDto.stepDefinitions = [
72
+ {
73
+ stepKey: 'step_1',
74
+ dtoClass: 'unknown',
75
+ entity: 'unknown',
76
+ linksTo: null
77
+ }
78
+ ];
79
+ /** Type-safe step key accessor */
80
+ MovePgReportEventToSucceededDto.Steps = exports.MovePgReportEventToSucceededSteps;
81
+ /** Step classes that can be used with this action */
82
+ MovePgReportEventToSucceededDto.stepClasses = [];
@@ -91,7 +91,9 @@ export declare enum PgReportEventPropertyKeys {
91
91
  /** TransactionId */
92
92
  TransactionId = "TransactionId",
93
93
  /** File line number reference */
94
- LineNumber = "LineNumber"
94
+ LineNumber = "LineNumber",
95
+ /** Event Code */
96
+ EventCode = "EventCode"
95
97
  }
96
98
  /**
97
99
  * Properties for PgReportEvent records
@@ -146,6 +148,11 @@ export interface PgReportEventProperties {
146
148
  * @type {NUMBER}
147
149
  */
148
150
  LineNumber: number;
151
+ /** Event Code
152
+ *
153
+ * @type {TEXT}
154
+ */
155
+ EventCode: string;
149
156
  }
150
157
  /**
151
158
  * PgReportEvent entity from BillingModule
@@ -97,6 +97,8 @@ var PgReportEventPropertyKeys;
97
97
  PgReportEventPropertyKeys["TransactionId"] = "TransactionId";
98
98
  /** File line number reference */
99
99
  PgReportEventPropertyKeys["LineNumber"] = "LineNumber";
100
+ /** Event Code */
101
+ PgReportEventPropertyKeys["EventCode"] = "EventCode";
100
102
  })(PgReportEventPropertyKeys = exports.PgReportEventPropertyKeys || (exports.PgReportEventPropertyKeys = {}));
101
103
  /**
102
104
  * PgReportEvent entity from BillingModule
@@ -240,6 +240,81 @@ export declare class PgReportEventRecord<TProps = PgReportEventProperties> {
240
240
  journeyId?: string;
241
241
  stageKey?: string;
242
242
  }): ActionBuilder;
243
+ /**
244
+ * MovePgReportEventToFailed
245
+ *
246
+ * Transitions this PgReportEvent record to a new pipeline stage.
247
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
248
+ *
249
+ * @remarks Transitions to stage: EventStatusStageFailed
250
+ *
251
+ * @param options - Optional settings
252
+ * @param options.journeyId - Associate with a journey
253
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
254
+ * @throws Error if called on a new (unsaved) record
255
+ *
256
+ * @example
257
+ * ```typescript
258
+ * const record = await odinClient.pgReportEvents.get(id);
259
+ * await record.movePgReportEventToFailed().execute();
260
+ *
261
+ * // Dry run (for debugging)
262
+ * const payload = record.movePgReportEventToFailed().dryRun();
263
+ * ```
264
+ */
265
+ movePgReportEventToFailed(options?: {
266
+ journeyId?: string;
267
+ }): ActionBuilder;
268
+ /**
269
+ * MovePgReportEventToSkipped
270
+ *
271
+ * Transitions this PgReportEvent record to a new pipeline stage.
272
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
273
+ *
274
+ * @remarks Transitions to stage: EventStatusStageSkipped
275
+ *
276
+ * @param options - Optional settings
277
+ * @param options.journeyId - Associate with a journey
278
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
279
+ * @throws Error if called on a new (unsaved) record
280
+ *
281
+ * @example
282
+ * ```typescript
283
+ * const record = await odinClient.pgReportEvents.get(id);
284
+ * await record.movePgReportEventToSkipped().execute();
285
+ *
286
+ * // Dry run (for debugging)
287
+ * const payload = record.movePgReportEventToSkipped().dryRun();
288
+ * ```
289
+ */
290
+ movePgReportEventToSkipped(options?: {
291
+ journeyId?: string;
292
+ }): ActionBuilder;
293
+ /**
294
+ * MovePgReportEventToSucceeded
295
+ *
296
+ * Transitions this PgReportEvent record to a new pipeline stage.
297
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
298
+ *
299
+ * @remarks Transitions to stage: EventStatusStageSucceeded
300
+ *
301
+ * @param options - Optional settings
302
+ * @param options.journeyId - Associate with a journey
303
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
304
+ * @throws Error if called on a new (unsaved) record
305
+ *
306
+ * @example
307
+ * ```typescript
308
+ * const record = await odinClient.pgReportEvents.get(id);
309
+ * await record.movePgReportEventToSucceeded().execute();
310
+ *
311
+ * // Dry run (for debugging)
312
+ * const payload = record.movePgReportEventToSucceeded().dryRun();
313
+ * ```
314
+ */
315
+ movePgReportEventToSucceeded(options?: {
316
+ journeyId?: string;
317
+ }): ActionBuilder;
243
318
  /**
244
319
  * UpdatePgReportEvent
245
320
  *
@@ -331,6 +331,93 @@ class PgReportEventRecord {
331
331
  // ============================================
332
332
  // UPDATE ACTIONS (require existing record)
333
333
  // ============================================
334
+ /**
335
+ * MovePgReportEventToFailed
336
+ *
337
+ * Transitions this PgReportEvent record to a new pipeline stage.
338
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
339
+ *
340
+ * @remarks Transitions to stage: EventStatusStageFailed
341
+ *
342
+ * @param options - Optional settings
343
+ * @param options.journeyId - Associate with a journey
344
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
345
+ * @throws Error if called on a new (unsaved) record
346
+ *
347
+ * @example
348
+ * ```typescript
349
+ * const record = await odinClient.pgReportEvents.get(id);
350
+ * await record.movePgReportEventToFailed().execute();
351
+ *
352
+ * // Dry run (for debugging)
353
+ * const payload = record.movePgReportEventToFailed().dryRun();
354
+ * ```
355
+ */
356
+ movePgReportEventToFailed(options) {
357
+ var _a;
358
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
359
+ throw new Error('movePgReportEventToFailed requires an existing record. Use accessor.get() first.');
360
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgReportEventToFailed', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'EventStatusStageFailed' }, options);
361
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgReportEvent', payload, () => { this._pendingLinks = []; });
362
+ }
363
+ /**
364
+ * MovePgReportEventToSkipped
365
+ *
366
+ * Transitions this PgReportEvent record to a new pipeline stage.
367
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
368
+ *
369
+ * @remarks Transitions to stage: EventStatusStageSkipped
370
+ *
371
+ * @param options - Optional settings
372
+ * @param options.journeyId - Associate with a journey
373
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
374
+ * @throws Error if called on a new (unsaved) record
375
+ *
376
+ * @example
377
+ * ```typescript
378
+ * const record = await odinClient.pgReportEvents.get(id);
379
+ * await record.movePgReportEventToSkipped().execute();
380
+ *
381
+ * // Dry run (for debugging)
382
+ * const payload = record.movePgReportEventToSkipped().dryRun();
383
+ * ```
384
+ */
385
+ movePgReportEventToSkipped(options) {
386
+ var _a;
387
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
388
+ throw new Error('movePgReportEventToSkipped requires an existing record. Use accessor.get() first.');
389
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgReportEventToSkipped', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'EventStatusStageSkipped' }, options);
390
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgReportEvent', payload, () => { this._pendingLinks = []; });
391
+ }
392
+ /**
393
+ * MovePgReportEventToSucceeded
394
+ *
395
+ * Transitions this PgReportEvent record to a new pipeline stage.
396
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
397
+ *
398
+ * @remarks Transitions to stage: EventStatusStageSucceeded
399
+ *
400
+ * @param options - Optional settings
401
+ * @param options.journeyId - Associate with a journey
402
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
403
+ * @throws Error if called on a new (unsaved) record
404
+ *
405
+ * @example
406
+ * ```typescript
407
+ * const record = await odinClient.pgReportEvents.get(id);
408
+ * await record.movePgReportEventToSucceeded().execute();
409
+ *
410
+ * // Dry run (for debugging)
411
+ * const payload = record.movePgReportEventToSucceeded().dryRun();
412
+ * ```
413
+ */
414
+ movePgReportEventToSucceeded(options) {
415
+ var _a;
416
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
417
+ throw new Error('movePgReportEventToSucceeded requires an existing record. Use accessor.get() first.');
418
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgReportEventToSucceeded', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'EventStatusStageSucceeded' }, options);
419
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgReportEvent', payload, () => { this._pendingLinks = []; });
420
+ }
334
421
  /**
335
422
  * UpdatePgReportEvent
336
423
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.230",
3
+ "version": "2.0.231",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",