@kl1/contracts 1.0.0 → 1.0.2
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/dist/index.js +1493 -496
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1487 -492
- package/dist/index.mjs.map +1 -1
- package/dist/src/attribute/index.d.ts +527 -65
- package/dist/src/attribute/index.d.ts.map +1 -1
- package/dist/src/attribute/schema.d.ts +91 -11
- package/dist/src/attribute/schema.d.ts.map +1 -1
- package/dist/src/attribute/validation.d.ts +13 -16
- package/dist/src/attribute/validation.d.ts.map +1 -1
- package/dist/src/attribute-option/schema.d.ts +5 -5
- package/dist/src/auth/index.d.ts +64 -29
- package/dist/src/auth/index.d.ts.map +1 -1
- package/dist/src/base-contract.d.ts +6 -6
- package/dist/src/base-contract.d.ts.map +1 -1
- package/dist/src/call-log/schema.d.ts +5 -5
- package/dist/src/call-log/validation.d.ts +2 -2
- package/dist/src/category/index.d.ts +193 -109
- package/dist/src/category/index.d.ts.map +1 -1
- package/dist/src/category/schema.d.ts +24 -2
- package/dist/src/category/schema.d.ts.map +1 -1
- package/dist/src/category/validation.d.ts +4 -4
- package/dist/src/chat/index.d.ts +2111 -0
- package/dist/src/chat/index.d.ts.map +1 -0
- package/dist/src/chat/schema.d.ts +1742 -0
- package/dist/src/chat/schema.d.ts.map +1 -0
- package/dist/src/chat/validation.d.ts +355 -0
- package/dist/src/chat/validation.d.ts.map +1 -0
- package/dist/src/company/schema.d.ts +3 -3
- package/dist/src/contact/schema.d.ts +3 -3
- package/dist/src/contact-email/schema.d.ts +3 -3
- package/dist/src/contact-phone/schema.d.ts +3 -3
- package/dist/src/contract.d.ts +6117 -599
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/custom-field/schema.d.ts +5 -5
- package/dist/src/custom-field-upload/schema.d.ts +3 -3
- package/dist/src/cx-log/index.d.ts +64 -62
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +7 -7
- package/dist/src/cx-log/validation.d.ts +47 -47
- package/dist/src/cx-log/validation.d.ts.map +1 -1
- package/dist/src/evaluate-form/schema.d.ts +3 -3
- package/dist/src/extension/index.d.ts +547 -0
- package/dist/src/extension/index.d.ts.map +1 -0
- package/dist/src/extension/schema.d.ts +9 -9
- package/dist/src/extension/validation.d.ts +49 -0
- package/dist/src/extension/validation.d.ts.map +1 -0
- package/dist/src/group/schema.d.ts +3 -3
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/line/index.d.ts +86 -0
- package/dist/src/line/index.d.ts.map +1 -0
- package/dist/src/line/schema.d.ts +12 -0
- package/dist/src/line/schema.d.ts.map +1 -0
- package/dist/src/line/validation.d.ts +18 -0
- package/dist/src/line/validation.d.ts.map +1 -0
- package/dist/src/log-form/schema.d.ts +3 -3
- package/dist/src/mail/account-contract.d.ts +119 -119
- package/dist/src/mail/account-contract.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +622 -623
- package/dist/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/src/mail/mail-server.d.ts.map +1 -1
- package/dist/src/mail/message-contract.d.ts.map +1 -1
- package/dist/src/mail/room-contract.d.ts.map +1 -1
- package/dist/src/mail/schemas/account.schema.d.ts +129 -129
- package/dist/src/permission/index.d.ts +95 -0
- package/dist/src/permission/index.d.ts.map +1 -0
- package/dist/src/permission/schema.d.ts +3 -3
- package/dist/src/platform-contact/schema.d.ts +5 -5
- package/dist/src/role/index.d.ts +545 -0
- package/dist/src/role/index.d.ts.map +1 -0
- package/dist/src/role/schema.d.ts +8 -8
- package/dist/src/role/validation.d.ts +37 -0
- package/dist/src/role/validation.d.ts.map +1 -0
- package/dist/src/tag/index.d.ts +286 -0
- package/dist/src/tag/index.d.ts.map +1 -0
- package/dist/src/tag/schema.d.ts +4 -3
- package/dist/src/tag/schema.d.ts.map +1 -1
- package/dist/src/tag/validation.d.ts +29 -0
- package/dist/src/tag/validation.d.ts.map +1 -0
- package/dist/src/tag-group/schema.d.ts +3 -3
- package/dist/src/telephony-cdr/schema.d.ts +5 -5
- package/dist/src/telephony-extension/index.d.ts +65 -0
- package/dist/src/telephony-extension/index.d.ts.map +1 -0
- package/dist/src/telephony-extension/schema.d.ts +18 -0
- package/dist/src/telephony-extension/schema.d.ts.map +1 -0
- package/dist/src/telephony-live-queue-call/schema.d.ts +3 -3
- package/dist/src/telephony-queue-call-count/schema.d.ts +3 -3
- package/dist/src/ticket/schema.d.ts +5 -5
- package/dist/src/types.d.ts +5 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/upload/schema.d.ts +3 -3
- package/dist/src/user/index.d.ts +1064 -0
- package/dist/src/user/index.d.ts.map +1 -0
- package/dist/src/user/schema.d.ts +15 -15
- package/dist/src/user/schema.d.ts.map +1 -1
- package/dist/src/user/validation.d.ts +49 -0
- package/dist/src/user/validation.d.ts.map +1 -0
- package/dist/src/widget/index.d.ts +817 -0
- package/dist/src/widget/index.d.ts.map +1 -0
- package/dist/src/widget/schema.d.ts +20 -9
- package/dist/src/widget/schema.d.ts.map +1 -1
- package/dist/src/widget/validation.d.ts +63 -0
- package/dist/src/widget/validation.d.ts.map +1 -0
- package/dist/utils.d.ts +2 -2
- package/package.json +2 -1
@@ -1,9 +1,17 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
import { AttributeSchema, AttributeTypeSchema } from './schema';
|
3
|
+
import { CreateAttributeSchema, GetAttributesSchema, UpdateAttributeSchema, UpdatePositionSchema } from './validation';
|
4
|
+
export type CreateAttributeRequest = z.infer<typeof CreateAttributeSchema>;
|
5
|
+
export type GetAttributesRequest = z.infer<typeof GetAttributesSchema>;
|
6
|
+
export type UpdateAttributeRequest = z.infer<typeof UpdateAttributeSchema>;
|
7
|
+
export type UpdatePositionRequest = z.infer<typeof UpdatePositionSchema>;
|
8
|
+
export type Attribute = z.infer<typeof AttributeSchema>;
|
9
|
+
export type AttributeType = z.infer<typeof AttributeTypeSchema>;
|
2
10
|
export declare const attributeContract: {
|
3
11
|
createAttribute: {
|
4
12
|
body: z.ZodObject<{
|
5
13
|
name: z.ZodString;
|
6
|
-
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"
|
14
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
7
15
|
isRequired: z.ZodBoolean;
|
8
16
|
isVisible: z.ZodBoolean;
|
9
17
|
group: z.ZodString;
|
@@ -24,7 +32,7 @@ export declare const attributeContract: {
|
|
24
32
|
isDefault: boolean;
|
25
33
|
}>, "many">;
|
26
34
|
}, "strip", z.ZodTypeAny, {
|
27
|
-
type: "
|
35
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
28
36
|
name: string;
|
29
37
|
options: {
|
30
38
|
position: number;
|
@@ -36,7 +44,7 @@ export declare const attributeContract: {
|
|
36
44
|
isRequired: boolean;
|
37
45
|
isVisible: boolean;
|
38
46
|
}, {
|
39
|
-
type: "
|
47
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
40
48
|
name: string;
|
41
49
|
options: {
|
42
50
|
position: number;
|
@@ -52,10 +60,167 @@ export declare const attributeContract: {
|
|
52
60
|
responses: {
|
53
61
|
201: z.ZodObject<{
|
54
62
|
requestId: z.ZodString;
|
63
|
+
attribute: z.ZodObject<{
|
64
|
+
id: z.ZodString;
|
65
|
+
createdAt: z.ZodDate;
|
66
|
+
updatedAt: z.ZodDate;
|
67
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
68
|
+
systemName: z.ZodString;
|
69
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
70
|
+
position: z.ZodNumber;
|
71
|
+
isDefault: z.ZodBoolean;
|
72
|
+
isArchived: z.ZodBoolean;
|
73
|
+
isRequired: z.ZodBoolean;
|
74
|
+
isUnique: z.ZodBoolean;
|
75
|
+
options: z.ZodArray<z.ZodObject<{
|
76
|
+
label: z.ZodString;
|
77
|
+
value: z.ZodString;
|
78
|
+
isDefault: z.ZodBoolean;
|
79
|
+
position: z.ZodNumber;
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
81
|
+
position: number;
|
82
|
+
value: string;
|
83
|
+
label: string;
|
84
|
+
isDefault: boolean;
|
85
|
+
}, {
|
86
|
+
position: number;
|
87
|
+
value: string;
|
88
|
+
label: string;
|
89
|
+
isDefault: boolean;
|
90
|
+
}>, "many">;
|
91
|
+
group: z.ZodObject<{
|
92
|
+
id: z.ZodString;
|
93
|
+
createdAt: z.ZodDate;
|
94
|
+
updatedAt: z.ZodDate;
|
95
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
96
|
+
systemName: z.ZodString;
|
97
|
+
displayName: z.ZodString;
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
99
|
+
id: string;
|
100
|
+
createdAt: Date;
|
101
|
+
updatedAt: Date;
|
102
|
+
deletedAt: Date | null;
|
103
|
+
systemName: string;
|
104
|
+
displayName: string;
|
105
|
+
}, {
|
106
|
+
id: string;
|
107
|
+
createdAt: Date;
|
108
|
+
updatedAt: Date;
|
109
|
+
deletedAt: Date | null;
|
110
|
+
systemName: string;
|
111
|
+
displayName: string;
|
112
|
+
}>;
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
114
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
115
|
+
id: string;
|
116
|
+
position: number;
|
117
|
+
options: {
|
118
|
+
position: number;
|
119
|
+
value: string;
|
120
|
+
label: string;
|
121
|
+
isDefault: boolean;
|
122
|
+
}[];
|
123
|
+
group: {
|
124
|
+
id: string;
|
125
|
+
createdAt: Date;
|
126
|
+
updatedAt: Date;
|
127
|
+
deletedAt: Date | null;
|
128
|
+
systemName: string;
|
129
|
+
displayName: string;
|
130
|
+
};
|
131
|
+
createdAt: Date;
|
132
|
+
updatedAt: Date;
|
133
|
+
deletedAt: Date | null;
|
134
|
+
isDefault: boolean;
|
135
|
+
systemName: string;
|
136
|
+
isArchived: boolean;
|
137
|
+
isRequired: boolean;
|
138
|
+
isUnique: boolean;
|
139
|
+
}, {
|
140
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
141
|
+
id: string;
|
142
|
+
position: number;
|
143
|
+
options: {
|
144
|
+
position: number;
|
145
|
+
value: string;
|
146
|
+
label: string;
|
147
|
+
isDefault: boolean;
|
148
|
+
}[];
|
149
|
+
group: {
|
150
|
+
id: string;
|
151
|
+
createdAt: Date;
|
152
|
+
updatedAt: Date;
|
153
|
+
deletedAt: Date | null;
|
154
|
+
systemName: string;
|
155
|
+
displayName: string;
|
156
|
+
};
|
157
|
+
createdAt: Date;
|
158
|
+
updatedAt: Date;
|
159
|
+
deletedAt: Date | null;
|
160
|
+
isDefault: boolean;
|
161
|
+
systemName: string;
|
162
|
+
isArchived: boolean;
|
163
|
+
isRequired: boolean;
|
164
|
+
isUnique: boolean;
|
165
|
+
}>;
|
55
166
|
}, "strip", z.ZodTypeAny, {
|
56
167
|
requestId: string;
|
168
|
+
attribute: {
|
169
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
170
|
+
id: string;
|
171
|
+
position: number;
|
172
|
+
options: {
|
173
|
+
position: number;
|
174
|
+
value: string;
|
175
|
+
label: string;
|
176
|
+
isDefault: boolean;
|
177
|
+
}[];
|
178
|
+
group: {
|
179
|
+
id: string;
|
180
|
+
createdAt: Date;
|
181
|
+
updatedAt: Date;
|
182
|
+
deletedAt: Date | null;
|
183
|
+
systemName: string;
|
184
|
+
displayName: string;
|
185
|
+
};
|
186
|
+
createdAt: Date;
|
187
|
+
updatedAt: Date;
|
188
|
+
deletedAt: Date | null;
|
189
|
+
isDefault: boolean;
|
190
|
+
systemName: string;
|
191
|
+
isArchived: boolean;
|
192
|
+
isRequired: boolean;
|
193
|
+
isUnique: boolean;
|
194
|
+
};
|
57
195
|
}, {
|
58
196
|
requestId: string;
|
197
|
+
attribute: {
|
198
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
199
|
+
id: string;
|
200
|
+
position: number;
|
201
|
+
options: {
|
202
|
+
position: number;
|
203
|
+
value: string;
|
204
|
+
label: string;
|
205
|
+
isDefault: boolean;
|
206
|
+
}[];
|
207
|
+
group: {
|
208
|
+
id: string;
|
209
|
+
createdAt: Date;
|
210
|
+
updatedAt: Date;
|
211
|
+
deletedAt: Date | null;
|
212
|
+
systemName: string;
|
213
|
+
displayName: string;
|
214
|
+
};
|
215
|
+
createdAt: Date;
|
216
|
+
updatedAt: Date;
|
217
|
+
deletedAt: Date | null;
|
218
|
+
isDefault: boolean;
|
219
|
+
systemName: string;
|
220
|
+
isArchived: boolean;
|
221
|
+
isRequired: boolean;
|
222
|
+
isUnique: boolean;
|
223
|
+
};
|
59
224
|
}>;
|
60
225
|
500: z.ZodObject<{
|
61
226
|
message: z.ZodString;
|
@@ -69,7 +234,7 @@ export declare const attributeContract: {
|
|
69
234
|
}>;
|
70
235
|
};
|
71
236
|
path: "attributes";
|
72
|
-
headers: z.ZodObject<{
|
237
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
73
238
|
'x-tenant': z.ZodString;
|
74
239
|
authorization: z.ZodString;
|
75
240
|
}, "strip", z.ZodTypeAny, {
|
@@ -78,7 +243,7 @@ export declare const attributeContract: {
|
|
78
243
|
}, {
|
79
244
|
'x-tenant': string;
|
80
245
|
authorization: string;
|
81
|
-
}
|
246
|
+
}>>>;
|
82
247
|
};
|
83
248
|
getAttributes: {
|
84
249
|
method: "GET";
|
@@ -93,46 +258,170 @@ export declare const attributeContract: {
|
|
93
258
|
visibleOnly?: boolean | undefined;
|
94
259
|
}>;
|
95
260
|
responses: {
|
96
|
-
200: z.
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
261
|
+
200: z.ZodObject<{
|
262
|
+
requestId: z.ZodString;
|
263
|
+
attributes: z.ZodArray<z.ZodObject<{
|
264
|
+
id: z.ZodString;
|
265
|
+
createdAt: z.ZodDate;
|
266
|
+
updatedAt: z.ZodDate;
|
267
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
268
|
+
systemName: z.ZodString;
|
269
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
270
|
+
position: z.ZodNumber;
|
271
|
+
isDefault: z.ZodBoolean;
|
272
|
+
isArchived: z.ZodBoolean;
|
273
|
+
isRequired: z.ZodBoolean;
|
274
|
+
isUnique: z.ZodBoolean;
|
275
|
+
options: z.ZodArray<z.ZodObject<{
|
276
|
+
label: z.ZodString;
|
277
|
+
value: z.ZodString;
|
278
|
+
isDefault: z.ZodBoolean;
|
279
|
+
position: z.ZodNumber;
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
281
|
+
position: number;
|
282
|
+
value: string;
|
283
|
+
label: string;
|
284
|
+
isDefault: boolean;
|
285
|
+
}, {
|
286
|
+
position: number;
|
287
|
+
value: string;
|
288
|
+
label: string;
|
289
|
+
isDefault: boolean;
|
290
|
+
}>, "many">;
|
291
|
+
group: z.ZodObject<{
|
292
|
+
id: z.ZodString;
|
293
|
+
createdAt: z.ZodDate;
|
294
|
+
updatedAt: z.ZodDate;
|
295
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
296
|
+
systemName: z.ZodString;
|
297
|
+
displayName: z.ZodString;
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
299
|
+
id: string;
|
300
|
+
createdAt: Date;
|
301
|
+
updatedAt: Date;
|
302
|
+
deletedAt: Date | null;
|
303
|
+
systemName: string;
|
304
|
+
displayName: string;
|
305
|
+
}, {
|
306
|
+
id: string;
|
307
|
+
createdAt: Date;
|
308
|
+
updatedAt: Date;
|
309
|
+
deletedAt: Date | null;
|
310
|
+
systemName: string;
|
311
|
+
displayName: string;
|
312
|
+
}>;
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
314
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
315
|
+
id: string;
|
316
|
+
position: number;
|
317
|
+
options: {
|
318
|
+
position: number;
|
319
|
+
value: string;
|
320
|
+
label: string;
|
321
|
+
isDefault: boolean;
|
322
|
+
}[];
|
323
|
+
group: {
|
324
|
+
id: string;
|
325
|
+
createdAt: Date;
|
326
|
+
updatedAt: Date;
|
327
|
+
deletedAt: Date | null;
|
328
|
+
systemName: string;
|
329
|
+
displayName: string;
|
330
|
+
};
|
331
|
+
createdAt: Date;
|
332
|
+
updatedAt: Date;
|
333
|
+
deletedAt: Date | null;
|
334
|
+
isDefault: boolean;
|
335
|
+
systemName: string;
|
336
|
+
isArchived: boolean;
|
337
|
+
isRequired: boolean;
|
338
|
+
isUnique: boolean;
|
339
|
+
}, {
|
340
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
341
|
+
id: string;
|
342
|
+
position: number;
|
343
|
+
options: {
|
344
|
+
position: number;
|
345
|
+
value: string;
|
346
|
+
label: string;
|
347
|
+
isDefault: boolean;
|
348
|
+
}[];
|
349
|
+
group: {
|
350
|
+
id: string;
|
351
|
+
createdAt: Date;
|
352
|
+
updatedAt: Date;
|
353
|
+
deletedAt: Date | null;
|
354
|
+
systemName: string;
|
355
|
+
displayName: string;
|
356
|
+
};
|
357
|
+
createdAt: Date;
|
358
|
+
updatedAt: Date;
|
359
|
+
deletedAt: Date | null;
|
360
|
+
isDefault: boolean;
|
361
|
+
systemName: string;
|
362
|
+
isArchived: boolean;
|
363
|
+
isRequired: boolean;
|
364
|
+
isUnique: boolean;
|
365
|
+
}>, "many">;
|
109
366
|
}, "strip", z.ZodTypeAny, {
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
367
|
+
attributes: {
|
368
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
369
|
+
id: string;
|
370
|
+
position: number;
|
371
|
+
options: {
|
372
|
+
position: number;
|
373
|
+
value: string;
|
374
|
+
label: string;
|
375
|
+
isDefault: boolean;
|
376
|
+
}[];
|
377
|
+
group: {
|
378
|
+
id: string;
|
379
|
+
createdAt: Date;
|
380
|
+
updatedAt: Date;
|
381
|
+
deletedAt: Date | null;
|
382
|
+
systemName: string;
|
383
|
+
displayName: string;
|
384
|
+
};
|
385
|
+
createdAt: Date;
|
386
|
+
updatedAt: Date;
|
387
|
+
deletedAt: Date | null;
|
388
|
+
isDefault: boolean;
|
389
|
+
systemName: string;
|
390
|
+
isArchived: boolean;
|
391
|
+
isRequired: boolean;
|
392
|
+
isUnique: boolean;
|
393
|
+
}[];
|
394
|
+
requestId: string;
|
122
395
|
}, {
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
396
|
+
attributes: {
|
397
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
398
|
+
id: string;
|
399
|
+
position: number;
|
400
|
+
options: {
|
401
|
+
position: number;
|
402
|
+
value: string;
|
403
|
+
label: string;
|
404
|
+
isDefault: boolean;
|
405
|
+
}[];
|
406
|
+
group: {
|
407
|
+
id: string;
|
408
|
+
createdAt: Date;
|
409
|
+
updatedAt: Date;
|
410
|
+
deletedAt: Date | null;
|
411
|
+
systemName: string;
|
412
|
+
displayName: string;
|
413
|
+
};
|
414
|
+
createdAt: Date;
|
415
|
+
updatedAt: Date;
|
416
|
+
deletedAt: Date | null;
|
417
|
+
isDefault: boolean;
|
418
|
+
systemName: string;
|
419
|
+
isArchived: boolean;
|
420
|
+
isRequired: boolean;
|
421
|
+
isUnique: boolean;
|
422
|
+
}[];
|
423
|
+
requestId: string;
|
424
|
+
}>;
|
136
425
|
500: z.ZodObject<{
|
137
426
|
message: z.ZodString;
|
138
427
|
error: z.ZodAny;
|
@@ -145,7 +434,7 @@ export declare const attributeContract: {
|
|
145
434
|
}>;
|
146
435
|
};
|
147
436
|
path: "attributes";
|
148
|
-
headers: z.ZodObject<{
|
437
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
149
438
|
'x-tenant': z.ZodString;
|
150
439
|
authorization: z.ZodString;
|
151
440
|
}, "strip", z.ZodTypeAny, {
|
@@ -154,12 +443,15 @@ export declare const attributeContract: {
|
|
154
443
|
}, {
|
155
444
|
'x-tenant': string;
|
156
445
|
authorization: string;
|
157
|
-
}
|
446
|
+
}>>>;
|
158
447
|
};
|
159
448
|
updateAttribute: {
|
160
449
|
body: z.ZodObject<{
|
161
|
-
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"select">, z.ZodLiteral<"textarea">, z.ZodLiteral<"boolean">, z.ZodLiteral<"number">, z.ZodLiteral<"link">, z.ZodLiteral<"date">, z.ZodLiteral<"attachment">, z.ZodLiteral<"dependent">]>;
|
162
450
|
name: z.ZodString;
|
451
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
452
|
+
isRequired: z.ZodBoolean;
|
453
|
+
isVisible: z.ZodBoolean;
|
454
|
+
group: z.ZodString;
|
163
455
|
options: z.ZodArray<z.ZodObject<{
|
164
456
|
label: z.ZodString;
|
165
457
|
value: z.ZodString;
|
@@ -176,13 +468,8 @@ export declare const attributeContract: {
|
|
176
468
|
label: string;
|
177
469
|
isDefault: boolean;
|
178
470
|
}>, "many">;
|
179
|
-
group: z.ZodString;
|
180
|
-
isRequired: z.ZodBoolean;
|
181
|
-
isVisible: z.ZodBoolean;
|
182
|
-
id: z.ZodString;
|
183
471
|
}, "strip", z.ZodTypeAny, {
|
184
|
-
type: "
|
185
|
-
id: string;
|
472
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
186
473
|
name: string;
|
187
474
|
options: {
|
188
475
|
position: number;
|
@@ -194,8 +481,7 @@ export declare const attributeContract: {
|
|
194
481
|
isRequired: boolean;
|
195
482
|
isVisible: boolean;
|
196
483
|
}, {
|
197
|
-
type: "
|
198
|
-
id: string;
|
484
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
199
485
|
name: string;
|
200
486
|
options: {
|
201
487
|
position: number;
|
@@ -208,13 +494,177 @@ export declare const attributeContract: {
|
|
208
494
|
isVisible: boolean;
|
209
495
|
}>;
|
210
496
|
method: "PATCH";
|
497
|
+
pathParams: z.ZodObject<{
|
498
|
+
id: z.ZodString;
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
500
|
+
id: string;
|
501
|
+
}, {
|
502
|
+
id: string;
|
503
|
+
}>;
|
211
504
|
responses: {
|
212
505
|
200: z.ZodObject<{
|
213
506
|
requestId: z.ZodString;
|
507
|
+
attribute: z.ZodObject<{
|
508
|
+
id: z.ZodString;
|
509
|
+
createdAt: z.ZodDate;
|
510
|
+
updatedAt: z.ZodDate;
|
511
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
512
|
+
systemName: z.ZodString;
|
513
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
514
|
+
position: z.ZodNumber;
|
515
|
+
isDefault: z.ZodBoolean;
|
516
|
+
isArchived: z.ZodBoolean;
|
517
|
+
isRequired: z.ZodBoolean;
|
518
|
+
isUnique: z.ZodBoolean;
|
519
|
+
options: z.ZodArray<z.ZodObject<{
|
520
|
+
label: z.ZodString;
|
521
|
+
value: z.ZodString;
|
522
|
+
isDefault: z.ZodBoolean;
|
523
|
+
position: z.ZodNumber;
|
524
|
+
}, "strip", z.ZodTypeAny, {
|
525
|
+
position: number;
|
526
|
+
value: string;
|
527
|
+
label: string;
|
528
|
+
isDefault: boolean;
|
529
|
+
}, {
|
530
|
+
position: number;
|
531
|
+
value: string;
|
532
|
+
label: string;
|
533
|
+
isDefault: boolean;
|
534
|
+
}>, "many">;
|
535
|
+
group: z.ZodObject<{
|
536
|
+
id: z.ZodString;
|
537
|
+
createdAt: z.ZodDate;
|
538
|
+
updatedAt: z.ZodDate;
|
539
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
540
|
+
systemName: z.ZodString;
|
541
|
+
displayName: z.ZodString;
|
542
|
+
}, "strip", z.ZodTypeAny, {
|
543
|
+
id: string;
|
544
|
+
createdAt: Date;
|
545
|
+
updatedAt: Date;
|
546
|
+
deletedAt: Date | null;
|
547
|
+
systemName: string;
|
548
|
+
displayName: string;
|
549
|
+
}, {
|
550
|
+
id: string;
|
551
|
+
createdAt: Date;
|
552
|
+
updatedAt: Date;
|
553
|
+
deletedAt: Date | null;
|
554
|
+
systemName: string;
|
555
|
+
displayName: string;
|
556
|
+
}>;
|
557
|
+
}, "strip", z.ZodTypeAny, {
|
558
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
559
|
+
id: string;
|
560
|
+
position: number;
|
561
|
+
options: {
|
562
|
+
position: number;
|
563
|
+
value: string;
|
564
|
+
label: string;
|
565
|
+
isDefault: boolean;
|
566
|
+
}[];
|
567
|
+
group: {
|
568
|
+
id: string;
|
569
|
+
createdAt: Date;
|
570
|
+
updatedAt: Date;
|
571
|
+
deletedAt: Date | null;
|
572
|
+
systemName: string;
|
573
|
+
displayName: string;
|
574
|
+
};
|
575
|
+
createdAt: Date;
|
576
|
+
updatedAt: Date;
|
577
|
+
deletedAt: Date | null;
|
578
|
+
isDefault: boolean;
|
579
|
+
systemName: string;
|
580
|
+
isArchived: boolean;
|
581
|
+
isRequired: boolean;
|
582
|
+
isUnique: boolean;
|
583
|
+
}, {
|
584
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
585
|
+
id: string;
|
586
|
+
position: number;
|
587
|
+
options: {
|
588
|
+
position: number;
|
589
|
+
value: string;
|
590
|
+
label: string;
|
591
|
+
isDefault: boolean;
|
592
|
+
}[];
|
593
|
+
group: {
|
594
|
+
id: string;
|
595
|
+
createdAt: Date;
|
596
|
+
updatedAt: Date;
|
597
|
+
deletedAt: Date | null;
|
598
|
+
systemName: string;
|
599
|
+
displayName: string;
|
600
|
+
};
|
601
|
+
createdAt: Date;
|
602
|
+
updatedAt: Date;
|
603
|
+
deletedAt: Date | null;
|
604
|
+
isDefault: boolean;
|
605
|
+
systemName: string;
|
606
|
+
isArchived: boolean;
|
607
|
+
isRequired: boolean;
|
608
|
+
isUnique: boolean;
|
609
|
+
}>;
|
214
610
|
}, "strip", z.ZodTypeAny, {
|
215
611
|
requestId: string;
|
612
|
+
attribute: {
|
613
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
614
|
+
id: string;
|
615
|
+
position: number;
|
616
|
+
options: {
|
617
|
+
position: number;
|
618
|
+
value: string;
|
619
|
+
label: string;
|
620
|
+
isDefault: boolean;
|
621
|
+
}[];
|
622
|
+
group: {
|
623
|
+
id: string;
|
624
|
+
createdAt: Date;
|
625
|
+
updatedAt: Date;
|
626
|
+
deletedAt: Date | null;
|
627
|
+
systemName: string;
|
628
|
+
displayName: string;
|
629
|
+
};
|
630
|
+
createdAt: Date;
|
631
|
+
updatedAt: Date;
|
632
|
+
deletedAt: Date | null;
|
633
|
+
isDefault: boolean;
|
634
|
+
systemName: string;
|
635
|
+
isArchived: boolean;
|
636
|
+
isRequired: boolean;
|
637
|
+
isUnique: boolean;
|
638
|
+
};
|
216
639
|
}, {
|
217
640
|
requestId: string;
|
641
|
+
attribute: {
|
642
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
643
|
+
id: string;
|
644
|
+
position: number;
|
645
|
+
options: {
|
646
|
+
position: number;
|
647
|
+
value: string;
|
648
|
+
label: string;
|
649
|
+
isDefault: boolean;
|
650
|
+
}[];
|
651
|
+
group: {
|
652
|
+
id: string;
|
653
|
+
createdAt: Date;
|
654
|
+
updatedAt: Date;
|
655
|
+
deletedAt: Date | null;
|
656
|
+
systemName: string;
|
657
|
+
displayName: string;
|
658
|
+
};
|
659
|
+
createdAt: Date;
|
660
|
+
updatedAt: Date;
|
661
|
+
deletedAt: Date | null;
|
662
|
+
isDefault: boolean;
|
663
|
+
systemName: string;
|
664
|
+
isArchived: boolean;
|
665
|
+
isRequired: boolean;
|
666
|
+
isUnique: boolean;
|
667
|
+
};
|
218
668
|
}>;
|
219
669
|
500: z.ZodObject<{
|
220
670
|
message: z.ZodString;
|
@@ -227,8 +677,8 @@ export declare const attributeContract: {
|
|
227
677
|
error?: any;
|
228
678
|
}>;
|
229
679
|
};
|
230
|
-
path: "attributes";
|
231
|
-
headers: z.ZodObject<{
|
680
|
+
path: "attributes/:id";
|
681
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
232
682
|
'x-tenant': z.ZodString;
|
233
683
|
authorization: z.ZodString;
|
234
684
|
}, "strip", z.ZodTypeAny, {
|
@@ -237,7 +687,7 @@ export declare const attributeContract: {
|
|
237
687
|
}, {
|
238
688
|
'x-tenant': string;
|
239
689
|
authorization: string;
|
240
|
-
}
|
690
|
+
}>>>;
|
241
691
|
};
|
242
692
|
changeVisibility: {
|
243
693
|
body: z.ZodObject<{
|
@@ -258,10 +708,13 @@ export declare const attributeContract: {
|
|
258
708
|
responses: {
|
259
709
|
200: z.ZodObject<{
|
260
710
|
requestId: z.ZodString;
|
711
|
+
message: z.ZodOptional<z.ZodString>;
|
261
712
|
}, "strip", z.ZodTypeAny, {
|
262
713
|
requestId: string;
|
714
|
+
message?: string | undefined;
|
263
715
|
}, {
|
264
716
|
requestId: string;
|
717
|
+
message?: string | undefined;
|
265
718
|
}>;
|
266
719
|
500: z.ZodObject<{
|
267
720
|
message: z.ZodString;
|
@@ -275,7 +728,7 @@ export declare const attributeContract: {
|
|
275
728
|
}>;
|
276
729
|
};
|
277
730
|
path: "attributes/visibility/:id";
|
278
|
-
headers: z.ZodObject<{
|
731
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
279
732
|
'x-tenant': z.ZodString;
|
280
733
|
authorization: z.ZodString;
|
281
734
|
}, "strip", z.ZodTypeAny, {
|
@@ -284,7 +737,7 @@ export declare const attributeContract: {
|
|
284
737
|
}, {
|
285
738
|
'x-tenant': string;
|
286
739
|
authorization: string;
|
287
|
-
}
|
740
|
+
}>>>;
|
288
741
|
};
|
289
742
|
changeRequired: {
|
290
743
|
body: z.ZodObject<{
|
@@ -305,10 +758,13 @@ export declare const attributeContract: {
|
|
305
758
|
responses: {
|
306
759
|
200: z.ZodObject<{
|
307
760
|
requestId: z.ZodString;
|
761
|
+
message: z.ZodOptional<z.ZodString>;
|
308
762
|
}, "strip", z.ZodTypeAny, {
|
309
763
|
requestId: string;
|
764
|
+
message?: string | undefined;
|
310
765
|
}, {
|
311
766
|
requestId: string;
|
767
|
+
message?: string | undefined;
|
312
768
|
}>;
|
313
769
|
500: z.ZodObject<{
|
314
770
|
message: z.ZodString;
|
@@ -322,7 +778,7 @@ export declare const attributeContract: {
|
|
322
778
|
}>;
|
323
779
|
};
|
324
780
|
path: "attributes/required/:id";
|
325
|
-
headers: z.ZodObject<{
|
781
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
326
782
|
'x-tenant': z.ZodString;
|
327
783
|
authorization: z.ZodString;
|
328
784
|
}, "strip", z.ZodTypeAny, {
|
@@ -331,7 +787,7 @@ export declare const attributeContract: {
|
|
331
787
|
}, {
|
332
788
|
'x-tenant': string;
|
333
789
|
authorization: string;
|
334
|
-
}
|
790
|
+
}>>>;
|
335
791
|
};
|
336
792
|
updatePosition: {
|
337
793
|
body: z.ZodObject<{
|
@@ -360,10 +816,13 @@ export declare const attributeContract: {
|
|
360
816
|
responses: {
|
361
817
|
200: z.ZodObject<{
|
362
818
|
requestId: z.ZodString;
|
819
|
+
message: z.ZodOptional<z.ZodString>;
|
363
820
|
}, "strip", z.ZodTypeAny, {
|
364
821
|
requestId: string;
|
822
|
+
message?: string | undefined;
|
365
823
|
}, {
|
366
824
|
requestId: string;
|
825
|
+
message?: string | undefined;
|
367
826
|
}>;
|
368
827
|
500: z.ZodObject<{
|
369
828
|
message: z.ZodString;
|
@@ -377,7 +836,7 @@ export declare const attributeContract: {
|
|
377
836
|
}>;
|
378
837
|
};
|
379
838
|
path: "attributes/position";
|
380
|
-
headers: z.ZodObject<{
|
839
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
381
840
|
'x-tenant': z.ZodString;
|
382
841
|
authorization: z.ZodString;
|
383
842
|
}, "strip", z.ZodTypeAny, {
|
@@ -386,7 +845,7 @@ export declare const attributeContract: {
|
|
386
845
|
}, {
|
387
846
|
'x-tenant': string;
|
388
847
|
authorization: string;
|
389
|
-
}
|
848
|
+
}>>>;
|
390
849
|
};
|
391
850
|
deleteAttribute: {
|
392
851
|
body: z.ZodOptional<z.ZodAny>;
|
@@ -401,9 +860,12 @@ export declare const attributeContract: {
|
|
401
860
|
responses: {
|
402
861
|
200: z.ZodObject<{
|
403
862
|
requestId: z.ZodString;
|
863
|
+
message: z.ZodString;
|
404
864
|
}, "strip", z.ZodTypeAny, {
|
865
|
+
message: string;
|
405
866
|
requestId: string;
|
406
867
|
}, {
|
868
|
+
message: string;
|
407
869
|
requestId: string;
|
408
870
|
}>;
|
409
871
|
500: z.ZodObject<{
|
@@ -418,7 +880,7 @@ export declare const attributeContract: {
|
|
418
880
|
}>;
|
419
881
|
};
|
420
882
|
path: "attributes/:id";
|
421
|
-
headers: z.ZodObject<{
|
883
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
422
884
|
'x-tenant': z.ZodString;
|
423
885
|
authorization: z.ZodString;
|
424
886
|
}, "strip", z.ZodTypeAny, {
|
@@ -427,7 +889,7 @@ export declare const attributeContract: {
|
|
427
889
|
}, {
|
428
890
|
'x-tenant': string;
|
429
891
|
authorization: string;
|
430
|
-
}
|
892
|
+
}>>>;
|
431
893
|
};
|
432
894
|
};
|
433
895
|
//# sourceMappingURL=index.d.ts.map
|