@webitel/api-services 26.12.17 → 26.12.19

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.
@@ -0,0 +1,24 @@
1
+ import { type EngineRoutingSchema } from '@webitel/api-services/gen/models';
2
+ import { z } from 'zod';
3
+ /**
4
+ * [Claude] A code-editor flow: `schema` travels as JSON text (the API stringifies
5
+ * it on read and parses it back on write), so the form only needs it non-empty.
6
+ */
7
+ export declare const flowSchema: z.ZodObject<{
8
+ name: z.ZodDefault<z.ZodString>;
9
+ schema: z.ZodDefault<z.ZodString>;
10
+ type: z.ZodOptional<z.ZodEnum<{
11
+ readonly Default: "default";
12
+ readonly Voice: "voice";
13
+ readonly Chat: "chat";
14
+ readonly Processing: "processing";
15
+ readonly Service: "service";
16
+ }>>;
17
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ name: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>>>>;
20
+ editor: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21
+ }, z.core.$strip>;
22
+ export type FlowFormShape = z.input<typeof flowSchema>;
23
+ /** [Claude] the flow as a card holds it: the API entity with the form's fields (`schema` as text) */
24
+ export type FlowCard = Omit<EngineRoutingSchema, keyof FlowFormShape> & FlowFormShape;
@@ -34,6 +34,7 @@ export * from './contactGroup/contactGroup.validations';
34
34
  export * from './contactGroupCondition/contactGroupCondition.validations';
35
35
  export * from './contactPhone/contactPhone.validations';
36
36
  export * from './device/device.validations';
37
+ export * from './flow/flow.validations';
37
38
  export * from './license/licenseImport.validations';
38
39
  export * from './OAuth/OAuth.validations';
39
40
  export * from './onlineSkill/onlineSkill.validations';
@@ -49,6 +50,7 @@ export * from './queueMember/memberCommunication.validations';
49
50
  export * from './queueMember/queueMember.validations';
50
51
  export * from './queueResGroup/queueResGroup.validations';
51
52
  export * from './queueSkill/queueSkill.validations';
53
+ export * from './quickReply/quickReply.validations';
52
54
  export * from './region/region.validations';
53
55
  export * from './resource/resource.validations';
54
56
  export * from './resourceDisplay/resourceDisplay.validations';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare const quickReplySchema: z.ZodObject<{
3
+ article?: 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
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
8
+ queues?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
+ teams?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ text?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
+ updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
12
+ updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
13
+ }, z.core.$strip>;