@webitel/api-services 1.0.6 → 1.0.8

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 (64) hide show
  1. package/package.json +2 -1
  2. package/src/api/clients/calendars/__tests__/calendars.spec.ts +71 -0
  3. package/src/api/clients/calendars/calendars.ts +2 -2
  4. package/src/api/clients/caseComments/caseComments.ts +141 -0
  5. package/src/api/clients/caseFiles/caseFiles.ts +79 -0
  6. package/src/api/clients/caseLinks/caseLinks.ts +150 -0
  7. package/src/api/clients/caseRelatedCases/caseRelatedCases.ts +125 -0
  8. package/src/api/clients/caseServices/services.ts +38 -72
  9. package/src/api/clients/cases/_internals/ftsService.ts +67 -0
  10. package/src/api/clients/cases/_internals/stringifyCaseFilters.ts +156 -0
  11. package/src/api/clients/cases/cases.ts +360 -0
  12. package/src/api/clients/chatMessagesHistory/chatMessagesHistory.ts +64 -0
  13. package/src/api/clients/configurations/configurations.ts +56 -39
  14. package/src/api/clients/contactCases/contactCases.ts +109 -0
  15. package/src/api/clients/emails/emails.ts +11 -7
  16. package/src/api/clients/index.ts +9 -0
  17. package/src/api/clients/labels/labels.ts +24 -29
  18. package/src/api/clients/phones/phones.ts +11 -7
  19. package/src/api/clients/timeline/timeline.ts +124 -0
  20. package/src/api/clients/variables/variables.ts +10 -5
  21. package/src/api/clients/wtTypes/_shared/utils/assignFieldPositions.ts +28 -0
  22. package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +7 -9
  23. package/src/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.ts +19 -16
  24. package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +4 -0
  25. package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +21 -31
  26. package/src/api/clients//321/201ontacts/contacts.ts +103 -234
  27. package/src/api/clients//321/201ontacts/getContactAccessFromMode.ts +9 -0
  28. package/src/api/clients//321/201ontacts/index.ts +1 -1
  29. package/src/validations/adjunctType/adjunctType.validations.ts +18 -0
  30. package/src/validations/case/case.validations.ts +33 -0
  31. package/src/validations/caseClose/caseClose.validations.ts +30 -0
  32. package/src/validations/caseExportOptions/caseExportOptions.validations.ts +27 -0
  33. package/src/validations/contact/contact.validations.ts +12 -7
  34. package/src/validations/index.ts +5 -0
  35. package/src/validations/typeExtension/typeExtension.validations.ts +8 -0
  36. package/types/.tsbuildinfo +1 -1
  37. package/types/api/clients/caseComments/caseComments.d.ts +20 -0
  38. package/types/api/clients/caseFiles/caseFiles.d.ts +10 -0
  39. package/types/api/clients/caseLinks/caseLinks.d.ts +22 -0
  40. package/types/api/clients/caseRelatedCases/caseRelatedCases.d.ts +14 -0
  41. package/types/api/clients/caseServices/services.d.ts +3 -12
  42. package/types/api/clients/cases/_internals/ftsService.d.ts +7 -0
  43. package/types/api/clients/cases/_internals/stringifyCaseFilters.d.ts +2 -0
  44. package/types/api/clients/cases/cases.d.ts +35 -0
  45. package/types/api/clients/chatMessagesHistory/chatMessagesHistory.d.ts +15 -0
  46. package/types/api/clients/contactCases/contactCases.d.ts +9 -0
  47. package/types/api/clients/index.d.ts +9 -0
  48. package/types/api/clients/labels/labels.d.ts +2 -2
  49. package/types/api/clients/timeline/timeline.d.ts +16 -0
  50. package/types/api/clients/wtTypes/_shared/utils/assignFieldPositions.d.ts +2 -0
  51. package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +2 -2
  52. package/types/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.d.ts +11 -11
  53. package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +1 -1
  54. package/types/api/clients//321/201ontacts/getContactAccessFromMode.d.ts +5 -0
  55. package/types/api/clients//321/201ontacts/index.d.ts +1 -1
  56. package/types/validations/adjunctType/adjunctType.validations.d.ts +11 -0
  57. package/types/validations/case/case.validations.d.ts +31 -0
  58. package/types/validations/caseClose/caseClose.validations.d.ts +8 -0
  59. package/types/validations/caseExportOptions/caseExportOptions.validations.d.ts +9 -0
  60. package/types/validations/contact/contact.validations.d.ts +15 -15
  61. package/types/validations/index.d.ts +5 -0
  62. package/types/validations/typeExtension/typeExtension.validations.d.ts +20 -0
  63. package/src/api/clients//321/201ontacts/types/ContactEntity.types.ts +0 -25
  64. package/types/api/clients//321/201ontacts/types/ContactEntity.types.d.ts +0 -14
@@ -0,0 +1,20 @@
1
+ import type { ApiId, ApiParams } from '../_shared/types';
2
+ export declare const CommentsAPI: {
3
+ getList: ({ parentId, ...rest }: {
4
+ parentId: ApiId;
5
+ } & ApiParams) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ delete: ({ etag }: {
10
+ etag: ApiId;
11
+ }) => Promise<any>;
12
+ add: ({ parentId, input, }: {
13
+ parentId: ApiId;
14
+ input: ApiParams;
15
+ }) => Promise<any>;
16
+ patch: ({ commentId, changes, }: {
17
+ commentId: ApiId;
18
+ changes: ApiParams;
19
+ }) => Promise<any>;
20
+ };
@@ -0,0 +1,10 @@
1
+ import type { ApiId, ApiParams, NestedDeleteItemParams } from '../_shared/types';
2
+ export declare const CaseFilesAPI: {
3
+ getList: ({ parentId, ...rest }: {
4
+ parentId: ApiId;
5
+ } & ApiParams) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ delete: ({ parentId, id }: NestedDeleteItemParams) => Promise<any>;
10
+ };
@@ -0,0 +1,22 @@
1
+ import type { ApiId, ApiParams } from '../_shared/types';
2
+ export declare const CaseLinksAPI: {
3
+ getList: ({ parentId, ...rest }: {
4
+ parentId: ApiId;
5
+ } & ApiParams) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ delete: ({ parentId, etag, }: {
10
+ parentId: ApiId;
11
+ etag: ApiId;
12
+ }) => Promise<any>;
13
+ add: ({ parentId, input, }: {
14
+ parentId: ApiId;
15
+ input: ApiParams;
16
+ }) => Promise<any>;
17
+ patch: ({ parentId, linkId, changes, }: {
18
+ parentId: ApiId;
19
+ linkId: ApiId;
20
+ changes: ApiParams;
21
+ }) => Promise<any>;
22
+ };
@@ -0,0 +1,14 @@
1
+ import type { ApiId, ApiParams, NestedDeleteItemParams } from '../_shared/types';
2
+ export declare const RelatedCasesAPI: {
3
+ getList: ({ parentId, ...rest }: {
4
+ parentId: ApiId;
5
+ } & ApiParams) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ delete: ({ parentId, id }: NestedDeleteItemParams) => Promise<any>;
10
+ add: ({ parentId, input, }: {
11
+ parentId: ApiId;
12
+ input: ApiParams;
13
+ }) => Promise<any>;
14
+ };
@@ -1,4 +1,4 @@
1
- import type { ApiId, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams } from '../_shared/types';
1
+ import type { AddItemParams, ApiId, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
2
2
  declare const getServicesList: ({ parentId, rootId, ...rest }: {
3
3
  parentId?: ApiId;
4
4
  rootId: ApiId;
@@ -15,17 +15,8 @@ export declare const ServicesAPI: {
15
15
  next: any;
16
16
  }>;
17
17
  get: ({ itemId: id }: GetItemParams) => Promise<any>;
18
- add: ({ itemInstance, rootId, catalogId, }: {
19
- itemInstance: ApiParams;
20
- rootId: ApiId;
21
- catalogId: ApiId;
22
- }) => Promise<any>;
23
- update: ({ itemInstance, itemId: id, rootId, catalogId, }: {
24
- itemInstance: ApiParams;
25
- itemId: ApiId;
26
- rootId: ApiId;
27
- catalogId: ApiId;
28
- }) => Promise<any>;
18
+ add: ({ itemInstance }: AddItemParams) => Promise<any>;
19
+ update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
29
20
  patch: ({ changes, id }: PatchItemParams) => Promise<any>;
30
21
  delete: ({ id }: DeleteItemParams) => Promise<any>;
31
22
  getLookup: (params: Parameters<typeof getServicesList>[0]) => Promise<{
@@ -0,0 +1,7 @@
1
+ import type { ApiParams } from '../../_shared/types';
2
+ export declare const FTSServiceAPI: {
3
+ getList: (params: ApiParams) => Promise<{
4
+ items: any;
5
+ next: any;
6
+ }>;
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { ApiParams } from '../../_shared/types';
2
+ export declare const stringifyCaseFilters: (filters: ApiParams) => string[];
@@ -0,0 +1,35 @@
1
+ import type { AddItemParams, ApiId, ApiParams, DeleteItemParams, GetItemParams } from '../_shared/types';
2
+ declare const getCasesList: (params: ApiParams) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ export declare const CasesAPI: {
7
+ getPermissionsList: ({ parentId, ...params }: {
8
+ parentId: ApiId;
9
+ } & ApiParams) => Promise<{
10
+ items: any;
11
+ next: any;
12
+ }>;
13
+ patchPermissions: ({ changes, id }: import("../_shared/types").PatchItemParams) => Promise<any>;
14
+ getList: (params: ApiParams) => Promise<{
15
+ items: any;
16
+ next: any;
17
+ }>;
18
+ getLookup: (params: Parameters<typeof getCasesList>[0]) => Promise<{
19
+ items: any;
20
+ next: any;
21
+ }>;
22
+ get: ({ itemId: id }: GetItemParams) => Promise<any>;
23
+ delete: ({ id }: DeleteItemParams) => Promise<any>;
24
+ update: ({ itemInstance }: AddItemParams) => Promise<any>;
25
+ add: ({ itemInstance }: AddItemParams) => Promise<any>;
26
+ patch: ({ changes, etag, }: {
27
+ changes: ApiParams;
28
+ etag: ApiId;
29
+ }) => Promise<any>;
30
+ exportData: (params: ApiParams) => Promise<{
31
+ response: import("axios").AxiosResponse<import("../../../gen-wire").ExportCases200, any, {}>;
32
+ }>;
33
+ };
34
+ export { FTSServiceAPI } from './_internals/ftsService';
35
+ export { stringifyCaseFilters } from './_internals/stringifyCaseFilters';
@@ -0,0 +1,15 @@
1
+ import type { ApiId } from '../_shared/types';
2
+ export declare const ChatMessagesHistoryAPI: {
3
+ getContactChatHistory: ({ parentId, taskId }: {
4
+ parentId: ApiId;
5
+ taskId: ApiId;
6
+ }) => Promise<{
7
+ items: any;
8
+ }>;
9
+ getCaseChatHistory: ({ parentId, taskId }: {
10
+ parentId: ApiId;
11
+ taskId: ApiId;
12
+ }) => Promise<{
13
+ items: any;
14
+ }>;
15
+ };
@@ -0,0 +1,9 @@
1
+ import type { ApiId, ApiParams } from '../_shared/types';
2
+ export declare const ContactCasesAPI: {
3
+ getList: ({ parentId, ...params }: {
4
+ parentId: ApiId;
5
+ } & ApiParams) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ };
@@ -8,18 +8,25 @@ export * from './calendars/calendars';
8
8
  export * from './callHistory/callHistory';
9
9
  export * from './caseCloseReasonGroups/caseCloseReasonGroups';
10
10
  export * from './caseCloseReasons/caseCloseReasons';
11
+ export * from './caseComments/caseComments';
12
+ export * from './caseFiles/caseFiles';
13
+ export * from './caseLinks/caseLinks';
11
14
  export * from './casePriorities/casePriorities';
15
+ export * from './caseRelatedCases/caseRelatedCases';
12
16
  export * from './caseServiceCatalogs/serviceCatalogs';
13
17
  export * from './caseServices/services';
14
18
  export * from './caseSources/caseSources';
15
19
  export * from './caseStatusConditions/caseStatusConditions';
16
20
  export * from './caseStatuses/caseStatuses';
21
+ export * from './cases/cases';
17
22
  export * from './catalog/catalog';
18
23
  export * from './changelogs/changelogs';
19
24
  export * from './chatDialogs/chatDialogs';
20
25
  export * from './chatGateways/chatGateways';
26
+ export * from './chatMessagesHistory/chatMessagesHistory';
21
27
  export * from './communications/communications';
22
28
  export * from './configurations/configurations';
29
+ export * from './contactCases/contactCases';
23
30
  export * from './contactGroups/contactGroups';
24
31
  export * from './dynamicConditions/dynamicConditions';
25
32
  export * from './dynamicGroups/dynamicGroups';
@@ -50,8 +57,10 @@ export * from './queues/queues';
50
57
  export * from './quickReplies/quickReplies';
51
58
  export * from './regions/regions';
52
59
  export * from './skills/skills';
60
+ export * from './slaConditions/slaConditions';
53
61
  export * from './slas/slas';
54
62
  export * from './teams/teams';
63
+ export * from './timeline/timeline';
55
64
  export * from './userSettings/userSettings';
56
65
  export * from './users/users';
57
66
  export * from './variables/variables';
@@ -1,5 +1,5 @@
1
1
  import type { ApiParams } from '../_shared/types';
2
- declare const getList: (params: ApiParams) => Promise<{
2
+ declare const getLabelsList: (params: ApiParams) => Promise<{
3
3
  items: any;
4
4
  next: any;
5
5
  }>;
@@ -8,7 +8,7 @@ export declare const LabelsAPI: {
8
8
  items: any;
9
9
  next: any;
10
10
  }>;
11
- getLookup: (params: Parameters<typeof getList>[0]) => Promise<{
11
+ getLookup: (params: Parameters<typeof getLabelsList>[0]) => Promise<{
12
12
  items: any;
13
13
  next: any;
14
14
  }>;
@@ -0,0 +1,16 @@
1
+ import type { ApiId, ApiParams } from '../_shared/types';
2
+ type TimelineEntity = 'case' | 'contact';
3
+ export declare const TimelineAPI: {
4
+ getList: ({ entity, parentId, ...rest }: {
5
+ entity: TimelineEntity;
6
+ parentId: ApiId;
7
+ } & ApiParams) => Promise<{
8
+ days: any;
9
+ next: any;
10
+ }>;
11
+ getCounters: ({ entity, parentId, }: {
12
+ entity: TimelineEntity;
13
+ parentId: ApiId;
14
+ }) => Promise<any>;
15
+ };
16
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ProtoDataStruct } from '@webitel/api-services/gen/models';
2
+ export declare const assignFieldPositions: (item: ProtoDataStruct) => ProtoDataStruct;
@@ -1,2 +1,2 @@
1
- import type { WebitelProtoDataStruct } from 'webitel-sdk';
2
- export declare const sortDynamicFields: (item: WebitelProtoDataStruct) => WebitelProtoDataStruct;
1
+ import type { ProtoDataStruct } from '@webitel/api-services/gen/models';
2
+ export declare const sortDynamicFields: (item: ProtoDataStruct) => ProtoDataStruct;
@@ -1,30 +1,30 @@
1
1
  import type { ApiId, ApiParams } from '../../_shared/types';
2
2
  export declare const AdjunctTypeRecordsAPI: {
3
- getList: ({ repo, ...params }: {
4
- repo: string;
3
+ getList: ({ parentId, ...params }: {
4
+ parentId: string;
5
5
  } & ApiParams) => Promise<{
6
6
  items: any;
7
7
  next: any;
8
8
  }>;
9
- get: ({ itemId: id, repo, }: {
9
+ get: ({ itemId: id, parentId, }: {
10
10
  itemId: ApiId;
11
- repo: string;
11
+ parentId: string;
12
12
  }) => Promise<import("../../../../gen-wire").LocateData200>;
13
- add: ({ itemInstance, fieldsToSend, repo, }: {
13
+ add: ({ itemInstance, fieldsToSend, parentId, }: {
14
14
  itemInstance: ApiParams;
15
15
  fieldsToSend: string[];
16
- repo: string;
16
+ parentId: string;
17
17
  }) => Promise<any>;
18
- update: ({ itemInstance, fieldsToSend, itemId: id, repo, }: {
18
+ update: ({ itemInstance, fieldsToSend, itemId: id, parentId, }: {
19
19
  itemInstance: ApiParams;
20
20
  fieldsToSend: string[];
21
21
  itemId: ApiId;
22
- repo: string;
22
+ parentId: string;
23
23
  }) => Promise<any>;
24
- delete: ({ repo, id, }: {
25
- repo: string;
24
+ delete: ({ parentId, id, }: {
25
+ parentId: string;
26
26
  id: ApiId | ApiId[];
27
- }) => Promise<import("../../../../gen-wire").DataDataset>;
27
+ }) => Promise<void>;
28
28
  getLookup: ({ path, display, primary, ...params }: {
29
29
  path: string;
30
30
  display: string;
@@ -1,6 +1,6 @@
1
1
  import type { ApiId, ApiParams } from '../../_shared/types';
2
2
  export declare const WtTypeExtensionAPI: {
3
- getList: ({ itemId: typeRepo }: {
3
+ get: ({ itemId: typeRepo }: {
4
4
  itemId: string;
5
5
  }) => Promise<any>;
6
6
  add: ({ itemInstance, itemId: typeRepo, }: {
@@ -0,0 +1,5 @@
1
+ export interface ContactAccess {
2
+ edit: boolean;
3
+ delete: boolean;
4
+ }
5
+ export declare const getContactAccessFromMode: (mode?: string) => ContactAccess;
@@ -1,4 +1,4 @@
1
1
  export * from './contactChatMessagesHistory';
2
2
  export * from './contacts';
3
3
  export * from './enums/ContactsSearchMode';
4
- export * from './types/ContactEntity.types';
4
+ export * from './getContactAccessFromMode';
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const adjunctTypeSchema: z.ZodObject<{
3
+ about?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
4
+ administered?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
5
+ display?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
6
+ fields?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
+ indexes?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
8
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
+ primary?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ repo?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
+ }, z.core.$strip>;
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare const caseSchema: z.ZodObject<{
3
+ subject: z.ZodDefault<z.ZodString>;
4
+ source: z.ZodDefault<z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodString>;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$loose>>;
8
+ priority: z.ZodDefault<z.ZodObject<{
9
+ id: z.ZodOptional<z.ZodString>;
10
+ name: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$loose>>;
12
+ reporter: z.ZodDefault<z.ZodObject<{
13
+ id: z.ZodOptional<z.ZodString>;
14
+ name: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ service: z.ZodDefault<z.ZodObject<{
17
+ id: z.ZodOptional<z.ZodString>;
18
+ name: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$loose>>;
20
+ statusCondition: z.ZodDefault<z.ZodObject<{
21
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
22
+ name: z.ZodOptional<z.ZodString>;
23
+ final: z.ZodOptional<z.ZodBoolean>;
24
+ initial: z.ZodOptional<z.ZodBoolean>;
25
+ }, z.core.$loose>>;
26
+ closeReason: z.ZodDefault<z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodString>;
28
+ name: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$loose>>;
30
+ closeResult: z.ZodDefault<z.ZodString>;
31
+ }, z.core.$strip>;
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export declare const caseCloseSchema: z.ZodObject<{
3
+ reason: z.ZodNullable<z.ZodObject<{
4
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
5
+ }, z.core.$loose>>;
6
+ result: z.ZodNullable<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type CaseClose = z.infer<typeof caseCloseSchema>;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const caseExportOptionsSchema: z.ZodObject<{
3
+ type: z.ZodNullable<z.ZodObject<{
4
+ name: z.ZodString;
5
+ value: z.ZodString;
6
+ }, z.core.$strip>>;
7
+ separator: z.ZodNullable<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ export type CaseExportOptions = z.infer<typeof caseExportOptionsSchema>;
@@ -1,25 +1,25 @@
1
1
  import { z } from 'zod';
2
2
  export declare const contactSchema: z.ZodObject<{
3
- name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
4
- timezones?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
5
- managers?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
6
- labels?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
- groups?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
8
- id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
- mode?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
- user?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
- etag?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
12
- ver?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
13
- domain?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
14
- variables?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
15
- comments?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
16
3
  about?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
4
+ comments?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
5
+ createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
6
+ createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
+ domain?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
17
8
  emails?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
+ etag?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ groups?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
18
12
  imclients?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
13
+ labels?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
14
+ managers?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
15
+ mode?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
16
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
19
17
  phones?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
20
18
  photos?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
21
- createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
22
- createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
19
+ timezones?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
23
20
  updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
24
21
  updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
22
+ user?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
23
+ variables?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
24
+ ver?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
25
25
  }, z.core.$strip>;
@@ -1,11 +1,15 @@
1
1
  export * from './_shared/duration.validations';
2
2
  export * from './_shared/lookup.validations';
3
3
  export * from './_shared/variablePair.validations';
4
+ export * from './adjunctType/adjunctType.validations';
4
5
  export * from './auditForm/auditForm.validations';
5
6
  export * from './bucket/bucket.validations';
6
7
  export * from './calendar/calendar.validations';
8
+ export * from './case/case.validations';
9
+ export * from './caseClose/caseClose.validations';
7
10
  export * from './caseCloseReason/caseCloseReason.validations';
8
11
  export * from './caseCloseReasonGroup/caseCloseReasonGroup.validations';
12
+ export * from './caseExportOptions/caseExportOptions.validations';
9
13
  export * from './casePriority/casePriority.validations';
10
14
  export * from './caseService/caseService.validations';
11
15
  export * from './caseServiceCatalog/caseServiceCatalog.validations';
@@ -32,5 +36,6 @@ export * from './queueResGroup/queueResGroup.validations';
32
36
  export * from './queueSkill/queueSkill.validations';
33
37
  export * from './sla/sla.validations';
34
38
  export * from './slaCondition/slaCondition.validations';
39
+ export * from './typeExtension/typeExtension.validations';
35
40
  export * from './types';
36
41
  export * from './variable/variable.validations';
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ export declare const typeExtensionSchema: z.ZodObject<{
3
+ about?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
4
+ administered?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
5
+ createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
6
+ createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
+ display?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
8
+ extendable?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
+ fields?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
+ indexes?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
12
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
13
+ objclass?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
14
+ path?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
15
+ primary?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
16
+ readonly?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
17
+ repo?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
18
+ updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
19
+ updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
20
+ }, z.core.$strip>;
@@ -1,25 +0,0 @@
1
- import type {
2
- ContactsManager,
3
- ContactsTimezone,
4
- WebitelContactsContact,
5
- WebitelContactsLabel,
6
- WebitelContactsLookup,
7
- } from '@webitel/api-services/gen/models';
8
-
9
- /**
10
- * `ContactsAPI` (../contacts.ts) unwraps the generated `WebitelContactsContact`'s
11
- * paginated `{data:[...]}` envelopes for these fields into plain arrays (and
12
- * `name` into a plain string) on read, and wraps them back on write. This type
13
- * reflects that actual runtime shape.
14
- */
15
- export interface ContactEntity
16
- extends Omit<
17
- WebitelContactsContact,
18
- 'name' | 'timezones' | 'managers' | 'labels' | 'groups'
19
- > {
20
- name?: string;
21
- timezones?: ContactsTimezone[];
22
- managers?: ContactsManager[];
23
- labels?: WebitelContactsLabel[];
24
- groups?: WebitelContactsLookup[];
25
- }
@@ -1,14 +0,0 @@
1
- import type { ContactsManager, ContactsTimezone, WebitelContactsContact, WebitelContactsLabel, WebitelContactsLookup } from '@webitel/api-services/gen/models';
2
- /**
3
- * `ContactsAPI` (../contacts.ts) unwraps the generated `WebitelContactsContact`'s
4
- * paginated `{data:[...]}` envelopes for these fields into plain arrays (and
5
- * `name` into a plain string) on read, and wraps them back on write. This type
6
- * reflects that actual runtime shape.
7
- */
8
- export interface ContactEntity extends Omit<WebitelContactsContact, 'name' | 'timezones' | 'managers' | 'labels' | 'groups'> {
9
- name?: string;
10
- timezones?: ContactsTimezone[];
11
- managers?: ContactsManager[];
12
- labels?: WebitelContactsLabel[];
13
- groups?: WebitelContactsLookup[];
14
- }