@voltade/envoy-sdk 1.1.2 → 1.2.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.
Files changed (32) hide show
  1. package/dist/http-client.d.ts +1 -1
  2. package/dist/http-client.d.ts.map +1 -1
  3. package/dist/http-client.js +2 -2
  4. package/dist/http-client.js.map +1 -1
  5. package/dist/resources/companies/index.d.ts +112 -0
  6. package/dist/resources/companies/index.d.ts.map +1 -0
  7. package/dist/resources/companies/index.js +120 -0
  8. package/dist/resources/companies/index.js.map +1 -0
  9. package/dist/resources/companies/types.d.ts +334 -0
  10. package/dist/resources/companies/types.d.ts.map +1 -0
  11. package/dist/resources/companies/types.js +56 -0
  12. package/dist/resources/companies/types.js.map +1 -0
  13. package/dist/resources/company-members/index.d.ts +64 -0
  14. package/dist/resources/company-members/index.d.ts.map +1 -0
  15. package/dist/resources/company-members/index.js +69 -0
  16. package/dist/resources/company-members/index.js.map +1 -0
  17. package/dist/resources/company-members/types.d.ts +107 -0
  18. package/dist/resources/company-members/types.d.ts.map +1 -0
  19. package/dist/resources/company-members/types.js +19 -0
  20. package/dist/resources/company-members/types.js.map +1 -0
  21. package/dist/resources/conversations/types.d.ts +48 -48
  22. package/dist/resources/inboxes/types.d.ts +6 -6
  23. package/dist/resources/index.d.ts +2 -0
  24. package/dist/resources/index.d.ts.map +1 -1
  25. package/dist/resources/index.js +2 -0
  26. package/dist/resources/index.js.map +1 -1
  27. package/dist/resources/orders/index.d.ts +5 -5
  28. package/dist/resources/orders/index.js +4 -4
  29. package/dist/resources/orders/types.d.ts +17 -17
  30. package/dist/resources/orders/types.js +2 -2
  31. package/dist/resources/webhooks/types.d.ts +228 -228
  32. package/package.json +1 -1
@@ -53,7 +53,7 @@ export declare const OrderMetadataSchema: z.ZodObject<{
53
53
  }>;
54
54
  export declare const UpsertOrderParamsSchema: z.ZodObject<{
55
55
  name: z.ZodOptional<z.ZodString>;
56
- contact_id: z.ZodOptional<z.ZodNumber>;
56
+ company_id: z.ZodOptional<z.ZodNumber>;
57
57
  total_amount: z.ZodOptional<z.ZodNumber>;
58
58
  currency_code: z.ZodOptional<z.ZodString>;
59
59
  financial_status: z.ZodOptional<z.ZodString>;
@@ -98,7 +98,7 @@ export declare const UpsertOrderParamsSchema: z.ZodObject<{
98
98
  source_id: string;
99
99
  source: string;
100
100
  name?: string | undefined;
101
- contact_id?: number | undefined;
101
+ company_id?: number | undefined;
102
102
  total_amount?: number | undefined;
103
103
  currency_code?: string | undefined;
104
104
  financial_status?: string | undefined;
@@ -117,7 +117,7 @@ export declare const UpsertOrderParamsSchema: z.ZodObject<{
117
117
  source_id: string;
118
118
  source: string;
119
119
  name?: string | undefined;
120
- contact_id?: number | undefined;
120
+ company_id?: number | undefined;
121
121
  total_amount?: number | undefined;
122
122
  currency_code?: string | undefined;
123
123
  financial_status?: string | undefined;
@@ -136,7 +136,7 @@ export declare const UpsertOrderParamsSchema: z.ZodObject<{
136
136
  export declare const UpsertOrderRequestSchema: z.ZodObject<{
137
137
  order: z.ZodObject<{
138
138
  name: z.ZodOptional<z.ZodString>;
139
- contact_id: z.ZodOptional<z.ZodNumber>;
139
+ company_id: z.ZodOptional<z.ZodNumber>;
140
140
  total_amount: z.ZodOptional<z.ZodNumber>;
141
141
  currency_code: z.ZodOptional<z.ZodString>;
142
142
  financial_status: z.ZodOptional<z.ZodString>;
@@ -181,7 +181,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
181
181
  source_id: string;
182
182
  source: string;
183
183
  name?: string | undefined;
184
- contact_id?: number | undefined;
184
+ company_id?: number | undefined;
185
185
  total_amount?: number | undefined;
186
186
  currency_code?: string | undefined;
187
187
  financial_status?: string | undefined;
@@ -200,7 +200,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
200
200
  source_id: string;
201
201
  source: string;
202
202
  name?: string | undefined;
203
- contact_id?: number | undefined;
203
+ company_id?: number | undefined;
204
204
  total_amount?: number | undefined;
205
205
  currency_code?: string | undefined;
206
206
  financial_status?: string | undefined;
@@ -221,7 +221,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
221
221
  source_id: string;
222
222
  source: string;
223
223
  name?: string | undefined;
224
- contact_id?: number | undefined;
224
+ company_id?: number | undefined;
225
225
  total_amount?: number | undefined;
226
226
  currency_code?: string | undefined;
227
227
  financial_status?: string | undefined;
@@ -242,7 +242,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
242
242
  source_id: string;
243
243
  source: string;
244
244
  name?: string | undefined;
245
- contact_id?: number | undefined;
245
+ company_id?: number | undefined;
246
246
  total_amount?: number | undefined;
247
247
  currency_code?: string | undefined;
248
248
  financial_status?: string | undefined;
@@ -262,7 +262,7 @@ export declare const UpsertOrderRequestSchema: z.ZodObject<{
262
262
  export declare const UpsertOrderResponsePayloadSchema: z.ZodObject<{
263
263
  id: z.ZodNumber;
264
264
  name: z.ZodOptional<z.ZodString>;
265
- contact_id: z.ZodOptional<z.ZodNumber>;
265
+ company_id: z.ZodOptional<z.ZodNumber>;
266
266
  contact_name: z.ZodOptional<z.ZodString>;
267
267
  total_amount: z.ZodOptional<z.ZodNumber>;
268
268
  currency_code: z.ZodOptional<z.ZodString>;
@@ -313,7 +313,7 @@ export declare const UpsertOrderResponsePayloadSchema: z.ZodObject<{
313
313
  updated_at: string;
314
314
  source: string;
315
315
  name?: string | undefined;
316
- contact_id?: number | undefined;
316
+ company_id?: number | undefined;
317
317
  total_amount?: number | undefined;
318
318
  currency_code?: string | undefined;
319
319
  financial_status?: string | undefined;
@@ -336,7 +336,7 @@ export declare const UpsertOrderResponsePayloadSchema: z.ZodObject<{
336
336
  updated_at: string;
337
337
  source: string;
338
338
  name?: string | undefined;
339
- contact_id?: number | undefined;
339
+ company_id?: number | undefined;
340
340
  total_amount?: number | undefined;
341
341
  currency_code?: string | undefined;
342
342
  financial_status?: string | undefined;
@@ -357,7 +357,7 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
357
357
  payload: z.ZodObject<{
358
358
  id: z.ZodNumber;
359
359
  name: z.ZodOptional<z.ZodString>;
360
- contact_id: z.ZodOptional<z.ZodNumber>;
360
+ company_id: z.ZodOptional<z.ZodNumber>;
361
361
  contact_name: z.ZodOptional<z.ZodString>;
362
362
  total_amount: z.ZodOptional<z.ZodNumber>;
363
363
  currency_code: z.ZodOptional<z.ZodString>;
@@ -408,7 +408,7 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
408
408
  updated_at: string;
409
409
  source: string;
410
410
  name?: string | undefined;
411
- contact_id?: number | undefined;
411
+ company_id?: number | undefined;
412
412
  total_amount?: number | undefined;
413
413
  currency_code?: string | undefined;
414
414
  financial_status?: string | undefined;
@@ -431,7 +431,7 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
431
431
  updated_at: string;
432
432
  source: string;
433
433
  name?: string | undefined;
434
- contact_id?: number | undefined;
434
+ company_id?: number | undefined;
435
435
  total_amount?: number | undefined;
436
436
  currency_code?: string | undefined;
437
437
  financial_status?: string | undefined;
@@ -456,7 +456,7 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
456
456
  updated_at: string;
457
457
  source: string;
458
458
  name?: string | undefined;
459
- contact_id?: number | undefined;
459
+ company_id?: number | undefined;
460
460
  total_amount?: number | undefined;
461
461
  currency_code?: string | undefined;
462
462
  financial_status?: string | undefined;
@@ -481,7 +481,7 @@ export declare const UpsertOrderResponseSchema: z.ZodObject<{
481
481
  updated_at: string;
482
482
  source: string;
483
483
  name?: string | undefined;
484
- contact_id?: number | undefined;
484
+ company_id?: number | undefined;
485
485
  total_amount?: number | undefined;
486
486
  currency_code?: string | undefined;
487
487
  financial_status?: string | undefined;
@@ -515,9 +515,9 @@ export declare const ListOrdersParamsSchema: z.ZodObject<{
515
515
  until?: string | undefined;
516
516
  }, {
517
517
  sort?: string | undefined;
518
- payload?: Record<string, unknown>[] | undefined;
519
518
  page?: number | undefined;
520
519
  per_page?: number | undefined;
520
+ payload?: Record<string, unknown>[] | undefined;
521
521
  since?: string | undefined;
522
522
  until?: string | undefined;
523
523
  }>;
@@ -16,7 +16,7 @@ export const OrderMetadataSchema = z.object({
16
16
  // Upsert order parameters schema
17
17
  export const UpsertOrderParamsSchema = z.object({
18
18
  name: z.string().optional(),
19
- contact_id: z.number().optional(),
19
+ company_id: z.number().optional(),
20
20
  total_amount: z.number().optional(),
21
21
  currency_code: z.string().optional(),
22
22
  financial_status: z.string().optional(),
@@ -35,7 +35,7 @@ export const UpsertOrderRequestSchema = z.object({
35
35
  export const UpsertOrderResponsePayloadSchema = z.object({
36
36
  id: z.number(),
37
37
  name: z.string().optional(),
38
- contact_id: z.number().optional(),
38
+ company_id: z.number().optional(),
39
39
  contact_name: z.string().optional(),
40
40
  total_amount: z.number().optional(),
41
41
  currency_code: z.string().optional(),