@d19n/youfibre-odin-sdk 2.0.365 → 2.0.367

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 (80) hide show
  1. package/README.md +6 -26
  2. package/dist/EntityRegistry.d.ts +0 -8
  3. package/dist/EntityRegistry.js +0 -8
  4. package/dist/OdinApiClient.d.ts +0 -16
  5. package/dist/OdinApiClient.js +0 -32
  6. package/dist/OdinDbClient.d.ts +0 -16
  7. package/dist/OdinDbClient.js +0 -32
  8. package/dist/accessors-v2/index.d.ts +0 -4
  9. package/dist/accessors-v2/index.js +2 -10
  10. package/dist/actions-v2/CancelOrderForEtfPaidDto.d.ts +67 -0
  11. package/dist/actions-v2/CancelOrderForEtfPaidDto.js +59 -0
  12. package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
  13. package/dist/actions-v2/CreateOutboundDialSessionDto.d.ts +15 -1
  14. package/dist/actions-v2/UpdateOutboundDialSessionDto.d.ts +15 -1
  15. package/dist/actions-v2/UpdateoutbounddialcampaignDto.d.ts +8 -1
  16. package/dist/api-sdk-v2/QaReportAmendmentApi.d.ts +48 -0
  17. package/dist/api-sdk-v2/QaReportAmendmentApi.js +155 -0
  18. package/dist/api-sdk-v2/QaReportApi.d.ts +2 -0
  19. package/dist/api-sdk-v2/QaReportApi.js +6 -0
  20. package/dist/db-accessors-v2/index.d.ts +0 -4
  21. package/dist/db-accessors-v2/index.js +2 -10
  22. package/dist/db-sdk-v2/CrmDatasetDb.d.ts +2 -2
  23. package/dist/db-sdk-v2/CrmDatasetDb.js +4 -4
  24. package/dist/db-sdk-v2/QaReportAmendmentDb.d.ts +120 -0
  25. package/dist/db-sdk-v2/QaReportAmendmentDb.js +204 -0
  26. package/dist/db-sdk-v2/QaReportDb.d.ts +2 -0
  27. package/dist/db-sdk-v2/QaReportDb.js +6 -0
  28. package/dist/entities-v2/CreditNote.d.ts +2 -1
  29. package/dist/entities-v2/CreditNote.js +2 -1
  30. package/dist/entities-v2/HomeMove.d.ts +23 -1
  31. package/dist/entities-v2/HomeMove.js +17 -1
  32. package/dist/entities-v2/OrderItem.d.ts +2 -0
  33. package/dist/entities-v2/OrderItem.js +2 -0
  34. package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
  35. package/dist/entities-v2/OutboundDialCampaign.js +2 -0
  36. package/dist/entities-v2/OutboundDialSession.d.ts +17 -1
  37. package/dist/entities-v2/OutboundDialSession.js +4 -0
  38. package/dist/entities-v2/QaReport.d.ts +70 -1
  39. package/dist/entities-v2/QaReport.js +31 -1
  40. package/dist/entities-v2/QaReportAmendment.d.ts +209 -0
  41. package/dist/entities-v2/QaReportAmendment.js +120 -0
  42. package/dist/entities-v2/YfAgentLocation.d.ts +25 -1
  43. package/dist/entities-v2/YfAgentLocation.js +6 -0
  44. package/dist/records-v2/OrderRecord.d.ts +25 -0
  45. package/dist/records-v2/OrderRecord.js +29 -0
  46. package/dist/records-v2/index.d.ts +0 -4
  47. package/dist/records-v2/index.js +2 -14
  48. package/package.json +1 -1
  49. package/dist/accessors-v2/QaAutoFailAccessor.d.ts +0 -112
  50. package/dist/accessors-v2/QaAutoFailAccessor.js +0 -191
  51. package/dist/accessors-v2/QaRubricAccessor.d.ts +0 -112
  52. package/dist/accessors-v2/QaRubricAccessor.js +0 -191
  53. package/dist/accessors-v2/QaRubricItemAccessor.d.ts +0 -112
  54. package/dist/accessors-v2/QaRubricItemAccessor.js +0 -191
  55. package/dist/accessors-v2/QaRubricSectionAccessor.d.ts +0 -112
  56. package/dist/accessors-v2/QaRubricSectionAccessor.js +0 -191
  57. package/dist/actions-v2/UpdateQaAutoFailDto.d.ts +0 -102
  58. package/dist/actions-v2/UpdateQaAutoFailDto.js +0 -56
  59. package/dist/actions-v2/UpdateQaRubricDto.d.ts +0 -103
  60. package/dist/actions-v2/UpdateQaRubricDto.js +0 -56
  61. package/dist/actions-v2/UpdateQaRubricItemDto.d.ts +0 -157
  62. package/dist/actions-v2/UpdateQaRubricItemDto.js +0 -56
  63. package/dist/actions-v2/UpdateQaRubricSectionDto.d.ts +0 -87
  64. package/dist/actions-v2/UpdateQaRubricSectionDto.js +0 -56
  65. package/dist/db-accessors-v2/QaAutoFailDbAccessor.d.ts +0 -180
  66. package/dist/db-accessors-v2/QaAutoFailDbAccessor.js +0 -265
  67. package/dist/db-accessors-v2/QaRubricDbAccessor.d.ts +0 -180
  68. package/dist/db-accessors-v2/QaRubricDbAccessor.js +0 -265
  69. package/dist/db-accessors-v2/QaRubricItemDbAccessor.d.ts +0 -180
  70. package/dist/db-accessors-v2/QaRubricItemDbAccessor.js +0 -265
  71. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.d.ts +0 -180
  72. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.js +0 -265
  73. package/dist/records-v2/QaAutoFailRecord.d.ts +0 -205
  74. package/dist/records-v2/QaAutoFailRecord.js +0 -275
  75. package/dist/records-v2/QaRubricItemRecord.d.ts +0 -205
  76. package/dist/records-v2/QaRubricItemRecord.js +0 -275
  77. package/dist/records-v2/QaRubricRecord.d.ts +0 -225
  78. package/dist/records-v2/QaRubricRecord.js +0 -308
  79. package/dist/records-v2/QaRubricSectionRecord.d.ts +0 -225
  80. package/dist/records-v2/QaRubricSectionRecord.js +0 -308
@@ -1,275 +0,0 @@
1
- "use strict";
2
- /**
3
- * QaRubricItem Record Wrapper
4
- *
5
- * Provides typed action methods and link management.
6
- * Works with both ApiProvider and DbProvider.
7
- *
8
- * All action methods return an ActionBuilder or FlowBuilder.
9
- * Call .execute() to run or .dryRun() to get the payload for debugging.
10
- *
11
- * Can be instantiated with null record for create operations:
12
- * ```typescript
13
- * const record = odinClient.qaRubricItems.new();
14
- * await record.createQaRubricItem({ ... }).execute();
15
- * ```
16
- *
17
- * Entity Types: DEFAULT
18
- *
19
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
20
- */
21
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
- return new (P || (P = Promise))(function (resolve, reject) {
24
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.isQaRubricItemRecord = exports.QaRubricItemRecord = void 0;
32
- const uuid_1 = require("uuid");
33
- const core_1 = require("@d19n/odin-types/dist/core");
34
- const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
35
- const QaRubricSectionRecord_1 = require("./QaRubricSectionRecord");
36
- /**
37
- * Builder for action execution with dryRun support
38
- *
39
- * Provides a consistent API across all action types:
40
- * - `.execute()` - Execute the action and return results
41
- * - `.dryRun()` - Return the payload without executing (for debugging)
42
- */
43
- class ActionBuilder {
44
- constructor(provider, moduleName, entityName, payload, clearPendingLinks) {
45
- this._provider = provider;
46
- this._moduleName = moduleName;
47
- this._entityName = entityName;
48
- this._payload = payload;
49
- this._clearPendingLinks = clearPendingLinks;
50
- }
51
- /**
52
- * Set an external system identifier for this record.
53
- * Links the record to a corresponding entry in an external application.
54
- *
55
- * @param externalId - The ID in the external system
56
- * @param externalAppId - The external application identifier
57
- * @returns this (for chaining)
58
- *
59
- * @example
60
- * ```typescript
61
- * await record.createOrder({ ... }).withExternalId('SF-123', 'salesforce').execute();
62
- * ```
63
- */
64
- withExternalId(externalId, externalAppId) {
65
- this._payload.externalId = externalId;
66
- this._payload.externalAppId = externalAppId;
67
- return this;
68
- }
69
- /**
70
- * Set security/access groups for this record.
71
- * Controls which user groups can access the record.
72
- *
73
- * @param groups - Array of group names
74
- * @returns this (for chaining)
75
- *
76
- * @example
77
- * ```typescript
78
- * await record.createOrder({ ... }).withGroups(['TenantA', 'BillingTeam']).execute();
79
- * ```
80
- */
81
- withGroups(groups) {
82
- this._payload.groups = groups;
83
- return this;
84
- }
85
- /**
86
- * Execute the action
87
- * @returns The result from the API
88
- */
89
- execute() {
90
- return __awaiter(this, void 0, void 0, function* () {
91
- const result = yield this._provider._applyAction(this._moduleName, this._entityName, this._payload);
92
- this._clearPendingLinks();
93
- return result;
94
- });
95
- }
96
- /**
97
- * Returns the request payload without executing (for debugging)
98
- * @returns The request payload that would be sent to the API
99
- */
100
- dryRun() {
101
- return this._payload;
102
- }
103
- /**
104
- * Prevents accidental `await actionBuilder` without .execute()
105
- * Forces developers to explicitly call .execute()
106
- * @throws Error always - use .execute() or .dryRun() instead
107
- */
108
- then() {
109
- throw new Error('ActionBuilder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
110
- }
111
- }
112
- class QaRubricItemRecord {
113
- /**
114
- * Create a record wrapper.
115
- * @param record - The underlying record, or null for create operations
116
- * @param provider - The API or DB provider
117
- * @param preGeneratedId - Optional pre-generated ID for new records (auto-generated if not provided)
118
- */
119
- constructor(record, provider, preGeneratedId) {
120
- this._pendingLinks = [];
121
- this._record = record;
122
- this._provider = provider;
123
- this._preGeneratedId = preGeneratedId !== null && preGeneratedId !== void 0 ? preGeneratedId : (0, uuid_1.v4)();
124
- }
125
- // ============================================
126
- // CORE PROPERTIES
127
- // ============================================
128
- /** Returns true if this is a new (unsaved) record */
129
- get isNew() { var _a; return !((_a = this._record) === null || _a === void 0 ? void 0 : _a.id); }
130
- /** Record ID - always available (pre-generated for new records) */
131
- get id() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : this._preGeneratedId; }
132
- get entity() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.entity) !== null && _b !== void 0 ? _b : 'SupportModule:QaRubricItem'; }
133
- get type() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.type; }
134
- /** Record properties - empty object for new (unsaved) records */
135
- get properties() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.properties) || {}; }
136
- get title() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.title; }
137
- get recordNumber() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.recordNumber; }
138
- get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
139
- get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
140
- get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
141
- get externalId() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.externalId; }
142
- get externalAppId() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.externalAppId; }
143
- get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
144
- /** Link metadata - populated only when the read passed withLinks (empty otherwise) */
145
- get links() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.links) !== null && _b !== void 0 ? _b : []; }
146
- /** Access the underlying OdinRecord (null for new records) */
147
- get record() { return this._record; }
148
- // ============================================
149
- // TYPE GUARDS (with TypeScript type predicates)
150
- // ============================================
151
- /**
152
- * Type guard: check if this record is of type DEFAULT
153
- *
154
- * When this returns true, TypeScript automatically narrows the type,
155
- * giving you access to DEFAULT-specific properties.
156
- *
157
- * @example
158
- * ```typescript
159
- * if (record.isDefault()) {
160
- * // TypeScript knows record.properties is QaRubricItemProperties
161
- * console.log(record.properties.SomeTypeSpecificField);
162
- * }
163
- * ```
164
- * @remarks This is the default record type
165
- */
166
- isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
167
- /**
168
- * Access linked QaRubricSection records
169
- * @remarks Available labels: Section__Item
170
- * @throws Error if called on a new (unsaved) record
171
- *
172
- * @example
173
- * ```typescript
174
- * // Get all linked QaRubricSection records
175
- * const items = await record.qaRubricSections.list();
176
- * const first = await record.qaRubricSections.first();
177
- *
178
- * // Filter by label
179
- * const specific = await record.qaRubricSections.first({ label: 'Section__Item' });
180
- * ```
181
- */
182
- get qaRubricSections() {
183
- var _a;
184
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
185
- throw new Error('Cannot access links on a new (unsaved) record');
186
- if (!this._qaRubricSections) {
187
- this._qaRubricSections = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
188
- sourceEntity: 'SupportModule:QaRubricItem',
189
- targetEntity: 'SupportModule:QaRubricSection',
190
- targetModuleName: 'SupportModule',
191
- targetEntityName: 'QaRubricSection',
192
- labels: ['Section__Item'],
193
- }, QaRubricSectionRecord_1.QaRubricSectionRecord);
194
- }
195
- return this._qaRubricSections;
196
- }
197
- // ============================================
198
- // LINK MANAGEMENT
199
- // ============================================
200
- /**
201
- * Queue a link to be created with the next action.
202
- * Works for both create and update actions.
203
- * @returns this (for chaining)
204
- */
205
- link(target) {
206
- this._pendingLinks.push(new core_1.OdinRecordLinkDto({ id: target.id, entity: target.entity }));
207
- return this;
208
- }
209
- /** Get the currently queued links */
210
- get pendingLinks() {
211
- return [...this._pendingLinks];
212
- }
213
- /** Clear pending links without executing an action */
214
- clearPendingLinks() {
215
- this._pendingLinks = [];
216
- return this;
217
- }
218
- /**
219
- * Immediately unlink a record (API call).
220
- * Unlike link(), this executes immediately.
221
- * @throws Error if called on a new (unsaved) record
222
- */
223
- unlink(target) {
224
- var _a;
225
- return __awaiter(this, void 0, void 0, function* () {
226
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
227
- throw new Error('Cannot unlink from a new (unsaved) record');
228
- const targetId = typeof target === 'string' ? target : target.id;
229
- yield this._provider._deleteLinks('SupportModule', 'QaRubricItem', this._record.id, targetId);
230
- });
231
- }
232
- // ============================================
233
- // UPDATE ACTIONS (require existing record)
234
- // ============================================
235
- /**
236
- * UpdateQaRubricItem
237
- *
238
- * Updates this QaRubricItem record with the specified properties.
239
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
240
- *
241
- * @param properties - Required properties for this action
242
- * @param options - Optional settings
243
- * @param options.journeyId - Associate with a journey
244
- * @param options.stageKey - Transition to pipeline stage
245
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
246
- * @throws Error if called on a new (unsaved) record
247
- *
248
- * @example
249
- * ```typescript
250
- * const record = await odinClient.qaRubricItems.get(id);
251
- * await record.updateQaRubricItem({ ... }).execute();
252
- *
253
- * // Dry run (for debugging)
254
- * const payload = record.updateQaRubricItem({ ... }).dryRun();
255
- * ```
256
- */
257
- updateQaRubricItem(properties, options) {
258
- var _a;
259
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
260
- throw new Error('updateQaRubricItem requires an existing record. Use accessor.get() first.');
261
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateQaRubricItem', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
262
- return new ActionBuilder(this._provider, 'SupportModule', 'QaRubricItem', payload, () => { this._pendingLinks = []; });
263
- }
264
- }
265
- exports.QaRubricItemRecord = QaRubricItemRecord;
266
- // ============================================
267
- // TYPED LINK ACCESSORS
268
- // ============================================
269
- /** Valid labels for QaRubricSection associations */
270
- QaRubricItemRecord.qaRubricSectionsLabels = ['Section__Item'];
271
- /** Type guard to check if an object is a QaRubricItemRecord */
272
- function isQaRubricItemRecord(obj) {
273
- return obj instanceof QaRubricItemRecord;
274
- }
275
- exports.isQaRubricItemRecord = isQaRubricItemRecord;
@@ -1,225 +0,0 @@
1
- /**
2
- * QaRubric 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.qaRubrics.new();
13
- * await record.createQaRubric({ ... }).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 { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
25
- import { QaRubricProperties } from '../entities-v2/QaRubric';
26
- import { UpdateQaRubricProperties } from '../actions-v2/UpdateQaRubricDto';
27
- import { QaRubricSectionRecord } from './QaRubricSectionRecord';
28
- import { QaAutoFailRecord } from './QaAutoFailRecord';
29
- /** Valid entity types for QaRubric */
30
- export declare type QaRubricType = 'DEFAULT';
31
- /**
32
- * Builder for action execution with dryRun support
33
- *
34
- * Provides a consistent API across all action types:
35
- * - `.execute()` - Execute the action and return results
36
- * - `.dryRun()` - Return the payload without executing (for debugging)
37
- */
38
- declare class ActionBuilder<T = IDbRecordCreateUpdateRes[]> {
39
- private _provider;
40
- private _moduleName;
41
- private _entityName;
42
- private _payload;
43
- private _clearPendingLinks;
44
- constructor(provider: IOdinProvider, moduleName: string, entityName: string, payload: Record<string, any>, clearPendingLinks: () => void);
45
- /**
46
- * Set an external system identifier for this record.
47
- * Links the record to a corresponding entry in an external application.
48
- *
49
- * @param externalId - The ID in the external system
50
- * @param externalAppId - The external application identifier
51
- * @returns this (for chaining)
52
- *
53
- * @example
54
- * ```typescript
55
- * await record.createOrder({ ... }).withExternalId('SF-123', 'salesforce').execute();
56
- * ```
57
- */
58
- withExternalId(externalId: string, externalAppId: string): this;
59
- /**
60
- * Set security/access groups for this record.
61
- * Controls which user groups can access the record.
62
- *
63
- * @param groups - Array of group names
64
- * @returns this (for chaining)
65
- *
66
- * @example
67
- * ```typescript
68
- * await record.createOrder({ ... }).withGroups(['TenantA', 'BillingTeam']).execute();
69
- * ```
70
- */
71
- withGroups(groups: string[]): this;
72
- /**
73
- * Execute the action
74
- * @returns The result from the API
75
- */
76
- execute(): Promise<T>;
77
- /**
78
- * Returns the request payload without executing (for debugging)
79
- * @returns The request payload that would be sent to the API
80
- */
81
- dryRun(): Record<string, any>;
82
- /**
83
- * Prevents accidental `await actionBuilder` without .execute()
84
- * Forces developers to explicitly call .execute()
85
- * @throws Error always - use .execute() or .dryRun() instead
86
- */
87
- then(): never;
88
- }
89
- export declare class QaRubricRecord<TProps = QaRubricProperties> {
90
- private _record;
91
- private _provider;
92
- private _pendingLinks;
93
- private _preGeneratedId;
94
- private _qaRubricSections?;
95
- private _qaAutoFails?;
96
- /**
97
- * Create a record wrapper.
98
- * @param record - The underlying record, or null for create operations
99
- * @param provider - The API or DB provider
100
- * @param preGeneratedId - Optional pre-generated ID for new records (auto-generated if not provided)
101
- */
102
- constructor(record: OdinRecord<TProps> | null, provider: IOdinProvider, preGeneratedId?: string);
103
- /** Returns true if this is a new (unsaved) record */
104
- get isNew(): boolean;
105
- /** Record ID - always available (pre-generated for new records) */
106
- get id(): string;
107
- get entity(): string;
108
- get type(): QaRubricType | undefined;
109
- /** Record properties - empty object for new (unsaved) records */
110
- get properties(): TProps;
111
- get title(): string | undefined;
112
- get recordNumber(): string | undefined;
113
- get stage(): PipelineStageEntity | undefined;
114
- get createdAt(): string | undefined;
115
- get updatedAt(): string | undefined;
116
- get externalId(): string | undefined;
117
- get externalAppId(): string | undefined;
118
- get groups(): string[];
119
- /** Link metadata - populated only when the read passed withLinks (empty otherwise) */
120
- get links(): OdinRecord<TProps>['links'];
121
- /** Access the underlying OdinRecord (null for new records) */
122
- get record(): OdinRecord<TProps> | null;
123
- /**
124
- * Type guard: check if this record is of type DEFAULT
125
- *
126
- * When this returns true, TypeScript automatically narrows the type,
127
- * giving you access to DEFAULT-specific properties.
128
- *
129
- * @example
130
- * ```typescript
131
- * if (record.isDefault()) {
132
- * // TypeScript knows record.properties is QaRubricProperties
133
- * console.log(record.properties.SomeTypeSpecificField);
134
- * }
135
- * ```
136
- * @remarks This is the default record type
137
- */
138
- isDefault(): this is QaRubricRecord<QaRubricProperties>;
139
- /** Valid labels for QaRubricSection associations */
140
- static readonly qaRubricSectionsLabels: readonly ["Rubric__Section"];
141
- /**
142
- * Access linked QaRubricSection records
143
- * @remarks Available labels: Rubric__Section
144
- * @throws Error if called on a new (unsaved) record
145
- *
146
- * @example
147
- * ```typescript
148
- * // Get all linked QaRubricSection records
149
- * const items = await record.qaRubricSections.list();
150
- * const first = await record.qaRubricSections.first();
151
- *
152
- * // Filter by label
153
- * const specific = await record.qaRubricSections.first({ label: 'Rubric__Section' });
154
- * ```
155
- */
156
- get qaRubricSections(): RecordLinkManager<QaRubricSectionRecord, typeof QaRubricRecord['qaRubricSectionsLabels'][number]>;
157
- /** Valid labels for QaAutoFail associations */
158
- static readonly qaAutoFailsLabels: readonly ["Rubric__AutoFail"];
159
- /**
160
- * Access linked QaAutoFail records
161
- * @remarks Available labels: Rubric__AutoFail
162
- * @throws Error if called on a new (unsaved) record
163
- *
164
- * @example
165
- * ```typescript
166
- * // Get all linked QaAutoFail records
167
- * const items = await record.qaAutoFails.list();
168
- * const first = await record.qaAutoFails.first();
169
- *
170
- * // Filter by label
171
- * const specific = await record.qaAutoFails.first({ label: 'Rubric__AutoFail' });
172
- * ```
173
- */
174
- get qaAutoFails(): RecordLinkManager<QaAutoFailRecord, typeof QaRubricRecord['qaAutoFailsLabels'][number]>;
175
- /**
176
- * Queue a link to be created with the next action.
177
- * Works for both create and update actions.
178
- * @returns this (for chaining)
179
- */
180
- link(target: OdinRecord<any> | {
181
- id: string;
182
- entity: string;
183
- }): this;
184
- /** Get the currently queued links */
185
- get pendingLinks(): OdinRecordLinkDto[];
186
- /** Clear pending links without executing an action */
187
- clearPendingLinks(): this;
188
- /**
189
- * Immediately unlink a record (API call).
190
- * Unlike link(), this executes immediately.
191
- * @throws Error if called on a new (unsaved) record
192
- */
193
- unlink(target: OdinRecord<any> | {
194
- id: string;
195
- } | string): Promise<void>;
196
- /**
197
- * UpdateQaRubric
198
- *
199
- * Updates this QaRubric record with the specified properties.
200
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
201
- *
202
- * @param properties - Required properties for this action
203
- * @param options - Optional settings
204
- * @param options.journeyId - Associate with a journey
205
- * @param options.stageKey - Transition to pipeline stage
206
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
207
- * @throws Error if called on a new (unsaved) record
208
- *
209
- * @example
210
- * ```typescript
211
- * const record = await odinClient.qaRubrics.get(id);
212
- * await record.updateQaRubric({ ... }).execute();
213
- *
214
- * // Dry run (for debugging)
215
- * const payload = record.updateQaRubric({ ... }).dryRun();
216
- * ```
217
- */
218
- updateQaRubric(properties: UpdateQaRubricProperties, options?: {
219
- journeyId?: string;
220
- stageKey?: string;
221
- }): ActionBuilder;
222
- }
223
- /** Type guard to check if an object is a QaRubricRecord */
224
- export declare function isQaRubricRecord(obj: any): obj is QaRubricRecord;
225
- export {};