@webitel/api-services 26.8.71 → 26.8.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/fileServices/__tests__/fileServices.spec.ts +20 -0
  3. package/src/api/clients/fileServices/fileServices.ts +53 -0
  4. package/src/api/clients/outboundResources/outboundResources.ts +44 -81
  5. package/src/api/clients/outboundResources/resourceDisplays.ts +106 -32
  6. package/src/api/clients/pdfServices/__tests__/downloadCallScreenrecordingArchive.spec.ts +60 -0
  7. package/src/api/clients/pdfServices/pdfServices.ts +42 -0
  8. package/src/enums/ResourceCidType/ResourceCidType.ts +8 -0
  9. package/src/enums/ResourceIgnoreEarlyMedia/ResourceIgnoreEarlyMedia.ts +9 -0
  10. package/src/enums/index.ts +4 -0
  11. package/src/locale/en/en.ts +4 -0
  12. package/src/locale/es/es.ts +4 -0
  13. package/src/locale/kz/kz.ts +4 -0
  14. package/src/locale/pl/pl.ts +4 -0
  15. package/src/locale/ro/ro.ts +4 -0
  16. package/src/locale/ru/ru.ts +4 -0
  17. package/src/locale/uk/uk.ts +4 -0
  18. package/src/locale/uz/uz.ts +4 -0
  19. package/src/locale/vi/vi.ts +4 -0
  20. package/src/validations/index.ts +2 -0
  21. package/src/validations/resource/__tests__/resource.validations.spec.ts +102 -0
  22. package/src/validations/resource/resource.validations.ts +28 -0
  23. package/src/validations/resourceDisplay/__tests__/resourceDisplay.validations.spec.ts +45 -0
  24. package/src/validations/resourceDisplay/resourceDisplay.validations.ts +9 -0
  25. package/types/.tsbuildinfo +1 -1
  26. package/types/api/clients/fileServices/fileServices.d.ts +8 -1
  27. package/types/api/clients/outboundResources/outboundResources.d.ts +2 -7
  28. package/types/api/clients/outboundResources/resourceDisplays.d.ts +7 -1
  29. package/types/api/clients/pdfServices/pdfServices.d.ts +4 -1
  30. package/types/enums/ResourceCidType/ResourceCidType.d.ts +6 -0
  31. package/types/enums/ResourceIgnoreEarlyMedia/ResourceIgnoreEarlyMedia.d.ts +7 -0
  32. package/types/enums/index.d.ts +3 -1
  33. package/types/locale/en/en.d.ts +3 -0
  34. package/types/locale/es/es.d.ts +3 -0
  35. package/types/locale/index.d.ts +27 -0
  36. package/types/locale/kz/kz.d.ts +3 -0
  37. package/types/locale/pl/pl.d.ts +3 -0
  38. package/types/locale/ro/ro.d.ts +3 -0
  39. package/types/locale/ru/ru.d.ts +3 -0
  40. package/types/locale/uk/uk.d.ts +3 -0
  41. package/types/locale/uz/uz.d.ts +3 -0
  42. package/types/locale/vi/vi.d.ts +3 -0
  43. package/types/validations/index.d.ts +2 -0
  44. package/types/validations/resource/resource.validations.d.ts +26 -0
  45. package/types/validations/resourceDisplay/resourceDisplay.validations.d.ts +5 -0
@@ -1,4 +1,4 @@
1
- import type { SearchFilesByCallParams, SearchFilesParams, SearchScreenRecordingsByAgentParams, SearchScreenRecordingsParams } from '@webitel/api-services/gen/models';
1
+ import type { SearchFilesByCallParams, SearchFilesParams, SearchScreenRecordingsByAgentParams, SearchScreenRecordingsByCallParams, SearchScreenRecordingsParams } from '@webitel/api-services/gen/models';
2
2
  import type { DatetimeRangeValue, NormalizeDatetimeValueParam } from '../../../scripts';
3
3
  import type { ApiId } from '../_shared/types';
4
4
  export declare const FileServicesAPI: {
@@ -29,6 +29,13 @@ export declare const FileServicesAPI: {
29
29
  items: any;
30
30
  next: any;
31
31
  }>;
32
+ getScreenRecordingsByCall: (params: SearchScreenRecordingsByCallParams & {
33
+ callId: ApiId;
34
+ search?: string;
35
+ }) => Promise<{
36
+ items: any;
37
+ next: any;
38
+ }>;
32
39
  deleteScreenRecordingsByAgent: ({ agentId, id, }: {
33
40
  agentId: ApiId;
34
41
  id: ApiId | ApiId[];
@@ -1,8 +1,4 @@
1
1
  import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
2
- declare const getResourcesList: (params: ApiParams) => Promise<{
3
- items: any;
4
- next: any;
5
- }>;
6
2
  export declare const OutboundResourcesAPI: {
7
3
  getPermissionsList: ({ parentId, ...params }: {
8
4
  parentId: import("../_shared/types").ApiId;
@@ -17,12 +13,11 @@ export declare const OutboundResourcesAPI: {
17
13
  }>;
18
14
  get: ({ itemId: id }: GetItemParams) => Promise<any>;
19
15
  add: ({ itemInstance }: AddItemParams) => Promise<any>;
20
- patch: ({ changes, id }: PatchItemParams) => Promise<any>;
21
16
  update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
17
+ patch: ({ changes, id }: PatchItemParams) => Promise<any>;
22
18
  delete: ({ id }: DeleteItemParams) => Promise<any>;
23
- getLookup: (params: Parameters<typeof getResourcesList>[0]) => Promise<{
19
+ getLookup: (params: ApiParams) => Promise<{
24
20
  items: any;
25
21
  next: any;
26
22
  }>;
27
23
  };
28
- export {};
@@ -1,4 +1,4 @@
1
- import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedUpdateItemParams } from '../_shared/types';
1
+ import type { ApiId, ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedUpdateItemParams } from '../_shared/types';
2
2
  export declare const ResourceDisplaysAPI: {
3
3
  getList: (params: ApiParams) => Promise<{
4
4
  items: any;
@@ -8,4 +8,10 @@ export declare const ResourceDisplaysAPI: {
8
8
  add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
9
9
  update: ({ parentId, itemInstance, itemId: id, }: NestedUpdateItemParams) => Promise<any>;
10
10
  delete: ({ parentId, id, }: NestedDeleteItemParams) => Promise<any>;
11
+ upload: ({ parentId, file, delimiter, map, }: {
12
+ parentId: ApiId;
13
+ file: File;
14
+ delimiter: string;
15
+ map: string;
16
+ }) => Promise<any>;
11
17
  };
@@ -1,4 +1,4 @@
1
- import type { ListCallExportsParams, ListScreenrecordingExportsParams } from '@webitel/api-services/gen/models';
1
+ import type { DownloadCallScreenrecordingArchiveParams, ListCallExportsParams, ListScreenrecordingExportsParams } from '@webitel/api-services/gen/models';
2
2
  import type { DatetimeRangeValue, NormalizeDatetimeValueParam } from '../../../scripts';
3
3
  import type { ApiId, ApiParams } from '../_shared/types';
4
4
  export declare const PdfServicesAPI: {
@@ -28,6 +28,9 @@ export declare const PdfServicesAPI: {
28
28
  callId: ApiId;
29
29
  fileIds?: (string | number)[];
30
30
  }) => Promise<import("axios").AxiosResponse<import("../../../gen-wire").DownloadCallArchive200, any, {}>>;
31
+ downloadCallScreenrecordingArchive: ({ callId, fileIds, from, to, }: DownloadCallScreenrecordingArchiveParams & {
32
+ callId: ApiId;
33
+ }) => Promise<import("axios").AxiosResponse<import("../../../gen-wire").DownloadCallScreenrecordingArchive200, any, {}>>;
31
34
  downloadScreenrecordingArchive: ({ agentId, fileIds, from, to, }: {
32
35
  agentId: ApiId;
33
36
  fileIds?: (string | number)[];
@@ -0,0 +1,6 @@
1
+ export declare const ResourceCidType: {
2
+ readonly None: "none";
3
+ readonly Rpid: "rpid";
4
+ readonly Pid: "pid";
5
+ };
6
+ export type ResourceCidType = (typeof ResourceCidType)[keyof typeof ResourceCidType];
@@ -0,0 +1,7 @@
1
+ export declare const ResourceIgnoreEarlyMedia: {
2
+ readonly True: "true";
3
+ readonly False: "false";
4
+ readonly Consume: "consume";
5
+ readonly RingReady: "ring_ready";
6
+ };
7
+ export type ResourceIgnoreEarlyMedia = (typeof ResourceIgnoreEarlyMedia)[keyof typeof ResourceIgnoreEarlyMedia];
@@ -9,8 +9,10 @@ import { QueuePeriod } from './QueuePeriod/QueuePeriod';
9
9
  import { QueueStrategy, QueueStrategyList } from './QueueStrategy/QueueStrategy';
10
10
  import { QueueType, QueueTypeName } from './QueueType/QueueType';
11
11
  import { RelativeDatetimeValue } from './RelativeDatetimeValue/RelativeDatetimeValue';
12
+ import { ResourceCidType } from './ResourceCidType/ResourceCidType';
13
+ import { ResourceIgnoreEarlyMedia } from './ResourceIgnoreEarlyMedia/ResourceIgnoreEarlyMedia';
12
14
  import { TimeBaseScore } from './TimeBaseScore/TimeBaseScore';
13
15
  import { TypesResourceStrategy } from './TypesResourceStrategy/TypesResourceStrategy';
14
16
  import { UrlProtocol } from './UrlProtocol/UrlProtocol';
15
17
  import { UserPresenceStatus } from './UserPresenceStatus/UserPresenceStatus';
16
- export { AgentStatus, CallReportingStatus, ChannelState, ChannelType, ChatGatewayProvider, FormatDateMode, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, TimeBaseScore, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, };
18
+ export { AgentStatus, CallReportingStatus, ChannelState, ChannelType, ChatGatewayProvider, FormatDateMode, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, ResourceCidType, ResourceIgnoreEarlyMedia, TimeBaseScore, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, };
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -10,6 +10,9 @@ import vi from './vi/vi';
10
10
  export declare const messages: {
11
11
  en: {
12
12
  backendErrors: {
13
+ ccOutboundResource: {
14
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
15
+ };
13
16
  contacts: {
14
17
  search: {
15
18
  filters: {
@@ -40,6 +43,9 @@ export declare const messages: {
40
43
  };
41
44
  uk: {
42
45
  backendErrors: {
46
+ ccOutboundResource: {
47
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
48
+ };
43
49
  contacts: {
44
50
  search: {
45
51
  filters: {
@@ -70,6 +76,9 @@ export declare const messages: {
70
76
  };
71
77
  ru: {
72
78
  backendErrors: {
79
+ ccOutboundResource: {
80
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
81
+ };
73
82
  contacts: {
74
83
  search: {
75
84
  filters: {
@@ -100,6 +109,9 @@ export declare const messages: {
100
109
  };
101
110
  es: {
102
111
  backendErrors: {
112
+ ccOutboundResource: {
113
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
114
+ };
103
115
  contacts: {
104
116
  search: {
105
117
  filters: {
@@ -130,6 +142,9 @@ export declare const messages: {
130
142
  };
131
143
  pl: {
132
144
  backendErrors: {
145
+ ccOutboundResource: {
146
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
147
+ };
133
148
  contacts: {
134
149
  search: {
135
150
  filters: {
@@ -160,6 +175,9 @@ export declare const messages: {
160
175
  };
161
176
  ro: {
162
177
  backendErrors: {
178
+ ccOutboundResource: {
179
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
180
+ };
163
181
  contacts: {
164
182
  search: {
165
183
  filters: {
@@ -190,6 +208,9 @@ export declare const messages: {
190
208
  };
191
209
  kz: {
192
210
  backendErrors: {
211
+ ccOutboundResource: {
212
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
213
+ };
193
214
  contacts: {
194
215
  search: {
195
216
  filters: {
@@ -220,6 +241,9 @@ export declare const messages: {
220
241
  };
221
242
  uz: {
222
243
  backendErrors: {
244
+ ccOutboundResource: {
245
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
246
+ };
223
247
  contacts: {
224
248
  search: {
225
249
  filters: {
@@ -250,6 +274,9 @@ export declare const messages: {
250
274
  };
251
275
  vi: {
252
276
  backendErrors: {
277
+ ccOutboundResource: {
278
+ validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
279
+ };
253
280
  contacts: {
254
281
  search: {
255
282
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -1,6 +1,9 @@
1
1
  import type { MessageContext } from 'vue-i18n';
2
2
  declare const _default: {
3
3
  backendErrors: {
4
+ ccOutboundResource: {
5
+ validatePhoneNumber: ({ linked }: MessageContext) => string;
6
+ };
4
7
  contacts: {
5
8
  search: {
6
9
  filters: {
@@ -45,6 +45,8 @@ export * from './queueMember/memberCommunication.validations';
45
45
  export * from './queueMember/queueMember.validations';
46
46
  export * from './queueResGroup/queueResGroup.validations';
47
47
  export * from './queueSkill/queueSkill.validations';
48
+ export * from './resource/resource.validations';
49
+ export * from './resourceDisplay/resourceDisplay.validations';
48
50
  export * from './resourceGroup/resourceGroup.validations';
49
51
  export * from './resourceInGroup/resourceInGroup.validations';
50
52
  export * from './sla/sla.validations';
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ export declare const resourceSchema: z.ZodObject<{
3
+ parameters?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
4
+ createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
5
+ createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
6
+ description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
+ domainId?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
8
+ enabled?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
+ errorIds?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ failureDialDelay?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
+ gateway?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
12
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
13
+ lastErrorAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
14
+ lastErrorId?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
15
+ limit?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
16
+ maxSuccessivelyErrors?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
17
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
18
+ number?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
19
+ patterns?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
20
+ reserve?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
21
+ rps?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
22
+ successivelyErrors?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
23
+ updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
24
+ updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
25
+ variables?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
26
+ }, z.core.$strip>;
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const resourceDisplaySchema: z.ZodObject<{
3
+ display?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
4
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
5
+ }, z.core.$strip>;