@d19n/youfibre-odin-sdk 2.0.366 → 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 (76) 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/HomeMove.d.ts +23 -1
  29. package/dist/entities-v2/HomeMove.js +17 -1
  30. package/dist/entities-v2/OrderItem.d.ts +2 -0
  31. package/dist/entities-v2/OrderItem.js +2 -0
  32. package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
  33. package/dist/entities-v2/OutboundDialCampaign.js +2 -0
  34. package/dist/entities-v2/OutboundDialSession.d.ts +17 -1
  35. package/dist/entities-v2/OutboundDialSession.js +4 -0
  36. package/dist/entities-v2/QaReport.d.ts +70 -1
  37. package/dist/entities-v2/QaReport.js +31 -1
  38. package/dist/entities-v2/QaReportAmendment.d.ts +209 -0
  39. package/dist/entities-v2/QaReportAmendment.js +120 -0
  40. package/dist/records-v2/OrderRecord.d.ts +25 -0
  41. package/dist/records-v2/OrderRecord.js +29 -0
  42. package/dist/records-v2/index.d.ts +0 -4
  43. package/dist/records-v2/index.js +2 -14
  44. package/package.json +1 -1
  45. package/dist/accessors-v2/QaAutoFailAccessor.d.ts +0 -112
  46. package/dist/accessors-v2/QaAutoFailAccessor.js +0 -191
  47. package/dist/accessors-v2/QaRubricAccessor.d.ts +0 -112
  48. package/dist/accessors-v2/QaRubricAccessor.js +0 -191
  49. package/dist/accessors-v2/QaRubricItemAccessor.d.ts +0 -112
  50. package/dist/accessors-v2/QaRubricItemAccessor.js +0 -191
  51. package/dist/accessors-v2/QaRubricSectionAccessor.d.ts +0 -112
  52. package/dist/accessors-v2/QaRubricSectionAccessor.js +0 -191
  53. package/dist/actions-v2/UpdateQaAutoFailDto.d.ts +0 -102
  54. package/dist/actions-v2/UpdateQaAutoFailDto.js +0 -56
  55. package/dist/actions-v2/UpdateQaRubricDto.d.ts +0 -103
  56. package/dist/actions-v2/UpdateQaRubricDto.js +0 -56
  57. package/dist/actions-v2/UpdateQaRubricItemDto.d.ts +0 -157
  58. package/dist/actions-v2/UpdateQaRubricItemDto.js +0 -56
  59. package/dist/actions-v2/UpdateQaRubricSectionDto.d.ts +0 -87
  60. package/dist/actions-v2/UpdateQaRubricSectionDto.js +0 -56
  61. package/dist/db-accessors-v2/QaAutoFailDbAccessor.d.ts +0 -180
  62. package/dist/db-accessors-v2/QaAutoFailDbAccessor.js +0 -265
  63. package/dist/db-accessors-v2/QaRubricDbAccessor.d.ts +0 -180
  64. package/dist/db-accessors-v2/QaRubricDbAccessor.js +0 -265
  65. package/dist/db-accessors-v2/QaRubricItemDbAccessor.d.ts +0 -180
  66. package/dist/db-accessors-v2/QaRubricItemDbAccessor.js +0 -265
  67. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.d.ts +0 -180
  68. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.js +0 -265
  69. package/dist/records-v2/QaAutoFailRecord.d.ts +0 -205
  70. package/dist/records-v2/QaAutoFailRecord.js +0 -275
  71. package/dist/records-v2/QaRubricItemRecord.d.ts +0 -205
  72. package/dist/records-v2/QaRubricItemRecord.js +0 -275
  73. package/dist/records-v2/QaRubricRecord.d.ts +0 -225
  74. package/dist/records-v2/QaRubricRecord.js +0 -308
  75. package/dist/records-v2/QaRubricSectionRecord.d.ts +0 -225
  76. package/dist/records-v2/QaRubricSectionRecord.js +0 -308
@@ -1,157 +0,0 @@
1
- /**
2
- * UpdateQaRubricItem Action DTO
3
- *
4
- * Edit a QaRubricItem record from the Odin record page (DATA-398 QA rubrics).
5
- *
6
- * @module SupportModule
7
- * @entity QaRubricItem
8
- * @actionKey UpdateQaRubricItem
9
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricItem.Update.UpdateQaRubricItem
10
- *
11
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
- */
13
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
- /**
15
- * RabbitMQ message payload for UpdateQaRubricItem updated events
16
- *
17
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricItem.Update.UpdateQaRubricItem
18
- */
19
- export interface UpdateQaRubricItemMessage extends OdinRecordUpdatedEvent<UpdateQaRubricItemDto, UpdateQaRubricItemProperties> {
20
- }
21
- /**
22
- * Properties for UpdateQaRubricItem action
23
- *
24
- * @property Required fields: 1
25
- * @property Optional fields: 12
26
- */
27
- export interface UpdateQaRubricItemProperties {
28
- /**
29
- * Title
30
- *
31
- * The item title, e.g. "Friendly & Professional".
32
- * @type {TEXT}
33
- * @required
34
- */
35
- Title: string;
36
- /**
37
- * Item Key
38
- *
39
- * Stable machine key, unique within a channel (e.g. chat.standard_greeting). Analytics aggregate on this — it must not change when items are reordered or reworded.
40
- * @type {TEXT}
41
- */
42
- ItemKey?: string | null;
43
- /**
44
- * Item Number
45
- *
46
- * Display number within the rubric (1..15 or 1..17). Presentation only — never the identity.
47
- * @type {NUMBER}
48
- */
49
- ItemNumber?: number | null;
50
- /**
51
- * Weight %
52
- *
53
- * Item weight in points. Awarded in full on Yes and N/A; Partial awards a flat 2; No awards 0.
54
- * @type {NUMBER}
55
- */
56
- Weight?: number | null;
57
- /**
58
- * Scorecard Criterion
59
- *
60
- * The verbatim source criterion from the YouFibre evaluation scorecard.
61
- * @type {TEXT_LONG}
62
- */
63
- ScorecardCriterion?: string | null;
64
- /**
65
- * Guidance — Yes
66
- *
67
- * When to award Yes (full weight).
68
- * @type {TEXT_LONG}
69
- */
70
- GuidanceYes?: string | null;
71
- /**
72
- * Guidance — Partial
73
- *
74
- * When to award Partial (flat 2 points). Blank if Partial is not permitted on this item.
75
- * @type {TEXT_LONG}
76
- */
77
- GuidancePartial?: string | null;
78
- /**
79
- * Guidance — No
80
- *
81
- * When to award No (0 points).
82
- * @type {TEXT_LONG}
83
- */
84
- GuidanceNo?: string | null;
85
- /**
86
- * Guidance — N/A
87
- *
88
- * When the item does not apply (full weight). Blank if N/A is not permitted on this item.
89
- * @type {TEXT_LONG}
90
- */
91
- GuidanceNa?: string | null;
92
- /**
93
- * Partial Allowed
94
- *
95
- * Whether a Partial verdict is permitted on this item. False = Yes/No only.
96
- * @type {BOOLEAN}
97
- */
98
- PartialAllowed?: boolean | null;
99
- /**
100
- * N/A Allowed
101
- *
102
- * Whether an N/A verdict is permitted on this item.
103
- * @type {BOOLEAN}
104
- */
105
- NaAllowed?: boolean | null;
106
- /**
107
- * Evaluability
108
- *
109
- * Call-only: whether the item is fully readable from the transcript, partly needs the audio, or is audio-only. Not applicable for chat/email.
110
- * @type {ENUM}
111
- */
112
- EvaluabilityClass?: string | null;
113
- /**
114
- * Cross-item Note
115
- *
116
- * How this item interacts with others (e.g. FCR item 13 and escalation item 14). Blank if none.
117
- * @type {TEXT_LONG}
118
- */
119
- CrossItemNote?: string | null;
120
- }
121
- /**
122
- * Edit item
123
- *
124
- * Edit a QaRubricItem record from the Odin record page (DATA-398 QA rubrics).
125
- *
126
- * @actionType UPDATE - Updates an existing QaRubricItem record
127
- * @module SupportModule
128
- * @entity QaRubricItem
129
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricItem.Update.UpdateQaRubricItem
130
- * @permission schema.action.updateqarubricitem.trigger
131
- * @benchmark This action is tracked for performance benchmarks
132
- */
133
- export declare class UpdateQaRubricItemDto extends OdinRecordUpdateDto<UpdateQaRubricItemProperties> {
134
- /** Used by SDK generators to identify action type */
135
- static readonly ACTION_TYPE = "UPDATE";
136
- static readonly ACTION_KEY = "UpdateQaRubricItem";
137
- static readonly MODULE_NAME = "SupportModule";
138
- static readonly ENTITIES: string[];
139
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.QaRubricItem.Update.UpdateQaRubricItem";
140
- static readonly PERMISSION = "schema.action.updateqarubricitem.trigger";
141
- /** Step metadata - entity this action targets */
142
- static readonly STEP_ENTITY = "SupportModule:QaRubricItem";
143
- static readonly STEP_SCHEMA_ID = "39cd8d89-43cd-4c2f-831d-13298aabafdc";
144
- static readonly STEP_SCHEMA_ACTION_ID = "0fa0c8c4-071e-4bba-875b-44de6100eb7c";
145
- static readonly AUTO_LINK_PARENT = false;
146
- readonly actionName: string;
147
- readonly schemaActionId: string;
148
- readonly entity: string;
149
- constructor(record: OdinRecord<any> | {
150
- id: string;
151
- entity: string;
152
- type?: string;
153
- }, properties: UpdateQaRubricItemProperties, options?: {
154
- journeyId?: string;
155
- stageKey?: string;
156
- });
157
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /**
3
- * UpdateQaRubricItem Action DTO
4
- *
5
- * Edit a QaRubricItem record from the Odin record page (DATA-398 QA rubrics).
6
- *
7
- * @module SupportModule
8
- * @entity QaRubricItem
9
- * @actionKey UpdateQaRubricItem
10
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricItem.Update.UpdateQaRubricItem
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.UpdateQaRubricItemDto = void 0;
16
- const core_1 = require("@d19n/odin-types/dist/core");
17
- /**
18
- * Edit item
19
- *
20
- * Edit a QaRubricItem record from the Odin record page (DATA-398 QA rubrics).
21
- *
22
- * @actionType UPDATE - Updates an existing QaRubricItem record
23
- * @module SupportModule
24
- * @entity QaRubricItem
25
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricItem.Update.UpdateQaRubricItem
26
- * @permission schema.action.updateqarubricitem.trigger
27
- * @benchmark This action is tracked for performance benchmarks
28
- */
29
- class UpdateQaRubricItemDto extends core_1.OdinRecordUpdateDto {
30
- constructor(record, properties, options) {
31
- super({
32
- id: record.id,
33
- entity: record.entity,
34
- type: record.type,
35
- properties,
36
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
- });
39
- this.actionName = 'UpdateQaRubricItem';
40
- this.schemaActionId = '0fa0c8c4-071e-4bba-875b-44de6100eb7c';
41
- this.entity = 'SupportModule:QaRubricItem';
42
- }
43
- }
44
- exports.UpdateQaRubricItemDto = UpdateQaRubricItemDto;
45
- /** Used by SDK generators to identify action type */
46
- UpdateQaRubricItemDto.ACTION_TYPE = 'UPDATE';
47
- UpdateQaRubricItemDto.ACTION_KEY = 'UpdateQaRubricItem';
48
- UpdateQaRubricItemDto.MODULE_NAME = 'SupportModule';
49
- UpdateQaRubricItemDto.ENTITIES = ['QaRubricItem'];
50
- UpdateQaRubricItemDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.QaRubricItem.Update.UpdateQaRubricItem';
51
- UpdateQaRubricItemDto.PERMISSION = 'schema.action.updateqarubricitem.trigger';
52
- /** Step metadata - entity this action targets */
53
- UpdateQaRubricItemDto.STEP_ENTITY = 'SupportModule:QaRubricItem';
54
- UpdateQaRubricItemDto.STEP_SCHEMA_ID = '39cd8d89-43cd-4c2f-831d-13298aabafdc';
55
- UpdateQaRubricItemDto.STEP_SCHEMA_ACTION_ID = '0fa0c8c4-071e-4bba-875b-44de6100eb7c';
56
- UpdateQaRubricItemDto.AUTO_LINK_PARENT = false;
@@ -1,87 +0,0 @@
1
- /**
2
- * UpdateQaRubricSection Action DTO
3
- *
4
- * Edit a QaRubricSection record from the Odin record page (DATA-398 QA rubrics).
5
- *
6
- * @module SupportModule
7
- * @entity QaRubricSection
8
- * @actionKey UpdateQaRubricSection
9
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricSection.Update.UpdateQaRubricSection
10
- *
11
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
- */
13
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
- /**
15
- * RabbitMQ message payload for UpdateQaRubricSection updated events
16
- *
17
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricSection.Update.UpdateQaRubricSection
18
- */
19
- export interface UpdateQaRubricSectionMessage extends OdinRecordUpdatedEvent<UpdateQaRubricSectionDto, UpdateQaRubricSectionProperties> {
20
- }
21
- /**
22
- * Properties for UpdateQaRubricSection action
23
- *
24
- * @property Required fields: 1
25
- * @property Optional fields: 2
26
- */
27
- export interface UpdateQaRubricSectionProperties {
28
- /**
29
- * Name
30
- *
31
- * Section name, e.g. Ticket Identity, Behavioural, Call Handling.
32
- * @type {TEXT}
33
- * @required
34
- */
35
- Name: string;
36
- /**
37
- * Weight %
38
- *
39
- * The section total as a percentage of the 100-point score (e.g. Behavioural 55).
40
- * @type {NUMBER}
41
- */
42
- Weight?: number | null;
43
- /**
44
- * Position
45
- *
46
- * Display order of the section within the rubric.
47
- * @type {NUMBER}
48
- */
49
- Position?: number | null;
50
- }
51
- /**
52
- * Edit section
53
- *
54
- * Edit a QaRubricSection record from the Odin record page (DATA-398 QA rubrics).
55
- *
56
- * @actionType UPDATE - Updates an existing QaRubricSection record
57
- * @module SupportModule
58
- * @entity QaRubricSection
59
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricSection.Update.UpdateQaRubricSection
60
- * @permission schema.action.updateqarubricsection.trigger
61
- * @benchmark This action is tracked for performance benchmarks
62
- */
63
- export declare class UpdateQaRubricSectionDto extends OdinRecordUpdateDto<UpdateQaRubricSectionProperties> {
64
- /** Used by SDK generators to identify action type */
65
- static readonly ACTION_TYPE = "UPDATE";
66
- static readonly ACTION_KEY = "UpdateQaRubricSection";
67
- static readonly MODULE_NAME = "SupportModule";
68
- static readonly ENTITIES: string[];
69
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.QaRubricSection.Update.UpdateQaRubricSection";
70
- static readonly PERMISSION = "schema.action.updateqarubricsection.trigger";
71
- /** Step metadata - entity this action targets */
72
- static readonly STEP_ENTITY = "SupportModule:QaRubricSection";
73
- static readonly STEP_SCHEMA_ID = "880a4a28-6b84-4827-8367-1b368692387a";
74
- static readonly STEP_SCHEMA_ACTION_ID = "a5743d11-2e6f-4b4d-b478-a3f2c880fa67";
75
- static readonly AUTO_LINK_PARENT = false;
76
- readonly actionName: string;
77
- readonly schemaActionId: string;
78
- readonly entity: string;
79
- constructor(record: OdinRecord<any> | {
80
- id: string;
81
- entity: string;
82
- type?: string;
83
- }, properties: UpdateQaRubricSectionProperties, options?: {
84
- journeyId?: string;
85
- stageKey?: string;
86
- });
87
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /**
3
- * UpdateQaRubricSection Action DTO
4
- *
5
- * Edit a QaRubricSection record from the Odin record page (DATA-398 QA rubrics).
6
- *
7
- * @module SupportModule
8
- * @entity QaRubricSection
9
- * @actionKey UpdateQaRubricSection
10
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricSection.Update.UpdateQaRubricSection
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.UpdateQaRubricSectionDto = void 0;
16
- const core_1 = require("@d19n/odin-types/dist/core");
17
- /**
18
- * Edit section
19
- *
20
- * Edit a QaRubricSection record from the Odin record page (DATA-398 QA rubrics).
21
- *
22
- * @actionType UPDATE - Updates an existing QaRubricSection record
23
- * @module SupportModule
24
- * @entity QaRubricSection
25
- * @event k1.t-hEOJjsDb.SupportModule.QaRubricSection.Update.UpdateQaRubricSection
26
- * @permission schema.action.updateqarubricsection.trigger
27
- * @benchmark This action is tracked for performance benchmarks
28
- */
29
- class UpdateQaRubricSectionDto extends core_1.OdinRecordUpdateDto {
30
- constructor(record, properties, options) {
31
- super({
32
- id: record.id,
33
- entity: record.entity,
34
- type: record.type,
35
- properties,
36
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
- });
39
- this.actionName = 'UpdateQaRubricSection';
40
- this.schemaActionId = 'a5743d11-2e6f-4b4d-b478-a3f2c880fa67';
41
- this.entity = 'SupportModule:QaRubricSection';
42
- }
43
- }
44
- exports.UpdateQaRubricSectionDto = UpdateQaRubricSectionDto;
45
- /** Used by SDK generators to identify action type */
46
- UpdateQaRubricSectionDto.ACTION_TYPE = 'UPDATE';
47
- UpdateQaRubricSectionDto.ACTION_KEY = 'UpdateQaRubricSection';
48
- UpdateQaRubricSectionDto.MODULE_NAME = 'SupportModule';
49
- UpdateQaRubricSectionDto.ENTITIES = ['QaRubricSection'];
50
- UpdateQaRubricSectionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.QaRubricSection.Update.UpdateQaRubricSection';
51
- UpdateQaRubricSectionDto.PERMISSION = 'schema.action.updateqarubricsection.trigger';
52
- /** Step metadata - entity this action targets */
53
- UpdateQaRubricSectionDto.STEP_ENTITY = 'SupportModule:QaRubricSection';
54
- UpdateQaRubricSectionDto.STEP_SCHEMA_ID = '880a4a28-6b84-4827-8367-1b368692387a';
55
- UpdateQaRubricSectionDto.STEP_SCHEMA_ACTION_ID = 'a5743d11-2e6f-4b4d-b478-a3f2c880fa67';
56
- UpdateQaRubricSectionDto.AUTO_LINK_PARENT = false;
@@ -1,180 +0,0 @@
1
- /**
2
- * QaAutoFail DB Accessor
3
- *
4
- * Provides typed access to QaAutoFail records via direct database access.
5
- * For use in backend services with principal + dbService.
6
- * Returns wrapped records with typed action methods.
7
- *
8
- * @example
9
- * ```typescript
10
- * // Simple get
11
- * const record = await accessor.get(id);
12
- *
13
- * // With related entities
14
- * const record = await accessor.get(id, { entities: ["Contact", "Address"] });
15
- *
16
- * // With permissions bypass (separate options)
17
- * const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
18
- *
19
- * // Silent write (no RabbitMQ events)
20
- * const result = await accessor.upsert([dto], { omitWriteEvents: true });
21
- *
22
- * // Constructor-level default (applies to all calls)
23
- * const accessor = new QaAutoFailDbAccessor(principal, dbService, { omitPermissionsCheck: true });
24
- * ```
25
- *
26
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
27
- */
28
- import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
29
- import { DbProvider, DbProviderOptions, DbGetQueryOptions, DbExternalIdQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
30
- import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
31
- import { QaAutoFailProperties } from '../entities-v2/QaAutoFail';
32
- import { QaAutoFailRecord } from '../records-v2/QaAutoFailRecord';
33
- /** Search response with wrapped records */
34
- export interface QaAutoFailDbSearchResponse {
35
- records: QaAutoFailRecord[];
36
- totalRecords: number;
37
- hasMore: boolean;
38
- aggregations?: Record<string, any>;
39
- }
40
- export declare class QaAutoFailDbAccessor {
41
- private readonly _provider;
42
- private readonly _moduleName;
43
- private readonly _entityName;
44
- private readonly _defaultOptions?;
45
- /**
46
- * Create a new QaAutoFailDbAccessor
47
- * @param principal - The authenticated principal
48
- * @param dbService - The database service instance
49
- * @param defaultOptions - Default provider options applied to all operations
50
- */
51
- constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
52
- get moduleName(): string;
53
- get entityName(): string;
54
- /**
55
- * Create a new empty QaAutoFail record instance for create operations.
56
- * Pre-generates an ID that can be referenced before the record is saved.
57
- *
58
- * @param id - Optional ID to use (auto-generated UUID if not provided)
59
- * @returns A new record wrapper with pre-generated ID
60
- *
61
- * @example
62
- * ```typescript
63
- * // Auto-generated ID
64
- * const note = odinDb.notes.new();
65
- * console.log(note.id); // UUID available immediately
66
- *
67
- * // Custom ID
68
- * const order = odinDb.orders.new("custom-id-123");
69
- *
70
- * // Reference ID before save
71
- * const account = odinDb.accounts.new();
72
- * const contact = odinDb.contacts.new();
73
- * await contact
74
- * .link({ id: account.id, entity: "CrmModule:Account" })
75
- * .createContact({ FirstName: "John" });
76
- * ```
77
- */
78
- new(id?: string): QaAutoFailRecord;
79
- /**
80
- * Get a single QaAutoFail record by ID
81
- *
82
- * @param id - The record ID
83
- * @param queryOptions - Query options (WHAT to fetch: entities to include)
84
- * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
85
- *
86
- * @example
87
- * ```typescript
88
- * // Simple get
89
- * const record = await accessor.get(id);
90
- *
91
- * // With related entities
92
- * const record = await accessor.get(id, { entities: ["Contact", "Address"] });
93
- *
94
- * // With permissions bypass
95
- * const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
96
- *
97
- * // Both options
98
- * const record = await accessor.get(id, { entities: ["Invoice"] }, { omitPermissionsCheck: true });
99
- * ```
100
- */
101
- get(id: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<QaAutoFailRecord>;
102
- /**
103
- * Get multiple QaAutoFail records by IDs
104
- *
105
- * @param ids - Array of record IDs
106
- * @param queryOptions - Query options (WHAT to fetch: entities to include)
107
- * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
108
- */
109
- getMany(ids: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<QaAutoFailRecord[]>;
110
- /**
111
- * Get QaAutoFail records by the RECORD-LEVEL external id.
112
- *
113
- * Resolved server-side in Postgres against `record.external_id` - not a property
114
- * search, and not reachable through `query()` (`externalId` is not a queryable
115
- * column). Use this when an external system hands back its own identifier.
116
- *
117
- * Platform limits: max 5000 ids per call, each at most 36 characters. An unknown
118
- * `type` is rejected with 400 `invalid type`.
119
- *
120
- * @param externalIds - The external ids to match (plural - the platform takes an array)
121
- * @param queryOptions - Query options (WHAT to fetch: narrow by record type)
122
- * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck, withLinks)
123
- *
124
- * @example
125
- * ```typescript
126
- * // Correlate a provider webhook back to the record it wrote
127
- * const [message] = await accessor.getManyByExternalId([body.SmsSid]);
128
- *
129
- * // Narrowed by record type
130
- * const closures = await accessor.getManyByExternalId(refs, { type: 'CLOSURE' });
131
- *
132
- * // Background job, no link hydration
133
- * const records = await accessor.getManyByExternalId(refs, undefined, {
134
- * omitPermissionsCheck: true,
135
- * withLinks: false,
136
- * });
137
- * ```
138
- */
139
- getManyByExternalId(externalIds: string[], queryOptions?: DbExternalIdQueryOptions, providerOptions?: DbProviderOptions): Promise<QaAutoFailRecord[]>;
140
- /**
141
- * Search QaAutoFail records
142
- *
143
- * @param params - Search parameters
144
- * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
145
- */
146
- search(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<QaAutoFailDbSearchResponse>;
147
- /**
148
- * Search all QaAutoFail records with automatic pagination
149
- *
150
- * @param params - Search parameters
151
- * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
152
- */
153
- searchAll(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<QaAutoFailRecord[]>;
154
- /**
155
- * Async generator for paginating through all matching records.
156
- * Yields batches of wrapped records.
157
- *
158
- * @param params - Search parameters
159
- * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
160
- */
161
- paginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): AsyncGenerator<QaAutoFailRecord[]>;
162
- /**
163
- * Create a fluent query builder for QaAutoFail records
164
- *
165
- * @example
166
- * ```typescript
167
- * const results = await accessor
168
- * .query()
169
- * .where('Status', 'in', ['Active', 'Pending'])
170
- * .where('CreatedAt', 'gte', '2025-01-01')
171
- * .select('id', 'title', 'properties.*')
172
- * .sortBy('createdAt', 'desc')
173
- * .limit(100)
174
- * .execute();
175
- * ```
176
- */
177
- query(): QueryBuilder<QaAutoFailProperties, QaAutoFailRecord>;
178
- /** Access the underlying DbProvider */
179
- get provider(): DbProvider;
180
- }