@webitel/api-services 1.0.5 → 1.0.7
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 -1
- package/src/api/clients/caseComments/caseComments.ts +141 -0
- package/src/api/clients/caseFiles/caseFiles.ts +79 -0
- package/src/api/clients/caseLinks/caseLinks.ts +150 -0
- package/src/api/clients/caseRelatedCases/caseRelatedCases.ts +125 -0
- package/src/api/clients/caseServices/services.ts +38 -72
- package/src/api/clients/cases/_internals/ftsService.ts +67 -0
- package/src/api/clients/cases/_internals/stringifyCaseFilters.ts +156 -0
- package/src/api/clients/cases/cases.ts +360 -0
- package/src/api/clients/chatMessagesHistory/chatMessagesHistory.ts +64 -0
- package/src/api/clients/configurations/configurations.ts +56 -39
- package/src/api/clients/contactCases/contactCases.ts +109 -0
- package/src/api/clients/emails/emails.ts +11 -7
- package/src/api/clients/index.ts +9 -0
- package/src/api/clients/labels/labels.ts +24 -29
- package/src/api/clients/phones/phones.ts +11 -7
- package/src/api/clients/timeline/timeline.ts +124 -0
- package/src/api/clients/variables/variables.ts +10 -5
- package/src/api/clients/wtTypes/_shared/utils/assignFieldPositions.ts +28 -0
- package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +7 -9
- package/src/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.ts +19 -16
- package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +4 -0
- package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +21 -31
- package/src/api/clients//321/201ontacts/contacts.ts +103 -234
- package/src/api/clients//321/201ontacts/getContactAccessFromMode.ts +9 -0
- package/src/api/clients//321/201ontacts/index.ts +1 -1
- package/src/gen/_models/contactsCallFile.ts +3 -0
- package/src/gen/_models/contactsCallFileType.ts +18 -0
- package/src/gen/_models/index.ts +9 -0
- package/src/gen/_models/webitelCasesCallFile.ts +3 -0
- package/src/gen/_models/webitelCasesCallFileType.ts +18 -0
- package/src/gen-wire/_models/contactsCallFile.ts +3 -0
- package/src/gen-wire/_models/contactsCallFileType.ts +18 -0
- package/src/gen-wire/_models/index.ts +2 -0
- package/src/gen-wire/_models/webitelCasesCallFile.ts +3 -0
- package/src/gen-wire/_models/webitelCasesCallFileType.ts +18 -0
- package/src/gen-wire/access-store/access-store.ts +1 -1
- package/src/gen-wire/agent-absence-service/agent-absence-service.ts +1 -1
- package/src/gen-wire/agent-chat-service/agent-chat-service.ts +1 -1
- package/src/gen-wire/agent-pause-cause-service/agent-pause-cause-service.ts +1 -1
- package/src/gen-wire/agent-service/agent-service.ts +1 -1
- package/src/gen-wire/agent-skill-service/agent-skill-service.ts +1 -1
- package/src/gen-wire/agent-team-service/agent-team-service.ts +1 -1
- package/src/gen-wire/agent-working-conditions-service/agent-working-conditions-service.ts +1 -1
- package/src/gen-wire/agent-working-schedule-service/agent-working-schedule-service.ts +1 -1
- package/src/gen-wire/articles/articles.ts +1 -1
- package/src/gen-wire/attachments/attachments.ts +1 -1
- package/src/gen-wire/audit-form-service/audit-form-service.ts +1 -1
- package/src/gen-wire/auth/auth.ts +1 -1
- package/src/gen-wire/backend-profile-service/backend-profile-service.ts +1 -1
- package/src/gen-wire/bucket-service/bucket-service.ts +1 -1
- package/src/gen-wire/calendar-service/calendar-service.ts +1 -1
- package/src/gen-wire/call-service/call-service.ts +1 -1
- package/src/gen-wire/case-comments/case-comments.ts +1 -1
- package/src/gen-wire/case-communications/case-communications.ts +1 -1
- package/src/gen-wire/case-files/case-files.ts +1 -1
- package/src/gen-wire/case-links/case-links.ts +1 -1
- package/src/gen-wire/case-timeline/case-timeline.ts +1 -1
- package/src/gen-wire/case-timeline/case-timeline.zod.ts +14 -0
- package/src/gen-wire/cases/cases.ts +1 -1
- package/src/gen-wire/cases-chat-catalog/cases-chat-catalog.ts +1 -1
- package/src/gen-wire/catalogs/catalogs.ts +1 -1
- package/src/gen-wire/classes/classes.ts +1 -1
- package/src/gen-wire/close-reason-groups/close-reason-groups.ts +1 -1
- package/src/gen-wire/close-reasons/close-reasons.ts +1 -1
- package/src/gen-wire/cognitive-profile-service/cognitive-profile-service.ts +1 -1
- package/src/gen-wire/comments/comments.ts +1 -1
- package/src/gen-wire/communication-type-service/communication-type-service.ts +1 -1
- package/src/gen-wire/config-service/config-service.ts +1 -1
- package/src/gen-wire/contact-groups/contact-groups.ts +1 -1
- package/src/gen-wire/contact-linking-service/contact-linking-service.ts +1 -1
- package/src/gen-wire/contacts/contacts.ts +1 -1
- package/src/gen-wire/contacts-chat-catalog/contacts-chat-catalog.ts +1 -1
- package/src/gen-wire/customer/customer.ts +1 -1
- package/src/gen-wire/customers/customers.ts +1 -1
- package/src/gen-wire/devices/devices.ts +1 -1
- package/src/gen-wire/dictionaries/dictionaries.ts +1 -1
- package/src/gen-wire/domains/domains.ts +1 -1
- package/src/gen-wire/dynamic-conditions/dynamic-conditions.ts +1 -1
- package/src/gen-wire/dynamic-groups/dynamic-groups.ts +1 -1
- package/src/gen-wire/email-profile-service/email-profile-service.ts +1 -1
- package/src/gen-wire/emails/emails.ts +1 -1
- package/src/gen-wire/embedding-models/embedding-models.ts +1 -1
- package/src/gen-wire/extensions/extensions.ts +1 -1
- package/src/gen-wire/feedback-service/feedback-service.ts +1 -1
- package/src/gen-wire/file-policies-service/file-policies-service.ts +1 -1
- package/src/gen-wire/file-service/file-service.ts +1 -1
- package/src/gen-wire/file-transcript-service/file-transcript-service.ts +1 -1
- package/src/gen-wire/forecast-calculation-service/forecast-calculation-service.ts +1 -1
- package/src/gen-wire/ftsservice/ftsservice.ts +1 -1
- package/src/gen-wire/groups/groups.ts +1 -1
- package/src/gen-wire/im-service-provider-v1-telegrambotservice/im-service-provider-v1-telegrambotservice.ts +1 -1
- package/src/gen-wire/imclients/imclients.ts +1 -1
- package/src/gen-wire/import-template-service/import-template-service.ts +1 -1
- package/src/gen-wire/index.ts +2 -0
- package/src/gen-wire/knowledgebase-search/knowledgebase-search.ts +1 -1
- package/src/gen-wire/labels/labels.ts +1 -1
- package/src/gen-wire/languages/languages.ts +1 -1
- package/src/gen-wire/ldap/ldap.ts +1 -1
- package/src/gen-wire/list-service/list-service.ts +1 -1
- package/src/gen-wire/logger-service/logger-service.ts +1 -1
- package/src/gen-wire/managers/managers.ts +1 -1
- package/src/gen-wire/media-file-service/media-file-service.ts +1 -1
- package/src/gen-wire/meeting-service/meeting-service.ts +1 -1
- package/src/gen-wire/member-service/member-service.ts +1 -1
- package/src/gen-wire/messages/messages.ts +1 -1
- package/src/gen-wire/oauth2-federation/oauth2-federation.ts +1 -1
- package/src/gen-wire/online-skills/online-skills.ts +1 -1
- package/src/gen-wire/outbound-resource-group-service/outbound-resource-group-service.ts +1 -1
- package/src/gen-wire/outbound-resource-service/outbound-resource-service.ts +1 -1
- package/src/gen-wire/pause-template-service/pause-template-service.ts +1 -1
- package/src/gen-wire/pdf-service/pdf-service.ts +1 -1
- package/src/gen-wire/permissions/permissions.ts +1 -1
- package/src/gen-wire/phones/phones.ts +1 -1
- package/src/gen-wire/photos/photos.ts +1 -1
- package/src/gen-wire/presence/presence.ts +1 -1
- package/src/gen-wire/preset-query-service/preset-query-service.ts +1 -1
- package/src/gen-wire/priorities/priorities.ts +1 -1
- package/src/gen-wire/queue-bucket-service/queue-bucket-service.ts +1 -1
- package/src/gen-wire/queue-hook-service/queue-hook-service.ts +1 -1
- package/src/gen-wire/queue-resources-service/queue-resources-service.ts +1 -1
- package/src/gen-wire/queue-service/queue-service.ts +1 -1
- package/src/gen-wire/queue-skill-service/queue-skill-service.ts +1 -1
- package/src/gen-wire/quick-replies-service/quick-replies-service.ts +1 -1
- package/src/gen-wire/records/records.ts +1 -1
- package/src/gen-wire/region-service/region-service.ts +1 -1
- package/src/gen-wire/related-cases/related-cases.ts +1 -1
- package/src/gen-wire/retrieval/retrieval.ts +1 -1
- package/src/gen-wire/routing-chat-plan-service/routing-chat-plan-service.ts +1 -1
- package/src/gen-wire/routing-outbound-call-service/routing-outbound-call-service.ts +1 -1
- package/src/gen-wire/routing-schema-service/routing-schema-service.ts +1 -1
- package/src/gen-wire/routing-variable-service/routing-variable-service.ts +1 -1
- package/src/gen-wire/schema-variables-service/schema-variables-service.ts +1 -1
- package/src/gen-wire/schema-version-service/schema-version-service.ts +1 -1
- package/src/gen-wire/services/services.ts +1 -1
- package/src/gen-wire/shift-template-service/shift-template-service.ts +1 -1
- package/src/gen-wire/skill-service/skill-service.ts +1 -1
- package/src/gen-wire/slaconditions/slaconditions.ts +1 -1
- package/src/gen-wire/slas/slas.ts +1 -1
- package/src/gen-wire/sources/sources.ts +1 -1
- package/src/gen-wire/spaces/spaces.ts +1 -1
- package/src/gen-wire/status-conditions/status-conditions.ts +1 -1
- package/src/gen-wire/statuses/statuses.ts +1 -1
- package/src/gen-wire/system-setting-service/system-setting-service.ts +1 -1
- package/src/gen-wire/tags/tags.ts +1 -1
- package/src/gen-wire/team-hook-service/team-hook-service.ts +1 -1
- package/src/gen-wire/team-trigger-service/team-trigger-service.ts +1 -1
- package/src/gen-wire/timeline/timeline.ts +1 -1
- package/src/gen-wire/timeline/timeline.zod.ts +14 -0
- package/src/gen-wire/timezones/timezones.ts +1 -1
- package/src/gen-wire/trigger-service/trigger-service.ts +1 -1
- package/src/gen-wire/two-factor-authentication/two-factor-authentication.ts +1 -1
- package/src/gen-wire/types/types.ts +1 -1
- package/src/gen-wire/user-access-tokens/user-access-tokens.ts +1 -1
- package/src/gen-wire/user-helper-service/user-helper-service.ts +1 -1
- package/src/gen-wire/users/users.ts +1 -1
- package/src/gen-wire/variables/variables.ts +1 -1
- package/src/gen-wire/versions/versions.ts +1 -1
- package/src/gen-wire/web-hook-service/web-hook-service.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-account/webitel-im-api-gateway-v1-account.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-bots/webitel-im-api-gateway-v1-bots.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-contactsettingsmanagement/webitel-im-api-gateway-v1-contactsettingsmanagement.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +1 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpermission/webitel-im-api-gateway-v1-threadpermission.ts +1 -1
- package/src/gen-wire/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.ts +1 -1
- package/src/gen-wire/webitel-im-api-provider-v1-instagramservice/webitel-im-api-provider-v1-instagramservice.ts +1 -1
- package/src/gen-wire/webitel-im-api-provider-v1-metaappservice/webitel-im-api-provider-v1-metaappservice.ts +1 -1
- package/src/gen-wire/webitel-im-api-provider-v1-metaoauthservice/webitel-im-api-provider-v1-metaoauthservice.ts +1 -1
- package/src/gen-wire/webitel-im-api-provider-v1-whatsappservice/webitel-im-api-provider-v1-whatsappservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-gatetemplateservice/webitel-im-provider-v1-gatetemplateservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-instagramservice/webitel-im-provider-v1-instagramservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-metaappservice/webitel-im-provider-v1-metaappservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-metaoauthservice/webitel-im-provider-v1-metaoauthservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-viberservice/webitel-im-provider-v1-viberservice.ts +1 -1
- package/src/gen-wire/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.ts +1 -1
- package/src/gen-wire/working-condition-service/working-condition-service.ts +1 -1
- package/src/gen-wire/working-schedule-service/working-schedule-service.ts +1 -1
- package/src/validations/adjunctType/adjunctType.validations.ts +18 -0
- package/src/validations/case/case.validations.ts +33 -0
- package/src/validations/caseClose/caseClose.validations.ts +30 -0
- package/src/validations/caseExportOptions/caseExportOptions.validations.ts +27 -0
- package/src/validations/contact/contact.validations.ts +12 -7
- package/src/validations/index.ts +5 -0
- package/src/validations/typeExtension/typeExtension.validations.ts +8 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/caseComments/caseComments.d.ts +20 -0
- package/types/api/clients/caseFiles/caseFiles.d.ts +10 -0
- package/types/api/clients/caseLinks/caseLinks.d.ts +22 -0
- package/types/api/clients/caseRelatedCases/caseRelatedCases.d.ts +14 -0
- package/types/api/clients/caseServices/services.d.ts +3 -12
- package/types/api/clients/cases/_internals/ftsService.d.ts +7 -0
- package/types/api/clients/cases/_internals/stringifyCaseFilters.d.ts +2 -0
- package/types/api/clients/cases/cases.d.ts +35 -0
- package/types/api/clients/chatMessagesHistory/chatMessagesHistory.d.ts +15 -0
- package/types/api/clients/contactCases/contactCases.d.ts +9 -0
- package/types/api/clients/index.d.ts +9 -0
- package/types/api/clients/labels/labels.d.ts +2 -2
- package/types/api/clients/timeline/timeline.d.ts +16 -0
- package/types/api/clients/wtTypes/_shared/utils/assignFieldPositions.d.ts +2 -0
- package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +2 -2
- package/types/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.d.ts +11 -11
- package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +1 -1
- package/types/api/clients//321/201ontacts/getContactAccessFromMode.d.ts +5 -0
- package/types/api/clients//321/201ontacts/index.d.ts +1 -1
- package/types/gen/_models/contactsCallFile.d.ts +3 -0
- package/types/gen/_models/contactsCallFileType.d.ts +15 -0
- package/types/gen/_models/index.d.ts +8 -0
- package/types/gen/_models/webitelCasesCallFile.d.ts +3 -0
- package/types/gen/_models/webitelCasesCallFileType.d.ts +15 -0
- package/types/gen-wire/_models/contactsCallFile.d.ts +3 -0
- package/types/gen-wire/_models/contactsCallFileType.d.ts +15 -0
- package/types/gen-wire/_models/index.d.ts +2 -0
- package/types/gen-wire/_models/webitelCasesCallFile.d.ts +3 -0
- package/types/gen-wire/_models/webitelCasesCallFileType.d.ts +15 -0
- package/types/gen-wire/case-timeline/case-timeline.zod.d.ts +10 -0
- package/types/gen-wire/index.d.ts +2 -2
- package/types/gen-wire/timeline/timeline.zod.d.ts +10 -0
- package/types/validations/adjunctType/adjunctType.validations.d.ts +11 -0
- package/types/validations/case/case.validations.d.ts +31 -0
- package/types/validations/caseClose/caseClose.validations.d.ts +8 -0
- package/types/validations/caseExportOptions/caseExportOptions.validations.d.ts +9 -0
- package/types/validations/contact/contact.validations.d.ts +15 -15
- package/types/validations/index.d.ts +5 -0
- package/types/validations/typeExtension/typeExtension.validations.d.ts +20 -0
- package/src/api/clients//321/201ontacts/types/ContactEntity.types.ts +0 -25
- 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
|
|
19
|
-
|
|
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,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
|
+
};
|
|
@@ -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
|
|
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
|
|
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 {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const sortDynamicFields: (item:
|
|
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: ({
|
|
4
|
-
|
|
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,
|
|
9
|
+
get: ({ itemId: id, parentId, }: {
|
|
10
10
|
itemId: ApiId;
|
|
11
|
-
|
|
11
|
+
parentId: string;
|
|
12
12
|
}) => Promise<import("../../../../gen-wire").LocateData200>;
|
|
13
|
-
add: ({ itemInstance, fieldsToSend,
|
|
13
|
+
add: ({ itemInstance, fieldsToSend, parentId, }: {
|
|
14
14
|
itemInstance: ApiParams;
|
|
15
15
|
fieldsToSend: string[];
|
|
16
|
-
|
|
16
|
+
parentId: string;
|
|
17
17
|
}) => Promise<any>;
|
|
18
|
-
update: ({ itemInstance, fieldsToSend, itemId: id,
|
|
18
|
+
update: ({ itemInstance, fieldsToSend, itemId: id, parentId, }: {
|
|
19
19
|
itemInstance: ApiParams;
|
|
20
20
|
fieldsToSend: string[];
|
|
21
21
|
itemId: ApiId;
|
|
22
|
-
|
|
22
|
+
parentId: string;
|
|
23
23
|
}) => Promise<any>;
|
|
24
|
-
delete: ({
|
|
25
|
-
|
|
24
|
+
delete: ({ parentId, id, }: {
|
|
25
|
+
parentId: string;
|
|
26
26
|
id: ApiId | ApiId[];
|
|
27
|
-
}) => Promise<
|
|
27
|
+
}) => Promise<void>;
|
|
28
28
|
getLookup: ({ path, display, primary, ...params }: {
|
|
29
29
|
path: string;
|
|
30
30
|
display: string;
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { ContactsCallFileType } from './contactsCallFileType';
|
|
7
8
|
export interface ContactsCallFile {
|
|
9
|
+
channel?: string;
|
|
8
10
|
id?: string;
|
|
9
11
|
mimeType?: string;
|
|
10
12
|
name?: string;
|
|
11
13
|
size?: string;
|
|
12
14
|
startAt?: string;
|
|
13
15
|
stopAt?: string;
|
|
16
|
+
type?: ContactsCallFileType;
|
|
14
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
export type ContactsCallFileType = (typeof ContactsCallFileType)[keyof typeof ContactsCallFileType];
|
|
8
|
+
export declare const ContactsCallFileType: {
|
|
9
|
+
readonly FileTypeEmpty: "file_type_empty";
|
|
10
|
+
readonly FileTypeScreenshot: "file_type_screenshot";
|
|
11
|
+
readonly FileTypeScreensharing: "file_type_screensharing";
|
|
12
|
+
readonly FileTypeAudio: "file_type_audio";
|
|
13
|
+
readonly FileTypeVideo: "file_type_video";
|
|
14
|
+
readonly FileTypePdf: "file_type_pdf";
|
|
15
|
+
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
1
7
|
export * from './_deleteParams';
|
|
2
8
|
export * from './accessStoreToggleDefaultAccessBody';
|
|
3
9
|
export * from './activityWorkspaceWidgetParams';
|
|
@@ -165,6 +171,7 @@ export * from './contactsAccessMode';
|
|
|
165
171
|
export * from './contactsAddContactsToGroupRequest';
|
|
166
172
|
export * from './contactsCallEvent';
|
|
167
173
|
export * from './contactsCallFile';
|
|
174
|
+
export * from './contactsCallFileType';
|
|
168
175
|
export * from './contactsChatCatalogGetContactChatHistory2Params';
|
|
169
176
|
export * from './contactsChatCatalogGetContactChatHistoryParams';
|
|
170
177
|
export * from './contactsChatEvent';
|
|
@@ -1365,6 +1372,7 @@ export * from './usersLogoutUserBody';
|
|
|
1365
1372
|
export * from './webitelCasesAttachment';
|
|
1366
1373
|
export * from './webitelCasesCallEvent';
|
|
1367
1374
|
export * from './webitelCasesCallFile';
|
|
1375
|
+
export * from './webitelCasesCallFileType';
|
|
1368
1376
|
export * from './webitelCasesCase';
|
|
1369
1377
|
export * from './webitelCasesCaseComment';
|
|
1370
1378
|
export * from './webitelCasesCaseCommentList';
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { WebitelCasesCallFileType } from './webitelCasesCallFileType';
|
|
7
8
|
export interface WebitelCasesCallFile {
|
|
9
|
+
channel?: string;
|
|
8
10
|
id?: string;
|
|
9
11
|
mimeType?: string;
|
|
10
12
|
name?: string;
|
|
11
13
|
size?: string;
|
|
12
14
|
startAt?: string;
|
|
13
15
|
stopAt?: string;
|
|
16
|
+
type?: WebitelCasesCallFileType;
|
|
14
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
export type WebitelCasesCallFileType = (typeof WebitelCasesCallFileType)[keyof typeof WebitelCasesCallFileType];
|
|
8
|
+
export declare const WebitelCasesCallFileType: {
|
|
9
|
+
readonly FileTypeEmpty: "file_type_empty";
|
|
10
|
+
readonly FileTypeScreenshot: "file_type_screenshot";
|
|
11
|
+
readonly FileTypeScreensharing: "file_type_screensharing";
|
|
12
|
+
readonly FileTypeAudio: "file_type_audio";
|
|
13
|
+
readonly FileTypeVideo: "file_type_video";
|
|
14
|
+
readonly FileTypePdf: "file_type_pdf";
|
|
15
|
+
};
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { ContactsCallFileType } from './contactsCallFileType';
|
|
7
8
|
export interface ContactsCallFile {
|
|
9
|
+
channel?: string;
|
|
8
10
|
id?: string;
|
|
9
11
|
mime_type?: string;
|
|
10
12
|
name?: string;
|
|
11
13
|
size?: string;
|
|
12
14
|
start_at?: string;
|
|
13
15
|
stop_at?: string;
|
|
16
|
+
type?: ContactsCallFileType;
|
|
14
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
export type ContactsCallFileType = (typeof ContactsCallFileType)[keyof typeof ContactsCallFileType];
|
|
8
|
+
export declare const ContactsCallFileType: {
|
|
9
|
+
readonly FileTypeEmpty: "file_type_empty";
|
|
10
|
+
readonly FileTypeScreenshot: "file_type_screenshot";
|
|
11
|
+
readonly FileTypeScreensharing: "file_type_screensharing";
|
|
12
|
+
readonly FileTypeAudio: "file_type_audio";
|
|
13
|
+
readonly FileTypeVideo: "file_type_video";
|
|
14
|
+
readonly FileTypePdf: "file_type_pdf";
|
|
15
|
+
};
|
|
@@ -165,6 +165,7 @@ export * from './contactsAccessMode';
|
|
|
165
165
|
export * from './contactsAddContactsToGroupRequest';
|
|
166
166
|
export * from './contactsCallEvent';
|
|
167
167
|
export * from './contactsCallFile';
|
|
168
|
+
export * from './contactsCallFileType';
|
|
168
169
|
export * from './contactsChatCatalogGetContactChatHistory2Params';
|
|
169
170
|
export * from './contactsChatCatalogGetContactChatHistoryParams';
|
|
170
171
|
export * from './contactsChatEvent';
|
|
@@ -1365,6 +1366,7 @@ export * from './usersLogoutUserBody';
|
|
|
1365
1366
|
export * from './webitelCasesAttachment';
|
|
1366
1367
|
export * from './webitelCasesCallEvent';
|
|
1367
1368
|
export * from './webitelCasesCallFile';
|
|
1369
|
+
export * from './webitelCasesCallFileType';
|
|
1368
1370
|
export * from './webitelCasesCase';
|
|
1369
1371
|
export * from './webitelCasesCaseComment';
|
|
1370
1372
|
export * from './webitelCasesCaseCommentList';
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { WebitelCasesCallFileType } from './webitelCasesCallFileType';
|
|
7
8
|
export interface WebitelCasesCallFile {
|
|
9
|
+
channel?: string;
|
|
8
10
|
id?: string;
|
|
9
11
|
mime_type?: string;
|
|
10
12
|
name?: string;
|
|
11
13
|
size?: string;
|
|
12
14
|
start_at?: string;
|
|
13
15
|
stop_at?: string;
|
|
16
|
+
type?: WebitelCasesCallFileType;
|
|
14
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
export type WebitelCasesCallFileType = (typeof WebitelCasesCallFileType)[keyof typeof WebitelCasesCallFileType];
|
|
8
|
+
export declare const WebitelCasesCallFileType: {
|
|
9
|
+
readonly FileTypeEmpty: "file_type_empty";
|
|
10
|
+
readonly FileTypeScreenshot: "file_type_screenshot";
|
|
11
|
+
readonly FileTypeScreensharing: "file_type_screensharing";
|
|
12
|
+
readonly FileTypeAudio: "file_type_audio";
|
|
13
|
+
readonly FileTypeVideo: "file_type_video";
|
|
14
|
+
readonly FileTypePdf: "file_type_pdf";
|
|
15
|
+
};
|
|
@@ -23,6 +23,7 @@ export declare const GetTimelineQueryParams: zod.ZodObject<{
|
|
|
23
23
|
email: "email";
|
|
24
24
|
}>>>;
|
|
25
25
|
}, zod.z.core.$strip>;
|
|
26
|
+
export declare const getTimelineResponseDaysItemItemsItemCallFilesItemTypeDefault = "file_type_empty";
|
|
26
27
|
export declare const getTimelineResponseDaysItemItemsItemTypeDefault = "chat";
|
|
27
28
|
export declare const GetTimelineResponse: zod.ZodObject<{
|
|
28
29
|
days: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -35,12 +36,21 @@ export declare const GetTimelineResponse: zod.ZodObject<{
|
|
|
35
36
|
closed_at: zod.ZodOptional<zod.ZodString>;
|
|
36
37
|
duration: zod.ZodOptional<zod.ZodString>;
|
|
37
38
|
files: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
39
|
+
channel: zod.ZodOptional<zod.ZodString>;
|
|
38
40
|
id: zod.ZodOptional<zod.ZodString>;
|
|
39
41
|
mime_type: zod.ZodOptional<zod.ZodString>;
|
|
40
42
|
name: zod.ZodOptional<zod.ZodString>;
|
|
41
43
|
size: zod.ZodOptional<zod.ZodString>;
|
|
42
44
|
start_at: zod.ZodOptional<zod.ZodString>;
|
|
43
45
|
stop_at: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
type: zod.ZodDefault<zod.ZodEnum<{
|
|
47
|
+
file_type_empty: "file_type_empty";
|
|
48
|
+
file_type_screenshot: "file_type_screenshot";
|
|
49
|
+
file_type_screensharing: "file_type_screensharing";
|
|
50
|
+
file_type_audio: "file_type_audio";
|
|
51
|
+
file_type_video: "file_type_video";
|
|
52
|
+
file_type_pdf: "file_type_pdf";
|
|
53
|
+
}>>;
|
|
44
54
|
}, zod.z.core.$strip>>>;
|
|
45
55
|
flow_scheme: zod.ZodOptional<zod.ZodObject<{
|
|
46
56
|
id: zod.ZodOptional<zod.ZodString>;
|
|
@@ -42,7 +42,7 @@ export { DeleteFileParams, DeleteFileResponse, ListFilesParams, ListFilesQueryPa
|
|
|
42
42
|
export * from './case-links/case-links';
|
|
43
43
|
export { CreateLinkParams, CreateLinkQueryParams, CreateLinkResponse, DeleteLinkParams, DeleteLinkResponse, ListLinksParams, ListLinksQueryParams, ListLinksResponse, LocateLinkParams, LocateLinkQueryParams, LocateLinkResponse, UpdateLink2Body, UpdateLink2Params, UpdateLink2QueryParams, UpdateLink2Response, UpdateLinkBody, UpdateLinkParams, UpdateLinkQueryParams, UpdateLinkResponse, } from './case-links/case-links.zod';
|
|
44
44
|
export * from './case-timeline/case-timeline';
|
|
45
|
-
export { GetTimelineCounterParams, GetTimelineCounterResponse, GetTimelineParams, GetTimelineQueryParams, GetTimelineResponse, getTimelineResponseDaysItemItemsItemTypeDefault, } from './case-timeline/case-timeline.zod';
|
|
45
|
+
export { GetTimelineCounterParams, GetTimelineCounterResponse, GetTimelineParams, GetTimelineQueryParams, GetTimelineResponse, getTimelineResponseDaysItemItemsItemCallFilesItemTypeDefault, getTimelineResponseDaysItemItemsItemTypeDefault, } from './case-timeline/case-timeline.zod';
|
|
46
46
|
export * from './cases/cases';
|
|
47
47
|
export { CreateCaseBody, CreateCaseQueryParams, CreateCaseResponse, createCaseBodyRelatedItemRelationTypeDefault, createCaseResponseRelatedDataItemRelationTypeDefault, createCaseResponseSourceTypeDefault, DeleteCaseParams, DeleteCaseQueryParams, DeleteCaseResponse, deleteCaseResponseRelatedDataItemRelationTypeDefault, deleteCaseResponseSourceTypeDefault, ExportCasesQueryParams, ExportCasesResponse, LocateCaseParams, LocateCaseQueryParams, LocateCaseResponse, locateCaseResponseRelatedDataItemRelationTypeDefault, locateCaseResponseSourceTypeDefault, SearchCases2Params, SearchCases2QueryParams, SearchCases2Response, SearchCasesQueryParams, SearchCasesResponse, searchCases2ResponseItemsItemRelatedDataItemRelationTypeDefault, searchCases2ResponseItemsItemSourceTypeDefault, searchCasesResponseItemsItemRelatedDataItemRelationTypeDefault, searchCasesResponseItemsItemSourceTypeDefault, UpdateCase2Body, UpdateCase2Params, UpdateCase2QueryParams, UpdateCase2Response, UpdateCaseBody, UpdateCaseParams, UpdateCaseQueryParams, UpdateCaseResponse, updateCase2ResponseCaseRelatedDataItemRelationTypeDefault, updateCase2ResponseCaseSourceTypeDefault, updateCaseResponseCaseRelatedDataItemRelationTypeDefault, updateCaseResponseCaseSourceTypeDefault, } from './cases/cases.zod';
|
|
48
48
|
export * from './cases-chat-catalog/cases-chat-catalog';
|
|
@@ -218,7 +218,7 @@ export { CreateTeamHookBody, CreateTeamHookParams, CreateTeamHookResponse, creat
|
|
|
218
218
|
export * from './team-trigger-service/team-trigger-service';
|
|
219
219
|
export { CreateTeamTriggerBody, CreateTeamTriggerParams, CreateTeamTriggerResponse, DeleteTeamTriggerParams, DeleteTeamTriggerResponse, PatchTeamTriggerBody, PatchTeamTriggerParams, PatchTeamTriggerResponse, ReadTeamTriggerParams, ReadTeamTriggerResponse, RunTeamTriggerBody, RunTeamTriggerParams, RunTeamTriggerResponse, SearchAgentTriggerQueryParams, SearchAgentTriggerResponse, SearchTeamTriggerParams, SearchTeamTriggerQueryParams, SearchTeamTriggerResponse, UpdateTeamTriggerBody, UpdateTeamTriggerParams, UpdateTeamTriggerResponse, } from './team-trigger-service/team-trigger-service.zod';
|
|
220
220
|
export * from './timeline/timeline';
|
|
221
|
-
export { GetTimelineCounterTimelineParams, GetTimelineCounterTimelineResponse, GetTimelineItemInfoParams, GetTimelineItemInfoResponse, GetTimelineTimelineParams, GetTimelineTimelineQueryParams, GetTimelineTimelineResponse, getTimelineTimelineResponseDaysItemItemsItemTypeDefault, } from './timeline/timeline.zod';
|
|
221
|
+
export { GetTimelineCounterTimelineParams, GetTimelineCounterTimelineResponse, GetTimelineItemInfoParams, GetTimelineItemInfoResponse, GetTimelineTimelineParams, GetTimelineTimelineQueryParams, GetTimelineTimelineResponse, getTimelineTimelineResponseDaysItemItemsItemCallFilesItemTypeDefault, getTimelineTimelineResponseDaysItemItemsItemTypeDefault, } from './timeline/timeline.zod';
|
|
222
222
|
export * from './timezones/timezones';
|
|
223
223
|
export { DeleteTimezoneParams, DeleteTimezoneQueryParams, DeleteTimezoneResponse, DeleteTimezonesParams, DeleteTimezonesQueryParams, DeleteTimezonesResponse, deleteTimezonePathEtagRegExp, ListTimezonesParams, ListTimezonesQueryParams, ListTimezonesResponse, LocateTimezoneParams, LocateTimezoneQueryParams, LocateTimezoneResponse, MergeTimezonesBody, MergeTimezonesBodyItem, MergeTimezonesParams, MergeTimezonesQueryParams, MergeTimezonesResponse, ResetTimezonesBody, ResetTimezonesBodyItem, ResetTimezonesParams, ResetTimezonesQueryParams, ResetTimezonesResponse, UpdateTimezone2Body, UpdateTimezone2Params, UpdateTimezone2QueryParams, UpdateTimezone2Response, UpdateTimezoneBody, UpdateTimezoneParams, UpdateTimezoneQueryParams, UpdateTimezoneResponse, } from './timezones/timezones.zod';
|
|
224
224
|
export * from './trigger-service/trigger-service';
|
|
@@ -23,6 +23,7 @@ export declare const GetTimelineTimelineQueryParams: zod.ZodObject<{
|
|
|
23
23
|
email: "email";
|
|
24
24
|
}>>>;
|
|
25
25
|
}, zod.z.core.$strip>;
|
|
26
|
+
export declare const getTimelineTimelineResponseDaysItemItemsItemCallFilesItemTypeDefault = "file_type_empty";
|
|
26
27
|
export declare const getTimelineTimelineResponseDaysItemItemsItemTypeDefault = "chat";
|
|
27
28
|
export declare const GetTimelineTimelineResponse: zod.ZodObject<{
|
|
28
29
|
days: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -35,12 +36,21 @@ export declare const GetTimelineTimelineResponse: zod.ZodObject<{
|
|
|
35
36
|
closed_at: zod.ZodOptional<zod.ZodString>;
|
|
36
37
|
duration: zod.ZodOptional<zod.ZodString>;
|
|
37
38
|
files: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
39
|
+
channel: zod.ZodOptional<zod.ZodString>;
|
|
38
40
|
id: zod.ZodOptional<zod.ZodString>;
|
|
39
41
|
mime_type: zod.ZodOptional<zod.ZodString>;
|
|
40
42
|
name: zod.ZodOptional<zod.ZodString>;
|
|
41
43
|
size: zod.ZodOptional<zod.ZodString>;
|
|
42
44
|
start_at: zod.ZodOptional<zod.ZodString>;
|
|
43
45
|
stop_at: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
type: zod.ZodDefault<zod.ZodEnum<{
|
|
47
|
+
file_type_empty: "file_type_empty";
|
|
48
|
+
file_type_screenshot: "file_type_screenshot";
|
|
49
|
+
file_type_screensharing: "file_type_screensharing";
|
|
50
|
+
file_type_audio: "file_type_audio";
|
|
51
|
+
file_type_video: "file_type_video";
|
|
52
|
+
file_type_pdf: "file_type_pdf";
|
|
53
|
+
}>>;
|
|
44
54
|
}, zod.z.core.$strip>>>;
|
|
45
55
|
flow_scheme: zod.ZodOptional<zod.ZodObject<{
|
|
46
56
|
id: zod.ZodOptional<zod.ZodString>;
|
|
@@ -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>;
|