@d19n/youfibre-odin-sdk 2.0.1 → 2.0.2

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 (67) hide show
  1. package/README.md +14 -3
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/BrskEntityMigrationErrorAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/BrskEntityMigrationErrorAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +5 -3
  12. package/dist/actions-v2/AssignCaseDto.d.ts +5 -13
  13. package/dist/actions-v2/AssignCaseWithNoteFlowDto.d.ts +5 -13
  14. package/dist/actions-v2/CreateAuddisPgSubmissionAllocationDto.d.ts +8 -1
  15. package/dist/actions-v2/CreateBacsPgSubmissionAllocationDto.d.ts +11 -4
  16. package/dist/actions-v2/CreateBrskMigrationErrorDto.d.ts +100 -0
  17. package/dist/actions-v2/CreateBrskMigrationErrorDto.js +52 -0
  18. package/dist/actions-v2/CreateCaseFromContactDto.d.ts +5 -13
  19. package/dist/actions-v2/CreateCashbackRewardForOrderReferralDto.d.ts +208 -0
  20. package/dist/actions-v2/CreateCashbackRewardForOrderReferralDto.js +179 -0
  21. package/dist/actions-v2/MoveCollectionWorkOrderToCompleteDto.d.ts +72 -20
  22. package/dist/actions-v2/MoveCollectionWorkOrderToCompleteDto.js +42 -21
  23. package/dist/actions-v2/UpdatePgFileAllocationDto.d.ts +91 -0
  24. package/dist/actions-v2/UpdatePgFileAllocationDto.js +61 -0
  25. package/dist/actions-v2/UpdateTeamDto.d.ts +15 -1
  26. package/dist/api-sdk-v2/BrskEntityMigrationErrorApi.d.ts +45 -0
  27. package/dist/api-sdk-v2/BrskEntityMigrationErrorApi.js +151 -0
  28. package/dist/api-sdk-v2/ReferralApi.d.ts +2 -0
  29. package/dist/api-sdk-v2/ReferralApi.js +6 -0
  30. package/dist/api-sdk-v2/RewardApi.d.ts +2 -0
  31. package/dist/api-sdk-v2/RewardApi.js +6 -0
  32. package/dist/db-accessors-v2/BrskEntityMigrationErrorDbAccessor.d.ts +146 -0
  33. package/dist/db-accessors-v2/BrskEntityMigrationErrorDbAccessor.js +224 -0
  34. package/dist/db-accessors-v2/index.d.ts +1 -0
  35. package/dist/db-accessors-v2/index.js +5 -3
  36. package/dist/db-sdk-v2/BrskEntityMigrationErrorDb.d.ts +117 -0
  37. package/dist/db-sdk-v2/BrskEntityMigrationErrorDb.js +200 -0
  38. package/dist/db-sdk-v2/ReferralDb.d.ts +2 -0
  39. package/dist/db-sdk-v2/ReferralDb.js +6 -0
  40. package/dist/db-sdk-v2/RewardDb.d.ts +2 -0
  41. package/dist/db-sdk-v2/RewardDb.js +6 -0
  42. package/dist/entities-v2/AccountCredit.d.ts +90 -7
  43. package/dist/entities-v2/AccountCredit.js +86 -3
  44. package/dist/entities-v2/BrskEntityMigrationError.d.ts +107 -0
  45. package/dist/entities-v2/BrskEntityMigrationError.js +75 -0
  46. package/dist/entities-v2/Config.d.ts +8 -8
  47. package/dist/entities-v2/Config.js +4 -4
  48. package/dist/entities-v2/Referral.d.ts +7 -0
  49. package/dist/entities-v2/Referral.js +5 -1
  50. package/dist/entities-v2/Reward.d.ts +3 -12
  51. package/dist/entities-v2/Reward.js +0 -2
  52. package/dist/entities-v2/Team.d.ts +21 -0
  53. package/dist/entities-v2/Team.js +17 -1
  54. package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +184 -0
  55. package/dist/records-v2/BrskEntityMigrationErrorRecord.js +243 -0
  56. package/dist/records-v2/ContactRecord.js +2 -0
  57. package/dist/records-v2/PgFileAllocationRecord.d.ts +28 -0
  58. package/dist/records-v2/PgFileAllocationRecord.js +37 -0
  59. package/dist/records-v2/ReferralRecord.d.ts +20 -0
  60. package/dist/records-v2/ReferralRecord.js +33 -0
  61. package/dist/records-v2/RewardRecord.d.ts +49 -0
  62. package/dist/records-v2/RewardRecord.js +60 -0
  63. package/dist/records-v2/WorkOrderRecord.d.ts +25 -29
  64. package/dist/records-v2/WorkOrderRecord.js +29 -36
  65. package/dist/records-v2/index.d.ts +1 -0
  66. package/dist/records-v2/index.js +7 -4
  67. package/package.json +1 -1
@@ -7,17 +7,54 @@
7
7
  * @entity WorkOrder
8
8
  * @entityType COLLECTION
9
9
  * @actionKey MoveCollectionWorkOrderToComplete
10
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.MoveCollectionWorkOrderToComplete
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionWorkOrderToComplete
11
11
  *
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
14
- import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ declare type StepClassMap = {};
15
16
  /**
16
- * RabbitMQ message payload for MoveCollectionWorkOrderToComplete created events
17
+ * Link definition for connecting steps in MoveCollectionWorkOrderToComplete
18
+ */
19
+ export interface MoveCollectionWorkOrderToCompleteStepLink {
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 MoveCollectionWorkOrderToComplete
34
+ */
35
+ export interface MoveCollectionWorkOrderToCompleteStepDefinition {
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: MoveCollectionWorkOrderToCompleteStepLink[] | null;
44
+ }
45
+ /**
46
+ * Type-safe step keys for MoveCollectionWorkOrderToComplete
47
+ */
48
+ export declare const MoveCollectionWorkOrderToCompleteSteps: {
49
+ readonly step_1: "step_1";
50
+ };
51
+ export declare type MoveCollectionWorkOrderToCompleteStepKey = typeof MoveCollectionWorkOrderToCompleteSteps[keyof typeof MoveCollectionWorkOrderToCompleteSteps];
52
+ /**
53
+ * RabbitMQ message payload for MoveCollectionWorkOrderToComplete step flow events
17
54
  *
18
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.MoveCollectionWorkOrderToComplete
55
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionWorkOrderToComplete
19
56
  */
20
- export interface MoveCollectionWorkOrderToCompleteMessage extends OdinRecordCreatedEvent<MoveCollectionWorkOrderToCompleteDto, MoveCollectionWorkOrderToCompleteProperties> {
57
+ export interface MoveCollectionWorkOrderToCompleteMessage extends OdinRecordUpdatedEvent<MoveCollectionWorkOrderToCompleteDto, {}> {
21
58
  }
22
59
  /**
23
60
  * Properties for MoveCollectionWorkOrderToComplete action
@@ -28,36 +65,51 @@ export interface MoveCollectionWorkOrderToCompleteProperties {
28
65
  /**
29
66
  * MoveCollectionWorkOrderToComplete
30
67
  *
31
- * @actionType CREATE - Creates a new WorkOrder record
68
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
32
69
  * @module FieldServiceModule
33
70
  * @entity WorkOrder
34
71
  * @entityType COLLECTION (Collection)
35
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.MoveCollectionWorkOrderToComplete
72
+ * @targetStages CollectionPipelineStageComplete
73
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionWorkOrderToComplete
36
74
  * @permission schema.action.movecollectionworkordertocomplete.trigger
37
- * @category LIFECYCLE
38
75
  * @benchmark This action is tracked for performance benchmarks
39
- * @benchmarkTags completion, entity-type:collection, entity:workorder, field-operations, lifecycle, workorder, action-type:complete
40
76
  */
41
- export declare class MoveCollectionWorkOrderToCompleteDto extends OdinRecordCreateDto<MoveCollectionWorkOrderToCompleteProperties> {
77
+ export declare class MoveCollectionWorkOrderToCompleteDto extends OdinRecordUpdateDto<Record<string, any>> {
42
78
  /** Used by SDK generators to identify action type */
43
- static readonly ACTION_TYPE = "CREATE";
79
+ static readonly ACTION_TYPE = "UPDATE";
44
80
  static readonly ACTION_KEY = "MoveCollectionWorkOrderToComplete";
45
81
  static readonly MODULE_NAME = "FieldServiceModule";
46
82
  static readonly ENTITIES: string[];
47
83
  static readonly ENTITY_TYPE = "COLLECTION";
48
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.MoveCollectionWorkOrderToComplete";
84
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionWorkOrderToComplete";
85
+ static readonly SCHEMA_ACTION_ID = "1681dbd5-015f-4fc4-b009-d05f42fc05a0";
49
86
  static readonly PERMISSION = "schema.action.movecollectionworkordertocomplete.trigger";
50
- /** Step metadata - entity this action targets */
51
- static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
52
- static readonly STEP_SCHEMA_ID = "813cdda2-c52e-4ea7-b873-a7c5cd058c91";
53
- static readonly STEP_SCHEMA_ACTION_ID = "62a1061c-c41c-4876-9a30-ec1313e1194b";
54
- static readonly STEP_SCHEMA_TYPE_ID = "83804195-cbac-4926-9c87-8883ad613814";
55
- static readonly STEP_TYPE = "COLLECTION";
56
- static readonly AUTO_LINK_PARENT = true;
87
+ static readonly TARGET_STAGES: readonly ["CollectionPipelineStageComplete"];
88
+ static readonly IS_STAGE_TRANSITION = true;
89
+ static readonly IS_MULTI_STEP_FLOW = false;
90
+ static readonly HAS_STEP_LINKS = false;
91
+ /**
92
+ * Step definitions with linking metadata
93
+ * Used by SDK and backend for auto-linking after step execution
94
+ */
95
+ static readonly stepDefinitions: MoveCollectionWorkOrderToCompleteStepDefinition[];
96
+ /** Type-safe step key accessor */
97
+ static readonly Steps: {
98
+ readonly step_1: "step_1";
99
+ };
57
100
  readonly actionName: string;
58
101
  readonly schemaActionId: string;
59
102
  readonly entity: string;
60
- constructor(properties: MoveCollectionWorkOrderToCompleteProperties, options?: {
103
+ readonly stageKey: string;
104
+ constructor(record: OdinRecord<any> | {
105
+ id: string;
106
+ entity: string;
107
+ type?: string;
108
+ }, options?: {
61
109
  journeyId?: string;
62
110
  });
111
+ /** Step classes that can be used with this action */
112
+ static readonly stepClasses: readonly [];
113
+ steps: StepClassMap[(typeof MoveCollectionWorkOrderToCompleteDto.stepClasses)[number]][];
63
114
  }
115
+ export {};
@@ -8,52 +8,73 @@
8
8
  * @entity WorkOrder
9
9
  * @entityType COLLECTION
10
10
  * @actionKey MoveCollectionWorkOrderToComplete
11
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.MoveCollectionWorkOrderToComplete
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionWorkOrderToComplete
12
12
  *
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MoveCollectionWorkOrderToCompleteDto = void 0;
16
+ exports.MoveCollectionWorkOrderToCompleteDto = exports.MoveCollectionWorkOrderToCompleteSteps = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Type-safe step keys for MoveCollectionWorkOrderToComplete
20
+ */
21
+ exports.MoveCollectionWorkOrderToCompleteSteps = {
22
+ step_1: 'step_1',
23
+ };
18
24
  /**
19
25
  * MoveCollectionWorkOrderToComplete
20
26
  *
21
- * @actionType CREATE - Creates a new WorkOrder record
27
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
22
28
  * @module FieldServiceModule
23
29
  * @entity WorkOrder
24
30
  * @entityType COLLECTION (Collection)
25
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.MoveCollectionWorkOrderToComplete
31
+ * @targetStages CollectionPipelineStageComplete
32
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionWorkOrderToComplete
26
33
  * @permission schema.action.movecollectionworkordertocomplete.trigger
27
- * @category LIFECYCLE
28
34
  * @benchmark This action is tracked for performance benchmarks
29
- * @benchmarkTags completion, entity-type:collection, entity:workorder, field-operations, lifecycle, workorder, action-type:complete
30
35
  */
31
- class MoveCollectionWorkOrderToCompleteDto extends core_1.OdinRecordCreateDto {
32
- constructor(properties, options) {
36
+ class MoveCollectionWorkOrderToCompleteDto extends core_1.OdinRecordUpdateDto {
37
+ constructor(record, options) {
33
38
  super({
34
- entity: 'FieldServiceModule:WorkOrder',
35
- type: 'COLLECTION',
36
- properties,
39
+ id: record.id,
40
+ entity: record.entity,
41
+ type: record.type,
42
+ properties: {},
37
43
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
44
  });
39
45
  this.actionName = 'MoveCollectionWorkOrderToComplete';
40
- this.schemaActionId = '62a1061c-c41c-4876-9a30-ec1313e1194b';
46
+ this.schemaActionId = '1681dbd5-015f-4fc4-b009-d05f42fc05a0';
41
47
  this.entity = 'FieldServiceModule:WorkOrder';
48
+ this.stageKey = 'CollectionPipelineStageComplete';
42
49
  }
43
50
  }
44
51
  exports.MoveCollectionWorkOrderToCompleteDto = MoveCollectionWorkOrderToCompleteDto;
45
52
  /** Used by SDK generators to identify action type */
46
- MoveCollectionWorkOrderToCompleteDto.ACTION_TYPE = 'CREATE';
53
+ MoveCollectionWorkOrderToCompleteDto.ACTION_TYPE = 'UPDATE';
47
54
  MoveCollectionWorkOrderToCompleteDto.ACTION_KEY = 'MoveCollectionWorkOrderToComplete';
48
55
  MoveCollectionWorkOrderToCompleteDto.MODULE_NAME = 'FieldServiceModule';
49
56
  MoveCollectionWorkOrderToCompleteDto.ENTITIES = ['WorkOrder'];
50
57
  MoveCollectionWorkOrderToCompleteDto.ENTITY_TYPE = 'COLLECTION';
51
- MoveCollectionWorkOrderToCompleteDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.MoveCollectionWorkOrderToComplete';
58
+ MoveCollectionWorkOrderToCompleteDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionWorkOrderToComplete';
59
+ MoveCollectionWorkOrderToCompleteDto.SCHEMA_ACTION_ID = '1681dbd5-015f-4fc4-b009-d05f42fc05a0';
52
60
  MoveCollectionWorkOrderToCompleteDto.PERMISSION = 'schema.action.movecollectionworkordertocomplete.trigger';
53
- /** Step metadata - entity this action targets */
54
- MoveCollectionWorkOrderToCompleteDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
55
- MoveCollectionWorkOrderToCompleteDto.STEP_SCHEMA_ID = '813cdda2-c52e-4ea7-b873-a7c5cd058c91';
56
- MoveCollectionWorkOrderToCompleteDto.STEP_SCHEMA_ACTION_ID = '62a1061c-c41c-4876-9a30-ec1313e1194b';
57
- MoveCollectionWorkOrderToCompleteDto.STEP_SCHEMA_TYPE_ID = '83804195-cbac-4926-9c87-8883ad613814';
58
- MoveCollectionWorkOrderToCompleteDto.STEP_TYPE = 'COLLECTION';
59
- MoveCollectionWorkOrderToCompleteDto.AUTO_LINK_PARENT = true;
61
+ MoveCollectionWorkOrderToCompleteDto.TARGET_STAGES = ['CollectionPipelineStageComplete'];
62
+ MoveCollectionWorkOrderToCompleteDto.IS_STAGE_TRANSITION = true;
63
+ MoveCollectionWorkOrderToCompleteDto.IS_MULTI_STEP_FLOW = false;
64
+ MoveCollectionWorkOrderToCompleteDto.HAS_STEP_LINKS = false;
65
+ /**
66
+ * Step definitions with linking metadata
67
+ * Used by SDK and backend for auto-linking after step execution
68
+ */
69
+ MoveCollectionWorkOrderToCompleteDto.stepDefinitions = [
70
+ {
71
+ stepKey: 'step_1',
72
+ dtoClass: 'unknown',
73
+ entity: 'unknown',
74
+ linksTo: null
75
+ }
76
+ ];
77
+ /** Type-safe step key accessor */
78
+ MoveCollectionWorkOrderToCompleteDto.Steps = exports.MoveCollectionWorkOrderToCompleteSteps;
79
+ /** Step classes that can be used with this action */
80
+ MoveCollectionWorkOrderToCompleteDto.stepClasses = [];
@@ -0,0 +1,91 @@
1
+ /**
2
+ * UpdatePgFileAllocation Action DTO
3
+ *
4
+ * Update PG File Allocation
5
+ *
6
+ * @module BillingModule
7
+ * @entity PgFileAllocation
8
+ * @entityType DEFAULT
9
+ * @actionKey UpdatePgFileAllocation
10
+ * @event k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation
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 UpdatePgFileAllocation updated events
17
+ *
18
+ * @event k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation
19
+ */
20
+ export interface UpdatePgFileAllocationMessage extends OdinRecordUpdatedEvent<UpdatePgFileAllocationDto, UpdatePgFileAllocationProperties> {
21
+ }
22
+ /**
23
+ * Properties for UpdatePgFileAllocation action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 3
27
+ */
28
+ export interface UpdatePgFileAllocationProperties {
29
+ /**
30
+ * SubmissionFileLineNumber
31
+ *
32
+ * Submission File Line Number
33
+ * @type {NUMBER}
34
+ */
35
+ SubmissionFileLineNumber?: number | null;
36
+ /**
37
+ * PaymentMethod
38
+ *
39
+ * PaymentMethod
40
+ * @type {LOOKUP}
41
+ */
42
+ PaymentMethod?: string | null;
43
+ /**
44
+ * Transaction
45
+ *
46
+ * Transaction
47
+ * @type {LOOKUP}
48
+ */
49
+ Transaction?: string | null;
50
+ }
51
+ /**
52
+ * UpdatePgFileAllocation
53
+ *
54
+ * Update PG File Allocation
55
+ *
56
+ * @actionType UPDATE - Updates an existing PgFileAllocation record
57
+ * @module BillingModule
58
+ * @entity PgFileAllocation
59
+ * @entityType DEFAULT (Default)
60
+ * @event k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation
61
+ * @permission schema.action.updatepgfileallocation.trigger
62
+ * @benchmark This action is tracked for performance benchmarks
63
+ */
64
+ export declare class UpdatePgFileAllocationDto extends OdinRecordUpdateDto<UpdatePgFileAllocationProperties> {
65
+ /** Used by SDK generators to identify action type */
66
+ static readonly ACTION_TYPE = "UPDATE";
67
+ static readonly ACTION_KEY = "UpdatePgFileAllocation";
68
+ static readonly MODULE_NAME = "BillingModule";
69
+ static readonly ENTITIES: string[];
70
+ static readonly ENTITY_TYPE = "DEFAULT";
71
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation";
72
+ static readonly PERMISSION = "schema.action.updatepgfileallocation.trigger";
73
+ /** Step metadata - entity this action targets */
74
+ static readonly STEP_ENTITY = "BillingModule:PgFileAllocation";
75
+ static readonly STEP_SCHEMA_ID = "8786590f-8c45-48ab-b838-12389cbb8dae";
76
+ static readonly STEP_SCHEMA_ACTION_ID = "99f3db8d-5c5b-413a-9fd7-868cd0b2e181";
77
+ static readonly STEP_SCHEMA_TYPE_ID = "f9491193-33b8-4d84-bf78-839c577fb5f0";
78
+ static readonly STEP_TYPE = "DEFAULT";
79
+ static readonly AUTO_LINK_PARENT = false;
80
+ readonly actionName: string;
81
+ readonly schemaActionId: string;
82
+ readonly entity: string;
83
+ constructor(record: OdinRecord<any> | {
84
+ id: string;
85
+ entity: string;
86
+ type?: string;
87
+ }, properties: UpdatePgFileAllocationProperties, options?: {
88
+ journeyId?: string;
89
+ stageKey?: string;
90
+ });
91
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * UpdatePgFileAllocation Action DTO
4
+ *
5
+ * Update PG File Allocation
6
+ *
7
+ * @module BillingModule
8
+ * @entity PgFileAllocation
9
+ * @entityType DEFAULT
10
+ * @actionKey UpdatePgFileAllocation
11
+ * @event k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdatePgFileAllocationDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * UpdatePgFileAllocation
20
+ *
21
+ * Update PG File Allocation
22
+ *
23
+ * @actionType UPDATE - Updates an existing PgFileAllocation record
24
+ * @module BillingModule
25
+ * @entity PgFileAllocation
26
+ * @entityType DEFAULT (Default)
27
+ * @event k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation
28
+ * @permission schema.action.updatepgfileallocation.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class UpdatePgFileAllocationDto 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 = 'UpdatePgFileAllocation';
42
+ this.schemaActionId = '99f3db8d-5c5b-413a-9fd7-868cd0b2e181';
43
+ this.entity = 'BillingModule:PgFileAllocation';
44
+ }
45
+ }
46
+ exports.UpdatePgFileAllocationDto = UpdatePgFileAllocationDto;
47
+ /** Used by SDK generators to identify action type */
48
+ UpdatePgFileAllocationDto.ACTION_TYPE = 'UPDATE';
49
+ UpdatePgFileAllocationDto.ACTION_KEY = 'UpdatePgFileAllocation';
50
+ UpdatePgFileAllocationDto.MODULE_NAME = 'BillingModule';
51
+ UpdatePgFileAllocationDto.ENTITIES = ['PgFileAllocation'];
52
+ UpdatePgFileAllocationDto.ENTITY_TYPE = 'DEFAULT';
53
+ UpdatePgFileAllocationDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation';
54
+ UpdatePgFileAllocationDto.PERMISSION = 'schema.action.updatepgfileallocation.trigger';
55
+ /** Step metadata - entity this action targets */
56
+ UpdatePgFileAllocationDto.STEP_ENTITY = 'BillingModule:PgFileAllocation';
57
+ UpdatePgFileAllocationDto.STEP_SCHEMA_ID = '8786590f-8c45-48ab-b838-12389cbb8dae';
58
+ UpdatePgFileAllocationDto.STEP_SCHEMA_ACTION_ID = '99f3db8d-5c5b-413a-9fd7-868cd0b2e181';
59
+ UpdatePgFileAllocationDto.STEP_SCHEMA_TYPE_ID = 'f9491193-33b8-4d84-bf78-839c577fb5f0';
60
+ UpdatePgFileAllocationDto.STEP_TYPE = 'DEFAULT';
61
+ UpdatePgFileAllocationDto.AUTO_LINK_PARENT = false;
@@ -22,7 +22,7 @@ export interface UpdateTeamMessage extends OdinRecordUpdatedEvent<UpdateTeamDto,
22
22
  * Properties for UpdateTeam action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 8
25
+ * @property Optional fields: 10
26
26
  */
27
27
  export interface UpdateTeamProperties {
28
28
  /**
@@ -81,6 +81,20 @@ export interface UpdateTeamProperties {
81
81
  * @type {ENUM}
82
82
  */
83
83
  SocialAccess?: string | null;
84
+ /**
85
+ * Works Cases
86
+ *
87
+ * Available team for allocating cases
88
+ * @type {ENUM}
89
+ */
90
+ WorksCases?: string | null;
91
+ /**
92
+ * Can escalate to
93
+ *
94
+ * Can escalate to
95
+ * @type {ENUM}
96
+ */
97
+ CanEscalateTo?: string | null;
84
98
  }
85
99
  /**
86
100
  * UpdateTeam
@@ -0,0 +1,45 @@
1
+ import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
2
+ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
3
+ import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
4
+ import { BrskEntityMigrationErrorProperties } from '../entities-v2/BrskEntityMigrationError';
5
+ /**
6
+ * @deprecated Use OdinApiClient.
7
+ *
8
+ * Migration:
9
+ * - Old: new BrskEntityMigrationErrorApi(authParams).get(id)
10
+ * - New: new odin.brskentitymigrationerror.get(id)
11
+ *
12
+ * The new OdinApiClient returns typed record wrappers with action methods.
13
+ */
14
+ export declare class BrskEntityMigrationErrorApi extends ApiProvider {
15
+ protected readonly authToken?: string;
16
+ private readonly moduleName;
17
+ private readonly entityName;
18
+ private sourceRecord;
19
+ constructor(authParams?: OauthParams, authToken?: string);
20
+ setRecord(sourceRecord: any): void;
21
+ schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
22
+ search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<BrskEntityMigrationErrorProperties>>>;
23
+ searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<BrskEntityMigrationErrorProperties>>>;
24
+ reIndex(body: {
25
+ id: string;
26
+ schemaId: string;
27
+ }[]): Promise<any>;
28
+ get(brskEntityMigrationErrorId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<BrskEntityMigrationErrorProperties>>;
29
+ getMany(brskEntityMigrationErrorIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<BrskEntityMigrationErrorProperties>[]>;
30
+ upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
31
+ upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
32
+ update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
33
+ updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
34
+ delete(brskEntityMigrationErrorId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
35
+ deleteMany(brskEntityMigrationErrorIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
36
+ restore(brskEntityMigrationErrorIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
37
+ applyAction(dto: any): Promise<any[]>;
38
+ bulkApplyActions(dtos: any[]): Promise<any[]>;
39
+ getVersions(): Promise<{
40
+ [key: string]: Record<string, any>;
41
+ }>;
42
+ getRevisionTimeline(): Promise<{
43
+ [key: string]: Record<string, any>[];
44
+ }>;
45
+ }
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BrskEntityMigrationErrorApi = void 0;
13
+ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
14
+ /**
15
+ * @deprecated Use OdinApiClient.
16
+ *
17
+ * Migration:
18
+ * - Old: new BrskEntityMigrationErrorApi(authParams).get(id)
19
+ * - New: new odin.brskentitymigrationerror.get(id)
20
+ *
21
+ * The new OdinApiClient returns typed record wrappers with action methods.
22
+ */
23
+ class BrskEntityMigrationErrorApi extends api_provider_1.ApiProvider {
24
+ // ============================================
25
+ // PRIVATE BACKING FIELDS (Lazy Loading)
26
+ // ============================================
27
+ constructor(authParams, authToken) {
28
+ super(authParams, authToken);
29
+ this.authToken = authToken;
30
+ this.moduleName = 'AuditModule';
31
+ this.entityName = 'BrskEntityMigrationError';
32
+ // Link managers are lazy-loaded on first access
33
+ }
34
+ // ============================================
35
+ // LAZY-LOADED LINK MANAGERS (Public Getters)
36
+ // ============================================
37
+ // Usage remains identical: api.address.list(recordId)
38
+ // ============================================
39
+ // STANDARD METHODS (Unchanged API)
40
+ // ============================================
41
+ setRecord(sourceRecord) {
42
+ this.sourceRecord = sourceRecord;
43
+ }
44
+ schema() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield this.getSchema(this.moduleName, this.entityName);
47
+ });
48
+ }
49
+ // Use this function when you want to search and handle all pagination on your own
50
+ search(params) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return yield this._searchRecords(this.moduleName, this.entityName, params);
53
+ });
54
+ }
55
+ // Use this function when you want paginating through the results to be handled
56
+ searchAndPaginate(params) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
59
+ });
60
+ }
61
+ // Use this function to re-index records in elastic search
62
+ reIndex(body) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ return yield this._reIndexRecords(body);
65
+ });
66
+ }
67
+ // Use this function when you want to return a single record
68
+ get(brskEntityMigrationErrorId) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, brskEntityMigrationErrorId);
71
+ if (res)
72
+ this.setRecord(res);
73
+ return res;
74
+ });
75
+ }
76
+ // Use this function when you want to return many records by primaryKeys
77
+ getMany(brskEntityMigrationErrorIds) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, brskEntityMigrationErrorIds);
80
+ });
81
+ }
82
+ // Use this function when you want to upsert one record
83
+ upsert(upsertDto) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
86
+ return res[0];
87
+ });
88
+ }
89
+ // Use this function when you want to upsert many records
90
+ upsertMany(upsertDtos) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
93
+ });
94
+ }
95
+ // Use this function when you want to update one record
96
+ update(updateDto) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
99
+ return res[0];
100
+ });
101
+ }
102
+ // Use this function when you want to update many records
103
+ updateMany(updateDtos) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ return yield this._update(this.moduleName, this.entityName, updateDtos);
106
+ });
107
+ }
108
+ // Use this function when you want to delete one record
109
+ delete(brskEntityMigrationErrorId) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ return yield this._delete(this.moduleName, this.entityName, [brskEntityMigrationErrorId]);
112
+ });
113
+ }
114
+ // Use this function when you want to delete many records
115
+ deleteMany(brskEntityMigrationErrorIds) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ return yield this._delete(this.moduleName, this.entityName, brskEntityMigrationErrorIds);
118
+ });
119
+ }
120
+ // Use this function when you want to restore one or many records
121
+ restore(brskEntityMigrationErrorIds) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ return yield this._restore(this.moduleName, this.entityName, brskEntityMigrationErrorIds);
124
+ });
125
+ }
126
+ // Use this function when you want to apply a single action
127
+ applyAction(dto) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ return yield this._applyAction(this.moduleName, this.entityName, dto);
130
+ });
131
+ }
132
+ // Use this function when you want to bulk apply actions
133
+ bulkApplyActions(dtos) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ return yield this._bulkApplyActions(this.moduleName, this.entityName, dtos);
136
+ });
137
+ }
138
+ // Use this function when you want to return the versions for a single record
139
+ getVersions() {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
142
+ });
143
+ }
144
+ // Use this function when you want to return the change history for a single record
145
+ getRevisionTimeline() {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
148
+ });
149
+ }
150
+ }
151
+ exports.BrskEntityMigrationErrorApi = BrskEntityMigrationErrorApi;
@@ -22,12 +22,14 @@ export declare class ReferralApi extends ApiProvider {
22
22
  private _affiliatecode?;
23
23
  private _campaign?;
24
24
  private _order?;
25
+ private _reward?;
25
26
  constructor(authParams?: OauthParams, authToken?: string);
26
27
  get referrerreferrals(): ApiRecordLinkManager;
27
28
  get refereereferrals(): ApiRecordLinkManager;
28
29
  get affiliatecode(): ApiRecordLinkManager;
29
30
  get campaign(): ApiRecordLinkManager;
30
31
  get order(): ApiRecordLinkManager;
32
+ get reward(): ApiRecordLinkManager;
31
33
  setRecord(sourceRecord: any): void;
32
34
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
33
35
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ReferralProperties>>>;
@@ -63,6 +63,12 @@ class ReferralApi extends api_provider_1.ApiProvider {
63
63
  }
64
64
  return this._order;
65
65
  }
66
+ get reward() {
67
+ if (!this._reward) {
68
+ this._reward = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Referral', 'CrmModule:Reward', 'OrderReferralCashbackReward');
69
+ }
70
+ return this._reward;
71
+ }
66
72
  // ============================================
67
73
  // STANDARD METHODS (Unchanged API)
68
74
  // ============================================
@@ -21,11 +21,13 @@ export declare class RewardApi extends ApiProvider {
21
21
  private _contact?;
22
22
  private _affiliatecode?;
23
23
  private _paymentmethodrefund?;
24
+ private _referral?;
24
25
  constructor(authParams?: OauthParams, authToken?: string);
25
26
  get campaign(): ApiRecordLinkManager;
26
27
  get contact(): ApiRecordLinkManager;
27
28
  get affiliatecode(): ApiRecordLinkManager;
28
29
  get paymentmethodrefund(): ApiRecordLinkManager;
30
+ get referral(): ApiRecordLinkManager;
29
31
  setRecord(sourceRecord: any): void;
30
32
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
31
33
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<RewardProperties>>>;
@@ -57,6 +57,12 @@ class RewardApi extends api_provider_1.ApiProvider {
57
57
  }
58
58
  return this._paymentmethodrefund;
59
59
  }
60
+ get referral() {
61
+ if (!this._referral) {
62
+ this._referral = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Reward', 'CrmModule:Referral', 'OrderReferralCashbackReward');
63
+ }
64
+ return this._referral;
65
+ }
60
66
  // ============================================
61
67
  // STANDARD METHODS (Unchanged API)
62
68
  // ============================================