@d19n/youfibre-odin-sdk 2.0.374 → 2.0.376

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 (30) hide show
  1. package/README.md +4 -2
  2. package/dist/actions-v2/OrderBuilderCreateContactDto.d.ts +76 -9
  3. package/dist/actions-v2/OrderBuilderUpdateContactDto.d.ts +9 -16
  4. package/dist/actions-v2/SetContactYouFibreTvInterestDto.d.ts +72 -0
  5. package/dist/actions-v2/SetContactYouFibreTvInterestDto.js +56 -0
  6. package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.d.ts +54 -4
  7. package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.js +2 -2
  8. package/dist/api-sdk-v2/QaBatchApi.d.ts +2 -0
  9. package/dist/api-sdk-v2/QaBatchApi.js +6 -0
  10. package/dist/api-sdk-v2/QaBatchSummaryApi.d.ts +48 -0
  11. package/dist/api-sdk-v2/QaBatchSummaryApi.js +155 -0
  12. package/dist/db-sdk-v2/QaBatchDb.d.ts +2 -0
  13. package/dist/db-sdk-v2/QaBatchDb.js +6 -0
  14. package/dist/db-sdk-v2/QaBatchSummaryDb.d.ts +120 -0
  15. package/dist/db-sdk-v2/QaBatchSummaryDb.js +204 -0
  16. package/dist/entities-v2/Contact.d.ts +9 -1
  17. package/dist/entities-v2/Contact.js +2 -0
  18. package/dist/entities-v2/Document.d.ts +2 -0
  19. package/dist/entities-v2/Document.js +2 -0
  20. package/dist/entities-v2/QaBatch.d.ts +46 -1
  21. package/dist/entities-v2/QaBatch.js +25 -1
  22. package/dist/entities-v2/QaBatchSummary.d.ts +219 -0
  23. package/dist/entities-v2/QaBatchSummary.js +124 -0
  24. package/dist/entities-v2/VoiceConfiguration.d.ts +130 -130
  25. package/dist/entities-v2/VoiceConfiguration.js +46 -46
  26. package/dist/entities-v2/WorkOrder.d.ts +99 -1
  27. package/dist/entities-v2/WorkOrder.js +2 -0
  28. package/dist/records-v2/ContactRecord.d.ts +28 -0
  29. package/dist/records-v2/ContactRecord.js +37 -0
  30. package/package.json +1 -1
@@ -0,0 +1,219 @@
1
+ /**
2
+ * QaBatchSummary Entity Definition
3
+ *
4
+ * The AI-written overall report on one bulk QA run: the agent or team, what they do well, what recurs, what to coach, with the case numbers behind each point. Written only by youfibre-api-support.
5
+ *
6
+ * @module SupportModule
7
+ * @entity QaBatchSummary
8
+ * @schemaId c932a484-143a-4b2d-bf01-88b9fb9fc9df
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 { QaBatchProperties } from './QaBatch';
15
+ /**
16
+ * Available types for QaBatchSummary records
17
+ */
18
+ export declare enum QaBatchSummaryEntityTypes {
19
+ /** This is the default record type */
20
+ DEFAULT = "DEFAULT"
21
+ }
22
+ /**
23
+ * Valid values for QaBatchSummary.Scope
24
+ *
25
+ * AGENT: one agent. TEAM: a team, with a per-agent section and a team synthesis.
26
+ *
27
+ * @remarks Available options:
28
+ * - `AGENT` - Agent
29
+ * - `TEAM` - Team
30
+ */
31
+ export declare enum QaBatchSummaryScope {
32
+ AGENT = "AGENT",
33
+ TEAM = "TEAM"
34
+ }
35
+ /**
36
+ * Valid values for QaBatchSummary.Status
37
+ *
38
+ * PENDING while the model writes it; COMPLETE when the files are stored; FAILED with Error when it could not be written.
39
+ *
40
+ * @remarks Available options:
41
+ * - `COMPLETE` - Complete
42
+ * - `FAILED` - Failed
43
+ * - `PENDING` - Pending
44
+ */
45
+ export declare enum QaBatchSummaryStatus {
46
+ COMPLETE = "COMPLETE",
47
+ FAILED = "FAILED",
48
+ PENDING = "PENDING"
49
+ }
50
+ /**
51
+ * Property keys for QaBatchSummary
52
+ * Use these constants instead of string literals for type safety
53
+ */
54
+ export declare enum QaBatchSummaryPropertyKeys {
55
+ /** AGENT: one agent. TEAM: a team, with a per-agent section and a team synthesis. */
56
+ Scope = "Scope",
57
+ /** The agent summarised, for an AGENT summary. */
58
+ AgentId = "AgentId",
59
+ /** The agent's display name at the time. */
60
+ AgentName = "AgentName",
61
+ /** The team summarised, for a TEAM summary. */
62
+ TeamId = "TeamId",
63
+ /** The team's name at the time. */
64
+ TeamName = "TeamName",
65
+ /** PENDING while the model writes it; COMPLETE when the files are stored; FAILED with Error when it could not be written. */
66
+ Status = "Status",
67
+ /** How many COMPLETE QA reports of the run the summary was built from. */
68
+ ReportCount = "ReportCount",
69
+ /** The mean score of the reports read, computed in code. */
70
+ AverageScore = "AverageScore",
71
+ /** S3 URL of the rendered summary. */
72
+ ReportUrl = "ReportUrl",
73
+ /** S3 URL of the structured summary: the model's sections plus the figures computed in code. */
74
+ SummaryUrl = "SummaryUrl",
75
+ /** The model that wrote it, and the prompt version. */
76
+ Model = "Model",
77
+ /** How many model calls the reports were split across before the final synthesis. */
78
+ Chunks = "Chunks",
79
+ /** When the summary was stored. */
80
+ GeneratedAt = "GeneratedAt",
81
+ /** Why the summary could not be written, when Status is FAILED. */
82
+ Error = "Error",
83
+ /** The bulk QA run this summary is about. */
84
+ BatchId = "BatchId"
85
+ }
86
+ /**
87
+ * Properties for QaBatchSummary records
88
+ *
89
+ * @see SupportModule:QaBatchSummary
90
+ */
91
+ export interface QaBatchSummaryProperties {
92
+ /** AGENT: one agent. TEAM: a team, with a per-agent section and a team synthesis.
93
+ *
94
+ * @type {ENUM}
95
+ * @default AGENT
96
+ * @enum {QaBatchSummaryScope}
97
+ */
98
+ Scope: QaBatchSummaryScope;
99
+ /** The agent summarised, for an AGENT summary.
100
+ *
101
+ * @type {TEXT}
102
+ * @default
103
+ */
104
+ AgentId: string;
105
+ /** The agent's display name at the time.
106
+ *
107
+ * @type {TEXT}
108
+ * @default
109
+ */
110
+ AgentName: string;
111
+ /** The team summarised, for a TEAM summary.
112
+ *
113
+ * @type {TEXT}
114
+ * @default
115
+ */
116
+ TeamId: string;
117
+ /** The team's name at the time.
118
+ *
119
+ * @type {TEXT}
120
+ * @default
121
+ */
122
+ TeamName: string;
123
+ /** PENDING while the model writes it; COMPLETE when the files are stored; FAILED with Error when it could not be written.
124
+ *
125
+ * @type {ENUM}
126
+ * @default PENDING
127
+ * @enum {QaBatchSummaryStatus}
128
+ */
129
+ Status: QaBatchSummaryStatus;
130
+ /** How many COMPLETE QA reports of the run the summary was built from.
131
+ *
132
+ * @type {NUMBER}
133
+ * @default
134
+ */
135
+ ReportCount: number;
136
+ /** The mean score of the reports read, computed in code.
137
+ *
138
+ * @type {NUMBER}
139
+ * @default
140
+ */
141
+ AverageScore: number;
142
+ /** S3 URL of the rendered summary.
143
+ *
144
+ * @type {TEXT}
145
+ * @default
146
+ */
147
+ ReportUrl: string;
148
+ /** S3 URL of the structured summary: the model's sections plus the figures computed in code.
149
+ *
150
+ * @type {TEXT}
151
+ * @default
152
+ */
153
+ SummaryUrl: string;
154
+ /** The model that wrote it, and the prompt version.
155
+ *
156
+ * @type {TEXT}
157
+ * @default
158
+ */
159
+ Model: string;
160
+ /** How many model calls the reports were split across before the final synthesis.
161
+ *
162
+ * @type {NUMBER}
163
+ * @default
164
+ */
165
+ Chunks: number;
166
+ /** When the summary was stored.
167
+ *
168
+ * @type {DATE_TIME}
169
+ * @default
170
+ */
171
+ GeneratedAt: string;
172
+ /** Why the summary could not be written, when Status is FAILED.
173
+ *
174
+ * @type {TEXT_LONG}
175
+ * @default
176
+ */
177
+ Error: string;
178
+ /** The bulk QA run this summary is about.
179
+ *
180
+ * @type {LOOKUP}
181
+ * @default
182
+ */
183
+ BatchId: string;
184
+ }
185
+ /**
186
+ * QaBatchSummary entity from SupportModule
187
+ *
188
+ * The AI-written overall report on one bulk QA run: the agent or team, what they do well, what recurs, what to coach, with the case numbers behind each point. Written only by youfibre-api-support.
189
+ *
190
+ * @module SupportModule
191
+ * @entity QaBatchSummary
192
+ * @schemaId c932a484-143a-4b2d-bf01-88b9fb9fc9df
193
+ * @recordPrefix QAS
194
+ * @capabilities searchable, updateable, undeletable, triggerable
195
+ */
196
+ export declare class QaBatchSummary extends OdinRecord<QaBatchSummaryProperties> {
197
+ entity: 'SupportModule:QaBatchSummary';
198
+ type: QaBatchSummaryEntityTypes;
199
+ schemaId: 'c932a484-143a-4b2d-bf01-88b9fb9fc9df';
200
+ properties: QaBatchSummaryProperties;
201
+ /** Linked QaBatch records (QaBatch__Summary) */
202
+ QaBatch: OdinLink<LinkedOdinRecord<QaBatchProperties>>;
203
+ }
204
+ /**
205
+ * RabbitMQ routing keys for QaBatchSummary events
206
+ */
207
+ export declare const ROUTING_KEY_QA_BATCH_SUMMARY_CREATED = "SupportModule.QaBatchSummary.SubDbRecordCreated";
208
+ export declare const ROUTING_KEY_QA_BATCH_SUMMARY_UPDATED = "SupportModule.QaBatchSummary.SubDbRecordUpdated";
209
+ export declare const ROUTING_KEY_QA_BATCH_SUMMARY_DELETED = "SupportModule.QaBatchSummary.SubDbRecordDeleted";
210
+ /**
211
+ * Type-specific routing keys for QaBatchSummary events
212
+ * Subscribe to these for events on specific entity types only
213
+ */
214
+ /** This is the default record type created */
215
+ export declare const ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_CREATED = "SupportModule.QaBatchSummary.DEFAULT.SubDbRecordCreated";
216
+ /** This is the default record type updated */
217
+ export declare const ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_UPDATED = "SupportModule.QaBatchSummary.DEFAULT.SubDbRecordUpdated";
218
+ /** This is the default record type deleted */
219
+ export declare const ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_DELETED = "SupportModule.QaBatchSummary.DEFAULT.SubDbRecordDeleted";
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ /**
3
+ * QaBatchSummary Entity Definition
4
+ *
5
+ * The AI-written overall report on one bulk QA run: the agent or team, what they do well, what recurs, what to coach, with the case numbers behind each point. Written only by youfibre-api-support.
6
+ *
7
+ * @module SupportModule
8
+ * @entity QaBatchSummary
9
+ * @schemaId c932a484-143a-4b2d-bf01-88b9fb9fc9df
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_BATCH_SUMMARY_DEFAULT_DELETED = exports.ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_UPDATED = exports.ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_CREATED = exports.ROUTING_KEY_QA_BATCH_SUMMARY_DELETED = exports.ROUTING_KEY_QA_BATCH_SUMMARY_UPDATED = exports.ROUTING_KEY_QA_BATCH_SUMMARY_CREATED = exports.QaBatchSummary = exports.QaBatchSummaryPropertyKeys = exports.QaBatchSummaryStatus = exports.QaBatchSummaryScope = exports.QaBatchSummaryEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for QaBatchSummary records
19
+ */
20
+ var QaBatchSummaryEntityTypes;
21
+ (function (QaBatchSummaryEntityTypes) {
22
+ /** This is the default record type */
23
+ QaBatchSummaryEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(QaBatchSummaryEntityTypes = exports.QaBatchSummaryEntityTypes || (exports.QaBatchSummaryEntityTypes = {}));
25
+ /**
26
+ * Valid values for QaBatchSummary.Scope
27
+ *
28
+ * AGENT: one agent. TEAM: a team, with a per-agent section and a team synthesis.
29
+ *
30
+ * @remarks Available options:
31
+ * - `AGENT` - Agent
32
+ * - `TEAM` - Team
33
+ */
34
+ var QaBatchSummaryScope;
35
+ (function (QaBatchSummaryScope) {
36
+ QaBatchSummaryScope["AGENT"] = "AGENT";
37
+ QaBatchSummaryScope["TEAM"] = "TEAM";
38
+ })(QaBatchSummaryScope = exports.QaBatchSummaryScope || (exports.QaBatchSummaryScope = {}));
39
+ /**
40
+ * Valid values for QaBatchSummary.Status
41
+ *
42
+ * PENDING while the model writes it; COMPLETE when the files are stored; FAILED with Error when it could not be written.
43
+ *
44
+ * @remarks Available options:
45
+ * - `COMPLETE` - Complete
46
+ * - `FAILED` - Failed
47
+ * - `PENDING` - Pending
48
+ */
49
+ var QaBatchSummaryStatus;
50
+ (function (QaBatchSummaryStatus) {
51
+ QaBatchSummaryStatus["COMPLETE"] = "COMPLETE";
52
+ QaBatchSummaryStatus["FAILED"] = "FAILED";
53
+ QaBatchSummaryStatus["PENDING"] = "PENDING";
54
+ })(QaBatchSummaryStatus = exports.QaBatchSummaryStatus || (exports.QaBatchSummaryStatus = {}));
55
+ /**
56
+ * Property keys for QaBatchSummary
57
+ * Use these constants instead of string literals for type safety
58
+ */
59
+ var QaBatchSummaryPropertyKeys;
60
+ (function (QaBatchSummaryPropertyKeys) {
61
+ /** AGENT: one agent. TEAM: a team, with a per-agent section and a team synthesis. */
62
+ QaBatchSummaryPropertyKeys["Scope"] = "Scope";
63
+ /** The agent summarised, for an AGENT summary. */
64
+ QaBatchSummaryPropertyKeys["AgentId"] = "AgentId";
65
+ /** The agent's display name at the time. */
66
+ QaBatchSummaryPropertyKeys["AgentName"] = "AgentName";
67
+ /** The team summarised, for a TEAM summary. */
68
+ QaBatchSummaryPropertyKeys["TeamId"] = "TeamId";
69
+ /** The team's name at the time. */
70
+ QaBatchSummaryPropertyKeys["TeamName"] = "TeamName";
71
+ /** PENDING while the model writes it; COMPLETE when the files are stored; FAILED with Error when it could not be written. */
72
+ QaBatchSummaryPropertyKeys["Status"] = "Status";
73
+ /** How many COMPLETE QA reports of the run the summary was built from. */
74
+ QaBatchSummaryPropertyKeys["ReportCount"] = "ReportCount";
75
+ /** The mean score of the reports read, computed in code. */
76
+ QaBatchSummaryPropertyKeys["AverageScore"] = "AverageScore";
77
+ /** S3 URL of the rendered summary. */
78
+ QaBatchSummaryPropertyKeys["ReportUrl"] = "ReportUrl";
79
+ /** S3 URL of the structured summary: the model's sections plus the figures computed in code. */
80
+ QaBatchSummaryPropertyKeys["SummaryUrl"] = "SummaryUrl";
81
+ /** The model that wrote it, and the prompt version. */
82
+ QaBatchSummaryPropertyKeys["Model"] = "Model";
83
+ /** How many model calls the reports were split across before the final synthesis. */
84
+ QaBatchSummaryPropertyKeys["Chunks"] = "Chunks";
85
+ /** When the summary was stored. */
86
+ QaBatchSummaryPropertyKeys["GeneratedAt"] = "GeneratedAt";
87
+ /** Why the summary could not be written, when Status is FAILED. */
88
+ QaBatchSummaryPropertyKeys["Error"] = "Error";
89
+ /** The bulk QA run this summary is about. */
90
+ QaBatchSummaryPropertyKeys["BatchId"] = "BatchId";
91
+ })(QaBatchSummaryPropertyKeys = exports.QaBatchSummaryPropertyKeys || (exports.QaBatchSummaryPropertyKeys = {}));
92
+ /**
93
+ * QaBatchSummary entity from SupportModule
94
+ *
95
+ * The AI-written overall report on one bulk QA run: the agent or team, what they do well, what recurs, what to coach, with the case numbers behind each point. Written only by youfibre-api-support.
96
+ *
97
+ * @module SupportModule
98
+ * @entity QaBatchSummary
99
+ * @schemaId c932a484-143a-4b2d-bf01-88b9fb9fc9df
100
+ * @recordPrefix QAS
101
+ * @capabilities searchable, updateable, undeletable, triggerable
102
+ */
103
+ class QaBatchSummary extends core_1.OdinRecord {
104
+ }
105
+ exports.QaBatchSummary = QaBatchSummary;
106
+ // ============================================
107
+ // RABBITMQ EVENT ROUTING KEYS
108
+ // ============================================
109
+ /**
110
+ * RabbitMQ routing keys for QaBatchSummary events
111
+ */
112
+ exports.ROUTING_KEY_QA_BATCH_SUMMARY_CREATED = 'SupportModule.QaBatchSummary.SubDbRecordCreated';
113
+ exports.ROUTING_KEY_QA_BATCH_SUMMARY_UPDATED = 'SupportModule.QaBatchSummary.SubDbRecordUpdated';
114
+ exports.ROUTING_KEY_QA_BATCH_SUMMARY_DELETED = 'SupportModule.QaBatchSummary.SubDbRecordDeleted';
115
+ /**
116
+ * Type-specific routing keys for QaBatchSummary events
117
+ * Subscribe to these for events on specific entity types only
118
+ */
119
+ /** This is the default record type created */
120
+ exports.ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_CREATED = 'SupportModule.QaBatchSummary.DEFAULT.SubDbRecordCreated';
121
+ /** This is the default record type updated */
122
+ exports.ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_UPDATED = 'SupportModule.QaBatchSummary.DEFAULT.SubDbRecordUpdated';
123
+ /** This is the default record type deleted */
124
+ exports.ROUTING_KEY_QA_BATCH_SUMMARY_DEFAULT_DELETED = 'SupportModule.QaBatchSummary.DEFAULT.SubDbRecordDeleted';