@kl1/contracts 1.1.69-uat → 1.1.70-uat

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,242 @@
1
+ import { HoldLabelSchema } from './schema';
2
+ import z from 'zod';
3
+ import { updatePositionSchema } from './validation';
4
+ export type HoldLabel = z.infer<typeof HoldLabelSchema>;
5
+ export type UpdateHoldLabelPositionRequest = z.infer<typeof updatePositionSchema>;
6
+ export declare const holdLabelContract: {
7
+ createHoldLabel: {
8
+ body: z.ZodObject<{
9
+ name: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ }, {
13
+ name: string;
14
+ }>;
15
+ method: "POST";
16
+ responses: {
17
+ 201: z.ZodObject<{
18
+ requestId: z.ZodString;
19
+ holdLabel: z.ZodObject<{
20
+ id: z.ZodString;
21
+ createdAt: z.ZodDate;
22
+ updatedAt: z.ZodDate;
23
+ deletedAt: z.ZodNullable<z.ZodDate>;
24
+ name: z.ZodString;
25
+ position: z.ZodNumber;
26
+ }, "strip", z.ZodTypeAny, {
27
+ id: string;
28
+ name: string;
29
+ position: number;
30
+ createdAt: Date;
31
+ updatedAt: Date;
32
+ deletedAt: Date | null;
33
+ }, {
34
+ id: string;
35
+ name: string;
36
+ position: number;
37
+ createdAt: Date;
38
+ updatedAt: Date;
39
+ deletedAt: Date | null;
40
+ }>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ requestId: string;
43
+ holdLabel: {
44
+ id: string;
45
+ name: string;
46
+ position: number;
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ deletedAt: Date | null;
50
+ };
51
+ }, {
52
+ requestId: string;
53
+ holdLabel: {
54
+ id: string;
55
+ name: string;
56
+ position: number;
57
+ createdAt: Date;
58
+ updatedAt: Date;
59
+ deletedAt: Date | null;
60
+ };
61
+ }>;
62
+ };
63
+ path: "hold-label";
64
+ };
65
+ getHoldLabels: {
66
+ method: "GET";
67
+ responses: {
68
+ 200: z.ZodObject<{
69
+ requestId: z.ZodString;
70
+ holdLabels: z.ZodArray<z.ZodObject<{
71
+ id: z.ZodString;
72
+ createdAt: z.ZodDate;
73
+ updatedAt: z.ZodDate;
74
+ deletedAt: z.ZodNullable<z.ZodDate>;
75
+ name: z.ZodString;
76
+ position: z.ZodNumber;
77
+ }, "strip", z.ZodTypeAny, {
78
+ id: string;
79
+ name: string;
80
+ position: number;
81
+ createdAt: Date;
82
+ updatedAt: Date;
83
+ deletedAt: Date | null;
84
+ }, {
85
+ id: string;
86
+ name: string;
87
+ position: number;
88
+ createdAt: Date;
89
+ updatedAt: Date;
90
+ deletedAt: Date | null;
91
+ }>, "many">;
92
+ }, "strip", z.ZodTypeAny, {
93
+ requestId: string;
94
+ holdLabels: {
95
+ id: string;
96
+ name: string;
97
+ position: number;
98
+ createdAt: Date;
99
+ updatedAt: Date;
100
+ deletedAt: Date | null;
101
+ }[];
102
+ }, {
103
+ requestId: string;
104
+ holdLabels: {
105
+ id: string;
106
+ name: string;
107
+ position: number;
108
+ createdAt: Date;
109
+ updatedAt: Date;
110
+ deletedAt: Date | null;
111
+ }[];
112
+ }>;
113
+ };
114
+ path: "hold-label";
115
+ };
116
+ updateHoldLabel: {
117
+ body: z.ZodObject<{
118
+ name: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ name: string;
121
+ }, {
122
+ name: string;
123
+ }>;
124
+ method: "PATCH";
125
+ pathParams: z.ZodObject<{
126
+ id: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ id: string;
129
+ }, {
130
+ id: string;
131
+ }>;
132
+ responses: {
133
+ 200: z.ZodObject<{
134
+ requestId: z.ZodString;
135
+ holdLabel: z.ZodObject<{
136
+ id: z.ZodString;
137
+ createdAt: z.ZodDate;
138
+ updatedAt: z.ZodDate;
139
+ deletedAt: z.ZodNullable<z.ZodDate>;
140
+ name: z.ZodString;
141
+ position: z.ZodNumber;
142
+ }, "strip", z.ZodTypeAny, {
143
+ id: string;
144
+ name: string;
145
+ position: number;
146
+ createdAt: Date;
147
+ updatedAt: Date;
148
+ deletedAt: Date | null;
149
+ }, {
150
+ id: string;
151
+ name: string;
152
+ position: number;
153
+ createdAt: Date;
154
+ updatedAt: Date;
155
+ deletedAt: Date | null;
156
+ }>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ requestId: string;
159
+ holdLabel: {
160
+ id: string;
161
+ name: string;
162
+ position: number;
163
+ createdAt: Date;
164
+ updatedAt: Date;
165
+ deletedAt: Date | null;
166
+ };
167
+ }, {
168
+ requestId: string;
169
+ holdLabel: {
170
+ id: string;
171
+ name: string;
172
+ position: number;
173
+ createdAt: Date;
174
+ updatedAt: Date;
175
+ deletedAt: Date | null;
176
+ };
177
+ }>;
178
+ };
179
+ path: "hold-label/:id";
180
+ };
181
+ deleteHoldLabel: {
182
+ body: null;
183
+ method: "DELETE";
184
+ pathParams: z.ZodObject<{
185
+ id: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ id: string;
188
+ }, {
189
+ id: string;
190
+ }>;
191
+ responses: {
192
+ 200: z.ZodObject<{
193
+ requestId: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ requestId: string;
196
+ }, {
197
+ requestId: string;
198
+ }>;
199
+ };
200
+ path: "hold-label/:id";
201
+ };
202
+ getAutoUnhold: {
203
+ method: "GET";
204
+ responses: {
205
+ 200: z.ZodObject<{
206
+ requestId: z.ZodString;
207
+ autoUnhold: z.ZodBoolean;
208
+ }, "strip", z.ZodTypeAny, {
209
+ requestId: string;
210
+ autoUnhold: boolean;
211
+ }, {
212
+ requestId: string;
213
+ autoUnhold: boolean;
214
+ }>;
215
+ };
216
+ path: "hold-label/auto-unhold";
217
+ };
218
+ updateAutoUnhold: {
219
+ body: z.ZodObject<{
220
+ autoUnhold: z.ZodBoolean;
221
+ }, "strip", z.ZodTypeAny, {
222
+ autoUnhold: boolean;
223
+ }, {
224
+ autoUnhold: boolean;
225
+ }>;
226
+ method: "PATCH";
227
+ responses: {
228
+ 200: z.ZodObject<{
229
+ requestId: z.ZodString;
230
+ autoUnhold: z.ZodBoolean;
231
+ }, "strip", z.ZodTypeAny, {
232
+ requestId: string;
233
+ autoUnhold: boolean;
234
+ }, {
235
+ requestId: string;
236
+ autoUnhold: boolean;
237
+ }>;
238
+ };
239
+ path: "hold-label/auto-unhold";
240
+ };
241
+ };
242
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hold-label/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oBAAoB,CAC5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D7B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import z from 'zod';
2
+ export declare const HoldLabelSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
+ name: z.ZodString;
8
+ position: z.ZodNumber;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ name: string;
12
+ position: number;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ deletedAt: Date | null;
16
+ }, {
17
+ id: string;
18
+ name: string;
19
+ position: number;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ deletedAt: Date | null;
23
+ }>;
24
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/hold-label/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import z from 'zod';
2
+ export declare const updatePositionSchema: z.ZodObject<{
3
+ holdLabels: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodString;
5
+ position: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ position: number;
9
+ }, {
10
+ id: string;
11
+ position: number;
12
+ }>, "many">;
13
+ }, "strip", z.ZodTypeAny, {
14
+ holdLabels: {
15
+ id: string;
16
+ position: number;
17
+ }[];
18
+ }, {
19
+ holdLabels: {
20
+ id: string;
21
+ position: number;
22
+ }[];
23
+ }>;
24
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/hold-label/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC"}
@@ -25,4 +25,5 @@ export * from './snippet';
25
25
  export * from './webchat';
26
26
  export * from './botpress';
27
27
  export * from './subscription';
28
+ export * from './hold-label';
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,E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