@webitel/api-services 26.8.24 → 26.8.26
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 -3
- package/src/api/clients/devices/devices.ts +3 -1
- package/src/api/clients//321/201ontacts/contacts.ts +8 -4
- package/src/api/defaults/index.ts +0 -1
- package/src/validations/device/device.validations.ts +70 -0
- package/src/validations/index.ts +1 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients//321/201ontacts/contacts.d.ts +1 -0
- package/types/api/defaults/index.d.ts +0 -1
- package/types/validations/device/device.validations.d.ts +29 -0
- package/types/validations/index.d.ts +1 -0
- package/src/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.ts +0 -12
- package/types/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.d.ts +0 -6
|
@@ -3,6 +3,7 @@ declare const getList: (params: ApiParams) => Promise<{
|
|
|
3
3
|
items: any;
|
|
4
4
|
next: any;
|
|
5
5
|
}>;
|
|
6
|
+
export declare const contactFieldsToSend: readonly ["name", "about", "labels", "groups", "etag", "mode", "managers", "timezones", "variables", "phones", "emails", "imclients", "user", "custom"];
|
|
6
7
|
export declare const ContactsAPI: {
|
|
7
8
|
getPermissionsList: ({ parentId, ...params }: {
|
|
8
9
|
parentId: import("../_shared/types").ApiId;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Device card schema.
|
|
4
|
+
*
|
|
5
|
+
* Password is required only when creating (`id` absent) — an empty password on
|
|
6
|
+
* update means "keep the current one" (see DevicesAPI.preRequestHandler).
|
|
7
|
+
*/
|
|
8
|
+
export declare const deviceSchema: z.ZodObject<{
|
|
9
|
+
account?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
10
|
+
brand?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
deletedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
deletedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
hotdesk?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
16
|
+
hotdesks?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
17
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
18
|
+
ip?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
|
+
loggedIn?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
20
|
+
mac?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
21
|
+
model?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
22
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
23
|
+
password?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
24
|
+
provision?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
25
|
+
reged?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
26
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
27
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
28
|
+
user?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
29
|
+
}, z.core.$strip>;
|
|
@@ -23,6 +23,7 @@ export * from './contactEmail/contactEmail.validations';
|
|
|
23
23
|
export * from './contactGroup/contactGroup.validations';
|
|
24
24
|
export * from './contactGroupCondition/contactGroupCondition.validations';
|
|
25
25
|
export * from './contactPhone/contactPhone.validations';
|
|
26
|
+
export * from './device/device.validations';
|
|
26
27
|
export * from './OAuth/OAuth.validations';
|
|
27
28
|
export * from './onlineSkill/onlineSkill.validations';
|
|
28
29
|
export * from './queue/queue.rules';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Configuration } from 'webitel-sdk';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a default configuration for OpenAPI clients
|
|
5
|
-
* @returns Configuration object with basePath, apiKey, and accessToken
|
|
6
|
-
*/
|
|
7
|
-
export const getDefaultOpenAPIConfig = () =>
|
|
8
|
-
new Configuration({
|
|
9
|
-
basePath: import.meta.env.VITE_API_URL,
|
|
10
|
-
apiKey: localStorage.getItem('access-key') || '',
|
|
11
|
-
accessToken: localStorage.getItem('access-key') || '',
|
|
12
|
-
});
|