@voltade/envoy-sdk 1.4.4 → 1.5.0
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.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/resources/companies/index.d.ts +35 -14
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +35 -12
- package/dist/resources/companies/index.js.map +1 -1
- package/dist/resources/companies/types.d.ts +301 -82
- package/dist/resources/companies/types.d.ts.map +1 -1
- package/dist/resources/companies/types.js +36 -5
- package/dist/resources/companies/types.js.map +1 -1
- package/dist/resources/contacts/index.d.ts +211 -18
- package/dist/resources/contacts/index.d.ts.map +1 -1
- package/dist/resources/contacts/index.js +279 -14
- package/dist/resources/contacts/index.js.map +1 -1
- package/dist/resources/contacts/types.d.ts +643 -0
- package/dist/resources/contacts/types.d.ts.map +1 -1
- package/dist/resources/contacts/types.js +168 -1
- package/dist/resources/contacts/types.js.map +1 -1
- package/dist/resources/orders/index.d.ts +110 -17
- package/dist/resources/orders/index.d.ts.map +1 -1
- package/dist/resources/orders/index.js +136 -16
- package/dist/resources/orders/index.js.map +1 -1
- package/dist/resources/orders/types.d.ts +2732 -290
- package/dist/resources/orders/types.d.ts.map +1 -1
- package/dist/resources/orders/types.js +125 -19
- package/dist/resources/orders/types.js.map +1 -1
- package/dist/test/bulk-order-upsert.d.ts +6 -0
- package/dist/test/bulk-order-upsert.d.ts.map +1 -0
- package/dist/test/bulk-order-upsert.js +122 -0
- package/dist/test/bulk-order-upsert.js.map +1 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export declare const CompanySchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodNumber;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
7
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
7
8
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
8
9
|
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -10,15 +11,18 @@ export declare const CompanySchema: z.ZodObject<{
|
|
|
10
11
|
name: z.ZodOptional<z.ZodString>;
|
|
11
12
|
email: z.ZodOptional<z.ZodString>;
|
|
12
13
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
14
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
13
15
|
}, "strip", z.ZodTypeAny, {
|
|
14
16
|
id: number;
|
|
15
17
|
name?: string | undefined;
|
|
16
18
|
email?: string | undefined;
|
|
19
|
+
thumbnail?: string | undefined;
|
|
17
20
|
phone_number?: string | undefined;
|
|
18
21
|
}, {
|
|
19
22
|
id: number;
|
|
20
23
|
name?: string | undefined;
|
|
21
24
|
email?: string | undefined;
|
|
25
|
+
thumbnail?: string | undefined;
|
|
22
26
|
phone_number?: string | undefined;
|
|
23
27
|
}>, "many">>;
|
|
24
28
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -27,10 +31,12 @@ export declare const CompanySchema: z.ZodObject<{
|
|
|
27
31
|
account_id?: number | undefined;
|
|
28
32
|
created_at?: number | undefined;
|
|
29
33
|
updated_at?: number | undefined;
|
|
34
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
30
35
|
contacts?: {
|
|
31
36
|
id: number;
|
|
32
37
|
name?: string | undefined;
|
|
33
38
|
email?: string | undefined;
|
|
39
|
+
thumbnail?: string | undefined;
|
|
34
40
|
phone_number?: string | undefined;
|
|
35
41
|
}[] | undefined;
|
|
36
42
|
}, {
|
|
@@ -39,98 +45,185 @@ export declare const CompanySchema: z.ZodObject<{
|
|
|
39
45
|
account_id?: number | undefined;
|
|
40
46
|
created_at?: number | undefined;
|
|
41
47
|
updated_at?: number | undefined;
|
|
48
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
42
49
|
contacts?: {
|
|
43
50
|
id: number;
|
|
44
51
|
name?: string | undefined;
|
|
45
52
|
email?: string | undefined;
|
|
53
|
+
thumbnail?: string | undefined;
|
|
46
54
|
phone_number?: string | undefined;
|
|
47
55
|
}[] | undefined;
|
|
48
56
|
}>;
|
|
49
57
|
export declare const ListCompaniesParamsSchema: z.ZodObject<{
|
|
50
58
|
page: z.ZodOptional<z.ZodNumber>;
|
|
51
59
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
61
|
+
payload: z.ZodOptional<z.ZodString>;
|
|
52
62
|
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
sort?: string | undefined;
|
|
64
|
+
payload?: string | undefined;
|
|
53
65
|
page?: number | undefined;
|
|
54
66
|
per_page?: number | undefined;
|
|
55
67
|
}, {
|
|
68
|
+
sort?: string | undefined;
|
|
69
|
+
payload?: string | undefined;
|
|
56
70
|
page?: number | undefined;
|
|
57
71
|
per_page?: number | undefined;
|
|
58
72
|
}>;
|
|
59
|
-
export declare const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
73
|
+
export declare const ListCompaniesMetaSchema: z.ZodObject<{
|
|
74
|
+
count: z.ZodNumber;
|
|
75
|
+
current_page: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
count: number;
|
|
78
|
+
current_page: string | number;
|
|
79
|
+
}, {
|
|
80
|
+
count: number;
|
|
81
|
+
current_page: string | number;
|
|
82
|
+
}>;
|
|
83
|
+
export declare const ListCompaniesResponseSchema: z.ZodObject<{
|
|
84
|
+
meta: z.ZodObject<{
|
|
85
|
+
count: z.ZodNumber;
|
|
86
|
+
current_page: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
count: number;
|
|
89
|
+
current_page: string | number;
|
|
90
|
+
}, {
|
|
91
|
+
count: number;
|
|
92
|
+
current_page: string | number;
|
|
93
|
+
}>;
|
|
94
|
+
payload: z.ZodArray<z.ZodObject<{
|
|
66
95
|
id: z.ZodNumber;
|
|
67
|
-
name: z.
|
|
68
|
-
|
|
69
|
-
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
99
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
id: z.ZodNumber;
|
|
103
|
+
name: z.ZodOptional<z.ZodString>;
|
|
104
|
+
email: z.ZodOptional<z.ZodString>;
|
|
105
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
106
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
id: number;
|
|
109
|
+
name?: string | undefined;
|
|
110
|
+
email?: string | undefined;
|
|
111
|
+
thumbnail?: string | undefined;
|
|
112
|
+
phone_number?: string | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
id: number;
|
|
115
|
+
name?: string | undefined;
|
|
116
|
+
email?: string | undefined;
|
|
117
|
+
thumbnail?: string | undefined;
|
|
118
|
+
phone_number?: string | undefined;
|
|
119
|
+
}>, "many">>;
|
|
70
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
name: string;
|
|
71
122
|
id: number;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
123
|
+
account_id?: number | undefined;
|
|
124
|
+
created_at?: number | undefined;
|
|
125
|
+
updated_at?: number | undefined;
|
|
126
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
127
|
+
contacts?: {
|
|
128
|
+
id: number;
|
|
129
|
+
name?: string | undefined;
|
|
130
|
+
email?: string | undefined;
|
|
131
|
+
thumbnail?: string | undefined;
|
|
132
|
+
phone_number?: string | undefined;
|
|
133
|
+
}[] | undefined;
|
|
75
134
|
}, {
|
|
135
|
+
name: string;
|
|
76
136
|
id: number;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
137
|
+
account_id?: number | undefined;
|
|
138
|
+
created_at?: number | undefined;
|
|
139
|
+
updated_at?: number | undefined;
|
|
140
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
141
|
+
contacts?: {
|
|
142
|
+
id: number;
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
email?: string | undefined;
|
|
145
|
+
thumbnail?: string | undefined;
|
|
146
|
+
phone_number?: string | undefined;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
}>, "many">;
|
|
81
149
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
150
|
+
meta: {
|
|
151
|
+
count: number;
|
|
152
|
+
current_page: string | number;
|
|
153
|
+
};
|
|
154
|
+
payload: {
|
|
155
|
+
name: string;
|
|
88
156
|
id: number;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
157
|
+
account_id?: number | undefined;
|
|
158
|
+
created_at?: number | undefined;
|
|
159
|
+
updated_at?: number | undefined;
|
|
160
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
161
|
+
contacts?: {
|
|
162
|
+
id: number;
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
email?: string | undefined;
|
|
165
|
+
thumbnail?: string | undefined;
|
|
166
|
+
phone_number?: string | undefined;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
}[];
|
|
93
169
|
}, {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
170
|
+
meta: {
|
|
171
|
+
count: number;
|
|
172
|
+
current_page: string | number;
|
|
173
|
+
};
|
|
174
|
+
payload: {
|
|
175
|
+
name: string;
|
|
100
176
|
id: number;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
177
|
+
account_id?: number | undefined;
|
|
178
|
+
created_at?: number | undefined;
|
|
179
|
+
updated_at?: number | undefined;
|
|
180
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
181
|
+
contacts?: {
|
|
182
|
+
id: number;
|
|
183
|
+
name?: string | undefined;
|
|
184
|
+
email?: string | undefined;
|
|
185
|
+
thumbnail?: string | undefined;
|
|
186
|
+
phone_number?: string | undefined;
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
}[];
|
|
189
|
+
}>;
|
|
106
190
|
export declare const CreateCompanyParamsSchema: z.ZodObject<{
|
|
107
191
|
name: z.ZodString;
|
|
192
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
108
193
|
}, "strip", z.ZodTypeAny, {
|
|
109
194
|
name: string;
|
|
195
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
110
196
|
}, {
|
|
111
197
|
name: string;
|
|
198
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
112
199
|
}>;
|
|
113
200
|
export declare const CreateCompanyRequestSchema: z.ZodObject<{
|
|
114
201
|
company: z.ZodObject<{
|
|
115
202
|
name: z.ZodString;
|
|
203
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
116
204
|
}, "strip", z.ZodTypeAny, {
|
|
117
205
|
name: string;
|
|
206
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
118
207
|
}, {
|
|
119
208
|
name: string;
|
|
209
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
120
210
|
}>;
|
|
121
211
|
}, "strip", z.ZodTypeAny, {
|
|
122
212
|
company: {
|
|
123
213
|
name: string;
|
|
214
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
124
215
|
};
|
|
125
216
|
}, {
|
|
126
217
|
company: {
|
|
127
218
|
name: string;
|
|
219
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
128
220
|
};
|
|
129
221
|
}>;
|
|
130
222
|
export declare const CreateCompanyResponseSchema: z.ZodObject<{
|
|
131
223
|
id: z.ZodNumber;
|
|
132
224
|
name: z.ZodString;
|
|
133
225
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
134
227
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
135
228
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
136
229
|
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -138,15 +231,18 @@ export declare const CreateCompanyResponseSchema: z.ZodObject<{
|
|
|
138
231
|
name: z.ZodOptional<z.ZodString>;
|
|
139
232
|
email: z.ZodOptional<z.ZodString>;
|
|
140
233
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
234
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
141
235
|
}, "strip", z.ZodTypeAny, {
|
|
142
236
|
id: number;
|
|
143
237
|
name?: string | undefined;
|
|
144
238
|
email?: string | undefined;
|
|
239
|
+
thumbnail?: string | undefined;
|
|
145
240
|
phone_number?: string | undefined;
|
|
146
241
|
}, {
|
|
147
242
|
id: number;
|
|
148
243
|
name?: string | undefined;
|
|
149
244
|
email?: string | undefined;
|
|
245
|
+
thumbnail?: string | undefined;
|
|
150
246
|
phone_number?: string | undefined;
|
|
151
247
|
}>, "many">>;
|
|
152
248
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -155,10 +251,12 @@ export declare const CreateCompanyResponseSchema: z.ZodObject<{
|
|
|
155
251
|
account_id?: number | undefined;
|
|
156
252
|
created_at?: number | undefined;
|
|
157
253
|
updated_at?: number | undefined;
|
|
254
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
158
255
|
contacts?: {
|
|
159
256
|
id: number;
|
|
160
257
|
name?: string | undefined;
|
|
161
258
|
email?: string | undefined;
|
|
259
|
+
thumbnail?: string | undefined;
|
|
162
260
|
phone_number?: string | undefined;
|
|
163
261
|
}[] | undefined;
|
|
164
262
|
}, {
|
|
@@ -167,88 +265,141 @@ export declare const CreateCompanyResponseSchema: z.ZodObject<{
|
|
|
167
265
|
account_id?: number | undefined;
|
|
168
266
|
created_at?: number | undefined;
|
|
169
267
|
updated_at?: number | undefined;
|
|
268
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
170
269
|
contacts?: {
|
|
171
270
|
id: number;
|
|
172
271
|
name?: string | undefined;
|
|
173
272
|
email?: string | undefined;
|
|
273
|
+
thumbnail?: string | undefined;
|
|
174
274
|
phone_number?: string | undefined;
|
|
175
275
|
}[] | undefined;
|
|
176
276
|
}>;
|
|
177
277
|
export declare const GetCompanyResponseSchema: z.ZodObject<{
|
|
178
|
-
|
|
179
|
-
name: z.ZodString;
|
|
180
|
-
account_id: z.ZodOptional<z.ZodNumber>;
|
|
181
|
-
created_at: z.ZodOptional<z.ZodNumber>;
|
|
182
|
-
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
183
|
-
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
278
|
+
payload: z.ZodObject<{
|
|
184
279
|
id: z.ZodNumber;
|
|
185
|
-
name: z.
|
|
186
|
-
|
|
187
|
-
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
283
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
286
|
+
id: z.ZodNumber;
|
|
287
|
+
name: z.ZodOptional<z.ZodString>;
|
|
288
|
+
email: z.ZodOptional<z.ZodString>;
|
|
289
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
290
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
id: number;
|
|
293
|
+
name?: string | undefined;
|
|
294
|
+
email?: string | undefined;
|
|
295
|
+
thumbnail?: string | undefined;
|
|
296
|
+
phone_number?: string | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
id: number;
|
|
299
|
+
name?: string | undefined;
|
|
300
|
+
email?: string | undefined;
|
|
301
|
+
thumbnail?: string | undefined;
|
|
302
|
+
phone_number?: string | undefined;
|
|
303
|
+
}>, "many">>;
|
|
188
304
|
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
name: string;
|
|
189
306
|
id: number;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
307
|
+
account_id?: number | undefined;
|
|
308
|
+
created_at?: number | undefined;
|
|
309
|
+
updated_at?: number | undefined;
|
|
310
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
311
|
+
contacts?: {
|
|
312
|
+
id: number;
|
|
313
|
+
name?: string | undefined;
|
|
314
|
+
email?: string | undefined;
|
|
315
|
+
thumbnail?: string | undefined;
|
|
316
|
+
phone_number?: string | undefined;
|
|
317
|
+
}[] | undefined;
|
|
193
318
|
}, {
|
|
319
|
+
name: string;
|
|
194
320
|
id: number;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
321
|
+
account_id?: number | undefined;
|
|
322
|
+
created_at?: number | undefined;
|
|
323
|
+
updated_at?: number | undefined;
|
|
324
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
325
|
+
contacts?: {
|
|
326
|
+
id: number;
|
|
327
|
+
name?: string | undefined;
|
|
328
|
+
email?: string | undefined;
|
|
329
|
+
thumbnail?: string | undefined;
|
|
330
|
+
phone_number?: string | undefined;
|
|
331
|
+
}[] | undefined;
|
|
332
|
+
}>;
|
|
199
333
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
account_id?: number | undefined;
|
|
203
|
-
created_at?: number | undefined;
|
|
204
|
-
updated_at?: number | undefined;
|
|
205
|
-
contacts?: {
|
|
334
|
+
payload: {
|
|
335
|
+
name: string;
|
|
206
336
|
id: number;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
337
|
+
account_id?: number | undefined;
|
|
338
|
+
created_at?: number | undefined;
|
|
339
|
+
updated_at?: number | undefined;
|
|
340
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
341
|
+
contacts?: {
|
|
342
|
+
id: number;
|
|
343
|
+
name?: string | undefined;
|
|
344
|
+
email?: string | undefined;
|
|
345
|
+
thumbnail?: string | undefined;
|
|
346
|
+
phone_number?: string | undefined;
|
|
347
|
+
}[] | undefined;
|
|
348
|
+
};
|
|
211
349
|
}, {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
account_id?: number | undefined;
|
|
215
|
-
created_at?: number | undefined;
|
|
216
|
-
updated_at?: number | undefined;
|
|
217
|
-
contacts?: {
|
|
350
|
+
payload: {
|
|
351
|
+
name: string;
|
|
218
352
|
id: number;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
353
|
+
account_id?: number | undefined;
|
|
354
|
+
created_at?: number | undefined;
|
|
355
|
+
updated_at?: number | undefined;
|
|
356
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
357
|
+
contacts?: {
|
|
358
|
+
id: number;
|
|
359
|
+
name?: string | undefined;
|
|
360
|
+
email?: string | undefined;
|
|
361
|
+
thumbnail?: string | undefined;
|
|
362
|
+
phone_number?: string | undefined;
|
|
363
|
+
}[] | undefined;
|
|
364
|
+
};
|
|
223
365
|
}>;
|
|
224
366
|
export declare const UpdateCompanyParamsSchema: z.ZodObject<{
|
|
225
|
-
name: z.ZodString
|
|
367
|
+
name: z.ZodOptional<z.ZodString>;
|
|
368
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
226
369
|
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
name
|
|
370
|
+
name?: string | undefined;
|
|
371
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
228
372
|
}, {
|
|
229
|
-
name
|
|
373
|
+
name?: string | undefined;
|
|
374
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
230
375
|
}>;
|
|
231
376
|
export declare const UpdateCompanyRequestSchema: z.ZodObject<{
|
|
232
377
|
company: z.ZodObject<{
|
|
233
|
-
name: z.ZodString
|
|
378
|
+
name: z.ZodOptional<z.ZodString>;
|
|
379
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
234
380
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
name
|
|
381
|
+
name?: string | undefined;
|
|
382
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
236
383
|
}, {
|
|
237
|
-
name
|
|
384
|
+
name?: string | undefined;
|
|
385
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
238
386
|
}>;
|
|
239
387
|
}, "strip", z.ZodTypeAny, {
|
|
240
388
|
company: {
|
|
241
|
-
name
|
|
389
|
+
name?: string | undefined;
|
|
390
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
242
391
|
};
|
|
243
392
|
}, {
|
|
244
393
|
company: {
|
|
245
|
-
name
|
|
394
|
+
name?: string | undefined;
|
|
395
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
246
396
|
};
|
|
247
397
|
}>;
|
|
248
398
|
export declare const UpdateCompanyResponseSchema: z.ZodObject<{
|
|
249
399
|
id: z.ZodNumber;
|
|
250
400
|
name: z.ZodString;
|
|
251
401
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
252
403
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
253
404
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
254
405
|
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -256,15 +407,18 @@ export declare const UpdateCompanyResponseSchema: z.ZodObject<{
|
|
|
256
407
|
name: z.ZodOptional<z.ZodString>;
|
|
257
408
|
email: z.ZodOptional<z.ZodString>;
|
|
258
409
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
410
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
259
411
|
}, "strip", z.ZodTypeAny, {
|
|
260
412
|
id: number;
|
|
261
413
|
name?: string | undefined;
|
|
262
414
|
email?: string | undefined;
|
|
415
|
+
thumbnail?: string | undefined;
|
|
263
416
|
phone_number?: string | undefined;
|
|
264
417
|
}, {
|
|
265
418
|
id: number;
|
|
266
419
|
name?: string | undefined;
|
|
267
420
|
email?: string | undefined;
|
|
421
|
+
thumbnail?: string | undefined;
|
|
268
422
|
phone_number?: string | undefined;
|
|
269
423
|
}>, "many">>;
|
|
270
424
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -273,10 +427,12 @@ export declare const UpdateCompanyResponseSchema: z.ZodObject<{
|
|
|
273
427
|
account_id?: number | undefined;
|
|
274
428
|
created_at?: number | undefined;
|
|
275
429
|
updated_at?: number | undefined;
|
|
430
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
276
431
|
contacts?: {
|
|
277
432
|
id: number;
|
|
278
433
|
name?: string | undefined;
|
|
279
434
|
email?: string | undefined;
|
|
435
|
+
thumbnail?: string | undefined;
|
|
280
436
|
phone_number?: string | undefined;
|
|
281
437
|
}[] | undefined;
|
|
282
438
|
}, {
|
|
@@ -285,10 +441,12 @@ export declare const UpdateCompanyResponseSchema: z.ZodObject<{
|
|
|
285
441
|
account_id?: number | undefined;
|
|
286
442
|
created_at?: number | undefined;
|
|
287
443
|
updated_at?: number | undefined;
|
|
444
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
288
445
|
contacts?: {
|
|
289
446
|
id: number;
|
|
290
447
|
name?: string | undefined;
|
|
291
448
|
email?: string | undefined;
|
|
449
|
+
thumbnail?: string | undefined;
|
|
292
450
|
phone_number?: string | undefined;
|
|
293
451
|
}[] | undefined;
|
|
294
452
|
}>;
|
|
@@ -330,6 +488,7 @@ export declare const SearchCompaniesResponseSchema: z.ZodObject<{
|
|
|
330
488
|
id: z.ZodNumber;
|
|
331
489
|
name: z.ZodString;
|
|
332
490
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
333
492
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
334
493
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
335
494
|
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -337,15 +496,18 @@ export declare const SearchCompaniesResponseSchema: z.ZodObject<{
|
|
|
337
496
|
name: z.ZodOptional<z.ZodString>;
|
|
338
497
|
email: z.ZodOptional<z.ZodString>;
|
|
339
498
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
499
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
340
500
|
}, "strip", z.ZodTypeAny, {
|
|
341
501
|
id: number;
|
|
342
502
|
name?: string | undefined;
|
|
343
503
|
email?: string | undefined;
|
|
504
|
+
thumbnail?: string | undefined;
|
|
344
505
|
phone_number?: string | undefined;
|
|
345
506
|
}, {
|
|
346
507
|
id: number;
|
|
347
508
|
name?: string | undefined;
|
|
348
509
|
email?: string | undefined;
|
|
510
|
+
thumbnail?: string | undefined;
|
|
349
511
|
phone_number?: string | undefined;
|
|
350
512
|
}>, "many">>;
|
|
351
513
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -354,10 +516,12 @@ export declare const SearchCompaniesResponseSchema: z.ZodObject<{
|
|
|
354
516
|
account_id?: number | undefined;
|
|
355
517
|
created_at?: number | undefined;
|
|
356
518
|
updated_at?: number | undefined;
|
|
519
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
357
520
|
contacts?: {
|
|
358
521
|
id: number;
|
|
359
522
|
name?: string | undefined;
|
|
360
523
|
email?: string | undefined;
|
|
524
|
+
thumbnail?: string | undefined;
|
|
361
525
|
phone_number?: string | undefined;
|
|
362
526
|
}[] | undefined;
|
|
363
527
|
}, {
|
|
@@ -366,10 +530,12 @@ export declare const SearchCompaniesResponseSchema: z.ZodObject<{
|
|
|
366
530
|
account_id?: number | undefined;
|
|
367
531
|
created_at?: number | undefined;
|
|
368
532
|
updated_at?: number | undefined;
|
|
533
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
369
534
|
contacts?: {
|
|
370
535
|
id: number;
|
|
371
536
|
name?: string | undefined;
|
|
372
537
|
email?: string | undefined;
|
|
538
|
+
thumbnail?: string | undefined;
|
|
373
539
|
phone_number?: string | undefined;
|
|
374
540
|
}[] | undefined;
|
|
375
541
|
}>, "many">;
|
|
@@ -384,10 +550,12 @@ export declare const SearchCompaniesResponseSchema: z.ZodObject<{
|
|
|
384
550
|
account_id?: number | undefined;
|
|
385
551
|
created_at?: number | undefined;
|
|
386
552
|
updated_at?: number | undefined;
|
|
553
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
387
554
|
contacts?: {
|
|
388
555
|
id: number;
|
|
389
556
|
name?: string | undefined;
|
|
390
557
|
email?: string | undefined;
|
|
558
|
+
thumbnail?: string | undefined;
|
|
391
559
|
phone_number?: string | undefined;
|
|
392
560
|
}[] | undefined;
|
|
393
561
|
}[];
|
|
@@ -402,19 +570,67 @@ export declare const SearchCompaniesResponseSchema: z.ZodObject<{
|
|
|
402
570
|
account_id?: number | undefined;
|
|
403
571
|
created_at?: number | undefined;
|
|
404
572
|
updated_at?: number | undefined;
|
|
573
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
405
574
|
contacts?: {
|
|
406
575
|
id: number;
|
|
407
576
|
name?: string | undefined;
|
|
408
577
|
email?: string | undefined;
|
|
578
|
+
thumbnail?: string | undefined;
|
|
409
579
|
phone_number?: string | undefined;
|
|
410
580
|
}[] | undefined;
|
|
411
581
|
}[];
|
|
412
582
|
}>;
|
|
583
|
+
export declare const CompanyOrdersParamsSchema: z.ZodObject<{
|
|
584
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
585
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
586
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
page?: number | undefined;
|
|
588
|
+
per_page?: number | undefined;
|
|
589
|
+
}, {
|
|
590
|
+
page?: number | undefined;
|
|
591
|
+
per_page?: number | undefined;
|
|
592
|
+
}>;
|
|
593
|
+
export declare const CompanyOrdersMetaSchema: z.ZodObject<{
|
|
594
|
+
count: z.ZodNumber;
|
|
595
|
+
current_page: z.ZodNumber;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
|
+
count: number;
|
|
598
|
+
current_page: number;
|
|
599
|
+
}, {
|
|
600
|
+
count: number;
|
|
601
|
+
current_page: number;
|
|
602
|
+
}>;
|
|
603
|
+
export declare const CompanyOrdersResponseSchema: z.ZodObject<{
|
|
604
|
+
meta: z.ZodObject<{
|
|
605
|
+
count: z.ZodNumber;
|
|
606
|
+
current_page: z.ZodNumber;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
count: number;
|
|
609
|
+
current_page: number;
|
|
610
|
+
}, {
|
|
611
|
+
count: number;
|
|
612
|
+
current_page: number;
|
|
613
|
+
}>;
|
|
614
|
+
payload: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
meta: {
|
|
617
|
+
count: number;
|
|
618
|
+
current_page: number;
|
|
619
|
+
};
|
|
620
|
+
payload: Record<string, unknown>[];
|
|
621
|
+
}, {
|
|
622
|
+
meta: {
|
|
623
|
+
count: number;
|
|
624
|
+
current_page: number;
|
|
625
|
+
};
|
|
626
|
+
payload: Record<string, unknown>[];
|
|
627
|
+
}>;
|
|
413
628
|
/**
|
|
414
629
|
* TypeScript Types (inferred from Zod schemas)
|
|
415
630
|
*/
|
|
416
631
|
export type Company = z.infer<typeof CompanySchema>;
|
|
417
632
|
export type ListCompaniesParams = z.infer<typeof ListCompaniesParamsSchema>;
|
|
633
|
+
export type ListCompaniesMeta = z.infer<typeof ListCompaniesMetaSchema>;
|
|
418
634
|
export type ListCompaniesResponse = z.infer<typeof ListCompaniesResponseSchema>;
|
|
419
635
|
export type CreateCompanyParams = z.infer<typeof CreateCompanyParamsSchema>;
|
|
420
636
|
export type CreateCompanyRequest = z.infer<typeof CreateCompanyRequestSchema>;
|
|
@@ -425,4 +641,7 @@ export type UpdateCompanyRequest = z.infer<typeof UpdateCompanyRequestSchema>;
|
|
|
425
641
|
export type UpdateCompanyResponse = z.infer<typeof UpdateCompanyResponseSchema>;
|
|
426
642
|
export type SearchCompaniesParams = z.infer<typeof SearchCompaniesParamsSchema>;
|
|
427
643
|
export type SearchCompaniesResponse = z.infer<typeof SearchCompaniesResponseSchema>;
|
|
644
|
+
export type CompanyOrdersParams = z.infer<typeof CompanyOrdersParamsSchema>;
|
|
645
|
+
export type CompanyOrdersMeta = z.infer<typeof CompanyOrdersMetaSchema>;
|
|
646
|
+
export type CompanyOrdersResponse = z.infer<typeof CompanyOrdersResponseSchema>;
|
|
428
647
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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