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