@prismatic-io/components-intercom 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,1265 @@
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/interfaces.d.ts
7
+ interface Pages {
8
+ type: string;
9
+ page: number;
10
+ per_page: number;
11
+ next: {
12
+ starting_after: string | undefined;
13
+ } | null;
14
+ total_pages: number;
15
+ }
16
+ interface Company {
17
+ type: string;
18
+ company_id: string;
19
+ id: string;
20
+ app_id: string;
21
+ name: string;
22
+ remote_created_at: number;
23
+ created_at: number;
24
+ updated_at: number;
25
+ monthly_spend: number;
26
+ session_count: number;
27
+ user_count: number;
28
+ tags: Tags;
29
+ segments: Segments;
30
+ plan: CustomAttributes;
31
+ custom_attributes: CustomAttributes;
32
+ }
33
+ interface CustomAttributes {
34
+ [key: string]: unknown;
35
+ }
36
+ interface Segments {
37
+ type: string;
38
+ segments: unknown[];
39
+ }
40
+ interface Tags {
41
+ type: string;
42
+ tags: unknown[];
43
+ }
44
+ interface Contact {
45
+ type: string;
46
+ id: string;
47
+ external_id: string;
48
+ workspace_id: string;
49
+ role: string;
50
+ email: string;
51
+ email_domain: string;
52
+ phone: string;
53
+ formatted_phone: string;
54
+ name: string;
55
+ owner_id: number;
56
+ has_hard_bounced: boolean;
57
+ marked_email_as_spam: boolean;
58
+ unsubscribed_from_emails: boolean;
59
+ created_at: number;
60
+ updated_at: number;
61
+ signed_up_at: number;
62
+ last_seen_at: number;
63
+ last_replied_at: number;
64
+ last_contacted_at: number;
65
+ last_email_opened_at: number;
66
+ last_email_clicked_at: number;
67
+ language_override: string;
68
+ browser: string;
69
+ browser_version: string;
70
+ browser_language: string;
71
+ os: string;
72
+ android_app_name: string;
73
+ android_app_version: string;
74
+ android_device: string;
75
+ android_os_version: string;
76
+ android_sdk_version: string;
77
+ android_last_seen_at: number;
78
+ ios_app_name: string;
79
+ ios_app_version: string;
80
+ ios_device: string;
81
+ ios_os_version: string;
82
+ ios_sdk_version: string;
83
+ ios_last_seen_at: number;
84
+ custom_attributes: CustomAttributes;
85
+ avatar: Avatar;
86
+ tags: Companies;
87
+ notes: Companies;
88
+ companies: Companies;
89
+ location: Location;
90
+ social_profiles: SocialProfiles;
91
+ }
92
+ interface Avatar {
93
+ type: string;
94
+ image_url: string;
95
+ }
96
+ interface Companies {
97
+ url: string;
98
+ total_count: number;
99
+ has_more: boolean;
100
+ data?: CompaniesDatum[];
101
+ }
102
+ interface CompaniesDatum {
103
+ type: string;
104
+ id: string;
105
+ url: string;
106
+ }
107
+ interface Location {
108
+ type: string;
109
+ country: string;
110
+ region: string;
111
+ city: string;
112
+ }
113
+ interface SocialProfiles {
114
+ data: SocialProfilesDatum[];
115
+ }
116
+ interface SocialProfilesDatum {
117
+ type: string;
118
+ name: string;
119
+ url: string;
120
+ }
121
+ //#endregion
122
+ //#region src/types.d.ts
123
+ interface IntercomRecord {
124
+ id: string;
125
+ created_at: number;
126
+ updated_at: number;
127
+ [key: string]: unknown;
128
+ }
129
+ interface PollingChangesObject {
130
+ created: IntercomRecord[];
131
+ updated: IntercomRecord[];
132
+ }
133
+ //#endregion
134
+ //#region npm-dist/.entry.d.ts
135
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
136
+ key: "intercom";
137
+ public: true;
138
+ documentationUrl: "https://prismatic.io/docs/components/intercom/";
139
+ display: {
140
+ label: string;
141
+ description: string;
142
+ category: "Application Connectors";
143
+ iconPath: string;
144
+ };
145
+ hooks: {
146
+ error: (error: unknown) => unknown;
147
+ };
148
+ actions: {
149
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
150
+ url: {
151
+ label: string;
152
+ placeholder: string;
153
+ type: "string";
154
+ required: true;
155
+ comments: string;
156
+ example: string;
157
+ clean: (value: unknown) => string;
158
+ };
159
+ method: {
160
+ label: string;
161
+ type: "string";
162
+ required: true;
163
+ model: {
164
+ label: Method;
165
+ value: Method;
166
+ }[];
167
+ comments: string;
168
+ clean: (value: unknown) => string;
169
+ };
170
+ data: {
171
+ label: string;
172
+ placeholder: string;
173
+ type: "string";
174
+ required: false;
175
+ comments: string;
176
+ example: string;
177
+ };
178
+ formData: {
179
+ label: string;
180
+ placeholder: string;
181
+ type: "string";
182
+ collection: "keyvaluelist";
183
+ required: false;
184
+ comments: string;
185
+ example: string;
186
+ };
187
+ fileData: {
188
+ label: string;
189
+ placeholder: string;
190
+ type: "string";
191
+ collection: "keyvaluelist";
192
+ required: false;
193
+ comments: string;
194
+ example: string;
195
+ };
196
+ fileDataFileNames: {
197
+ label: string;
198
+ placeholder: string;
199
+ type: "string";
200
+ collection: "keyvaluelist";
201
+ required: false;
202
+ comments: string;
203
+ clean: (values: any) => Record<string, string> | undefined;
204
+ };
205
+ queryParams: {
206
+ label: string;
207
+ placeholder: string;
208
+ type: "string";
209
+ collection: "keyvaluelist";
210
+ required: false;
211
+ comments: string;
212
+ };
213
+ headers: {
214
+ label: string;
215
+ placeholder: string;
216
+ type: "string";
217
+ collection: "keyvaluelist";
218
+ required: false;
219
+ comments: string;
220
+ example: string;
221
+ };
222
+ responseType: {
223
+ label: string;
224
+ placeholder: string;
225
+ type: "string";
226
+ default: string;
227
+ required: true;
228
+ comments: string;
229
+ model: {
230
+ label: ResponseType;
231
+ value: ResponseType;
232
+ }[];
233
+ clean: (value: unknown) => ResponseType;
234
+ };
235
+ timeout: {
236
+ label: string;
237
+ type: "string";
238
+ required: false;
239
+ comments: string;
240
+ example: string;
241
+ clean: (value: unknown) => number;
242
+ };
243
+ retryDelayMS: {
244
+ label: string;
245
+ placeholder: string;
246
+ type: "string";
247
+ required: false;
248
+ comments: string;
249
+ default: string;
250
+ clean: (value: unknown) => number;
251
+ };
252
+ retryAllErrors: {
253
+ label: string;
254
+ type: "boolean";
255
+ default: string;
256
+ required: false;
257
+ comments: string;
258
+ clean: (value: unknown) => boolean;
259
+ };
260
+ maxRetries: {
261
+ label: string;
262
+ placeholder: string;
263
+ type: "string";
264
+ required: false;
265
+ comments: string;
266
+ default: string;
267
+ clean: (value: unknown) => number;
268
+ };
269
+ useExponentialBackoff: {
270
+ label: string;
271
+ type: "boolean";
272
+ default: string;
273
+ required: false;
274
+ comments: string;
275
+ clean: (value: unknown) => boolean;
276
+ };
277
+ connection: {
278
+ label: string;
279
+ type: "connection";
280
+ required: true;
281
+ };
282
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
283
+ data: any;
284
+ }>;
285
+ listTicketTypes: import("@prismatic-io/spectral").ActionDefinition<{
286
+ connection: {
287
+ label: string;
288
+ type: "connection";
289
+ required: true;
290
+ };
291
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
292
+ data: any;
293
+ }>;
294
+ createTicket: import("@prismatic-io/spectral").ActionDefinition<{
295
+ ticketTypeId: {
296
+ label: string;
297
+ type: "string";
298
+ comments: string;
299
+ example: string;
300
+ placeholder: string;
301
+ required: true;
302
+ dataSource: string;
303
+ clean: (value: unknown) => string | undefined;
304
+ };
305
+ contactId: {
306
+ label: string;
307
+ type: "string";
308
+ comments: string;
309
+ example: string;
310
+ placeholder: string;
311
+ required: true;
312
+ dataSource: string;
313
+ clean: (value: unknown) => string | undefined;
314
+ };
315
+ companyId: {
316
+ label: string;
317
+ type: "string";
318
+ comments: string;
319
+ example: string;
320
+ placeholder: string;
321
+ required: false;
322
+ dataSource: string;
323
+ clean: (value: unknown) => string | undefined;
324
+ };
325
+ ticketAttributes: {
326
+ label: string;
327
+ language: "json";
328
+ type: "code";
329
+ comments: string;
330
+ required: false;
331
+ example: string;
332
+ clean: (value: unknown) => object | undefined;
333
+ };
334
+ connection: {
335
+ label: string;
336
+ type: "connection";
337
+ required: true;
338
+ };
339
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
340
+ data: any;
341
+ }>;
342
+ getTicket: import("@prismatic-io/spectral").ActionDefinition<{
343
+ ticketId: {
344
+ label: string;
345
+ comments: string;
346
+ required: true;
347
+ example: string;
348
+ placeholder: string;
349
+ dataSource: string;
350
+ type: "string";
351
+ clean: (value: unknown) => string | undefined;
352
+ };
353
+ connection: {
354
+ label: string;
355
+ type: "connection";
356
+ required: true;
357
+ };
358
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
359
+ data: any;
360
+ }>;
361
+ createTag: import("@prismatic-io/spectral").ActionDefinition<{
362
+ connection: {
363
+ label: string;
364
+ type: "connection";
365
+ required: true;
366
+ };
367
+ name: {
368
+ label: string;
369
+ type: "string";
370
+ required: true;
371
+ clean: (value: unknown, defaultValue?: string) => string;
372
+ comments: string;
373
+ };
374
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
375
+ data: any;
376
+ }>;
377
+ listTags: import("@prismatic-io/spectral").ActionDefinition<{
378
+ connection: {
379
+ label: string;
380
+ type: "connection";
381
+ required: true;
382
+ };
383
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
384
+ data: any;
385
+ }>;
386
+ updateTag: import("@prismatic-io/spectral").ActionDefinition<{
387
+ connection: {
388
+ label: string;
389
+ type: "connection";
390
+ required: true;
391
+ };
392
+ id: {
393
+ label: string;
394
+ type: "string";
395
+ required: true;
396
+ dataSource: string;
397
+ clean: (value: unknown, defaultValue?: string) => string;
398
+ comments: string;
399
+ };
400
+ name: {
401
+ label: string;
402
+ type: "string";
403
+ required: true;
404
+ clean: (value: unknown, defaultValue?: string) => string;
405
+ comments: string;
406
+ };
407
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
408
+ data: any;
409
+ }>;
410
+ deleteTag: import("@prismatic-io/spectral").ActionDefinition<{
411
+ connection: {
412
+ label: string;
413
+ type: "connection";
414
+ required: true;
415
+ };
416
+ id: {
417
+ label: string;
418
+ type: "string";
419
+ required: true;
420
+ dataSource: string;
421
+ clean: (value: unknown, defaultValue?: string) => string;
422
+ comments: string;
423
+ };
424
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
425
+ data: any;
426
+ }>;
427
+ listCompanies: import("@prismatic-io/spectral").ActionDefinition<{
428
+ fetchAll: {
429
+ label: string;
430
+ type: "boolean";
431
+ comments: string;
432
+ required: false;
433
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
434
+ };
435
+ page: {
436
+ label: string;
437
+ type: "string";
438
+ comments: string;
439
+ required: false;
440
+ example: string;
441
+ placeholder: string;
442
+ clean: (value: unknown) => string | undefined;
443
+ };
444
+ perPage: {
445
+ label: string;
446
+ type: "string";
447
+ comments: string;
448
+ required: false;
449
+ example: string;
450
+ placeholder: string;
451
+ clean: (value: unknown) => string | undefined;
452
+ };
453
+ order: {
454
+ label: string;
455
+ type: "string";
456
+ comments: string;
457
+ required: false;
458
+ model: {
459
+ value: string;
460
+ label: string;
461
+ }[];
462
+ default: string;
463
+ clean: (value: unknown) => string | undefined;
464
+ };
465
+ companyName: {
466
+ required: false;
467
+ comments: string;
468
+ label: string;
469
+ type: "string";
470
+ clean: (value: unknown, defaultValue?: string) => string;
471
+ };
472
+ companyId: {
473
+ comments: string;
474
+ label: string;
475
+ type: "string";
476
+ example: string;
477
+ placeholder: string;
478
+ required: false;
479
+ dataSource: string;
480
+ clean: (value: unknown) => string | undefined;
481
+ };
482
+ tagId: {
483
+ required: false;
484
+ comments: string;
485
+ label: string;
486
+ type: "string";
487
+ dataSource: string;
488
+ clean: (value: unknown, defaultValue?: string) => string;
489
+ };
490
+ segmentId: {
491
+ label: string;
492
+ type: "string";
493
+ required: false;
494
+ clean: (value: unknown, defaultValue?: string) => string;
495
+ comments: string;
496
+ };
497
+ startingAfter: {
498
+ label: string;
499
+ type: "string";
500
+ clean: (value: unknown) => string | undefined;
501
+ comments: string;
502
+ };
503
+ connection: {
504
+ label: string;
505
+ type: "connection";
506
+ required: true;
507
+ };
508
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
509
+ data: {
510
+ data: Company[];
511
+ pages: Pages | null;
512
+ };
513
+ }>;
514
+ createCompany: import("@prismatic-io/spectral").ActionDefinition<{
515
+ connection: {
516
+ label: string;
517
+ type: "connection";
518
+ required: true;
519
+ };
520
+ company_id: {
521
+ label: string;
522
+ type: "string";
523
+ required: true;
524
+ clean: (value: unknown, defaultValue?: string) => string;
525
+ dataSource: string;
526
+ comments: string;
527
+ };
528
+ remote_created_at: {
529
+ label: string;
530
+ type: "string";
531
+ required: true;
532
+ clean: (value: unknown) => string;
533
+ comments: string;
534
+ };
535
+ name: {
536
+ label: string;
537
+ type: "string";
538
+ required: true;
539
+ clean: (value: unknown, defaultValue?: string) => string;
540
+ comments: string;
541
+ };
542
+ monthly_spend: {
543
+ label: string;
544
+ type: "string";
545
+ clean: (value: unknown, defaultValue?: number) => number;
546
+ comments: string;
547
+ };
548
+ plan: {
549
+ label: string;
550
+ type: "string";
551
+ clean: (value: unknown, defaultValue?: string) => string;
552
+ comments: string;
553
+ };
554
+ size: {
555
+ label: string;
556
+ type: "string";
557
+ clean: (value: unknown, defaultValue?: number) => number;
558
+ comments: string;
559
+ };
560
+ website: {
561
+ label: string;
562
+ type: "string";
563
+ clean: (value: unknown, defaultValue?: string) => string;
564
+ comments: string;
565
+ };
566
+ industry: {
567
+ label: string;
568
+ type: "string";
569
+ clean: (value: unknown, defaultValue?: string) => string;
570
+ comments: string;
571
+ };
572
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
573
+ data: any;
574
+ }>;
575
+ updateCompany: import("@prismatic-io/spectral").ActionDefinition<{
576
+ connection: {
577
+ label: string;
578
+ type: "connection";
579
+ required: true;
580
+ };
581
+ company_id: {
582
+ label: string;
583
+ type: "string";
584
+ required: true;
585
+ clean: (value: unknown, defaultValue?: string) => string;
586
+ dataSource: string;
587
+ comments: string;
588
+ };
589
+ remote_created_at: {
590
+ required: false;
591
+ label: string;
592
+ type: "string";
593
+ clean: (value: unknown) => string;
594
+ comments: string;
595
+ };
596
+ name: {
597
+ required: false;
598
+ label: string;
599
+ type: "string";
600
+ clean: (value: unknown, defaultValue?: string) => string;
601
+ comments: string;
602
+ };
603
+ monthly_spend: {
604
+ label: string;
605
+ type: "string";
606
+ clean: (value: unknown, defaultValue?: number) => number;
607
+ comments: string;
608
+ };
609
+ plan: {
610
+ label: string;
611
+ type: "string";
612
+ clean: (value: unknown, defaultValue?: string) => string;
613
+ comments: string;
614
+ };
615
+ size: {
616
+ label: string;
617
+ type: "string";
618
+ clean: (value: unknown, defaultValue?: number) => number;
619
+ comments: string;
620
+ };
621
+ website: {
622
+ label: string;
623
+ type: "string";
624
+ clean: (value: unknown, defaultValue?: string) => string;
625
+ comments: string;
626
+ };
627
+ industry: {
628
+ label: string;
629
+ type: "string";
630
+ clean: (value: unknown, defaultValue?: string) => string;
631
+ comments: string;
632
+ };
633
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
634
+ data: any;
635
+ }>;
636
+ deleteCompany: import("@prismatic-io/spectral").ActionDefinition<{
637
+ connection: {
638
+ label: string;
639
+ type: "connection";
640
+ required: true;
641
+ };
642
+ id: {
643
+ label: string;
644
+ type: "string";
645
+ required: true;
646
+ clean: (value: unknown, defaultValue?: string) => string;
647
+ dataSource: string;
648
+ comments: string;
649
+ };
650
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
651
+ data: any;
652
+ }>;
653
+ getCompany: import("@prismatic-io/spectral").ActionDefinition<{
654
+ connection: {
655
+ label: string;
656
+ type: "connection";
657
+ required: true;
658
+ };
659
+ id: {
660
+ label: string;
661
+ type: "string";
662
+ required: true;
663
+ clean: (value: unknown, defaultValue?: string) => string;
664
+ dataSource: string;
665
+ comments: string;
666
+ };
667
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
668
+ data: any;
669
+ }>;
670
+ listContacts: import("@prismatic-io/spectral").ActionDefinition<{
671
+ fetchAll: {
672
+ label: string;
673
+ type: "boolean";
674
+ comments: string;
675
+ required: false;
676
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
677
+ };
678
+ page: {
679
+ label: string;
680
+ type: "string";
681
+ comments: string;
682
+ required: false;
683
+ example: string;
684
+ placeholder: string;
685
+ clean: (value: unknown) => string | undefined;
686
+ };
687
+ perPage: {
688
+ label: string;
689
+ type: "string";
690
+ comments: string;
691
+ required: false;
692
+ example: string;
693
+ placeholder: string;
694
+ clean: (value: unknown) => string | undefined;
695
+ };
696
+ order: {
697
+ label: string;
698
+ type: "string";
699
+ comments: string;
700
+ required: false;
701
+ model: {
702
+ value: string;
703
+ label: string;
704
+ }[];
705
+ default: string;
706
+ clean: (value: unknown) => string | undefined;
707
+ };
708
+ startingAfter: {
709
+ label: string;
710
+ type: "string";
711
+ clean: (value: unknown) => string | undefined;
712
+ comments: string;
713
+ };
714
+ connection: {
715
+ label: string;
716
+ type: "connection";
717
+ required: true;
718
+ };
719
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
720
+ data: {
721
+ data: Contact[];
722
+ pages: Pages | null;
723
+ };
724
+ }>;
725
+ createContact: import("@prismatic-io/spectral").ActionDefinition<{
726
+ connection: {
727
+ label: string;
728
+ type: "connection";
729
+ required: true;
730
+ };
731
+ role: {
732
+ label: string;
733
+ type: "string";
734
+ required: true;
735
+ model: {
736
+ label: string;
737
+ value: string;
738
+ }[];
739
+ clean: (value: unknown, defaultValue?: string) => string;
740
+ comments: string;
741
+ };
742
+ external_id: {
743
+ label: string;
744
+ type: "string";
745
+ clean: (value: unknown) => string | undefined;
746
+ comments: string;
747
+ };
748
+ email: {
749
+ label: string;
750
+ type: "string";
751
+ required: true;
752
+ clean: (value: unknown, defaultValue?: string) => string;
753
+ comments: string;
754
+ };
755
+ phone: {
756
+ label: string;
757
+ type: "string";
758
+ clean: (value: unknown, defaultValue?: string) => string;
759
+ comments: string;
760
+ };
761
+ name: {
762
+ label: string;
763
+ type: "string";
764
+ clean: (value: unknown, defaultValue?: string) => string;
765
+ comments: string;
766
+ };
767
+ avatar: {
768
+ label: string;
769
+ type: "string";
770
+ clean: (value: unknown, defaultValue?: string) => string;
771
+ comments: string;
772
+ };
773
+ signed_up_at: {
774
+ label: string;
775
+ type: "string";
776
+ clean: (value: unknown) => string;
777
+ comments: string;
778
+ };
779
+ last_seen_at: {
780
+ label: string;
781
+ type: "string";
782
+ clean: (value: unknown) => string;
783
+ comments: string;
784
+ };
785
+ unsubscribed_from_emails: {
786
+ label: string;
787
+ type: "boolean";
788
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
789
+ comments: string;
790
+ };
791
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
792
+ data: any;
793
+ }>;
794
+ updateContact: import("@prismatic-io/spectral").ActionDefinition<{
795
+ connection: {
796
+ label: string;
797
+ type: "connection";
798
+ required: true;
799
+ };
800
+ id: {
801
+ required: true;
802
+ label: string;
803
+ dataSource: string;
804
+ type: "string";
805
+ clean: (value: unknown) => string | undefined;
806
+ comments: string;
807
+ };
808
+ role: {
809
+ label: string;
810
+ type: "string";
811
+ required: true;
812
+ model: {
813
+ label: string;
814
+ value: string;
815
+ }[];
816
+ clean: (value: unknown, defaultValue?: string) => string;
817
+ comments: string;
818
+ };
819
+ external_id: {
820
+ label: string;
821
+ type: "string";
822
+ clean: (value: unknown) => string | undefined;
823
+ comments: string;
824
+ };
825
+ email: {
826
+ label: string;
827
+ type: "string";
828
+ required: true;
829
+ clean: (value: unknown, defaultValue?: string) => string;
830
+ comments: string;
831
+ };
832
+ phone: {
833
+ label: string;
834
+ type: "string";
835
+ clean: (value: unknown, defaultValue?: string) => string;
836
+ comments: string;
837
+ };
838
+ name: {
839
+ label: string;
840
+ type: "string";
841
+ clean: (value: unknown, defaultValue?: string) => string;
842
+ comments: string;
843
+ };
844
+ avatar: {
845
+ label: string;
846
+ type: "string";
847
+ clean: (value: unknown, defaultValue?: string) => string;
848
+ comments: string;
849
+ };
850
+ signed_up_at: {
851
+ label: string;
852
+ type: "string";
853
+ clean: (value: unknown) => string;
854
+ comments: string;
855
+ };
856
+ last_seen_at: {
857
+ label: string;
858
+ type: "string";
859
+ clean: (value: unknown) => string;
860
+ comments: string;
861
+ };
862
+ unsubscribed_from_emails: {
863
+ label: string;
864
+ type: "boolean";
865
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
866
+ comments: string;
867
+ };
868
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
869
+ data: any;
870
+ }>;
871
+ deleteContact: import("@prismatic-io/spectral").ActionDefinition<{
872
+ connection: {
873
+ label: string;
874
+ type: "connection";
875
+ required: true;
876
+ };
877
+ id: {
878
+ required: true;
879
+ label: string;
880
+ dataSource: string;
881
+ type: "string";
882
+ clean: (value: unknown) => string | undefined;
883
+ comments: string;
884
+ };
885
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
886
+ data: any;
887
+ }>;
888
+ archiveContact: import("@prismatic-io/spectral").ActionDefinition<{
889
+ connection: {
890
+ label: string;
891
+ type: "connection";
892
+ required: true;
893
+ };
894
+ id: {
895
+ required: true;
896
+ label: string;
897
+ dataSource: string;
898
+ type: "string";
899
+ clean: (value: unknown) => string | undefined;
900
+ comments: string;
901
+ };
902
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
903
+ data: any;
904
+ }>;
905
+ unarchiveContact: import("@prismatic-io/spectral").ActionDefinition<{
906
+ connection: {
907
+ label: string;
908
+ type: "connection";
909
+ required: true;
910
+ };
911
+ id: {
912
+ required: true;
913
+ label: string;
914
+ dataSource: string;
915
+ type: "string";
916
+ clean: (value: unknown) => string | undefined;
917
+ comments: string;
918
+ };
919
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
920
+ data: any;
921
+ }>;
922
+ searchContacts: import("@prismatic-io/spectral").ActionDefinition<{
923
+ connection: {
924
+ label: string;
925
+ type: "connection";
926
+ required: true;
927
+ };
928
+ role: {
929
+ required: false;
930
+ label: string;
931
+ type: "string";
932
+ model: {
933
+ label: string;
934
+ value: string;
935
+ }[];
936
+ clean: (value: unknown, defaultValue?: string) => string;
937
+ comments: string;
938
+ };
939
+ name: {
940
+ required: false;
941
+ label: string;
942
+ type: "string";
943
+ clean: (value: unknown, defaultValue?: string) => string;
944
+ comments: string;
945
+ };
946
+ email: {
947
+ required: false;
948
+ label: string;
949
+ type: "string";
950
+ clean: (value: unknown, defaultValue?: string) => string;
951
+ comments: string;
952
+ };
953
+ jsonQuery: {
954
+ label: string;
955
+ required: false;
956
+ type: "code";
957
+ language: "json";
958
+ clean: (value: unknown) => object;
959
+ comments: string;
960
+ };
961
+ startingAfter: {
962
+ label: string;
963
+ type: "string";
964
+ clean: (value: unknown) => string | undefined;
965
+ comments: string;
966
+ };
967
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
968
+ data: any;
969
+ }>;
970
+ attachTag: import("@prismatic-io/spectral").ActionDefinition<{
971
+ connection: {
972
+ label: string;
973
+ type: "connection";
974
+ required: true;
975
+ };
976
+ id: {
977
+ required: true;
978
+ label: string;
979
+ dataSource: string;
980
+ type: "string";
981
+ clean: (value: unknown) => string | undefined;
982
+ comments: string;
983
+ };
984
+ tagId: {
985
+ label: string;
986
+ type: "string";
987
+ required: true;
988
+ clean: (value: unknown, defaultValue?: string) => string;
989
+ comments: string;
990
+ dataSource: string;
991
+ };
992
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
993
+ data: any;
994
+ }>;
995
+ detachTag: import("@prismatic-io/spectral").ActionDefinition<{
996
+ connection: {
997
+ label: string;
998
+ type: "connection";
999
+ required: true;
1000
+ };
1001
+ id: {
1002
+ required: true;
1003
+ label: string;
1004
+ dataSource: string;
1005
+ type: "string";
1006
+ clean: (value: unknown) => string | undefined;
1007
+ comments: string;
1008
+ };
1009
+ tagId: {
1010
+ label: string;
1011
+ type: "string";
1012
+ required: true;
1013
+ clean: (value: unknown, defaultValue?: string) => string;
1014
+ comments: string;
1015
+ dataSource: string;
1016
+ };
1017
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1018
+ data: any;
1019
+ }>;
1020
+ attachCompany: import("@prismatic-io/spectral").ActionDefinition<{
1021
+ connection: {
1022
+ label: string;
1023
+ type: "connection";
1024
+ required: true;
1025
+ };
1026
+ id: {
1027
+ required: true;
1028
+ label: string;
1029
+ dataSource: string;
1030
+ type: "string";
1031
+ clean: (value: unknown) => string | undefined;
1032
+ comments: string;
1033
+ };
1034
+ companyId: {
1035
+ label: string;
1036
+ type: "string";
1037
+ required: true;
1038
+ clean: (value: unknown, defaultValue?: string) => string;
1039
+ dataSource: string;
1040
+ comments: string;
1041
+ };
1042
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1043
+ data: any;
1044
+ }>;
1045
+ detachCompany: import("@prismatic-io/spectral").ActionDefinition<{
1046
+ connection: {
1047
+ label: string;
1048
+ type: "connection";
1049
+ required: true;
1050
+ };
1051
+ id: {
1052
+ required: true;
1053
+ label: string;
1054
+ dataSource: string;
1055
+ type: "string";
1056
+ clean: (value: unknown) => string | undefined;
1057
+ comments: string;
1058
+ };
1059
+ companyId: {
1060
+ label: string;
1061
+ type: "string";
1062
+ required: true;
1063
+ clean: (value: unknown, defaultValue?: string) => string;
1064
+ dataSource: string;
1065
+ comments: string;
1066
+ };
1067
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1068
+ data: any;
1069
+ }>;
1070
+ getContact: import("@prismatic-io/spectral").ActionDefinition<{
1071
+ connection: {
1072
+ label: string;
1073
+ type: "connection";
1074
+ required: true;
1075
+ };
1076
+ id: {
1077
+ required: true;
1078
+ label: string;
1079
+ dataSource: string;
1080
+ type: "string";
1081
+ clean: (value: unknown) => string | undefined;
1082
+ comments: string;
1083
+ };
1084
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1085
+ data: any;
1086
+ }>;
1087
+ };
1088
+ triggers: {
1089
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
1090
+ connection: {
1091
+ label: string;
1092
+ type: "connection";
1093
+ required: true;
1094
+ };
1095
+ resourceType: {
1096
+ label: string;
1097
+ type: "string";
1098
+ required: true;
1099
+ comments: string;
1100
+ model: {
1101
+ label: "Contacts" | "Companies";
1102
+ value: string;
1103
+ }[];
1104
+ clean: (value: unknown, defaultValue?: string) => string;
1105
+ };
1106
+ showNewRecords: {
1107
+ label: string;
1108
+ type: "boolean";
1109
+ required: true;
1110
+ default: string;
1111
+ comments: string;
1112
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1113
+ };
1114
+ showUpdatedRecords: {
1115
+ label: string;
1116
+ type: "boolean";
1117
+ required: true;
1118
+ default: string;
1119
+ comments: string;
1120
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1121
+ };
1122
+ lookBackDate: {
1123
+ label: string;
1124
+ placeholder: string;
1125
+ type: "string";
1126
+ required: false;
1127
+ comments: string;
1128
+ example: string;
1129
+ clean: (value: unknown) => string;
1130
+ };
1131
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
1132
+ payload: {
1133
+ body: {
1134
+ data: PollingChangesObject;
1135
+ };
1136
+ headers: {
1137
+ [key: string]: string;
1138
+ };
1139
+ queryParameters: {
1140
+ [key: string]: string;
1141
+ };
1142
+ rawBody: {
1143
+ data: unknown;
1144
+ contentType?: string;
1145
+ };
1146
+ pathFragment: string;
1147
+ webhookUrls: {
1148
+ [key: string]: string;
1149
+ };
1150
+ webhookApiKeys: {
1151
+ [key: string]: string[];
1152
+ };
1153
+ invokeUrl: string;
1154
+ executionId: string;
1155
+ customer: import("@prismatic-io/spectral").CustomerAttributes;
1156
+ instance: import("@prismatic-io/spectral").InstanceAttributes;
1157
+ user: import("@prismatic-io/spectral").UserAttributes;
1158
+ integration: import("@prismatic-io/spectral").IntegrationAttributes;
1159
+ flow: import("@prismatic-io/spectral").FlowAttributes;
1160
+ startedAt: string;
1161
+ globalDebug: boolean;
1162
+ paginationState?: Record<string, unknown> | undefined;
1163
+ };
1164
+ polledNoChanges: boolean;
1165
+ }, import("@prismatic-io/spectral").Inputs>;
1166
+ };
1167
+ connections: (import("@prismatic-io/spectral").KeyedConnection<{
1168
+ key: "intercom";
1169
+ display: {
1170
+ label: string;
1171
+ description: string;
1172
+ };
1173
+ oauth2Type: import("@prismatic-io/spectral").OAuth2Type.AuthorizationCode;
1174
+ inputs: {
1175
+ authorizeUrl: {
1176
+ label: string;
1177
+ type: "string";
1178
+ required: true;
1179
+ shown: false;
1180
+ default: string;
1181
+ comments: string;
1182
+ };
1183
+ tokenUrl: {
1184
+ label: string;
1185
+ type: "string";
1186
+ required: true;
1187
+ shown: false;
1188
+ default: string;
1189
+ comments: string;
1190
+ };
1191
+ scopes: {
1192
+ label: string;
1193
+ type: "string";
1194
+ required: false;
1195
+ shown: false;
1196
+ default: string;
1197
+ comments: string;
1198
+ };
1199
+ clientId: {
1200
+ label: string;
1201
+ type: "string";
1202
+ required: true;
1203
+ comments: string;
1204
+ };
1205
+ clientSecret: {
1206
+ label: string;
1207
+ type: "password";
1208
+ required: true;
1209
+ comments: string;
1210
+ };
1211
+ };
1212
+ }, "intercom"> | import("@prismatic-io/spectral").KeyedConnection<{
1213
+ key: "intercomAccesssToken";
1214
+ display: {
1215
+ label: string;
1216
+ description: string;
1217
+ };
1218
+ inputs: {
1219
+ accessToken: {
1220
+ label: string;
1221
+ type: "password";
1222
+ required: true;
1223
+ comments: string;
1224
+ };
1225
+ };
1226
+ }, "intercomAccesssToken">)[];
1227
+ dataSources: {
1228
+ selectCompany: import("@prismatic-io/spectral").DataSourceDefinition<{
1229
+ connection: {
1230
+ label: string;
1231
+ type: "connection";
1232
+ required: true;
1233
+ };
1234
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1235
+ selectContact: import("@prismatic-io/spectral").DataSourceDefinition<{
1236
+ connection: {
1237
+ label: string;
1238
+ type: "connection";
1239
+ required: true;
1240
+ };
1241
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1242
+ selectTag: import("@prismatic-io/spectral").DataSourceDefinition<{
1243
+ connection: {
1244
+ label: string;
1245
+ type: "connection";
1246
+ required: true;
1247
+ };
1248
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1249
+ selectTicket: import("@prismatic-io/spectral").DataSourceDefinition<{
1250
+ connection: {
1251
+ label: string;
1252
+ type: "connection";
1253
+ required: true;
1254
+ };
1255
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1256
+ selectTicketType: import("@prismatic-io/spectral").DataSourceDefinition<{
1257
+ connection: {
1258
+ label: string;
1259
+ type: "connection";
1260
+ required: true;
1261
+ };
1262
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1263
+ };
1264
+ }>;
1265
+ export = _default;