@prismatic-io/components-karbon 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,1004 @@
1
+ //#region src/interfaces/OdataObject.d.ts
2
+ interface OdataObject<T> {
3
+ [key: string]: unknown;
4
+ odata?: Record<string, unknown>;
5
+ value?: T[];
6
+ }
7
+ //#endregion
8
+ //#region node_modules/axios/index.d.ts
9
+ type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
10
+ type AxiosHeaderParameters = Record<string, string>;
11
+ interface RawAxiosHeaders {
12
+ [key: string]: AxiosHeaderValue;
13
+ }
14
+ type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean);
15
+ type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any;
16
+ declare class AxiosHeaders {
17
+ constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
18
+ [key: string]: any;
19
+ set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
20
+ set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
21
+ set(headers?: Iterable<[string, AxiosHeaderValue]>, rewrite?: boolean): AxiosHeaders;
22
+ get(headerName: string, parser: typeof AxiosHeaders.parseParameters): AxiosHeaderParameters;
23
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
24
+ get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
25
+ has(header: string, matcher?: AxiosHeaderMatcher): boolean;
26
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
27
+ clear(matcher?: AxiosHeaderMatcher): boolean;
28
+ normalize(format: boolean): AxiosHeaders;
29
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
30
+ toJSON(asStrings: true): Record<string, string>;
31
+ toJSON(asStrings?: false): Record<string, string | string[]>;
32
+ toJSON(asStrings?: boolean): Record<string, string | string[]>;
33
+ static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
34
+ static parseParameters(value: AxiosHeaderValue): AxiosHeaderParameters;
35
+ static accessor(header: string | string[]): AxiosHeaders;
36
+ static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
37
+ setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
38
+ getContentType(parser?: RegExp): RegExpExecArray | null;
39
+ getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
40
+ hasContentType(matcher?: AxiosHeaderMatcher): boolean;
41
+ setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
42
+ getContentLength(parser?: RegExp): RegExpExecArray | null;
43
+ getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
44
+ hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
45
+ setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
46
+ getAccept(parser?: RegExp): RegExpExecArray | null;
47
+ getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
48
+ hasAccept(matcher?: AxiosHeaderMatcher): boolean;
49
+ setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
50
+ getUserAgent(parser?: RegExp): RegExpExecArray | null;
51
+ getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
52
+ hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
53
+ setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
54
+ getContentEncoding(parser?: RegExp): RegExpExecArray | null;
55
+ getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
56
+ hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
57
+ setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
58
+ getAuthorization(parser?: RegExp): RegExpExecArray | null;
59
+ getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
60
+ hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
61
+ getSetCookie(): string[];
62
+ toString(): string;
63
+ [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
64
+ }
65
+ type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
66
+ type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control' | 'Content-Encoding';
67
+ type CommonResponseHeaderKey = CommonResponseHeadersList | Lowercase<CommonResponseHeadersList>;
68
+ type RawCommonResponseHeaders = { [Key in CommonResponseHeaderKey]: AxiosHeaderValue } & {
69
+ 'set-cookie': string[];
70
+ };
71
+ type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
72
+ type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
73
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
74
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
75
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
76
+ //#endregion
77
+ //#region src/interfaces/WorkItem.d.ts
78
+ interface WorkItem {
79
+ "@odata.type": "#KarbonService.WorkItemSummaryDTO";
80
+ WorkItemKey: string;
81
+ AssigneeEmailAddress: string;
82
+ AssigneeKey: string;
83
+ AssigneeName: string;
84
+ Title: string;
85
+ ClientKey: string;
86
+ ClientName: string;
87
+ ClientType: string;
88
+ ClientUserDefinedIdentifier: string;
89
+ RelatedClientGroupKey: string;
90
+ ClientGroupKey: string;
91
+ RelatedClientGroupName: string;
92
+ StartDate: string;
93
+ DueDate: string;
94
+ DeadlineDate: string;
95
+ CompletedDate: string;
96
+ ToDoPeriod: string;
97
+ WorkType: string;
98
+ WorkStatus: string;
99
+ PrimaryStatus: string;
100
+ SecondaryStatus: string;
101
+ WorkTemplateKey: string;
102
+ WorkTemplateTile: string;
103
+ WorkScheduleKey: string;
104
+ }
105
+ //#endregion
106
+ //#region src/interfaces/User.d.ts
107
+ interface User {
108
+ Id: string;
109
+ Name: string;
110
+ EmailAddress: string;
111
+ }
112
+ //#endregion
113
+ //#region src/interfaces/Contact.d.ts
114
+ interface Contact {
115
+ "@odata.type": "#KarbonService.ContactSummaryDTO";
116
+ ContactKey: string;
117
+ FullName: string;
118
+ PreferredName: string;
119
+ Salutation: string;
120
+ ClientOwner: string;
121
+ ClientManager: string;
122
+ Address: string;
123
+ EmailAddress: string | null;
124
+ PhoneNumber: string;
125
+ RoleOrTitle: string;
126
+ UserDefinedIdentifier: string;
127
+ LastModifiedDateTime: string;
128
+ }
129
+ //#endregion
130
+ //#region npm-dist/.entry.d.ts
131
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
132
+ key: "karbon";
133
+ public: true;
134
+ documentationUrl: "https://prismatic.io/docs/components/karbon/";
135
+ display: {
136
+ label: string;
137
+ description: string;
138
+ iconPath: string;
139
+ category: "Application Connectors";
140
+ };
141
+ hooks: {
142
+ error: (error: unknown) => unknown;
143
+ };
144
+ actions: {
145
+ deleteAllWebhookSubscriptions: import("@prismatic-io/spectral").ActionDefinition<{
146
+ connection: {
147
+ label: string;
148
+ type: "connection";
149
+ required: true;
150
+ };
151
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
152
+ data: string;
153
+ }>;
154
+ getWebhook: import("@prismatic-io/spectral").ActionDefinition<{
155
+ connection: {
156
+ label: string;
157
+ type: "connection";
158
+ required: true;
159
+ };
160
+ webhookType: {
161
+ label: string;
162
+ type: "string";
163
+ model: {
164
+ value: string;
165
+ label: string;
166
+ }[];
167
+ comments: string;
168
+ required: true;
169
+ example: string;
170
+ clean: (value: unknown) => string | undefined;
171
+ };
172
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
173
+ data: OdataObject<unknown>;
174
+ }>;
175
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
176
+ url: {
177
+ comments: string;
178
+ example: string;
179
+ placeholder: string;
180
+ label: string;
181
+ type: "string";
182
+ required: true;
183
+ clean: (value: unknown) => string;
184
+ };
185
+ method: {
186
+ label: string;
187
+ type: "string";
188
+ required: true;
189
+ model: {
190
+ label: Method;
191
+ value: Method;
192
+ }[];
193
+ comments: string;
194
+ clean: (value: unknown) => string;
195
+ };
196
+ data: {
197
+ label: string;
198
+ placeholder: string;
199
+ type: "string";
200
+ required: false;
201
+ comments: string;
202
+ example: string;
203
+ };
204
+ formData: {
205
+ label: string;
206
+ placeholder: string;
207
+ type: "string";
208
+ collection: "keyvaluelist";
209
+ required: false;
210
+ comments: string;
211
+ example: string;
212
+ };
213
+ fileData: {
214
+ label: string;
215
+ placeholder: string;
216
+ type: "string";
217
+ collection: "keyvaluelist";
218
+ required: false;
219
+ comments: string;
220
+ example: string;
221
+ };
222
+ fileDataFileNames: {
223
+ label: string;
224
+ placeholder: string;
225
+ type: "string";
226
+ collection: "keyvaluelist";
227
+ required: false;
228
+ comments: string;
229
+ clean: (values: any) => Record<string, string> | undefined;
230
+ };
231
+ queryParams: {
232
+ label: string;
233
+ placeholder: string;
234
+ type: "string";
235
+ collection: "keyvaluelist";
236
+ required: false;
237
+ comments: string;
238
+ };
239
+ headers: {
240
+ label: string;
241
+ placeholder: string;
242
+ type: "string";
243
+ collection: "keyvaluelist";
244
+ required: false;
245
+ comments: string;
246
+ example: string;
247
+ };
248
+ responseType: {
249
+ label: string;
250
+ placeholder: string;
251
+ type: "string";
252
+ default: string;
253
+ required: true;
254
+ comments: string;
255
+ model: {
256
+ label: ResponseType;
257
+ value: ResponseType;
258
+ }[];
259
+ clean: (value: unknown) => ResponseType;
260
+ };
261
+ timeout: {
262
+ label: string;
263
+ type: "string";
264
+ required: false;
265
+ comments: string;
266
+ example: string;
267
+ clean: (value: unknown) => number;
268
+ };
269
+ retryDelayMS: {
270
+ label: string;
271
+ placeholder: string;
272
+ type: "string";
273
+ required: false;
274
+ comments: string;
275
+ default: string;
276
+ clean: (value: unknown) => number;
277
+ };
278
+ retryAllErrors: {
279
+ label: string;
280
+ type: "boolean";
281
+ default: string;
282
+ required: false;
283
+ comments: string;
284
+ clean: (value: unknown) => boolean;
285
+ };
286
+ maxRetries: {
287
+ label: string;
288
+ placeholder: string;
289
+ type: "string";
290
+ required: false;
291
+ comments: string;
292
+ default: string;
293
+ clean: (value: unknown) => number;
294
+ };
295
+ useExponentialBackoff: {
296
+ label: string;
297
+ type: "boolean";
298
+ default: string;
299
+ required: false;
300
+ comments: string;
301
+ clean: (value: unknown) => boolean;
302
+ };
303
+ connection: {
304
+ label: string;
305
+ type: "connection";
306
+ required: true;
307
+ };
308
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
309
+ data: {
310
+ data: OdataObject<unknown>;
311
+ headers: AxiosResponseHeaders | Partial<RawAxiosHeaders & {
312
+ "Content-Length": AxiosHeaderValue;
313
+ "Content-Encoding": AxiosHeaderValue;
314
+ "Content-Type": AxiosHeaderValue;
315
+ Server: AxiosHeaderValue;
316
+ "Cache-Control": AxiosHeaderValue;
317
+ "content-length": AxiosHeaderValue;
318
+ "content-encoding": AxiosHeaderValue;
319
+ "content-type": AxiosHeaderValue;
320
+ server: AxiosHeaderValue;
321
+ "cache-control": AxiosHeaderValue;
322
+ } & {
323
+ 'set-cookie': string[];
324
+ }>;
325
+ };
326
+ }>;
327
+ listWorkItems: import("@prismatic-io/spectral").ActionDefinition<{
328
+ connection: {
329
+ label: string;
330
+ type: "connection";
331
+ required: true;
332
+ };
333
+ $filter: {
334
+ comments: string;
335
+ label: string;
336
+ type: "string";
337
+ example: string;
338
+ placeholder: string;
339
+ required: false;
340
+ clean: (value: unknown) => string | undefined;
341
+ };
342
+ $top: {
343
+ label: string;
344
+ type: "string";
345
+ comments: string;
346
+ required: false;
347
+ example: string;
348
+ placeholder: string;
349
+ clean: (value: unknown) => number | undefined;
350
+ };
351
+ $skip: {
352
+ label: string;
353
+ type: "string";
354
+ comments: string;
355
+ example: string;
356
+ placeholder: string;
357
+ required: false;
358
+ clean: (value: unknown) => number | undefined;
359
+ };
360
+ $orderby: {
361
+ model: {
362
+ value: string;
363
+ label: string;
364
+ }[];
365
+ label: string;
366
+ type: "string";
367
+ comments: string;
368
+ example: string;
369
+ placeholder: string;
370
+ required: false;
371
+ clean: (value: unknown) => string | undefined;
372
+ };
373
+ getAllData: {
374
+ label: string;
375
+ type: "boolean";
376
+ comments: string;
377
+ required: false;
378
+ default: string;
379
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
380
+ };
381
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
382
+ data: OdataObject<WorkItem>;
383
+ }>;
384
+ createWorkItem: import("@prismatic-io/spectral").ActionDefinition<{
385
+ connection: {
386
+ label: string;
387
+ type: "connection";
388
+ required: true;
389
+ };
390
+ assigneeEmailAddres: {
391
+ label: string;
392
+ type: "string";
393
+ comments: string;
394
+ required: true;
395
+ clean: (value: unknown) => string | undefined;
396
+ example: string;
397
+ placeholder: string;
398
+ };
399
+ title: {
400
+ label: string;
401
+ type: "string";
402
+ comments: string;
403
+ required: true;
404
+ clean: (value: unknown) => string | undefined;
405
+ example: string;
406
+ placeholder: string;
407
+ };
408
+ clientKey: {
409
+ label: string;
410
+ type: "string";
411
+ comments: string;
412
+ required: true;
413
+ clean: (value: unknown) => string | undefined;
414
+ example: string;
415
+ placeholder: string;
416
+ };
417
+ clientType: {
418
+ label: string;
419
+ type: "string";
420
+ model: {
421
+ value: string;
422
+ label: string;
423
+ }[];
424
+ comments: string;
425
+ required: true;
426
+ example: string;
427
+ clean: (value: unknown) => string | undefined;
428
+ };
429
+ relatedClientGroupKey: {
430
+ label: string;
431
+ type: "string";
432
+ comments: string;
433
+ clean: (value: unknown) => string | undefined;
434
+ example: string;
435
+ required: false;
436
+ placeholder: string;
437
+ };
438
+ startDate: {
439
+ label: string;
440
+ type: "string";
441
+ comments: string;
442
+ required: true;
443
+ example: string;
444
+ placeholder: string;
445
+ clean: (value: unknown) => string | undefined;
446
+ };
447
+ additionalFields: {
448
+ example: string;
449
+ comments: string;
450
+ label: string;
451
+ type: "code";
452
+ language: "json";
453
+ required: false;
454
+ clean: (value: unknown) => object | undefined;
455
+ };
456
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
457
+ data: OdataObject<unknown>;
458
+ }>;
459
+ getWorkItem: import("@prismatic-io/spectral").ActionDefinition<{
460
+ connection: {
461
+ label: string;
462
+ type: "connection";
463
+ required: true;
464
+ };
465
+ workItemkey: {
466
+ comments: string;
467
+ label: string;
468
+ type: "string";
469
+ required: true;
470
+ clean: (value: unknown) => string | undefined;
471
+ example: string;
472
+ placeholder: string;
473
+ dataSource: string;
474
+ };
475
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
476
+ data: OdataObject<unknown>;
477
+ }>;
478
+ updateWorkItem: import("@prismatic-io/spectral").ActionDefinition<{
479
+ connection: {
480
+ label: string;
481
+ type: "connection";
482
+ required: true;
483
+ };
484
+ workItemkey: {
485
+ comments: string;
486
+ label: string;
487
+ type: "string";
488
+ required: true;
489
+ clean: (value: unknown) => string | undefined;
490
+ example: string;
491
+ placeholder: string;
492
+ dataSource: string;
493
+ };
494
+ description: {
495
+ label: string;
496
+ type: "string";
497
+ comments: string;
498
+ required: false;
499
+ example: string;
500
+ placeholder: string;
501
+ clean: (value: unknown) => string | undefined;
502
+ };
503
+ deadlineDate: {
504
+ label: string;
505
+ type: "string";
506
+ comments: string;
507
+ required: false;
508
+ example: string;
509
+ placeholder: string;
510
+ clean: (value: unknown) => string | undefined;
511
+ };
512
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
513
+ data: string;
514
+ }>;
515
+ createUser: import("@prismatic-io/spectral").ActionDefinition<{
516
+ connection: {
517
+ label: string;
518
+ type: "connection";
519
+ required: true;
520
+ };
521
+ userName: {
522
+ label: string;
523
+ type: "string";
524
+ comments: string;
525
+ required: true;
526
+ clean: (value: unknown) => string | undefined;
527
+ example: string;
528
+ placeholder: string;
529
+ };
530
+ userEmail: {
531
+ label: string;
532
+ type: "string";
533
+ comments: string;
534
+ required: true;
535
+ clean: (value: unknown) => string | undefined;
536
+ example: string;
537
+ placeholder: string;
538
+ };
539
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
540
+ data: OdataObject<unknown>;
541
+ }>;
542
+ listUsers: import("@prismatic-io/spectral").ActionDefinition<{
543
+ connection: {
544
+ label: string;
545
+ type: "connection";
546
+ required: true;
547
+ };
548
+ $filter: {
549
+ comments: string;
550
+ label: string;
551
+ type: "string";
552
+ example: string;
553
+ placeholder: string;
554
+ required: false;
555
+ clean: (value: unknown) => string | undefined;
556
+ };
557
+ $top: {
558
+ label: string;
559
+ type: "string";
560
+ comments: string;
561
+ required: false;
562
+ example: string;
563
+ placeholder: string;
564
+ clean: (value: unknown) => number | undefined;
565
+ };
566
+ $skip: {
567
+ label: string;
568
+ type: "string";
569
+ comments: string;
570
+ example: string;
571
+ placeholder: string;
572
+ required: false;
573
+ clean: (value: unknown) => number | undefined;
574
+ };
575
+ getAllData: {
576
+ label: string;
577
+ type: "boolean";
578
+ comments: string;
579
+ required: false;
580
+ default: string;
581
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
582
+ };
583
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
584
+ data: OdataObject<User>;
585
+ }>;
586
+ getUser: import("@prismatic-io/spectral").ActionDefinition<{
587
+ connection: {
588
+ label: string;
589
+ type: "connection";
590
+ required: true;
591
+ };
592
+ userId: {
593
+ label: string;
594
+ type: "string";
595
+ comments: string;
596
+ required: true;
597
+ clean: (value: unknown) => string | undefined;
598
+ example: string;
599
+ placeholder: string;
600
+ dataSource: string;
601
+ };
602
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
603
+ data: OdataObject<unknown>;
604
+ }>;
605
+ getInvoice: import("@prismatic-io/spectral").ActionDefinition<{
606
+ connection: {
607
+ label: string;
608
+ type: "connection";
609
+ required: true;
610
+ };
611
+ invoiceKey: {
612
+ label: string;
613
+ type: "string";
614
+ required: true;
615
+ example: string;
616
+ placeholder: string;
617
+ comments: string;
618
+ clean: (value: unknown) => string | undefined;
619
+ dataSource: string;
620
+ };
621
+ includeLineItems: {
622
+ label: string;
623
+ type: "boolean";
624
+ required: false;
625
+ default: string;
626
+ comments: string;
627
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
628
+ };
629
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
630
+ data: OdataObject<unknown>;
631
+ }>;
632
+ listInvoices: import("@prismatic-io/spectral").ActionDefinition<{
633
+ connection: {
634
+ label: string;
635
+ type: "connection";
636
+ required: true;
637
+ };
638
+ includeLineItems: {
639
+ label: string;
640
+ type: "boolean";
641
+ required: false;
642
+ default: string;
643
+ comments: string;
644
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
645
+ };
646
+ $orderby: {
647
+ model: {
648
+ value: string;
649
+ label: string;
650
+ }[];
651
+ label: string;
652
+ type: "string";
653
+ comments: string;
654
+ example: string;
655
+ placeholder: string;
656
+ required: false;
657
+ clean: (value: unknown) => string | undefined;
658
+ };
659
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
660
+ data: OdataObject<unknown>;
661
+ }>;
662
+ listContacts: import("@prismatic-io/spectral").ActionDefinition<{
663
+ connection: {
664
+ label: string;
665
+ type: "connection";
666
+ required: true;
667
+ };
668
+ $filter: {
669
+ comments: string;
670
+ label: string;
671
+ type: "string";
672
+ example: string;
673
+ placeholder: string;
674
+ required: false;
675
+ clean: (value: unknown) => string | undefined;
676
+ };
677
+ $top: {
678
+ label: string;
679
+ type: "string";
680
+ comments: string;
681
+ required: false;
682
+ example: string;
683
+ placeholder: string;
684
+ clean: (value: unknown) => number | undefined;
685
+ };
686
+ $skip: {
687
+ label: string;
688
+ type: "string";
689
+ comments: string;
690
+ example: string;
691
+ placeholder: string;
692
+ required: false;
693
+ clean: (value: unknown) => number | undefined;
694
+ };
695
+ $orderby: {
696
+ model: {
697
+ value: string;
698
+ label: string;
699
+ }[];
700
+ label: string;
701
+ type: "string";
702
+ comments: string;
703
+ example: string;
704
+ placeholder: string;
705
+ required: false;
706
+ clean: (value: unknown) => string | undefined;
707
+ };
708
+ getAllData: {
709
+ label: string;
710
+ type: "boolean";
711
+ comments: string;
712
+ required: false;
713
+ default: string;
714
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
715
+ };
716
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
717
+ data: OdataObject<Contact>;
718
+ }>;
719
+ createContact: import("@prismatic-io/spectral").ActionDefinition<{
720
+ connection: {
721
+ label: string;
722
+ type: "connection";
723
+ required: true;
724
+ };
725
+ firstName: {
726
+ label: string;
727
+ comments: string;
728
+ type: "string";
729
+ required: true;
730
+ clean: (value: unknown) => string | undefined;
731
+ example: string;
732
+ placeholder: string;
733
+ };
734
+ lastName: {
735
+ label: string;
736
+ comments: string;
737
+ type: "string";
738
+ required: true;
739
+ clean: (value: unknown) => string | undefined;
740
+ example: string;
741
+ placeholder: string;
742
+ };
743
+ additionalFields: {
744
+ example: string;
745
+ comments: string;
746
+ label: string;
747
+ type: "code";
748
+ language: "json";
749
+ required: false;
750
+ clean: (value: unknown) => object | undefined;
751
+ };
752
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
753
+ data: OdataObject<unknown>;
754
+ }>;
755
+ getContact: import("@prismatic-io/spectral").ActionDefinition<{
756
+ connection: {
757
+ label: string;
758
+ type: "connection";
759
+ required: true;
760
+ };
761
+ contactkey: {
762
+ comments: string;
763
+ label: string;
764
+ type: "string";
765
+ required: true;
766
+ clean: (value: unknown) => string | undefined;
767
+ example: string;
768
+ placeholder: string;
769
+ dataSource: string;
770
+ };
771
+ expandBusinessCards: {
772
+ label: string;
773
+ comments: string;
774
+ type: "boolean";
775
+ required: false;
776
+ default: string;
777
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
778
+ };
779
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
780
+ data: OdataObject<unknown>;
781
+ }>;
782
+ updateContact: import("@prismatic-io/spectral").ActionDefinition<{
783
+ connection: {
784
+ label: string;
785
+ type: "connection";
786
+ required: true;
787
+ };
788
+ contactkey: {
789
+ comments: string;
790
+ label: string;
791
+ type: "string";
792
+ required: true;
793
+ clean: (value: unknown) => string | undefined;
794
+ example: string;
795
+ placeholder: string;
796
+ dataSource: string;
797
+ };
798
+ firstName: {
799
+ required: false;
800
+ label: string;
801
+ comments: string;
802
+ type: "string";
803
+ clean: (value: unknown) => string | undefined;
804
+ example: string;
805
+ placeholder: string;
806
+ };
807
+ lastName: {
808
+ required: false;
809
+ label: string;
810
+ comments: string;
811
+ type: "string";
812
+ clean: (value: unknown) => string | undefined;
813
+ example: string;
814
+ placeholder: string;
815
+ };
816
+ middleName: {
817
+ label: string;
818
+ comments: string;
819
+ type: "string";
820
+ required: false;
821
+ clean: (value: unknown) => string | undefined;
822
+ example: string;
823
+ placeholder: string;
824
+ };
825
+ preferredName: {
826
+ label: string;
827
+ comments: string;
828
+ type: "string";
829
+ required: false;
830
+ clean: (value: unknown) => string | undefined;
831
+ example: string;
832
+ placeholder: string;
833
+ };
834
+ salutation: {
835
+ label: string;
836
+ comments: string;
837
+ type: "string";
838
+ required: false;
839
+ clean: (value: unknown) => string | undefined;
840
+ example: string;
841
+ placeholder: string;
842
+ };
843
+ suffix: {
844
+ label: string;
845
+ comments: string;
846
+ type: "string";
847
+ required: false;
848
+ clean: (value: unknown) => string | undefined;
849
+ example: string;
850
+ placeholder: string;
851
+ };
852
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
853
+ data: string;
854
+ }>;
855
+ };
856
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
857
+ key: "karbonApiKey";
858
+ display: {
859
+ label: string;
860
+ description: string;
861
+ };
862
+ inputs: {
863
+ applicationId: {
864
+ type: "string";
865
+ label: string;
866
+ comments: string;
867
+ example: string;
868
+ required: true;
869
+ };
870
+ accessKey: {
871
+ type: "password";
872
+ label: string;
873
+ comments: string;
874
+ example: string;
875
+ required: true;
876
+ };
877
+ };
878
+ }, "karbonApiKey">[];
879
+ dataSources: {
880
+ selectWorkItem: import("@prismatic-io/spectral").DataSourceDefinition<{
881
+ connection: {
882
+ label: string;
883
+ type: "connection";
884
+ required: true;
885
+ };
886
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
887
+ selectUser: import("@prismatic-io/spectral").DataSourceDefinition<{
888
+ connection: {
889
+ label: string;
890
+ type: "connection";
891
+ required: true;
892
+ };
893
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
894
+ selectInvoice: import("@prismatic-io/spectral").DataSourceDefinition<{
895
+ connection: {
896
+ label: string;
897
+ type: "connection";
898
+ required: true;
899
+ };
900
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
901
+ selectContact: import("@prismatic-io/spectral").DataSourceDefinition<{
902
+ connection: {
903
+ label: string;
904
+ type: "connection";
905
+ required: true;
906
+ };
907
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
908
+ selectOrganization: import("@prismatic-io/spectral").DataSourceDefinition<{
909
+ connection: {
910
+ label: string;
911
+ type: "connection";
912
+ required: true;
913
+ };
914
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
915
+ };
916
+ triggers: {
917
+ entityTrigger: import("@prismatic-io/spectral").TriggerDefinition<{
918
+ connection: {
919
+ label: string;
920
+ type: "connection";
921
+ required: true;
922
+ };
923
+ webhookType: {
924
+ label: string;
925
+ type: "string";
926
+ model: {
927
+ value: string;
928
+ label: string;
929
+ }[];
930
+ comments: string;
931
+ required: true;
932
+ example: string;
933
+ clean: (value: unknown) => string | undefined;
934
+ };
935
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, false, {
936
+ payload: import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>;
937
+ }, import("@prismatic-io/spectral").Inputs>;
938
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
939
+ connection: {
940
+ label: string;
941
+ type: "connection";
942
+ required: true;
943
+ };
944
+ pollResourceType: {
945
+ label: string;
946
+ type: "string";
947
+ required: true;
948
+ default: string;
949
+ model: {
950
+ label: string;
951
+ value: string;
952
+ }[];
953
+ comments: string;
954
+ clean: (value: unknown, defaultValue?: string) => string;
955
+ };
956
+ lookBackDate: {
957
+ label: string;
958
+ placeholder: string;
959
+ type: "string";
960
+ required: false;
961
+ comments: string;
962
+ example: string;
963
+ clean: (value: unknown) => string;
964
+ };
965
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
966
+ payload: {
967
+ body: {
968
+ data: {
969
+ updated: Record<string, unknown>[];
970
+ };
971
+ };
972
+ headers: {
973
+ [key: string]: string;
974
+ };
975
+ queryParameters: {
976
+ [key: string]: string;
977
+ };
978
+ rawBody: {
979
+ data: unknown;
980
+ contentType?: string;
981
+ };
982
+ pathFragment: string;
983
+ webhookUrls: {
984
+ [key: string]: string;
985
+ };
986
+ webhookApiKeys: {
987
+ [key: string]: string[];
988
+ };
989
+ invokeUrl: string;
990
+ executionId: string;
991
+ customer: import("@prismatic-io/spectral").CustomerAttributes;
992
+ instance: import("@prismatic-io/spectral").InstanceAttributes;
993
+ user: import("@prismatic-io/spectral").UserAttributes;
994
+ integration: import("@prismatic-io/spectral").IntegrationAttributes;
995
+ flow: import("@prismatic-io/spectral").FlowAttributes;
996
+ startedAt: string;
997
+ globalDebug: boolean;
998
+ paginationState?: Record<string, unknown> | undefined;
999
+ };
1000
+ polledNoChanges: boolean;
1001
+ }, import("@prismatic-io/spectral").Inputs>;
1002
+ };
1003
+ }>;
1004
+ export = _default;