@prismatic-io/components-gorgias 0.0.0-stage → 0.0.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.
@@ -0,0 +1,3057 @@
1
+ //#region node_modules/axios/index.d.ts
2
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
3
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
4
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
5
+ //#endregion
6
+ //#region src/types.d.ts
7
+ interface CreateApiPaginationResponse<T> {
8
+ data: T[];
9
+ object: string;
10
+ uri: string;
11
+ meta: {
12
+ prev_cursor: string | null;
13
+ next_cursor: string | null;
14
+ };
15
+ }
16
+ interface GorgiasRecord {
17
+ id: number;
18
+ created_datetime: string | null;
19
+ updated_datetime: string | null;
20
+ [key: string]: unknown;
21
+ }
22
+ //#endregion
23
+ //#region src/interfaces/tickets.d.ts
24
+ interface CreateTicketResponse {
25
+ id: number;
26
+ assignee_user: {
27
+ id: number;
28
+ email: string;
29
+ name: string;
30
+ firstname: string;
31
+ lastname: string;
32
+ meta: {
33
+ sso: string | null;
34
+ profile_picture_url: string | null;
35
+ };
36
+ };
37
+ channel: string;
38
+ closed_datetime: string | null;
39
+ created_datetime: string | null;
40
+ customer: {
41
+ id: number;
42
+ channels: {
43
+ id: number;
44
+ }[];
45
+ email: string | null;
46
+ external_id: string | null;
47
+ firstname: string;
48
+ integrations: Record<string, unknown>;
49
+ lastname: string;
50
+ name: string | null;
51
+ note: string | null;
52
+ };
53
+ external_id: string | null;
54
+ from_agent: boolean;
55
+ is_unread: boolean;
56
+ language: string | null;
57
+ last_message_datetime: string | null;
58
+ last_received_message_datetime: string | null;
59
+ messages: {
60
+ id: number;
61
+ attachments: {
62
+ url: string;
63
+ name: string;
64
+ size: number | null;
65
+ content_type: string;
66
+ public: boolean;
67
+ extra: string;
68
+ }[];
69
+ body_html: string | null;
70
+ body_text: string | null;
71
+ channel: string;
72
+ created_datetime: string | null;
73
+ external_id: string | null;
74
+ failed_datetime: string | null;
75
+ from_agent: boolean;
76
+ integration_id: number;
77
+ last_sending_error: null;
78
+ message_id: string | null;
79
+ receiver: {
80
+ id: number;
81
+ email: string | null;
82
+ name: string | null;
83
+ firstname: string;
84
+ lastname: string;
85
+ meta: null;
86
+ };
87
+ rule_id: number;
88
+ sender: {
89
+ id: number;
90
+ email: string | null;
91
+ name: string | null;
92
+ firstname: string;
93
+ lastname: string;
94
+ meta: null;
95
+ };
96
+ sent_datetime: string | null;
97
+ source: {
98
+ type: string;
99
+ to: {
100
+ name: string;
101
+ address: string;
102
+ }[];
103
+ cc: {
104
+ name: string;
105
+ address: string;
106
+ }[];
107
+ bcc: {
108
+ name: string;
109
+ address: string;
110
+ }[];
111
+ from: {
112
+ name: string;
113
+ address: string;
114
+ };
115
+ };
116
+ stripped_html: string | null;
117
+ stripped_text: string | null;
118
+ subject: string | null;
119
+ ticket_id: number;
120
+ via: string;
121
+ uri: string;
122
+ }[];
123
+ meta: Record<string, unknown>;
124
+ opened_datetime: string | null;
125
+ reply_options: string;
126
+ satisfaction_survey: {
127
+ id: number;
128
+ body_text: string | null;
129
+ created_datetime: string | null;
130
+ customer_id: number;
131
+ meta: Record<string, unknown>;
132
+ score: number | null;
133
+ scored_datetime: string | null;
134
+ sent_datetime: string | null;
135
+ should_send_datetime: string | null;
136
+ ticket_id: number;
137
+ };
138
+ snoozed_datetime: string | null;
139
+ spam: boolean | null;
140
+ status: string;
141
+ subject: string | null;
142
+ tags: {
143
+ id: number;
144
+ name: string;
145
+ uri: string;
146
+ decoration: {
147
+ color: string;
148
+ };
149
+ }[];
150
+ trashed_datetime: string | null;
151
+ updated_datetime: string | null;
152
+ via: string;
153
+ uri: string;
154
+ }
155
+ interface GetTicketResponse {
156
+ id: number;
157
+ url: string;
158
+ external_id: string | null;
159
+ events: [{
160
+ idcreated_datetime: string;
161
+ data: Record<string, unknown>;
162
+ type: string;
163
+ user: {
164
+ id: number;
165
+ firstname: string;
166
+ lastname: string;
167
+ name: string;
168
+ email: string;
169
+ };
170
+ uri: string;
171
+ }];
172
+ status: string;
173
+ channel: string;
174
+ via: string;
175
+ from_agent: boolean;
176
+ is_unread: boolean;
177
+ spam: boolean | null;
178
+ customer: {
179
+ id: number;
180
+ channels: {
181
+ id: number;
182
+ type: string;
183
+ address: string;
184
+ preferred: boolean;
185
+ created_datetime: string;
186
+ updated_datetime: string;
187
+ deleted_datetime: string | null;
188
+ user: {
189
+ id: number;
190
+ name: string | null;
191
+ };
192
+ customer: {
193
+ id: number;
194
+ name: string | null;
195
+ };
196
+ }[];
197
+ email: string | null;
198
+ external_id: string | null;
199
+ firstname: string;
200
+ integrations: Record<string, unknown>;
201
+ external_data: Record<string, unknown>[];
202
+ ecommerce_data: Record<string, unknown>;
203
+ lastname: string;
204
+ meta: null;
205
+ name: string | null;
206
+ note: string | null;
207
+ };
208
+ assignee_user: {
209
+ id: number;
210
+ email: string;
211
+ name: string;
212
+ firstname: string;
213
+ lastname: string;
214
+ meta: {
215
+ sso: string | null;
216
+ profile_picture_url: string | null;
217
+ };
218
+ };
219
+ language: string | null;
220
+ subject: string | null;
221
+ meta: Record<string, unknown>;
222
+ tags: {
223
+ id: number;
224
+ name: string;
225
+ uri: string;
226
+ decoration: {
227
+ color: string;
228
+ };
229
+ }[];
230
+ custom_fields: null;
231
+ messages: {
232
+ id: number;
233
+ attachments: {
234
+ url: string;
235
+ name: string;
236
+ size: number | null;
237
+ content_type: string;
238
+ public: boolean;
239
+ extra: string;
240
+ }[];
241
+ body_html: string | null;
242
+ body_text: string | null;
243
+ channel: string;
244
+ created_datetime: string | null;
245
+ external_id: string | null;
246
+ failed_datetime: string | null;
247
+ from_agent: boolean;
248
+ integration_id: number;
249
+ last_sending_error: null;
250
+ message_id: string | null;
251
+ receiver: {
252
+ id: number;
253
+ email: string | null;
254
+ name: string | null;
255
+ firstname: string;
256
+ lastname: string;
257
+ meta: null;
258
+ };
259
+ rule_id: number;
260
+ sender: {
261
+ id: number;
262
+ email: string | null;
263
+ name: string | null;
264
+ firstname: string;
265
+ lastname: string;
266
+ meta: null;
267
+ };
268
+ sent_datetime: string | null;
269
+ source: {
270
+ type: string;
271
+ to: {
272
+ name: string;
273
+ address: string;
274
+ }[];
275
+ cc: {
276
+ name: string;
277
+ address: string;
278
+ }[];
279
+ bcc: {
280
+ name: string;
281
+ address: string;
282
+ }[];
283
+ from: {
284
+ name: string;
285
+ address: string;
286
+ };
287
+ };
288
+ stripped_html: string | null;
289
+ stripped_text: string | null;
290
+ subject: string | null;
291
+ ticket_id: number;
292
+ via: string;
293
+ uri: string;
294
+ }[];
295
+ created_datetime: string | null;
296
+ opened_datetime: string | null;
297
+ last_received_message_datetime: string | null;
298
+ last_message_datetime: string | null;
299
+ updated_datetime: string | null;
300
+ closed_datetime: string | null;
301
+ trashed_datetime: string | null;
302
+ snooze_datetime: string | null;
303
+ satisfaction_survey: {
304
+ id: number;
305
+ body_text: string | null;
306
+ created_datetime: string;
307
+ customer_id: number;
308
+ meta: Record<string, unknown> | null;
309
+ score: number | null;
310
+ scored_datetime: string | null;
311
+ sent_datetime: string | null;
312
+ should_send_datetime: string | null;
313
+ ticket_id: number;
314
+ };
315
+ reply_options: string;
316
+ }
317
+ type ListTicketCustomFieldsResponse = {
318
+ field: {
319
+ id: number;
320
+ external_id: string | null;
321
+ object_type: string;
322
+ label: string;
323
+ description: string | null;
324
+ priority: number;
325
+ required: boolean;
326
+ managed_by: string;
327
+ definition: {
328
+ input_settings: "INPUT_NUMBER" | "INPUT" | "DROPDOWN";
329
+ data_type: string;
330
+ };
331
+ created_datetime: string;
332
+ updated_datetime: string;
333
+ deactivated_datetime: string | null;
334
+ };
335
+ value: string;
336
+ prediction: {
337
+ predicted: string;
338
+ confidence: number;
339
+ display: boolean;
340
+ confirmed: boolean;
341
+ modified: boolean;
342
+ };
343
+ }[];
344
+ type ListTicketsResponse = CreateApiPaginationResponse<{
345
+ id: number;
346
+ assignee_user: {
347
+ id: number;
348
+ email: string;
349
+ name: string;
350
+ firstname: string;
351
+ lastname: string;
352
+ meta: {
353
+ sso: string | null;
354
+ profile_picture_url: string | null;
355
+ };
356
+ };
357
+ channel: string;
358
+ closed_datetime: string | null;
359
+ created_datetime: string | null;
360
+ customer: {
361
+ id: number;
362
+ email: string | null;
363
+ name: string | null;
364
+ firstname: string;
365
+ lastname: string;
366
+ };
367
+ excerpt: string;
368
+ external_id: string | null;
369
+ from_agent: boolean;
370
+ integrations: Record<string, unknown>;
371
+ is_unread: boolean;
372
+ language: string | null;
373
+ last_message_datetime: string | null;
374
+ last_received_message_datetime: string | null;
375
+ messages_count: number;
376
+ meta: Record<string, unknown>;
377
+ opened_datetime: string | null;
378
+ snoozed_datetime: string | null;
379
+ status: string;
380
+ subject: string | null;
381
+ tags: {
382
+ id: number;
383
+ name: string;
384
+ uri: string;
385
+ decoration: {
386
+ color: string;
387
+ };
388
+ }[];
389
+ spam: boolean | null;
390
+ trashed_datetime: string | null;
391
+ updated_datetime: string | null;
392
+ via: string;
393
+ uri: string;
394
+ }>;
395
+ interface UpdateTicketResponse {
396
+ id: number;
397
+ assignee_user: {
398
+ id: number;
399
+ email: string;
400
+ name: string;
401
+ firstname: string;
402
+ lastname: string;
403
+ meta: {
404
+ sso: string | null;
405
+ profile_picture_url: string | null;
406
+ };
407
+ };
408
+ channel: string;
409
+ closed_datetime: string | null;
410
+ created_datetime: string | null;
411
+ customer: {
412
+ id: number;
413
+ channels: {
414
+ id: number;
415
+ }[];
416
+ email: string | null;
417
+ external_id: string | null;
418
+ firstname: string;
419
+ integrations: Record<string, unknown>;
420
+ lastname: string;
421
+ name: string | null;
422
+ note: string | null;
423
+ };
424
+ external_id: string | null;
425
+ from_agent: boolean;
426
+ is_unread: boolean;
427
+ language: string | null;
428
+ last_message_datetime: string | null;
429
+ last_received_message_datetime: string | null;
430
+ messages: {
431
+ id: number;
432
+ attachments: {
433
+ url: string;
434
+ name: string;
435
+ size: number | null;
436
+ content_type: string;
437
+ public: boolean;
438
+ extra: string;
439
+ }[];
440
+ body_html: string | null;
441
+ body_text: string | null;
442
+ channel: string;
443
+ created_datetime: string | null;
444
+ external_id: string | null;
445
+ failed_datetime: string | null;
446
+ from_agent: boolean;
447
+ integration_id: number;
448
+ last_sending_error: null;
449
+ message_id: string | null;
450
+ receiver?: {
451
+ id: number;
452
+ email: string | null;
453
+ name: string | null;
454
+ firstname: string;
455
+ lastname: string;
456
+ meta: null;
457
+ };
458
+ rule_id: number;
459
+ sender: {
460
+ id: number;
461
+ email: string | null;
462
+ name: string | null;
463
+ firstname: string;
464
+ lastname: string;
465
+ meta: null;
466
+ };
467
+ sent_datetime: string | null;
468
+ source: {
469
+ type: string;
470
+ to: {
471
+ name: string;
472
+ address: string;
473
+ }[];
474
+ cc: {
475
+ name: string;
476
+ address: string;
477
+ }[];
478
+ bcc: {
479
+ name: string;
480
+ address: string;
481
+ }[];
482
+ from: {
483
+ name: string;
484
+ address: string;
485
+ };
486
+ };
487
+ stripped_html: string | null;
488
+ stripped_text: string | null;
489
+ subject: string | null;
490
+ ticket_id: number;
491
+ via: string;
492
+ uri: string;
493
+ }[];
494
+ meta: Record<string, unknown>;
495
+ opened_datetime: string | null;
496
+ reply_options: string;
497
+ satisfaction_survey: {
498
+ id: number;
499
+ body_text: string | null;
500
+ created_datetime: string | null;
501
+ customer_id: number;
502
+ meta: Record<string, unknown>;
503
+ score: number | null;
504
+ scored_datetime: string | null;
505
+ sent_datetime: string | null;
506
+ should_send_datetime: string | null;
507
+ ticket_id: number;
508
+ };
509
+ snoozed_datetime: string | null;
510
+ spam: boolean | null;
511
+ status: string;
512
+ subject: string | null;
513
+ tags: {
514
+ id: number;
515
+ name: string;
516
+ uri: string;
517
+ decoration: {
518
+ color: string;
519
+ };
520
+ }[];
521
+ trashed_datetime: string | null;
522
+ updated_datetime: string | null;
523
+ via: string;
524
+ uri: string;
525
+ }
526
+ type UpdateTicketCustomFieldsResponse = {
527
+ field: {
528
+ id: number;
529
+ external_id: string | null;
530
+ object_type: string;
531
+ label: string;
532
+ description: string | null;
533
+ priority: number;
534
+ required: boolean;
535
+ managed_by: string;
536
+ definition: {
537
+ input_settings: "INPUT_NUMBER";
538
+ data_type: string;
539
+ } | {
540
+ input_settings: "INPUT" | "DROPDOWN";
541
+ data_type: string;
542
+ } | {
543
+ input_settings: "DROPDOWN";
544
+ data_type: string;
545
+ };
546
+ created_datetime: string;
547
+ updated_datetime: string;
548
+ deactivated_datetime: string | null;
549
+ };
550
+ value: string;
551
+ prediction: {
552
+ predicted: string;
553
+ confidence: number;
554
+ display: boolean;
555
+ confirmed: boolean;
556
+ modified: boolean;
557
+ };
558
+ }[];
559
+ //#endregion
560
+ //#region src/constants.d.ts
561
+ declare enum MESSAGES {
562
+ SUCCESS = "Success",
563
+ ERROR = "Error"
564
+ }
565
+ //#endregion
566
+ //#region src/interfaces/ticketMessages.d.ts
567
+ interface TicketMessage {
568
+ id: number;
569
+ attachments: {
570
+ url: string;
571
+ name: string;
572
+ size: number | null;
573
+ content_type: string;
574
+ public: boolean;
575
+ extra: string;
576
+ }[];
577
+ body_html: string | null;
578
+ body_text: string | null;
579
+ channel: string;
580
+ created_datetime: string | null;
581
+ external_id: string | null;
582
+ failed_datetime: string | null;
583
+ from_agent: boolean;
584
+ integration_id: number;
585
+ last_sending_error: null;
586
+ message_id: string | null;
587
+ receiver: {
588
+ id: number;
589
+ email: string | null;
590
+ name: string | null;
591
+ firstname: string;
592
+ lastname: string;
593
+ meta: null;
594
+ };
595
+ rule_id: number;
596
+ sender: {
597
+ id: number;
598
+ email: string | null;
599
+ name: string | null;
600
+ firstname: string;
601
+ lastname: string;
602
+ meta: null;
603
+ };
604
+ sent_datetime: string | null;
605
+ source: {
606
+ type: string;
607
+ to: {
608
+ name: string;
609
+ address: string;
610
+ }[];
611
+ cc: {
612
+ name: string;
613
+ address: string;
614
+ }[];
615
+ bcc: {
616
+ name: string;
617
+ address: string;
618
+ }[];
619
+ from: {
620
+ name: string;
621
+ address: string;
622
+ };
623
+ };
624
+ stripped_html: string | null;
625
+ stripped_text: string | null;
626
+ subject: string | null;
627
+ ticket_id: number;
628
+ via: string;
629
+ uri: string;
630
+ }
631
+ type ListMessagesResponse = CreateApiPaginationResponse<TicketMessage>;
632
+ //#endregion
633
+ //#region src/interfaces/search.d.ts
634
+ type SearchResponse = Record<string, unknown>;
635
+ //#endregion
636
+ //#region src/interfaces/files.d.ts
637
+ type UploadFilesResponse = {
638
+ content_type: string;
639
+ size: number;
640
+ name: string;
641
+ url: string;
642
+ }[];
643
+ //#endregion
644
+ //#region src/interfaces/events.d.ts
645
+ interface Event {
646
+ id: number;
647
+ context: string | null;
648
+ created_datetime: string | null;
649
+ data: Record<string, unknown>;
650
+ object_id: number;
651
+ object_type: string;
652
+ type: string;
653
+ user_id: number;
654
+ url: string;
655
+ }
656
+ type ListEventsResponse = CreateApiPaginationResponse<Event>;
657
+ //#endregion
658
+ //#region src/interfaces/customers.d.ts
659
+ interface Address {
660
+ id?: number;
661
+ zip?: string;
662
+ city: string;
663
+ name?: string;
664
+ country: string;
665
+ address1?: string;
666
+ address2?: string;
667
+ province?: string;
668
+ last_name: string;
669
+ first_name: string;
670
+ line_1?: string;
671
+ line_2?: string;
672
+ zip_code?: string;
673
+ created_datetime?: string;
674
+ updated_datetime?: string;
675
+ deleted_datetime?: string;
676
+ external_id?: string;
677
+ state?: string;
678
+ preferred?: boolean;
679
+ phone_number?: string;
680
+ shopper_external_id?: string;
681
+ country_code?: string;
682
+ province_code?: string;
683
+ default?: boolean;
684
+ customer_id?: number;
685
+ country_name?: string;
686
+ }
687
+ interface Price {
688
+ amount: string;
689
+ currency_code: string;
690
+ }
691
+ interface PriceSet {
692
+ shop_money: Price;
693
+ presentment_money: Price;
694
+ }
695
+ interface TaxLine {
696
+ rate: number;
697
+ price: string;
698
+ title: string;
699
+ price_set: PriceSet;
700
+ }
701
+ interface LineItem {
702
+ id: number;
703
+ unit_price?: string;
704
+ discount_type?: string;
705
+ discount_reason?: string;
706
+ total_amount?: string;
707
+ fulfilled_quantity?: number;
708
+ updated_datetime?: string;
709
+ discount_amount?: string;
710
+ sku?: string;
711
+ name?: string;
712
+ grams?: number;
713
+ price?: string;
714
+ title: string;
715
+ taxable: boolean;
716
+ quantity: number;
717
+ price_set?: PriceSet;
718
+ tax_lines?: TaxLine[];
719
+ product_id?: number;
720
+ variant_id?: number;
721
+ total_discount?: string;
722
+ requires_shipping: boolean;
723
+ fulfillment_status?: string | null;
724
+ total_discount_set?: PriceSet;
725
+ fulfillment_service?: string;
726
+ fulfillable_quantity?: number;
727
+ product_options?: ProductOptions;
728
+ deleted_datetime?: string;
729
+ created_datetime?: string;
730
+ }
731
+ interface ProductOptions {
732
+ size: number;
733
+ }
734
+ interface Order {
735
+ id: number;
736
+ total_tax: string;
737
+ created_at: string;
738
+ line_items: LineItem[];
739
+ contact_email: string;
740
+ billing_address: Address;
741
+ }
742
+ interface BaseCustomer {
743
+ id: number;
744
+ note: string;
745
+ name?: string;
746
+ tags?: string;
747
+ email: string;
748
+ firstname: string;
749
+ lastname: string;
750
+ orders_count?: number;
751
+ default_address?: Address;
752
+ created_datetime?: string;
753
+ external_id?: string;
754
+ }
755
+ interface Integration {
756
+ orders: Order[];
757
+ customer: BaseCustomer;
758
+ __integration_type__: string;
759
+ }
760
+ interface Store {
761
+ id: number;
762
+ type: string;
763
+ helpdesk_integration_id: number;
764
+ default_currency: string;
765
+ url: string;
766
+ updated_datetime: string;
767
+ currencies: string[];
768
+ display_name: string;
769
+ created_datetime: string;
770
+ name: string;
771
+ deleted_datetime: string;
772
+ uuid: string;
773
+ }
774
+ interface Shopper {
775
+ id: number;
776
+ first_name: string;
777
+ helpdesk_customer_id: number;
778
+ updated_datetime: string;
779
+ phone_number: string;
780
+ middle_name: string;
781
+ deleted_datetime: string;
782
+ birthdate: string;
783
+ status: string;
784
+ external_id: string;
785
+ email_address: string;
786
+ accepts_marketing_sms: boolean;
787
+ accepts_marketing_email: boolean;
788
+ last_name: string;
789
+ created_datetime: string;
790
+ }
791
+ interface ExternalData {
792
+ badge: string;
793
+ points: number;
794
+ __app_name__: string;
795
+ }
796
+ interface EcommerceOrder {
797
+ external_status: string;
798
+ total_amount: string;
799
+ number: number;
800
+ billing_address: Address;
801
+ tax_amount: string;
802
+ discount_codes: string[];
803
+ line_items: LineItem[];
804
+ status: string;
805
+ external_fulfillment_status: string;
806
+ payment_status: string;
807
+ shopper_external_id: string;
808
+ external_payment_status: string;
809
+ name: string;
810
+ currency: string;
811
+ created_datetime: string;
812
+ id: number;
813
+ updated_datetime: string;
814
+ subtotal_amount: string;
815
+ deleted_datetime: string;
816
+ external_id: string;
817
+ shipping_address: Address;
818
+ discount_amount: string;
819
+ shipping_amount: string;
820
+ }
821
+ interface EcommerceData {
822
+ store: Store;
823
+ shopper: Shopper;
824
+ orders: EcommerceOrder[];
825
+ addresses: Address[];
826
+ }
827
+ interface CreateCustomerResponse extends BaseCustomer {
828
+ integrations: Record<string, Integration>;
829
+ language: string;
830
+ timezone: string;
831
+ updated_datetime: string;
832
+ }
833
+ interface GetCustomerResponse extends BaseCustomer {
834
+ channels: {
835
+ id: number;
836
+ }[];
837
+ integrations: Record<string, Integration>;
838
+ language: string;
839
+ timezone: string;
840
+ updated_datetime: string;
841
+ external_data: Record<string, ExternalData>;
842
+ ecommerce_data: Record<string, EcommerceData>;
843
+ }
844
+ interface UpdateCustomerResponse extends BaseCustomer {
845
+ integrations: Record<string, Integration>;
846
+ language: string;
847
+ timezone: string;
848
+ updated_datetime: string;
849
+ }
850
+ type ListCustomersResponse = CreateApiPaginationResponse<{
851
+ id: number;
852
+ created_datetime: string | null;
853
+ email: string | null;
854
+ external_id: string | null;
855
+ firstname: string;
856
+ language: string | null;
857
+ lastname: string;
858
+ name: string | null;
859
+ timezone: string | null;
860
+ updated_datetime: string | null;
861
+ }>;
862
+ //#endregion
863
+ //#region src/interfaces/account.d.ts
864
+ interface GetAccountResponse {
865
+ created_datetime: string;
866
+ deactivated_datetime: string | null;
867
+ domain: string;
868
+ settings: {
869
+ id: number;
870
+ type: string;
871
+ data: {
872
+ timezone: string;
873
+ business_hours: {
874
+ days: string;
875
+ from_time: string;
876
+ to_time: string;
877
+ };
878
+ };
879
+ }[];
880
+ status: {
881
+ status: string;
882
+ };
883
+ }
884
+ //#endregion
885
+ //#region npm-dist/.entry.d.ts
886
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
887
+ key: "gorgias";
888
+ public: true;
889
+ display: {
890
+ label: string;
891
+ description: string;
892
+ iconPath: string;
893
+ category: "Application Connectors";
894
+ };
895
+ documentationUrl: "https://prismatic.io/docs/components/gorgias/";
896
+ hooks: {
897
+ error: (error: unknown) => unknown;
898
+ };
899
+ actions: {
900
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
901
+ url: {
902
+ comments: string;
903
+ example: string;
904
+ placeholder: string;
905
+ label: string;
906
+ type: "string";
907
+ required: true;
908
+ clean: (value: unknown) => string;
909
+ };
910
+ method: {
911
+ label: string;
912
+ type: "string";
913
+ required: true;
914
+ model: {
915
+ label: Method;
916
+ value: Method;
917
+ }[];
918
+ comments: string;
919
+ clean: (value: unknown) => string;
920
+ };
921
+ data: {
922
+ label: string;
923
+ placeholder: string;
924
+ type: "string";
925
+ required: false;
926
+ comments: string;
927
+ example: string;
928
+ };
929
+ formData: {
930
+ label: string;
931
+ placeholder: string;
932
+ type: "string";
933
+ collection: "keyvaluelist";
934
+ required: false;
935
+ comments: string;
936
+ example: string;
937
+ };
938
+ fileData: {
939
+ label: string;
940
+ placeholder: string;
941
+ type: "string";
942
+ collection: "keyvaluelist";
943
+ required: false;
944
+ comments: string;
945
+ example: string;
946
+ };
947
+ fileDataFileNames: {
948
+ label: string;
949
+ placeholder: string;
950
+ type: "string";
951
+ collection: "keyvaluelist";
952
+ required: false;
953
+ comments: string;
954
+ clean: (values: any) => Record<string, string> | undefined;
955
+ };
956
+ queryParams: {
957
+ label: string;
958
+ placeholder: string;
959
+ type: "string";
960
+ collection: "keyvaluelist";
961
+ required: false;
962
+ comments: string;
963
+ };
964
+ headers: {
965
+ label: string;
966
+ placeholder: string;
967
+ type: "string";
968
+ collection: "keyvaluelist";
969
+ required: false;
970
+ comments: string;
971
+ example: string;
972
+ };
973
+ responseType: {
974
+ label: string;
975
+ placeholder: string;
976
+ type: "string";
977
+ default: string;
978
+ required: true;
979
+ comments: string;
980
+ model: {
981
+ label: ResponseType;
982
+ value: ResponseType;
983
+ }[];
984
+ clean: (value: unknown) => ResponseType;
985
+ };
986
+ timeout: {
987
+ label: string;
988
+ type: "string";
989
+ required: false;
990
+ comments: string;
991
+ example: string;
992
+ clean: (value: unknown) => number;
993
+ };
994
+ debugRequest: {
995
+ label: string;
996
+ type: "boolean";
997
+ required: false;
998
+ comments: string;
999
+ clean: (value: unknown) => boolean;
1000
+ };
1001
+ retryDelayMS: {
1002
+ label: string;
1003
+ placeholder: string;
1004
+ type: "string";
1005
+ required: false;
1006
+ comments: string;
1007
+ default: string;
1008
+ clean: (value: unknown) => number;
1009
+ };
1010
+ retryAllErrors: {
1011
+ label: string;
1012
+ type: "boolean";
1013
+ default: string;
1014
+ required: false;
1015
+ comments: string;
1016
+ clean: (value: unknown) => boolean;
1017
+ };
1018
+ maxRetries: {
1019
+ label: string;
1020
+ placeholder: string;
1021
+ type: "string";
1022
+ required: false;
1023
+ comments: string;
1024
+ default: string;
1025
+ clean: (value: unknown) => number;
1026
+ };
1027
+ useExponentialBackoff: {
1028
+ label: string;
1029
+ type: "boolean";
1030
+ default: string;
1031
+ required: false;
1032
+ comments: string;
1033
+ clean: (value: unknown) => boolean;
1034
+ };
1035
+ connection: {
1036
+ label: string;
1037
+ comments: string;
1038
+ type: "connection";
1039
+ required: true;
1040
+ };
1041
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1042
+ data: any;
1043
+ }>;
1044
+ createTicket: import("@prismatic-io/spectral").ActionDefinition<{
1045
+ connection: {
1046
+ label: string;
1047
+ comments: string;
1048
+ type: "connection";
1049
+ required: true;
1050
+ };
1051
+ messages: {
1052
+ label: string;
1053
+ comments: string;
1054
+ type: "code";
1055
+ language: "json";
1056
+ required: true;
1057
+ example: string;
1058
+ clean: (value: unknown) => any[] | undefined;
1059
+ };
1060
+ external_id: {
1061
+ label: string;
1062
+ comments: string;
1063
+ type: "string";
1064
+ required: false;
1065
+ clean: (value: unknown) => string | undefined;
1066
+ placeholder: string;
1067
+ example: string;
1068
+ };
1069
+ meta: {
1070
+ label: string;
1071
+ comments: string;
1072
+ type: "string";
1073
+ collection: "keyvaluelist";
1074
+ example: string;
1075
+ placeholder: string;
1076
+ required: false;
1077
+ clean: (value: unknown) => Record<string, unknown> | undefined;
1078
+ };
1079
+ status: {
1080
+ label: string;
1081
+ comments: string;
1082
+ type: "string";
1083
+ required: false;
1084
+ model: {
1085
+ value: string;
1086
+ label: string;
1087
+ }[];
1088
+ default: string;
1089
+ example: string;
1090
+ placeholder: string;
1091
+ clean: (value: unknown) => string | undefined;
1092
+ };
1093
+ subject: {
1094
+ label: string;
1095
+ comments: string;
1096
+ type: "string";
1097
+ required: false;
1098
+ clean: (value: unknown) => string | undefined;
1099
+ placeholder: string;
1100
+ example: string;
1101
+ };
1102
+ tags: {
1103
+ label: string;
1104
+ comments: string;
1105
+ type: "string";
1106
+ required: false;
1107
+ collection: "valuelist";
1108
+ example: string;
1109
+ placeholder: string;
1110
+ clean: (value: unknown) => {
1111
+ [x: string]: any;
1112
+ }[] | undefined;
1113
+ };
1114
+ ticketTimestamps: {
1115
+ label: string;
1116
+ required: boolean;
1117
+ comments: string;
1118
+ inputs: {
1119
+ closed_datetime: {
1120
+ label: string;
1121
+ comments: string;
1122
+ type: "string";
1123
+ required: false;
1124
+ clean: (value: unknown) => Date | undefined;
1125
+ placeholder: string;
1126
+ example: string;
1127
+ };
1128
+ created_datetime: {
1129
+ label: string;
1130
+ comments: string;
1131
+ type: "string";
1132
+ required: false;
1133
+ clean: (value: unknown) => Date | undefined;
1134
+ placeholder: string;
1135
+ example: string;
1136
+ };
1137
+ last_message_datetime: {
1138
+ label: string;
1139
+ comments: string;
1140
+ type: "string";
1141
+ required: false;
1142
+ clean: (value: unknown) => Date | undefined;
1143
+ placeholder: string;
1144
+ example: string;
1145
+ };
1146
+ last_received_message_datetime: {
1147
+ label: string;
1148
+ comments: string;
1149
+ type: "string";
1150
+ required: false;
1151
+ clean: (value: unknown) => Date | undefined;
1152
+ placeholder: string;
1153
+ example: string;
1154
+ };
1155
+ opened_datetime: {
1156
+ label: string;
1157
+ comments: string;
1158
+ type: "string";
1159
+ required: false;
1160
+ clean: (value: unknown) => Date | undefined;
1161
+ placeholder: string;
1162
+ example: string;
1163
+ };
1164
+ snooze_datetime: {
1165
+ label: string;
1166
+ comments: string;
1167
+ type: "string";
1168
+ required: false;
1169
+ clean: (value: unknown) => Date | undefined;
1170
+ placeholder: string;
1171
+ example: string;
1172
+ };
1173
+ trashed_datetime: {
1174
+ label: string;
1175
+ comments: string;
1176
+ type: "string";
1177
+ required: false;
1178
+ clean: (value: unknown) => Date | undefined;
1179
+ placeholder: string;
1180
+ example: string;
1181
+ };
1182
+ updated_datetime: {
1183
+ label: string;
1184
+ comments: string;
1185
+ type: "string";
1186
+ required: false;
1187
+ clean: (value: unknown) => Date | undefined;
1188
+ placeholder: string;
1189
+ example: string;
1190
+ };
1191
+ };
1192
+ } & {
1193
+ type: "structuredObject";
1194
+ };
1195
+ additionalFields: {
1196
+ label: string;
1197
+ required: boolean;
1198
+ comments: string;
1199
+ inputs: {
1200
+ assignee_team: {
1201
+ label: string;
1202
+ comments: string;
1203
+ type: "code";
1204
+ language: "json";
1205
+ required: false;
1206
+ example: string;
1207
+ clean: (value: unknown) => object | undefined;
1208
+ };
1209
+ assignee_user: {
1210
+ label: string;
1211
+ comments: string;
1212
+ type: "code";
1213
+ language: "json";
1214
+ required: false;
1215
+ example: string;
1216
+ clean: (value: unknown) => object | undefined;
1217
+ };
1218
+ channel: {
1219
+ label: string;
1220
+ comments: string;
1221
+ type: "string";
1222
+ required: false;
1223
+ model: {
1224
+ value: string;
1225
+ label: string;
1226
+ }[];
1227
+ clean: (value: unknown) => string | undefined;
1228
+ placeholder: string;
1229
+ example: string;
1230
+ };
1231
+ customer: {
1232
+ label: string;
1233
+ comments: string;
1234
+ type: "code";
1235
+ language: "json";
1236
+ required: false;
1237
+ example: string;
1238
+ clean: (value: unknown) => object | undefined;
1239
+ };
1240
+ from_agent: {
1241
+ label: string;
1242
+ comments: string;
1243
+ type: "string";
1244
+ required: false;
1245
+ model: {
1246
+ value: string;
1247
+ label: string;
1248
+ }[];
1249
+ example: string;
1250
+ placeholder: string;
1251
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1252
+ };
1253
+ language: {
1254
+ label: string;
1255
+ comments: string;
1256
+ type: "string";
1257
+ required: false;
1258
+ clean: (value: unknown) => string | undefined;
1259
+ placeholder: string;
1260
+ example: string;
1261
+ };
1262
+ spam: {
1263
+ label: string;
1264
+ comments: string;
1265
+ type: "string";
1266
+ required: false;
1267
+ placeholder: string;
1268
+ example: string;
1269
+ model: {
1270
+ value: string;
1271
+ label: string;
1272
+ }[];
1273
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1274
+ };
1275
+ via: {
1276
+ label: string;
1277
+ comments: string;
1278
+ type: "string";
1279
+ required: false;
1280
+ model: {
1281
+ value: string;
1282
+ label: string;
1283
+ }[];
1284
+ clean: (value: unknown) => string | undefined;
1285
+ placeholder: string;
1286
+ example: string;
1287
+ };
1288
+ };
1289
+ } & {
1290
+ type: "structuredObject";
1291
+ };
1292
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1293
+ data: CreateTicketResponse;
1294
+ }>;
1295
+ deleteTicket: import("@prismatic-io/spectral").ActionDefinition<{
1296
+ connection: {
1297
+ label: string;
1298
+ comments: string;
1299
+ type: "connection";
1300
+ required: true;
1301
+ };
1302
+ id: {
1303
+ comments: string;
1304
+ label: string;
1305
+ type: "string";
1306
+ required: true;
1307
+ clean: (value: unknown) => number | undefined;
1308
+ };
1309
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1310
+ data: {
1311
+ message: MESSAGES;
1312
+ };
1313
+ }>;
1314
+ deleteTicketCustomField: import("@prismatic-io/spectral").ActionDefinition<{
1315
+ connection: {
1316
+ label: string;
1317
+ comments: string;
1318
+ type: "connection";
1319
+ required: true;
1320
+ };
1321
+ ticket_id: {
1322
+ label: string;
1323
+ comments: string;
1324
+ type: "string";
1325
+ required: true;
1326
+ clean: (value: unknown) => number | undefined;
1327
+ example: string;
1328
+ placeholder: string;
1329
+ };
1330
+ id: {
1331
+ label: string;
1332
+ comments: string;
1333
+ type: "string";
1334
+ required: true;
1335
+ example: string;
1336
+ placeholder: string;
1337
+ clean: (value: unknown) => number | undefined;
1338
+ };
1339
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1340
+ data: {
1341
+ message: MESSAGES;
1342
+ };
1343
+ }>;
1344
+ getTicket: import("@prismatic-io/spectral").ActionDefinition<{
1345
+ connection: {
1346
+ label: string;
1347
+ comments: string;
1348
+ type: "connection";
1349
+ required: true;
1350
+ };
1351
+ id: {
1352
+ label: string;
1353
+ comments: string;
1354
+ type: "string";
1355
+ required: true;
1356
+ clean: (value: unknown) => number | undefined;
1357
+ };
1358
+ relationships: {
1359
+ label: string;
1360
+ comments: string;
1361
+ type: "string";
1362
+ collection: "valuelist";
1363
+ placeholder: string;
1364
+ example: string;
1365
+ required: false;
1366
+ clean: (value: unknown) => string[] | undefined;
1367
+ };
1368
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1369
+ data: GetTicketResponse;
1370
+ }>;
1371
+ listTickets: import("@prismatic-io/spectral").ActionDefinition<{
1372
+ connection: {
1373
+ label: string;
1374
+ comments: string;
1375
+ type: "connection";
1376
+ required: true;
1377
+ };
1378
+ customer_id: {
1379
+ label: string;
1380
+ comments: string;
1381
+ type: "string";
1382
+ required: false;
1383
+ clean: (valueBase: unknown) => number | undefined;
1384
+ placeholder: string;
1385
+ example: string;
1386
+ };
1387
+ external_id: {
1388
+ label: string;
1389
+ comments: string;
1390
+ type: "string";
1391
+ required: false;
1392
+ clean: (value: unknown) => string | undefined;
1393
+ placeholder: string;
1394
+ example: string;
1395
+ };
1396
+ view_id: {
1397
+ label: string;
1398
+ comments: string;
1399
+ type: "string";
1400
+ required: false;
1401
+ clean: (valueBase: unknown) => number | undefined;
1402
+ placeholder: string;
1403
+ example: string;
1404
+ };
1405
+ rule_id: {
1406
+ label: string;
1407
+ comments: string;
1408
+ type: "string";
1409
+ required: false;
1410
+ clean: (valueBase: unknown) => number | undefined;
1411
+ placeholder: string;
1412
+ example: string;
1413
+ };
1414
+ ticket_ids: {
1415
+ label: string;
1416
+ comments: string;
1417
+ type: "string";
1418
+ required: false;
1419
+ collection: "valuelist";
1420
+ example: string;
1421
+ placeholder: string;
1422
+ clean: (value: unknown) => string[] | undefined;
1423
+ };
1424
+ fetchAll: {
1425
+ label: string;
1426
+ comments: string;
1427
+ type: "boolean";
1428
+ required: false;
1429
+ default: string;
1430
+ example: string;
1431
+ placeholder: string;
1432
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1433
+ };
1434
+ pagination: {
1435
+ label: string;
1436
+ required: boolean;
1437
+ comments: string;
1438
+ inputs: {
1439
+ cursor: {
1440
+ label: string;
1441
+ comments: string;
1442
+ type: "string";
1443
+ required: false;
1444
+ example: string;
1445
+ placeholder: string;
1446
+ clean: (value: unknown) => string | undefined;
1447
+ };
1448
+ limit: {
1449
+ label: string;
1450
+ comments: string;
1451
+ type: "string";
1452
+ required: false;
1453
+ clean: (valueBase: unknown, minValue?: number, maxValue?: number) => number | undefined;
1454
+ placeholder: string;
1455
+ example: string;
1456
+ };
1457
+ };
1458
+ } & {
1459
+ type: "structuredObject";
1460
+ };
1461
+ order_by: {
1462
+ label: string;
1463
+ comments: string;
1464
+ type: "string";
1465
+ required: false;
1466
+ clean: (value: unknown) => string | undefined;
1467
+ placeholder: string;
1468
+ example: string;
1469
+ model: {
1470
+ value: string;
1471
+ label: string;
1472
+ }[];
1473
+ };
1474
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1475
+ data: ListTicketsResponse | {
1476
+ data: {
1477
+ id: number;
1478
+ assignee_user: {
1479
+ id: number;
1480
+ email: string;
1481
+ name: string;
1482
+ firstname: string;
1483
+ lastname: string;
1484
+ meta: {
1485
+ sso: string | null;
1486
+ profile_picture_url: string | null;
1487
+ };
1488
+ };
1489
+ channel: string;
1490
+ closed_datetime: string | null;
1491
+ created_datetime: string | null;
1492
+ customer: {
1493
+ id: number;
1494
+ email: string | null;
1495
+ name: string | null;
1496
+ firstname: string;
1497
+ lastname: string;
1498
+ };
1499
+ excerpt: string;
1500
+ external_id: string | null;
1501
+ from_agent: boolean;
1502
+ integrations: Record<string, unknown>;
1503
+ is_unread: boolean;
1504
+ language: string | null;
1505
+ last_message_datetime: string | null;
1506
+ last_received_message_datetime: string | null;
1507
+ messages_count: number;
1508
+ meta: Record<string, unknown>;
1509
+ opened_datetime: string | null;
1510
+ snoozed_datetime: string | null;
1511
+ status: string;
1512
+ subject: string | null;
1513
+ tags: {
1514
+ id: number;
1515
+ name: string;
1516
+ uri: string;
1517
+ decoration: {
1518
+ color: string;
1519
+ };
1520
+ }[];
1521
+ spam: boolean | null;
1522
+ trashed_datetime: string | null;
1523
+ updated_datetime: string | null;
1524
+ via: string;
1525
+ uri: string;
1526
+ }[];
1527
+ object: string;
1528
+ uri: string;
1529
+ meta: {
1530
+ prev_cursor: null;
1531
+ next_cursor: null;
1532
+ };
1533
+ };
1534
+ }>;
1535
+ updateTicket: import("@prismatic-io/spectral").ActionDefinition<{
1536
+ connection: {
1537
+ label: string;
1538
+ comments: string;
1539
+ type: "connection";
1540
+ required: true;
1541
+ };
1542
+ id: {
1543
+ label: string;
1544
+ comments: string;
1545
+ type: "string";
1546
+ required: true;
1547
+ clean: (value: unknown) => number | undefined;
1548
+ };
1549
+ external_id: {
1550
+ label: string;
1551
+ comments: string;
1552
+ type: "string";
1553
+ required: false;
1554
+ clean: (value: unknown) => string | undefined;
1555
+ placeholder: string;
1556
+ example: string;
1557
+ };
1558
+ meta: {
1559
+ label: string;
1560
+ comments: string;
1561
+ type: "string";
1562
+ collection: "keyvaluelist";
1563
+ example: string;
1564
+ placeholder: string;
1565
+ required: false;
1566
+ clean: (value: unknown) => Record<string, unknown> | undefined;
1567
+ };
1568
+ status: {
1569
+ label: string;
1570
+ comments: string;
1571
+ type: "string";
1572
+ required: false;
1573
+ model: {
1574
+ value: string;
1575
+ label: string;
1576
+ }[];
1577
+ default: string;
1578
+ example: string;
1579
+ placeholder: string;
1580
+ clean: (value: unknown) => string | undefined;
1581
+ };
1582
+ tags: {
1583
+ label: string;
1584
+ comments: string;
1585
+ type: "string";
1586
+ required: false;
1587
+ collection: "valuelist";
1588
+ example: string;
1589
+ placeholder: string;
1590
+ clean: (value: unknown) => {
1591
+ [x: string]: any;
1592
+ }[] | undefined;
1593
+ };
1594
+ ticketTimestamps: {
1595
+ label: string;
1596
+ required: boolean;
1597
+ comments: string;
1598
+ inputs: {
1599
+ closed_datetime: {
1600
+ label: string;
1601
+ comments: string;
1602
+ type: "string";
1603
+ required: false;
1604
+ clean: (value: unknown) => Date | undefined;
1605
+ placeholder: string;
1606
+ example: string;
1607
+ };
1608
+ last_message_datetime: {
1609
+ label: string;
1610
+ comments: string;
1611
+ type: "string";
1612
+ required: false;
1613
+ clean: (value: unknown) => Date | undefined;
1614
+ placeholder: string;
1615
+ example: string;
1616
+ };
1617
+ last_received_message_datetime: {
1618
+ label: string;
1619
+ comments: string;
1620
+ type: "string";
1621
+ required: false;
1622
+ clean: (value: unknown) => Date | undefined;
1623
+ placeholder: string;
1624
+ example: string;
1625
+ };
1626
+ opened_datetime: {
1627
+ label: string;
1628
+ comments: string;
1629
+ type: "string";
1630
+ required: false;
1631
+ clean: (value: unknown) => Date | undefined;
1632
+ placeholder: string;
1633
+ example: string;
1634
+ };
1635
+ snooze_datetime: {
1636
+ label: string;
1637
+ comments: string;
1638
+ type: "string";
1639
+ required: false;
1640
+ clean: (value: unknown) => Date | undefined;
1641
+ placeholder: string;
1642
+ example: string;
1643
+ };
1644
+ trashed_datetime: {
1645
+ label: string;
1646
+ comments: string;
1647
+ type: "string";
1648
+ required: false;
1649
+ clean: (value: unknown) => Date | undefined;
1650
+ placeholder: string;
1651
+ example: string;
1652
+ };
1653
+ updated_datetime: {
1654
+ label: string;
1655
+ comments: string;
1656
+ type: "string";
1657
+ required: false;
1658
+ clean: (value: unknown) => Date | undefined;
1659
+ placeholder: string;
1660
+ example: string;
1661
+ };
1662
+ };
1663
+ } & {
1664
+ type: "structuredObject";
1665
+ };
1666
+ additionalFields: {
1667
+ label: string;
1668
+ required: boolean;
1669
+ comments: string;
1670
+ inputs: {
1671
+ assignee_team: {
1672
+ label: string;
1673
+ comments: string;
1674
+ type: "code";
1675
+ language: "json";
1676
+ required: false;
1677
+ example: string;
1678
+ clean: (value: unknown) => object | undefined;
1679
+ };
1680
+ assignee_user: {
1681
+ label: string;
1682
+ comments: string;
1683
+ type: "code";
1684
+ language: "json";
1685
+ required: false;
1686
+ example: string;
1687
+ clean: (value: unknown) => object | undefined;
1688
+ };
1689
+ channel: {
1690
+ label: string;
1691
+ comments: string;
1692
+ type: "string";
1693
+ required: false;
1694
+ model: {
1695
+ value: string;
1696
+ label: string;
1697
+ }[];
1698
+ clean: (value: unknown) => string | undefined;
1699
+ placeholder: string;
1700
+ example: string;
1701
+ };
1702
+ customer: {
1703
+ label: string;
1704
+ comments: string;
1705
+ type: "code";
1706
+ language: "json";
1707
+ required: false;
1708
+ example: string;
1709
+ clean: (value: unknown) => object | undefined;
1710
+ };
1711
+ from_agent: {
1712
+ label: string;
1713
+ comments: string;
1714
+ type: "string";
1715
+ required: false;
1716
+ model: {
1717
+ value: string;
1718
+ label: string;
1719
+ }[];
1720
+ example: string;
1721
+ placeholder: string;
1722
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1723
+ };
1724
+ is_unread: {
1725
+ label: string;
1726
+ comments: string;
1727
+ type: "string";
1728
+ required: false;
1729
+ example: string;
1730
+ placeholder: string;
1731
+ model: {
1732
+ value: string;
1733
+ label: string;
1734
+ }[];
1735
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1736
+ };
1737
+ language: {
1738
+ label: string;
1739
+ comments: string;
1740
+ type: "string";
1741
+ required: false;
1742
+ clean: (value: unknown) => string | undefined;
1743
+ placeholder: string;
1744
+ example: string;
1745
+ };
1746
+ spam: {
1747
+ label: string;
1748
+ comments: string;
1749
+ type: "string";
1750
+ required: false;
1751
+ placeholder: string;
1752
+ example: string;
1753
+ model: {
1754
+ value: string;
1755
+ label: string;
1756
+ }[];
1757
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1758
+ };
1759
+ via: {
1760
+ label: string;
1761
+ comments: string;
1762
+ type: "string";
1763
+ required: false;
1764
+ model: {
1765
+ value: string;
1766
+ label: string;
1767
+ }[];
1768
+ clean: (value: unknown) => string | undefined;
1769
+ placeholder: string;
1770
+ example: string;
1771
+ };
1772
+ };
1773
+ } & {
1774
+ type: "structuredObject";
1775
+ };
1776
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1777
+ data: UpdateTicketResponse;
1778
+ }>;
1779
+ updateTicketCustomFields: import("@prismatic-io/spectral").ActionDefinition<{
1780
+ connection: {
1781
+ label: string;
1782
+ comments: string;
1783
+ type: "connection";
1784
+ required: true;
1785
+ };
1786
+ ticket_id: {
1787
+ label: string;
1788
+ comments: string;
1789
+ type: "string";
1790
+ required: true;
1791
+ clean: (value: unknown) => number | undefined;
1792
+ example: string;
1793
+ placeholder: string;
1794
+ };
1795
+ custom_fields: {
1796
+ label: string;
1797
+ comments: string;
1798
+ type: "code";
1799
+ language: "json";
1800
+ required: true;
1801
+ example: string;
1802
+ clean: (value: unknown) => any[] | undefined;
1803
+ };
1804
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1805
+ data: UpdateTicketCustomFieldsResponse;
1806
+ }>;
1807
+ listTicketCustomFields: import("@prismatic-io/spectral").ActionDefinition<{
1808
+ connection: {
1809
+ label: string;
1810
+ comments: string;
1811
+ type: "connection";
1812
+ required: true;
1813
+ };
1814
+ ticket_id: {
1815
+ label: string;
1816
+ comments: string;
1817
+ type: "string";
1818
+ required: true;
1819
+ clean: (value: unknown) => number | undefined;
1820
+ example: string;
1821
+ placeholder: string;
1822
+ };
1823
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1824
+ data: ListTicketCustomFieldsResponse;
1825
+ }>;
1826
+ createTicketMessage: import("@prismatic-io/spectral").ActionDefinition<{
1827
+ connection: {
1828
+ label: string;
1829
+ comments: string;
1830
+ type: "connection";
1831
+ required: true;
1832
+ };
1833
+ ticket_id: {
1834
+ label: string;
1835
+ comments: string;
1836
+ type: "string";
1837
+ required: true;
1838
+ example: string;
1839
+ placeholder: string;
1840
+ clean: (value: unknown) => number | undefined;
1841
+ };
1842
+ channel: {
1843
+ label: string;
1844
+ comments: string;
1845
+ type: "string";
1846
+ required: true;
1847
+ model: {
1848
+ value: string;
1849
+ label: string;
1850
+ }[];
1851
+ clean: (value: unknown) => string | undefined;
1852
+ placeholder: string;
1853
+ example: string;
1854
+ };
1855
+ source: {
1856
+ label: string;
1857
+ comments: string;
1858
+ type: "code";
1859
+ language: "json";
1860
+ required: true;
1861
+ example: string;
1862
+ clean: (value: unknown) => object | undefined;
1863
+ };
1864
+ via: {
1865
+ label: string;
1866
+ comments: string;
1867
+ type: "string";
1868
+ required: true;
1869
+ model: {
1870
+ value: string;
1871
+ label: string;
1872
+ }[];
1873
+ clean: (value: unknown) => string | undefined;
1874
+ placeholder: string;
1875
+ example: string;
1876
+ };
1877
+ body_html: {
1878
+ label: string;
1879
+ comments: string;
1880
+ type: "string";
1881
+ required: false;
1882
+ clean: (value: unknown) => string | undefined;
1883
+ placeholder: string;
1884
+ example: string;
1885
+ };
1886
+ body_text: {
1887
+ label: string;
1888
+ comments: string;
1889
+ type: "string";
1890
+ required: false;
1891
+ clean: (value: unknown) => string | undefined;
1892
+ placeholder: string;
1893
+ example: string;
1894
+ };
1895
+ external_id: {
1896
+ label: string;
1897
+ comments: string;
1898
+ type: "string";
1899
+ required: false;
1900
+ clean: (value: unknown) => string | undefined;
1901
+ placeholder: string;
1902
+ example: string;
1903
+ };
1904
+ message_id: {
1905
+ label: string;
1906
+ comments: string;
1907
+ type: "string";
1908
+ required: false;
1909
+ clean: (value: unknown) => string | undefined;
1910
+ placeholder: string;
1911
+ example: string;
1912
+ };
1913
+ subject: {
1914
+ label: string;
1915
+ comments: string;
1916
+ type: "string";
1917
+ required: false;
1918
+ clean: (value: unknown) => string | undefined;
1919
+ example: string;
1920
+ placeholder: string;
1921
+ };
1922
+ messageTimestamps: {
1923
+ label: string;
1924
+ required: boolean;
1925
+ comments: string;
1926
+ inputs: {
1927
+ created_datetime: {
1928
+ label: string;
1929
+ comments: string;
1930
+ type: "string";
1931
+ required: false;
1932
+ clean: (value: unknown) => Date | undefined;
1933
+ placeholder: string;
1934
+ example: string;
1935
+ };
1936
+ failed_datetime: {
1937
+ label: string;
1938
+ comments: string;
1939
+ type: "string";
1940
+ required: false;
1941
+ clean: (value: unknown) => Date | undefined;
1942
+ placeholder: string;
1943
+ example: string;
1944
+ };
1945
+ sent_datetime: {
1946
+ label: string;
1947
+ comments: string;
1948
+ type: "string";
1949
+ required: false;
1950
+ clean: (value: unknown) => Date | undefined;
1951
+ placeholder: string;
1952
+ example: string;
1953
+ };
1954
+ };
1955
+ } & {
1956
+ type: "structuredObject";
1957
+ };
1958
+ additionalFields: {
1959
+ label: string;
1960
+ required: boolean;
1961
+ comments: string;
1962
+ inputs: {
1963
+ from_agent: {
1964
+ type: "boolean";
1965
+ required: false;
1966
+ label: string;
1967
+ comments: string;
1968
+ model: {
1969
+ value: string;
1970
+ label: string;
1971
+ }[];
1972
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1973
+ placeholder: string;
1974
+ example: string;
1975
+ };
1976
+ action: {
1977
+ label: string;
1978
+ comments: string;
1979
+ type: "string";
1980
+ required: false;
1981
+ clean: (value: unknown) => string | undefined;
1982
+ placeholder: string;
1983
+ example: string;
1984
+ model: {
1985
+ value: string;
1986
+ label: string;
1987
+ }[];
1988
+ };
1989
+ attachments: {
1990
+ label: string;
1991
+ comments: string;
1992
+ type: "code";
1993
+ language: "json";
1994
+ required: false;
1995
+ example: string;
1996
+ clean: (value: unknown) => any[] | undefined;
1997
+ };
1998
+ receiver: {
1999
+ label: string;
2000
+ comments: string;
2001
+ type: "code";
2002
+ language: "json";
2003
+ required: false;
2004
+ example: string;
2005
+ clean: (value: unknown) => object | undefined;
2006
+ };
2007
+ sender: {
2008
+ label: string;
2009
+ comments: string;
2010
+ type: "code";
2011
+ language: "json";
2012
+ required: false;
2013
+ example: string;
2014
+ clean: (value: unknown) => object | undefined;
2015
+ };
2016
+ };
2017
+ } & {
2018
+ type: "structuredObject";
2019
+ };
2020
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2021
+ data: TicketMessage;
2022
+ }>;
2023
+ getTicketMessage: import("@prismatic-io/spectral").ActionDefinition<{
2024
+ connection: {
2025
+ label: string;
2026
+ comments: string;
2027
+ type: "connection";
2028
+ required: true;
2029
+ };
2030
+ ticket_id: {
2031
+ label: string;
2032
+ comments: string;
2033
+ type: "string";
2034
+ required: true;
2035
+ example: string;
2036
+ placeholder: string;
2037
+ clean: (value: unknown) => number | undefined;
2038
+ };
2039
+ id: {
2040
+ label: string;
2041
+ comments: string;
2042
+ type: "string";
2043
+ required: true;
2044
+ clean: (value: unknown) => number | undefined;
2045
+ example: string;
2046
+ placeholder: string;
2047
+ };
2048
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2049
+ data: TicketMessage;
2050
+ }>;
2051
+ listMessages: import("@prismatic-io/spectral").ActionDefinition<{
2052
+ connection: {
2053
+ label: string;
2054
+ comments: string;
2055
+ type: "connection";
2056
+ required: true;
2057
+ };
2058
+ fetchAll: {
2059
+ label: string;
2060
+ comments: string;
2061
+ type: "boolean";
2062
+ required: false;
2063
+ default: string;
2064
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
2065
+ };
2066
+ ticket_id: {
2067
+ label: string;
2068
+ comments: string;
2069
+ type: "string";
2070
+ required: false;
2071
+ clean: (value: unknown) => number | undefined;
2072
+ placeholder: string;
2073
+ example: string;
2074
+ };
2075
+ pagination: {
2076
+ label: string;
2077
+ required: boolean;
2078
+ comments: string;
2079
+ inputs: {
2080
+ cursor: {
2081
+ label: string;
2082
+ comments: string;
2083
+ type: "string";
2084
+ required: false;
2085
+ clean: (value: unknown) => string | undefined;
2086
+ placeholder: string;
2087
+ example: string;
2088
+ };
2089
+ limit: {
2090
+ label: string;
2091
+ comments: string;
2092
+ type: "string";
2093
+ required: false;
2094
+ clean: (valueBase: unknown, minValue?: number, maxValue?: number) => number | undefined;
2095
+ placeholder: string;
2096
+ example: string;
2097
+ };
2098
+ };
2099
+ } & {
2100
+ type: "structuredObject";
2101
+ };
2102
+ order_by: {
2103
+ label: string;
2104
+ comments: string;
2105
+ type: "string";
2106
+ required: false;
2107
+ clean: (value: unknown) => string | undefined;
2108
+ placeholder: string;
2109
+ example: string;
2110
+ model: {
2111
+ value: string;
2112
+ label: string;
2113
+ }[];
2114
+ };
2115
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2116
+ data: ListMessagesResponse | {
2117
+ data: TicketMessage[];
2118
+ object: string;
2119
+ uri: string;
2120
+ meta: {
2121
+ prev_cursor: null;
2122
+ next_cursor: null;
2123
+ };
2124
+ };
2125
+ }>;
2126
+ search: import("@prismatic-io/spectral").ActionDefinition<{
2127
+ connection: {
2128
+ label: string;
2129
+ comments: string;
2130
+ type: "connection";
2131
+ required: true;
2132
+ };
2133
+ type: {
2134
+ label: string;
2135
+ type: "string";
2136
+ required: true;
2137
+ comments: string;
2138
+ clean: (value: unknown) => string | undefined;
2139
+ placeholder: string;
2140
+ example: string;
2141
+ model: {
2142
+ value: string;
2143
+ label: string;
2144
+ }[];
2145
+ };
2146
+ query: {
2147
+ label: string;
2148
+ type: "string";
2149
+ required: false;
2150
+ comments: string;
2151
+ clean: (value: unknown) => string | undefined;
2152
+ placeholder: string;
2153
+ example: string;
2154
+ };
2155
+ size: {
2156
+ label: string;
2157
+ type: "string";
2158
+ required: false;
2159
+ comments: string;
2160
+ clean: (value: unknown) => number | undefined;
2161
+ placeholder: string;
2162
+ example: string;
2163
+ };
2164
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2165
+ data: SearchResponse;
2166
+ }>;
2167
+ downloadFile: import("@prismatic-io/spectral").ActionDefinition<{
2168
+ connection: {
2169
+ label: string;
2170
+ comments: string;
2171
+ type: "connection";
2172
+ required: true;
2173
+ };
2174
+ file_type: {
2175
+ label: string;
2176
+ type: "string";
2177
+ required: true;
2178
+ comments: string;
2179
+ model: {
2180
+ value: string;
2181
+ label: string;
2182
+ }[];
2183
+ clean: (value: unknown) => string | undefined;
2184
+ placeholder: string;
2185
+ example: string;
2186
+ };
2187
+ domain_hash: {
2188
+ label: string;
2189
+ type: "string";
2190
+ required: true;
2191
+ comments: string;
2192
+ clean: (value: unknown) => string | undefined;
2193
+ placeholder: string;
2194
+ example: string;
2195
+ };
2196
+ resource_name: {
2197
+ label: string;
2198
+ type: "string";
2199
+ required: true;
2200
+ comments: string;
2201
+ clean: (value: unknown) => string | undefined;
2202
+ placeholder: string;
2203
+ example: string;
2204
+ };
2205
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2206
+ data: string;
2207
+ }>;
2208
+ uploadFiles: import("@prismatic-io/spectral").ActionDefinition<{
2209
+ connection: {
2210
+ label: string;
2211
+ comments: string;
2212
+ type: "connection";
2213
+ required: true;
2214
+ };
2215
+ type: {
2216
+ label: string;
2217
+ type: "string";
2218
+ required: false;
2219
+ comments: string;
2220
+ model: {
2221
+ value: string;
2222
+ label: string;
2223
+ }[];
2224
+ example: string;
2225
+ placeholder: string;
2226
+ clean: (value: unknown) => string | undefined;
2227
+ };
2228
+ file: {
2229
+ label: string;
2230
+ type: "data";
2231
+ required: true;
2232
+ example: string;
2233
+ comments: string;
2234
+ clean: (value: unknown) => import("@prismatic-io/spectral").DataPayload;
2235
+ };
2236
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2237
+ data: UploadFilesResponse;
2238
+ }>;
2239
+ getEvent: import("@prismatic-io/spectral").ActionDefinition<{
2240
+ connection: {
2241
+ label: string;
2242
+ comments: string;
2243
+ type: "connection";
2244
+ required: true;
2245
+ };
2246
+ id: {
2247
+ label: string;
2248
+ comments: string;
2249
+ type: "string";
2250
+ required: true;
2251
+ example: string;
2252
+ placeholder: string;
2253
+ clean: (value: unknown) => number | undefined;
2254
+ };
2255
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2256
+ data: Event;
2257
+ }>;
2258
+ listEvents: import("@prismatic-io/spectral").ActionDefinition<{
2259
+ connection: {
2260
+ label: string;
2261
+ comments: string;
2262
+ type: "connection";
2263
+ required: true;
2264
+ };
2265
+ created_datetime: {
2266
+ label: string;
2267
+ comments: string;
2268
+ type: "code";
2269
+ language: "json";
2270
+ required: false;
2271
+ example: string;
2272
+ clean: (value: unknown) => object | undefined;
2273
+ };
2274
+ object_id: {
2275
+ label: string;
2276
+ comments: string;
2277
+ type: "string";
2278
+ example: string;
2279
+ placeholder: string;
2280
+ required: false;
2281
+ clean: (value: unknown) => number | undefined;
2282
+ };
2283
+ object_type: {
2284
+ label: string;
2285
+ comments: string;
2286
+ type: "string";
2287
+ required: false;
2288
+ clean: (value: unknown) => string | undefined;
2289
+ model: {
2290
+ value: string;
2291
+ label: string;
2292
+ }[];
2293
+ example: string;
2294
+ placeholder: string;
2295
+ };
2296
+ types: {
2297
+ label: string;
2298
+ comments: string;
2299
+ type: "string";
2300
+ collection: "valuelist";
2301
+ model: {
2302
+ value: string;
2303
+ label: string;
2304
+ }[];
2305
+ example: string;
2306
+ placeholder: string;
2307
+ required: false;
2308
+ clean: (value: unknown) => string[] | undefined;
2309
+ };
2310
+ user_ids: {
2311
+ label: string;
2312
+ comments: string;
2313
+ type: "string";
2314
+ collection: "valuelist";
2315
+ example: string;
2316
+ placeholder: string;
2317
+ required: false;
2318
+ clean: (value: unknown) => string[] | undefined;
2319
+ };
2320
+ fetchAll: {
2321
+ label: string;
2322
+ comments: string;
2323
+ type: "boolean";
2324
+ required: false;
2325
+ default: string;
2326
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
2327
+ };
2328
+ pagination: {
2329
+ label: string;
2330
+ required: boolean;
2331
+ comments: string;
2332
+ inputs: {
2333
+ cursor: {
2334
+ label: string;
2335
+ comments: string;
2336
+ type: "string";
2337
+ required: false;
2338
+ clean: (value: unknown) => string | undefined;
2339
+ placeholder: string;
2340
+ example: string;
2341
+ };
2342
+ limit: {
2343
+ label: string;
2344
+ comments: string;
2345
+ type: "string";
2346
+ required: false;
2347
+ clean: (valueBase: unknown, minValue?: number, maxValue?: number) => number | undefined;
2348
+ placeholder: string;
2349
+ example: string;
2350
+ };
2351
+ };
2352
+ } & {
2353
+ type: "structuredObject";
2354
+ };
2355
+ order_by: {
2356
+ label: string;
2357
+ comments: string;
2358
+ type: "string";
2359
+ required: false;
2360
+ clean: (value: unknown) => string | undefined;
2361
+ placeholder: string;
2362
+ example: string;
2363
+ model: {
2364
+ value: string;
2365
+ label: string;
2366
+ }[];
2367
+ };
2368
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2369
+ data: ListEventsResponse | {
2370
+ data: Event[];
2371
+ object: string;
2372
+ uri: string;
2373
+ meta: {
2374
+ prev_cursor: null;
2375
+ next_cursor: null;
2376
+ };
2377
+ };
2378
+ }>;
2379
+ createCustomer: import("@prismatic-io/spectral").ActionDefinition<{
2380
+ connection: {
2381
+ label: string;
2382
+ comments: string;
2383
+ type: "connection";
2384
+ required: true;
2385
+ };
2386
+ channels: {
2387
+ label: string;
2388
+ comments: string;
2389
+ type: "code";
2390
+ language: "json";
2391
+ required: true;
2392
+ example: string;
2393
+ clean: (value: unknown) => any[] | undefined;
2394
+ };
2395
+ email: {
2396
+ label: string;
2397
+ comments: string;
2398
+ type: "string";
2399
+ required: false;
2400
+ clean: (value: unknown) => string | undefined;
2401
+ placeholder: string;
2402
+ example: string;
2403
+ };
2404
+ external_id: {
2405
+ label: string;
2406
+ comments: string;
2407
+ type: "string";
2408
+ required: false;
2409
+ clean: (value: unknown) => string | undefined;
2410
+ placeholder: string;
2411
+ example: string;
2412
+ };
2413
+ language: {
2414
+ label: string;
2415
+ comments: string;
2416
+ type: "string";
2417
+ required: false;
2418
+ model: {
2419
+ value: string;
2420
+ label: string;
2421
+ }[];
2422
+ clean: (value: unknown) => string | undefined;
2423
+ placeholder: string;
2424
+ example: string;
2425
+ };
2426
+ name: {
2427
+ label: string;
2428
+ comments: string;
2429
+ type: "string";
2430
+ required: false;
2431
+ clean: (value: unknown) => string | undefined;
2432
+ placeholder: string;
2433
+ example: string;
2434
+ };
2435
+ timezone: {
2436
+ label: string;
2437
+ comments: string;
2438
+ type: "string";
2439
+ required: false;
2440
+ model: {
2441
+ value: string;
2442
+ label: string;
2443
+ }[];
2444
+ clean: (value: unknown) => string | undefined;
2445
+ placeholder: string;
2446
+ example: string;
2447
+ };
2448
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2449
+ data: CreateCustomerResponse;
2450
+ }>;
2451
+ deleteCustomer: import("@prismatic-io/spectral").ActionDefinition<{
2452
+ connection: {
2453
+ label: string;
2454
+ comments: string;
2455
+ type: "connection";
2456
+ required: true;
2457
+ };
2458
+ id: {
2459
+ comments: string;
2460
+ label: string;
2461
+ type: "string";
2462
+ example: string;
2463
+ placeholder: string;
2464
+ required: true;
2465
+ clean: (value: unknown) => number | undefined;
2466
+ };
2467
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2468
+ data: {
2469
+ message: MESSAGES;
2470
+ };
2471
+ }>;
2472
+ getCustomer: import("@prismatic-io/spectral").ActionDefinition<{
2473
+ connection: {
2474
+ label: string;
2475
+ comments: string;
2476
+ type: "connection";
2477
+ required: true;
2478
+ };
2479
+ id: {
2480
+ comments: string;
2481
+ label: string;
2482
+ type: "string";
2483
+ example: string;
2484
+ placeholder: string;
2485
+ required: true;
2486
+ clean: (value: unknown) => number | undefined;
2487
+ };
2488
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2489
+ data: GetCustomerResponse;
2490
+ }>;
2491
+ listCustomers: import("@prismatic-io/spectral").ActionDefinition<{
2492
+ connection: {
2493
+ label: string;
2494
+ comments: string;
2495
+ type: "connection";
2496
+ required: true;
2497
+ };
2498
+ id: {
2499
+ label: string;
2500
+ comments: string;
2501
+ type: "string";
2502
+ required: false;
2503
+ clean: (valueBase: unknown) => number | undefined;
2504
+ placeholder: string;
2505
+ };
2506
+ email: {
2507
+ label: string;
2508
+ comments: string;
2509
+ type: "string";
2510
+ required: false;
2511
+ clean: (value: unknown) => string | undefined;
2512
+ placeholder: string;
2513
+ example: string;
2514
+ };
2515
+ external_id: {
2516
+ label: string;
2517
+ comments: string;
2518
+ type: "string";
2519
+ required: false;
2520
+ clean: (value: unknown) => string | undefined;
2521
+ placeholder: string;
2522
+ example: string;
2523
+ };
2524
+ language: {
2525
+ label: string;
2526
+ comments: string;
2527
+ type: "string";
2528
+ required: false;
2529
+ model: {
2530
+ value: string;
2531
+ label: string;
2532
+ }[];
2533
+ clean: (value: unknown) => string | undefined;
2534
+ placeholder: string;
2535
+ example: string;
2536
+ };
2537
+ timezone: {
2538
+ label: string;
2539
+ comments: string;
2540
+ type: "string";
2541
+ required: false;
2542
+ model: {
2543
+ value: string;
2544
+ label: string;
2545
+ }[];
2546
+ clean: (value: unknown) => string | undefined;
2547
+ placeholder: string;
2548
+ example: string;
2549
+ };
2550
+ view_id: {
2551
+ label: string;
2552
+ comments: string;
2553
+ type: "string";
2554
+ required: false;
2555
+ clean: (valueBase: unknown) => number | undefined;
2556
+ placeholder: string;
2557
+ };
2558
+ fetchAll: {
2559
+ label: string;
2560
+ comments: string;
2561
+ type: "boolean";
2562
+ required: false;
2563
+ default: string;
2564
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
2565
+ };
2566
+ pagination: {
2567
+ label: string;
2568
+ required: boolean;
2569
+ comments: string;
2570
+ inputs: {
2571
+ cursor: {
2572
+ label: string;
2573
+ comments: string;
2574
+ type: "string";
2575
+ required: false;
2576
+ clean: (value: unknown) => string | undefined;
2577
+ placeholder: string;
2578
+ };
2579
+ limit: {
2580
+ label: string;
2581
+ comments: string;
2582
+ type: "string";
2583
+ required: false;
2584
+ clean: (valueBase: unknown, minValue?: number, maxValue?: number) => number | undefined;
2585
+ placeholder: string;
2586
+ };
2587
+ };
2588
+ } & {
2589
+ type: "structuredObject";
2590
+ };
2591
+ order_by: {
2592
+ label: string;
2593
+ comments: string;
2594
+ type: "string";
2595
+ required: false;
2596
+ clean: (value: unknown) => string | undefined;
2597
+ placeholder: string;
2598
+ model: {
2599
+ value: string;
2600
+ label: string;
2601
+ }[];
2602
+ };
2603
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2604
+ data: ListCustomersResponse | {
2605
+ data: {
2606
+ id: number;
2607
+ created_datetime: string | null;
2608
+ email: string | null;
2609
+ external_id: string | null;
2610
+ firstname: string;
2611
+ language: string | null;
2612
+ lastname: string;
2613
+ name: string | null;
2614
+ timezone: string | null;
2615
+ updated_datetime: string | null;
2616
+ }[];
2617
+ object: string;
2618
+ uri: string;
2619
+ meta: {
2620
+ prev_cursor: null;
2621
+ next_cursor: null;
2622
+ };
2623
+ };
2624
+ }>;
2625
+ updateCustomer: import("@prismatic-io/spectral").ActionDefinition<{
2626
+ connection: {
2627
+ label: string;
2628
+ comments: string;
2629
+ type: "connection";
2630
+ required: true;
2631
+ };
2632
+ id: {
2633
+ comments: string;
2634
+ label: string;
2635
+ type: "string";
2636
+ example: string;
2637
+ placeholder: string;
2638
+ required: true;
2639
+ clean: (value: unknown) => number | undefined;
2640
+ };
2641
+ channels: {
2642
+ required: false;
2643
+ comments: string;
2644
+ label: string;
2645
+ type: "code";
2646
+ language: "json";
2647
+ example: string;
2648
+ clean: (value: unknown) => any[] | undefined;
2649
+ };
2650
+ email: {
2651
+ label: string;
2652
+ comments: string;
2653
+ type: "string";
2654
+ required: false;
2655
+ clean: (value: unknown) => string | undefined;
2656
+ placeholder: string;
2657
+ example: string;
2658
+ };
2659
+ external_id: {
2660
+ label: string;
2661
+ comments: string;
2662
+ type: "string";
2663
+ required: false;
2664
+ clean: (value: unknown) => string | undefined;
2665
+ placeholder: string;
2666
+ example: string;
2667
+ };
2668
+ language: {
2669
+ label: string;
2670
+ comments: string;
2671
+ type: "string";
2672
+ required: false;
2673
+ model: {
2674
+ value: string;
2675
+ label: string;
2676
+ }[];
2677
+ clean: (value: unknown) => string | undefined;
2678
+ placeholder: string;
2679
+ example: string;
2680
+ };
2681
+ name: {
2682
+ label: string;
2683
+ comments: string;
2684
+ type: "string";
2685
+ required: false;
2686
+ clean: (value: unknown) => string | undefined;
2687
+ placeholder: string;
2688
+ example: string;
2689
+ };
2690
+ timezone: {
2691
+ label: string;
2692
+ comments: string;
2693
+ type: "string";
2694
+ required: false;
2695
+ model: {
2696
+ value: string;
2697
+ label: string;
2698
+ }[];
2699
+ clean: (value: unknown) => string | undefined;
2700
+ placeholder: string;
2701
+ example: string;
2702
+ };
2703
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2704
+ data: UpdateCustomerResponse;
2705
+ }>;
2706
+ updateCustomerData: import("@prismatic-io/spectral").ActionDefinition<{
2707
+ connection: {
2708
+ label: string;
2709
+ comments: string;
2710
+ type: "connection";
2711
+ required: true;
2712
+ };
2713
+ id: {
2714
+ comments: string;
2715
+ label: string;
2716
+ type: "string";
2717
+ example: string;
2718
+ placeholder: string;
2719
+ required: true;
2720
+ clean: (value: unknown) => number | undefined;
2721
+ };
2722
+ data: {
2723
+ label: string;
2724
+ comments: string;
2725
+ type: "string";
2726
+ required: true;
2727
+ example: string;
2728
+ placeholder: string;
2729
+ clean: (value: unknown) => string | undefined;
2730
+ };
2731
+ version: {
2732
+ label: string;
2733
+ comments: string;
2734
+ type: "string";
2735
+ required: false;
2736
+ clean: (value: unknown) => string | undefined;
2737
+ placeholder: string;
2738
+ example: string;
2739
+ };
2740
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2741
+ data: {
2742
+ message: MESSAGES;
2743
+ };
2744
+ }>;
2745
+ getAccount: import("@prismatic-io/spectral").ActionDefinition<{
2746
+ connection: {
2747
+ label: string;
2748
+ comments: string;
2749
+ type: "connection";
2750
+ required: true;
2751
+ };
2752
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2753
+ data: GetAccountResponse;
2754
+ }>;
2755
+ };
2756
+ triggers: {
2757
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
2758
+ connection: {
2759
+ label: string;
2760
+ comments: string;
2761
+ type: "connection";
2762
+ required: true;
2763
+ };
2764
+ pollResourceType: {
2765
+ label: string;
2766
+ type: "string";
2767
+ required: true;
2768
+ model: {
2769
+ label: string;
2770
+ value: string;
2771
+ }[];
2772
+ comments: string;
2773
+ example: string;
2774
+ clean: (value: unknown, defaultValue?: string) => string;
2775
+ };
2776
+ lookBackDate: {
2777
+ label: string;
2778
+ placeholder: string;
2779
+ type: "string";
2780
+ required: false;
2781
+ comments: string;
2782
+ example: string;
2783
+ clean: (value: unknown) => string;
2784
+ };
2785
+ showNewRecords: {
2786
+ label: string;
2787
+ type: "boolean";
2788
+ required: false;
2789
+ default: string;
2790
+ comments: string;
2791
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
2792
+ };
2793
+ showUpdatedRecords: {
2794
+ label: string;
2795
+ type: "boolean";
2796
+ required: false;
2797
+ default: string;
2798
+ comments: string;
2799
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
2800
+ };
2801
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
2802
+ payload: {
2803
+ body: {
2804
+ data: {
2805
+ created: GorgiasRecord[];
2806
+ updated: GorgiasRecord[];
2807
+ };
2808
+ };
2809
+ headers: {
2810
+ [key: string]: string;
2811
+ };
2812
+ queryParameters: {
2813
+ [key: string]: string;
2814
+ };
2815
+ rawBody: {
2816
+ data: unknown;
2817
+ contentType?: string;
2818
+ };
2819
+ pathFragment: string;
2820
+ webhookUrls: {
2821
+ [key: string]: string;
2822
+ };
2823
+ webhookApiKeys: {
2824
+ [key: string]: string[];
2825
+ };
2826
+ invokeUrl: string;
2827
+ executionId: string;
2828
+ customer: import("@prismatic-io/spectral").CustomerAttributes;
2829
+ instance: import("@prismatic-io/spectral").InstanceAttributes;
2830
+ user: import("@prismatic-io/spectral").UserAttributes;
2831
+ integration: import("@prismatic-io/spectral").IntegrationAttributes;
2832
+ flow: import("@prismatic-io/spectral").FlowAttributes;
2833
+ startedAt: string;
2834
+ globalDebug: boolean;
2835
+ paginationState?: Record<string, unknown> | undefined;
2836
+ };
2837
+ polledNoChanges: boolean;
2838
+ }, import("@prismatic-io/spectral").Inputs>;
2839
+ };
2840
+ connections: (import("@prismatic-io/spectral").KeyedConnection<{
2841
+ key: "gorgias-oauth2";
2842
+ display: {
2843
+ label: string;
2844
+ description: string;
2845
+ };
2846
+ oauth2Type: import("@prismatic-io/spectral").OAuth2Type.AuthorizationCode;
2847
+ inputs: {
2848
+ domain: {
2849
+ label: string;
2850
+ type: "string";
2851
+ required: true;
2852
+ shown: boolean;
2853
+ comments: string;
2854
+ example: string;
2855
+ };
2856
+ authorizeUrl: {
2857
+ label: string;
2858
+ type: "string";
2859
+ required: true;
2860
+ shown: boolean;
2861
+ comments: string;
2862
+ example: string;
2863
+ };
2864
+ tokenUrl: {
2865
+ label: string;
2866
+ type: "string";
2867
+ required: true;
2868
+ shown: boolean;
2869
+ comments: string;
2870
+ example: string;
2871
+ };
2872
+ scopes: {
2873
+ label: string;
2874
+ type: "string";
2875
+ required: false;
2876
+ shown: boolean;
2877
+ comments: string;
2878
+ example: string;
2879
+ default: string;
2880
+ };
2881
+ clientId: {
2882
+ label: string;
2883
+ type: "string";
2884
+ required: true;
2885
+ shown: boolean;
2886
+ };
2887
+ clientSecret: {
2888
+ label: string;
2889
+ type: "password";
2890
+ required: true;
2891
+ shown: boolean;
2892
+ };
2893
+ };
2894
+ }, "gorgias-oauth2"> | import("@prismatic-io/spectral").KeyedConnection<{
2895
+ key: "gorgias-api-key";
2896
+ display: {
2897
+ label: string;
2898
+ description: string;
2899
+ };
2900
+ inputs: {
2901
+ domain: {
2902
+ label: string;
2903
+ type: "string";
2904
+ required: true;
2905
+ shown: boolean;
2906
+ comments: string;
2907
+ example: string;
2908
+ };
2909
+ username: {
2910
+ label: string;
2911
+ type: "string";
2912
+ required: true;
2913
+ comments: string;
2914
+ };
2915
+ apiKey: {
2916
+ label: string;
2917
+ type: "password";
2918
+ required: true;
2919
+ comments: string;
2920
+ };
2921
+ };
2922
+ }, "gorgias-api-key">)[];
2923
+ dataSources: {
2924
+ selectCustomer: import("@prismatic-io/spectral").DataSourceDefinition<{
2925
+ view_id: {
2926
+ label: string;
2927
+ comments: string;
2928
+ type: "string";
2929
+ required: false;
2930
+ clean: (valueBase: unknown) => number | undefined;
2931
+ placeholder: string;
2932
+ };
2933
+ connection: {
2934
+ label: string;
2935
+ comments: string;
2936
+ type: "connection";
2937
+ required: true;
2938
+ };
2939
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
2940
+ selectEvent: import("@prismatic-io/spectral").DataSourceDefinition<{
2941
+ created_datetime: {
2942
+ label: string;
2943
+ comments: string;
2944
+ type: "code";
2945
+ language: "json";
2946
+ required: false;
2947
+ example: string;
2948
+ clean: (value: unknown) => object | undefined;
2949
+ };
2950
+ object_id: {
2951
+ label: string;
2952
+ comments: string;
2953
+ type: "string";
2954
+ example: string;
2955
+ placeholder: string;
2956
+ required: false;
2957
+ clean: (value: unknown) => number | undefined;
2958
+ };
2959
+ object_type: {
2960
+ label: string;
2961
+ comments: string;
2962
+ type: "string";
2963
+ required: false;
2964
+ clean: (value: unknown) => string | undefined;
2965
+ model: {
2966
+ value: string;
2967
+ label: string;
2968
+ }[];
2969
+ example: string;
2970
+ placeholder: string;
2971
+ };
2972
+ types: {
2973
+ label: string;
2974
+ comments: string;
2975
+ type: "string";
2976
+ collection: "valuelist";
2977
+ model: {
2978
+ value: string;
2979
+ label: string;
2980
+ }[];
2981
+ example: string;
2982
+ placeholder: string;
2983
+ required: false;
2984
+ clean: (value: unknown) => string[] | undefined;
2985
+ };
2986
+ user_ids: {
2987
+ label: string;
2988
+ comments: string;
2989
+ type: "string";
2990
+ collection: "valuelist";
2991
+ example: string;
2992
+ placeholder: string;
2993
+ required: false;
2994
+ clean: (value: unknown) => string[] | undefined;
2995
+ };
2996
+ connection: {
2997
+ label: string;
2998
+ comments: string;
2999
+ type: "connection";
3000
+ required: true;
3001
+ };
3002
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
3003
+ selectMessage: import("@prismatic-io/spectral").DataSourceDefinition<{
3004
+ ticket_id: {
3005
+ label: string;
3006
+ comments: string;
3007
+ type: "string";
3008
+ required: false;
3009
+ clean: (value: unknown) => number | undefined;
3010
+ placeholder: string;
3011
+ example: string;
3012
+ };
3013
+ connection: {
3014
+ label: string;
3015
+ comments: string;
3016
+ type: "connection";
3017
+ required: true;
3018
+ };
3019
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
3020
+ selectTicket: import("@prismatic-io/spectral").DataSourceDefinition<{
3021
+ customer_id: {
3022
+ label: string;
3023
+ comments: string;
3024
+ type: "string";
3025
+ required: false;
3026
+ clean: (valueBase: unknown) => number | undefined;
3027
+ placeholder: string;
3028
+ example: string;
3029
+ };
3030
+ view_id: {
3031
+ label: string;
3032
+ comments: string;
3033
+ type: "string";
3034
+ required: false;
3035
+ clean: (valueBase: unknown) => number | undefined;
3036
+ placeholder: string;
3037
+ example: string;
3038
+ };
3039
+ rule_id: {
3040
+ label: string;
3041
+ comments: string;
3042
+ type: "string";
3043
+ required: false;
3044
+ clean: (valueBase: unknown) => number | undefined;
3045
+ placeholder: string;
3046
+ example: string;
3047
+ };
3048
+ connection: {
3049
+ label: string;
3050
+ comments: string;
3051
+ type: "connection";
3052
+ required: true;
3053
+ };
3054
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
3055
+ };
3056
+ }>;
3057
+ export = _default;