@d19n/youfibre-odin-sdk 1.0.355 → 1.0.357

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 (57) hide show
  1. package/README.md +2 -17
  2. package/dist/actions-v2/CaseDefaultStageSolvedDto.d.ts +3 -117
  3. package/dist/actions-v2/CaseDefaultStageSolvedDto.js +3 -61
  4. package/dist/actions-v2/CreateCollectionAmcoReplacementWorkOrderDto.d.ts +27 -0
  5. package/dist/actions-v2/CreateCollectionAmcoReplacementWorkOrderDto.js +50 -0
  6. package/dist/actions-v2/CreateCollectionAmcoReplacementWorkOrderFromWorkOrderDto.d.ts +27 -0
  7. package/dist/actions-v2/CreateCollectionAmcoReplacementWorkOrderFromWorkOrderDto.js +50 -0
  8. package/dist/actions-v2/CreateFieldServiceDispatchedProductDto.d.ts +27 -0
  9. package/dist/actions-v2/CreateFieldServiceDispatchedProductDto.js +50 -0
  10. package/dist/actions-v2/CreateLeadFromBrskDto.d.ts +8 -1
  11. package/dist/actions-v2/CreatePaymentDto.d.ts +27 -0
  12. package/dist/actions-v2/CreatePaymentDto.js +50 -0
  13. package/dist/actions-v2/CreatePaymentMethodRefundForContactDto.d.ts +27 -0
  14. package/dist/actions-v2/CreatePaymentMethodRefundForContactDto.js +50 -0
  15. package/dist/actions-v2/CreateTestEntityForVisualBuilderDto.d.ts +2 -24
  16. package/dist/actions-v2/ExceptionInputDto.d.ts +8 -1
  17. package/dist/entities-v2/Call.d.ts +22 -1
  18. package/dist/entities-v2/Call.js +6 -0
  19. package/dist/entities-v2/Case.d.ts +15 -1
  20. package/dist/entities-v2/Case.js +2 -0
  21. package/dist/entities-v2/PgPaymentMethod.d.ts +3 -10
  22. package/dist/entities-v2/PgPaymentMethod.js +3 -5
  23. package/dist/entities-v2/PgTransaction.d.ts +16 -8
  24. package/dist/entities-v2/PgTransaction.js +16 -8
  25. package/dist/records-v2/CaseRecord.d.ts +36 -97
  26. package/dist/records-v2/CaseRecord.js +47 -157
  27. package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +8 -41
  28. package/dist/records-v2/FieldServiceDispatchedProductRecord.js +8 -17
  29. package/dist/records-v2/PaymentMethodRefundRecord.d.ts +8 -10
  30. package/dist/records-v2/PaymentMethodRefundRecord.js +8 -19
  31. package/dist/records-v2/PaymentRecord.d.ts +8 -10
  32. package/dist/records-v2/PaymentRecord.js +8 -19
  33. package/dist/records-v2/PgDirectDebitFileRecord.d.ts +0 -50
  34. package/dist/records-v2/PgDirectDebitFileRecord.js +0 -58
  35. package/dist/records-v2/PgFileAllocationRecord.d.ts +0 -27
  36. package/dist/records-v2/PgFileAllocationRecord.js +0 -29
  37. package/dist/records-v2/PgPaymentMethodRecord.d.ts +0 -27
  38. package/dist/records-v2/PgPaymentMethodRecord.js +0 -29
  39. package/dist/records-v2/PgTransactionRecord.d.ts +0 -77
  40. package/dist/records-v2/PgTransactionRecord.js +0 -87
  41. package/dist/records-v2/WorkOrderRecord.d.ts +8 -8
  42. package/dist/records-v2/WorkOrderRecord.js +8 -17
  43. package/package.json +3 -3
  44. package/dist/actions-v2/MovePgSubmissionToFailedFormattingDto.d.ts +0 -117
  45. package/dist/actions-v2/MovePgSubmissionToFailedFormattingDto.js +0 -82
  46. package/dist/actions-v2/MovePgSubmissionToFailedSubmissionDto.d.ts +0 -117
  47. package/dist/actions-v2/MovePgSubmissionToFailedSubmissionDto.js +0 -82
  48. package/dist/actions-v2/MovePgTransactionChargeToFailedFormattingDto.d.ts +0 -117
  49. package/dist/actions-v2/MovePgTransactionChargeToFailedFormattingDto.js +0 -82
  50. package/dist/actions-v2/MovePgTransactionChargeToFailedSubmissionDto.d.ts +0 -117
  51. package/dist/actions-v2/MovePgTransactionChargeToFailedSubmissionDto.js +0 -82
  52. package/dist/actions-v2/UpdatePgAllocationWithAcknowledgementFileDto.d.ts +0 -85
  53. package/dist/actions-v2/UpdatePgAllocationWithAcknowledgementFileDto.js +0 -61
  54. package/dist/actions-v2/UpdatePgPaymentMethodFailedReasonDto.d.ts +0 -78
  55. package/dist/actions-v2/UpdatePgPaymentMethodFailedReasonDto.js +0 -61
  56. package/dist/actions-v2/UpdatePgTransactionFailedReasonDto.d.ts +0 -78
  57. package/dist/actions-v2/UpdatePgTransactionFailedReasonDto.js +0 -61
package/README.md CHANGED
@@ -351,7 +351,7 @@ This SDK includes **163** entities across **12** modules.
351
351
 
352
352
  ## Actions
353
353
 
354
- This SDK includes **539** actions.
354
+ This SDK includes **532** actions.
355
355
 
356
356
  ### Action Types
357
357
 
@@ -724,7 +724,7 @@ This SDK includes **539** actions.
724
724
  | `AssignCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase |
725
725
  | `AssignCaseWithNoteFlow` | MULTI_STEP_FLOW | k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase |
726
726
  | `CaseDefaultStageEscalated` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
727
- | `CaseDefaultStageSolved` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.ExceptionInput |
727
+ | `CaseDefaultStageSolved` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.CaseDefaultStageSolved |
728
728
  | `Casedefaultstageblocked` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToBlockedAction |
729
729
  | `ChangeCaseChannel` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ChangeCaseChannel |
730
730
  | `CreateCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
@@ -1056,7 +1056,6 @@ This SDK includes **539** actions.
1056
1056
  |--------|------|-------|
1057
1057
  | `CreateAuddisPgSubmissionAllocation` | CREATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Create.CreateAuddisPgSubmissionAllocation |
1058
1058
  | `CreateBacsPgSubmissionAllocation` | CREATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Create.CreateBacsPgSubmissionAllocation |
1059
- | `UpdatePgAllocationWithAcknowledgementFile` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgAllocationWithAcknowledgementFile |
1060
1059
  | `UpdatePgAllocationWithAcknowledgementOne` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgAllocationWithAcknowledgementOne |
1061
1060
  | `UpdatePgAllocationWithAcknowledgementTwo` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgAllocationWithAcknowledgementTwo |
1062
1061
  | `UpdatePgAllocationWithBacsReport` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgAllocationWithBacsReport |
@@ -1348,7 +1347,6 @@ This SDK includes **539** actions.
1348
1347
  | `MovePgPaymentMethodToValidated` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Transition.MovePgPaymentMethodToValidated |
1349
1348
  | `UpdatePgPaymentMethodActivatedDatetime` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodActivatedDatetime |
1350
1349
  | `UpdatePgPaymentMethod` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethod |
1351
- | `UpdatePgPaymentMethodFailedReason` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason |
1352
1350
  | `UpdatePgPaymentMethodFirstTransactionProcessed` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFirstTransactionProcessed |
1353
1351
  | `UpdatePgPaymentMethodMessage` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodMessage |
1354
1352
  | `UpdatePgPaymentMethodValidatedDatetime` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodValidatedDatetime |
@@ -1389,8 +1387,6 @@ This SDK includes **539** actions.
1389
1387
  | `MovePgResponseToProcessed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgResponseToProcessed |
1390
1388
  | `MovePgResponseToSaved` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgResponseToSaved |
1391
1389
  | `MovePgSubmissionToClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToClosed |
1392
- | `MovePgSubmissionToFailedFormatting` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToFailedFormatting |
1393
- | `MovePgSubmissionToFailedSubmission` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToFailedSubmission |
1394
1390
  | `MovePgSubmissionToFileAccepted` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToFileAccepted |
1395
1391
  | `MovePgSubmissionToFileRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToFileRejected |
1396
1392
  | `MovePgSubmissionToProcessed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToProcessed |
@@ -1409,10 +1405,6 @@ This SDK includes **539** actions.
1409
1405
 
1410
1406
  **MovePgSubmissionToClosed Target Stages:** `SubmissionStatusStageClosed`
1411
1407
 
1412
- **MovePgSubmissionToFailedFormatting Target Stages:** `SubmissionStatusStageFailedFormatting`
1413
-
1414
- **MovePgSubmissionToFailedSubmission Target Stages:** `SubmissionStatusStageFailedSubmission`
1415
-
1416
1408
  **MovePgSubmissionToFileAccepted Target Stages:** `SubmissionStatusStageFileAccepted`
1417
1409
 
1418
1410
  **MovePgSubmissionToFileRejected Target Stages:** `SubmissionStatusStageFileRejected`
@@ -1445,8 +1437,6 @@ This SDK includes **539** actions.
1445
1437
  | `MovePgTransactionChargeToAcknowledged` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToAcknowledged |
1446
1438
  | `MovePgTransactionChargeToAllocated` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToAllocated |
1447
1439
  | `MovePgTransactionChargeToFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToFailed |
1448
- | `MovePgTransactionChargeToFailedFormatting` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToFailedFormatting |
1449
- | `MovePgTransactionChargeToFailedSubmission` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToFailedSubmission |
1450
1440
  | `MovePgTransactionChargeToFileRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToFileRejected |
1451
1441
  | `MovePgTransactionChargeToInstructionRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToInstructionRejected |
1452
1442
  | `MovePgTransactionChargeToProcessing` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToProcessing |
@@ -1455,7 +1445,6 @@ This SDK includes **539** actions.
1455
1445
  | `MovePgTransactionChargeToSubmitted` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToSubmitted |
1456
1446
  | `MovePgTransactionChargeToSucceeded` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgTransaction.Transition.MovePgTransactionChargeToSucceeded |
1457
1447
  | `UpdatePgTransactionCharge` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgTransaction.Update.UpdatePgTransactionCharge |
1458
- | `UpdatePgTransactionFailedReason` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgTransaction.Update.UpdatePgTransactionFailedReason |
1459
1448
  | `UpdatePgTransactionMessage` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgTransaction.Update.UpdatePgTransactionMessage |
1460
1449
 
1461
1450
  **MovePgTransactionChargeToAcknowledged Target Stages:** `ChargeStatusStageAcknowledged`
@@ -1464,10 +1453,6 @@ This SDK includes **539** actions.
1464
1453
 
1465
1454
  **MovePgTransactionChargeToFailed Target Stages:** `ChargeStatusStageFailed`
1466
1455
 
1467
- **MovePgTransactionChargeToFailedFormatting Target Stages:** `ChargeStatusStageFailedFormatting`
1468
-
1469
- **MovePgTransactionChargeToFailedSubmission Target Stages:** `ChargeStatusStageFailedSubmission`
1470
-
1471
1456
  **MovePgTransactionChargeToFileRejected Target Stages:** `ChargeStatusStageFileRejected`
1472
1457
 
1473
1458
  **MovePgTransactionChargeToInstructionRejected Target Stages:** `ChargeStatusStageInstructionRejected`
@@ -12,110 +12,6 @@
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
14
14
  import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
- /**
16
- * Properties for ExceptionInput action
17
- *
18
- * @property Required fields: 0
19
- * @property Optional fields: 6
20
- */
21
- export interface ExceptionInputProperties {
22
- /**
23
- * Formal Complaint
24
- *
25
- * Formal Complaint - Boolean
26
- * @type {ENUM}
27
- */
28
- FormalComplaint?: string | null;
29
- /**
30
- * Complaint
31
- *
32
- * Complaint
33
- * @type {ENUM}
34
- */
35
- Complaint?: string | null;
36
- /**
37
- * Timestamp
38
- *
39
- * Timestamp
40
- * @type {DATE_TIME}
41
- * @default Dynamic: {datetime_now}
42
- */
43
- Timestamp?: string | null;
44
- }
45
- /**
46
- * ExceptionInput
47
- *
48
- * @actionType UPDATE - Updates an existing Case record
49
- * @module SupportModule
50
- * @entity Case
51
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.ExceptionInput
52
- * @permission schema.action.exceptioninput.trigger
53
- * @benchmark This action is tracked for performance benchmarks
54
- */
55
- export declare class ExceptionInputDto extends OdinRecordUpdateDto<ExceptionInputProperties> {
56
- /** Used by SDK generators to identify action type */
57
- static readonly ACTION_TYPE = "UPDATE";
58
- static readonly ACTION_KEY = "ExceptionInput";
59
- static readonly MODULE_NAME = "SupportModule";
60
- static readonly ENTITIES: string[];
61
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.ExceptionInput";
62
- static readonly PERMISSION = "schema.action.exceptioninput.trigger";
63
- /** Step metadata - entity this action targets */
64
- static readonly STEP_ENTITY = "SupportModule:Case";
65
- static readonly STEP_SCHEMA_ID = "be8173eb-269b-4a67-be0c-11ce6af5d561";
66
- static readonly STEP_SCHEMA_ACTION_ID = "45b6bffd-7641-4f70-89b3-f335e0ae8989";
67
- static readonly AUTO_LINK_PARENT = false;
68
- readonly actionName: string;
69
- readonly schemaActionId: string;
70
- readonly entity: string;
71
- constructor(record: OdinRecord<any> | {
72
- id: string;
73
- entity: string;
74
- type?: string;
75
- }, properties: ExceptionInputProperties, options?: {
76
- journeyId?: string;
77
- stageKey?: string;
78
- });
79
- }
80
- declare type StepClassMap = {
81
- ExceptionInputDto: ExceptionInputDto;
82
- };
83
- /**
84
- * Link definition for connecting steps in CaseDefaultStageSolved
85
- */
86
- export interface CaseDefaultStageSolvedStepLink {
87
- /**
88
- * The stepKey of the target step to link TO
89
- * Must reference another step's stepKey in the same flow
90
- */
91
- stepKey: string;
92
- /**
93
- * The schema association ID (UUID) defining the relationship
94
- * Use the association.id from the schema association definition
95
- * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
96
- */
97
- schemaAssociationId: string;
98
- }
99
- /**
100
- * Step definition with linking metadata for CaseDefaultStageSolved
101
- */
102
- export interface CaseDefaultStageSolvedStepDefinition {
103
- /** Unique identifier for this step */
104
- stepKey: string;
105
- /** The DTO class name for this step */
106
- dtoClass: string;
107
- /** The entity this step creates (Module:Entity format) */
108
- entity: string;
109
- /** Links to create after this step executes */
110
- linksTo: CaseDefaultStageSolvedStepLink[] | null;
111
- }
112
- /**
113
- * Type-safe step keys for CaseDefaultStageSolved
114
- */
115
- export declare const CaseDefaultStageSolvedSteps: {
116
- readonly step_1: "step_1";
117
- };
118
- export declare type CaseDefaultStageSolvedStepKey = typeof CaseDefaultStageSolvedSteps[keyof typeof CaseDefaultStageSolvedSteps];
119
15
  /**
120
16
  * RabbitMQ message payload for CaseDefaultStageSolved step flow events
121
17
  *
@@ -130,7 +26,7 @@ export interface CaseDefaultStageSolvedMessage extends OdinRecordUpdatedEvent<Ca
130
26
  export interface CaseDefaultStageSolvedProperties {
131
27
  }
132
28
  /**
133
- * Solve and Close
29
+ * CaseDefaultStageSolved
134
30
  *
135
31
  * Solve case
136
32
  *
@@ -159,15 +55,6 @@ export declare class CaseDefaultStageSolvedDto extends OdinRecordUpdateDto<Recor
159
55
  static readonly IS_STAGE_TRANSITION = true;
160
56
  static readonly IS_MULTI_STEP_FLOW = false;
161
57
  static readonly HAS_STEP_LINKS = false;
162
- /**
163
- * Step definitions with linking metadata
164
- * Used by SDK and backend for auto-linking after step execution
165
- */
166
- static readonly stepDefinitions: CaseDefaultStageSolvedStepDefinition[];
167
- /** Type-safe step key accessor */
168
- static readonly Steps: {
169
- readonly step_1: "step_1";
170
- };
171
58
  readonly actionName: string;
172
59
  readonly schemaActionId: string;
173
60
  readonly entity: string;
@@ -180,7 +67,6 @@ export declare class CaseDefaultStageSolvedDto extends OdinRecordUpdateDto<Recor
180
67
  journeyId?: string;
181
68
  });
182
69
  /** Step classes that can be used with this action */
183
- static readonly stepClasses: readonly ["ExceptionInputDto"];
184
- steps: StepClassMap[(typeof CaseDefaultStageSolvedDto.stepClasses)[number]][];
70
+ static readonly stepClasses: readonly [];
71
+ steps: [];
185
72
  }
186
- export {};
@@ -13,54 +13,10 @@
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CaseDefaultStageSolvedDto = exports.CaseDefaultStageSolvedSteps = exports.ExceptionInputDto = void 0;
16
+ exports.CaseDefaultStageSolvedDto = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
- * ExceptionInput
20
- *
21
- * @actionType UPDATE - Updates an existing Case record
22
- * @module SupportModule
23
- * @entity Case
24
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.ExceptionInput
25
- * @permission schema.action.exceptioninput.trigger
26
- * @benchmark This action is tracked for performance benchmarks
27
- */
28
- class ExceptionInputDto extends core_1.OdinRecordUpdateDto {
29
- constructor(record, properties, options) {
30
- super({
31
- id: record.id,
32
- entity: record.entity,
33
- type: record.type,
34
- properties,
35
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
37
- });
38
- this.actionName = 'ExceptionInput';
39
- this.schemaActionId = '45b6bffd-7641-4f70-89b3-f335e0ae8989';
40
- this.entity = 'SupportModule:Case';
41
- }
42
- }
43
- exports.ExceptionInputDto = ExceptionInputDto;
44
- /** Used by SDK generators to identify action type */
45
- ExceptionInputDto.ACTION_TYPE = 'UPDATE';
46
- ExceptionInputDto.ACTION_KEY = 'ExceptionInput';
47
- ExceptionInputDto.MODULE_NAME = 'SupportModule';
48
- ExceptionInputDto.ENTITIES = ['Case'];
49
- ExceptionInputDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.ExceptionInput';
50
- ExceptionInputDto.PERMISSION = 'schema.action.exceptioninput.trigger';
51
- /** Step metadata - entity this action targets */
52
- ExceptionInputDto.STEP_ENTITY = 'SupportModule:Case';
53
- ExceptionInputDto.STEP_SCHEMA_ID = 'be8173eb-269b-4a67-be0c-11ce6af5d561';
54
- ExceptionInputDto.STEP_SCHEMA_ACTION_ID = '45b6bffd-7641-4f70-89b3-f335e0ae8989';
55
- ExceptionInputDto.AUTO_LINK_PARENT = false;
56
- /**
57
- * Type-safe step keys for CaseDefaultStageSolved
58
- */
59
- exports.CaseDefaultStageSolvedSteps = {
60
- step_1: 'step_1',
61
- };
62
- /**
63
- * Solve and Close
19
+ * CaseDefaultStageSolved
64
20
  *
65
21
  * Solve case
66
22
  *
@@ -104,19 +60,5 @@ CaseDefaultStageSolvedDto.TARGET_STAGES = ['CaseDefaultStageSolved'];
104
60
  CaseDefaultStageSolvedDto.IS_STAGE_TRANSITION = true;
105
61
  CaseDefaultStageSolvedDto.IS_MULTI_STEP_FLOW = false;
106
62
  CaseDefaultStageSolvedDto.HAS_STEP_LINKS = false;
107
- /**
108
- * Step definitions with linking metadata
109
- * Used by SDK and backend for auto-linking after step execution
110
- */
111
- CaseDefaultStageSolvedDto.stepDefinitions = [
112
- {
113
- stepKey: 'step_1',
114
- dtoClass: 'ExceptionInputDto',
115
- entity: 'SupportModule:Case',
116
- linksTo: null
117
- }
118
- ];
119
- /** Type-safe step key accessor */
120
- CaseDefaultStageSolvedDto.Steps = exports.CaseDefaultStageSolvedSteps;
121
63
  /** Step classes that can be used with this action */
122
- CaseDefaultStageSolvedDto.stepClasses = ['ExceptionInputDto'];
64
+ CaseDefaultStageSolvedDto.stepClasses = [];
@@ -140,6 +140,10 @@ export declare class CreateCollectionAmcoReplacementWorkOrderBuilder {
140
140
  private _properties;
141
141
  private _pendingLinks;
142
142
  private _options?;
143
+ private _provider?;
144
+ private _moduleName?;
145
+ private _entityName?;
146
+ private _clearPendingLinks?;
143
147
  constructor(properties: CreateCollectionAmcoReplacementWorkOrderProperties, pendingLinks: OdinRecordLinkDto[], options?: {
144
148
  journeyId?: string;
145
149
  stageKey?: string;
@@ -167,6 +171,29 @@ export declare class CreateCollectionAmcoReplacementWorkOrderBuilder {
167
171
  journeyId?: string;
168
172
  stageKey?: string;
169
173
  };
174
+ /**
175
+ * Inject execution context (called by record wrapper)
176
+ * @internal
177
+ */
178
+ withProvider(provider: {
179
+ _applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
180
+ }, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
181
+ /**
182
+ * Execute the action
183
+ * @returns The result from the API
184
+ * @throws Error if withProvider() has not been called
185
+ */
186
+ execute(): Promise<any>;
187
+ /**
188
+ * Returns the request payload without executing (for debugging)
189
+ * @returns The request payload that would be sent to the API
190
+ */
191
+ dryRun(): Record<string, any>;
192
+ /**
193
+ * Prevents accidental `await builder` without .execute()
194
+ * @throws Error always - use .execute() or .dryRun() instead
195
+ */
196
+ then(): never;
170
197
  }
171
198
  /**
172
199
  * Create 3PL Replacement Collection
@@ -12,6 +12,15 @@
12
12
  *
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
15
24
  Object.defineProperty(exports, "__esModule", { value: true });
16
25
  exports.CreateCollectionAmcoReplacementWorkOrderDto = exports.CreateCollectionAmcoReplacementWorkOrderBuilder = void 0;
17
26
  const core_1 = require("@d19n/odin-types/dist/core");
@@ -65,6 +74,47 @@ class CreateCollectionAmcoReplacementWorkOrderBuilder {
65
74
  stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey,
66
75
  };
67
76
  }
77
+ /**
78
+ * Inject execution context (called by record wrapper)
79
+ * @internal
80
+ */
81
+ withProvider(provider, moduleName, entityName, clearPendingLinks) {
82
+ this._provider = provider;
83
+ this._moduleName = moduleName;
84
+ this._entityName = entityName;
85
+ this._clearPendingLinks = clearPendingLinks;
86
+ return this;
87
+ }
88
+ /**
89
+ * Execute the action
90
+ * @returns The result from the API
91
+ * @throws Error if withProvider() has not been called
92
+ */
93
+ execute() {
94
+ var _a;
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ if (!this._provider || !this._moduleName || !this._entityName) {
97
+ throw new Error('Builder not connected to provider. Use the record wrapper API to get an executable builder.');
98
+ }
99
+ const result = yield this._provider._applyAction(this._moduleName, this._entityName, this.getData());
100
+ (_a = this._clearPendingLinks) === null || _a === void 0 ? void 0 : _a.call(this);
101
+ return result;
102
+ });
103
+ }
104
+ /**
105
+ * Returns the request payload without executing (for debugging)
106
+ * @returns The request payload that would be sent to the API
107
+ */
108
+ dryRun() {
109
+ return this.getData();
110
+ }
111
+ /**
112
+ * Prevents accidental `await builder` without .execute()
113
+ * @throws Error always - use .execute() or .dryRun() instead
114
+ */
115
+ then() {
116
+ throw new Error('Builder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
117
+ }
68
118
  }
69
119
  exports.CreateCollectionAmcoReplacementWorkOrderBuilder = CreateCollectionAmcoReplacementWorkOrderBuilder;
70
120
  /**
@@ -133,6 +133,10 @@ export declare class CreateCollectionAmcoReplacementWorkOrderBuilder {
133
133
  private _properties;
134
134
  private _pendingLinks;
135
135
  private _options?;
136
+ private _provider?;
137
+ private _moduleName?;
138
+ private _entityName?;
139
+ private _clearPendingLinks?;
136
140
  constructor(properties: CreateCollectionAmcoReplacementWorkOrderProperties, pendingLinks: OdinRecordLinkDto[], options?: {
137
141
  journeyId?: string;
138
142
  stageKey?: string;
@@ -160,6 +164,29 @@ export declare class CreateCollectionAmcoReplacementWorkOrderBuilder {
160
164
  journeyId?: string;
161
165
  stageKey?: string;
162
166
  };
167
+ /**
168
+ * Inject execution context (called by record wrapper)
169
+ * @internal
170
+ */
171
+ withProvider(provider: {
172
+ _applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
173
+ }, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
174
+ /**
175
+ * Execute the action
176
+ * @returns The result from the API
177
+ * @throws Error if withProvider() has not been called
178
+ */
179
+ execute(): Promise<any>;
180
+ /**
181
+ * Returns the request payload without executing (for debugging)
182
+ * @returns The request payload that would be sent to the API
183
+ */
184
+ dryRun(): Record<string, any>;
185
+ /**
186
+ * Prevents accidental `await builder` without .execute()
187
+ * @throws Error always - use .execute() or .dryRun() instead
188
+ */
189
+ then(): never;
163
190
  }
164
191
  /**
165
192
  * Create 3PL Replacement Collection
@@ -12,6 +12,15 @@
12
12
  *
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
15
24
  Object.defineProperty(exports, "__esModule", { value: true });
16
25
  exports.CreateCollectionAmcoReplacementWorkOrderFromWorkOrderDto = exports.CreateCollectionAmcoReplacementWorkOrderFromWorkOrderSteps = exports.CreateCollectionAmcoReplacementWorkOrderDto = exports.CreateCollectionAmcoReplacementWorkOrderBuilder = void 0;
17
26
  const core_1 = require("@d19n/odin-types/dist/core");
@@ -65,6 +74,47 @@ class CreateCollectionAmcoReplacementWorkOrderBuilder {
65
74
  stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey,
66
75
  };
67
76
  }
77
+ /**
78
+ * Inject execution context (called by record wrapper)
79
+ * @internal
80
+ */
81
+ withProvider(provider, moduleName, entityName, clearPendingLinks) {
82
+ this._provider = provider;
83
+ this._moduleName = moduleName;
84
+ this._entityName = entityName;
85
+ this._clearPendingLinks = clearPendingLinks;
86
+ return this;
87
+ }
88
+ /**
89
+ * Execute the action
90
+ * @returns The result from the API
91
+ * @throws Error if withProvider() has not been called
92
+ */
93
+ execute() {
94
+ var _a;
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ if (!this._provider || !this._moduleName || !this._entityName) {
97
+ throw new Error('Builder not connected to provider. Use the record wrapper API to get an executable builder.');
98
+ }
99
+ const result = yield this._provider._applyAction(this._moduleName, this._entityName, this.getData());
100
+ (_a = this._clearPendingLinks) === null || _a === void 0 ? void 0 : _a.call(this);
101
+ return result;
102
+ });
103
+ }
104
+ /**
105
+ * Returns the request payload without executing (for debugging)
106
+ * @returns The request payload that would be sent to the API
107
+ */
108
+ dryRun() {
109
+ return this.getData();
110
+ }
111
+ /**
112
+ * Prevents accidental `await builder` without .execute()
113
+ * @throws Error always - use .execute() or .dryRun() instead
114
+ */
115
+ then() {
116
+ throw new Error('Builder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
117
+ }
68
118
  }
69
119
  exports.CreateCollectionAmcoReplacementWorkOrderBuilder = CreateCollectionAmcoReplacementWorkOrderBuilder;
70
120
  /**
@@ -43,6 +43,10 @@ export declare class CreateFieldServiceDispatchedProductBuilder {
43
43
  private _properties;
44
44
  private _pendingLinks;
45
45
  private _options?;
46
+ private _provider?;
47
+ private _moduleName?;
48
+ private _entityName?;
49
+ private _clearPendingLinks?;
46
50
  constructor(properties: CreateFieldServiceDispatchedProductProperties, pendingLinks: OdinRecordLinkDto[], options?: {
47
51
  journeyId?: string;
48
52
  stageKey?: string;
@@ -70,6 +74,29 @@ export declare class CreateFieldServiceDispatchedProductBuilder {
70
74
  journeyId?: string;
71
75
  stageKey?: string;
72
76
  };
77
+ /**
78
+ * Inject execution context (called by record wrapper)
79
+ * @internal
80
+ */
81
+ withProvider(provider: {
82
+ _applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
83
+ }, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
84
+ /**
85
+ * Execute the action
86
+ * @returns The result from the API
87
+ * @throws Error if withProvider() has not been called
88
+ */
89
+ execute(): Promise<any>;
90
+ /**
91
+ * Returns the request payload without executing (for debugging)
92
+ * @returns The request payload that would be sent to the API
93
+ */
94
+ dryRun(): Record<string, any>;
95
+ /**
96
+ * Prevents accidental `await builder` without .execute()
97
+ * @throws Error always - use .execute() or .dryRun() instead
98
+ */
99
+ then(): never;
73
100
  }
74
101
  /**
75
102
  * CreateFieldServiceDispatchedProduct
@@ -12,6 +12,15 @@
12
12
  *
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
15
24
  Object.defineProperty(exports, "__esModule", { value: true });
16
25
  exports.CreateFieldServiceDispatchedProductDto = exports.CreateFieldServiceDispatchedProductBuilder = void 0;
17
26
  const core_1 = require("@d19n/odin-types/dist/core");
@@ -65,6 +74,47 @@ class CreateFieldServiceDispatchedProductBuilder {
65
74
  stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey,
66
75
  };
67
76
  }
77
+ /**
78
+ * Inject execution context (called by record wrapper)
79
+ * @internal
80
+ */
81
+ withProvider(provider, moduleName, entityName, clearPendingLinks) {
82
+ this._provider = provider;
83
+ this._moduleName = moduleName;
84
+ this._entityName = entityName;
85
+ this._clearPendingLinks = clearPendingLinks;
86
+ return this;
87
+ }
88
+ /**
89
+ * Execute the action
90
+ * @returns The result from the API
91
+ * @throws Error if withProvider() has not been called
92
+ */
93
+ execute() {
94
+ var _a;
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ if (!this._provider || !this._moduleName || !this._entityName) {
97
+ throw new Error('Builder not connected to provider. Use the record wrapper API to get an executable builder.');
98
+ }
99
+ const result = yield this._provider._applyAction(this._moduleName, this._entityName, this.getData());
100
+ (_a = this._clearPendingLinks) === null || _a === void 0 ? void 0 : _a.call(this);
101
+ return result;
102
+ });
103
+ }
104
+ /**
105
+ * Returns the request payload without executing (for debugging)
106
+ * @returns The request payload that would be sent to the API
107
+ */
108
+ dryRun() {
109
+ return this.getData();
110
+ }
111
+ /**
112
+ * Prevents accidental `await builder` without .execute()
113
+ * @throws Error always - use .execute() or .dryRun() instead
114
+ */
115
+ then() {
116
+ throw new Error('Builder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
117
+ }
68
118
  }
69
119
  exports.CreateFieldServiceDispatchedProductBuilder = CreateFieldServiceDispatchedProductBuilder;
70
120
  /**
@@ -22,7 +22,7 @@ export interface CreateLeadFromBrskMessage extends OdinRecordCreatedEvent<Create
22
22
  * Properties for CreateLeadFromBrsk action
23
23
  *
24
24
  * @property Required fields: 4
25
- * @property Optional fields: 2
25
+ * @property Optional fields: 3
26
26
  */
27
27
  export interface CreateLeadFromBrskProperties {
28
28
  /**
@@ -71,6 +71,13 @@ export interface CreateLeadFromBrskProperties {
71
71
  * @type {TEXT}
72
72
  */
73
73
  LastName?: string | null;
74
+ /**
75
+ * name
76
+ *
77
+ * Display name/title for Lead records. Primary identifier for Sales team.
78
+ * @type {TEXT}
79
+ */
80
+ Name?: string | null;
74
81
  }
75
82
  /**
76
83
  * CreateLeadFromBrsk