@d19n/youfibre-odin-sdk 2.0.2-beta.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 (38) hide show
  1. package/README.md +13 -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/CreateBrskMigrationErrorDto.d.ts +100 -0
  13. package/dist/actions-v2/CreateBrskMigrationErrorDto.js +52 -0
  14. package/dist/actions-v2/MoveCollectionWorkOrderToCompleteDto.d.ts +72 -20
  15. package/dist/actions-v2/MoveCollectionWorkOrderToCompleteDto.js +42 -21
  16. package/dist/actions-v2/UpdatePgFileAllocationDto.d.ts +91 -0
  17. package/dist/actions-v2/UpdatePgFileAllocationDto.js +61 -0
  18. package/dist/api-sdk-v2/BrskEntityMigrationErrorApi.d.ts +45 -0
  19. package/dist/api-sdk-v2/BrskEntityMigrationErrorApi.js +151 -0
  20. package/dist/db-accessors-v2/BrskEntityMigrationErrorDbAccessor.d.ts +146 -0
  21. package/dist/db-accessors-v2/BrskEntityMigrationErrorDbAccessor.js +224 -0
  22. package/dist/db-accessors-v2/index.d.ts +1 -0
  23. package/dist/db-accessors-v2/index.js +5 -3
  24. package/dist/db-sdk-v2/BrskEntityMigrationErrorDb.d.ts +117 -0
  25. package/dist/db-sdk-v2/BrskEntityMigrationErrorDb.js +200 -0
  26. package/dist/entities-v2/BrskEntityMigrationError.d.ts +107 -0
  27. package/dist/entities-v2/BrskEntityMigrationError.js +75 -0
  28. package/dist/entities-v2/Config.d.ts +8 -8
  29. package/dist/entities-v2/Config.js +4 -4
  30. package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +184 -0
  31. package/dist/records-v2/BrskEntityMigrationErrorRecord.js +243 -0
  32. package/dist/records-v2/PgFileAllocationRecord.d.ts +28 -0
  33. package/dist/records-v2/PgFileAllocationRecord.js +37 -0
  34. package/dist/records-v2/WorkOrderRecord.d.ts +25 -29
  35. package/dist/records-v2/WorkOrderRecord.js +29 -36
  36. package/dist/records-v2/index.d.ts +1 -0
  37. package/dist/records-v2/index.js +7 -4
  38. package/package.json +1 -1
@@ -0,0 +1,200 @@
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.BrskEntityMigrationErrorDb = void 0;
13
+ const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
14
+ /**
15
+ * @deprecated Use OdinDbClient.
16
+ *
17
+ * Migration:
18
+ * - Old: new BrskEntityMigrationErrorApi(authParams).get(id)
19
+ * - New: new odin.brskentitymigrationerror.get(id)
20
+ *
21
+ * The new OdinDbClient returns typed record wrappers with action methods.
22
+ *
23
+ * Supports separate query options and provider options:
24
+ * - Constructor level: new BrskEntityMigrationErrorDb(principal, dbService, { omitPermissionsCheck: true })
25
+ * - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
26
+ */
27
+ class BrskEntityMigrationErrorDb extends db_provider_1.DbProvider {
28
+ // ============================================
29
+ // PRIVATE BACKING FIELDS (Lazy Loading)
30
+ // ============================================
31
+ constructor(principal, dbService, defaultOptions) {
32
+ super(principal, dbService, defaultOptions);
33
+ this.moduleName = 'AuditModule';
34
+ this.entityName = 'BrskEntityMigrationError';
35
+ this.principal = principal;
36
+ this.dbService = dbService;
37
+ // Link managers are lazy-loaded on first access
38
+ }
39
+ // ============================================
40
+ // LAZY-LOADED LINK MANAGERS (Public Getters)
41
+ // ============================================
42
+ // Usage remains identical: db.address.list(recordId)
43
+ // ============================================
44
+ // STANDARD METHODS
45
+ // ============================================
46
+ // Methods support separate query options and provider options for clean API
47
+ setRecord(sourceRecord) {
48
+ this.sourceRecord = sourceRecord;
49
+ }
50
+ /**
51
+ * Search records with manual pagination control
52
+ * @param params - Search parameters
53
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
54
+ */
55
+ searchRecords(params, providerOptions) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ return yield this._searchRecords(this.moduleName, this.entityName, params, providerOptions);
58
+ });
59
+ }
60
+ /**
61
+ * Search all records with automatic pagination
62
+ * @param params - Search parameters
63
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
64
+ */
65
+ searchAllRecordsAndPaginate(params, providerOptions) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params, 0, providerOptions);
68
+ });
69
+ }
70
+ /**
71
+ * Get a single record by primary key
72
+ * @param brskEntityMigrationErrorId - Record ID
73
+ * @param queryOptions - Query options (WHAT: entities to include)
74
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
75
+ *
76
+ * @example
77
+ * // Simple get
78
+ * const record = await db.getByPrimaryKey(id);
79
+ *
80
+ * // With related entities
81
+ * const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
82
+ *
83
+ * // With permissions bypass
84
+ * const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
85
+ *
86
+ * // Both options
87
+ * const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
88
+ */
89
+ getByPrimaryKey(brskEntityMigrationErrorId, queryOptions, providerOptions) {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, brskEntityMigrationErrorId, queryOptions, providerOptions);
92
+ if (res)
93
+ this.setRecord(res);
94
+ return res;
95
+ });
96
+ }
97
+ /**
98
+ * Get multiple records by primary keys
99
+ * @param brskEntityMigrationErrorIds - Array of record IDs
100
+ * @param queryOptions - Query options (WHAT: entities to include)
101
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
102
+ */
103
+ getManyByPrimaryKey(brskEntityMigrationErrorIds, queryOptions, providerOptions) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, brskEntityMigrationErrorIds, queryOptions, providerOptions);
106
+ });
107
+ }
108
+ /**
109
+ * Upsert a single record
110
+ * @param upsertDto - Record to upsert
111
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
112
+ */
113
+ upsert(upsertDto, providerOptions) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto], providerOptions);
116
+ return res[0];
117
+ });
118
+ }
119
+ /**
120
+ * Upsert multiple records
121
+ * @param upsertDtos - Records to upsert
122
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
123
+ */
124
+ upsertMany(upsertDtos, providerOptions) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos, providerOptions);
127
+ });
128
+ }
129
+ /**
130
+ * Update a single record
131
+ * @param updateDto - Record to update
132
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
133
+ */
134
+ update(updateDto, providerOptions) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto], providerOptions);
137
+ return res[0];
138
+ });
139
+ }
140
+ /**
141
+ * Update multiple records
142
+ * @param updateDtos - Records to update
143
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
144
+ */
145
+ updateMany(updateDtos, providerOptions) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ return yield this._update(this.moduleName, this.entityName, updateDtos, providerOptions);
148
+ });
149
+ }
150
+ /**
151
+ * Delete one or many records
152
+ * @param brskEntityMigrationErrorIds - Record IDs to delete
153
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
154
+ */
155
+ delete(brskEntityMigrationErrorIds, providerOptions) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ return yield this._delete(this.moduleName, this.entityName, brskEntityMigrationErrorIds, providerOptions);
158
+ });
159
+ }
160
+ /**
161
+ * Restore one or many deleted records
162
+ * @param brskEntityMigrationErrorIds - Record IDs to restore
163
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
164
+ */
165
+ restore(brskEntityMigrationErrorIds, providerOptions) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ return yield this._restore(this.moduleName, this.entityName, brskEntityMigrationErrorIds, providerOptions);
168
+ });
169
+ }
170
+ /**
171
+ * Apply an action to a record
172
+ * @param actionName - The action key
173
+ * @param dto - The action DTO
174
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
175
+ */
176
+ applyAction(actionName, dto, providerOptions) {
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ return yield this._applyAction(this.moduleName, this.entityName, dto, providerOptions);
179
+ });
180
+ }
181
+ /**
182
+ * Get version history for the current source record
183
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
184
+ */
185
+ getVersions(providerOptions) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
188
+ });
189
+ }
190
+ /**
191
+ * Get revision timeline for the current source record
192
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
193
+ */
194
+ getRevisionTimeline(providerOptions) {
195
+ return __awaiter(this, void 0, void 0, function* () {
196
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
197
+ });
198
+ }
199
+ }
200
+ exports.BrskEntityMigrationErrorDb = BrskEntityMigrationErrorDb;
@@ -0,0 +1,107 @@
1
+ /**
2
+ * BrskEntityMigrationError Entity Definition
3
+ *
4
+ * Stores Brsk Migration Entity Errors
5
+ *
6
+ * @module AuditModule
7
+ * @entity BrskEntityMigrationError
8
+ * @schemaId 69628645-fa51-46c7-bca4-5b2439eab892
9
+ *
10
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
11
+ * Generated from Odin schema definition
12
+ */
13
+ import { OdinRecord } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * Available types for BrskEntityMigrationError records
16
+ */
17
+ export declare enum BrskEntityMigrationErrorEntityTypes {
18
+ /** This is the default record type */
19
+ DEFAULT = "DEFAULT"
20
+ }
21
+ /**
22
+ * Property keys for BrskEntityMigrationError
23
+ * Use these constants instead of string literals for type safety
24
+ */
25
+ export declare enum BrskEntityMigrationErrorPropertyKeys {
26
+ /** Brsk Reference */
27
+ BrskReference = "BrskReference",
28
+ /** Json object */
29
+ JsonObject = "JSONObject",
30
+ /** Sync Script Name */
31
+ SyncScript = "SyncScript",
32
+ /** Resolved */
33
+ Resolved = "Resolved",
34
+ /** Error Message */
35
+ ErrorMessage = "ErrorMessage",
36
+ /** Target Entity */
37
+ TargetEntity = "TargetEntity"
38
+ }
39
+ /**
40
+ * Properties for BrskEntityMigrationError records
41
+ *
42
+ * @see AuditModule:BrskEntityMigrationError
43
+ */
44
+ export interface BrskEntityMigrationErrorProperties {
45
+ /** Brsk Reference
46
+ *
47
+ * @type {TEXT}
48
+ */
49
+ BrskReference: string;
50
+ /** Json object
51
+ *
52
+ * @type {JSON}
53
+ */
54
+ JsonObject: string;
55
+ /** Sync Script Name
56
+ *
57
+ * @type {TEXT}
58
+ */
59
+ SyncScript: string;
60
+ /** Resolved
61
+ *
62
+ * @type {BOOLEAN}
63
+ */
64
+ Resolved: boolean;
65
+ /** Error Message
66
+ *
67
+ * @type {TEXT}
68
+ */
69
+ ErrorMessage: string;
70
+ /** Target Entity
71
+ *
72
+ * @type {TEXT}
73
+ */
74
+ TargetEntity: string;
75
+ }
76
+ /**
77
+ * BrskEntityMigrationError entity from AuditModule
78
+ *
79
+ * Stores Brsk Migration Entity Errors
80
+ *
81
+ * @module AuditModule
82
+ * @entity BrskEntityMigrationError
83
+ * @schemaId 69628645-fa51-46c7-bca4-5b2439eab892
84
+ * @capabilities searchable, updateable, undeletable, triggerable
85
+ */
86
+ export declare class BrskEntityMigrationError extends OdinRecord<BrskEntityMigrationErrorProperties> {
87
+ entity: 'AuditModule:BrskEntityMigrationError';
88
+ type: BrskEntityMigrationErrorEntityTypes;
89
+ schemaId: '69628645-fa51-46c7-bca4-5b2439eab892';
90
+ properties: BrskEntityMigrationErrorProperties;
91
+ }
92
+ /**
93
+ * RabbitMQ routing keys for BrskEntityMigrationError events
94
+ */
95
+ export declare const ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_CREATED = "AuditModule.BrskEntityMigrationError.SubDbRecordCreated";
96
+ export declare const ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_UPDATED = "AuditModule.BrskEntityMigrationError.SubDbRecordUpdated";
97
+ export declare const ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DELETED = "AuditModule.BrskEntityMigrationError.SubDbRecordDeleted";
98
+ /**
99
+ * Type-specific routing keys for BrskEntityMigrationError events
100
+ * Subscribe to these for events on specific entity types only
101
+ */
102
+ /** This is the default record type created */
103
+ export declare const ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_CREATED = "AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordCreated";
104
+ /** This is the default record type updated */
105
+ export declare const ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_UPDATED = "AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordUpdated";
106
+ /** This is the default record type deleted */
107
+ export declare const ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_DELETED = "AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordDeleted";
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /**
3
+ * BrskEntityMigrationError Entity Definition
4
+ *
5
+ * Stores Brsk Migration Entity Errors
6
+ *
7
+ * @module AuditModule
8
+ * @entity BrskEntityMigrationError
9
+ * @schemaId 69628645-fa51-46c7-bca4-5b2439eab892
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ * Generated from Odin schema definition
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_DELETED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_UPDATED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_CREATED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DELETED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_UPDATED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_CREATED = exports.BrskEntityMigrationError = exports.BrskEntityMigrationErrorPropertyKeys = exports.BrskEntityMigrationErrorEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for BrskEntityMigrationError records
19
+ */
20
+ var BrskEntityMigrationErrorEntityTypes;
21
+ (function (BrskEntityMigrationErrorEntityTypes) {
22
+ /** This is the default record type */
23
+ BrskEntityMigrationErrorEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(BrskEntityMigrationErrorEntityTypes = exports.BrskEntityMigrationErrorEntityTypes || (exports.BrskEntityMigrationErrorEntityTypes = {}));
25
+ /**
26
+ * Property keys for BrskEntityMigrationError
27
+ * Use these constants instead of string literals for type safety
28
+ */
29
+ var BrskEntityMigrationErrorPropertyKeys;
30
+ (function (BrskEntityMigrationErrorPropertyKeys) {
31
+ /** Brsk Reference */
32
+ BrskEntityMigrationErrorPropertyKeys["BrskReference"] = "BrskReference";
33
+ /** Json object */
34
+ BrskEntityMigrationErrorPropertyKeys["JsonObject"] = "JSONObject";
35
+ /** Sync Script Name */
36
+ BrskEntityMigrationErrorPropertyKeys["SyncScript"] = "SyncScript";
37
+ /** Resolved */
38
+ BrskEntityMigrationErrorPropertyKeys["Resolved"] = "Resolved";
39
+ /** Error Message */
40
+ BrskEntityMigrationErrorPropertyKeys["ErrorMessage"] = "ErrorMessage";
41
+ /** Target Entity */
42
+ BrskEntityMigrationErrorPropertyKeys["TargetEntity"] = "TargetEntity";
43
+ })(BrskEntityMigrationErrorPropertyKeys = exports.BrskEntityMigrationErrorPropertyKeys || (exports.BrskEntityMigrationErrorPropertyKeys = {}));
44
+ /**
45
+ * BrskEntityMigrationError entity from AuditModule
46
+ *
47
+ * Stores Brsk Migration Entity Errors
48
+ *
49
+ * @module AuditModule
50
+ * @entity BrskEntityMigrationError
51
+ * @schemaId 69628645-fa51-46c7-bca4-5b2439eab892
52
+ * @capabilities searchable, updateable, undeletable, triggerable
53
+ */
54
+ class BrskEntityMigrationError extends core_1.OdinRecord {
55
+ }
56
+ exports.BrskEntityMigrationError = BrskEntityMigrationError;
57
+ // ============================================
58
+ // RABBITMQ EVENT ROUTING KEYS
59
+ // ============================================
60
+ /**
61
+ * RabbitMQ routing keys for BrskEntityMigrationError events
62
+ */
63
+ exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_CREATED = 'AuditModule.BrskEntityMigrationError.SubDbRecordCreated';
64
+ exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_UPDATED = 'AuditModule.BrskEntityMigrationError.SubDbRecordUpdated';
65
+ exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DELETED = 'AuditModule.BrskEntityMigrationError.SubDbRecordDeleted';
66
+ /**
67
+ * Type-specific routing keys for BrskEntityMigrationError events
68
+ * Subscribe to these for events on specific entity types only
69
+ */
70
+ /** This is the default record type created */
71
+ exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_CREATED = 'AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordCreated';
72
+ /** This is the default record type updated */
73
+ exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_UPDATED = 'AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordUpdated';
74
+ /** This is the default record type deleted */
75
+ exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_DELETED = 'AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordDeleted';
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
23
23
  * Use these constants instead of string literals for type safety
24
24
  */
25
25
  export declare enum ConfigPropertyKeys {
26
- /** the name of the app this config relates to (Platform - Config) */
27
- AppName = "AppName",
26
+ /** Data field for Config records. Used by Platform team. */
27
+ Test = "Test",
28
28
  /** object of { key: value } mappings (Platform - Config) */
29
29
  Mappings = "Mappings",
30
- /** Data field for Config records. Used by Platform team. */
31
- Test = "Test"
30
+ /** the name of the app this config relates to (Platform - Config) */
31
+ AppName = "AppName"
32
32
  }
33
33
  /**
34
34
  * Properties for Config records
@@ -36,21 +36,21 @@ export declare enum ConfigPropertyKeys {
36
36
  * @see SchemaModule:Config
37
37
  */
38
38
  export interface ConfigProperties {
39
- /** the name of the app this config relates to (Platform - Config)
39
+ /** Data field for Config records. Used by Platform team.
40
40
  *
41
41
  * @type {TEXT}
42
42
  */
43
- AppName: string;
43
+ Test: string;
44
44
  /** object of { key: value } mappings (Platform - Config)
45
45
  *
46
46
  * @type {JSON}
47
47
  */
48
48
  Mappings: string;
49
- /** Data field for Config records. Used by Platform team.
49
+ /** the name of the app this config relates to (Platform - Config)
50
50
  *
51
51
  * @type {TEXT}
52
52
  */
53
- Test: string;
53
+ AppName: string;
54
54
  }
55
55
  /**
56
56
  * Config entity from SchemaModule
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
28
28
  */
29
29
  var ConfigPropertyKeys;
30
30
  (function (ConfigPropertyKeys) {
31
- /** the name of the app this config relates to (Platform - Config) */
32
- ConfigPropertyKeys["AppName"] = "AppName";
33
- /** object of { key: value } mappings (Platform - Config) */
34
- ConfigPropertyKeys["Mappings"] = "Mappings";
35
31
  /** Data field for Config records. Used by Platform team. */
36
32
  ConfigPropertyKeys["Test"] = "Test";
33
+ /** object of { key: value } mappings (Platform - Config) */
34
+ ConfigPropertyKeys["Mappings"] = "Mappings";
35
+ /** the name of the app this config relates to (Platform - Config) */
36
+ ConfigPropertyKeys["AppName"] = "AppName";
37
37
  })(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
38
38
  /**
39
39
  * Config entity from SchemaModule
@@ -0,0 +1,184 @@
1
+ /**
2
+ * BrskEntityMigrationError Record Wrapper
3
+ *
4
+ * Provides typed action methods and link management.
5
+ * Works with both ApiProvider and DbProvider.
6
+ *
7
+ * All action methods return an ActionBuilder or FlowBuilder.
8
+ * Call .execute() to run or .dryRun() to get the payload for debugging.
9
+ *
10
+ * Can be instantiated with null record for create operations:
11
+ * ```typescript
12
+ * const record = odinClient.brskEntityMigrationErrors.new();
13
+ * await record.createBrskEntityMigrationError({ ... }).execute();
14
+ * ```
15
+ *
16
+ * Entity Types: DEFAULT
17
+ *
18
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
19
+ */
20
+ import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
21
+ import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
22
+ import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
23
+ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
24
+ import { BrskEntityMigrationErrorProperties } from '../entities-v2/BrskEntityMigrationError';
25
+ import { CreateBrskMigrationErrorProperties } from '../actions-v2/CreateBrskMigrationErrorDto';
26
+ /** Valid entity types for BrskEntityMigrationError */
27
+ export declare type BrskEntityMigrationErrorType = 'DEFAULT';
28
+ /**
29
+ * Builder for action execution with dryRun support
30
+ *
31
+ * Provides a consistent API across all action types:
32
+ * - `.execute()` - Execute the action and return results
33
+ * - `.dryRun()` - Return the payload without executing (for debugging)
34
+ */
35
+ declare class ActionBuilder<T = IDbRecordCreateUpdateRes[]> {
36
+ private _provider;
37
+ private _moduleName;
38
+ private _entityName;
39
+ private _payload;
40
+ private _clearPendingLinks;
41
+ constructor(provider: IOdinProvider, moduleName: string, entityName: string, payload: Record<string, any>, clearPendingLinks: () => void);
42
+ /**
43
+ * Set an external system identifier for this record.
44
+ * Links the record to a corresponding entry in an external application.
45
+ *
46
+ * @param externalId - The ID in the external system
47
+ * @param externalAppId - The external application identifier
48
+ * @returns this (for chaining)
49
+ *
50
+ * @example
51
+ * ```typescript
52
+ * await record.createOrder({ ... }).withExternalId('SF-123', 'salesforce').execute();
53
+ * ```
54
+ */
55
+ withExternalId(externalId: string, externalAppId: string): this;
56
+ /**
57
+ * Set security/access groups for this record.
58
+ * Controls which user groups can access the record.
59
+ *
60
+ * @param groups - Array of group names
61
+ * @returns this (for chaining)
62
+ *
63
+ * @example
64
+ * ```typescript
65
+ * await record.createOrder({ ... }).withGroups(['TenantA', 'BillingTeam']).execute();
66
+ * ```
67
+ */
68
+ withGroups(groups: string[]): this;
69
+ /**
70
+ * Execute the action
71
+ * @returns The result from the API
72
+ */
73
+ execute(): Promise<T>;
74
+ /**
75
+ * Returns the request payload without executing (for debugging)
76
+ * @returns The request payload that would be sent to the API
77
+ */
78
+ dryRun(): Record<string, any>;
79
+ /**
80
+ * Prevents accidental `await actionBuilder` without .execute()
81
+ * Forces developers to explicitly call .execute()
82
+ * @throws Error always - use .execute() or .dryRun() instead
83
+ */
84
+ then(): never;
85
+ }
86
+ export declare class BrskEntityMigrationErrorRecord<TProps = BrskEntityMigrationErrorProperties> {
87
+ private _record;
88
+ private _provider;
89
+ private _pendingLinks;
90
+ private _preGeneratedId;
91
+ /**
92
+ * Create a record wrapper.
93
+ * @param record - The underlying record, or null for create operations
94
+ * @param provider - The API or DB provider
95
+ * @param preGeneratedId - Optional pre-generated ID for new records (auto-generated if not provided)
96
+ */
97
+ constructor(record: OdinRecord<TProps> | null, provider: IOdinProvider, preGeneratedId?: string);
98
+ /** Returns true if this is a new (unsaved) record */
99
+ get isNew(): boolean;
100
+ /** Record ID - always available (pre-generated for new records) */
101
+ get id(): string;
102
+ get entity(): string;
103
+ get type(): BrskEntityMigrationErrorType | undefined;
104
+ /** Record properties - empty object for new (unsaved) records */
105
+ get properties(): TProps;
106
+ get title(): string | undefined;
107
+ get recordNumber(): string | undefined;
108
+ get stage(): PipelineStageEntity | undefined;
109
+ get createdAt(): string | undefined;
110
+ get updatedAt(): string | undefined;
111
+ get externalId(): string | undefined;
112
+ get externalAppId(): string | undefined;
113
+ get groups(): string[];
114
+ /** Access the underlying OdinRecord (null for new records) */
115
+ get record(): OdinRecord<TProps> | null;
116
+ /**
117
+ * Type guard: check if this record is of type DEFAULT
118
+ *
119
+ * When this returns true, TypeScript automatically narrows the type,
120
+ * giving you access to DEFAULT-specific properties.
121
+ *
122
+ * @example
123
+ * ```typescript
124
+ * if (record.isDefault()) {
125
+ * // TypeScript knows record.properties is BrskEntityMigrationErrorProperties
126
+ * console.log(record.properties.SomeTypeSpecificField);
127
+ * }
128
+ * ```
129
+ * @remarks This is the default record type
130
+ */
131
+ isDefault(): this is BrskEntityMigrationErrorRecord<BrskEntityMigrationErrorProperties>;
132
+ /**
133
+ * Queue a link to be created with the next action.
134
+ * Works for both create and update actions.
135
+ * @returns this (for chaining)
136
+ */
137
+ link(target: OdinRecord<any> | {
138
+ id: string;
139
+ entity: string;
140
+ }): this;
141
+ /** Get the currently queued links */
142
+ get pendingLinks(): OdinRecordLinkDto[];
143
+ /** Clear pending links without executing an action */
144
+ clearPendingLinks(): this;
145
+ /**
146
+ * Immediately unlink a record (API call).
147
+ * Unlike link(), this executes immediately.
148
+ * @throws Error if called on a new (unsaved) record
149
+ */
150
+ unlink(target: OdinRecord<any> | {
151
+ id: string;
152
+ } | string): Promise<void>;
153
+ /**
154
+ * CreateBrskMigrationError
155
+ *
156
+ * Creates a new BrskEntityMigrationError record with the specified properties.
157
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
158
+ *
159
+ * @param properties - The properties for the new record
160
+ * @param options - Optional settings
161
+ * @param options.type - Override the record type
162
+ * @param options.journeyId - Associate with a journey
163
+ * @param options.stageKey - Set initial pipeline stage
164
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
165
+ *
166
+ * @example
167
+ * ```typescript
168
+ * // Create with properties
169
+ * const record = odinClient.brskEntityMigrationErrors.new();
170
+ * await record.createBrskMigrationError({ ... }).execute();
171
+ *
172
+ * // Dry run (for debugging)
173
+ * const payload = record.createBrskMigrationError({ ... }).dryRun();
174
+ * ```
175
+ */
176
+ createBrskMigrationError(properties?: CreateBrskMigrationErrorProperties, options?: {
177
+ type?: string;
178
+ journeyId?: string;
179
+ stageKey?: string;
180
+ }): ActionBuilder;
181
+ }
182
+ /** Type guard to check if an object is a BrskEntityMigrationErrorRecord */
183
+ export declare function isBrskEntityMigrationErrorRecord(obj: any): obj is BrskEntityMigrationErrorRecord;
184
+ export {};