@webitel/api-services 0.1.51 → 0.1.52
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.
- package/package.json +1 -1
- package/src/api/clients/index.ts +1 -0
- package/src/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.ts +219 -0
- package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +110 -113
- package/src/api/clients/wtTypes/index.ts +1 -0
- package/src/gen/_models/engineAuditRate.zod.d.ts +1 -0
- package/src/gen/_models/engineCreateAuditFormRateRequest.zod.d.ts +1 -0
- package/src/gen/_models/searchAuditRateParams.zod.d.ts +1 -0
- package/src/gen/audit-form-service/audit-form-service.zod.d.ts +7 -0
- package/src/gen/index.d.ts +0 -3
- package/src/gen/sources/sources.zod.d.ts +3 -6
- package/types/api/clients/index.d.ts +1 -0
- package/types/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.d.ts +41 -0
- package/types/api/clients/wtTypes/adjunctTypes/adjunctTypes.d.ts +36 -8
- package/types/api/clients/wtTypes/index.d.ts +1 -0
package/package.json
CHANGED
package/src/api/clients/index.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from './slas/slas';
|
|
|
41
41
|
export * from './teams/teams';
|
|
42
42
|
export * from './userSettings/userSettings';
|
|
43
43
|
export * from './users/users';
|
|
44
|
+
export * from './wtTypes/adjunctTypeRecords/adjunctTypeRecords';
|
|
44
45
|
export * from './wtTypes/adjunctTypes/adjunctTypes';
|
|
45
46
|
export * from './wtTypes/sysTypes/sysTypes';
|
|
46
47
|
export * from './wtTypes/typeExtensions/typeExtensions';
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { getDictionaries } from '@webitel/api-services/gen';
|
|
2
|
+
import { get } from 'lodash-es';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
getDefaultGetListResponse,
|
|
6
|
+
getDefaultGetParams,
|
|
7
|
+
getDefaultInstance,
|
|
8
|
+
} from '../../../defaults';
|
|
9
|
+
import {
|
|
10
|
+
applyTransform,
|
|
11
|
+
camelToSnake,
|
|
12
|
+
generateUrl,
|
|
13
|
+
merge,
|
|
14
|
+
notify,
|
|
15
|
+
sanitize,
|
|
16
|
+
snakeToCamel,
|
|
17
|
+
starToSearch,
|
|
18
|
+
} from '../../../transformers';
|
|
19
|
+
|
|
20
|
+
const instance = getDefaultInstance();
|
|
21
|
+
|
|
22
|
+
const getAdjunctTypeRecordsList = async ({ repo, ...params }) => {
|
|
23
|
+
const fieldsToSend = [
|
|
24
|
+
'page',
|
|
25
|
+
'size',
|
|
26
|
+
'q',
|
|
27
|
+
'sort',
|
|
28
|
+
'fields',
|
|
29
|
+
'id',
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
const { page, size, fields, sort, id, q } = applyTransform(params, [
|
|
33
|
+
merge(getDefaultGetParams()),
|
|
34
|
+
starToSearch('search'),
|
|
35
|
+
(params) => ({
|
|
36
|
+
...params,
|
|
37
|
+
q: params.search,
|
|
38
|
+
}),
|
|
39
|
+
sanitize(fieldsToSend),
|
|
40
|
+
camelToSnake(),
|
|
41
|
+
]);
|
|
42
|
+
try {
|
|
43
|
+
const response = await getDictionaries().searchData(repo, {
|
|
44
|
+
size,
|
|
45
|
+
page,
|
|
46
|
+
sort,
|
|
47
|
+
fields,
|
|
48
|
+
q,
|
|
49
|
+
id,
|
|
50
|
+
});
|
|
51
|
+
const { data, next } = applyTransform(response.data, [
|
|
52
|
+
merge(getDefaultGetListResponse()),
|
|
53
|
+
]);
|
|
54
|
+
return {
|
|
55
|
+
items: applyTransform(data, []),
|
|
56
|
+
next,
|
|
57
|
+
};
|
|
58
|
+
} catch (err) {
|
|
59
|
+
throw applyTransform(err, [
|
|
60
|
+
notify,
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const getAdjunctTypeRecord = async ({ itemId: id, repo }) => {
|
|
66
|
+
try {
|
|
67
|
+
const response = await getDictionaries().locateData(repo, id);
|
|
68
|
+
return response.data;
|
|
69
|
+
} catch (err) {
|
|
70
|
+
throw applyTransform(err, [
|
|
71
|
+
notify,
|
|
72
|
+
]);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const addAdjunctTypeRecord = async ({ itemInstance, fieldsToSend, repo }) => {
|
|
77
|
+
const item = applyTransform(itemInstance, [
|
|
78
|
+
camelToSnake(),
|
|
79
|
+
sanitize(fieldsToSend),
|
|
80
|
+
]);
|
|
81
|
+
try {
|
|
82
|
+
const response = await getDictionaries().createData(repo, item);
|
|
83
|
+
return applyTransform(response.data, [
|
|
84
|
+
snakeToCamel(),
|
|
85
|
+
]);
|
|
86
|
+
} catch (err) {
|
|
87
|
+
throw applyTransform(err, [
|
|
88
|
+
notify,
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const updateAdjunctTypeRecord = async ({
|
|
94
|
+
itemInstance,
|
|
95
|
+
fieldsToSend,
|
|
96
|
+
itemId: id,
|
|
97
|
+
repo,
|
|
98
|
+
}) => {
|
|
99
|
+
const item = applyTransform(itemInstance, [
|
|
100
|
+
camelToSnake(),
|
|
101
|
+
sanitize(fieldsToSend),
|
|
102
|
+
]);
|
|
103
|
+
try {
|
|
104
|
+
const response = await getDictionaries().updateData(repo, id, item);
|
|
105
|
+
return applyTransform(response.data, [
|
|
106
|
+
snakeToCamel(),
|
|
107
|
+
]);
|
|
108
|
+
} catch (err) {
|
|
109
|
+
throw applyTransform(err, [
|
|
110
|
+
notify,
|
|
111
|
+
]);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const deleteAdjunctTypeRecord = async ({ repo, id }) => {
|
|
116
|
+
const ids = Array.isArray(id)
|
|
117
|
+
? id
|
|
118
|
+
: [
|
|
119
|
+
id,
|
|
120
|
+
];
|
|
121
|
+
try {
|
|
122
|
+
const response = await getDictionaries().deleteData2(repo, ids);
|
|
123
|
+
return response.data;
|
|
124
|
+
} catch (err) {
|
|
125
|
+
throw applyTransform(err, [
|
|
126
|
+
notify,
|
|
127
|
+
]);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const transformItemsForSelect =
|
|
132
|
+
({ primary, display }) =>
|
|
133
|
+
(items) => {
|
|
134
|
+
return items.map((item) => ({
|
|
135
|
+
id: item[primary],
|
|
136
|
+
name: get(item, display.split('.')),
|
|
137
|
+
}));
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// options for Select/Multiselect fields; path is dynamic
|
|
141
|
+
// (users, contacts, dictionaries/{repo}, ...), so there is no single gen method
|
|
142
|
+
const getAdjunctTypeRecordsLookup = async ({
|
|
143
|
+
path,
|
|
144
|
+
display,
|
|
145
|
+
primary,
|
|
146
|
+
...params
|
|
147
|
+
}) => {
|
|
148
|
+
const fieldsToSend = [
|
|
149
|
+
'page',
|
|
150
|
+
'size',
|
|
151
|
+
'q',
|
|
152
|
+
'sort',
|
|
153
|
+
'fields',
|
|
154
|
+
'id',
|
|
155
|
+
];
|
|
156
|
+
|
|
157
|
+
const url = applyTransform(params, [
|
|
158
|
+
merge(getDefaultGetParams()),
|
|
159
|
+
starToSearch('search'),
|
|
160
|
+
(params) => ({
|
|
161
|
+
...params,
|
|
162
|
+
q: params.search,
|
|
163
|
+
}),
|
|
164
|
+
sanitize(fieldsToSend),
|
|
165
|
+
camelToSnake(),
|
|
166
|
+
generateUrl(path),
|
|
167
|
+
]);
|
|
168
|
+
try {
|
|
169
|
+
const response = await instance.get(url);
|
|
170
|
+
const { data, items, next } = applyTransform(response.data, [
|
|
171
|
+
merge(getDefaultGetListResponse()),
|
|
172
|
+
]);
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
items:
|
|
176
|
+
applyTransform(data || items, [
|
|
177
|
+
transformItemsForSelect({
|
|
178
|
+
display,
|
|
179
|
+
primary,
|
|
180
|
+
}),
|
|
181
|
+
]) ?? [],
|
|
182
|
+
next,
|
|
183
|
+
};
|
|
184
|
+
} catch (err) {
|
|
185
|
+
throw applyTransform(err, [
|
|
186
|
+
notify,
|
|
187
|
+
]);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
const batchCreateAdjunctTypeRecords = async ({ repo, rows }) => {
|
|
192
|
+
const preparedRows = (rows || []).map((row) =>
|
|
193
|
+
applyTransform(row, [
|
|
194
|
+
camelToSnake(),
|
|
195
|
+
]),
|
|
196
|
+
);
|
|
197
|
+
try {
|
|
198
|
+
const response = await getDictionaries().batchCreateData(repo, {
|
|
199
|
+
rows: preparedRows,
|
|
200
|
+
});
|
|
201
|
+
return applyTransform(response.data, [
|
|
202
|
+
snakeToCamel(),
|
|
203
|
+
]);
|
|
204
|
+
} catch (err) {
|
|
205
|
+
throw applyTransform(err, [
|
|
206
|
+
notify,
|
|
207
|
+
]);
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export const AdjunctTypeRecordsAPI = {
|
|
212
|
+
getList: getAdjunctTypeRecordsList,
|
|
213
|
+
get: getAdjunctTypeRecord,
|
|
214
|
+
add: addAdjunctTypeRecord,
|
|
215
|
+
update: updateAdjunctTypeRecord,
|
|
216
|
+
delete: deleteAdjunctTypeRecord,
|
|
217
|
+
getLookup: getAdjunctTypeRecordsLookup,
|
|
218
|
+
batchCreate: batchCreateAdjunctTypeRecords,
|
|
219
|
+
};
|
|
@@ -10,14 +10,29 @@ import {
|
|
|
10
10
|
merge,
|
|
11
11
|
notify,
|
|
12
12
|
sanitize,
|
|
13
|
+
snakeToCamel,
|
|
13
14
|
starToSearch,
|
|
14
15
|
} from '../../../transformers';
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const fieldsToSend = [
|
|
18
|
+
'name',
|
|
19
|
+
'about',
|
|
20
|
+
'dictionary',
|
|
21
|
+
'fields',
|
|
22
|
+
'repo',
|
|
23
|
+
'administered',
|
|
24
|
+
'primary',
|
|
25
|
+
'display',
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
// dictionary types are identified by repo, but stores expect id
|
|
29
|
+
const itemResponseHandler = (item) => ({
|
|
30
|
+
...item,
|
|
31
|
+
id: item.repo,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const getAdjunctTypesList = async (params, { silent = false } = {}) => {
|
|
35
|
+
const listFieldsToSend = [
|
|
21
36
|
'page',
|
|
22
37
|
'size',
|
|
23
38
|
'q',
|
|
@@ -33,23 +48,30 @@ const getAdjunctTypesList = async (
|
|
|
33
48
|
...params,
|
|
34
49
|
q: params.search,
|
|
35
50
|
}),
|
|
36
|
-
sanitize(
|
|
51
|
+
sanitize(listFieldsToSend),
|
|
37
52
|
camelToSnake(),
|
|
38
53
|
]);
|
|
39
54
|
try {
|
|
40
55
|
const response = await getDictionaries().searchType({
|
|
41
|
-
|
|
56
|
+
q,
|
|
57
|
+
id,
|
|
42
58
|
size,
|
|
59
|
+
page,
|
|
43
60
|
sort,
|
|
44
61
|
fields,
|
|
45
|
-
q,
|
|
46
|
-
id,
|
|
47
62
|
});
|
|
48
63
|
const { data, next } = applyTransform(response.data, [
|
|
49
64
|
merge(getDefaultGetListResponse()),
|
|
50
65
|
]);
|
|
66
|
+
|
|
67
|
+
const itemsResponseHandler = (items) =>
|
|
68
|
+
(items || []).map(itemResponseHandler);
|
|
69
|
+
|
|
51
70
|
return {
|
|
52
|
-
items: applyTransform(data, [
|
|
71
|
+
items: applyTransform(data, [
|
|
72
|
+
snakeToCamel(),
|
|
73
|
+
itemsResponseHandler,
|
|
74
|
+
]),
|
|
53
75
|
next,
|
|
54
76
|
};
|
|
55
77
|
} catch (err) {
|
|
@@ -62,116 +84,91 @@ const getAdjunctTypesList = async (
|
|
|
62
84
|
}
|
|
63
85
|
};
|
|
64
86
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
// ]);
|
|
79
|
-
// try {
|
|
80
|
-
// const response = await dictionariesService.createData(repo, item);
|
|
81
|
-
// return applyTransform(response.data, [snakeToCamel()]);
|
|
82
|
-
// } catch (err) {
|
|
83
|
-
// throw applyTransform(err, [notify]);
|
|
84
|
-
// }
|
|
85
|
-
// };
|
|
86
|
-
|
|
87
|
-
// const updateCustomLookupRecord = async ({
|
|
88
|
-
// itemInstance,
|
|
89
|
-
// fieldsToSend,
|
|
90
|
-
// itemId: id,
|
|
91
|
-
// repo,
|
|
92
|
-
// }) => {
|
|
93
|
-
// const item = applyTransform(itemInstance, [
|
|
94
|
-
// camelToSnake(),
|
|
95
|
-
// sanitize(fieldsToSend),
|
|
96
|
-
// ]);
|
|
97
|
-
// try {
|
|
98
|
-
// const response = await dictionariesService.updateData(repo, id, item);
|
|
99
|
-
// return applyTransform(response.data, [snakeToCamel()]);
|
|
100
|
-
// } catch (err) {
|
|
101
|
-
// throw applyTransform(err, [notify]);
|
|
102
|
-
// }
|
|
103
|
-
// };
|
|
104
|
-
|
|
105
|
-
// const deleteCustomLookupRecord = async ({ repo, id }) => {
|
|
106
|
-
// try {
|
|
107
|
-
// const response = await dictionariesService.deleteData2(repo, id);
|
|
108
|
-
// return response.data;
|
|
109
|
-
// } catch (err) {
|
|
110
|
-
// throw applyTransform(err, [notify]);
|
|
111
|
-
// }
|
|
112
|
-
// };
|
|
113
|
-
|
|
114
|
-
// const transformItemsForSelect =
|
|
115
|
-
// ({ primary, display }) =>
|
|
116
|
-
// (items) => {
|
|
117
|
-
// return items.map((item) => ({
|
|
118
|
-
// id: item[primary],
|
|
119
|
-
// name: get(item, display.split('.')),
|
|
120
|
-
// }));
|
|
121
|
-
// };
|
|
122
|
-
|
|
123
|
-
// // In this method we are using the same API as in getCustomLookupRecords,
|
|
124
|
-
// // but we are using different parameters, so we need to create a new method where we can pass the type of the lookup where type is path to api
|
|
125
|
-
// // for example: 'cities' has type 'dictionary/cities'
|
|
126
|
-
// const getCustomLookupRecordsLookup = async ({
|
|
127
|
-
// path,
|
|
128
|
-
// display,
|
|
129
|
-
// primary,
|
|
130
|
-
// ...params
|
|
131
|
-
// }) => {
|
|
132
|
-
// const fieldsToSend = ['page', 'size', 'q', 'sort', 'fields', 'id'];
|
|
133
|
-
|
|
134
|
-
// const url = applyTransform(params, [
|
|
135
|
-
// merge(getDefaultGetParams()),
|
|
136
|
-
// starToSearch('search'),
|
|
137
|
-
// (params) => ({ ...params, q: params.search }),
|
|
138
|
-
// sanitize(fieldsToSend),
|
|
139
|
-
// camelToSnake(),
|
|
140
|
-
// generateUrl(path),
|
|
141
|
-
// ]);
|
|
142
|
-
// try {
|
|
143
|
-
// const response = await instance.get(url);
|
|
144
|
-
// const { data, items, next } = applyTransform(response.data, [
|
|
145
|
-
// merge(getDefaultGetListResponse()),
|
|
146
|
-
// ]);
|
|
87
|
+
const getAdjunctType = async ({ itemId: itemRepo }) => {
|
|
88
|
+
try {
|
|
89
|
+
const response = await getDictionaries().locateType(itemRepo);
|
|
90
|
+
return applyTransform(response.data, [
|
|
91
|
+
snakeToCamel(),
|
|
92
|
+
itemResponseHandler,
|
|
93
|
+
]);
|
|
94
|
+
} catch (err) {
|
|
95
|
+
throw applyTransform(err, [
|
|
96
|
+
notify,
|
|
97
|
+
]);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
147
100
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
101
|
+
const addAdjunctType = async ({ itemInstance }) => {
|
|
102
|
+
const repo = itemInstance.repo;
|
|
103
|
+
const item = applyTransform(itemInstance, [
|
|
104
|
+
camelToSnake(),
|
|
105
|
+
sanitize(fieldsToSend),
|
|
106
|
+
]);
|
|
107
|
+
try {
|
|
108
|
+
const response = await getDictionaries().createType(repo, item);
|
|
109
|
+
return applyTransform(response.data, [
|
|
110
|
+
snakeToCamel(),
|
|
111
|
+
itemResponseHandler,
|
|
112
|
+
]);
|
|
113
|
+
} catch (err) {
|
|
114
|
+
throw applyTransform(err, [
|
|
115
|
+
notify,
|
|
116
|
+
]);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
160
119
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
120
|
+
const updateAdjunctType = async ({ itemInstance, itemId: id }) => {
|
|
121
|
+
const item = applyTransform(itemInstance, [
|
|
122
|
+
camelToSnake(),
|
|
123
|
+
sanitize(fieldsToSend),
|
|
124
|
+
]);
|
|
125
|
+
try {
|
|
126
|
+
const response = await getDictionaries().updateType(id, item);
|
|
127
|
+
return applyTransform(response.data, [
|
|
128
|
+
snakeToCamel(),
|
|
129
|
+
itemResponseHandler,
|
|
130
|
+
]);
|
|
131
|
+
} catch (err) {
|
|
132
|
+
throw applyTransform(err, [
|
|
133
|
+
notify,
|
|
134
|
+
]);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
167
137
|
|
|
168
|
-
|
|
169
|
-
|
|
138
|
+
const deleteAdjunctType = async ({ id }) => {
|
|
139
|
+
const repo = Array.isArray(id)
|
|
140
|
+
? id
|
|
141
|
+
: [
|
|
142
|
+
id,
|
|
143
|
+
];
|
|
144
|
+
try {
|
|
145
|
+
const response = await getDictionaries().deleteType({
|
|
146
|
+
repo,
|
|
147
|
+
});
|
|
148
|
+
return applyTransform(response.data, []);
|
|
149
|
+
} catch (err) {
|
|
150
|
+
throw applyTransform(err, [
|
|
151
|
+
notify,
|
|
152
|
+
]);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
170
155
|
|
|
171
|
-
|
|
156
|
+
const getAdjunctTypesLookup = async (params) =>
|
|
157
|
+
getAdjunctTypesList({
|
|
158
|
+
...params,
|
|
159
|
+
fields: params.fields || [
|
|
160
|
+
'id',
|
|
161
|
+
'name',
|
|
162
|
+
],
|
|
163
|
+
});
|
|
172
164
|
|
|
173
165
|
export const AdjunctTypesAPI = {
|
|
174
166
|
getList: getAdjunctTypesList,
|
|
167
|
+
get: getAdjunctType,
|
|
168
|
+
add: addAdjunctType,
|
|
169
|
+
update: updateAdjunctType,
|
|
170
|
+
delete: deleteAdjunctType,
|
|
171
|
+
getLookup: getAdjunctTypesLookup,
|
|
175
172
|
};
|
|
176
173
|
|
|
177
174
|
/**
|
|
@@ -10,6 +10,7 @@ import type { EngineQuestionAnswer } from './engineQuestionAnswer.zod';
|
|
|
10
10
|
export interface EngineAuditRate {
|
|
11
11
|
answers?: EngineQuestionAnswer[];
|
|
12
12
|
comment?: string;
|
|
13
|
+
conversationId?: string;
|
|
13
14
|
createdAt?: string;
|
|
14
15
|
createdBy?: EngineLookup;
|
|
15
16
|
criticalCount?: string;
|
|
@@ -258,6 +258,7 @@ export declare const SearchAuditRateQueryParams: zod.ZodObject<
|
|
|
258
258
|
id: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
|
|
259
259
|
callId: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
260
260
|
ratedUser: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
261
|
+
conversationId: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
261
262
|
},
|
|
262
263
|
zod.z.core.$strip
|
|
263
264
|
>;
|
|
@@ -291,6 +292,7 @@ export declare const SearchAuditRateResponse: zod.ZodObject<
|
|
|
291
292
|
>
|
|
292
293
|
>;
|
|
293
294
|
comment: zod.ZodOptional<zod.ZodString>;
|
|
295
|
+
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
294
296
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
295
297
|
createdBy: zod.ZodOptional<
|
|
296
298
|
zod.ZodObject<
|
|
@@ -834,6 +836,7 @@ export declare const CreateAuditFormRateBody: zod.ZodObject<
|
|
|
834
836
|
>;
|
|
835
837
|
callId: zod.ZodOptional<zod.ZodString>;
|
|
836
838
|
comment: zod.ZodOptional<zod.ZodString>;
|
|
839
|
+
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
837
840
|
form: zod.ZodOptional<
|
|
838
841
|
zod.ZodObject<
|
|
839
842
|
{
|
|
@@ -872,6 +875,7 @@ export declare const CreateAuditFormRateResponse: zod.ZodObject<
|
|
|
872
875
|
>
|
|
873
876
|
>;
|
|
874
877
|
comment: zod.ZodOptional<zod.ZodString>;
|
|
878
|
+
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
875
879
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
876
880
|
createdBy: zod.ZodOptional<
|
|
877
881
|
zod.ZodObject<
|
|
@@ -984,6 +988,7 @@ export declare const DeleteAuditRateResponse: zod.ZodObject<
|
|
|
984
988
|
>
|
|
985
989
|
>;
|
|
986
990
|
comment: zod.ZodOptional<zod.ZodString>;
|
|
991
|
+
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
987
992
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
988
993
|
createdBy: zod.ZodOptional<
|
|
989
994
|
zod.ZodObject<
|
|
@@ -1096,6 +1101,7 @@ export declare const ReadAuditRateResponse: zod.ZodObject<
|
|
|
1096
1101
|
>
|
|
1097
1102
|
>;
|
|
1098
1103
|
comment: zod.ZodOptional<zod.ZodString>;
|
|
1104
|
+
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
1099
1105
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
1100
1106
|
createdBy: zod.ZodOptional<
|
|
1101
1107
|
zod.ZodObject<
|
|
@@ -1225,6 +1231,7 @@ export declare const UpdateAuditRateResponse: zod.ZodObject<
|
|
|
1225
1231
|
>
|
|
1226
1232
|
>;
|
|
1227
1233
|
comment: zod.ZodOptional<zod.ZodString>;
|
|
1234
|
+
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
1228
1235
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
1229
1236
|
createdBy: zod.ZodOptional<
|
|
1230
1237
|
zod.ZodObject<
|
package/src/gen/index.d.ts
CHANGED
|
@@ -1998,9 +1998,6 @@ export {
|
|
|
1998
1998
|
LocateSourceParams,
|
|
1999
1999
|
LocateSourceQueryParams,
|
|
2000
2000
|
LocateSourceResponse,
|
|
2001
|
-
listSourcesQueryPageDefault,
|
|
2002
|
-
listSourcesQuerySizeDefault,
|
|
2003
|
-
listSourcesQuerySortDefault,
|
|
2004
2001
|
listSourcesResponseItemsItemDescriptionMax,
|
|
2005
2002
|
listSourcesResponseItemsItemNameMax,
|
|
2006
2003
|
listSourcesResponseItemsItemNameMin,
|
|
@@ -8,15 +8,12 @@ import * as zod from 'zod';
|
|
|
8
8
|
/**
|
|
9
9
|
* @summary Retrieve a list of sources or search sources
|
|
10
10
|
*/
|
|
11
|
-
export declare const listSourcesQueryPageDefault = '1';
|
|
12
|
-
export declare const listSourcesQuerySizeDefault = '20';
|
|
13
|
-
export declare const listSourcesQuerySortDefault = 'name:desc';
|
|
14
11
|
export declare const ListSourcesQueryParams: zod.ZodObject<
|
|
15
12
|
{
|
|
16
|
-
page: zod.
|
|
17
|
-
size: zod.
|
|
13
|
+
page: zod.ZodOptional<zod.ZodNumber>;
|
|
14
|
+
size: zod.ZodOptional<zod.ZodNumber>;
|
|
18
15
|
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
19
|
-
sort: zod.
|
|
16
|
+
sort: zod.ZodOptional<zod.ZodString>;
|
|
20
17
|
id: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
21
18
|
q: zod.ZodOptional<zod.ZodString>;
|
|
22
19
|
type: zod.ZodOptional<
|
|
@@ -40,6 +40,7 @@ export * from './slas/slas';
|
|
|
40
40
|
export * from './teams/teams';
|
|
41
41
|
export * from './userSettings/userSettings';
|
|
42
42
|
export * from './users/users';
|
|
43
|
+
export * from './wtTypes/adjunctTypeRecords/adjunctTypeRecords';
|
|
43
44
|
export * from './wtTypes/adjunctTypes/adjunctTypes';
|
|
44
45
|
export * from './wtTypes/sysTypes/sysTypes';
|
|
45
46
|
export * from './wtTypes/typeExtensions/typeExtensions';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const AdjunctTypeRecordsAPI: {
|
|
2
|
+
getList: ({ repo, ...params }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
repo: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
get: ({ itemId: id, repo }: {
|
|
10
|
+
itemId: any;
|
|
11
|
+
repo: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
add: ({ itemInstance, fieldsToSend, repo }: {
|
|
14
|
+
itemInstance: any;
|
|
15
|
+
fieldsToSend: any;
|
|
16
|
+
repo: any;
|
|
17
|
+
}) => Promise<any>;
|
|
18
|
+
update: ({ itemInstance, fieldsToSend, itemId: id, repo, }: {
|
|
19
|
+
itemInstance: any;
|
|
20
|
+
fieldsToSend: any;
|
|
21
|
+
itemId: any;
|
|
22
|
+
repo: any;
|
|
23
|
+
}) => Promise<any>;
|
|
24
|
+
delete: ({ repo, id }: {
|
|
25
|
+
repo: any;
|
|
26
|
+
id: any;
|
|
27
|
+
}) => Promise<any>;
|
|
28
|
+
getLookup: ({ path, display, primary, ...params }: {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
path: any;
|
|
31
|
+
display: any;
|
|
32
|
+
primary: any;
|
|
33
|
+
}) => Promise<{
|
|
34
|
+
items: any;
|
|
35
|
+
next: any;
|
|
36
|
+
}>;
|
|
37
|
+
batchCreate: ({ repo, rows }: {
|
|
38
|
+
repo: any;
|
|
39
|
+
rows: any;
|
|
40
|
+
}) => Promise<any>;
|
|
41
|
+
};
|
|
@@ -1,25 +1,53 @@
|
|
|
1
1
|
export declare const AdjunctTypesAPI: {
|
|
2
|
-
getList: (
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
repo: any;
|
|
5
|
-
}, { silent }?: {
|
|
2
|
+
getList: (params: any, { silent }?: {
|
|
6
3
|
silent?: boolean;
|
|
7
4
|
}) => Promise<{
|
|
8
5
|
items: any;
|
|
9
6
|
next: any;
|
|
10
7
|
}>;
|
|
8
|
+
get: ({ itemId: itemRepo }: {
|
|
9
|
+
itemId: any;
|
|
10
|
+
}) => Promise<any>;
|
|
11
|
+
add: ({ itemInstance }: {
|
|
12
|
+
itemInstance: any;
|
|
13
|
+
}) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id }: {
|
|
15
|
+
itemInstance: any;
|
|
16
|
+
itemId: any;
|
|
17
|
+
}) => Promise<any>;
|
|
18
|
+
delete: ({ id }: {
|
|
19
|
+
id: any;
|
|
20
|
+
}) => Promise<any>;
|
|
21
|
+
getLookup: (params: any) => Promise<{
|
|
22
|
+
items: any;
|
|
23
|
+
next: any;
|
|
24
|
+
}>;
|
|
11
25
|
};
|
|
12
26
|
/**
|
|
13
27
|
* @alias AdjunctTypesAPI
|
|
14
28
|
*/
|
|
15
29
|
export declare const CustomLookupAPI: {
|
|
16
|
-
getList: (
|
|
17
|
-
[x: string]: any;
|
|
18
|
-
repo: any;
|
|
19
|
-
}, { silent }?: {
|
|
30
|
+
getList: (params: any, { silent }?: {
|
|
20
31
|
silent?: boolean;
|
|
21
32
|
}) => Promise<{
|
|
22
33
|
items: any;
|
|
23
34
|
next: any;
|
|
24
35
|
}>;
|
|
36
|
+
get: ({ itemId: itemRepo }: {
|
|
37
|
+
itemId: any;
|
|
38
|
+
}) => Promise<any>;
|
|
39
|
+
add: ({ itemInstance }: {
|
|
40
|
+
itemInstance: any;
|
|
41
|
+
}) => Promise<any>;
|
|
42
|
+
update: ({ itemInstance, itemId: id }: {
|
|
43
|
+
itemInstance: any;
|
|
44
|
+
itemId: any;
|
|
45
|
+
}) => Promise<any>;
|
|
46
|
+
delete: ({ id }: {
|
|
47
|
+
id: any;
|
|
48
|
+
}) => Promise<any>;
|
|
49
|
+
getLookup: (params: any) => Promise<{
|
|
50
|
+
items: any;
|
|
51
|
+
next: any;
|
|
52
|
+
}>;
|
|
25
53
|
};
|