@voltade/envoy-sdk 1.1.2 → 1.2.1
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 +10 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -2
- package/dist/client.js.map +1 -1
- package/dist/http-client.d.ts +1 -1
- package/dist/http-client.d.ts.map +1 -1
- package/dist/http-client.js +2 -2
- package/dist/http-client.js.map +1 -1
- package/dist/resources/companies/index.d.ts +112 -0
- package/dist/resources/companies/index.d.ts.map +1 -0
- package/dist/resources/companies/index.js +120 -0
- package/dist/resources/companies/index.js.map +1 -0
- package/dist/resources/companies/types.d.ts +334 -0
- package/dist/resources/companies/types.d.ts.map +1 -0
- package/dist/resources/companies/types.js +56 -0
- package/dist/resources/companies/types.js.map +1 -0
- package/dist/resources/company-members/index.d.ts +64 -0
- package/dist/resources/company-members/index.d.ts.map +1 -0
- package/dist/resources/company-members/index.js +69 -0
- package/dist/resources/company-members/index.js.map +1 -0
- package/dist/resources/company-members/types.d.ts +107 -0
- package/dist/resources/company-members/types.d.ts.map +1 -0
- package/dist/resources/company-members/types.js +19 -0
- package/dist/resources/company-members/types.js.map +1 -0
- package/dist/resources/conversations/types.d.ts +48 -48
- package/dist/resources/inboxes/types.d.ts +6 -6
- package/dist/resources/index.d.ts +2 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +2 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/orders/index.d.ts +5 -5
- package/dist/resources/orders/index.js +4 -4
- package/dist/resources/orders/types.d.ts +17 -17
- package/dist/resources/orders/types.js +2 -2
- package/dist/resources/webhooks/types.d.ts +228 -228
- package/package.json +1 -1
|
@@ -38,44 +38,44 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
38
38
|
email: z.ZodOptional<z.ZodString>;
|
|
39
39
|
type: z.ZodString;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
type: string;
|
|
42
41
|
id: number;
|
|
43
42
|
name: string;
|
|
43
|
+
type: string;
|
|
44
44
|
email?: string | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
type: string;
|
|
47
46
|
id: number;
|
|
48
47
|
name: string;
|
|
48
|
+
type: string;
|
|
49
49
|
email?: string | undefined;
|
|
50
50
|
}>>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
id: number;
|
|
52
53
|
content: string;
|
|
53
54
|
message_type: "incoming" | "outgoing";
|
|
54
55
|
private: boolean;
|
|
55
56
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
56
57
|
content_attributes: Record<string, unknown>;
|
|
57
|
-
id: number;
|
|
58
58
|
created_at: number;
|
|
59
59
|
conversation_id: number;
|
|
60
60
|
sender?: {
|
|
61
|
-
type: string;
|
|
62
61
|
id: number;
|
|
63
62
|
name: string;
|
|
63
|
+
type: string;
|
|
64
64
|
email?: string | undefined;
|
|
65
65
|
} | undefined;
|
|
66
66
|
}, {
|
|
67
|
+
id: number;
|
|
67
68
|
content: string;
|
|
68
69
|
message_type: "incoming" | "outgoing";
|
|
69
70
|
private: boolean;
|
|
70
71
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
71
72
|
content_attributes: Record<string, unknown>;
|
|
72
|
-
id: number;
|
|
73
73
|
created_at: number;
|
|
74
74
|
conversation_id: number;
|
|
75
75
|
sender?: {
|
|
76
|
-
type: string;
|
|
77
76
|
id: number;
|
|
78
77
|
name: string;
|
|
78
|
+
type: string;
|
|
79
79
|
email?: string | undefined;
|
|
80
80
|
} | undefined;
|
|
81
81
|
}>;
|
|
@@ -100,17 +100,17 @@ export declare const AgentSchema: z.ZodObject<{
|
|
|
100
100
|
availability: z.ZodOptional<z.ZodString>;
|
|
101
101
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
type?: string | undefined;
|
|
104
103
|
id?: number | undefined;
|
|
105
104
|
name?: string | undefined;
|
|
105
|
+
type?: string | undefined;
|
|
106
106
|
available_name?: string | undefined;
|
|
107
107
|
avatar_url?: string | undefined;
|
|
108
108
|
availability?: string | undefined;
|
|
109
109
|
thumbnail?: string | undefined;
|
|
110
110
|
}, {
|
|
111
|
-
type?: string | undefined;
|
|
112
111
|
id?: number | undefined;
|
|
113
112
|
name?: string | undefined;
|
|
113
|
+
type?: string | undefined;
|
|
114
114
|
available_name?: string | undefined;
|
|
115
115
|
avatar_url?: string | undefined;
|
|
116
116
|
availability?: string | undefined;
|
|
@@ -138,17 +138,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
138
138
|
availability: z.ZodOptional<z.ZodString>;
|
|
139
139
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
type?: string | undefined;
|
|
142
141
|
id?: number | undefined;
|
|
143
142
|
name?: string | undefined;
|
|
143
|
+
type?: string | undefined;
|
|
144
144
|
available_name?: string | undefined;
|
|
145
145
|
avatar_url?: string | undefined;
|
|
146
146
|
availability?: string | undefined;
|
|
147
147
|
thumbnail?: string | undefined;
|
|
148
148
|
}, {
|
|
149
|
-
type?: string | undefined;
|
|
150
149
|
id?: number | undefined;
|
|
151
150
|
name?: string | undefined;
|
|
151
|
+
type?: string | undefined;
|
|
152
152
|
available_name?: string | undefined;
|
|
153
153
|
avatar_url?: string | undefined;
|
|
154
154
|
availability?: string | undefined;
|
|
@@ -159,9 +159,9 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
success: boolean;
|
|
161
161
|
agent?: {
|
|
162
|
-
type?: string | undefined;
|
|
163
162
|
id?: number | undefined;
|
|
164
163
|
name?: string | undefined;
|
|
164
|
+
type?: string | undefined;
|
|
165
165
|
available_name?: string | undefined;
|
|
166
166
|
avatar_url?: string | undefined;
|
|
167
167
|
availability?: string | undefined;
|
|
@@ -177,9 +177,9 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
177
177
|
}, {
|
|
178
178
|
success: boolean;
|
|
179
179
|
agent?: {
|
|
180
|
-
type?: string | undefined;
|
|
181
180
|
id?: number | undefined;
|
|
182
181
|
name?: string | undefined;
|
|
182
|
+
type?: string | undefined;
|
|
183
183
|
available_name?: string | undefined;
|
|
184
184
|
avatar_url?: string | undefined;
|
|
185
185
|
availability?: string | undefined;
|
|
@@ -211,8 +211,8 @@ export declare const ContactSchema: z.ZodObject<{
|
|
|
211
211
|
id: number;
|
|
212
212
|
name: string | null;
|
|
213
213
|
email: string | null;
|
|
214
|
-
thumbnail: string;
|
|
215
214
|
phone_number: string | null;
|
|
215
|
+
thumbnail: string;
|
|
216
216
|
identifier: string | null;
|
|
217
217
|
additional_attributes: Record<string, unknown>;
|
|
218
218
|
custom_attributes: Record<string, unknown>;
|
|
@@ -224,8 +224,8 @@ export declare const ContactSchema: z.ZodObject<{
|
|
|
224
224
|
id: number;
|
|
225
225
|
name: string | null;
|
|
226
226
|
email: string | null;
|
|
227
|
-
thumbnail: string;
|
|
228
227
|
phone_number: string | null;
|
|
228
|
+
thumbnail: string;
|
|
229
229
|
identifier: string | null;
|
|
230
230
|
additional_attributes: Record<string, unknown>;
|
|
231
231
|
custom_attributes: Record<string, unknown>;
|
|
@@ -293,8 +293,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
293
293
|
id: number;
|
|
294
294
|
name: string | null;
|
|
295
295
|
email: string | null;
|
|
296
|
-
thumbnail: string;
|
|
297
296
|
phone_number: string | null;
|
|
297
|
+
thumbnail: string;
|
|
298
298
|
identifier: string | null;
|
|
299
299
|
additional_attributes: Record<string, unknown>;
|
|
300
300
|
custom_attributes: Record<string, unknown>;
|
|
@@ -306,8 +306,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
306
306
|
id: number;
|
|
307
307
|
name: string | null;
|
|
308
308
|
email: string | null;
|
|
309
|
-
thumbnail: string;
|
|
310
309
|
phone_number: string | null;
|
|
310
|
+
thumbnail: string;
|
|
311
311
|
identifier: string | null;
|
|
312
312
|
additional_attributes: Record<string, unknown>;
|
|
313
313
|
custom_attributes: Record<string, unknown>;
|
|
@@ -336,8 +336,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
336
336
|
id: number;
|
|
337
337
|
name: string | null;
|
|
338
338
|
email: string | null;
|
|
339
|
-
thumbnail: string;
|
|
340
339
|
phone_number: string | null;
|
|
340
|
+
thumbnail: string;
|
|
341
341
|
identifier: string | null;
|
|
342
342
|
additional_attributes: Record<string, unknown>;
|
|
343
343
|
custom_attributes: Record<string, unknown>;
|
|
@@ -358,8 +358,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
358
358
|
id: number;
|
|
359
359
|
name: string | null;
|
|
360
360
|
email: string | null;
|
|
361
|
-
thumbnail: string;
|
|
362
361
|
phone_number: string | null;
|
|
362
|
+
thumbnail: string;
|
|
363
363
|
identifier: string | null;
|
|
364
364
|
additional_attributes: Record<string, unknown>;
|
|
365
365
|
custom_attributes: Record<string, unknown>;
|
|
@@ -426,44 +426,44 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
426
426
|
email: z.ZodOptional<z.ZodString>;
|
|
427
427
|
type: z.ZodString;
|
|
428
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
type: string;
|
|
430
429
|
id: number;
|
|
431
430
|
name: string;
|
|
431
|
+
type: string;
|
|
432
432
|
email?: string | undefined;
|
|
433
433
|
}, {
|
|
434
|
-
type: string;
|
|
435
434
|
id: number;
|
|
436
435
|
name: string;
|
|
436
|
+
type: string;
|
|
437
437
|
email?: string | undefined;
|
|
438
438
|
}>>;
|
|
439
439
|
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
id: number;
|
|
440
441
|
content: string;
|
|
441
442
|
message_type: "incoming" | "outgoing";
|
|
442
443
|
private: boolean;
|
|
443
444
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
444
445
|
content_attributes: Record<string, unknown>;
|
|
445
|
-
id: number;
|
|
446
446
|
created_at: number;
|
|
447
447
|
conversation_id: number;
|
|
448
448
|
sender?: {
|
|
449
|
-
type: string;
|
|
450
449
|
id: number;
|
|
451
450
|
name: string;
|
|
451
|
+
type: string;
|
|
452
452
|
email?: string | undefined;
|
|
453
453
|
} | undefined;
|
|
454
454
|
}, {
|
|
455
|
+
id: number;
|
|
455
456
|
content: string;
|
|
456
457
|
message_type: "incoming" | "outgoing";
|
|
457
458
|
private: boolean;
|
|
458
459
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
459
460
|
content_attributes: Record<string, unknown>;
|
|
460
|
-
id: number;
|
|
461
461
|
created_at: number;
|
|
462
462
|
conversation_id: number;
|
|
463
463
|
sender?: {
|
|
464
|
-
type: string;
|
|
465
464
|
id: number;
|
|
466
465
|
name: string;
|
|
466
|
+
type: string;
|
|
467
467
|
email?: string | undefined;
|
|
468
468
|
} | undefined;
|
|
469
469
|
}>, "many">>;
|
|
@@ -485,8 +485,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
485
485
|
id: number;
|
|
486
486
|
name: string | null;
|
|
487
487
|
email: string | null;
|
|
488
|
-
thumbnail: string;
|
|
489
488
|
phone_number: string | null;
|
|
489
|
+
thumbnail: string;
|
|
490
490
|
identifier: string | null;
|
|
491
491
|
additional_attributes: Record<string, unknown>;
|
|
492
492
|
custom_attributes: Record<string, unknown>;
|
|
@@ -498,8 +498,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
498
498
|
id: number;
|
|
499
499
|
name: string | null;
|
|
500
500
|
email: string | null;
|
|
501
|
-
thumbnail: string;
|
|
502
501
|
phone_number: string | null;
|
|
502
|
+
thumbnail: string;
|
|
503
503
|
identifier: string | null;
|
|
504
504
|
additional_attributes: Record<string, unknown>;
|
|
505
505
|
custom_attributes: Record<string, unknown>;
|
|
@@ -528,8 +528,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
528
528
|
id: number;
|
|
529
529
|
name: string | null;
|
|
530
530
|
email: string | null;
|
|
531
|
-
thumbnail: string;
|
|
532
531
|
phone_number: string | null;
|
|
532
|
+
thumbnail: string;
|
|
533
533
|
identifier: string | null;
|
|
534
534
|
additional_attributes: Record<string, unknown>;
|
|
535
535
|
custom_attributes: Record<string, unknown>;
|
|
@@ -550,8 +550,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
550
550
|
id: number;
|
|
551
551
|
name: string | null;
|
|
552
552
|
email: string | null;
|
|
553
|
-
thumbnail: string;
|
|
554
553
|
phone_number: string | null;
|
|
554
|
+
thumbnail: string;
|
|
555
555
|
identifier: string | null;
|
|
556
556
|
additional_attributes: Record<string, unknown>;
|
|
557
557
|
custom_attributes: Record<string, unknown>;
|
|
@@ -587,12 +587,12 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
587
587
|
created_at: z.ZodNumber;
|
|
588
588
|
updated_at: z.ZodNumber;
|
|
589
589
|
}, "strip", z.ZodTypeAny, {
|
|
590
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
591
590
|
id: number;
|
|
591
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
592
|
+
account_id: number;
|
|
592
593
|
created_at: number;
|
|
593
594
|
inbox_id: number;
|
|
594
595
|
updated_at: number;
|
|
595
|
-
account_id: number;
|
|
596
596
|
priority?: string | null | undefined;
|
|
597
597
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
598
598
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -609,18 +609,18 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
609
609
|
pubsub_token: string;
|
|
610
610
|
} | undefined;
|
|
611
611
|
messages?: {
|
|
612
|
+
id: number;
|
|
612
613
|
content: string;
|
|
613
614
|
message_type: "incoming" | "outgoing";
|
|
614
615
|
private: boolean;
|
|
615
616
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
616
617
|
content_attributes: Record<string, unknown>;
|
|
617
|
-
id: number;
|
|
618
618
|
created_at: number;
|
|
619
619
|
conversation_id: number;
|
|
620
620
|
sender?: {
|
|
621
|
-
type: string;
|
|
622
621
|
id: number;
|
|
623
622
|
name: string;
|
|
623
|
+
type: string;
|
|
624
624
|
email?: string | undefined;
|
|
625
625
|
} | undefined;
|
|
626
626
|
}[] | undefined;
|
|
@@ -629,8 +629,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
629
629
|
id: number;
|
|
630
630
|
name: string | null;
|
|
631
631
|
email: string | null;
|
|
632
|
-
thumbnail: string;
|
|
633
632
|
phone_number: string | null;
|
|
633
|
+
thumbnail: string;
|
|
634
634
|
identifier: string | null;
|
|
635
635
|
additional_attributes: Record<string, unknown>;
|
|
636
636
|
custom_attributes: Record<string, unknown>;
|
|
@@ -661,12 +661,12 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
661
661
|
last_activity_at?: number | undefined;
|
|
662
662
|
timestamp?: number | undefined;
|
|
663
663
|
}, {
|
|
664
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
665
664
|
id: number;
|
|
665
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
666
|
+
account_id: number;
|
|
666
667
|
created_at: number;
|
|
667
668
|
inbox_id: number;
|
|
668
669
|
updated_at: number;
|
|
669
|
-
account_id: number;
|
|
670
670
|
priority?: string | null | undefined;
|
|
671
671
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
672
672
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -683,18 +683,18 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
683
683
|
pubsub_token: string;
|
|
684
684
|
} | undefined;
|
|
685
685
|
messages?: {
|
|
686
|
+
id: number;
|
|
686
687
|
content: string;
|
|
687
688
|
message_type: "incoming" | "outgoing";
|
|
688
689
|
private: boolean;
|
|
689
690
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
690
691
|
content_attributes: Record<string, unknown>;
|
|
691
|
-
id: number;
|
|
692
692
|
created_at: number;
|
|
693
693
|
conversation_id: number;
|
|
694
694
|
sender?: {
|
|
695
|
-
type: string;
|
|
696
695
|
id: number;
|
|
697
696
|
name: string;
|
|
697
|
+
type: string;
|
|
698
698
|
email?: string | undefined;
|
|
699
699
|
} | undefined;
|
|
700
700
|
}[] | undefined;
|
|
@@ -703,8 +703,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
703
703
|
id: number;
|
|
704
704
|
name: string | null;
|
|
705
705
|
email: string | null;
|
|
706
|
-
thumbnail: string;
|
|
707
706
|
phone_number: string | null;
|
|
707
|
+
thumbnail: string;
|
|
708
708
|
identifier: string | null;
|
|
709
709
|
additional_attributes: Record<string, unknown>;
|
|
710
710
|
custom_attributes: Record<string, unknown>;
|
|
@@ -835,44 +835,44 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
835
835
|
email: z.ZodOptional<z.ZodString>;
|
|
836
836
|
type: z.ZodString;
|
|
837
837
|
}, "strip", z.ZodTypeAny, {
|
|
838
|
-
type: string;
|
|
839
838
|
id: number;
|
|
840
839
|
name: string;
|
|
840
|
+
type: string;
|
|
841
841
|
email?: string | undefined;
|
|
842
842
|
}, {
|
|
843
|
-
type: string;
|
|
844
843
|
id: number;
|
|
845
844
|
name: string;
|
|
845
|
+
type: string;
|
|
846
846
|
email?: string | undefined;
|
|
847
847
|
}>>;
|
|
848
848
|
}, "strip", z.ZodTypeAny, {
|
|
849
|
+
id: number;
|
|
849
850
|
content: string;
|
|
850
851
|
message_type: "incoming" | "outgoing";
|
|
851
852
|
private: boolean;
|
|
852
853
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
853
854
|
content_attributes: Record<string, unknown>;
|
|
854
|
-
id: number;
|
|
855
855
|
created_at: number;
|
|
856
856
|
conversation_id: number;
|
|
857
857
|
sender?: {
|
|
858
|
-
type: string;
|
|
859
858
|
id: number;
|
|
860
859
|
name: string;
|
|
860
|
+
type: string;
|
|
861
861
|
email?: string | undefined;
|
|
862
862
|
} | undefined;
|
|
863
863
|
}, {
|
|
864
|
+
id: number;
|
|
864
865
|
content: string;
|
|
865
866
|
message_type: "incoming" | "outgoing";
|
|
866
867
|
private: boolean;
|
|
867
868
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
868
869
|
content_attributes: Record<string, unknown>;
|
|
869
|
-
id: number;
|
|
870
870
|
created_at: number;
|
|
871
871
|
conversation_id: number;
|
|
872
872
|
sender?: {
|
|
873
|
-
type: string;
|
|
874
873
|
id: number;
|
|
875
874
|
name: string;
|
|
875
|
+
type: string;
|
|
876
876
|
email?: string | undefined;
|
|
877
877
|
} | undefined;
|
|
878
878
|
}>, "many">;
|
|
@@ -890,18 +890,18 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
890
890
|
contact?: unknown;
|
|
891
891
|
};
|
|
892
892
|
payload: {
|
|
893
|
+
id: number;
|
|
893
894
|
content: string;
|
|
894
895
|
message_type: "incoming" | "outgoing";
|
|
895
896
|
private: boolean;
|
|
896
897
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
897
898
|
content_attributes: Record<string, unknown>;
|
|
898
|
-
id: number;
|
|
899
899
|
created_at: number;
|
|
900
900
|
conversation_id: number;
|
|
901
901
|
sender?: {
|
|
902
|
-
type: string;
|
|
903
902
|
id: number;
|
|
904
903
|
name: string;
|
|
904
|
+
type: string;
|
|
905
905
|
email?: string | undefined;
|
|
906
906
|
} | undefined;
|
|
907
907
|
}[];
|
|
@@ -919,18 +919,18 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
919
919
|
contact?: unknown;
|
|
920
920
|
};
|
|
921
921
|
payload: {
|
|
922
|
+
id: number;
|
|
922
923
|
content: string;
|
|
923
924
|
message_type: "incoming" | "outgoing";
|
|
924
925
|
private: boolean;
|
|
925
926
|
content_type: "text" | "input_select" | "cards" | "form" | "article";
|
|
926
927
|
content_attributes: Record<string, unknown>;
|
|
927
|
-
id: number;
|
|
928
928
|
created_at: number;
|
|
929
929
|
conversation_id: number;
|
|
930
930
|
sender?: {
|
|
931
|
-
type: string;
|
|
932
931
|
id: number;
|
|
933
932
|
name: string;
|
|
933
|
+
type: string;
|
|
934
934
|
email?: string | undefined;
|
|
935
935
|
} | undefined;
|
|
936
936
|
}[];
|
|
@@ -10,15 +10,15 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
10
10
|
created_at: z.ZodNumber;
|
|
11
11
|
updated_at: z.ZodNumber;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
content: string;
|
|
14
13
|
id: number;
|
|
14
|
+
content: string;
|
|
15
15
|
created_at: number;
|
|
16
16
|
updated_at: number;
|
|
17
17
|
title: string;
|
|
18
18
|
slug: string;
|
|
19
19
|
}, {
|
|
20
|
-
content: string;
|
|
21
20
|
id: number;
|
|
21
|
+
content: string;
|
|
22
22
|
created_at: number;
|
|
23
23
|
updated_at: number;
|
|
24
24
|
title: string;
|
|
@@ -41,15 +41,15 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
41
41
|
created_at: z.ZodNumber;
|
|
42
42
|
updated_at: z.ZodNumber;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
content: string;
|
|
45
44
|
id: number;
|
|
45
|
+
content: string;
|
|
46
46
|
created_at: number;
|
|
47
47
|
updated_at: number;
|
|
48
48
|
title: string;
|
|
49
49
|
slug: string;
|
|
50
50
|
}, {
|
|
51
|
-
content: string;
|
|
52
51
|
id: number;
|
|
52
|
+
content: string;
|
|
53
53
|
created_at: number;
|
|
54
54
|
updated_at: number;
|
|
55
55
|
title: string;
|
|
@@ -59,8 +59,8 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
success: boolean;
|
|
61
61
|
payload?: {
|
|
62
|
-
content: string;
|
|
63
62
|
id: number;
|
|
63
|
+
content: string;
|
|
64
64
|
created_at: number;
|
|
65
65
|
updated_at: number;
|
|
66
66
|
title: string;
|
|
@@ -70,8 +70,8 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
70
70
|
}, {
|
|
71
71
|
success: boolean;
|
|
72
72
|
payload?: {
|
|
73
|
-
content: string;
|
|
74
73
|
id: number;
|
|
74
|
+
content: string;
|
|
75
75
|
created_at: number;
|
|
76
76
|
updated_at: number;
|
|
77
77
|
title: string;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Resources module
|
|
3
3
|
* Exports all resource classes and their types
|
|
4
4
|
*/
|
|
5
|
+
export * from "./companies/index.js";
|
|
6
|
+
export * from "./company-members/index.js";
|
|
5
7
|
export * from "./conversations/index.js";
|
|
6
8
|
export * from "./inboxes/index.js";
|
|
7
9
|
export * from "./orders/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
package/dist/resources/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Resources module
|
|
3
3
|
* Exports all resource classes and their types
|
|
4
4
|
*/
|
|
5
|
+
export * from "./companies/index.js";
|
|
6
|
+
export * from "./company-members/index.js";
|
|
5
7
|
export * from "./conversations/index.js";
|
|
6
8
|
export * from "./inboxes/index.js";
|
|
7
9
|
export * from "./orders/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Orders resource module
|
|
3
3
|
* Provides functionality for managing orders in Envoy
|
|
4
4
|
*/
|
|
5
|
-
import type { HttpClient } from
|
|
6
|
-
import type { ListOrdersParams, ListOrdersResponse, UpsertOrderParams, UpsertOrderResponse } from
|
|
5
|
+
import type { HttpClient } from "../../http-client.js";
|
|
6
|
+
import type { ListOrdersParams, ListOrdersResponse, UpsertOrderParams, UpsertOrderResponse } from "./types.js";
|
|
7
7
|
/**
|
|
8
8
|
* Base resource class that all resource classes extend from
|
|
9
9
|
*/
|
|
@@ -62,7 +62,7 @@ export declare class Orders extends BaseResource {
|
|
|
62
62
|
* // Create or update an order
|
|
63
63
|
* const result = await client.orders.upsert({
|
|
64
64
|
* name: 'ORD-12345',
|
|
65
|
-
*
|
|
65
|
+
* company_id: 101,
|
|
66
66
|
* total_amount: 150,
|
|
67
67
|
* currency_code: 'USD',
|
|
68
68
|
* financial_status: 'paid',
|
|
@@ -78,6 +78,6 @@ export declare class Orders extends BaseResource {
|
|
|
78
78
|
*/
|
|
79
79
|
upsert(params: UpsertOrderParams): Promise<UpsertOrderResponse>;
|
|
80
80
|
}
|
|
81
|
-
export type { ListOrdersParams, ListOrdersResponse, Order, OrdersMeta, UpsertOrderParams, UpsertOrderRequest, UpsertOrderResponse, UpsertOrderResponsePayload, } from
|
|
82
|
-
export { ListOrdersParamsSchema, ListOrdersResponseSchema, OrdersMetaSchema, OrderSchema, UpsertOrderParamsSchema, UpsertOrderRequestSchema, UpsertOrderResponsePayloadSchema, UpsertOrderResponseSchema, } from
|
|
81
|
+
export type { ListOrdersParams, ListOrdersResponse, Order, OrdersMeta, UpsertOrderParams, UpsertOrderRequest, UpsertOrderResponse, UpsertOrderResponsePayload, } from "./types.js";
|
|
82
|
+
export { ListOrdersParamsSchema, ListOrdersResponseSchema, OrdersMetaSchema, OrderSchema, UpsertOrderParamsSchema, UpsertOrderRequestSchema, UpsertOrderResponsePayloadSchema, UpsertOrderResponseSchema, } from "./types.js";
|
|
83
83
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -68,7 +68,7 @@ export class Orders extends BaseResource {
|
|
|
68
68
|
// Convert payload array to JSON string for query parameter
|
|
69
69
|
queryParams.payload = JSON.stringify(params.payload);
|
|
70
70
|
}
|
|
71
|
-
return await this.client.get(
|
|
71
|
+
return await this.client.get("/orders", {
|
|
72
72
|
params: queryParams,
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -85,7 +85,7 @@ export class Orders extends BaseResource {
|
|
|
85
85
|
* // Create or update an order
|
|
86
86
|
* const result = await client.orders.upsert({
|
|
87
87
|
* name: 'ORD-12345',
|
|
88
|
-
*
|
|
88
|
+
* company_id: 101,
|
|
89
89
|
* total_amount: 150,
|
|
90
90
|
* currency_code: 'USD',
|
|
91
91
|
* financial_status: 'paid',
|
|
@@ -100,11 +100,11 @@ export class Orders extends BaseResource {
|
|
|
100
100
|
* ```
|
|
101
101
|
*/
|
|
102
102
|
async upsert(params) {
|
|
103
|
-
return await this.client.post(
|
|
103
|
+
return await this.client.post("/orders/upsert", {
|
|
104
104
|
order: params,
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
// Re-export Zod schemas
|
|
109
|
-
export { ListOrdersParamsSchema, ListOrdersResponseSchema, OrdersMetaSchema, OrderSchema, UpsertOrderParamsSchema, UpsertOrderRequestSchema, UpsertOrderResponsePayloadSchema, UpsertOrderResponseSchema, } from
|
|
109
|
+
export { ListOrdersParamsSchema, ListOrdersResponseSchema, OrdersMetaSchema, OrderSchema, UpsertOrderParamsSchema, UpsertOrderRequestSchema, UpsertOrderResponsePayloadSchema, UpsertOrderResponseSchema, } from "./types.js";
|
|
110
110
|
//# sourceMappingURL=index.js.map
|