@d19n/youfibre-odin-sdk 2.0.99 → 2.0.100

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
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
352
352
 
353
353
  ## Actions
354
354
 
355
- This SDK includes **617** actions.
355
+ This SDK includes **615** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -748,8 +748,6 @@ This SDK includes **617** actions.
748
748
  | `MoveCaseToBlockedAction` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToBlockedAction |
749
749
  | `MoveCaseToBlockedTransition` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToBlockedAction |
750
750
  | `MoveCaseToPendingAgentTransition` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingAgentTransition |
751
- | `MoveCaseToPendingReviewAction` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction |
752
- | `MoveCaseToPendingReviewTransition` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction |
753
751
  | `MoveCaseToSolvedAction` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToSolvedAction |
754
752
  | `MoveCaseToSolvedTransition` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedTransition |
755
753
  | `MoveDefaultCaseFromAnyStageToPendingAgent` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingAgent |
@@ -796,8 +794,6 @@ This SDK includes **617** actions.
796
794
 
797
795
  **MoveCaseToPendingAgentTransition Target Stages:** `CaseDefaultStagePendingAgent`
798
796
 
799
- **MoveCaseToPendingReviewTransition Target Stages:** `CaseDefaultStagePendingReview`
800
-
801
797
  **MoveCaseToSolvedTransition Target Stages:** `CaseDefaultStageSolved`
802
798
 
803
799
  **MoveDefaultCaseFromAnyStageToPendingAgent Target Stages:** `CaseDefaultStagePendingAgent`
@@ -42,7 +42,6 @@ import { MarkCaseClosedProperties } from '../actions-v2/MarkCaseClosedDto';
42
42
  import { MarkCaseResolvedProperties } from '../actions-v2/MarkCaseResolvedDto';
43
43
  import { MoveCaseOutageToSolvedAction2Properties } from '../actions-v2/MoveCaseOutageToSolvedAction2Dto';
44
44
  import { MoveCaseOutageToSolvedActionProperties } from '../actions-v2/MoveCaseOutageToSolvedActionDto';
45
- import { MoveCaseToPendingReviewActionProperties } from '../actions-v2/MoveCaseToPendingReviewActionDto';
46
45
  import { MoveCaseToSolvedActionProperties } from '../actions-v2/MoveCaseToSolvedActionDto';
47
46
  import { RemoveAssignmentFromCaseProperties } from '../actions-v2/RemoveAssignmentFromCaseDto';
48
47
  import { UpdateCaseCsatProperties } from '../actions-v2/UpdateCaseCsatDto';
@@ -1105,68 +1104,6 @@ export declare class MoveCaseToBlockedTransitionFlowBuilder {
1105
1104
  private _buildRequestPayload;
1106
1105
  }
1107
1106
  /** Options for a flow step */
1108
- export interface MoveCaseToPendingReviewTransitionFlowBuilderStepOptions {
1109
- /** Associations to create with this step */
1110
- associations?: Array<{
1111
- recordId?: string;
1112
- entity?: string;
1113
- }>;
1114
- /** Groups for this step */
1115
- groups?: string[];
1116
- }
1117
- /**
1118
- * FlowBuilder for MoveCaseToPendingReviewTransition multi-step action
1119
- *
1120
- * Use method chaining to add steps, then call execute() to run the flow.
1121
- * Transitions to stage: CaseDefaultStagePendingReview
1122
- */
1123
- export declare class MoveCaseToPendingReviewTransitionFlowBuilder {
1124
- private _record;
1125
- private _provider;
1126
- private _pendingLinks;
1127
- private _options?;
1128
- private _groups;
1129
- private _steps;
1130
- constructor(record: CaseRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
1131
- journeyId?: string;
1132
- });
1133
- /**
1134
- * Add a group to the main action
1135
- * @param group - Group name to add
1136
- * @returns this (for method chaining)
1137
- */
1138
- addGroup(group: string): this;
1139
- /**
1140
- * Add MoveCaseToPendingReviewAction step to the flow
1141
- * @param id - ID of the record to update
1142
- * @param properties - Properties for this step
1143
- * @param options - Optional step settings
1144
- * @returns this (for method chaining)
1145
- */
1146
- moveCaseToPendingReviewAction(id: string, properties: MoveCaseToPendingReviewActionProperties, options?: MoveCaseToPendingReviewTransitionFlowBuilderStepOptions): this;
1147
- /**
1148
- * Execute the flow
1149
- * @returns The result from the API
1150
- */
1151
- execute(): Promise<IDbRecordCreateUpdateRes[]>;
1152
- /**
1153
- * Returns the request payload without executing (for debugging)
1154
- * @returns The request payload that would be sent to the API
1155
- */
1156
- dryRun(): Record<string, any>;
1157
- /**
1158
- * Prevents accidental `await flowBuilder` without .execute()
1159
- * Forces developers to explicitly call .execute()
1160
- * @throws Error always - use .execute() or .dryRun() instead
1161
- */
1162
- then(): never;
1163
- /**
1164
- * Build the request payload for the action
1165
- * @private
1166
- */
1167
- private _buildRequestPayload;
1168
- }
1169
- /** Options for a flow step */
1170
1107
  export interface MoveDefaultCaseFromOpenToClosedFlowBuilderStepOptions {
1171
1108
  /** Associations to create with this step */
1172
1109
  associations?: Array<{
@@ -2576,56 +2513,6 @@ export declare class CaseRecord<TProps = CaseProperties> {
2576
2513
  moveCaseToPendingAgentTransition(options?: {
2577
2514
  journeyId?: string;
2578
2515
  }): ActionBuilder;
2579
- /**
2580
- * MoveCaseToPendingReviewAction
2581
- *
2582
- * Updates this Case record with the specified properties.
2583
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
2584
- *
2585
- * @param properties - Required properties for this action
2586
- * @param options - Optional settings
2587
- * @param options.journeyId - Associate with a journey
2588
- * @param options.stageKey - Transition to pipeline stage
2589
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
2590
- * @throws Error if called on a new (unsaved) record
2591
- *
2592
- * @example
2593
- * ```typescript
2594
- * const record = await odinClient.cases.get(id);
2595
- * await record.moveCaseToPendingReviewAction({ ... }).execute();
2596
- *
2597
- * // Dry run (for debugging)
2598
- * const payload = record.moveCaseToPendingReviewAction({ ... }).dryRun();
2599
- * ```
2600
- */
2601
- moveCaseToPendingReviewAction(properties: MoveCaseToPendingReviewActionProperties, options?: {
2602
- journeyId?: string;
2603
- stageKey?: string;
2604
- }): ActionBuilder;
2605
- /**
2606
- * MoveCaseToPendingReviewTransition
2607
- *
2608
- * Starts a stage transition flow on this Case record.
2609
- * Chain step methods and call .execute() to run the flow.
2610
- *
2611
- * @remarks Transitions to stage: CaseDefaultStagePendingReview
2612
- *
2613
- * @param options - Optional settings
2614
- * @param options.journeyId - Associate with a journey
2615
- * @returns FlowBuilder for chaining step methods
2616
- * @throws Error if called on a new (unsaved) record
2617
- *
2618
- * @example
2619
- * ```typescript
2620
- * const record = await odinClient.cases.get(id);
2621
- * await record.moveCaseToPendingReviewTransition()
2622
- * .moveCaseToPendingReviewAction(recordId, { ... })
2623
- * .execute();
2624
- * ```
2625
- */
2626
- moveCaseToPendingReviewTransition(options?: {
2627
- journeyId?: string;
2628
- }): MoveCaseToPendingReviewTransitionFlowBuilder;
2629
2516
  /**
2630
2517
  * MoveCaseToSolvedAction
2631
2518
  *
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28
28
  });
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.isCaseRecord = exports.CaseRecord = exports.MoveDefaultCaseFromOpenToClosedFlowBuilder = exports.MoveCaseToPendingReviewTransitionFlowBuilder = exports.MoveCaseToBlockedTransitionFlowBuilder = exports.EscalateCaseTransitionFlowBuilder = exports.CasteTransitionOpenToEscalatedFlowBuilder = exports.CasedefaultstageblockedFlowBuilder = exports.CaseTransitionSolvedToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToBlockedFlowBuilder = exports.CaseTransitionPendingAgentToEscalatedFlowBuilder = exports.CaseTransitionPendingAgentToBlockedFlowBuilder = exports.CaseTransitionOpenToBlockedFlowBuilder = exports.CaseTransitionEscalatedToEscalatedFlowBuilder = exports.CaseTransitionEscalatedToBlockedFlowBuilder = exports.CaseTransitionBlockedToEscalatedFlowBuilder = exports.CaseDefaultStageEscalatedFlowBuilder = exports.AssignCaseWithNoteFlowFlowBuilder = void 0;
31
+ exports.isCaseRecord = exports.CaseRecord = exports.MoveDefaultCaseFromOpenToClosedFlowBuilder = exports.MoveCaseToBlockedTransitionFlowBuilder = exports.EscalateCaseTransitionFlowBuilder = exports.CasteTransitionOpenToEscalatedFlowBuilder = exports.CasedefaultstageblockedFlowBuilder = exports.CaseTransitionSolvedToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToEscalatedFlowBuilder = exports.CaseTransitionPendingReplyToBlockedFlowBuilder = exports.CaseTransitionPendingAgentToEscalatedFlowBuilder = exports.CaseTransitionPendingAgentToBlockedFlowBuilder = exports.CaseTransitionOpenToBlockedFlowBuilder = exports.CaseTransitionEscalatedToEscalatedFlowBuilder = exports.CaseTransitionEscalatedToBlockedFlowBuilder = exports.CaseTransitionBlockedToEscalatedFlowBuilder = exports.CaseDefaultStageEscalatedFlowBuilder = exports.AssignCaseWithNoteFlowFlowBuilder = void 0;
32
32
  const uuid_1 = require("uuid");
33
33
  const core_1 = require("@d19n/odin-types/dist/core");
34
34
  const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
@@ -1869,114 +1869,6 @@ class MoveCaseToBlockedTransitionFlowBuilder {
1869
1869
  }
1870
1870
  }
1871
1871
  exports.MoveCaseToBlockedTransitionFlowBuilder = MoveCaseToBlockedTransitionFlowBuilder;
1872
- /**
1873
- * FlowBuilder for MoveCaseToPendingReviewTransition multi-step action
1874
- *
1875
- * Use method chaining to add steps, then call execute() to run the flow.
1876
- * Transitions to stage: CaseDefaultStagePendingReview
1877
- */
1878
- class MoveCaseToPendingReviewTransitionFlowBuilder {
1879
- constructor(record, provider, pendingLinks, options) {
1880
- this._groups = [];
1881
- this._steps = [];
1882
- this._record = record;
1883
- this._provider = provider;
1884
- this._pendingLinks = pendingLinks;
1885
- this._options = options;
1886
- }
1887
- /**
1888
- * Add a group to the main action
1889
- * @param group - Group name to add
1890
- * @returns this (for method chaining)
1891
- */
1892
- addGroup(group) {
1893
- this._groups.push(group);
1894
- return this;
1895
- }
1896
- /**
1897
- * Add MoveCaseToPendingReviewAction step to the flow
1898
- * @param id - ID of the record to update
1899
- * @param properties - Properties for this step
1900
- * @param options - Optional step settings
1901
- * @returns this (for method chaining)
1902
- */
1903
- moveCaseToPendingReviewAction(id, properties, options) {
1904
- var _a;
1905
- this._steps.push({
1906
- actionName: 'MoveCaseToPendingReviewAction',
1907
- properties,
1908
- id,
1909
- entity: 'SupportModule:Case',
1910
- type: 'DEFAULT',
1911
- autoLinkParent: false,
1912
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1913
- groups: options === null || options === void 0 ? void 0 : options.groups,
1914
- });
1915
- return this;
1916
- }
1917
- /**
1918
- * Execute the flow
1919
- * @returns The result from the API
1920
- */
1921
- execute() {
1922
- return __awaiter(this, void 0, void 0, function* () {
1923
- const payload = this._buildRequestPayload();
1924
- const result = yield this._provider._applyAction('SupportModule', 'Case', payload);
1925
- // Clear pending links on the record after execution
1926
- this._record.clearPendingLinks();
1927
- return result;
1928
- });
1929
- }
1930
- /**
1931
- * Returns the request payload without executing (for debugging)
1932
- * @returns The request payload that would be sent to the API
1933
- */
1934
- dryRun() {
1935
- return this._buildRequestPayload();
1936
- }
1937
- /**
1938
- * Prevents accidental `await flowBuilder` without .execute()
1939
- * Forces developers to explicitly call .execute()
1940
- * @throws Error always - use .execute() or .dryRun() instead
1941
- */
1942
- then() {
1943
- throw new Error('FlowBuilder cannot be awaited directly. Call .execute() to run the flow or .dryRun() to get the payload.');
1944
- }
1945
- /**
1946
- * Build the request payload for the action
1947
- * @private
1948
- */
1949
- _buildRequestPayload() {
1950
- const record = this._record.record;
1951
- if (!(record === null || record === void 0 ? void 0 : record.id))
1952
- throw new Error('Cannot execute flow on unsaved record');
1953
- // Build steps with parent associations
1954
- const stepsWithAssociations = this._steps.map(step => {
1955
- const stepAssociations = [...(step.associations || [])];
1956
- // Auto-add parent association if step requires it
1957
- if (step.autoLinkParent) {
1958
- stepAssociations.push({
1959
- entity: record.entity,
1960
- recordId: record.id,
1961
- linkType: null,
1962
- relationType: 'PARENT',
1963
- });
1964
- }
1965
- return {
1966
- entity: step.entity,
1967
- type: step.type,
1968
- actionName: step.actionName,
1969
- properties: step.properties,
1970
- title: step.title,
1971
- id: step.id,
1972
- associations: stepAssociations.length > 0 ? stepAssociations : undefined,
1973
- groups: step.groups,
1974
- };
1975
- });
1976
- return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCaseToPendingReviewTransition', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStagePendingReview' }, this._options);
1977
- }
1978
- }
1979
- exports.MoveCaseToPendingReviewTransitionFlowBuilder = MoveCaseToPendingReviewTransitionFlowBuilder;
1980
1872
  /**
1981
1873
  * FlowBuilder for MoveDefaultCaseFromOpenToClosed multi-step action
1982
1874
  *
@@ -3836,62 +3728,6 @@ class CaseRecord {
3836
3728
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToPendingAgentTransition', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStagePendingAgent' }, options);
3837
3729
  return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3838
3730
  }
3839
- /**
3840
- * MoveCaseToPendingReviewAction
3841
- *
3842
- * Updates this Case record with the specified properties.
3843
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3844
- *
3845
- * @param properties - Required properties for this action
3846
- * @param options - Optional settings
3847
- * @param options.journeyId - Associate with a journey
3848
- * @param options.stageKey - Transition to pipeline stage
3849
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3850
- * @throws Error if called on a new (unsaved) record
3851
- *
3852
- * @example
3853
- * ```typescript
3854
- * const record = await odinClient.cases.get(id);
3855
- * await record.moveCaseToPendingReviewAction({ ... }).execute();
3856
- *
3857
- * // Dry run (for debugging)
3858
- * const payload = record.moveCaseToPendingReviewAction({ ... }).dryRun();
3859
- * ```
3860
- */
3861
- moveCaseToPendingReviewAction(properties, options) {
3862
- var _a;
3863
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3864
- throw new Error('moveCaseToPendingReviewAction requires an existing record. Use accessor.get() first.');
3865
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToPendingReviewAction', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
3866
- return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3867
- }
3868
- /**
3869
- * MoveCaseToPendingReviewTransition
3870
- *
3871
- * Starts a stage transition flow on this Case record.
3872
- * Chain step methods and call .execute() to run the flow.
3873
- *
3874
- * @remarks Transitions to stage: CaseDefaultStagePendingReview
3875
- *
3876
- * @param options - Optional settings
3877
- * @param options.journeyId - Associate with a journey
3878
- * @returns FlowBuilder for chaining step methods
3879
- * @throws Error if called on a new (unsaved) record
3880
- *
3881
- * @example
3882
- * ```typescript
3883
- * const record = await odinClient.cases.get(id);
3884
- * await record.moveCaseToPendingReviewTransition()
3885
- * .moveCaseToPendingReviewAction(recordId, { ... })
3886
- * .execute();
3887
- * ```
3888
- */
3889
- moveCaseToPendingReviewTransition(options) {
3890
- var _a;
3891
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3892
- throw new Error('moveCaseToPendingReviewTransition requires an existing record. Use accessor.get() first.');
3893
- return new MoveCaseToPendingReviewTransitionFlowBuilder(this, this._provider, this._pendingLinks, options);
3894
- }
3895
3731
  /**
3896
3732
  * MoveCaseToSolvedAction
3897
3733
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.99",
3
+ "version": "2.0.100",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
@@ -1,102 +0,0 @@
1
- /**
2
- * MoveCaseToPendingReviewAction Action DTO
3
- *
4
- * V2: Move Case to Review Action
5
- *
6
- * @module SupportModule
7
- * @entity Case
8
- * @entityType DEFAULT
9
- * @actionKey MoveCaseToPendingReviewAction
10
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
- /**
16
- * RabbitMQ message payload for MoveCaseToPendingReviewAction updated events
17
- *
18
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction
19
- */
20
- export interface MoveCaseToPendingReviewActionMessage extends OdinRecordUpdatedEvent<MoveCaseToPendingReviewActionDto, MoveCaseToPendingReviewActionProperties> {
21
- }
22
- /**
23
- * Properties for MoveCaseToPendingReviewAction action
24
- *
25
- * @property Required fields: 4
26
- * @property Optional fields: 1
27
- */
28
- export interface MoveCaseToPendingReviewActionProperties {
29
- /**
30
- * Category
31
- *
32
- * Data field for Case records. Used by Customer Service team.
33
- * @type {ENUM}
34
- * @required
35
- */
36
- Category: string;
37
- /**
38
- * Sub Category
39
- *
40
- * SubCategory (Customer Service - Case)
41
- * @type {ENUM}
42
- * @required
43
- */
44
- SubCategory: string;
45
- /**
46
- * ReasonForReview
47
- *
48
- * Reason for Review (Customer Service - Case)
49
- * @type {ENUM}
50
- * @required
51
- */
52
- ReasonForReview: string;
53
- /**
54
- * AdditionalNotes
55
- *
56
- * Additional Notes (Customer Service - Case)
57
- * @type {TEXT_LONG}
58
- * @required
59
- */
60
- AdditionalNotes: string;
61
- }
62
- /**
63
- * Request Manager Review
64
- *
65
- * V2: Move Case to Review Action
66
- *
67
- * @actionType UPDATE - Updates an existing Case record
68
- * @module SupportModule
69
- * @entity Case
70
- * @entityType DEFAULT (Default)
71
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction
72
- * @permission schema.action.movecasetopendingreviewaction.trigger
73
- * @benchmark This action is tracked for performance benchmarks
74
- */
75
- export declare class MoveCaseToPendingReviewActionDto extends OdinRecordUpdateDto<MoveCaseToPendingReviewActionProperties> {
76
- /** Used by SDK generators to identify action type */
77
- static readonly ACTION_TYPE = "UPDATE";
78
- static readonly ACTION_KEY = "MoveCaseToPendingReviewAction";
79
- static readonly MODULE_NAME = "SupportModule";
80
- static readonly ENTITIES: string[];
81
- static readonly ENTITY_TYPE = "DEFAULT";
82
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction";
83
- static readonly PERMISSION = "schema.action.movecasetopendingreviewaction.trigger";
84
- /** Step metadata - entity this action targets */
85
- static readonly STEP_ENTITY = "SupportModule:Case";
86
- static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
87
- static readonly STEP_SCHEMA_ACTION_ID = "44a06e8b-aa07-4319-9c1b-245660553e97";
88
- static readonly STEP_SCHEMA_TYPE_ID = "22b50598-66be-435c-bd61-4dcd7d0b3420";
89
- static readonly STEP_TYPE = "DEFAULT";
90
- static readonly AUTO_LINK_PARENT = false;
91
- readonly actionName: string;
92
- readonly schemaActionId: string;
93
- readonly entity: string;
94
- constructor(record: OdinRecord<any> | {
95
- id: string;
96
- entity: string;
97
- type?: string;
98
- }, properties: MoveCaseToPendingReviewActionProperties, options?: {
99
- journeyId?: string;
100
- stageKey?: string;
101
- });
102
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /**
3
- * MoveCaseToPendingReviewAction Action DTO
4
- *
5
- * V2: Move Case to Review Action
6
- *
7
- * @module SupportModule
8
- * @entity Case
9
- * @entityType DEFAULT
10
- * @actionKey MoveCaseToPendingReviewAction
11
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction
12
- *
13
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MoveCaseToPendingReviewActionDto = void 0;
17
- const core_1 = require("@d19n/odin-types/dist/core");
18
- /**
19
- * Request Manager Review
20
- *
21
- * V2: Move Case to Review Action
22
- *
23
- * @actionType UPDATE - Updates an existing Case record
24
- * @module SupportModule
25
- * @entity Case
26
- * @entityType DEFAULT (Default)
27
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction
28
- * @permission schema.action.movecasetopendingreviewaction.trigger
29
- * @benchmark This action is tracked for performance benchmarks
30
- */
31
- class MoveCaseToPendingReviewActionDto extends core_1.OdinRecordUpdateDto {
32
- constructor(record, properties, options) {
33
- super({
34
- id: record.id,
35
- entity: record.entity,
36
- type: record.type,
37
- properties,
38
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
39
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
40
- });
41
- this.actionName = 'MoveCaseToPendingReviewAction';
42
- this.schemaActionId = '44a06e8b-aa07-4319-9c1b-245660553e97';
43
- this.entity = 'SupportModule:Case';
44
- }
45
- }
46
- exports.MoveCaseToPendingReviewActionDto = MoveCaseToPendingReviewActionDto;
47
- /** Used by SDK generators to identify action type */
48
- MoveCaseToPendingReviewActionDto.ACTION_TYPE = 'UPDATE';
49
- MoveCaseToPendingReviewActionDto.ACTION_KEY = 'MoveCaseToPendingReviewAction';
50
- MoveCaseToPendingReviewActionDto.MODULE_NAME = 'SupportModule';
51
- MoveCaseToPendingReviewActionDto.ENTITIES = ['Case'];
52
- MoveCaseToPendingReviewActionDto.ENTITY_TYPE = 'DEFAULT';
53
- MoveCaseToPendingReviewActionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction';
54
- MoveCaseToPendingReviewActionDto.PERMISSION = 'schema.action.movecasetopendingreviewaction.trigger';
55
- /** Step metadata - entity this action targets */
56
- MoveCaseToPendingReviewActionDto.STEP_ENTITY = 'SupportModule:Case';
57
- MoveCaseToPendingReviewActionDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
58
- MoveCaseToPendingReviewActionDto.STEP_SCHEMA_ACTION_ID = '44a06e8b-aa07-4319-9c1b-245660553e97';
59
- MoveCaseToPendingReviewActionDto.STEP_SCHEMA_TYPE_ID = '22b50598-66be-435c-bd61-4dcd7d0b3420';
60
- MoveCaseToPendingReviewActionDto.STEP_TYPE = 'DEFAULT';
61
- MoveCaseToPendingReviewActionDto.AUTO_LINK_PARENT = false;
@@ -1,200 +0,0 @@
1
- /**
2
- * MoveCaseToPendingReviewTransition Action DTO
3
- *
4
- * V2: Move Case to Pending Review Transition
5
- *
6
- * @module SupportModule
7
- * @entity Case
8
- * @entityType DEFAULT
9
- * @actionKey MoveCaseToPendingReviewTransition
10
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingReviewTransition
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
- /**
16
- * Properties for MoveCaseToPendingReviewAction action
17
- *
18
- * @property Required fields: 4
19
- * @property Optional fields: 1
20
- */
21
- export interface MoveCaseToPendingReviewActionProperties {
22
- /**
23
- * Category
24
- *
25
- * Data field for Case records. Used by Customer Service team.
26
- * @type {ENUM}
27
- * @required
28
- */
29
- Category: string;
30
- /**
31
- * Sub Category
32
- *
33
- * SubCategory (Customer Service - Case)
34
- * @type {ENUM}
35
- * @required
36
- */
37
- SubCategory: string;
38
- /**
39
- * ReasonForReview
40
- *
41
- * Reason for Review (Customer Service - Case)
42
- * @type {ENUM}
43
- * @required
44
- */
45
- ReasonForReview: string;
46
- /**
47
- * AdditionalNotes
48
- *
49
- * Additional Notes (Customer Service - Case)
50
- * @type {TEXT_LONG}
51
- * @required
52
- */
53
- AdditionalNotes: string;
54
- }
55
- /**
56
- * Request Manager Review
57
- *
58
- * V2: Move Case to Review Action
59
- *
60
- * @actionType UPDATE - Updates an existing Case record
61
- * @module SupportModule
62
- * @entity Case
63
- * @entityType DEFAULT (Default)
64
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction
65
- * @permission schema.action.movecasetopendingreviewaction.trigger
66
- * @benchmark This action is tracked for performance benchmarks
67
- */
68
- export declare class MoveCaseToPendingReviewActionDto extends OdinRecordUpdateDto<MoveCaseToPendingReviewActionProperties> {
69
- /** Used by SDK generators to identify action type */
70
- static readonly ACTION_TYPE = "UPDATE";
71
- static readonly ACTION_KEY = "MoveCaseToPendingReviewAction";
72
- static readonly MODULE_NAME = "SupportModule";
73
- static readonly ENTITIES: string[];
74
- static readonly ENTITY_TYPE = "DEFAULT";
75
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction";
76
- static readonly PERMISSION = "schema.action.movecasetopendingreviewaction.trigger";
77
- /** Step metadata - entity this action targets */
78
- static readonly STEP_ENTITY = "SupportModule:Case";
79
- static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
80
- static readonly STEP_SCHEMA_ACTION_ID = "44a06e8b-aa07-4319-9c1b-245660553e97";
81
- static readonly STEP_SCHEMA_TYPE_ID = "22b50598-66be-435c-bd61-4dcd7d0b3420";
82
- static readonly STEP_TYPE = "DEFAULT";
83
- static readonly AUTO_LINK_PARENT = false;
84
- readonly actionName: string;
85
- readonly schemaActionId: string;
86
- readonly entity: string;
87
- constructor(record: OdinRecord<any> | {
88
- id: string;
89
- entity: string;
90
- type?: string;
91
- }, properties: MoveCaseToPendingReviewActionProperties, options?: {
92
- journeyId?: string;
93
- stageKey?: string;
94
- });
95
- }
96
- declare type StepClassMap = {
97
- MoveCaseToPendingReviewActionDto: MoveCaseToPendingReviewActionDto;
98
- };
99
- /**
100
- * Link definition for connecting steps in MoveCaseToPendingReviewTransition
101
- */
102
- export interface MoveCaseToPendingReviewTransitionStepLink {
103
- /**
104
- * The stepKey of the target step to link TO
105
- * Must reference another step's stepKey in the same flow
106
- */
107
- stepKey: string;
108
- /**
109
- * The schema association ID (UUID) defining the relationship
110
- * Use the association.id from the schema association definition
111
- * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
112
- */
113
- schemaAssociationId: string;
114
- }
115
- /**
116
- * Step definition with linking metadata for MoveCaseToPendingReviewTransition
117
- */
118
- export interface MoveCaseToPendingReviewTransitionStepDefinition {
119
- /** Unique identifier for this step */
120
- stepKey: string;
121
- /** The DTO class name for this step */
122
- dtoClass: string;
123
- /** The entity this step creates (Module:Entity format) */
124
- entity: string;
125
- /** Links to create after this step executes */
126
- linksTo: MoveCaseToPendingReviewTransitionStepLink[] | null;
127
- }
128
- /**
129
- * Type-safe step keys for MoveCaseToPendingReviewTransition
130
- */
131
- export declare const MoveCaseToPendingReviewTransitionSteps: {
132
- readonly step_1: "step_1";
133
- };
134
- export declare type MoveCaseToPendingReviewTransitionStepKey = typeof MoveCaseToPendingReviewTransitionSteps[keyof typeof MoveCaseToPendingReviewTransitionSteps];
135
- /**
136
- * RabbitMQ message payload for MoveCaseToPendingReviewTransition step flow events
137
- *
138
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingReviewTransition
139
- */
140
- export interface MoveCaseToPendingReviewTransitionMessage extends OdinRecordUpdatedEvent<MoveCaseToPendingReviewTransitionDto, {}> {
141
- }
142
- /**
143
- * Properties for MoveCaseToPendingReviewTransition action
144
- *
145
- */
146
- export interface MoveCaseToPendingReviewTransitionProperties {
147
- }
148
- /**
149
- * MoveCaseToPendingReviewTransition
150
- *
151
- * V2: Move Case to Pending Review Transition
152
- *
153
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
154
- * @module SupportModule
155
- * @entity Case
156
- * @entityType DEFAULT (Default)
157
- * @targetStages CaseDefaultStagePendingReview
158
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingReviewTransition
159
- * @permission schema.action.movecasetopendingreviewtransition.trigger
160
- * @benchmark This action is tracked for performance benchmarks
161
- */
162
- export declare class MoveCaseToPendingReviewTransitionDto extends OdinRecordUpdateDto<Record<string, any>> {
163
- /** Used by SDK generators to identify action type */
164
- static readonly ACTION_TYPE = "UPDATE";
165
- static readonly ACTION_KEY = "MoveCaseToPendingReviewTransition";
166
- static readonly MODULE_NAME = "SupportModule";
167
- static readonly ENTITIES: string[];
168
- static readonly ENTITY_TYPE = "DEFAULT";
169
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingReviewTransition";
170
- static readonly SCHEMA_ACTION_ID = "0a200a80-3222-4445-8a76-55657d1c2466";
171
- static readonly PERMISSION = "schema.action.movecasetopendingreviewtransition.trigger";
172
- static readonly TARGET_STAGES: readonly ["CaseDefaultStagePendingReview"];
173
- static readonly IS_STAGE_TRANSITION = true;
174
- static readonly IS_MULTI_STEP_FLOW = false;
175
- static readonly HAS_STEP_LINKS = false;
176
- /**
177
- * Step definitions with linking metadata
178
- * Used by SDK and backend for auto-linking after step execution
179
- */
180
- static readonly stepDefinitions: MoveCaseToPendingReviewTransitionStepDefinition[];
181
- /** Type-safe step key accessor */
182
- static readonly Steps: {
183
- readonly step_1: "step_1";
184
- };
185
- readonly actionName: string;
186
- readonly schemaActionId: string;
187
- readonly entity: string;
188
- readonly stageKey: string;
189
- constructor(record: OdinRecord<any> | {
190
- id: string;
191
- entity: string;
192
- type?: string;
193
- }, options?: {
194
- journeyId?: string;
195
- });
196
- /** Step classes that can be used with this action */
197
- static readonly stepClasses: readonly ["MoveCaseToPendingReviewActionDto"];
198
- steps: StepClassMap[(typeof MoveCaseToPendingReviewTransitionDto.stepClasses)[number]][];
199
- }
200
- export {};
@@ -1,126 +0,0 @@
1
- "use strict";
2
- /**
3
- * MoveCaseToPendingReviewTransition Action DTO
4
- *
5
- * V2: Move Case to Pending Review Transition
6
- *
7
- * @module SupportModule
8
- * @entity Case
9
- * @entityType DEFAULT
10
- * @actionKey MoveCaseToPendingReviewTransition
11
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingReviewTransition
12
- *
13
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MoveCaseToPendingReviewTransitionDto = exports.MoveCaseToPendingReviewTransitionSteps = exports.MoveCaseToPendingReviewActionDto = void 0;
17
- const core_1 = require("@d19n/odin-types/dist/core");
18
- /**
19
- * Request Manager Review
20
- *
21
- * V2: Move Case to Review Action
22
- *
23
- * @actionType UPDATE - Updates an existing Case record
24
- * @module SupportModule
25
- * @entity Case
26
- * @entityType DEFAULT (Default)
27
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction
28
- * @permission schema.action.movecasetopendingreviewaction.trigger
29
- * @benchmark This action is tracked for performance benchmarks
30
- */
31
- class MoveCaseToPendingReviewActionDto extends core_1.OdinRecordUpdateDto {
32
- constructor(record, properties, options) {
33
- super({
34
- id: record.id,
35
- entity: record.entity,
36
- type: record.type,
37
- properties,
38
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
39
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
40
- });
41
- this.actionName = 'MoveCaseToPendingReviewAction';
42
- this.schemaActionId = '44a06e8b-aa07-4319-9c1b-245660553e97';
43
- this.entity = 'SupportModule:Case';
44
- }
45
- }
46
- exports.MoveCaseToPendingReviewActionDto = MoveCaseToPendingReviewActionDto;
47
- /** Used by SDK generators to identify action type */
48
- MoveCaseToPendingReviewActionDto.ACTION_TYPE = 'UPDATE';
49
- MoveCaseToPendingReviewActionDto.ACTION_KEY = 'MoveCaseToPendingReviewAction';
50
- MoveCaseToPendingReviewActionDto.MODULE_NAME = 'SupportModule';
51
- MoveCaseToPendingReviewActionDto.ENTITIES = ['Case'];
52
- MoveCaseToPendingReviewActionDto.ENTITY_TYPE = 'DEFAULT';
53
- MoveCaseToPendingReviewActionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToPendingReviewAction';
54
- MoveCaseToPendingReviewActionDto.PERMISSION = 'schema.action.movecasetopendingreviewaction.trigger';
55
- /** Step metadata - entity this action targets */
56
- MoveCaseToPendingReviewActionDto.STEP_ENTITY = 'SupportModule:Case';
57
- MoveCaseToPendingReviewActionDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
58
- MoveCaseToPendingReviewActionDto.STEP_SCHEMA_ACTION_ID = '44a06e8b-aa07-4319-9c1b-245660553e97';
59
- MoveCaseToPendingReviewActionDto.STEP_SCHEMA_TYPE_ID = '22b50598-66be-435c-bd61-4dcd7d0b3420';
60
- MoveCaseToPendingReviewActionDto.STEP_TYPE = 'DEFAULT';
61
- MoveCaseToPendingReviewActionDto.AUTO_LINK_PARENT = false;
62
- /**
63
- * Type-safe step keys for MoveCaseToPendingReviewTransition
64
- */
65
- exports.MoveCaseToPendingReviewTransitionSteps = {
66
- step_1: 'step_1',
67
- };
68
- /**
69
- * MoveCaseToPendingReviewTransition
70
- *
71
- * V2: Move Case to Pending Review Transition
72
- *
73
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
74
- * @module SupportModule
75
- * @entity Case
76
- * @entityType DEFAULT (Default)
77
- * @targetStages CaseDefaultStagePendingReview
78
- * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingReviewTransition
79
- * @permission schema.action.movecasetopendingreviewtransition.trigger
80
- * @benchmark This action is tracked for performance benchmarks
81
- */
82
- class MoveCaseToPendingReviewTransitionDto extends core_1.OdinRecordUpdateDto {
83
- constructor(record, options) {
84
- super({
85
- id: record.id,
86
- entity: record.entity,
87
- type: record.type,
88
- properties: {},
89
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
90
- });
91
- this.actionName = 'MoveCaseToPendingReviewTransition';
92
- this.schemaActionId = '0a200a80-3222-4445-8a76-55657d1c2466';
93
- this.entity = 'SupportModule:Case';
94
- this.stageKey = 'CaseDefaultStagePendingReview';
95
- }
96
- }
97
- exports.MoveCaseToPendingReviewTransitionDto = MoveCaseToPendingReviewTransitionDto;
98
- /** Used by SDK generators to identify action type */
99
- MoveCaseToPendingReviewTransitionDto.ACTION_TYPE = 'UPDATE';
100
- MoveCaseToPendingReviewTransitionDto.ACTION_KEY = 'MoveCaseToPendingReviewTransition';
101
- MoveCaseToPendingReviewTransitionDto.MODULE_NAME = 'SupportModule';
102
- MoveCaseToPendingReviewTransitionDto.ENTITIES = ['Case'];
103
- MoveCaseToPendingReviewTransitionDto.ENTITY_TYPE = 'DEFAULT';
104
- MoveCaseToPendingReviewTransitionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToPendingReviewTransition';
105
- MoveCaseToPendingReviewTransitionDto.SCHEMA_ACTION_ID = '0a200a80-3222-4445-8a76-55657d1c2466';
106
- MoveCaseToPendingReviewTransitionDto.PERMISSION = 'schema.action.movecasetopendingreviewtransition.trigger';
107
- MoveCaseToPendingReviewTransitionDto.TARGET_STAGES = ['CaseDefaultStagePendingReview'];
108
- MoveCaseToPendingReviewTransitionDto.IS_STAGE_TRANSITION = true;
109
- MoveCaseToPendingReviewTransitionDto.IS_MULTI_STEP_FLOW = false;
110
- MoveCaseToPendingReviewTransitionDto.HAS_STEP_LINKS = false;
111
- /**
112
- * Step definitions with linking metadata
113
- * Used by SDK and backend for auto-linking after step execution
114
- */
115
- MoveCaseToPendingReviewTransitionDto.stepDefinitions = [
116
- {
117
- stepKey: 'step_1',
118
- dtoClass: 'MoveCaseToPendingReviewActionDto',
119
- entity: 'SupportModule:Case',
120
- linksTo: null
121
- }
122
- ];
123
- /** Type-safe step key accessor */
124
- MoveCaseToPendingReviewTransitionDto.Steps = exports.MoveCaseToPendingReviewTransitionSteps;
125
- /** Step classes that can be used with this action */
126
- MoveCaseToPendingReviewTransitionDto.stepClasses = ['MoveCaseToPendingReviewActionDto'];