@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,112 +0,0 @@
1
- /**
2
- * QaRubricSection Accessor
3
- *
4
- * Provides typed access to QaRubricSection records via API.
5
- * Returns wrapped records with typed action methods.
6
- *
7
- * @example
8
- * ```typescript
9
- * // Get existing record
10
- * const record = await accessor.get(id);
11
- * await record.updateQaRubricSection({ ... });
12
- *
13
- * // Create new record
14
- * const newRecord = accessor.new();
15
- * await newRecord.createQaRubricSection({ ... });
16
- * ```
17
- *
18
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
19
- */
20
- import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
21
- import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
22
- import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
23
- import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
24
- import { QaRubricSectionProperties } from '../entities-v2/QaRubricSection';
25
- import { QaRubricSectionRecord } from '../records-v2/QaRubricSectionRecord';
26
- /** List response with wrapped records */
27
- export interface QaRubricSectionListResponse {
28
- data: QaRubricSectionRecord[];
29
- hasMore: boolean;
30
- totalRecords: number;
31
- }
32
- /** Search response with wrapped records */
33
- export interface QaRubricSectionSearchResponse {
34
- records: QaRubricSectionRecord[];
35
- totalRecords: number;
36
- hasMore: boolean;
37
- aggregations?: Record<string, any>;
38
- }
39
- export declare class QaRubricSectionAccessor {
40
- private readonly _provider;
41
- private readonly _moduleName;
42
- private readonly _entityName;
43
- constructor(provider: ApiProvider);
44
- constructor(authParams: OauthParams);
45
- constructor(authToken: string, host?: string);
46
- get moduleName(): string;
47
- get entityName(): string;
48
- /**
49
- * Create a new empty QaRubricSection record instance for create operations.
50
- * Pre-generates an ID that can be referenced before the record is saved.
51
- *
52
- * @param id - Optional ID to use (auto-generated UUID if not provided)
53
- * @returns A new record wrapper with pre-generated ID
54
- *
55
- * @example
56
- * ```typescript
57
- * // Auto-generated ID
58
- * const note = odinClient.notes.new();
59
- * console.log(note.id); // UUID available immediately
60
- *
61
- * // Custom ID
62
- * const order = odinClient.orders.new("custom-id-123");
63
- *
64
- * // Reference ID before save
65
- * const account = odinClient.accounts.new();
66
- * const contact = odinClient.contacts.new();
67
- * await contact
68
- * .link({ id: account.id, entity: "CrmModule:Account" })
69
- * .createContact({ FirstName: "John" });
70
- * ```
71
- */
72
- new(id?: string): QaRubricSectionRecord;
73
- /**
74
- * Get a single QaRubricSection record by ID
75
- */
76
- get(id: string): Promise<QaRubricSectionRecord>;
77
- /**
78
- * Get multiple QaRubricSection records by IDs
79
- */
80
- getMany(ids: string[]): Promise<QaRubricSectionRecord[]>;
81
- /**
82
- * Search QaRubricSection records
83
- */
84
- search(params: Partial<OdinSearchV2>): Promise<QaRubricSectionSearchResponse>;
85
- /**
86
- * Search all QaRubricSection records with automatic pagination
87
- */
88
- searchAll(params: Partial<OdinSearchV2>): Promise<QaRubricSectionRecord[]>;
89
- /**
90
- * Async generator for paginating through all matching records.
91
- * Yields batches of wrapped records.
92
- */
93
- paginate(params: Partial<OdinSearchV2>): AsyncGenerator<QaRubricSectionRecord[]>;
94
- /**
95
- * Create a fluent query builder for QaRubricSection records
96
- *
97
- * @example
98
- * ```typescript
99
- * const results = await accessor
100
- * .query()
101
- * .where('Status', 'in', ['Active', 'Pending'])
102
- * .where('CreatedAt', 'gte', '2025-01-01')
103
- * .select('id', 'title', 'properties.*')
104
- * .sortBy('createdAt', 'desc')
105
- * .limit(100)
106
- * .execute();
107
- * ```
108
- */
109
- query(): QueryBuilder<QaRubricSectionProperties, QaRubricSectionRecord>;
110
- /** Access the underlying ApiProvider */
111
- get provider(): ApiProvider;
112
- }
@@ -1,191 +0,0 @@
1
- "use strict";
2
- /**
3
- * QaRubricSection Accessor
4
- *
5
- * Provides typed access to QaRubricSection records via API.
6
- * Returns wrapped records with typed action methods.
7
- *
8
- * @example
9
- * ```typescript
10
- * // Get existing record
11
- * const record = await accessor.get(id);
12
- * await record.updateQaRubricSection({ ... });
13
- *
14
- * // Create new record
15
- * const newRecord = accessor.new();
16
- * await newRecord.createQaRubricSection({ ... });
17
- * ```
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
- var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
31
- var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
32
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
33
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
34
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
35
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
36
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
37
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
38
- function fulfill(value) { resume("next", value); }
39
- function reject(value) { resume("throw", value); }
40
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
41
- };
42
- Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.QaRubricSectionAccessor = void 0;
44
- const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
45
- const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
46
- const QaRubricSectionRecord_1 = require("../records-v2/QaRubricSectionRecord");
47
- class QaRubricSectionAccessor {
48
- constructor(providerOrAuth, host) {
49
- this._moduleName = 'SupportModule';
50
- this._entityName = 'QaRubricSection';
51
- if (providerOrAuth instanceof api_provider_1.ApiProvider) {
52
- this._provider = providerOrAuth;
53
- }
54
- else if (typeof providerOrAuth === 'string') {
55
- // Auth token provided
56
- this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
57
- }
58
- else {
59
- // OauthParams provided
60
- this._provider = new api_provider_1.ApiProvider(providerOrAuth);
61
- }
62
- }
63
- get moduleName() { return this._moduleName; }
64
- get entityName() { return this._entityName; }
65
- // ============================================
66
- // RECORD CREATION
67
- // ============================================
68
- /**
69
- * Create a new empty QaRubricSection record instance for create operations.
70
- * Pre-generates an ID that can be referenced before the record is saved.
71
- *
72
- * @param id - Optional ID to use (auto-generated UUID if not provided)
73
- * @returns A new record wrapper with pre-generated ID
74
- *
75
- * @example
76
- * ```typescript
77
- * // Auto-generated ID
78
- * const note = odinClient.notes.new();
79
- * console.log(note.id); // UUID available immediately
80
- *
81
- * // Custom ID
82
- * const order = odinClient.orders.new("custom-id-123");
83
- *
84
- * // Reference ID before save
85
- * const account = odinClient.accounts.new();
86
- * const contact = odinClient.contacts.new();
87
- * await contact
88
- * .link({ id: account.id, entity: "CrmModule:Account" })
89
- * .createContact({ FirstName: "John" });
90
- * ```
91
- */
92
- new(id) {
93
- return new QaRubricSectionRecord_1.QaRubricSectionRecord(null, this._provider, id);
94
- }
95
- // ============================================
96
- // RECORD RETRIEVAL
97
- // ============================================
98
- /**
99
- * Get a single QaRubricSection record by ID
100
- */
101
- get(id) {
102
- return __awaiter(this, void 0, void 0, function* () {
103
- const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
104
- return new QaRubricSectionRecord_1.QaRubricSectionRecord(record, this._provider);
105
- });
106
- }
107
- /**
108
- * Get multiple QaRubricSection records by IDs
109
- */
110
- getMany(ids) {
111
- return __awaiter(this, void 0, void 0, function* () {
112
- if (ids.length === 0)
113
- return [];
114
- const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
115
- return records.map((r) => new QaRubricSectionRecord_1.QaRubricSectionRecord(r, this._provider));
116
- });
117
- }
118
- // ============================================
119
- // SEARCH OPERATIONS
120
- // ============================================
121
- /**
122
- * Search QaRubricSection records
123
- */
124
- search(params) {
125
- return __awaiter(this, void 0, void 0, function* () {
126
- const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
127
- return {
128
- records: result.records.map((r) => new QaRubricSectionRecord_1.QaRubricSectionRecord(r, this._provider)),
129
- totalRecords: result.totalRecords,
130
- hasMore: result.hasMore,
131
- aggregations: result.aggregations,
132
- };
133
- });
134
- }
135
- /**
136
- * Search all QaRubricSection records with automatic pagination
137
- */
138
- searchAll(params) {
139
- return __awaiter(this, void 0, void 0, function* () {
140
- const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
141
- return result.records.map((r) => new QaRubricSectionRecord_1.QaRubricSectionRecord(r, this._provider));
142
- });
143
- }
144
- /**
145
- * Async generator for paginating through all matching records.
146
- * Yields batches of wrapped records.
147
- */
148
- paginate(params) {
149
- var _a;
150
- return __asyncGenerator(this, arguments, function* paginate_1() {
151
- let hasMore = true;
152
- let searchAfter;
153
- const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
154
- while (hasMore) {
155
- const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
156
- if (result.records.length > 0) {
157
- yield yield __await(result.records.map((r) => new QaRubricSectionRecord_1.QaRubricSectionRecord(r, this._provider)));
158
- const lastRecord = result.records[result.records.length - 1];
159
- searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
160
- }
161
- hasMore = result.hasMore && result.records.length >= query.pageSize;
162
- }
163
- });
164
- }
165
- // ============================================
166
- // QUERY BUILDER
167
- // ============================================
168
- /**
169
- * Create a fluent query builder for QaRubricSection records
170
- *
171
- * @example
172
- * ```typescript
173
- * const results = await accessor
174
- * .query()
175
- * .where('Status', 'in', ['Active', 'Pending'])
176
- * .where('CreatedAt', 'gte', '2025-01-01')
177
- * .select('id', 'title', 'properties.*')
178
- * .sortBy('createdAt', 'desc')
179
- * .limit(100)
180
- * .execute();
181
- * ```
182
- */
183
- query() {
184
- return (0, query_builder_1.createQueryBuilder)(this);
185
- }
186
- /** Access the underlying ApiProvider */
187
- get provider() {
188
- return this._provider;
189
- }
190
- }
191
- exports.QaRubricSectionAccessor = QaRubricSectionAccessor;
@@ -1,102 +0,0 @@
1
- /**
2
- * UpdateQaAutoFail Action DTO
3
- *
4
- * Edit a QaAutoFail record from the Odin record page (DATA-398 QA rubrics).
5
- *
6
- * @module SupportModule
7
- * @entity QaAutoFail
8
- * @actionKey UpdateQaAutoFail
9
- * @event k1.t-hEOJjsDb.SupportModule.QaAutoFail.Update.UpdateQaAutoFail
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 UpdateQaAutoFail updated events
16
- *
17
- * @event k1.t-hEOJjsDb.SupportModule.QaAutoFail.Update.UpdateQaAutoFail
18
- */
19
- export interface UpdateQaAutoFailMessage extends OdinRecordUpdatedEvent<UpdateQaAutoFailDto, UpdateQaAutoFailProperties> {
20
- }
21
- /**
22
- * Properties for UpdateQaAutoFail action
23
- *
24
- * @property Required fields: 2
25
- * @property Optional fields: 3
26
- */
27
- export interface UpdateQaAutoFailProperties {
28
- /**
29
- * Code
30
- *
31
- * Auto-fail identifier, AF1…AF12. Stable across versions.
32
- * @type {TEXT}
33
- * @required
34
- */
35
- Code: string;
36
- /**
37
- * Title
38
- *
39
- * Short auto-fail title, e.g. "GDPR / confidentiality violation".
40
- * @type {TEXT}
41
- * @required
42
- */
43
- Title: string;
44
- /**
45
- * Description
46
- *
47
- * What triggers this auto-fail.
48
- * @type {TEXT_LONG}
49
- */
50
- Description?: string | null;
51
- /**
52
- * Active
53
- *
54
- * Whether this auto-fail applies on this channel (e.g. hanging-up is off for chat/email, on for call).
55
- * @type {BOOLEAN}
56
- */
57
- Active?: boolean | null;
58
- /**
59
- * Position
60
- *
61
- * Display order.
62
- * @type {NUMBER}
63
- */
64
- Position?: number | null;
65
- }
66
- /**
67
- * Edit auto-fail
68
- *
69
- * Edit a QaAutoFail record from the Odin record page (DATA-398 QA rubrics).
70
- *
71
- * @actionType UPDATE - Updates an existing QaAutoFail record
72
- * @module SupportModule
73
- * @entity QaAutoFail
74
- * @event k1.t-hEOJjsDb.SupportModule.QaAutoFail.Update.UpdateQaAutoFail
75
- * @permission schema.action.updateqaautofail.trigger
76
- * @benchmark This action is tracked for performance benchmarks
77
- */
78
- export declare class UpdateQaAutoFailDto extends OdinRecordUpdateDto<UpdateQaAutoFailProperties> {
79
- /** Used by SDK generators to identify action type */
80
- static readonly ACTION_TYPE = "UPDATE";
81
- static readonly ACTION_KEY = "UpdateQaAutoFail";
82
- static readonly MODULE_NAME = "SupportModule";
83
- static readonly ENTITIES: string[];
84
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.QaAutoFail.Update.UpdateQaAutoFail";
85
- static readonly PERMISSION = "schema.action.updateqaautofail.trigger";
86
- /** Step metadata - entity this action targets */
87
- static readonly STEP_ENTITY = "SupportModule:QaAutoFail";
88
- static readonly STEP_SCHEMA_ID = "4cc79871-e82d-4aef-a880-e71ce8ca7355";
89
- static readonly STEP_SCHEMA_ACTION_ID = "84c3aa81-5c39-4cd0-a9e2-7609357cc777";
90
- static readonly AUTO_LINK_PARENT = false;
91
- readonly actionName: string;
92
- readonly schemaActionId: string;
93
- readonly entity: string;
94
- constructor(record: OdinRecord<any> | {
95
- id: string;
96
- entity: string;
97
- type?: string;
98
- }, properties: UpdateQaAutoFailProperties, options?: {
99
- journeyId?: string;
100
- stageKey?: string;
101
- });
102
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /**
3
- * UpdateQaAutoFail Action DTO
4
- *
5
- * Edit a QaAutoFail record from the Odin record page (DATA-398 QA rubrics).
6
- *
7
- * @module SupportModule
8
- * @entity QaAutoFail
9
- * @actionKey UpdateQaAutoFail
10
- * @event k1.t-hEOJjsDb.SupportModule.QaAutoFail.Update.UpdateQaAutoFail
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.UpdateQaAutoFailDto = void 0;
16
- const core_1 = require("@d19n/odin-types/dist/core");
17
- /**
18
- * Edit auto-fail
19
- *
20
- * Edit a QaAutoFail record from the Odin record page (DATA-398 QA rubrics).
21
- *
22
- * @actionType UPDATE - Updates an existing QaAutoFail record
23
- * @module SupportModule
24
- * @entity QaAutoFail
25
- * @event k1.t-hEOJjsDb.SupportModule.QaAutoFail.Update.UpdateQaAutoFail
26
- * @permission schema.action.updateqaautofail.trigger
27
- * @benchmark This action is tracked for performance benchmarks
28
- */
29
- class UpdateQaAutoFailDto 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 = 'UpdateQaAutoFail';
40
- this.schemaActionId = '84c3aa81-5c39-4cd0-a9e2-7609357cc777';
41
- this.entity = 'SupportModule:QaAutoFail';
42
- }
43
- }
44
- exports.UpdateQaAutoFailDto = UpdateQaAutoFailDto;
45
- /** Used by SDK generators to identify action type */
46
- UpdateQaAutoFailDto.ACTION_TYPE = 'UPDATE';
47
- UpdateQaAutoFailDto.ACTION_KEY = 'UpdateQaAutoFail';
48
- UpdateQaAutoFailDto.MODULE_NAME = 'SupportModule';
49
- UpdateQaAutoFailDto.ENTITIES = ['QaAutoFail'];
50
- UpdateQaAutoFailDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.QaAutoFail.Update.UpdateQaAutoFail';
51
- UpdateQaAutoFailDto.PERMISSION = 'schema.action.updateqaautofail.trigger';
52
- /** Step metadata - entity this action targets */
53
- UpdateQaAutoFailDto.STEP_ENTITY = 'SupportModule:QaAutoFail';
54
- UpdateQaAutoFailDto.STEP_SCHEMA_ID = '4cc79871-e82d-4aef-a880-e71ce8ca7355';
55
- UpdateQaAutoFailDto.STEP_SCHEMA_ACTION_ID = '84c3aa81-5c39-4cd0-a9e2-7609357cc777';
56
- UpdateQaAutoFailDto.AUTO_LINK_PARENT = false;
@@ -1,103 +0,0 @@
1
- /**
2
- * UpdateQaRubric Action DTO
3
- *
4
- * Edit a QaRubric record from the Odin record page (DATA-398 QA rubrics).
5
- *
6
- * @module SupportModule
7
- * @entity QaRubric
8
- * @actionKey UpdateQaRubric
9
- * @event k1.t-hEOJjsDb.SupportModule.QaRubric.Update.UpdateQaRubric
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 UpdateQaRubric updated events
16
- *
17
- * @event k1.t-hEOJjsDb.SupportModule.QaRubric.Update.UpdateQaRubric
18
- */
19
- export interface UpdateQaRubricMessage extends OdinRecordUpdatedEvent<UpdateQaRubricDto, UpdateQaRubricProperties> {
20
- }
21
- /**
22
- * Properties for UpdateQaRubric action
23
- *
24
- * @property Required fields: 3
25
- * @property Optional fields: 2
26
- */
27
- export interface UpdateQaRubricProperties {
28
- /**
29
- * Channel
30
- *
31
- * Which support channel this rubric scores. Each channel has its own rubric.
32
- * @type {ENUM}
33
- * @required
34
- */
35
- Channel: string;
36
- /**
37
- * Version
38
- *
39
- * Version number within a channel. A new draft increments it; publishing archives the previous.
40
- * @type {NUMBER}
41
- * @required
42
- */
43
- Version: number;
44
- /**
45
- * Status
46
- *
47
- * DRAFT while being edited, ACTIVE once published (one per channel), ARCHIVED when superseded.
48
- * @type {ENUM}
49
- * @required
50
- */
51
- Status: string;
52
- /**
53
- * Benchmark %
54
- *
55
- * The pass benchmark for this rubric, as a percentage. Currently 95.
56
- * @type {NUMBER}
57
- */
58
- Benchmark?: number | null;
59
- /**
60
- * Effective From
61
- *
62
- * When this version became the active rubric for its channel.
63
- * @type {DATE_TIME}
64
- */
65
- EffectiveFrom?: string | null;
66
- }
67
- /**
68
- * Edit rubric
69
- *
70
- * Edit a QaRubric record from the Odin record page (DATA-398 QA rubrics).
71
- *
72
- * @actionType UPDATE - Updates an existing QaRubric record
73
- * @module SupportModule
74
- * @entity QaRubric
75
- * @event k1.t-hEOJjsDb.SupportModule.QaRubric.Update.UpdateQaRubric
76
- * @permission schema.action.updateqarubric.trigger
77
- * @benchmark This action is tracked for performance benchmarks
78
- */
79
- export declare class UpdateQaRubricDto extends OdinRecordUpdateDto<UpdateQaRubricProperties> {
80
- /** Used by SDK generators to identify action type */
81
- static readonly ACTION_TYPE = "UPDATE";
82
- static readonly ACTION_KEY = "UpdateQaRubric";
83
- static readonly MODULE_NAME = "SupportModule";
84
- static readonly ENTITIES: string[];
85
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.QaRubric.Update.UpdateQaRubric";
86
- static readonly PERMISSION = "schema.action.updateqarubric.trigger";
87
- /** Step metadata - entity this action targets */
88
- static readonly STEP_ENTITY = "SupportModule:QaRubric";
89
- static readonly STEP_SCHEMA_ID = "f0d32cd1-f8f6-4269-953a-78e1643148ee";
90
- static readonly STEP_SCHEMA_ACTION_ID = "1495a4b9-e61a-4c01-8518-c0dfe6df01fe";
91
- static readonly AUTO_LINK_PARENT = false;
92
- readonly actionName: string;
93
- readonly schemaActionId: string;
94
- readonly entity: string;
95
- constructor(record: OdinRecord<any> | {
96
- id: string;
97
- entity: string;
98
- type?: string;
99
- }, properties: UpdateQaRubricProperties, options?: {
100
- journeyId?: string;
101
- stageKey?: string;
102
- });
103
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /**
3
- * UpdateQaRubric Action DTO
4
- *
5
- * Edit a QaRubric record from the Odin record page (DATA-398 QA rubrics).
6
- *
7
- * @module SupportModule
8
- * @entity QaRubric
9
- * @actionKey UpdateQaRubric
10
- * @event k1.t-hEOJjsDb.SupportModule.QaRubric.Update.UpdateQaRubric
11
- *
12
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.UpdateQaRubricDto = void 0;
16
- const core_1 = require("@d19n/odin-types/dist/core");
17
- /**
18
- * Edit rubric
19
- *
20
- * Edit a QaRubric record from the Odin record page (DATA-398 QA rubrics).
21
- *
22
- * @actionType UPDATE - Updates an existing QaRubric record
23
- * @module SupportModule
24
- * @entity QaRubric
25
- * @event k1.t-hEOJjsDb.SupportModule.QaRubric.Update.UpdateQaRubric
26
- * @permission schema.action.updateqarubric.trigger
27
- * @benchmark This action is tracked for performance benchmarks
28
- */
29
- class UpdateQaRubricDto 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 = 'UpdateQaRubric';
40
- this.schemaActionId = '1495a4b9-e61a-4c01-8518-c0dfe6df01fe';
41
- this.entity = 'SupportModule:QaRubric';
42
- }
43
- }
44
- exports.UpdateQaRubricDto = UpdateQaRubricDto;
45
- /** Used by SDK generators to identify action type */
46
- UpdateQaRubricDto.ACTION_TYPE = 'UPDATE';
47
- UpdateQaRubricDto.ACTION_KEY = 'UpdateQaRubric';
48
- UpdateQaRubricDto.MODULE_NAME = 'SupportModule';
49
- UpdateQaRubricDto.ENTITIES = ['QaRubric'];
50
- UpdateQaRubricDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.QaRubric.Update.UpdateQaRubric';
51
- UpdateQaRubricDto.PERMISSION = 'schema.action.updateqarubric.trigger';
52
- /** Step metadata - entity this action targets */
53
- UpdateQaRubricDto.STEP_ENTITY = 'SupportModule:QaRubric';
54
- UpdateQaRubricDto.STEP_SCHEMA_ID = 'f0d32cd1-f8f6-4269-953a-78e1643148ee';
55
- UpdateQaRubricDto.STEP_SCHEMA_ACTION_ID = '1495a4b9-e61a-4c01-8518-c0dfe6df01fe';
56
- UpdateQaRubricDto.AUTO_LINK_PARENT = false;