@webitel/api-services 26.8.71 → 26.8.72
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/outboundResources/outboundResources.ts +44 -81
- package/src/api/clients/outboundResources/resourceDisplays.ts +106 -32
- package/src/enums/ResourceCidType/ResourceCidType.ts +8 -0
- package/src/enums/ResourceIgnoreEarlyMedia/ResourceIgnoreEarlyMedia.ts +9 -0
- package/src/enums/index.ts +4 -0
- package/src/locale/en/en.ts +4 -0
- package/src/locale/es/es.ts +4 -0
- package/src/locale/kz/kz.ts +4 -0
- package/src/locale/pl/pl.ts +4 -0
- package/src/locale/ro/ro.ts +4 -0
- package/src/locale/ru/ru.ts +4 -0
- package/src/locale/uk/uk.ts +4 -0
- package/src/locale/uz/uz.ts +4 -0
- package/src/locale/vi/vi.ts +4 -0
- package/src/validations/index.ts +2 -0
- package/src/validations/resource/__tests__/resource.validations.spec.ts +102 -0
- package/src/validations/resource/resource.validations.ts +28 -0
- package/src/validations/resourceDisplay/__tests__/resourceDisplay.validations.spec.ts +45 -0
- package/src/validations/resourceDisplay/resourceDisplay.validations.ts +9 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/outboundResources/outboundResources.d.ts +2 -7
- package/types/api/clients/outboundResources/resourceDisplays.d.ts +7 -1
- package/types/enums/ResourceCidType/ResourceCidType.d.ts +6 -0
- package/types/enums/ResourceIgnoreEarlyMedia/ResourceIgnoreEarlyMedia.d.ts +7 -0
- package/types/enums/index.d.ts +3 -1
- package/types/locale/en/en.d.ts +3 -0
- package/types/locale/es/es.d.ts +3 -0
- package/types/locale/index.d.ts +27 -0
- package/types/locale/kz/kz.d.ts +3 -0
- package/types/locale/pl/pl.d.ts +3 -0
- package/types/locale/ro/ro.d.ts +3 -0
- package/types/locale/ru/ru.d.ts +3 -0
- package/types/locale/uk/uk.d.ts +3 -0
- package/types/locale/uz/uz.d.ts +3 -0
- package/types/locale/vi/vi.d.ts +3 -0
- package/types/validations/index.d.ts +2 -0
- package/types/validations/resource/resource.validations.d.ts +26 -0
- package/types/validations/resourceDisplay/resourceDisplay.validations.d.ts +5 -0
|
@@ -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:
|
|
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
|
};
|
|
@@ -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];
|
package/types/enums/index.d.ts
CHANGED
|
@@ -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, };
|
package/types/locale/en/en.d.ts
CHANGED
package/types/locale/es/es.d.ts
CHANGED
package/types/locale/index.d.ts
CHANGED
|
@@ -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: {
|
package/types/locale/kz/kz.d.ts
CHANGED
package/types/locale/pl/pl.d.ts
CHANGED
package/types/locale/ro/ro.d.ts
CHANGED
package/types/locale/ru/ru.d.ts
CHANGED
package/types/locale/uk/uk.d.ts
CHANGED
package/types/locale/uz/uz.d.ts
CHANGED
package/types/locale/vi/vi.d.ts
CHANGED
|
@@ -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>;
|