@webitel/api-services 0.0.22 → 0.0.24
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 +2 -2
- package/src/gen/_docs/.nojekyll +1 -0
- package/src/gen/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/functions/cases_cases.api.gen.getCases.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCase2MockHandler.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCase2ResponseMock.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCaseMockHandler.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCaseResponseMock.html +1 -1
- package/src/gen/_docs/html/functions/file-service_file-service.api.gen.getFileService.html +1 -1
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getFileServiceUploadP2PVideoMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getFileServiceUploadP2PVideoResponseMock.html +1 -0
- package/src/gen/_docs/html/index.html +1 -1
- package/src/gen/_docs/html/interfaces/_models_storageICEServers.StorageICEServers.html +9 -0
- package/src/gen/_docs/html/interfaces/_models_storageUploadP2PVideoRequest.StorageUploadP2PVideoRequest.html +5 -0
- package/src/gen/_docs/html/interfaces/_models_storageUploadP2PVideoResponse.StorageUploadP2PVideoResponse.html +6 -0
- package/src/gen/_docs/html/interfaces/_models_webitelCasesFieldChange.WebitelCasesFieldChange.html +8 -0
- package/src/gen/_docs/html/interfaces/_models_webitelCasesUpdateCaseResponse.WebitelCasesUpdateCaseResponse.html +3 -0
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_storageICEServers.html +1 -0
- package/src/gen/_docs/html/modules/_models_storageUploadP2PVideoRequest.html +1 -0
- package/src/gen/_docs/html/modules/_models_storageUploadP2PVideoResponse.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelCasesFieldChange.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelCasesUpdateCaseResponse.html +1 -0
- package/src/gen/_docs/html/modules/cases_cases.zod.gen.html +2 -2
- package/src/gen/_docs/html/modules/file-service_file-service.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/file-service_file-service.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/file-service_file-service.zod.gen.html +1 -1
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/types/cases_cases.api.gen.UpdateCase2Result.html +1 -1
- package/src/gen/_docs/html/types/cases_cases.api.gen.UpdateCaseResult.html +1 -1
- package/src/gen/_docs/html/types/file-service_file-service.api.gen.FileServiceUploadP2PVideoResult.html +1 -0
- package/src/gen/_docs/html/variables/_models_engineTriggerObjectType.EngineTriggerObjectType.html +1 -1
- package/src/gen/_docs/html/variables/_models_fileServiceSearchFilesChannelItem.FileServiceSearchFilesChannelItem.html +1 -1
- package/src/gen/_docs/html/variables/_models_storageUploadFileChannel.StorageUploadFileChannel.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2Response.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseCaseRelatedDataItemRelationTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseCaseSourceTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponse.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseCaseRelatedDataItemRelationTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseCaseSourceTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceCreateFilePolicyBody.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceCreateFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceDeleteFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServicePatchFilePolicyBody.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServicePatchFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceReadFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceSearchFilePoliciesResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceUpdateFilePolicyBody.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceUpdateFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceSearchFilesQueryParams.html +1 -1
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceSearchFilesResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceUploadP2PVideoBody.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceUploadP2PVideoResponse.html +1 -0
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.createTriggerBody.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.createTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.deleteTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.patchTriggerBody.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.patchTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.readTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.searchTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.updateTriggerBody.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.updateTriggerResponse.html +1 -1
- package/src/gen/_models/engineTriggerObjectType.ts +1 -0
- package/src/gen/_models/fileServiceSearchFilesChannelItem.ts +2 -0
- package/src/gen/_models/index.ts +5 -0
- package/src/gen/_models/storageICEServers.ts +13 -0
- package/src/gen/_models/storageUploadFileChannel.ts +2 -0
- package/src/gen/_models/storageUploadP2PVideoRequest.ts +14 -0
- package/src/gen/_models/storageUploadP2PVideoResponse.ts +10 -0
- package/src/gen/_models/webitelCasesFieldChange.ts +12 -0
- package/src/gen/_models/webitelCasesUpdateCaseResponse.ts +13 -0
- package/src/gen/cases/cases.api.gen.ts +9 -4
- package/src/gen/cases/cases.msw.api.gen.ts +1153 -1061
- package/src/gen/cases/cases.zod.gen.ts +1009 -975
- package/src/gen/file-policies-service/file-policies-service.zod.gen.ts +18 -0
- package/src/gen/file-service/file-service.api.gen.ts +21 -1
- package/src/gen/file-service/file-service.msw.api.gen.ts +41 -1
- package/src/gen/file-service/file-service.zod.gen.ts +24 -0
- package/src/gen/trigger-service/trigger-service.zod.gen.ts +9 -0
- package/types/gen/_models/casesCaseCustom.d.ts +12 -0
- package/types/gen/_models/casesInputCaseCustom.d.ts +12 -0
- package/types/gen/_models/casesInputCreateCaseCustom.d.ts +12 -0
- package/types/gen/_models/engineTriggerObjectType.d.ts +1 -0
- package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +2 -0
- package/types/gen/_models/googlerpcStatus.d.ts +4 -4
- package/types/gen/_models/index.d.ts +5 -0
- package/types/gen/_models/protobufNullValue.d.ts +18 -0
- package/types/gen/_models/storageICEServers.d.ts +12 -0
- package/types/gen/_models/storageUploadFileChannel.d.ts +2 -0
- package/types/gen/_models/storageUploadP2PVideoRequest.d.ts +13 -0
- package/types/gen/_models/storageUploadP2PVideoResponse.d.ts +9 -0
- package/types/gen/_models/webitelCasesFieldChange.d.ts +11 -0
- package/types/gen/_models/webitelCasesUpdateCaseResponse.d.ts +12 -0
- package/types/gen/_models/webitelcasesStatus.d.ts +2 -2
- package/types/gen/cases/cases.api.gen.d.ts +5 -5
- package/types/gen/cases/cases.msw.api.gen.d.ts +5 -5
- package/types/gen/cases/cases.zod.gen.d.ts +410 -396
- package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +18 -0
- package/types/gen/file-service/file-service.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.msw.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.zod.gen.d.ts +18 -0
- package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +9 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseRelatedDataItemRelationTypeDefault.html +0 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseSourceTypeDefault.html +0 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseRelatedDataItemRelationTypeDefault.html +0 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseSourceTypeDefault.html +0 -1
- package/types/gen/_models/googleRpcStatus.d.ts +0 -12
- package/types/gen/_models/webitelCasesStatus.d.ts +0 -16
|
@@ -36,6 +36,8 @@ export const filePoliciesServiceSearchFilePoliciesResponse = zod.object({
|
|
|
36
36
|
'MediaChannel',
|
|
37
37
|
'KnowledgebaseChannel',
|
|
38
38
|
'CasesChannel',
|
|
39
|
+
'ScreenshotChannel',
|
|
40
|
+
'ScreenSharingChannel',
|
|
39
41
|
]),
|
|
40
42
|
)
|
|
41
43
|
.optional(),
|
|
@@ -88,6 +90,8 @@ export const filePoliciesServiceCreateFilePolicyBody = zod.object({
|
|
|
88
90
|
'MediaChannel',
|
|
89
91
|
'KnowledgebaseChannel',
|
|
90
92
|
'CasesChannel',
|
|
93
|
+
'ScreenshotChannel',
|
|
94
|
+
'ScreenSharingChannel',
|
|
91
95
|
]),
|
|
92
96
|
)
|
|
93
97
|
.optional(),
|
|
@@ -117,6 +121,8 @@ export const filePoliciesServiceCreateFilePolicyResponse = zod.object({
|
|
|
117
121
|
'MediaChannel',
|
|
118
122
|
'KnowledgebaseChannel',
|
|
119
123
|
'CasesChannel',
|
|
124
|
+
'ScreenshotChannel',
|
|
125
|
+
'ScreenSharingChannel',
|
|
120
126
|
]),
|
|
121
127
|
)
|
|
122
128
|
.optional(),
|
|
@@ -183,6 +189,8 @@ export const filePoliciesServiceDeleteFilePolicyResponse = zod.object({
|
|
|
183
189
|
'MediaChannel',
|
|
184
190
|
'KnowledgebaseChannel',
|
|
185
191
|
'CasesChannel',
|
|
192
|
+
'ScreenshotChannel',
|
|
193
|
+
'ScreenSharingChannel',
|
|
186
194
|
]),
|
|
187
195
|
)
|
|
188
196
|
.optional(),
|
|
@@ -235,6 +243,8 @@ export const filePoliciesServiceReadFilePolicyResponse = zod.object({
|
|
|
235
243
|
'MediaChannel',
|
|
236
244
|
'KnowledgebaseChannel',
|
|
237
245
|
'CasesChannel',
|
|
246
|
+
'ScreenshotChannel',
|
|
247
|
+
'ScreenSharingChannel',
|
|
238
248
|
]),
|
|
239
249
|
)
|
|
240
250
|
.optional(),
|
|
@@ -287,6 +297,8 @@ export const filePoliciesServicePatchFilePolicyBody = zod.object({
|
|
|
287
297
|
'MediaChannel',
|
|
288
298
|
'KnowledgebaseChannel',
|
|
289
299
|
'CasesChannel',
|
|
300
|
+
'ScreenshotChannel',
|
|
301
|
+
'ScreenSharingChannel',
|
|
290
302
|
]),
|
|
291
303
|
)
|
|
292
304
|
.optional(),
|
|
@@ -318,6 +330,8 @@ export const filePoliciesServicePatchFilePolicyResponse = zod.object({
|
|
|
318
330
|
'MediaChannel',
|
|
319
331
|
'KnowledgebaseChannel',
|
|
320
332
|
'CasesChannel',
|
|
333
|
+
'ScreenshotChannel',
|
|
334
|
+
'ScreenSharingChannel',
|
|
321
335
|
]),
|
|
322
336
|
)
|
|
323
337
|
.optional(),
|
|
@@ -370,6 +384,8 @@ export const filePoliciesServiceUpdateFilePolicyBody = zod.object({
|
|
|
370
384
|
'MediaChannel',
|
|
371
385
|
'KnowledgebaseChannel',
|
|
372
386
|
'CasesChannel',
|
|
387
|
+
'ScreenshotChannel',
|
|
388
|
+
'ScreenSharingChannel',
|
|
373
389
|
]),
|
|
374
390
|
)
|
|
375
391
|
.optional(),
|
|
@@ -400,6 +416,8 @@ export const filePoliciesServiceUpdateFilePolicyResponse = zod.object({
|
|
|
400
416
|
'MediaChannel',
|
|
401
417
|
'KnowledgebaseChannel',
|
|
402
418
|
'CasesChannel',
|
|
419
|
+
'ScreenshotChannel',
|
|
420
|
+
'ScreenSharingChannel',
|
|
403
421
|
]),
|
|
404
422
|
)
|
|
405
423
|
.optional(),
|
|
@@ -13,6 +13,8 @@ import type {
|
|
|
13
13
|
StorageDeleteFilesRequest,
|
|
14
14
|
StorageDeleteFilesResponse,
|
|
15
15
|
StorageListFile,
|
|
16
|
+
StorageUploadP2PVideoRequest,
|
|
17
|
+
StorageUploadP2PVideoResponse,
|
|
16
18
|
} from '.././_models';
|
|
17
19
|
|
|
18
20
|
// --- header start
|
|
@@ -43,12 +45,30 @@ export const // --- title start
|
|
|
43
45
|
params: { ...params, ...options?.params },
|
|
44
46
|
});
|
|
45
47
|
};
|
|
48
|
+
const fileServiceUploadP2PVideo = <
|
|
49
|
+
TData = AxiosResponse<StorageUploadP2PVideoResponse>,
|
|
50
|
+
>(
|
|
51
|
+
storageUploadP2PVideoRequest: StorageUploadP2PVideoRequest,
|
|
52
|
+
options?: AxiosRequestConfig,
|
|
53
|
+
): Promise<TData> => {
|
|
54
|
+
return axios.post(
|
|
55
|
+
'/storage/p2p/upload/video',
|
|
56
|
+
storageUploadP2PVideoRequest,
|
|
57
|
+
options,
|
|
58
|
+
);
|
|
59
|
+
};
|
|
46
60
|
|
|
47
61
|
// --- footer start
|
|
48
|
-
return {
|
|
62
|
+
return {
|
|
63
|
+
fileServiceDeleteFiles,
|
|
64
|
+
fileServiceSearchFiles,
|
|
65
|
+
fileServiceUploadP2PVideo,
|
|
66
|
+
};
|
|
49
67
|
};
|
|
50
68
|
export type FileServiceDeleteFilesResult =
|
|
51
69
|
AxiosResponse<StorageDeleteFilesResponse>;
|
|
52
70
|
export type FileServiceSearchFilesResult = AxiosResponse<StorageListFile>;
|
|
71
|
+
export type FileServiceUploadP2PVideoResult =
|
|
72
|
+
AxiosResponse<StorageUploadP2PVideoResponse>;
|
|
53
73
|
|
|
54
74
|
// --- footer end
|
|
@@ -9,7 +9,11 @@ import { faker } from '@faker-js/faker';
|
|
|
9
9
|
import { http, HttpResponse, delay } from 'msw';
|
|
10
10
|
|
|
11
11
|
import { StorageUploadFileChannel } from '.././_models';
|
|
12
|
-
import type {
|
|
12
|
+
import type {
|
|
13
|
+
StorageDeleteFilesResponse,
|
|
14
|
+
StorageListFile,
|
|
15
|
+
StorageUploadP2PVideoResponse,
|
|
16
|
+
} from '.././_models';
|
|
13
17
|
|
|
14
18
|
export const getFileServiceDeleteFilesResponseMock =
|
|
15
19
|
(): StorageDeleteFilesResponse => ({});
|
|
@@ -103,6 +107,16 @@ export const getFileServiceSearchFilesResponseMock = (
|
|
|
103
107
|
...overrideResponse,
|
|
104
108
|
});
|
|
105
109
|
|
|
110
|
+
export const getFileServiceUploadP2PVideoResponseMock = (
|
|
111
|
+
overrideResponse: Partial<StorageUploadP2PVideoResponse> = {},
|
|
112
|
+
): StorageUploadP2PVideoResponse => ({
|
|
113
|
+
sdpAnswer: faker.helpers.arrayElement([
|
|
114
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
115
|
+
undefined,
|
|
116
|
+
]),
|
|
117
|
+
...overrideResponse,
|
|
118
|
+
});
|
|
119
|
+
|
|
106
120
|
export const getFileServiceDeleteFilesMockHandler = (
|
|
107
121
|
overrideResponse?:
|
|
108
122
|
| StorageDeleteFilesResponse
|
|
@@ -148,7 +162,33 @@ export const getFileServiceSearchFilesMockHandler = (
|
|
|
148
162
|
);
|
|
149
163
|
});
|
|
150
164
|
};
|
|
165
|
+
|
|
166
|
+
export const getFileServiceUploadP2PVideoMockHandler = (
|
|
167
|
+
overrideResponse?:
|
|
168
|
+
| StorageUploadP2PVideoResponse
|
|
169
|
+
| ((
|
|
170
|
+
info: Parameters<Parameters<typeof http.post>[1]>[0],
|
|
171
|
+
) =>
|
|
172
|
+
| Promise<StorageUploadP2PVideoResponse>
|
|
173
|
+
| StorageUploadP2PVideoResponse),
|
|
174
|
+
) => {
|
|
175
|
+
return http.post('*/storage/p2p/upload/video', async (info) => {
|
|
176
|
+
await delay(1000);
|
|
177
|
+
|
|
178
|
+
return new HttpResponse(
|
|
179
|
+
JSON.stringify(
|
|
180
|
+
overrideResponse !== undefined
|
|
181
|
+
? typeof overrideResponse === 'function'
|
|
182
|
+
? await overrideResponse(info)
|
|
183
|
+
: overrideResponse
|
|
184
|
+
: getFileServiceUploadP2PVideoResponseMock(),
|
|
185
|
+
),
|
|
186
|
+
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
187
|
+
);
|
|
188
|
+
});
|
|
189
|
+
};
|
|
151
190
|
export const getFileServiceMock = () => [
|
|
152
191
|
getFileServiceDeleteFilesMockHandler(),
|
|
153
192
|
getFileServiceSearchFilesMockHandler(),
|
|
193
|
+
getFileServiceUploadP2PVideoMockHandler(),
|
|
154
194
|
];
|
|
@@ -34,6 +34,8 @@ export const fileServiceSearchFilesQueryParams = zod.object({
|
|
|
34
34
|
'MediaChannel',
|
|
35
35
|
'KnowledgebaseChannel',
|
|
36
36
|
'CasesChannel',
|
|
37
|
+
'ScreenshotChannel',
|
|
38
|
+
'ScreenSharingChannel',
|
|
37
39
|
]),
|
|
38
40
|
)
|
|
39
41
|
.optional(),
|
|
@@ -58,6 +60,8 @@ export const fileServiceSearchFilesResponse = zod.object({
|
|
|
58
60
|
'MediaChannel',
|
|
59
61
|
'KnowledgebaseChannel',
|
|
60
62
|
'CasesChannel',
|
|
63
|
+
'ScreenshotChannel',
|
|
64
|
+
'ScreenSharingChannel',
|
|
61
65
|
])
|
|
62
66
|
.default(fileServiceSearchFilesResponseItemsItemChannelDefault),
|
|
63
67
|
id: zod.string().optional(),
|
|
@@ -88,3 +92,23 @@ export const fileServiceSearchFilesResponse = zod.object({
|
|
|
88
92
|
.optional(),
|
|
89
93
|
next: zod.boolean().optional(),
|
|
90
94
|
});
|
|
95
|
+
|
|
96
|
+
export const fileServiceUploadP2PVideoBody = zod.object({
|
|
97
|
+
iceServers: zod
|
|
98
|
+
.array(
|
|
99
|
+
zod.object({
|
|
100
|
+
credential: zod.string().optional(),
|
|
101
|
+
credentialType: zod.number().optional(),
|
|
102
|
+
urls: zod.array(zod.string()).optional(),
|
|
103
|
+
username: zod.string().optional(),
|
|
104
|
+
}),
|
|
105
|
+
)
|
|
106
|
+
.optional(),
|
|
107
|
+
name: zod.string().optional(),
|
|
108
|
+
sdpOffer: zod.string().optional(),
|
|
109
|
+
uuid: zod.string().optional(),
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export const fileServiceUploadP2PVideoResponse = zod.object({
|
|
113
|
+
sdpAnswer: zod.string().optional(),
|
|
114
|
+
});
|
|
@@ -49,6 +49,7 @@ export const searchTriggerResponse = zod.object({
|
|
|
49
49
|
'case_files',
|
|
50
50
|
'case_comments',
|
|
51
51
|
'case_links',
|
|
52
|
+
'related_cases',
|
|
52
53
|
])
|
|
53
54
|
.default(searchTriggerResponseItemsItemObjectDefault),
|
|
54
55
|
schema: zod
|
|
@@ -102,6 +103,7 @@ export const createTriggerBody = zod.object({
|
|
|
102
103
|
'case_files',
|
|
103
104
|
'case_comments',
|
|
104
105
|
'case_links',
|
|
106
|
+
'related_cases',
|
|
105
107
|
])
|
|
106
108
|
.default(createTriggerBodyObjectDefault),
|
|
107
109
|
schema: zod
|
|
@@ -149,6 +151,7 @@ export const createTriggerResponse = zod.object({
|
|
|
149
151
|
'case_files',
|
|
150
152
|
'case_comments',
|
|
151
153
|
'case_links',
|
|
154
|
+
'related_cases',
|
|
152
155
|
])
|
|
153
156
|
.default(createTriggerResponseObjectDefault),
|
|
154
157
|
schema: zod
|
|
@@ -203,6 +206,7 @@ export const deleteTriggerResponse = zod.object({
|
|
|
203
206
|
'case_files',
|
|
204
207
|
'case_comments',
|
|
205
208
|
'case_links',
|
|
209
|
+
'related_cases',
|
|
206
210
|
])
|
|
207
211
|
.default(deleteTriggerResponseObjectDefault),
|
|
208
212
|
schema: zod
|
|
@@ -257,6 +261,7 @@ export const readTriggerResponse = zod.object({
|
|
|
257
261
|
'case_files',
|
|
258
262
|
'case_comments',
|
|
259
263
|
'case_links',
|
|
264
|
+
'related_cases',
|
|
260
265
|
])
|
|
261
266
|
.default(readTriggerResponseObjectDefault),
|
|
262
267
|
schema: zod
|
|
@@ -308,6 +313,7 @@ export const patchTriggerBody = zod.object({
|
|
|
308
313
|
'case_files',
|
|
309
314
|
'case_comments',
|
|
310
315
|
'case_links',
|
|
316
|
+
'related_cases',
|
|
311
317
|
])
|
|
312
318
|
.default(patchTriggerBodyObjectDefault),
|
|
313
319
|
schema: zod
|
|
@@ -355,6 +361,7 @@ export const patchTriggerResponse = zod.object({
|
|
|
355
361
|
'case_files',
|
|
356
362
|
'case_comments',
|
|
357
363
|
'case_links',
|
|
364
|
+
'related_cases',
|
|
358
365
|
])
|
|
359
366
|
.default(patchTriggerResponseObjectDefault),
|
|
360
367
|
schema: zod
|
|
@@ -408,6 +415,7 @@ export const updateTriggerBody = zod.object({
|
|
|
408
415
|
'case_files',
|
|
409
416
|
'case_comments',
|
|
410
417
|
'case_links',
|
|
418
|
+
'related_cases',
|
|
411
419
|
])
|
|
412
420
|
.default(updateTriggerBodyObjectDefault),
|
|
413
421
|
schema: zod
|
|
@@ -455,6 +463,7 @@ export const updateTriggerResponse = zod.object({
|
|
|
455
463
|
'case_files',
|
|
456
464
|
'case_comments',
|
|
457
465
|
'case_links',
|
|
466
|
+
'related_cases',
|
|
458
467
|
])
|
|
459
468
|
.default(updateTriggerResponseObjectDefault),
|
|
460
469
|
schema: zod
|
|
@@ -14,4 +14,6 @@ export declare const FileServiceSearchFilesChannelItem: {
|
|
|
14
14
|
readonly MediaChannel: "MediaChannel";
|
|
15
15
|
readonly KnowledgebaseChannel: "KnowledgebaseChannel";
|
|
16
16
|
readonly CasesChannel: "CasesChannel";
|
|
17
|
+
readonly ScreenshotChannel: "ScreenshotChannel";
|
|
18
|
+
readonly ScreenSharingChannel: "ScreenSharingChannel";
|
|
17
19
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
8
|
-
export interface
|
|
7
|
+
import type { GoogleProtobufAny } from './googleProtobufAny';
|
|
8
|
+
export interface GoogleRpcStatus {
|
|
9
9
|
code?: number;
|
|
10
|
-
details?:
|
|
10
|
+
details?: GoogleProtobufAny[];
|
|
11
11
|
message?: string;
|
|
12
12
|
}
|
|
@@ -951,6 +951,7 @@ export * from './storageGenerateFileLinkRequest';
|
|
|
951
951
|
export * from './storageGenerateFileLinkRequestQuery';
|
|
952
952
|
export * from './storageGenerateFileLinkResponse';
|
|
953
953
|
export * from './storageGenerateFileLinkResponseMetadata';
|
|
954
|
+
export * from './storageICEServers';
|
|
954
955
|
export * from './storageImportSourceType';
|
|
955
956
|
export * from './storageImportTemplate';
|
|
956
957
|
export * from './storageImportTemplateParameters';
|
|
@@ -999,6 +1000,8 @@ export * from './storageUploadFileChannel';
|
|
|
999
1000
|
export * from './storageUploadFileRequestMetadata';
|
|
1000
1001
|
export * from './storageUploadFileResponse';
|
|
1001
1002
|
export * from './storageUploadFileUrlResponse';
|
|
1003
|
+
export * from './storageUploadP2PVideoRequest';
|
|
1004
|
+
export * from './storageUploadP2PVideoResponse';
|
|
1002
1005
|
export * from './storageUploadStatusCode';
|
|
1003
1006
|
export * from './tagsListTagsParams';
|
|
1004
1007
|
export * from './timelineGetTimelineParams';
|
|
@@ -1124,6 +1127,7 @@ export * from './webitelCasesCreateInputRelatedCase';
|
|
|
1124
1127
|
export * from './webitelCasesDayTimeline';
|
|
1125
1128
|
export * from './webitelCasesEmailEvent';
|
|
1126
1129
|
export * from './webitelCasesEvent';
|
|
1130
|
+
export * from './webitelCasesFieldChange';
|
|
1127
1131
|
export * from './webitelCasesFile';
|
|
1128
1132
|
export * from './webitelCasesGetTimelineCounterResponse';
|
|
1129
1133
|
export * from './webitelCasesGetTimelineResponse';
|
|
@@ -1191,6 +1195,7 @@ export * from './webitelCasesStatusConditionList';
|
|
|
1191
1195
|
export * from './webitelCasesStatusList';
|
|
1192
1196
|
export * from './webitelCasesTranscriptLookup';
|
|
1193
1197
|
export * from './webitelCasesUnlinkCommunicationResponse';
|
|
1198
|
+
export * from './webitelCasesUpdateCaseResponse';
|
|
1194
1199
|
export * from './webitelChatAgentChat';
|
|
1195
1200
|
export * from './webitelChatBroadcastError';
|
|
1196
1201
|
export * from './webitelChatBroadcastMessageRequest';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.9.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* service.proto
|
|
5
|
+
* OpenAPI spec version: version not set
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
9
|
+
`Value` type union.
|
|
10
|
+
|
|
11
|
+
The JSON representation for `NullValue` is JSON `null`.
|
|
12
|
+
|
|
13
|
+
- NULL_VALUE: Null value.
|
|
14
|
+
*/
|
|
15
|
+
export type ProtobufNullValue = (typeof ProtobufNullValue)[keyof typeof ProtobufNullValue];
|
|
16
|
+
export declare const ProtobufNullValue: {
|
|
17
|
+
readonly NullValue: "NULL_VALUE";
|
|
18
|
+
};
|
|
@@ -14,4 +14,6 @@ export declare const StorageUploadFileChannel: {
|
|
|
14
14
|
readonly MediaChannel: "MediaChannel";
|
|
15
15
|
readonly KnowledgebaseChannel: "KnowledgebaseChannel";
|
|
16
16
|
readonly CasesChannel: "CasesChannel";
|
|
17
|
+
readonly ScreenshotChannel: "ScreenshotChannel";
|
|
18
|
+
readonly ScreenSharingChannel: "ScreenSharingChannel";
|
|
17
19
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { StorageICEServers } from './storageICEServers';
|
|
8
|
+
export interface StorageUploadP2PVideoRequest {
|
|
9
|
+
iceServers?: StorageICEServers[];
|
|
10
|
+
name?: string;
|
|
11
|
+
sdpOffer?: string;
|
|
12
|
+
uuid?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelCasesCase } from './webitelCasesCase';
|
|
8
|
+
import type { WebitelCasesFieldChange } from './webitelCasesFieldChange';
|
|
9
|
+
export interface WebitelCasesUpdateCaseResponse {
|
|
10
|
+
case?: WebitelCasesCase;
|
|
11
|
+
changes?: WebitelCasesFieldChange[];
|
|
12
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
import type { GeneralLookup } from './generalLookup';
|
|
8
|
-
export interface
|
|
8
|
+
export interface WebitelCasesStatus {
|
|
9
9
|
createdAt?: string;
|
|
10
10
|
createdBy?: GeneralLookup;
|
|
11
11
|
description?: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import type { CreateCaseParams, DeleteCaseParams, LocateCaseParams, SearchCases2Params, SearchCasesParams, UpdateCase2Body, UpdateCase2Params, UpdateCaseBody, UpdateCaseParams, WebitelCasesCase, WebitelCasesCaseList, WebitelCasesInputCreateCase } from '.././_models';
|
|
2
|
+
import type { CreateCaseParams, DeleteCaseParams, LocateCaseParams, SearchCases2Params, SearchCasesParams, UpdateCase2Body, UpdateCase2Params, UpdateCaseBody, UpdateCaseParams, WebitelCasesCase, WebitelCasesCaseList, WebitelCasesInputCreateCase, WebitelCasesUpdateCaseResponse } from '.././_models';
|
|
3
3
|
export declare const // --- title start
|
|
4
4
|
getCases: () => {
|
|
5
5
|
searchCases: <TData = AxiosResponse<WebitelCasesCaseList, any>>(params?: SearchCasesParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
6
6
|
createCase: <TData = AxiosResponse<WebitelCasesCase, any>>(webitelCasesInputCreateCase: WebitelCasesInputCreateCase, params?: CreateCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
7
7
|
deleteCase: <TData = AxiosResponse<WebitelCasesCase, any>>(etag: string, params?: DeleteCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
8
8
|
locateCase: <TData = AxiosResponse<WebitelCasesCase, any>>(etag: string, params?: LocateCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
9
|
-
updateCase2: <TData = AxiosResponse<
|
|
10
|
-
updateCase: <TData = AxiosResponse<
|
|
9
|
+
updateCase2: <TData = AxiosResponse<WebitelCasesUpdateCaseResponse, any>>(updateCase2Body: UpdateCase2Body, params?: UpdateCase2Params, options?: AxiosRequestConfig) => Promise<TData>;
|
|
10
|
+
updateCase: <TData = AxiosResponse<WebitelCasesUpdateCaseResponse, any>>(updateCaseBody: UpdateCaseBody, params?: UpdateCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
11
11
|
searchCases2: <TData = AxiosResponse<WebitelCasesCaseList, any>>(contactId: string, params?: SearchCases2Params, options?: AxiosRequestConfig) => Promise<TData>;
|
|
12
12
|
};
|
|
13
13
|
export type SearchCasesResult = AxiosResponse<WebitelCasesCaseList>;
|
|
14
14
|
export type CreateCaseResult = AxiosResponse<WebitelCasesCase>;
|
|
15
15
|
export type DeleteCaseResult = AxiosResponse<WebitelCasesCase>;
|
|
16
16
|
export type LocateCaseResult = AxiosResponse<WebitelCasesCase>;
|
|
17
|
-
export type UpdateCase2Result = AxiosResponse<
|
|
18
|
-
export type UpdateCaseResult = AxiosResponse<
|
|
17
|
+
export type UpdateCase2Result = AxiosResponse<WebitelCasesUpdateCaseResponse>;
|
|
18
|
+
export type UpdateCaseResult = AxiosResponse<WebitelCasesUpdateCaseResponse>;
|
|
19
19
|
export type SearchCases2Result = AxiosResponse<WebitelCasesCaseList>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { WebitelCasesCase, WebitelCasesCaseList } from '.././_models';
|
|
2
|
+
import type { WebitelCasesCase, WebitelCasesCaseList, WebitelCasesUpdateCaseResponse } from '.././_models';
|
|
3
3
|
export declare const getSearchCasesResponseMock: (overrideResponse?: Partial<WebitelCasesCaseList>) => WebitelCasesCaseList;
|
|
4
4
|
export declare const getCreateCaseResponseMock: (overrideResponse?: Partial<WebitelCasesCase>) => WebitelCasesCase;
|
|
5
5
|
export declare const getDeleteCaseResponseMock: (overrideResponse?: Partial<WebitelCasesCase>) => WebitelCasesCase;
|
|
6
6
|
export declare const getLocateCaseResponseMock: (overrideResponse?: Partial<WebitelCasesCase>) => WebitelCasesCase;
|
|
7
|
-
export declare const getUpdateCase2ResponseMock: (overrideResponse?: Partial<
|
|
8
|
-
export declare const getUpdateCaseResponseMock: (overrideResponse?: Partial<
|
|
7
|
+
export declare const getUpdateCase2ResponseMock: (overrideResponse?: Partial<WebitelCasesUpdateCaseResponse>) => WebitelCasesUpdateCaseResponse;
|
|
8
|
+
export declare const getUpdateCaseResponseMock: (overrideResponse?: Partial<WebitelCasesUpdateCaseResponse>) => WebitelCasesUpdateCaseResponse;
|
|
9
9
|
export declare const getSearchCases2ResponseMock: (overrideResponse?: Partial<WebitelCasesCaseList>) => WebitelCasesCaseList;
|
|
10
10
|
export declare const getSearchCasesMockHandler: (overrideResponse?: WebitelCasesCaseList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebitelCasesCaseList> | WebitelCasesCaseList)) => import("msw").HttpHandler;
|
|
11
11
|
export declare const getCreateCaseMockHandler: (overrideResponse?: WebitelCasesCase | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<WebitelCasesCase> | WebitelCasesCase)) => import("msw").HttpHandler;
|
|
12
12
|
export declare const getDeleteCaseMockHandler: (overrideResponse?: WebitelCasesCase | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<WebitelCasesCase> | WebitelCasesCase)) => import("msw").HttpHandler;
|
|
13
13
|
export declare const getLocateCaseMockHandler: (overrideResponse?: WebitelCasesCase | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebitelCasesCase> | WebitelCasesCase)) => import("msw").HttpHandler;
|
|
14
|
-
export declare const getUpdateCase2MockHandler: (overrideResponse?:
|
|
15
|
-
export declare const getUpdateCaseMockHandler: (overrideResponse?:
|
|
14
|
+
export declare const getUpdateCase2MockHandler: (overrideResponse?: WebitelCasesUpdateCaseResponse | ((info: Parameters<Parameters<typeof http.patch>[1]>[0]) => Promise<WebitelCasesUpdateCaseResponse> | WebitelCasesUpdateCaseResponse)) => import("msw").HttpHandler;
|
|
15
|
+
export declare const getUpdateCaseMockHandler: (overrideResponse?: WebitelCasesUpdateCaseResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<WebitelCasesUpdateCaseResponse> | WebitelCasesUpdateCaseResponse)) => import("msw").HttpHandler;
|
|
16
16
|
export declare const getSearchCases2MockHandler: (overrideResponse?: WebitelCasesCaseList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebitelCasesCaseList> | WebitelCasesCaseList)) => import("msw").HttpHandler;
|
|
17
17
|
export declare const getCasesMock: () => import("msw").HttpHandler[];
|