@d19n/youfibre-odin-sdk 2.0.335 → 2.0.337

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 (79) hide show
  1. package/README.md +31 -2
  2. package/dist/EntityRegistry.d.ts +8 -0
  3. package/dist/EntityRegistry.js +8 -0
  4. package/dist/OdinApiClient.d.ts +16 -0
  5. package/dist/OdinApiClient.js +32 -0
  6. package/dist/OdinDbClient.d.ts +16 -0
  7. package/dist/OdinDbClient.js +32 -0
  8. package/dist/accessors-v2/QaAutoFailAccessor.d.ts +112 -0
  9. package/dist/accessors-v2/QaAutoFailAccessor.js +191 -0
  10. package/dist/accessors-v2/QaRubricAccessor.d.ts +112 -0
  11. package/dist/accessors-v2/QaRubricAccessor.js +191 -0
  12. package/dist/accessors-v2/QaRubricItemAccessor.d.ts +112 -0
  13. package/dist/accessors-v2/QaRubricItemAccessor.js +191 -0
  14. package/dist/accessors-v2/QaRubricSectionAccessor.d.ts +112 -0
  15. package/dist/accessors-v2/QaRubricSectionAccessor.js +191 -0
  16. package/dist/accessors-v2/index.d.ts +4 -0
  17. package/dist/accessors-v2/index.js +10 -2
  18. package/dist/actions-v2/CreateContactSalesAppDto.d.ts +2 -25
  19. package/dist/actions-v2/CreateInstallDayBeforeWifiEducationDto.d.ts +63 -0
  20. package/dist/actions-v2/CreateInstallDayBeforeWifiEducationDto.js +59 -0
  21. package/dist/actions-v2/CreateLeadSalesAppDto.d.ts +10 -2
  22. package/dist/actions-v2/CreateTransactionalEmailDto.d.ts +8 -1
  23. package/dist/actions-v2/UpdateQaAutoFailDto.d.ts +102 -0
  24. package/dist/actions-v2/UpdateQaAutoFailDto.js +56 -0
  25. package/dist/actions-v2/UpdateQaRubricDto.d.ts +103 -0
  26. package/dist/actions-v2/UpdateQaRubricDto.js +56 -0
  27. package/dist/actions-v2/UpdateQaRubricItemDto.d.ts +157 -0
  28. package/dist/actions-v2/UpdateQaRubricItemDto.js +56 -0
  29. package/dist/actions-v2/UpdateQaRubricSectionDto.d.ts +87 -0
  30. package/dist/actions-v2/UpdateQaRubricSectionDto.js +56 -0
  31. package/dist/api-sdk-v2/QaAutoFailApi.d.ts +48 -0
  32. package/dist/api-sdk-v2/QaAutoFailApi.js +155 -0
  33. package/dist/api-sdk-v2/QaRubricApi.d.ts +50 -0
  34. package/dist/api-sdk-v2/QaRubricApi.js +161 -0
  35. package/dist/api-sdk-v2/QaRubricItemApi.d.ts +48 -0
  36. package/dist/api-sdk-v2/QaRubricItemApi.js +155 -0
  37. package/dist/api-sdk-v2/QaRubricSectionApi.d.ts +50 -0
  38. package/dist/api-sdk-v2/QaRubricSectionApi.js +161 -0
  39. package/dist/db-accessors-v2/QaAutoFailDbAccessor.d.ts +180 -0
  40. package/dist/db-accessors-v2/QaAutoFailDbAccessor.js +265 -0
  41. package/dist/db-accessors-v2/QaRubricDbAccessor.d.ts +180 -0
  42. package/dist/db-accessors-v2/QaRubricDbAccessor.js +265 -0
  43. package/dist/db-accessors-v2/QaRubricItemDbAccessor.d.ts +180 -0
  44. package/dist/db-accessors-v2/QaRubricItemDbAccessor.js +265 -0
  45. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.d.ts +180 -0
  46. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.js +265 -0
  47. package/dist/db-accessors-v2/index.d.ts +4 -0
  48. package/dist/db-accessors-v2/index.js +10 -2
  49. package/dist/db-sdk-v2/QaAutoFailDb.d.ts +120 -0
  50. package/dist/db-sdk-v2/QaAutoFailDb.js +204 -0
  51. package/dist/db-sdk-v2/QaRubricDb.d.ts +122 -0
  52. package/dist/db-sdk-v2/QaRubricDb.js +210 -0
  53. package/dist/db-sdk-v2/QaRubricItemDb.d.ts +120 -0
  54. package/dist/db-sdk-v2/QaRubricItemDb.js +204 -0
  55. package/dist/db-sdk-v2/QaRubricSectionDb.d.ts +122 -0
  56. package/dist/db-sdk-v2/QaRubricSectionDb.js +210 -0
  57. package/dist/entities-v2/QaAutoFail.d.ts +117 -0
  58. package/dist/entities-v2/QaAutoFail.js +76 -0
  59. package/dist/entities-v2/QaReport.d.ts +41 -1
  60. package/dist/entities-v2/QaReport.js +10 -0
  61. package/dist/entities-v2/QaRubric.d.ts +152 -0
  62. package/dist/entities-v2/QaRubric.js +114 -0
  63. package/dist/entities-v2/QaRubricItem.d.ts +199 -0
  64. package/dist/entities-v2/QaRubricItem.js +110 -0
  65. package/dist/entities-v2/QaRubricSection.d.ts +108 -0
  66. package/dist/entities-v2/QaRubricSection.js +76 -0
  67. package/dist/records-v2/EmailRecord.d.ts +29 -0
  68. package/dist/records-v2/EmailRecord.js +36 -0
  69. package/dist/records-v2/QaAutoFailRecord.d.ts +205 -0
  70. package/dist/records-v2/QaAutoFailRecord.js +275 -0
  71. package/dist/records-v2/QaRubricItemRecord.d.ts +205 -0
  72. package/dist/records-v2/QaRubricItemRecord.js +275 -0
  73. package/dist/records-v2/QaRubricRecord.d.ts +225 -0
  74. package/dist/records-v2/QaRubricRecord.js +308 -0
  75. package/dist/records-v2/QaRubricSectionRecord.d.ts +225 -0
  76. package/dist/records-v2/QaRubricSectionRecord.js +308 -0
  77. package/dist/records-v2/index.d.ts +4 -0
  78. package/dist/records-v2/index.js +13 -1
  79. package/package.json +1 -1
@@ -0,0 +1,122 @@
1
+ import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
2
+ import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
3
+ import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
4
+ import { QaRubricSectionProperties } from '../entities-v2/QaRubricSection';
5
+ /**
6
+ * @deprecated Use OdinDbClient.
7
+ *
8
+ * Migration:
9
+ * - Old: new QaRubricSectionApi(authParams).get(id)
10
+ * - New: new odin.qarubricsection.get(id)
11
+ *
12
+ * The new OdinDbClient returns typed record wrappers with action methods.
13
+ *
14
+ * Supports separate query options and provider options:
15
+ * - Constructor level: new QaRubricSectionDb(principal, dbService, { omitPermissionsCheck: true })
16
+ * - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
17
+ */
18
+ export declare class QaRubricSectionDb extends DbProvider {
19
+ protected readonly principal: any;
20
+ protected readonly dbService: any;
21
+ private readonly moduleName;
22
+ private readonly entityName;
23
+ private sourceRecord;
24
+ private _qarubric?;
25
+ private _qarubricitem?;
26
+ constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
27
+ get qarubric(): DbRecordLinkManager;
28
+ get qarubricitem(): DbRecordLinkManager;
29
+ setRecord(sourceRecord: any): void;
30
+ /**
31
+ * Search records with manual pagination control
32
+ * @param params - Search parameters
33
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
34
+ */
35
+ searchRecords(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaRubricSectionProperties>>>;
36
+ /**
37
+ * Search all records with automatic pagination
38
+ * @param params - Search parameters
39
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
40
+ */
41
+ searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaRubricSectionProperties>>>;
42
+ /**
43
+ * Get a single record by primary key
44
+ * @param qaRubricSectionId - Record ID
45
+ * @param queryOptions - Query options (WHAT: entities to include)
46
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
47
+ *
48
+ * @example
49
+ * // Simple get
50
+ * const record = await db.getByPrimaryKey(id);
51
+ *
52
+ * // With related entities
53
+ * const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
54
+ *
55
+ * // With permissions bypass
56
+ * const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
57
+ *
58
+ * // Both options
59
+ * const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
60
+ */
61
+ getByPrimaryKey(qaRubricSectionId: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaRubricSectionProperties>>;
62
+ /**
63
+ * Get multiple records by primary keys
64
+ * @param qaRubricSectionIds - Array of record IDs
65
+ * @param queryOptions - Query options (WHAT: entities to include)
66
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
67
+ */
68
+ getManyByPrimaryKey(qaRubricSectionIds: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaRubricSectionProperties>[]>;
69
+ /**
70
+ * Upsert a single record
71
+ * @param upsertDto - Record to upsert
72
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
73
+ */
74
+ upsert(upsertDto: OdinRecordCreateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes>;
75
+ /**
76
+ * Upsert multiple records
77
+ * @param upsertDtos - Records to upsert
78
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
79
+ */
80
+ upsertMany(upsertDtos: OdinRecordCreateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes[]>;
81
+ /**
82
+ * Update a single record
83
+ * @param updateDto - Record to update
84
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
85
+ */
86
+ update(updateDto: OdinRecordUpdateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes>;
87
+ /**
88
+ * Update multiple records
89
+ * @param updateDtos - Records to update
90
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
91
+ */
92
+ updateMany(updateDtos: OdinRecordUpdateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes[]>;
93
+ /**
94
+ * Delete one or many records
95
+ * @param qaRubricSectionIds - Record IDs to delete
96
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
97
+ */
98
+ delete(qaRubricSectionIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordDeleted[]>;
99
+ /**
100
+ * Restore one or many deleted records
101
+ * @param qaRubricSectionIds - Record IDs to restore
102
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
103
+ */
104
+ restore(qaRubricSectionIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordRestored[]>;
105
+ /**
106
+ * Apply an action to a record
107
+ * @param actionName - The action key
108
+ * @param dto - The action DTO
109
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
110
+ */
111
+ applyAction(actionName: string, dto: any, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes[]>;
112
+ /**
113
+ * Get version history for the current source record
114
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
115
+ */
116
+ getVersions(providerOptions?: DbProviderOptions): Promise<any>;
117
+ /**
118
+ * Get revision timeline for the current source record
119
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
120
+ */
121
+ getRevisionTimeline(providerOptions?: DbProviderOptions): Promise<any>;
122
+ }
@@ -0,0 +1,210 @@
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.QaRubricSectionDb = void 0;
13
+ const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
14
+ const db_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/db.record.link.manager");
15
+ /**
16
+ * @deprecated Use OdinDbClient.
17
+ *
18
+ * Migration:
19
+ * - Old: new QaRubricSectionApi(authParams).get(id)
20
+ * - New: new odin.qarubricsection.get(id)
21
+ *
22
+ * The new OdinDbClient returns typed record wrappers with action methods.
23
+ *
24
+ * Supports separate query options and provider options:
25
+ * - Constructor level: new QaRubricSectionDb(principal, dbService, { omitPermissionsCheck: true })
26
+ * - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
27
+ */
28
+ class QaRubricSectionDb extends db_provider_1.DbProvider {
29
+ constructor(principal, dbService, defaultOptions) {
30
+ super(principal, dbService, defaultOptions);
31
+ this.moduleName = 'SupportModule';
32
+ this.entityName = 'QaRubricSection';
33
+ this.principal = principal;
34
+ this.dbService = dbService;
35
+ // Link managers are lazy-loaded on first access
36
+ }
37
+ // ============================================
38
+ // LAZY-LOADED LINK MANAGERS (Public Getters)
39
+ // ============================================
40
+ // Usage remains identical: db.address.list(recordId)
41
+ get qarubric() {
42
+ if (!this._qarubric) {
43
+ this._qarubric = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:QaRubricSection', 'SupportModule:QaRubric', 'Rubric__Section');
44
+ }
45
+ return this._qarubric;
46
+ }
47
+ get qarubricitem() {
48
+ if (!this._qarubricitem) {
49
+ this._qarubricitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:QaRubricSection', 'SupportModule:QaRubricItem', 'Section__Item');
50
+ }
51
+ return this._qarubricitem;
52
+ }
53
+ // ============================================
54
+ // STANDARD METHODS
55
+ // ============================================
56
+ // Methods support separate query options and provider options for clean API
57
+ setRecord(sourceRecord) {
58
+ this.sourceRecord = sourceRecord;
59
+ }
60
+ /**
61
+ * Search records with manual pagination control
62
+ * @param params - Search parameters
63
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
64
+ */
65
+ searchRecords(params, providerOptions) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ return yield this._searchRecords(this.moduleName, this.entityName, params, providerOptions);
68
+ });
69
+ }
70
+ /**
71
+ * Search all records with automatic pagination
72
+ * @param params - Search parameters
73
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
74
+ */
75
+ searchAllRecordsAndPaginate(params, providerOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params, 0, providerOptions);
78
+ });
79
+ }
80
+ /**
81
+ * Get a single record by primary key
82
+ * @param qaRubricSectionId - Record ID
83
+ * @param queryOptions - Query options (WHAT: entities to include)
84
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
85
+ *
86
+ * @example
87
+ * // Simple get
88
+ * const record = await db.getByPrimaryKey(id);
89
+ *
90
+ * // With related entities
91
+ * const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
92
+ *
93
+ * // With permissions bypass
94
+ * const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
95
+ *
96
+ * // Both options
97
+ * const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
98
+ */
99
+ getByPrimaryKey(qaRubricSectionId, queryOptions, providerOptions) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, qaRubricSectionId, queryOptions, providerOptions);
102
+ if (res)
103
+ this.setRecord(res);
104
+ return res;
105
+ });
106
+ }
107
+ /**
108
+ * Get multiple records by primary keys
109
+ * @param qaRubricSectionIds - Array of record IDs
110
+ * @param queryOptions - Query options (WHAT: entities to include)
111
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
112
+ */
113
+ getManyByPrimaryKey(qaRubricSectionIds, queryOptions, providerOptions) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, qaRubricSectionIds, queryOptions, providerOptions);
116
+ });
117
+ }
118
+ /**
119
+ * Upsert a single record
120
+ * @param upsertDto - Record to upsert
121
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
122
+ */
123
+ upsert(upsertDto, providerOptions) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto], providerOptions);
126
+ return res[0];
127
+ });
128
+ }
129
+ /**
130
+ * Upsert multiple records
131
+ * @param upsertDtos - Records to upsert
132
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
133
+ */
134
+ upsertMany(upsertDtos, providerOptions) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos, providerOptions);
137
+ });
138
+ }
139
+ /**
140
+ * Update a single record
141
+ * @param updateDto - Record to update
142
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
143
+ */
144
+ update(updateDto, providerOptions) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto], providerOptions);
147
+ return res[0];
148
+ });
149
+ }
150
+ /**
151
+ * Update multiple records
152
+ * @param updateDtos - Records to update
153
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
154
+ */
155
+ updateMany(updateDtos, providerOptions) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ return yield this._update(this.moduleName, this.entityName, updateDtos, providerOptions);
158
+ });
159
+ }
160
+ /**
161
+ * Delete one or many records
162
+ * @param qaRubricSectionIds - Record IDs to delete
163
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
164
+ */
165
+ delete(qaRubricSectionIds, providerOptions) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ return yield this._delete(this.moduleName, this.entityName, qaRubricSectionIds, providerOptions);
168
+ });
169
+ }
170
+ /**
171
+ * Restore one or many deleted records
172
+ * @param qaRubricSectionIds - Record IDs to restore
173
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
174
+ */
175
+ restore(qaRubricSectionIds, providerOptions) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ return yield this._restore(this.moduleName, this.entityName, qaRubricSectionIds, providerOptions);
178
+ });
179
+ }
180
+ /**
181
+ * Apply an action to a record
182
+ * @param actionName - The action key
183
+ * @param dto - The action DTO
184
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
185
+ */
186
+ applyAction(actionName, dto, providerOptions) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ return yield this._applyAction(this.moduleName, this.entityName, dto, providerOptions);
189
+ });
190
+ }
191
+ /**
192
+ * Get version history for the current source record
193
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
194
+ */
195
+ getVersions(providerOptions) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
198
+ });
199
+ }
200
+ /**
201
+ * Get revision timeline for the current source record
202
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
203
+ */
204
+ getRevisionTimeline(providerOptions) {
205
+ return __awaiter(this, void 0, void 0, function* () {
206
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
207
+ });
208
+ }
209
+ }
210
+ exports.QaRubricSectionDb = QaRubricSectionDb;
@@ -0,0 +1,117 @@
1
+ /**
2
+ * QaAutoFail Entity Definition
3
+ *
4
+ * probe
5
+ *
6
+ * @module SupportModule
7
+ * @entity QaAutoFail
8
+ * @schemaId 4cc79871-e82d-4aef-a880-e71ce8ca7355
9
+ *
10
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
11
+ * Generated from Odin schema definition
12
+ */
13
+ import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
+ import { QaRubricProperties } from './QaRubric';
15
+ /**
16
+ * Available types for QaAutoFail records
17
+ */
18
+ export declare enum QaAutoFailEntityTypes {
19
+ /** This is the default record type */
20
+ DEFAULT = "DEFAULT"
21
+ }
22
+ /**
23
+ * Property keys for QaAutoFail
24
+ * Use these constants instead of string literals for type safety
25
+ */
26
+ export declare enum QaAutoFailPropertyKeys {
27
+ /** The rubric this auto-fail belongs to. */
28
+ RubricId = "RubricId",
29
+ /** Auto-fail identifier, AF1…AF12. Stable across versions. */
30
+ Code = "Code",
31
+ /** Short auto-fail title, e.g. "GDPR / confidentiality violation". */
32
+ Title = "Title",
33
+ /** What triggers this auto-fail. */
34
+ Description = "Description",
35
+ /** Whether this auto-fail applies on this channel (e.g. hanging-up is off for chat/email, on for call). */
36
+ Active = "Active",
37
+ /** Display order. */
38
+ Position = "Position"
39
+ }
40
+ /**
41
+ * Properties for QaAutoFail records
42
+ *
43
+ * @see SupportModule:QaAutoFail
44
+ */
45
+ export interface QaAutoFailProperties {
46
+ /** The rubric this auto-fail belongs to.
47
+ *
48
+ * @type {LOOKUP}
49
+ * @default
50
+ */
51
+ RubricId: string;
52
+ /** Auto-fail identifier, AF1…AF12. Stable across versions.
53
+ *
54
+ * @type {TEXT}
55
+ * @default
56
+ */
57
+ Code: string;
58
+ /** Short auto-fail title, e.g. "GDPR / confidentiality violation".
59
+ *
60
+ * @type {TEXT}
61
+ * @default
62
+ */
63
+ Title: string;
64
+ /** What triggers this auto-fail.
65
+ *
66
+ * @type {TEXT_LONG}
67
+ * @default
68
+ */
69
+ Description: string;
70
+ /** Whether this auto-fail applies on this channel (e.g. hanging-up is off for chat/email, on for call).
71
+ *
72
+ * @type {BOOLEAN}
73
+ * @default true
74
+ */
75
+ Active: boolean;
76
+ /** Display order.
77
+ *
78
+ * @type {NUMBER}
79
+ * @default
80
+ */
81
+ Position: number;
82
+ }
83
+ /**
84
+ * QaAutoFail entity from SupportModule
85
+ *
86
+ * probe
87
+ *
88
+ * @module SupportModule
89
+ * @entity QaAutoFail
90
+ * @schemaId 4cc79871-e82d-4aef-a880-e71ce8ca7355
91
+ * @recordPrefix QAF
92
+ * @capabilities searchable, updateable, undeletable, triggerable
93
+ */
94
+ export declare class QaAutoFail extends OdinRecord<QaAutoFailProperties> {
95
+ entity: 'SupportModule:QaAutoFail';
96
+ type: QaAutoFailEntityTypes;
97
+ schemaId: '4cc79871-e82d-4aef-a880-e71ce8ca7355';
98
+ properties: QaAutoFailProperties;
99
+ /** Linked QaRubric records (Rubric__AutoFail) */
100
+ QaRubric: OdinLink<LinkedOdinRecord<QaRubricProperties>>;
101
+ }
102
+ /**
103
+ * RabbitMQ routing keys for QaAutoFail events
104
+ */
105
+ export declare const ROUTING_KEY_QA_AUTO_FAIL_CREATED = "SupportModule.QaAutoFail.SubDbRecordCreated";
106
+ export declare const ROUTING_KEY_QA_AUTO_FAIL_UPDATED = "SupportModule.QaAutoFail.SubDbRecordUpdated";
107
+ export declare const ROUTING_KEY_QA_AUTO_FAIL_DELETED = "SupportModule.QaAutoFail.SubDbRecordDeleted";
108
+ /**
109
+ * Type-specific routing keys for QaAutoFail events
110
+ * Subscribe to these for events on specific entity types only
111
+ */
112
+ /** This is the default record type created */
113
+ export declare const ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_CREATED = "SupportModule.QaAutoFail.DEFAULT.SubDbRecordCreated";
114
+ /** This is the default record type updated */
115
+ export declare const ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_UPDATED = "SupportModule.QaAutoFail.DEFAULT.SubDbRecordUpdated";
116
+ /** This is the default record type deleted */
117
+ export declare const ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_DELETED = "SupportModule.QaAutoFail.DEFAULT.SubDbRecordDeleted";
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ /**
3
+ * QaAutoFail Entity Definition
4
+ *
5
+ * probe
6
+ *
7
+ * @module SupportModule
8
+ * @entity QaAutoFail
9
+ * @schemaId 4cc79871-e82d-4aef-a880-e71ce8ca7355
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_QA_AUTO_FAIL_DEFAULT_DELETED = exports.ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_UPDATED = exports.ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_CREATED = exports.ROUTING_KEY_QA_AUTO_FAIL_DELETED = exports.ROUTING_KEY_QA_AUTO_FAIL_UPDATED = exports.ROUTING_KEY_QA_AUTO_FAIL_CREATED = exports.QaAutoFail = exports.QaAutoFailPropertyKeys = exports.QaAutoFailEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for QaAutoFail records
19
+ */
20
+ var QaAutoFailEntityTypes;
21
+ (function (QaAutoFailEntityTypes) {
22
+ /** This is the default record type */
23
+ QaAutoFailEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(QaAutoFailEntityTypes = exports.QaAutoFailEntityTypes || (exports.QaAutoFailEntityTypes = {}));
25
+ /**
26
+ * Property keys for QaAutoFail
27
+ * Use these constants instead of string literals for type safety
28
+ */
29
+ var QaAutoFailPropertyKeys;
30
+ (function (QaAutoFailPropertyKeys) {
31
+ /** The rubric this auto-fail belongs to. */
32
+ QaAutoFailPropertyKeys["RubricId"] = "RubricId";
33
+ /** Auto-fail identifier, AF1…AF12. Stable across versions. */
34
+ QaAutoFailPropertyKeys["Code"] = "Code";
35
+ /** Short auto-fail title, e.g. "GDPR / confidentiality violation". */
36
+ QaAutoFailPropertyKeys["Title"] = "Title";
37
+ /** What triggers this auto-fail. */
38
+ QaAutoFailPropertyKeys["Description"] = "Description";
39
+ /** Whether this auto-fail applies on this channel (e.g. hanging-up is off for chat/email, on for call). */
40
+ QaAutoFailPropertyKeys["Active"] = "Active";
41
+ /** Display order. */
42
+ QaAutoFailPropertyKeys["Position"] = "Position";
43
+ })(QaAutoFailPropertyKeys = exports.QaAutoFailPropertyKeys || (exports.QaAutoFailPropertyKeys = {}));
44
+ /**
45
+ * QaAutoFail entity from SupportModule
46
+ *
47
+ * probe
48
+ *
49
+ * @module SupportModule
50
+ * @entity QaAutoFail
51
+ * @schemaId 4cc79871-e82d-4aef-a880-e71ce8ca7355
52
+ * @recordPrefix QAF
53
+ * @capabilities searchable, updateable, undeletable, triggerable
54
+ */
55
+ class QaAutoFail extends core_1.OdinRecord {
56
+ }
57
+ exports.QaAutoFail = QaAutoFail;
58
+ // ============================================
59
+ // RABBITMQ EVENT ROUTING KEYS
60
+ // ============================================
61
+ /**
62
+ * RabbitMQ routing keys for QaAutoFail events
63
+ */
64
+ exports.ROUTING_KEY_QA_AUTO_FAIL_CREATED = 'SupportModule.QaAutoFail.SubDbRecordCreated';
65
+ exports.ROUTING_KEY_QA_AUTO_FAIL_UPDATED = 'SupportModule.QaAutoFail.SubDbRecordUpdated';
66
+ exports.ROUTING_KEY_QA_AUTO_FAIL_DELETED = 'SupportModule.QaAutoFail.SubDbRecordDeleted';
67
+ /**
68
+ * Type-specific routing keys for QaAutoFail events
69
+ * Subscribe to these for events on specific entity types only
70
+ */
71
+ /** This is the default record type created */
72
+ exports.ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_CREATED = 'SupportModule.QaAutoFail.DEFAULT.SubDbRecordCreated';
73
+ /** This is the default record type updated */
74
+ exports.ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_UPDATED = 'SupportModule.QaAutoFail.DEFAULT.SubDbRecordUpdated';
75
+ /** This is the default record type deleted */
76
+ exports.ROUTING_KEY_QA_AUTO_FAIL_DEFAULT_DELETED = 'SupportModule.QaAutoFail.DEFAULT.SubDbRecordDeleted';
@@ -102,7 +102,17 @@ export declare enum QaReportPropertyKeys {
102
102
  /** Free text from the person giving feedback. TEXT, not TEXT_LONG: the ceiling is the same either way, about 2,700 characters of varied text, which is far more than a comment needs. */
103
103
  FeedbackComment = "FeedbackComment",
104
104
  /** When the feedback was given. Separate from updatedAt, which moves on any change to the record. */
105
- FeedbackAt = "FeedbackAt"
105
+ FeedbackAt = "FeedbackAt",
106
+ /** Record number of the QaRubric the report was scored against, e.g. QRB2. Empty when the Databricks prompt's built-in rubric was used. */
107
+ Rubric = "Rubric",
108
+ /** Version of that QaRubric at the time of scoring. */
109
+ RubricVersion = "RubricVersion",
110
+ /** SHA-256 of the exact scoring_criteria string sent to Databricks, confirmed by the model. Two reports with the same value were scored against identical criteria. */
111
+ RubricSha256 = "RubricSha256",
112
+ /** S3 URL of the exact scoring_criteria JSON sent with this report, so the criteria that produced the score can always be read back. */
113
+ RubricSnapshotUrl = "RubricSnapshotUrl",
114
+ /** S3 URL of qa_result: the verdict and points for every rubric item, the section totals and the score, all computed in code by the Databricks endpoint. Only set when the report was scored against an Odin rubric. Per-item analytics read this. */
115
+ QaResultUrl = "QaResultUrl"
106
116
  }
107
117
  /**
108
118
  * Properties for QaReport records
@@ -198,6 +208,36 @@ export interface QaReportProperties {
198
208
  * @default
199
209
  */
200
210
  FeedbackAt: string;
211
+ /** Record number of the QaRubric the report was scored against, e.g. QRB2. Empty when the Databricks prompt's built-in rubric was used.
212
+ *
213
+ * @type {TEXT}
214
+ * @default
215
+ */
216
+ Rubric: string;
217
+ /** Version of that QaRubric at the time of scoring.
218
+ *
219
+ * @type {NUMBER}
220
+ * @default
221
+ */
222
+ RubricVersion: number;
223
+ /** SHA-256 of the exact scoring_criteria string sent to Databricks, confirmed by the model. Two reports with the same value were scored against identical criteria.
224
+ *
225
+ * @type {TEXT}
226
+ * @default
227
+ */
228
+ RubricSha256: string;
229
+ /** S3 URL of the exact scoring_criteria JSON sent with this report, so the criteria that produced the score can always be read back.
230
+ *
231
+ * @type {TEXT}
232
+ * @default
233
+ */
234
+ RubricSnapshotUrl: string;
235
+ /** S3 URL of qa_result: the verdict and points for every rubric item, the section totals and the score, all computed in code by the Databricks endpoint. Only set when the report was scored against an Odin rubric. Per-item analytics read this.
236
+ *
237
+ * @type {TEXT}
238
+ * @default
239
+ */
240
+ QaResultUrl: string;
201
241
  }
202
242
  /**
203
243
  * QaReport entity from SupportModule
@@ -110,6 +110,16 @@ var QaReportPropertyKeys;
110
110
  QaReportPropertyKeys["FeedbackComment"] = "FeedbackComment";
111
111
  /** When the feedback was given. Separate from updatedAt, which moves on any change to the record. */
112
112
  QaReportPropertyKeys["FeedbackAt"] = "FeedbackAt";
113
+ /** Record number of the QaRubric the report was scored against, e.g. QRB2. Empty when the Databricks prompt's built-in rubric was used. */
114
+ QaReportPropertyKeys["Rubric"] = "Rubric";
115
+ /** Version of that QaRubric at the time of scoring. */
116
+ QaReportPropertyKeys["RubricVersion"] = "RubricVersion";
117
+ /** SHA-256 of the exact scoring_criteria string sent to Databricks, confirmed by the model. Two reports with the same value were scored against identical criteria. */
118
+ QaReportPropertyKeys["RubricSha256"] = "RubricSha256";
119
+ /** S3 URL of the exact scoring_criteria JSON sent with this report, so the criteria that produced the score can always be read back. */
120
+ QaReportPropertyKeys["RubricSnapshotUrl"] = "RubricSnapshotUrl";
121
+ /** S3 URL of qa_result: the verdict and points for every rubric item, the section totals and the score, all computed in code by the Databricks endpoint. Only set when the report was scored against an Odin rubric. Per-item analytics read this. */
122
+ QaReportPropertyKeys["QaResultUrl"] = "QaResultUrl";
113
123
  })(QaReportPropertyKeys = exports.QaReportPropertyKeys || (exports.QaReportPropertyKeys = {}));
114
124
  /**
115
125
  * QaReport entity from SupportModule