@prismatic-io/components-surveymonkey 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1985 @@
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/index.d.ts
7
+ interface PaginationLinks {
8
+ self: string;
9
+ first?: string;
10
+ last?: string;
11
+ next?: string;
12
+ prev?: string;
13
+ }
14
+ interface PaginatedResponse<T> {
15
+ data: T[];
16
+ per_page?: number;
17
+ page?: number;
18
+ total: number;
19
+ links?: PaginationLinks;
20
+ }
21
+ interface User {
22
+ id: string;
23
+ username: string;
24
+ email: string;
25
+ first_name?: string;
26
+ last_name?: string;
27
+ language?: string;
28
+ account_type?: string;
29
+ date_created?: string;
30
+ date_last_login?: string;
31
+ href: string;
32
+ }
33
+ interface Survey {
34
+ id: string;
35
+ title: string;
36
+ nickname?: string;
37
+ custom_variables?: Record<string, string>;
38
+ language?: string;
39
+ question_count?: number;
40
+ page_count?: number;
41
+ date_created?: string;
42
+ date_modified?: string;
43
+ href: string;
44
+ }
45
+ interface SurveyDetails extends Survey {
46
+ pages: SurveyPage[];
47
+ preview?: string;
48
+ edit_url?: string;
49
+ collect_url?: string;
50
+ analyze_url?: string;
51
+ summary_url?: string;
52
+ }
53
+ interface SurveyPage {
54
+ id: string;
55
+ title: string;
56
+ description?: string;
57
+ position: number;
58
+ question_count: number;
59
+ questions?: SurveyQuestion[];
60
+ href: string;
61
+ }
62
+ interface SurveyQuestion {
63
+ id: string;
64
+ family: string;
65
+ subtype: string;
66
+ heading: string;
67
+ position: number;
68
+ required?: boolean;
69
+ sorting?: string;
70
+ answers?: QuestionAnswer;
71
+ href: string;
72
+ }
73
+ interface QuestionAnswer {
74
+ choices?: AnswerChoice[];
75
+ rows?: AnswerRow[];
76
+ other?: AnswerOther;
77
+ }
78
+ interface AnswerChoice {
79
+ id: string;
80
+ text: string;
81
+ position: number;
82
+ visible?: boolean;
83
+ is_na?: boolean;
84
+ weight?: number;
85
+ }
86
+ interface AnswerRow {
87
+ id: string;
88
+ text: string;
89
+ position: number;
90
+ visible?: boolean;
91
+ }
92
+ interface AnswerOther {
93
+ id: string;
94
+ text: string;
95
+ position: number;
96
+ visible?: boolean;
97
+ is_answer_choice?: boolean;
98
+ }
99
+ type CollectorType = "weblink" | "email" | "social" | "embedded" | "popup";
100
+ type CollectorStatus = "open" | "closed" | "new";
101
+ interface Collector {
102
+ id: string;
103
+ name: string;
104
+ type: CollectorType;
105
+ status: CollectorStatus;
106
+ redirect_url?: string;
107
+ thank_you_page?: string;
108
+ thank_you_message?: string;
109
+ disqualification_message?: string;
110
+ close_date?: string;
111
+ closed_page_message?: string;
112
+ allow_multiple_responses?: boolean;
113
+ date_created?: string;
114
+ date_modified?: string;
115
+ url?: string;
116
+ edit_url?: string;
117
+ anonymous_type?: string;
118
+ href: string;
119
+ }
120
+ interface CollectorStats {
121
+ id: string;
122
+ completed: number;
123
+ partial: number;
124
+ total: number;
125
+ disqualified: number;
126
+ started: number;
127
+ unique_clicks: number;
128
+ }
129
+ type ResponseStatus = "completed" | "partial" | "disqualified" | "overquota";
130
+ interface SurveyResponse {
131
+ id: string;
132
+ survey_id: string;
133
+ collector_id: string;
134
+ recipient_id?: string;
135
+ total_time?: number;
136
+ custom_value?: string;
137
+ edit_url?: string;
138
+ analyze_url?: string;
139
+ ip_address?: string;
140
+ response_status: ResponseStatus;
141
+ custom_variables?: Record<string, string>;
142
+ logic_path?: Record<string, unknown>;
143
+ date_created?: string;
144
+ date_modified?: string;
145
+ href: string;
146
+ }
147
+ interface SurveyResponseDetails extends SurveyResponse {
148
+ pages: ResponsePage[];
149
+ metadata?: ResponseMetadata;
150
+ }
151
+ interface ResponsePage {
152
+ id: string;
153
+ questions: ResponseQuestion[];
154
+ }
155
+ interface ResponseQuestion {
156
+ id: string;
157
+ answers: ResponseAnswer[];
158
+ }
159
+ interface ResponseAnswer {
160
+ choice_id?: string;
161
+ row_id?: string;
162
+ col_id?: string;
163
+ other_id?: string;
164
+ text?: string;
165
+ tag_data?: string[];
166
+ }
167
+ interface ResponseMetadata {
168
+ contact?: ResponseContact;
169
+ }
170
+ interface ResponseContact {
171
+ email?: string;
172
+ first_name?: string;
173
+ last_name?: string;
174
+ }
175
+ interface Contact {
176
+ id: string;
177
+ email: string;
178
+ first_name?: string;
179
+ last_name?: string;
180
+ custom_fields?: Record<string, string>;
181
+ href: string;
182
+ }
183
+ interface ContactList {
184
+ id: string;
185
+ name: string;
186
+ href: string;
187
+ }
188
+ type WebhookEventType = "response_completed" | "response_created" | "response_updated" | "response_deleted" | "response_disqualified" | "response_overquota" | "survey_created" | "survey_updated" | "survey_deleted" | "collector_created" | "collector_updated" | "collector_deleted";
189
+ type WebhookObjectType = "survey" | "collector";
190
+ interface Webhook {
191
+ id: string;
192
+ name: string;
193
+ event_type: WebhookEventType;
194
+ object_type?: WebhookObjectType;
195
+ object_ids?: string[];
196
+ subscription_url: string;
197
+ authorization?: string;
198
+ href: string;
199
+ }
200
+ //#endregion
201
+ //#region npm-dist/.entry.d.ts
202
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
203
+ key: "surveymonkey";
204
+ public: true;
205
+ documentationUrl: "https://prismatic.io/docs/components/surveymonkey/";
206
+ display: {
207
+ label: string;
208
+ description: string;
209
+ category: "Application Connectors";
210
+ iconPath: string;
211
+ };
212
+ connections: (import("@prismatic-io/spectral").KeyedConnection<{
213
+ key: "surveyMonkeyOAuth";
214
+ display: {
215
+ label: string;
216
+ description: string;
217
+ };
218
+ oauth2Type: import("@prismatic-io/spectral").OAuth2Type.AuthorizationCode;
219
+ inputs: {
220
+ region: {
221
+ label: string;
222
+ placeholder: string;
223
+ type: "string";
224
+ required: true;
225
+ shown: true;
226
+ default: string;
227
+ model: {
228
+ label: string;
229
+ value: string;
230
+ }[];
231
+ comments: string;
232
+ };
233
+ authorizeUrl: {
234
+ label: string;
235
+ placeholder: string;
236
+ type: "string";
237
+ required: true;
238
+ shown: false;
239
+ default: string;
240
+ comments: string;
241
+ };
242
+ tokenUrl: {
243
+ label: string;
244
+ placeholder: string;
245
+ type: "string";
246
+ required: true;
247
+ shown: false;
248
+ default: string;
249
+ comments: string;
250
+ };
251
+ scopes: {
252
+ label: string;
253
+ placeholder: string;
254
+ type: "string";
255
+ required: false;
256
+ shown: false;
257
+ default: string;
258
+ };
259
+ clientId: {
260
+ label: string;
261
+ placeholder: string;
262
+ type: "string";
263
+ required: true;
264
+ shown: true;
265
+ comments: string;
266
+ example: string;
267
+ };
268
+ clientSecret: {
269
+ label: string;
270
+ placeholder: string;
271
+ type: "password";
272
+ required: true;
273
+ shown: true;
274
+ comments: string;
275
+ };
276
+ };
277
+ }, "surveyMonkeyOAuth"> | import("@prismatic-io/spectral").KeyedConnection<{
278
+ key: "surveyMonkeyAccessToken";
279
+ display: {
280
+ label: string;
281
+ description: string;
282
+ };
283
+ inputs: {
284
+ region: {
285
+ label: string;
286
+ placeholder: string;
287
+ type: "string";
288
+ required: true;
289
+ shown: true;
290
+ default: string;
291
+ model: {
292
+ label: string;
293
+ value: string;
294
+ }[];
295
+ comments: string;
296
+ };
297
+ accessToken: {
298
+ label: string;
299
+ placeholder: string;
300
+ type: "password";
301
+ required: true;
302
+ shown: true;
303
+ comments: string;
304
+ example: string;
305
+ };
306
+ apiKey: {
307
+ label: string;
308
+ placeholder: string;
309
+ type: "string";
310
+ required: true;
311
+ shown: true;
312
+ comments: string;
313
+ example: string;
314
+ };
315
+ apiSecret: {
316
+ label: string;
317
+ placeholder: string;
318
+ type: "password";
319
+ required: true;
320
+ shown: true;
321
+ comments: string;
322
+ };
323
+ };
324
+ }, "surveyMonkeyAccessToken">)[];
325
+ actions: {
326
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
327
+ url: {
328
+ comments: string;
329
+ example: string;
330
+ label: string;
331
+ placeholder: string;
332
+ type: "string";
333
+ required: true;
334
+ clean: (value: unknown) => string;
335
+ };
336
+ method: {
337
+ label: string;
338
+ type: "string";
339
+ required: true;
340
+ model: {
341
+ label: Method;
342
+ value: Method;
343
+ }[];
344
+ comments: string;
345
+ clean: (value: unknown) => string;
346
+ };
347
+ data: {
348
+ label: string;
349
+ placeholder: string;
350
+ type: "string";
351
+ required: false;
352
+ comments: string;
353
+ example: string;
354
+ };
355
+ formData: {
356
+ label: string;
357
+ placeholder: string;
358
+ type: "string";
359
+ collection: "keyvaluelist";
360
+ required: false;
361
+ comments: string;
362
+ example: string;
363
+ };
364
+ fileData: {
365
+ label: string;
366
+ placeholder: string;
367
+ type: "string";
368
+ collection: "keyvaluelist";
369
+ required: false;
370
+ comments: string;
371
+ example: string;
372
+ };
373
+ fileDataFileNames: {
374
+ label: string;
375
+ placeholder: string;
376
+ type: "string";
377
+ collection: "keyvaluelist";
378
+ required: false;
379
+ comments: string;
380
+ clean: (values: any) => Record<string, string> | undefined;
381
+ };
382
+ queryParams: {
383
+ label: string;
384
+ placeholder: string;
385
+ type: "string";
386
+ collection: "keyvaluelist";
387
+ required: false;
388
+ comments: string;
389
+ };
390
+ headers: {
391
+ label: string;
392
+ placeholder: string;
393
+ type: "string";
394
+ collection: "keyvaluelist";
395
+ required: false;
396
+ comments: string;
397
+ example: string;
398
+ };
399
+ responseType: {
400
+ label: string;
401
+ placeholder: string;
402
+ type: "string";
403
+ default: string;
404
+ required: true;
405
+ comments: string;
406
+ model: {
407
+ label: ResponseType;
408
+ value: ResponseType;
409
+ }[];
410
+ clean: (value: unknown) => ResponseType;
411
+ };
412
+ timeout: {
413
+ label: string;
414
+ type: "string";
415
+ required: false;
416
+ comments: string;
417
+ example: string;
418
+ clean: (value: unknown) => number;
419
+ };
420
+ retryDelayMS: {
421
+ label: string;
422
+ placeholder: string;
423
+ type: "string";
424
+ required: false;
425
+ comments: string;
426
+ default: string;
427
+ clean: (value: unknown) => number;
428
+ };
429
+ retryAllErrors: {
430
+ label: string;
431
+ type: "boolean";
432
+ default: string;
433
+ required: false;
434
+ comments: string;
435
+ clean: (value: unknown) => boolean;
436
+ };
437
+ maxRetries: {
438
+ label: string;
439
+ placeholder: string;
440
+ type: "string";
441
+ required: false;
442
+ comments: string;
443
+ default: string;
444
+ clean: (value: unknown) => number;
445
+ };
446
+ useExponentialBackoff: {
447
+ label: string;
448
+ type: "boolean";
449
+ default: string;
450
+ required: false;
451
+ comments: string;
452
+ clean: (value: unknown) => boolean;
453
+ };
454
+ connection: {
455
+ label: string;
456
+ type: "connection";
457
+ required: true;
458
+ comments: string;
459
+ };
460
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
461
+ data: any;
462
+ }>;
463
+ getCurrentUser: import("@prismatic-io/spectral").ActionDefinition<{
464
+ connection: {
465
+ label: string;
466
+ type: "connection";
467
+ required: true;
468
+ comments: string;
469
+ };
470
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
471
+ data: User;
472
+ }>;
473
+ listWebhooks: import("@prismatic-io/spectral").ActionDefinition<{
474
+ connection: {
475
+ label: string;
476
+ type: "connection";
477
+ required: true;
478
+ comments: string;
479
+ };
480
+ fetchAll: {
481
+ label: string;
482
+ type: "boolean";
483
+ required: false;
484
+ default: string;
485
+ comments: string;
486
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
487
+ };
488
+ pagination: {
489
+ label: string;
490
+ required: boolean;
491
+ comments: string;
492
+ inputs: {
493
+ page: {
494
+ label: string;
495
+ type: "string";
496
+ required: false;
497
+ comments: string;
498
+ example: string;
499
+ placeholder: string;
500
+ clean: (value: unknown, defaultValue?: number) => number;
501
+ };
502
+ perPage: {
503
+ label: string;
504
+ type: "string";
505
+ required: false;
506
+ comments: string;
507
+ example: string;
508
+ placeholder: string;
509
+ clean: (value: unknown, defaultValue?: number) => number;
510
+ };
511
+ };
512
+ } & {
513
+ type: "structuredObject";
514
+ };
515
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
516
+ data: PaginatedResponse<Webhook>;
517
+ }>;
518
+ getWebhook: import("@prismatic-io/spectral").ActionDefinition<{
519
+ connection: {
520
+ label: string;
521
+ type: "connection";
522
+ required: true;
523
+ comments: string;
524
+ };
525
+ webhookId: {
526
+ label: string;
527
+ type: "string";
528
+ required: true;
529
+ comments: string;
530
+ example: string;
531
+ placeholder: string;
532
+ clean: (value: unknown, defaultValue?: string) => string;
533
+ };
534
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
535
+ data: Webhook;
536
+ }>;
537
+ createWebhook: import("@prismatic-io/spectral").ActionDefinition<{
538
+ connection: {
539
+ label: string;
540
+ type: "connection";
541
+ required: true;
542
+ comments: string;
543
+ };
544
+ name: {
545
+ label: string;
546
+ type: "string";
547
+ required: true;
548
+ comments: string;
549
+ example: string;
550
+ placeholder: string;
551
+ clean: (value: unknown, defaultValue?: string) => string;
552
+ };
553
+ subscriptionUrl: {
554
+ label: string;
555
+ type: "string";
556
+ required: true;
557
+ comments: string;
558
+ example: string;
559
+ placeholder: string;
560
+ clean: (value: unknown, defaultValue?: string) => string;
561
+ };
562
+ eventType: {
563
+ label: string;
564
+ type: "string";
565
+ required: true;
566
+ model: {
567
+ label: string;
568
+ value: WebhookEventType;
569
+ }[];
570
+ comments: string;
571
+ placeholder: string;
572
+ clean: (value: unknown, defaultValue?: string) => string;
573
+ };
574
+ objectType: {
575
+ label: string;
576
+ type: "string";
577
+ required: false;
578
+ model: {
579
+ label: string;
580
+ value: string;
581
+ }[];
582
+ comments: string;
583
+ placeholder: string;
584
+ clean: (value: unknown) => string | undefined;
585
+ };
586
+ objectIds: {
587
+ label: string;
588
+ type: "string";
589
+ collection: "valuelist";
590
+ required: false;
591
+ comments: string;
592
+ placeholder: string;
593
+ example: string;
594
+ clean: (value: unknown) => string[] | undefined;
595
+ };
596
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
597
+ data: Webhook;
598
+ }>;
599
+ updateWebhook: import("@prismatic-io/spectral").ActionDefinition<{
600
+ connection: {
601
+ label: string;
602
+ type: "connection";
603
+ required: true;
604
+ comments: string;
605
+ };
606
+ webhookId: {
607
+ label: string;
608
+ type: "string";
609
+ required: true;
610
+ comments: string;
611
+ example: string;
612
+ placeholder: string;
613
+ clean: (value: unknown, defaultValue?: string) => string;
614
+ };
615
+ name: {
616
+ required: boolean;
617
+ clean: (value: unknown) => string | undefined;
618
+ label: string;
619
+ type: "string";
620
+ comments: string;
621
+ example: string;
622
+ placeholder: string;
623
+ };
624
+ subscriptionUrl: {
625
+ required: boolean;
626
+ clean: (value: unknown) => string | undefined;
627
+ label: string;
628
+ type: "string";
629
+ comments: string;
630
+ example: string;
631
+ placeholder: string;
632
+ };
633
+ eventType: {
634
+ required: boolean;
635
+ clean: (value: unknown) => string | undefined;
636
+ label: string;
637
+ type: "string";
638
+ model: {
639
+ label: string;
640
+ value: WebhookEventType;
641
+ }[];
642
+ comments: string;
643
+ placeholder: string;
644
+ };
645
+ objectType: {
646
+ label: string;
647
+ type: "string";
648
+ required: false;
649
+ model: {
650
+ label: string;
651
+ value: string;
652
+ }[];
653
+ comments: string;
654
+ placeholder: string;
655
+ clean: (value: unknown) => string | undefined;
656
+ };
657
+ objectIds: {
658
+ label: string;
659
+ type: "string";
660
+ collection: "valuelist";
661
+ required: false;
662
+ comments: string;
663
+ placeholder: string;
664
+ example: string;
665
+ clean: (value: unknown) => string[] | undefined;
666
+ };
667
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
668
+ data: Webhook;
669
+ }>;
670
+ deleteWebhook: import("@prismatic-io/spectral").ActionDefinition<{
671
+ connection: {
672
+ label: string;
673
+ type: "connection";
674
+ required: true;
675
+ comments: string;
676
+ };
677
+ webhookId: {
678
+ label: string;
679
+ type: "string";
680
+ required: true;
681
+ comments: string;
682
+ example: string;
683
+ placeholder: string;
684
+ clean: (value: unknown, defaultValue?: string) => string;
685
+ };
686
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
687
+ data: {
688
+ success: boolean;
689
+ };
690
+ }>;
691
+ listContactLists: import("@prismatic-io/spectral").ActionDefinition<{
692
+ connection: {
693
+ label: string;
694
+ type: "connection";
695
+ required: true;
696
+ comments: string;
697
+ };
698
+ fetchAll: {
699
+ label: string;
700
+ type: "boolean";
701
+ required: false;
702
+ default: string;
703
+ comments: string;
704
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
705
+ };
706
+ pagination: {
707
+ label: string;
708
+ required: boolean;
709
+ comments: string;
710
+ inputs: {
711
+ page: {
712
+ label: string;
713
+ type: "string";
714
+ required: false;
715
+ comments: string;
716
+ example: string;
717
+ placeholder: string;
718
+ clean: (value: unknown, defaultValue?: number) => number;
719
+ };
720
+ perPage: {
721
+ label: string;
722
+ type: "string";
723
+ required: false;
724
+ comments: string;
725
+ example: string;
726
+ placeholder: string;
727
+ clean: (value: unknown, defaultValue?: number) => number;
728
+ };
729
+ };
730
+ } & {
731
+ type: "structuredObject";
732
+ };
733
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
734
+ data: PaginatedResponse<ContactList>;
735
+ }>;
736
+ getContactList: import("@prismatic-io/spectral").ActionDefinition<{
737
+ connection: {
738
+ label: string;
739
+ type: "connection";
740
+ required: true;
741
+ comments: string;
742
+ };
743
+ contactListId: {
744
+ label: string;
745
+ type: "string";
746
+ required: true;
747
+ comments: string;
748
+ example: string;
749
+ placeholder: string;
750
+ dataSource: string;
751
+ clean: (value: unknown, defaultValue?: string) => string;
752
+ };
753
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
754
+ data: ContactList;
755
+ }>;
756
+ createContactList: import("@prismatic-io/spectral").ActionDefinition<{
757
+ connection: {
758
+ label: string;
759
+ type: "connection";
760
+ required: true;
761
+ comments: string;
762
+ };
763
+ name: {
764
+ label: string;
765
+ type: "string";
766
+ required: true;
767
+ comments: string;
768
+ example: string;
769
+ placeholder: string;
770
+ clean: (value: unknown, defaultValue?: string) => string;
771
+ };
772
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
773
+ data: ContactList;
774
+ }>;
775
+ updateContactList: import("@prismatic-io/spectral").ActionDefinition<{
776
+ connection: {
777
+ label: string;
778
+ type: "connection";
779
+ required: true;
780
+ comments: string;
781
+ };
782
+ contactListId: {
783
+ label: string;
784
+ type: "string";
785
+ required: true;
786
+ comments: string;
787
+ example: string;
788
+ placeholder: string;
789
+ dataSource: string;
790
+ clean: (value: unknown, defaultValue?: string) => string;
791
+ };
792
+ name: {
793
+ label: string;
794
+ type: "string";
795
+ required: true;
796
+ comments: string;
797
+ example: string;
798
+ placeholder: string;
799
+ clean: (value: unknown, defaultValue?: string) => string;
800
+ };
801
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
802
+ data: ContactList;
803
+ }>;
804
+ deleteContactList: import("@prismatic-io/spectral").ActionDefinition<{
805
+ connection: {
806
+ label: string;
807
+ type: "connection";
808
+ required: true;
809
+ comments: string;
810
+ };
811
+ contactListId: {
812
+ label: string;
813
+ type: "string";
814
+ required: true;
815
+ comments: string;
816
+ example: string;
817
+ placeholder: string;
818
+ dataSource: string;
819
+ clean: (value: unknown, defaultValue?: string) => string;
820
+ };
821
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
822
+ data: {
823
+ success: boolean;
824
+ };
825
+ }>;
826
+ listContacts: import("@prismatic-io/spectral").ActionDefinition<{
827
+ connection: {
828
+ label: string;
829
+ type: "connection";
830
+ required: true;
831
+ comments: string;
832
+ };
833
+ fetchAll: {
834
+ label: string;
835
+ type: "boolean";
836
+ required: false;
837
+ default: string;
838
+ comments: string;
839
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
840
+ };
841
+ pagination: {
842
+ label: string;
843
+ required: boolean;
844
+ comments: string;
845
+ inputs: {
846
+ page: {
847
+ label: string;
848
+ type: "string";
849
+ required: false;
850
+ comments: string;
851
+ example: string;
852
+ placeholder: string;
853
+ clean: (value: unknown, defaultValue?: number) => number;
854
+ };
855
+ perPage: {
856
+ label: string;
857
+ type: "string";
858
+ required: false;
859
+ comments: string;
860
+ example: string;
861
+ placeholder: string;
862
+ clean: (value: unknown, defaultValue?: number) => number;
863
+ };
864
+ };
865
+ } & {
866
+ type: "structuredObject";
867
+ };
868
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
869
+ data: PaginatedResponse<Contact>;
870
+ }>;
871
+ getContact: import("@prismatic-io/spectral").ActionDefinition<{
872
+ connection: {
873
+ label: string;
874
+ type: "connection";
875
+ required: true;
876
+ comments: string;
877
+ };
878
+ contactId: {
879
+ label: string;
880
+ type: "string";
881
+ required: true;
882
+ comments: string;
883
+ example: string;
884
+ placeholder: string;
885
+ dataSource: string;
886
+ clean: (value: unknown, defaultValue?: string) => string;
887
+ };
888
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
889
+ data: Contact;
890
+ }>;
891
+ createContact: import("@prismatic-io/spectral").ActionDefinition<{
892
+ connection: {
893
+ label: string;
894
+ type: "connection";
895
+ required: true;
896
+ comments: string;
897
+ };
898
+ email: {
899
+ label: string;
900
+ type: "string";
901
+ required: true;
902
+ comments: string;
903
+ example: string;
904
+ placeholder: string;
905
+ clean: (value: unknown, defaultValue?: string) => string;
906
+ };
907
+ firstName: {
908
+ label: string;
909
+ type: "string";
910
+ required: false;
911
+ comments: string;
912
+ example: string;
913
+ placeholder: string;
914
+ clean: (value: unknown) => string | undefined;
915
+ };
916
+ lastName: {
917
+ label: string;
918
+ type: "string";
919
+ required: false;
920
+ comments: string;
921
+ example: string;
922
+ placeholder: string;
923
+ clean: (value: unknown) => string | undefined;
924
+ };
925
+ customFields: {
926
+ label: string;
927
+ type: "string";
928
+ collection: "keyvaluelist";
929
+ required: false;
930
+ comments: string;
931
+ placeholder: string;
932
+ clean: (value: unknown) => Record<string, unknown>;
933
+ };
934
+ extraBody: {
935
+ label: string;
936
+ type: "code";
937
+ language: "json";
938
+ comments: string;
939
+ required: false;
940
+ example: string;
941
+ clean: (value: unknown) => object;
942
+ };
943
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
944
+ data: Contact;
945
+ }>;
946
+ createContactsBulk: import("@prismatic-io/spectral").ActionDefinition<{
947
+ connection: {
948
+ label: string;
949
+ type: "connection";
950
+ required: true;
951
+ comments: string;
952
+ };
953
+ contacts: {
954
+ label: string;
955
+ type: "code";
956
+ language: "json";
957
+ required: true;
958
+ comments: string;
959
+ example: string;
960
+ clean: (value: unknown) => object;
961
+ };
962
+ updateExistingContacts: {
963
+ label: string;
964
+ type: "boolean";
965
+ required: false;
966
+ default: string;
967
+ comments: string;
968
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
969
+ };
970
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
971
+ data: {
972
+ succeeded: Contact[];
973
+ failed: unknown[];
974
+ };
975
+ }>;
976
+ updateContact: import("@prismatic-io/spectral").ActionDefinition<{
977
+ connection: {
978
+ label: string;
979
+ type: "connection";
980
+ required: true;
981
+ comments: string;
982
+ };
983
+ contactId: {
984
+ label: string;
985
+ type: "string";
986
+ required: true;
987
+ comments: string;
988
+ example: string;
989
+ placeholder: string;
990
+ dataSource: string;
991
+ clean: (value: unknown, defaultValue?: string) => string;
992
+ };
993
+ email: {
994
+ required: boolean;
995
+ clean: (value: unknown) => string | undefined;
996
+ label: string;
997
+ type: "string";
998
+ comments: string;
999
+ example: string;
1000
+ placeholder: string;
1001
+ };
1002
+ firstName: {
1003
+ label: string;
1004
+ type: "string";
1005
+ required: false;
1006
+ comments: string;
1007
+ example: string;
1008
+ placeholder: string;
1009
+ clean: (value: unknown) => string | undefined;
1010
+ };
1011
+ lastName: {
1012
+ label: string;
1013
+ type: "string";
1014
+ required: false;
1015
+ comments: string;
1016
+ example: string;
1017
+ placeholder: string;
1018
+ clean: (value: unknown) => string | undefined;
1019
+ };
1020
+ customFields: {
1021
+ label: string;
1022
+ type: "string";
1023
+ collection: "keyvaluelist";
1024
+ required: false;
1025
+ comments: string;
1026
+ placeholder: string;
1027
+ clean: (value: unknown) => Record<string, unknown>;
1028
+ };
1029
+ extraBody: {
1030
+ label: string;
1031
+ type: "code";
1032
+ language: "json";
1033
+ comments: string;
1034
+ required: false;
1035
+ example: string;
1036
+ clean: (value: unknown) => object;
1037
+ };
1038
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1039
+ data: Contact;
1040
+ }>;
1041
+ deleteContact: import("@prismatic-io/spectral").ActionDefinition<{
1042
+ connection: {
1043
+ label: string;
1044
+ type: "connection";
1045
+ required: true;
1046
+ comments: string;
1047
+ };
1048
+ contactId: {
1049
+ label: string;
1050
+ type: "string";
1051
+ required: true;
1052
+ comments: string;
1053
+ example: string;
1054
+ placeholder: string;
1055
+ dataSource: string;
1056
+ clean: (value: unknown, defaultValue?: string) => string;
1057
+ };
1058
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1059
+ data: {
1060
+ success: boolean;
1061
+ };
1062
+ }>;
1063
+ listResponses: import("@prismatic-io/spectral").ActionDefinition<{
1064
+ connection: {
1065
+ label: string;
1066
+ type: "connection";
1067
+ required: true;
1068
+ comments: string;
1069
+ };
1070
+ surveyId: {
1071
+ label: string;
1072
+ type: "string";
1073
+ required: true;
1074
+ comments: string;
1075
+ example: string;
1076
+ placeholder: string;
1077
+ dataSource: string;
1078
+ clean: (value: unknown, defaultValue?: string) => string;
1079
+ };
1080
+ status: {
1081
+ label: string;
1082
+ type: "string";
1083
+ required: false;
1084
+ model: {
1085
+ label: string;
1086
+ value: string;
1087
+ }[];
1088
+ comments: string;
1089
+ placeholder: string;
1090
+ clean: (value: unknown) => string | undefined;
1091
+ };
1092
+ fetchAll: {
1093
+ label: string;
1094
+ type: "boolean";
1095
+ required: false;
1096
+ default: string;
1097
+ comments: string;
1098
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1099
+ };
1100
+ pagination: {
1101
+ label: string;
1102
+ required: boolean;
1103
+ comments: string;
1104
+ inputs: {
1105
+ page: {
1106
+ label: string;
1107
+ type: "string";
1108
+ required: false;
1109
+ comments: string;
1110
+ example: string;
1111
+ placeholder: string;
1112
+ clean: (value: unknown, defaultValue?: number) => number;
1113
+ };
1114
+ perPage: {
1115
+ label: string;
1116
+ type: "string";
1117
+ required: false;
1118
+ comments: string;
1119
+ example: string;
1120
+ placeholder: string;
1121
+ clean: (value: unknown, defaultValue?: number) => number;
1122
+ };
1123
+ };
1124
+ } & {
1125
+ type: "structuredObject";
1126
+ };
1127
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1128
+ data: PaginatedResponse<SurveyResponse>;
1129
+ }>;
1130
+ getResponse: import("@prismatic-io/spectral").ActionDefinition<{
1131
+ connection: {
1132
+ label: string;
1133
+ type: "connection";
1134
+ required: true;
1135
+ comments: string;
1136
+ };
1137
+ surveyId: {
1138
+ label: string;
1139
+ type: "string";
1140
+ required: true;
1141
+ comments: string;
1142
+ example: string;
1143
+ placeholder: string;
1144
+ dataSource: string;
1145
+ clean: (value: unknown, defaultValue?: string) => string;
1146
+ };
1147
+ responseId: {
1148
+ label: string;
1149
+ type: "string";
1150
+ required: true;
1151
+ comments: string;
1152
+ example: string;
1153
+ placeholder: string;
1154
+ dataSource: string;
1155
+ clean: (value: unknown, defaultValue?: string) => string;
1156
+ };
1157
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1158
+ data: SurveyResponse;
1159
+ }>;
1160
+ getResponseDetails: import("@prismatic-io/spectral").ActionDefinition<{
1161
+ connection: {
1162
+ label: string;
1163
+ type: "connection";
1164
+ required: true;
1165
+ comments: string;
1166
+ };
1167
+ surveyId: {
1168
+ label: string;
1169
+ type: "string";
1170
+ required: true;
1171
+ comments: string;
1172
+ example: string;
1173
+ placeholder: string;
1174
+ dataSource: string;
1175
+ clean: (value: unknown, defaultValue?: string) => string;
1176
+ };
1177
+ responseId: {
1178
+ label: string;
1179
+ type: "string";
1180
+ required: true;
1181
+ comments: string;
1182
+ example: string;
1183
+ placeholder: string;
1184
+ dataSource: string;
1185
+ clean: (value: unknown, defaultValue?: string) => string;
1186
+ };
1187
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1188
+ data: SurveyResponseDetails;
1189
+ }>;
1190
+ listResponsesBulk: import("@prismatic-io/spectral").ActionDefinition<{
1191
+ connection: {
1192
+ label: string;
1193
+ type: "connection";
1194
+ required: true;
1195
+ comments: string;
1196
+ };
1197
+ surveyId: {
1198
+ label: string;
1199
+ type: "string";
1200
+ required: true;
1201
+ comments: string;
1202
+ example: string;
1203
+ placeholder: string;
1204
+ dataSource: string;
1205
+ clean: (value: unknown, defaultValue?: string) => string;
1206
+ };
1207
+ status: {
1208
+ label: string;
1209
+ type: "string";
1210
+ required: false;
1211
+ model: {
1212
+ label: string;
1213
+ value: string;
1214
+ }[];
1215
+ comments: string;
1216
+ placeholder: string;
1217
+ clean: (value: unknown) => string | undefined;
1218
+ };
1219
+ fetchAll: {
1220
+ label: string;
1221
+ type: "boolean";
1222
+ required: false;
1223
+ default: string;
1224
+ comments: string;
1225
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1226
+ };
1227
+ pagination: {
1228
+ label: string;
1229
+ required: boolean;
1230
+ comments: string;
1231
+ inputs: {
1232
+ page: {
1233
+ label: string;
1234
+ type: "string";
1235
+ required: false;
1236
+ comments: string;
1237
+ example: string;
1238
+ placeholder: string;
1239
+ clean: (value: unknown, defaultValue?: number) => number;
1240
+ };
1241
+ perPage: {
1242
+ label: string;
1243
+ type: "string";
1244
+ required: false;
1245
+ comments: string;
1246
+ example: string;
1247
+ placeholder: string;
1248
+ clean: (value: unknown, defaultValue?: number) => number;
1249
+ };
1250
+ };
1251
+ } & {
1252
+ type: "structuredObject";
1253
+ };
1254
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1255
+ data: PaginatedResponse<SurveyResponseDetails>;
1256
+ }>;
1257
+ updateResponse: import("@prismatic-io/spectral").ActionDefinition<{
1258
+ connection: {
1259
+ label: string;
1260
+ type: "connection";
1261
+ required: true;
1262
+ comments: string;
1263
+ };
1264
+ surveyId: {
1265
+ label: string;
1266
+ type: "string";
1267
+ required: true;
1268
+ comments: string;
1269
+ example: string;
1270
+ placeholder: string;
1271
+ dataSource: string;
1272
+ clean: (value: unknown, defaultValue?: string) => string;
1273
+ };
1274
+ responseId: {
1275
+ label: string;
1276
+ type: "string";
1277
+ required: true;
1278
+ comments: string;
1279
+ example: string;
1280
+ placeholder: string;
1281
+ dataSource: string;
1282
+ clean: (value: unknown, defaultValue?: string) => string;
1283
+ };
1284
+ responsePages: {
1285
+ label: string;
1286
+ type: "code";
1287
+ language: "json";
1288
+ required: true;
1289
+ comments: string;
1290
+ example: string;
1291
+ clean: (value: unknown) => object;
1292
+ };
1293
+ status: {
1294
+ label: string;
1295
+ type: "string";
1296
+ required: false;
1297
+ model: {
1298
+ label: string;
1299
+ value: string;
1300
+ }[];
1301
+ comments: string;
1302
+ placeholder: string;
1303
+ clean: (value: unknown) => string | undefined;
1304
+ };
1305
+ customValue: {
1306
+ label: string;
1307
+ type: "string";
1308
+ required: false;
1309
+ comments: string;
1310
+ placeholder: string;
1311
+ clean: (value: unknown) => string | undefined;
1312
+ };
1313
+ extraBody: {
1314
+ label: string;
1315
+ type: "code";
1316
+ language: "json";
1317
+ comments: string;
1318
+ required: false;
1319
+ example: string;
1320
+ clean: (value: unknown) => object;
1321
+ };
1322
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1323
+ data: SurveyResponse;
1324
+ }>;
1325
+ deleteResponse: import("@prismatic-io/spectral").ActionDefinition<{
1326
+ connection: {
1327
+ label: string;
1328
+ type: "connection";
1329
+ required: true;
1330
+ comments: string;
1331
+ };
1332
+ surveyId: {
1333
+ label: string;
1334
+ type: "string";
1335
+ required: true;
1336
+ comments: string;
1337
+ example: string;
1338
+ placeholder: string;
1339
+ dataSource: string;
1340
+ clean: (value: unknown, defaultValue?: string) => string;
1341
+ };
1342
+ responseId: {
1343
+ label: string;
1344
+ type: "string";
1345
+ required: true;
1346
+ comments: string;
1347
+ example: string;
1348
+ placeholder: string;
1349
+ dataSource: string;
1350
+ clean: (value: unknown, defaultValue?: string) => string;
1351
+ };
1352
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1353
+ data: {
1354
+ success: boolean;
1355
+ };
1356
+ }>;
1357
+ listCollectors: import("@prismatic-io/spectral").ActionDefinition<{
1358
+ connection: {
1359
+ label: string;
1360
+ type: "connection";
1361
+ required: true;
1362
+ comments: string;
1363
+ };
1364
+ surveyId: {
1365
+ label: string;
1366
+ type: "string";
1367
+ required: true;
1368
+ comments: string;
1369
+ example: string;
1370
+ placeholder: string;
1371
+ dataSource: string;
1372
+ clean: (value: unknown, defaultValue?: string) => string;
1373
+ };
1374
+ fetchAll: {
1375
+ label: string;
1376
+ type: "boolean";
1377
+ required: false;
1378
+ default: string;
1379
+ comments: string;
1380
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1381
+ };
1382
+ pagination: {
1383
+ label: string;
1384
+ required: boolean;
1385
+ comments: string;
1386
+ inputs: {
1387
+ page: {
1388
+ label: string;
1389
+ type: "string";
1390
+ required: false;
1391
+ comments: string;
1392
+ example: string;
1393
+ placeholder: string;
1394
+ clean: (value: unknown, defaultValue?: number) => number;
1395
+ };
1396
+ perPage: {
1397
+ label: string;
1398
+ type: "string";
1399
+ required: false;
1400
+ comments: string;
1401
+ example: string;
1402
+ placeholder: string;
1403
+ clean: (value: unknown, defaultValue?: number) => number;
1404
+ };
1405
+ };
1406
+ } & {
1407
+ type: "structuredObject";
1408
+ };
1409
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1410
+ data: PaginatedResponse<Collector>;
1411
+ }>;
1412
+ getCollector: import("@prismatic-io/spectral").ActionDefinition<{
1413
+ connection: {
1414
+ label: string;
1415
+ type: "connection";
1416
+ required: true;
1417
+ comments: string;
1418
+ };
1419
+ collectorId: {
1420
+ label: string;
1421
+ type: "string";
1422
+ required: true;
1423
+ comments: string;
1424
+ example: string;
1425
+ placeholder: string;
1426
+ dataSource: string;
1427
+ clean: (value: unknown, defaultValue?: string) => string;
1428
+ };
1429
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1430
+ data: Collector;
1431
+ }>;
1432
+ createCollector: import("@prismatic-io/spectral").ActionDefinition<{
1433
+ connection: {
1434
+ label: string;
1435
+ type: "connection";
1436
+ required: true;
1437
+ comments: string;
1438
+ };
1439
+ surveyId: {
1440
+ label: string;
1441
+ type: "string";
1442
+ required: true;
1443
+ comments: string;
1444
+ example: string;
1445
+ placeholder: string;
1446
+ dataSource: string;
1447
+ clean: (value: unknown, defaultValue?: string) => string;
1448
+ };
1449
+ type: {
1450
+ label: string;
1451
+ type: "string";
1452
+ required: true;
1453
+ default: string;
1454
+ model: {
1455
+ label: string;
1456
+ value: CollectorType;
1457
+ }[];
1458
+ comments: string;
1459
+ placeholder: string;
1460
+ clean: (value: unknown, defaultValue?: string) => string;
1461
+ };
1462
+ name: {
1463
+ label: string;
1464
+ type: "string";
1465
+ required: false;
1466
+ comments: string;
1467
+ example: string;
1468
+ placeholder: string;
1469
+ clean: (value: unknown) => string | undefined;
1470
+ };
1471
+ collectorSettings: {
1472
+ label: string;
1473
+ required: boolean;
1474
+ comments: string;
1475
+ inputs: {
1476
+ thankYouMessage: {
1477
+ label: string;
1478
+ type: "text";
1479
+ required: false;
1480
+ comments: string;
1481
+ example: string;
1482
+ placeholder: string;
1483
+ clean: (value: unknown) => string | undefined;
1484
+ };
1485
+ closeDate: {
1486
+ label: string;
1487
+ type: "string";
1488
+ required: false;
1489
+ comments: string;
1490
+ example: string;
1491
+ placeholder: string;
1492
+ clean: (value: unknown) => string | undefined;
1493
+ };
1494
+ redirectUrl: {
1495
+ label: string;
1496
+ type: "string";
1497
+ required: false;
1498
+ comments: string;
1499
+ example: string;
1500
+ placeholder: string;
1501
+ clean: (value: unknown) => string | undefined;
1502
+ };
1503
+ allowMultipleResponses: {
1504
+ label: string;
1505
+ type: "boolean";
1506
+ required: false;
1507
+ default: string;
1508
+ comments: string;
1509
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1510
+ };
1511
+ };
1512
+ } & {
1513
+ type: "structuredObject";
1514
+ };
1515
+ extraBody: {
1516
+ label: string;
1517
+ type: "code";
1518
+ language: "json";
1519
+ comments: string;
1520
+ required: false;
1521
+ example: string;
1522
+ clean: (value: unknown) => object;
1523
+ };
1524
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1525
+ data: Collector;
1526
+ }>;
1527
+ updateCollector: import("@prismatic-io/spectral").ActionDefinition<{
1528
+ connection: {
1529
+ label: string;
1530
+ type: "connection";
1531
+ required: true;
1532
+ comments: string;
1533
+ };
1534
+ collectorId: {
1535
+ label: string;
1536
+ type: "string";
1537
+ required: true;
1538
+ comments: string;
1539
+ example: string;
1540
+ placeholder: string;
1541
+ dataSource: string;
1542
+ clean: (value: unknown, defaultValue?: string) => string;
1543
+ };
1544
+ name: {
1545
+ label: string;
1546
+ type: "string";
1547
+ required: false;
1548
+ comments: string;
1549
+ example: string;
1550
+ placeholder: string;
1551
+ clean: (value: unknown) => string | undefined;
1552
+ };
1553
+ collectorSettings: {
1554
+ label: string;
1555
+ required: boolean;
1556
+ comments: string;
1557
+ inputs: {
1558
+ thankYouMessage: {
1559
+ label: string;
1560
+ type: "text";
1561
+ required: false;
1562
+ comments: string;
1563
+ example: string;
1564
+ placeholder: string;
1565
+ clean: (value: unknown) => string | undefined;
1566
+ };
1567
+ closeDate: {
1568
+ label: string;
1569
+ type: "string";
1570
+ required: false;
1571
+ comments: string;
1572
+ example: string;
1573
+ placeholder: string;
1574
+ clean: (value: unknown) => string | undefined;
1575
+ };
1576
+ redirectUrl: {
1577
+ label: string;
1578
+ type: "string";
1579
+ required: false;
1580
+ comments: string;
1581
+ example: string;
1582
+ placeholder: string;
1583
+ clean: (value: unknown) => string | undefined;
1584
+ };
1585
+ allowMultipleResponsesModel: {
1586
+ label: string;
1587
+ type: "string";
1588
+ required: false;
1589
+ model: {
1590
+ label: string;
1591
+ value: string;
1592
+ }[];
1593
+ comments: string;
1594
+ clean: (value: unknown) => string | undefined;
1595
+ };
1596
+ };
1597
+ } & {
1598
+ type: "structuredObject";
1599
+ };
1600
+ extraBody: {
1601
+ label: string;
1602
+ type: "code";
1603
+ language: "json";
1604
+ comments: string;
1605
+ required: false;
1606
+ example: string;
1607
+ clean: (value: unknown) => object;
1608
+ };
1609
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1610
+ data: Collector;
1611
+ }>;
1612
+ deleteCollector: import("@prismatic-io/spectral").ActionDefinition<{
1613
+ connection: {
1614
+ label: string;
1615
+ type: "connection";
1616
+ required: true;
1617
+ comments: string;
1618
+ };
1619
+ collectorId: {
1620
+ label: string;
1621
+ type: "string";
1622
+ required: true;
1623
+ comments: string;
1624
+ example: string;
1625
+ placeholder: string;
1626
+ dataSource: string;
1627
+ clean: (value: unknown, defaultValue?: string) => string;
1628
+ };
1629
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1630
+ data: {
1631
+ success: boolean;
1632
+ };
1633
+ }>;
1634
+ getCollectorStats: import("@prismatic-io/spectral").ActionDefinition<{
1635
+ connection: {
1636
+ label: string;
1637
+ type: "connection";
1638
+ required: true;
1639
+ comments: string;
1640
+ };
1641
+ collectorId: {
1642
+ label: string;
1643
+ type: "string";
1644
+ required: true;
1645
+ comments: string;
1646
+ example: string;
1647
+ placeholder: string;
1648
+ dataSource: string;
1649
+ clean: (value: unknown, defaultValue?: string) => string;
1650
+ };
1651
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1652
+ data: CollectorStats;
1653
+ }>;
1654
+ listSurveys: import("@prismatic-io/spectral").ActionDefinition<{
1655
+ connection: {
1656
+ label: string;
1657
+ type: "connection";
1658
+ required: true;
1659
+ comments: string;
1660
+ };
1661
+ fetchAll: {
1662
+ label: string;
1663
+ type: "boolean";
1664
+ required: false;
1665
+ default: string;
1666
+ comments: string;
1667
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1668
+ };
1669
+ pagination: {
1670
+ label: string;
1671
+ required: boolean;
1672
+ comments: string;
1673
+ inputs: {
1674
+ page: {
1675
+ label: string;
1676
+ type: "string";
1677
+ required: false;
1678
+ comments: string;
1679
+ example: string;
1680
+ placeholder: string;
1681
+ clean: (value: unknown, defaultValue?: number) => number;
1682
+ };
1683
+ perPage: {
1684
+ label: string;
1685
+ type: "string";
1686
+ required: false;
1687
+ comments: string;
1688
+ example: string;
1689
+ placeholder: string;
1690
+ clean: (value: unknown, defaultValue?: number) => number;
1691
+ };
1692
+ };
1693
+ } & {
1694
+ type: "structuredObject";
1695
+ };
1696
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1697
+ data: PaginatedResponse<Survey>;
1698
+ }>;
1699
+ getSurvey: import("@prismatic-io/spectral").ActionDefinition<{
1700
+ connection: {
1701
+ label: string;
1702
+ type: "connection";
1703
+ required: true;
1704
+ comments: string;
1705
+ };
1706
+ surveyId: {
1707
+ label: string;
1708
+ type: "string";
1709
+ required: true;
1710
+ comments: string;
1711
+ example: string;
1712
+ placeholder: string;
1713
+ dataSource: string;
1714
+ clean: (value: unknown, defaultValue?: string) => string;
1715
+ };
1716
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1717
+ data: Survey;
1718
+ }>;
1719
+ getSurveyDetails: import("@prismatic-io/spectral").ActionDefinition<{
1720
+ connection: {
1721
+ label: string;
1722
+ type: "connection";
1723
+ required: true;
1724
+ comments: string;
1725
+ };
1726
+ surveyId: {
1727
+ label: string;
1728
+ type: "string";
1729
+ required: true;
1730
+ comments: string;
1731
+ example: string;
1732
+ placeholder: string;
1733
+ dataSource: string;
1734
+ clean: (value: unknown, defaultValue?: string) => string;
1735
+ };
1736
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1737
+ data: SurveyDetails;
1738
+ }>;
1739
+ createSurvey: import("@prismatic-io/spectral").ActionDefinition<{
1740
+ connection: {
1741
+ label: string;
1742
+ type: "connection";
1743
+ required: true;
1744
+ comments: string;
1745
+ };
1746
+ title: {
1747
+ label: string;
1748
+ type: "string";
1749
+ required: true;
1750
+ comments: string;
1751
+ example: string;
1752
+ placeholder: string;
1753
+ clean: (value: unknown, defaultValue?: string) => string;
1754
+ };
1755
+ nickname: {
1756
+ label: string;
1757
+ type: "string";
1758
+ required: false;
1759
+ comments: string;
1760
+ example: string;
1761
+ placeholder: string;
1762
+ clean: (value: unknown) => string | undefined;
1763
+ };
1764
+ fromTemplateId: {
1765
+ label: string;
1766
+ type: "string";
1767
+ required: false;
1768
+ comments: string;
1769
+ example: string;
1770
+ placeholder: string;
1771
+ clean: (value: unknown) => string | undefined;
1772
+ };
1773
+ fromSurveyId: {
1774
+ label: string;
1775
+ type: "string";
1776
+ required: false;
1777
+ comments: string;
1778
+ example: string;
1779
+ placeholder: string;
1780
+ clean: (value: unknown) => string | undefined;
1781
+ };
1782
+ language: {
1783
+ label: string;
1784
+ type: "string";
1785
+ required: false;
1786
+ default: string;
1787
+ comments: string;
1788
+ example: string;
1789
+ placeholder: string;
1790
+ clean: (value: unknown) => string | undefined;
1791
+ };
1792
+ extraBody: {
1793
+ label: string;
1794
+ type: "code";
1795
+ language: "json";
1796
+ comments: string;
1797
+ required: false;
1798
+ example: string;
1799
+ clean: (value: unknown) => object;
1800
+ };
1801
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1802
+ data: Survey;
1803
+ }>;
1804
+ deleteSurvey: import("@prismatic-io/spectral").ActionDefinition<{
1805
+ connection: {
1806
+ label: string;
1807
+ type: "connection";
1808
+ required: true;
1809
+ comments: string;
1810
+ };
1811
+ surveyId: {
1812
+ label: string;
1813
+ type: "string";
1814
+ required: true;
1815
+ comments: string;
1816
+ example: string;
1817
+ placeholder: string;
1818
+ dataSource: string;
1819
+ clean: (value: unknown, defaultValue?: string) => string;
1820
+ };
1821
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1822
+ data: {
1823
+ success: boolean;
1824
+ };
1825
+ }>;
1826
+ };
1827
+ dataSources: {
1828
+ selectSurvey: import("@prismatic-io/spectral").DataSourceDefinition<{
1829
+ connection: {
1830
+ label: string;
1831
+ type: "connection";
1832
+ required: true;
1833
+ comments: string;
1834
+ };
1835
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1836
+ selectCollector: import("@prismatic-io/spectral").DataSourceDefinition<{
1837
+ connection: {
1838
+ label: string;
1839
+ type: "connection";
1840
+ required: true;
1841
+ comments: string;
1842
+ };
1843
+ surveyId: {
1844
+ dataSource: undefined;
1845
+ label: string;
1846
+ type: "string";
1847
+ required: true;
1848
+ comments: string;
1849
+ example: string;
1850
+ placeholder: string;
1851
+ clean: (value: unknown, defaultValue?: string) => string;
1852
+ };
1853
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1854
+ selectContact: import("@prismatic-io/spectral").DataSourceDefinition<{
1855
+ connection: {
1856
+ label: string;
1857
+ type: "connection";
1858
+ required: true;
1859
+ comments: string;
1860
+ };
1861
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1862
+ selectContactList: import("@prismatic-io/spectral").DataSourceDefinition<{
1863
+ connection: {
1864
+ label: string;
1865
+ type: "connection";
1866
+ required: true;
1867
+ comments: string;
1868
+ };
1869
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1870
+ selectResponse: import("@prismatic-io/spectral").DataSourceDefinition<{
1871
+ connection: {
1872
+ label: string;
1873
+ type: "connection";
1874
+ required: true;
1875
+ comments: string;
1876
+ };
1877
+ surveyId: {
1878
+ dataSource: undefined;
1879
+ label: string;
1880
+ type: "string";
1881
+ required: true;
1882
+ comments: string;
1883
+ example: string;
1884
+ placeholder: string;
1885
+ clean: (value: unknown, defaultValue?: string) => string;
1886
+ };
1887
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1888
+ selectWebhookEventType: import("@prismatic-io/spectral").DataSourceDefinition<{}, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1889
+ };
1890
+ triggers: {
1891
+ eventsWebhook: import("@prismatic-io/spectral").TriggerDefinition<{
1892
+ connection: {
1893
+ label: string;
1894
+ type: "connection";
1895
+ required: true;
1896
+ comments: string;
1897
+ };
1898
+ eventType: {
1899
+ label: string;
1900
+ type: "string";
1901
+ required: true;
1902
+ model: {
1903
+ label: string;
1904
+ value: WebhookEventType;
1905
+ }[];
1906
+ comments: string;
1907
+ placeholder: string;
1908
+ clean: (value: unknown, defaultValue?: string) => string;
1909
+ };
1910
+ objectType: {
1911
+ label: string;
1912
+ type: "string";
1913
+ required: false;
1914
+ model: {
1915
+ label: string;
1916
+ value: string;
1917
+ }[];
1918
+ comments: string;
1919
+ placeholder: string;
1920
+ clean: (value: unknown) => string | undefined;
1921
+ };
1922
+ objectIds: {
1923
+ label: string;
1924
+ type: "string";
1925
+ collection: "valuelist";
1926
+ required: false;
1927
+ comments: string;
1928
+ placeholder: string;
1929
+ example: string;
1930
+ clean: (value: unknown) => string[] | undefined;
1931
+ };
1932
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, false, {
1933
+ payload: import("@prismatic-io/spectral").TriggerPayload;
1934
+ }, import("@prismatic-io/spectral").Inputs>;
1935
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
1936
+ connection: {
1937
+ label: string;
1938
+ type: "connection";
1939
+ required: true;
1940
+ comments: string;
1941
+ };
1942
+ surveyId: {
1943
+ label: string;
1944
+ type: "string";
1945
+ required: true;
1946
+ comments: string;
1947
+ example: string;
1948
+ placeholder: string;
1949
+ dataSource: string;
1950
+ clean: (value: unknown, defaultValue?: string) => string;
1951
+ };
1952
+ lookBackDate: {
1953
+ label: string;
1954
+ placeholder: string;
1955
+ type: "string";
1956
+ required: false;
1957
+ comments: string;
1958
+ example: string;
1959
+ clean: (value: unknown) => string;
1960
+ };
1961
+ showNewRecords: {
1962
+ label: string;
1963
+ type: "boolean";
1964
+ required: false;
1965
+ default: string;
1966
+ comments: string;
1967
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1968
+ };
1969
+ showUpdatedRecords: {
1970
+ label: string;
1971
+ type: "boolean";
1972
+ required: false;
1973
+ default: string;
1974
+ comments: string;
1975
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1976
+ };
1977
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
1978
+ payload: import("@prismatic-io/spectral").TriggerPayload;
1979
+ }, import("@prismatic-io/spectral").Inputs>;
1980
+ };
1981
+ hooks: {
1982
+ error: (error: unknown) => unknown;
1983
+ };
1984
+ }>;
1985
+ export = _default;