@d19n/youfibre-odin-sdk 2.0.351 → 2.0.352

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.
@@ -0,0 +1,195 @@
1
+ /**
2
+ * AiTagItem Entity Definition
3
+ *
4
+ * One label in one version of a support AI list: the label the model answers, its group, its order, whether it is still in use, and for sentiment the definition the model is given.
5
+ *
6
+ * @module SupportModule
7
+ * @entity AiTagItem
8
+ * @schemaId 2d3879d9-5bcd-4ddb-9431-c7d6c198f3a0
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 { AiTagSetProperties } from './AiTagSet';
15
+ /**
16
+ * Available types for AiTagItem records
17
+ */
18
+ export declare enum AiTagItemEntityTypes {
19
+ /** This is the default record type */
20
+ DEFAULT = "DEFAULT"
21
+ }
22
+ /**
23
+ * Valid values for AiTagItem.ItemType
24
+ *
25
+ * Sentiment only: LABEL for a label the model can answer, RULES for the rules text (held in Definition, with Label "Rules").
26
+ *
27
+ * @remarks Available options:
28
+ * - `LABEL` - Label
29
+ * - `RULES` - Rules
30
+ */
31
+ export declare enum AiTagItemItemType {
32
+ LABEL = "LABEL",
33
+ RULES = "RULES"
34
+ }
35
+ /**
36
+ * Valid values for AiTagItem.ItemStatus
37
+ *
38
+ * Sentiment only: DRAFT while being edited, ACTIVE once published (one per item key), ARCHIVED when replaced.
39
+ *
40
+ * @remarks Available options:
41
+ * - `ACTIVE` - Active
42
+ * - `ARCHIVED` - Archived
43
+ * - `DRAFT` - Draft
44
+ */
45
+ export declare enum AiTagItemItemStatus {
46
+ ACTIVE = "ACTIVE",
47
+ ARCHIVED = "ARCHIVED",
48
+ DRAFT = "DRAFT"
49
+ }
50
+ /**
51
+ * Property keys for AiTagItem
52
+ * Use these constants instead of string literals for type safety
53
+ */
54
+ export declare enum AiTagItemPropertyKeys {
55
+ /** The set (version of a list) this label belongs to. */
56
+ TagSetId = "TagSetId",
57
+ /** What the model answers and what is written on the case, e.g. "Billing (Refund)" or "ANGRY". */
58
+ Label = "Label",
59
+ /** The group the label is shown under, e.g. Cancellation. Free text, so leads can start new groups. */
60
+ TagGroup = "TagGroup",
61
+ /** Sentiment only: what the label means, as given to the model. Required on sentiment labels; empty for case tags. */
62
+ Definition = "Definition",
63
+ /** Order in the list, from 1. For sentiment this is the priority: the higher label wins when several apply. */
64
+ Position = "Position",
65
+ /** False means retired: kept so past cases still read correctly, but no longer offered to the model. */
66
+ Active = "Active",
67
+ /** Sentiment only: the stable id of one label (or of the rules) across all its versions and renames, e.g. "abusive" or "rules". */
68
+ ItemKey = "ItemKey",
69
+ /** Sentiment only: LABEL for a label the model can answer, RULES for the rules text (held in Definition, with Label "Rules"). */
70
+ ItemType = "ItemType",
71
+ /** Sentiment only: DRAFT while being edited, ACTIVE once published (one per item key), ARCHIVED when replaced. */
72
+ ItemStatus = "ItemStatus",
73
+ /** Sentiment only: version number within one item key: 1, 2, 3. */
74
+ ItemVersion = "ItemVersion",
75
+ /** Sentiment only: when this version was last published or restored. */
76
+ PublishedAt = "PublishedAt",
77
+ /** Sentiment only: display name of the person who last published or restored this version. */
78
+ PublishedBy = "PublishedBy"
79
+ }
80
+ /**
81
+ * Properties for AiTagItem records
82
+ *
83
+ * @see SupportModule:AiTagItem
84
+ */
85
+ export interface AiTagItemProperties {
86
+ /** The set (version of a list) this label belongs to.
87
+ *
88
+ * @type {LOOKUP}
89
+ * @default
90
+ */
91
+ TagSetId: string;
92
+ /** What the model answers and what is written on the case, e.g. "Billing (Refund)" or "ANGRY".
93
+ *
94
+ * @type {TEXT}
95
+ * @default
96
+ */
97
+ Label: string;
98
+ /** The group the label is shown under, e.g. Cancellation. Free text, so leads can start new groups.
99
+ *
100
+ * @type {TEXT}
101
+ * @default
102
+ */
103
+ TagGroup: string;
104
+ /** Sentiment only: what the label means, as given to the model. Required on sentiment labels; empty for case tags.
105
+ *
106
+ * @type {TEXT_LONG}
107
+ * @default
108
+ */
109
+ Definition: string;
110
+ /** Order in the list, from 1. For sentiment this is the priority: the higher label wins when several apply.
111
+ *
112
+ * @type {NUMBER}
113
+ * @default
114
+ */
115
+ Position: number;
116
+ /** False means retired: kept so past cases still read correctly, but no longer offered to the model.
117
+ *
118
+ * @type {BOOLEAN}
119
+ * @default true
120
+ */
121
+ Active: boolean;
122
+ /** Sentiment only: the stable id of one label (or of the rules) across all its versions and renames, e.g. "abusive" or "rules".
123
+ *
124
+ * @type {TEXT}
125
+ * @default
126
+ */
127
+ ItemKey: string;
128
+ /** Sentiment only: LABEL for a label the model can answer, RULES for the rules text (held in Definition, with Label "Rules").
129
+ *
130
+ * @type {ENUM}
131
+ * @default
132
+ * @enum {AiTagItemItemType}
133
+ */
134
+ ItemType: AiTagItemItemType;
135
+ /** Sentiment only: DRAFT while being edited, ACTIVE once published (one per item key), ARCHIVED when replaced.
136
+ *
137
+ * @type {ENUM}
138
+ * @default
139
+ * @enum {AiTagItemItemStatus}
140
+ */
141
+ ItemStatus: AiTagItemItemStatus;
142
+ /** Sentiment only: version number within one item key: 1, 2, 3.
143
+ *
144
+ * @type {NUMBER}
145
+ * @default
146
+ */
147
+ ItemVersion: number;
148
+ /** Sentiment only: when this version was last published or restored.
149
+ *
150
+ * @type {DATE_TIME}
151
+ * @default
152
+ */
153
+ PublishedAt: string;
154
+ /** Sentiment only: display name of the person who last published or restored this version.
155
+ *
156
+ * @type {TEXT}
157
+ * @default
158
+ */
159
+ PublishedBy: string;
160
+ }
161
+ /**
162
+ * AiTagItem entity from SupportModule
163
+ *
164
+ * One label in one version of a support AI list: the label the model answers, its group, its order, whether it is still in use, and for sentiment the definition the model is given.
165
+ *
166
+ * @module SupportModule
167
+ * @entity AiTagItem
168
+ * @schemaId 2d3879d9-5bcd-4ddb-9431-c7d6c198f3a0
169
+ * @recordPrefix ATI
170
+ * @capabilities searchable, updateable, undeletable, triggerable
171
+ */
172
+ export declare class AiTagItem extends OdinRecord<AiTagItemProperties> {
173
+ entity: 'SupportModule:AiTagItem';
174
+ type: AiTagItemEntityTypes;
175
+ schemaId: '2d3879d9-5bcd-4ddb-9431-c7d6c198f3a0';
176
+ properties: AiTagItemProperties;
177
+ /** Linked AiTagSet records (AiTagSet__AiTagItem) */
178
+ AiTagSet: OdinLink<LinkedOdinRecord<AiTagSetProperties>>;
179
+ }
180
+ /**
181
+ * RabbitMQ routing keys for AiTagItem events
182
+ */
183
+ export declare const ROUTING_KEY_AI_TAG_ITEM_CREATED = "SupportModule.AiTagItem.SubDbRecordCreated";
184
+ export declare const ROUTING_KEY_AI_TAG_ITEM_UPDATED = "SupportModule.AiTagItem.SubDbRecordUpdated";
185
+ export declare const ROUTING_KEY_AI_TAG_ITEM_DELETED = "SupportModule.AiTagItem.SubDbRecordDeleted";
186
+ /**
187
+ * Type-specific routing keys for AiTagItem events
188
+ * Subscribe to these for events on specific entity types only
189
+ */
190
+ /** This is the default record type created */
191
+ export declare const ROUTING_KEY_AI_TAG_ITEM_DEFAULT_CREATED = "SupportModule.AiTagItem.DEFAULT.SubDbRecordCreated";
192
+ /** This is the default record type updated */
193
+ export declare const ROUTING_KEY_AI_TAG_ITEM_DEFAULT_UPDATED = "SupportModule.AiTagItem.DEFAULT.SubDbRecordUpdated";
194
+ /** This is the default record type deleted */
195
+ export declare const ROUTING_KEY_AI_TAG_ITEM_DEFAULT_DELETED = "SupportModule.AiTagItem.DEFAULT.SubDbRecordDeleted";
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ /**
3
+ * AiTagItem Entity Definition
4
+ *
5
+ * One label in one version of a support AI list: the label the model answers, its group, its order, whether it is still in use, and for sentiment the definition the model is given.
6
+ *
7
+ * @module SupportModule
8
+ * @entity AiTagItem
9
+ * @schemaId 2d3879d9-5bcd-4ddb-9431-c7d6c198f3a0
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_AI_TAG_ITEM_DEFAULT_DELETED = exports.ROUTING_KEY_AI_TAG_ITEM_DEFAULT_UPDATED = exports.ROUTING_KEY_AI_TAG_ITEM_DEFAULT_CREATED = exports.ROUTING_KEY_AI_TAG_ITEM_DELETED = exports.ROUTING_KEY_AI_TAG_ITEM_UPDATED = exports.ROUTING_KEY_AI_TAG_ITEM_CREATED = exports.AiTagItem = exports.AiTagItemPropertyKeys = exports.AiTagItemItemStatus = exports.AiTagItemItemType = exports.AiTagItemEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for AiTagItem records
19
+ */
20
+ var AiTagItemEntityTypes;
21
+ (function (AiTagItemEntityTypes) {
22
+ /** This is the default record type */
23
+ AiTagItemEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(AiTagItemEntityTypes = exports.AiTagItemEntityTypes || (exports.AiTagItemEntityTypes = {}));
25
+ /**
26
+ * Valid values for AiTagItem.ItemType
27
+ *
28
+ * Sentiment only: LABEL for a label the model can answer, RULES for the rules text (held in Definition, with Label "Rules").
29
+ *
30
+ * @remarks Available options:
31
+ * - `LABEL` - Label
32
+ * - `RULES` - Rules
33
+ */
34
+ var AiTagItemItemType;
35
+ (function (AiTagItemItemType) {
36
+ AiTagItemItemType["LABEL"] = "LABEL";
37
+ AiTagItemItemType["RULES"] = "RULES";
38
+ })(AiTagItemItemType = exports.AiTagItemItemType || (exports.AiTagItemItemType = {}));
39
+ /**
40
+ * Valid values for AiTagItem.ItemStatus
41
+ *
42
+ * Sentiment only: DRAFT while being edited, ACTIVE once published (one per item key), ARCHIVED when replaced.
43
+ *
44
+ * @remarks Available options:
45
+ * - `ACTIVE` - Active
46
+ * - `ARCHIVED` - Archived
47
+ * - `DRAFT` - Draft
48
+ */
49
+ var AiTagItemItemStatus;
50
+ (function (AiTagItemItemStatus) {
51
+ AiTagItemItemStatus["ACTIVE"] = "ACTIVE";
52
+ AiTagItemItemStatus["ARCHIVED"] = "ARCHIVED";
53
+ AiTagItemItemStatus["DRAFT"] = "DRAFT";
54
+ })(AiTagItemItemStatus = exports.AiTagItemItemStatus || (exports.AiTagItemItemStatus = {}));
55
+ /**
56
+ * Property keys for AiTagItem
57
+ * Use these constants instead of string literals for type safety
58
+ */
59
+ var AiTagItemPropertyKeys;
60
+ (function (AiTagItemPropertyKeys) {
61
+ /** The set (version of a list) this label belongs to. */
62
+ AiTagItemPropertyKeys["TagSetId"] = "TagSetId";
63
+ /** What the model answers and what is written on the case, e.g. "Billing (Refund)" or "ANGRY". */
64
+ AiTagItemPropertyKeys["Label"] = "Label";
65
+ /** The group the label is shown under, e.g. Cancellation. Free text, so leads can start new groups. */
66
+ AiTagItemPropertyKeys["TagGroup"] = "TagGroup";
67
+ /** Sentiment only: what the label means, as given to the model. Required on sentiment labels; empty for case tags. */
68
+ AiTagItemPropertyKeys["Definition"] = "Definition";
69
+ /** Order in the list, from 1. For sentiment this is the priority: the higher label wins when several apply. */
70
+ AiTagItemPropertyKeys["Position"] = "Position";
71
+ /** False means retired: kept so past cases still read correctly, but no longer offered to the model. */
72
+ AiTagItemPropertyKeys["Active"] = "Active";
73
+ /** Sentiment only: the stable id of one label (or of the rules) across all its versions and renames, e.g. "abusive" or "rules". */
74
+ AiTagItemPropertyKeys["ItemKey"] = "ItemKey";
75
+ /** Sentiment only: LABEL for a label the model can answer, RULES for the rules text (held in Definition, with Label "Rules"). */
76
+ AiTagItemPropertyKeys["ItemType"] = "ItemType";
77
+ /** Sentiment only: DRAFT while being edited, ACTIVE once published (one per item key), ARCHIVED when replaced. */
78
+ AiTagItemPropertyKeys["ItemStatus"] = "ItemStatus";
79
+ /** Sentiment only: version number within one item key: 1, 2, 3. */
80
+ AiTagItemPropertyKeys["ItemVersion"] = "ItemVersion";
81
+ /** Sentiment only: when this version was last published or restored. */
82
+ AiTagItemPropertyKeys["PublishedAt"] = "PublishedAt";
83
+ /** Sentiment only: display name of the person who last published or restored this version. */
84
+ AiTagItemPropertyKeys["PublishedBy"] = "PublishedBy";
85
+ })(AiTagItemPropertyKeys = exports.AiTagItemPropertyKeys || (exports.AiTagItemPropertyKeys = {}));
86
+ /**
87
+ * AiTagItem entity from SupportModule
88
+ *
89
+ * One label in one version of a support AI list: the label the model answers, its group, its order, whether it is still in use, and for sentiment the definition the model is given.
90
+ *
91
+ * @module SupportModule
92
+ * @entity AiTagItem
93
+ * @schemaId 2d3879d9-5bcd-4ddb-9431-c7d6c198f3a0
94
+ * @recordPrefix ATI
95
+ * @capabilities searchable, updateable, undeletable, triggerable
96
+ */
97
+ class AiTagItem extends core_1.OdinRecord {
98
+ }
99
+ exports.AiTagItem = AiTagItem;
100
+ // ============================================
101
+ // RABBITMQ EVENT ROUTING KEYS
102
+ // ============================================
103
+ /**
104
+ * RabbitMQ routing keys for AiTagItem events
105
+ */
106
+ exports.ROUTING_KEY_AI_TAG_ITEM_CREATED = 'SupportModule.AiTagItem.SubDbRecordCreated';
107
+ exports.ROUTING_KEY_AI_TAG_ITEM_UPDATED = 'SupportModule.AiTagItem.SubDbRecordUpdated';
108
+ exports.ROUTING_KEY_AI_TAG_ITEM_DELETED = 'SupportModule.AiTagItem.SubDbRecordDeleted';
109
+ /**
110
+ * Type-specific routing keys for AiTagItem events
111
+ * Subscribe to these for events on specific entity types only
112
+ */
113
+ /** This is the default record type created */
114
+ exports.ROUTING_KEY_AI_TAG_ITEM_DEFAULT_CREATED = 'SupportModule.AiTagItem.DEFAULT.SubDbRecordCreated';
115
+ /** This is the default record type updated */
116
+ exports.ROUTING_KEY_AI_TAG_ITEM_DEFAULT_UPDATED = 'SupportModule.AiTagItem.DEFAULT.SubDbRecordUpdated';
117
+ /** This is the default record type deleted */
118
+ exports.ROUTING_KEY_AI_TAG_ITEM_DEFAULT_DELETED = 'SupportModule.AiTagItem.DEFAULT.SubDbRecordDeleted';
@@ -0,0 +1,151 @@
1
+ /**
2
+ * AiTagSet Entity Definition
3
+ *
4
+ * One version of one support AI list: the case tags or the sentiment labels. Editing makes a new DRAFT; publishing makes it ACTIVE and archives the previous one. One ACTIVE per kind. Its labels are the AiTagItem records linked to it.
5
+ *
6
+ * @module SupportModule
7
+ * @entity AiTagSet
8
+ * @schemaId 31e71c63-4006-4608-89e4-2da4695e95f2
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 { AiTagItemProperties } from './AiTagItem';
15
+ /**
16
+ * Available types for AiTagSet records
17
+ */
18
+ export declare enum AiTagSetEntityTypes {
19
+ /** This is the default record type */
20
+ DEFAULT = "DEFAULT"
21
+ }
22
+ /**
23
+ * Valid values for AiTagSet.Kind
24
+ *
25
+ * Which list this is: the case tags (Case.AiTags) or the sentiment labels (Case.AiSentiment).
26
+ *
27
+ * @remarks Available options:
28
+ * - `CASE_TAG` - Case tag
29
+ * - `SENTIMENT` - Sentiment
30
+ */
31
+ export declare enum AiTagSetKind {
32
+ CASE_TAG = "CASE_TAG",
33
+ SENTIMENT = "SENTIMENT"
34
+ }
35
+ /**
36
+ * Valid values for AiTagSet.Status
37
+ *
38
+ * DRAFT while being edited, ACTIVE once published (one per kind), ARCHIVED when replaced.
39
+ *
40
+ * @remarks Available options:
41
+ * - `ACTIVE` - Active
42
+ * - `ARCHIVED` - Archived
43
+ * - `DRAFT` - Draft
44
+ */
45
+ export declare enum AiTagSetStatus {
46
+ ACTIVE = "ACTIVE",
47
+ ARCHIVED = "ARCHIVED",
48
+ DRAFT = "DRAFT"
49
+ }
50
+ /**
51
+ * Property keys for AiTagSet
52
+ * Use these constants instead of string literals for type safety
53
+ */
54
+ export declare enum AiTagSetPropertyKeys {
55
+ /** Which list this is: the case tags (Case.AiTags) or the sentiment labels (Case.AiSentiment). */
56
+ Kind = "Kind",
57
+ /** Version number within a kind: 1, 2, 3. A new draft is the highest so far plus one. */
58
+ Version = "Version",
59
+ /** DRAFT while being edited, ACTIVE once published (one per kind), ARCHIVED when replaced. */
60
+ Status = "Status",
61
+ /** Sentiment only: the rules the model is given for telling close labels apart. Empty for case tags. */
62
+ Instructions = "Instructions",
63
+ /** When this version was last published or restored. */
64
+ PublishedAt = "PublishedAt",
65
+ /** Display name of the person who last published or restored this version. */
66
+ PublishedBy = "PublishedBy"
67
+ }
68
+ /**
69
+ * Properties for AiTagSet records
70
+ *
71
+ * @see SupportModule:AiTagSet
72
+ */
73
+ export interface AiTagSetProperties {
74
+ /** Which list this is: the case tags (Case.AiTags) or the sentiment labels (Case.AiSentiment).
75
+ *
76
+ * @type {ENUM}
77
+ * @default
78
+ * @enum {AiTagSetKind}
79
+ */
80
+ Kind: AiTagSetKind;
81
+ /** Version number within a kind: 1, 2, 3. A new draft is the highest so far plus one.
82
+ *
83
+ * @type {NUMBER}
84
+ * @default
85
+ */
86
+ Version: number;
87
+ /** DRAFT while being edited, ACTIVE once published (one per kind), ARCHIVED when replaced.
88
+ *
89
+ * @type {ENUM}
90
+ * @default DRAFT
91
+ * @enum {AiTagSetStatus}
92
+ */
93
+ Status: AiTagSetStatus;
94
+ /** Sentiment only: the rules the model is given for telling close labels apart. Empty for case tags.
95
+ *
96
+ * @type {TEXT_LONG}
97
+ * @default
98
+ */
99
+ Instructions: string;
100
+ /** When this version was last published or restored.
101
+ *
102
+ * @type {DATE_TIME}
103
+ * @default
104
+ */
105
+ PublishedAt: string;
106
+ /** Display name of the person who last published or restored this version.
107
+ *
108
+ * @type {TEXT}
109
+ * @default
110
+ */
111
+ PublishedBy: string;
112
+ }
113
+ /**
114
+ * AiTagSet entity from SupportModule
115
+ *
116
+ * One version of one support AI list: the case tags or the sentiment labels. Editing makes a new DRAFT; publishing makes it ACTIVE and archives the previous one. One ACTIVE per kind. Its labels are the AiTagItem records linked to it.
117
+ *
118
+ * @module SupportModule
119
+ * @entity AiTagSet
120
+ * @schemaId 31e71c63-4006-4608-89e4-2da4695e95f2
121
+ * @recordPrefix ATS
122
+ * @capabilities searchable, updateable, undeletable, triggerable
123
+ */
124
+ export declare class AiTagSet extends OdinRecord<AiTagSetProperties> {
125
+ entity: 'SupportModule:AiTagSet';
126
+ type: AiTagSetEntityTypes;
127
+ schemaId: '31e71c63-4006-4608-89e4-2da4695e95f2';
128
+ properties: AiTagSetProperties;
129
+ /** Linked AiTagItem records (AiTagSet__AiTagItem) */
130
+ AiTagItem: OdinLink<LinkedOdinRecord<AiTagItemProperties>>;
131
+ }
132
+ /**
133
+ * RabbitMQ routing keys for AiTagSet events
134
+ */
135
+ export declare const ROUTING_KEY_AI_TAG_SET_CREATED = "SupportModule.AiTagSet.SubDbRecordCreated";
136
+ export declare const ROUTING_KEY_AI_TAG_SET_UPDATED = "SupportModule.AiTagSet.SubDbRecordUpdated";
137
+ export declare const ROUTING_KEY_AI_TAG_SET_DELETED = "SupportModule.AiTagSet.SubDbRecordDeleted";
138
+ /**
139
+ * Type-specific routing keys for AiTagSet events
140
+ * Subscribe to these for events on specific entity types only
141
+ */
142
+ /** This is the default record type created */
143
+ export declare const ROUTING_KEY_AI_TAG_SET_DEFAULT_CREATED = "SupportModule.AiTagSet.DEFAULT.SubDbRecordCreated";
144
+ /** This is the default record type updated */
145
+ export declare const ROUTING_KEY_AI_TAG_SET_DEFAULT_UPDATED = "SupportModule.AiTagSet.DEFAULT.SubDbRecordUpdated";
146
+ /** This is the default record type deleted */
147
+ export declare const ROUTING_KEY_AI_TAG_SET_DEFAULT_DELETED = "SupportModule.AiTagSet.DEFAULT.SubDbRecordDeleted";
148
+ /** Event: AiTagSet__AiTagItem link created */
149
+ export declare const ROUTING_KEY_LINK_AI_TAG_SET_AI_TAG_ITEM_CREATED = "SupportModule.AiTagSet.AiTagItem.SubDbRecordAssociationCreated";
150
+ /** Event: AiTagSet__AiTagItem link deleted */
151
+ export declare const ROUTING_KEY_LINK_AI_TAG_SET_AI_TAG_ITEM_DELETED = "SupportModule.AiTagSet.AiTagItem.SubDbRecordAssociationDeleted";
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ /**
3
+ * AiTagSet Entity Definition
4
+ *
5
+ * One version of one support AI list: the case tags or the sentiment labels. Editing makes a new DRAFT; publishing makes it ACTIVE and archives the previous one. One ACTIVE per kind. Its labels are the AiTagItem records linked to it.
6
+ *
7
+ * @module SupportModule
8
+ * @entity AiTagSet
9
+ * @schemaId 31e71c63-4006-4608-89e4-2da4695e95f2
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_LINK_AI_TAG_SET_AI_TAG_ITEM_DELETED = exports.ROUTING_KEY_LINK_AI_TAG_SET_AI_TAG_ITEM_CREATED = exports.ROUTING_KEY_AI_TAG_SET_DEFAULT_DELETED = exports.ROUTING_KEY_AI_TAG_SET_DEFAULT_UPDATED = exports.ROUTING_KEY_AI_TAG_SET_DEFAULT_CREATED = exports.ROUTING_KEY_AI_TAG_SET_DELETED = exports.ROUTING_KEY_AI_TAG_SET_UPDATED = exports.ROUTING_KEY_AI_TAG_SET_CREATED = exports.AiTagSet = exports.AiTagSetPropertyKeys = exports.AiTagSetStatus = exports.AiTagSetKind = exports.AiTagSetEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for AiTagSet records
19
+ */
20
+ var AiTagSetEntityTypes;
21
+ (function (AiTagSetEntityTypes) {
22
+ /** This is the default record type */
23
+ AiTagSetEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(AiTagSetEntityTypes = exports.AiTagSetEntityTypes || (exports.AiTagSetEntityTypes = {}));
25
+ /**
26
+ * Valid values for AiTagSet.Kind
27
+ *
28
+ * Which list this is: the case tags (Case.AiTags) or the sentiment labels (Case.AiSentiment).
29
+ *
30
+ * @remarks Available options:
31
+ * - `CASE_TAG` - Case tag
32
+ * - `SENTIMENT` - Sentiment
33
+ */
34
+ var AiTagSetKind;
35
+ (function (AiTagSetKind) {
36
+ AiTagSetKind["CASE_TAG"] = "CASE_TAG";
37
+ AiTagSetKind["SENTIMENT"] = "SENTIMENT";
38
+ })(AiTagSetKind = exports.AiTagSetKind || (exports.AiTagSetKind = {}));
39
+ /**
40
+ * Valid values for AiTagSet.Status
41
+ *
42
+ * DRAFT while being edited, ACTIVE once published (one per kind), ARCHIVED when replaced.
43
+ *
44
+ * @remarks Available options:
45
+ * - `ACTIVE` - Active
46
+ * - `ARCHIVED` - Archived
47
+ * - `DRAFT` - Draft
48
+ */
49
+ var AiTagSetStatus;
50
+ (function (AiTagSetStatus) {
51
+ AiTagSetStatus["ACTIVE"] = "ACTIVE";
52
+ AiTagSetStatus["ARCHIVED"] = "ARCHIVED";
53
+ AiTagSetStatus["DRAFT"] = "DRAFT";
54
+ })(AiTagSetStatus = exports.AiTagSetStatus || (exports.AiTagSetStatus = {}));
55
+ /**
56
+ * Property keys for AiTagSet
57
+ * Use these constants instead of string literals for type safety
58
+ */
59
+ var AiTagSetPropertyKeys;
60
+ (function (AiTagSetPropertyKeys) {
61
+ /** Which list this is: the case tags (Case.AiTags) or the sentiment labels (Case.AiSentiment). */
62
+ AiTagSetPropertyKeys["Kind"] = "Kind";
63
+ /** Version number within a kind: 1, 2, 3. A new draft is the highest so far plus one. */
64
+ AiTagSetPropertyKeys["Version"] = "Version";
65
+ /** DRAFT while being edited, ACTIVE once published (one per kind), ARCHIVED when replaced. */
66
+ AiTagSetPropertyKeys["Status"] = "Status";
67
+ /** Sentiment only: the rules the model is given for telling close labels apart. Empty for case tags. */
68
+ AiTagSetPropertyKeys["Instructions"] = "Instructions";
69
+ /** When this version was last published or restored. */
70
+ AiTagSetPropertyKeys["PublishedAt"] = "PublishedAt";
71
+ /** Display name of the person who last published or restored this version. */
72
+ AiTagSetPropertyKeys["PublishedBy"] = "PublishedBy";
73
+ })(AiTagSetPropertyKeys = exports.AiTagSetPropertyKeys || (exports.AiTagSetPropertyKeys = {}));
74
+ /**
75
+ * AiTagSet entity from SupportModule
76
+ *
77
+ * One version of one support AI list: the case tags or the sentiment labels. Editing makes a new DRAFT; publishing makes it ACTIVE and archives the previous one. One ACTIVE per kind. Its labels are the AiTagItem records linked to it.
78
+ *
79
+ * @module SupportModule
80
+ * @entity AiTagSet
81
+ * @schemaId 31e71c63-4006-4608-89e4-2da4695e95f2
82
+ * @recordPrefix ATS
83
+ * @capabilities searchable, updateable, undeletable, triggerable
84
+ */
85
+ class AiTagSet extends core_1.OdinRecord {
86
+ }
87
+ exports.AiTagSet = AiTagSet;
88
+ // ============================================
89
+ // RABBITMQ EVENT ROUTING KEYS
90
+ // ============================================
91
+ /**
92
+ * RabbitMQ routing keys for AiTagSet events
93
+ */
94
+ exports.ROUTING_KEY_AI_TAG_SET_CREATED = 'SupportModule.AiTagSet.SubDbRecordCreated';
95
+ exports.ROUTING_KEY_AI_TAG_SET_UPDATED = 'SupportModule.AiTagSet.SubDbRecordUpdated';
96
+ exports.ROUTING_KEY_AI_TAG_SET_DELETED = 'SupportModule.AiTagSet.SubDbRecordDeleted';
97
+ /**
98
+ * Type-specific routing keys for AiTagSet events
99
+ * Subscribe to these for events on specific entity types only
100
+ */
101
+ /** This is the default record type created */
102
+ exports.ROUTING_KEY_AI_TAG_SET_DEFAULT_CREATED = 'SupportModule.AiTagSet.DEFAULT.SubDbRecordCreated';
103
+ /** This is the default record type updated */
104
+ exports.ROUTING_KEY_AI_TAG_SET_DEFAULT_UPDATED = 'SupportModule.AiTagSet.DEFAULT.SubDbRecordUpdated';
105
+ /** This is the default record type deleted */
106
+ exports.ROUTING_KEY_AI_TAG_SET_DEFAULT_DELETED = 'SupportModule.AiTagSet.DEFAULT.SubDbRecordDeleted';
107
+ /** Event: AiTagSet__AiTagItem link created */
108
+ exports.ROUTING_KEY_LINK_AI_TAG_SET_AI_TAG_ITEM_CREATED = 'SupportModule.AiTagSet.AiTagItem.SubDbRecordAssociationCreated';
109
+ /** Event: AiTagSet__AiTagItem link deleted */
110
+ exports.ROUTING_KEY_LINK_AI_TAG_SET_AI_TAG_ITEM_DELETED = 'SupportModule.AiTagSet.AiTagItem.SubDbRecordAssociationDeleted';
@@ -93,7 +93,7 @@ export declare enum ChangeReasonTimeBlock {
93
93
  * - `CORRECT_CUSTOMER_BUT_INCORRECT_ADDRESS_BOOKED_BY_ISP` - Correct Customer But Incorrect Address Booked By ISP
94
94
  * - `CURRENT_PROVIDER_CONTRACT_BUY_OUT_COSTS` - Current Provider Contract Buy-Out Costs
95
95
  * - `CUSTOMER_BELIEVES_THEY_HAVE_ALREADY_CANCELLED` - Customer Believes They Have Already Cancelled With ISP
96
- * - ... and 74 more
96
+ * - ... and 75 more
97
97
  */
98
98
  export declare enum ChangeReasonDelayReason {
99
99
  ADDITIONAL_MATERIALS_REQUIRED = "ADDITIONAL_MATERIALS_REQUIRED",
@@ -174,6 +174,7 @@ export declare enum ChangeReasonDelayReason {
174
174
  SPAN_DISTANCE = "SPAN_DISTANCE",
175
175
  SPAN_DISTANCE_REQUIRES_ADDITIONAL_TEAM = "SPAN_DISTANCE_REQUIRES_ADDITIONAL_TEAM",
176
176
  SPAN_DISTANCE_TOO_FAR_TO_INSTALL = "SPAN_DISTANCE_TOO_FAR_TO_INSTALL",
177
+ SUPPLIER_REJECTED_APPOINTMENT_AMENDMENT = "SUPPLIER_REJECTED_APPOINTMENT_AMENDMENT",
177
178
  TREE_TRIMMING_REQUIRED = "TREE_TRIMMING_REQUIRED",
178
179
  UG_MDU_UNABLE_TO_INSTALL = "UG_MDU_UNABLE_TO_INSTALL",
179
180
  UNABLE_TO_ACCESS_NETWORK = "UNABLE_TO_ACCESS_NETWORK",
@@ -95,7 +95,7 @@ var ChangeReasonTimeBlock;
95
95
  * - `CORRECT_CUSTOMER_BUT_INCORRECT_ADDRESS_BOOKED_BY_ISP` - Correct Customer But Incorrect Address Booked By ISP
96
96
  * - `CURRENT_PROVIDER_CONTRACT_BUY_OUT_COSTS` - Current Provider Contract Buy-Out Costs
97
97
  * - `CUSTOMER_BELIEVES_THEY_HAVE_ALREADY_CANCELLED` - Customer Believes They Have Already Cancelled With ISP
98
- * - ... and 74 more
98
+ * - ... and 75 more
99
99
  */
100
100
  var ChangeReasonDelayReason;
101
101
  (function (ChangeReasonDelayReason) {
@@ -177,6 +177,7 @@ var ChangeReasonDelayReason;
177
177
  ChangeReasonDelayReason["SPAN_DISTANCE"] = "SPAN_DISTANCE";
178
178
  ChangeReasonDelayReason["SPAN_DISTANCE_REQUIRES_ADDITIONAL_TEAM"] = "SPAN_DISTANCE_REQUIRES_ADDITIONAL_TEAM";
179
179
  ChangeReasonDelayReason["SPAN_DISTANCE_TOO_FAR_TO_INSTALL"] = "SPAN_DISTANCE_TOO_FAR_TO_INSTALL";
180
+ ChangeReasonDelayReason["SUPPLIER_REJECTED_APPOINTMENT_AMENDMENT"] = "SUPPLIER_REJECTED_APPOINTMENT_AMENDMENT";
180
181
  ChangeReasonDelayReason["TREE_TRIMMING_REQUIRED"] = "TREE_TRIMMING_REQUIRED";
181
182
  ChangeReasonDelayReason["UG_MDU_UNABLE_TO_INSTALL"] = "UG_MDU_UNABLE_TO_INSTALL";
182
183
  ChangeReasonDelayReason["UNABLE_TO_ACCESS_NETWORK"] = "UNABLE_TO_ACCESS_NETWORK";
@@ -977,8 +977,6 @@ export declare class File extends OdinRecord<FileProperties> {
977
977
  type: FileEntityTypes;
978
978
  schemaId: '74510906-4af8-479c-862e-04a1bae015d7';
979
979
  properties: FileProperties;
980
- /** Linked File records (ServiceVisitAudit__File) */
981
- File: OdinLink<LinkedOdinRecord<FileProperties>>;
982
980
  /** Linked ServiceVisitAudit records (ServiceVisitAudit__File) */
983
981
  ServiceVisitAudit: OdinLink<LinkedOdinRecord<ServiceVisitAuditProperties>>;
984
982
  /** Linked BlockageA55 records (BlockageA55_File) */
@@ -1194,10 +1192,6 @@ export declare const ROUTING_KEY_FILE_PROCESSING_OUTPUT_CREATED = "SchemaModule.
1194
1192
  export declare const ROUTING_KEY_FILE_PROCESSING_OUTPUT_UPDATED = "SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordUpdated";
1195
1193
  /** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). deleted */
1196
1194
  export declare const ROUTING_KEY_FILE_PROCESSING_OUTPUT_DELETED = "SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordDeleted";
1197
- /** Event: ServiceVisitAudit__File link created */
1198
- export declare const ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_CREATED = "SchemaModule.File.File.SubDbRecordAssociationCreated";
1199
- /** Event: ServiceVisitAudit__File link deleted */
1200
- export declare const ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_DELETED = "SchemaModule.File.File.SubDbRecordAssociationDeleted";
1201
1195
  /** Event: File__Note link created */
1202
1196
  export declare const ROUTING_KEY_LINK_FILE_NOTE_CREATED = "SchemaModule.File.Note.SubDbRecordAssociationCreated";
1203
1197
  /** Event: File__Note link deleted */
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_FILE_NOTE_DELETED = exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_DELETED = exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_CREATED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_DELETED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_UPDATED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_CREATED = exports.ROUTING_KEY_FILE_OTDR_DELETED = exports.ROUTING_KEY_FILE_OTDR_UPDATED = exports.ROUTING_KEY_FILE_OTDR_CREATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_DELETED = exports.ROUTING_KEY_FILE_OPENREACH_A55_UPDATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_CREATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_INVOICE_DELETED = exports.ROUTING_KEY_FILE_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_INVOICE_CREATED = exports.ROUTING_KEY_FILE_HOME_MOVE_PROOF_DELETED = exports.ROUTING_KEY_FILE_HOME_MOVE_PROOF_UPDATED = exports.ROUTING_KEY_FILE_HOME_MOVE_PROOF_CREATED = exports.ROUTING_KEY_FILE_EMAIL_DELETED = exports.ROUTING_KEY_FILE_EMAIL_UPDATED = exports.ROUTING_KEY_FILE_EMAIL_CREATED = exports.ROUTING_KEY_FILE_DEFAULT_DELETED = exports.ROUTING_KEY_FILE_DEFAULT_UPDATED = exports.ROUTING_KEY_FILE_DEFAULT_CREATED = exports.ROUTING_KEY_FILE_CSV_DELETED = exports.ROUTING_KEY_FILE_CSV_UPDATED = exports.ROUTING_KEY_FILE_CSV_CREATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_DELETED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_UPDATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_CREATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_DELETED = exports.ROUTING_KEY_FILE_AFP_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_CREATED = exports.ROUTING_KEY_FILE_DELETED = exports.ROUTING_KEY_FILE_UPDATED = exports.ROUTING_KEY_FILE_CREATED = exports.File = exports.FilePropertyKeys = exports.FileCategory = exports.FileDevice = exports.FileDataStore = exports.FileEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_FILE_NOTE_DELETED = exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_DELETED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_UPDATED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_CREATED = exports.ROUTING_KEY_FILE_OTDR_DELETED = exports.ROUTING_KEY_FILE_OTDR_UPDATED = exports.ROUTING_KEY_FILE_OTDR_CREATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_DELETED = exports.ROUTING_KEY_FILE_OPENREACH_A55_UPDATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_CREATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_INVOICE_DELETED = exports.ROUTING_KEY_FILE_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_INVOICE_CREATED = exports.ROUTING_KEY_FILE_HOME_MOVE_PROOF_DELETED = exports.ROUTING_KEY_FILE_HOME_MOVE_PROOF_UPDATED = exports.ROUTING_KEY_FILE_HOME_MOVE_PROOF_CREATED = exports.ROUTING_KEY_FILE_EMAIL_DELETED = exports.ROUTING_KEY_FILE_EMAIL_UPDATED = exports.ROUTING_KEY_FILE_EMAIL_CREATED = exports.ROUTING_KEY_FILE_DEFAULT_DELETED = exports.ROUTING_KEY_FILE_DEFAULT_UPDATED = exports.ROUTING_KEY_FILE_DEFAULT_CREATED = exports.ROUTING_KEY_FILE_CSV_DELETED = exports.ROUTING_KEY_FILE_CSV_UPDATED = exports.ROUTING_KEY_FILE_CSV_CREATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_DELETED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_UPDATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_CREATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_DELETED = exports.ROUTING_KEY_FILE_AFP_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_CREATED = exports.ROUTING_KEY_FILE_DELETED = exports.ROUTING_KEY_FILE_UPDATED = exports.ROUTING_KEY_FILE_CREATED = exports.File = exports.FilePropertyKeys = exports.FileCategory = exports.FileDevice = exports.FileDataStore = exports.FileEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for File records
@@ -210,10 +210,6 @@ exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_CREATED = 'SchemaModule.File.PROCESSI
210
210
  exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_UPDATED = 'SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordUpdated';
211
211
  /** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). deleted */
212
212
  exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_DELETED = 'SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordDeleted';
213
- /** Event: ServiceVisitAudit__File link created */
214
- exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_CREATED = 'SchemaModule.File.File.SubDbRecordAssociationCreated';
215
- /** Event: ServiceVisitAudit__File link deleted */
216
- exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_DELETED = 'SchemaModule.File.File.SubDbRecordAssociationDeleted';
217
213
  /** Event: File__Note link created */
218
214
  exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = 'SchemaModule.File.Note.SubDbRecordAssociationCreated';
219
215
  /** Event: File__Note link deleted */