@voltade/envoy-sdk 1.2.9 → 1.2.11
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/client.d.ts +1 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -2
- package/dist/client.js.map +1 -1
- package/dist/resources/companies/index.d.ts +6 -0
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +5 -0
- package/dist/resources/companies/index.js.map +1 -1
- package/dist/resources/companies/types.d.ts +14 -14
- package/dist/resources/company-members/index.d.ts +3 -3
- package/dist/resources/company-members/index.d.ts.map +1 -1
- package/dist/resources/company-members/index.js +6 -6
- package/dist/resources/company-members/index.js.map +1 -1
- package/dist/resources/company-members/types.d.ts +4 -4
- package/dist/resources/conversations/types.d.ts +105 -105
- package/dist/resources/inboxes/types.d.ts +6 -6
- package/dist/resources/orders/types.d.ts +15 -7
- package/dist/resources/orders/types.d.ts.map +1 -1
- package/dist/resources/orders/types.js +1 -0
- package/dist/resources/orders/types.js.map +1 -1
- package/dist/resources/webhooks/types.d.ts +766 -766
- package/package.json +1 -1
|
@@ -94,10 +94,12 @@ export declare const UpsertOrderParamsSchema: z.ZodObject<{
|
|
|
94
94
|
line_total?: number | undefined;
|
|
95
95
|
}[] | undefined;
|
|
96
96
|
}>>;
|
|
97
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
97
98
|
}, "strip", z.ZodTypeAny, {
|
|
98
99
|
source_id: string;
|
|
99
100
|
source: string;
|
|
100
101
|
name?: string | undefined;
|
|
102
|
+
created_at?: string | undefined;
|
|
101
103
|
company_id?: number | undefined;
|
|
102
104
|
total_amount?: number | undefined;
|
|
103
105
|
currency_code?: string | undefined;
|
|
@@ -117,6 +119,7 @@ export declare const UpsertOrderParamsSchema: z.ZodObject<{
|
|
|
117
119
|
source_id: string;
|
|
118
120
|
source: string;
|
|
119
121
|
name?: string | undefined;
|
|
122
|
+
created_at?: string | undefined;
|
|
120
123
|
company_id?: number | undefined;
|
|
121
124
|
total_amount?: number | undefined;
|
|
122
125
|
currency_code?: string | undefined;
|
|
@@ -177,10 +180,12 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
|
|
|
177
180
|
line_total?: number | undefined;
|
|
178
181
|
}[] | undefined;
|
|
179
182
|
}>>;
|
|
183
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
180
184
|
}, "strip", z.ZodTypeAny, {
|
|
181
185
|
source_id: string;
|
|
182
186
|
source: string;
|
|
183
187
|
name?: string | undefined;
|
|
188
|
+
created_at?: string | undefined;
|
|
184
189
|
company_id?: number | undefined;
|
|
185
190
|
total_amount?: number | undefined;
|
|
186
191
|
currency_code?: string | undefined;
|
|
@@ -200,6 +205,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
|
|
|
200
205
|
source_id: string;
|
|
201
206
|
source: string;
|
|
202
207
|
name?: string | undefined;
|
|
208
|
+
created_at?: string | undefined;
|
|
203
209
|
company_id?: number | undefined;
|
|
204
210
|
total_amount?: number | undefined;
|
|
205
211
|
currency_code?: string | undefined;
|
|
@@ -221,6 +227,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
|
|
|
221
227
|
source_id: string;
|
|
222
228
|
source: string;
|
|
223
229
|
name?: string | undefined;
|
|
230
|
+
created_at?: string | undefined;
|
|
224
231
|
company_id?: number | undefined;
|
|
225
232
|
total_amount?: number | undefined;
|
|
226
233
|
currency_code?: string | undefined;
|
|
@@ -242,6 +249,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
|
|
|
242
249
|
source_id: string;
|
|
243
250
|
source: string;
|
|
244
251
|
name?: string | undefined;
|
|
252
|
+
created_at?: string | undefined;
|
|
245
253
|
company_id?: number | undefined;
|
|
246
254
|
total_amount?: number | undefined;
|
|
247
255
|
currency_code?: string | undefined;
|
|
@@ -309,8 +317,8 @@ export declare const UpsertOrderResponsePayloadSchema: z.ZodObject<{
|
|
|
309
317
|
}, "strip", z.ZodTypeAny, {
|
|
310
318
|
id: number;
|
|
311
319
|
created_at: string;
|
|
312
|
-
updated_at: string;
|
|
313
320
|
source_id: string;
|
|
321
|
+
updated_at: string;
|
|
314
322
|
source: string;
|
|
315
323
|
name?: string | undefined;
|
|
316
324
|
company_id?: number | undefined;
|
|
@@ -332,8 +340,8 @@ export declare const UpsertOrderResponsePayloadSchema: z.ZodObject<{
|
|
|
332
340
|
}, {
|
|
333
341
|
id: number;
|
|
334
342
|
created_at: string;
|
|
335
|
-
updated_at: string;
|
|
336
343
|
source_id: string;
|
|
344
|
+
updated_at: string;
|
|
337
345
|
source: string;
|
|
338
346
|
name?: string | undefined;
|
|
339
347
|
company_id?: number | undefined;
|
|
@@ -404,8 +412,8 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
|
|
|
404
412
|
}, "strip", z.ZodTypeAny, {
|
|
405
413
|
id: number;
|
|
406
414
|
created_at: string;
|
|
407
|
-
updated_at: string;
|
|
408
415
|
source_id: string;
|
|
416
|
+
updated_at: string;
|
|
409
417
|
source: string;
|
|
410
418
|
name?: string | undefined;
|
|
411
419
|
company_id?: number | undefined;
|
|
@@ -427,8 +435,8 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
|
|
|
427
435
|
}, {
|
|
428
436
|
id: number;
|
|
429
437
|
created_at: string;
|
|
430
|
-
updated_at: string;
|
|
431
438
|
source_id: string;
|
|
439
|
+
updated_at: string;
|
|
432
440
|
source: string;
|
|
433
441
|
name?: string | undefined;
|
|
434
442
|
company_id?: number | undefined;
|
|
@@ -452,8 +460,8 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
|
|
|
452
460
|
payload: {
|
|
453
461
|
id: number;
|
|
454
462
|
created_at: string;
|
|
455
|
-
updated_at: string;
|
|
456
463
|
source_id: string;
|
|
464
|
+
updated_at: string;
|
|
457
465
|
source: string;
|
|
458
466
|
name?: string | undefined;
|
|
459
467
|
company_id?: number | undefined;
|
|
@@ -477,8 +485,8 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
|
|
|
477
485
|
payload: {
|
|
478
486
|
id: number;
|
|
479
487
|
created_at: string;
|
|
480
|
-
updated_at: string;
|
|
481
488
|
source_id: string;
|
|
489
|
+
updated_at: string;
|
|
482
490
|
source: string;
|
|
483
491
|
name?: string | undefined;
|
|
484
492
|
company_id?: number | undefined;
|
|
@@ -515,9 +523,9 @@ export declare const ListOrdersParamsSchema: z.ZodObject<{
|
|
|
515
523
|
until?: string | undefined;
|
|
516
524
|
}, {
|
|
517
525
|
sort?: string | undefined;
|
|
526
|
+
payload?: Record<string, unknown>[] | undefined;
|
|
518
527
|
page?: number | undefined;
|
|
519
528
|
per_page?: number | undefined;
|
|
520
|
-
payload?: Record<string, unknown>[] | undefined;
|
|
521
529
|
since?: string | undefined;
|
|
522
530
|
until?: string | undefined;
|
|
523
531
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAGH,eAAO,MAAM,WAAW,wCAAwB,CAAC;AAEjD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAGH,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAGH,eAAO,MAAM,WAAW,wCAAwB,CAAC;AAEjD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;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AAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -26,6 +26,7 @@ export const UpsertOrderParamsSchema = z.object({
|
|
|
26
26
|
order_url: z.string().optional(),
|
|
27
27
|
notes: z.string().optional(),
|
|
28
28
|
metadata: OrderMetadataSchema.optional(),
|
|
29
|
+
created_at: z.string().datetime().optional(),
|
|
29
30
|
});
|
|
30
31
|
// Upsert order request schema (wraps order in an object)
|
|
31
32
|
export const UpsertOrderRequestSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,mDAAmD;AACnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAA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