@webitel/api-services 26.8.24 → 26.8.25

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.
@@ -1,4 +1,3 @@
1
1
  export * from './getDefaultGetListResponse/getDefaultGetListResponse';
2
2
  export * from './getDefaultGetParams/getDefaultGetParams';
3
3
  export * from './getDefaultInstance/getDefaultInstance';
4
- export * from './getDefaultOpenAPIConfig/getDefaultOpenAPIConfig';
@@ -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
- });
@@ -1,6 +0,0 @@
1
- import { Configuration } from 'webitel-sdk';
2
- /**
3
- * Creates a default configuration for OpenAPI clients
4
- * @returns Configuration object with basePath, apiKey, and accessToken
5
- */
6
- export declare const getDefaultOpenAPIConfig: () => Configuration;