@prismatic-io/components-woo-commerce 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,2380 @@
1
+ //#region node_modules/axios/index.d.ts
2
+ type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
3
+ type AxiosHeaderParameters = Record<string, string>;
4
+ interface RawAxiosHeaders {
5
+ [key: string]: AxiosHeaderValue;
6
+ }
7
+ type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean);
8
+ type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any;
9
+ declare class AxiosHeaders {
10
+ constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
11
+ [key: string]: any;
12
+ set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
13
+ set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
14
+ set(headers?: Iterable<[string, AxiosHeaderValue]>, rewrite?: boolean): AxiosHeaders;
15
+ get(headerName: string, parser: typeof AxiosHeaders.parseParameters): AxiosHeaderParameters;
16
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
17
+ get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
18
+ has(header: string, matcher?: AxiosHeaderMatcher): boolean;
19
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
20
+ clear(matcher?: AxiosHeaderMatcher): boolean;
21
+ normalize(format: boolean): AxiosHeaders;
22
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
23
+ toJSON(asStrings: true): Record<string, string>;
24
+ toJSON(asStrings?: false): Record<string, string | string[]>;
25
+ toJSON(asStrings?: boolean): Record<string, string | string[]>;
26
+ static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
27
+ static parseParameters(value: AxiosHeaderValue): AxiosHeaderParameters;
28
+ static accessor(header: string | string[]): AxiosHeaders;
29
+ static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
30
+ setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
31
+ getContentType(parser?: RegExp): RegExpExecArray | null;
32
+ getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
33
+ hasContentType(matcher?: AxiosHeaderMatcher): boolean;
34
+ setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
35
+ getContentLength(parser?: RegExp): RegExpExecArray | null;
36
+ getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
37
+ hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
38
+ setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
39
+ getAccept(parser?: RegExp): RegExpExecArray | null;
40
+ getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
41
+ hasAccept(matcher?: AxiosHeaderMatcher): boolean;
42
+ setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
43
+ getUserAgent(parser?: RegExp): RegExpExecArray | null;
44
+ getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
45
+ hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
46
+ setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
47
+ getContentEncoding(parser?: RegExp): RegExpExecArray | null;
48
+ getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
49
+ hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
50
+ setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
51
+ getAuthorization(parser?: RegExp): RegExpExecArray | null;
52
+ getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
53
+ hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
54
+ getSetCookie(): string[];
55
+ toString(): string;
56
+ [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
57
+ }
58
+ type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
59
+ type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control' | 'Content-Encoding';
60
+ type CommonResponseHeaderKey = CommonResponseHeadersList | Lowercase<CommonResponseHeadersList>;
61
+ type RawCommonResponseHeaders = { [Key in CommonResponseHeaderKey]: AxiosHeaderValue } & {
62
+ 'set-cookie': string[];
63
+ };
64
+ type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
65
+ type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
66
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
67
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
68
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
69
+ //#endregion
70
+ //#region src/types.d.ts
71
+ interface WooCommerceRecord {
72
+ id: number;
73
+ date_created_gmt?: string | null;
74
+ [key: string]: unknown;
75
+ }
76
+ //#endregion
77
+ //#region npm-dist/.entry.d.ts
78
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
79
+ key: "woo-commerce";
80
+ public: true;
81
+ documentationUrl: "https://prismatic.io/docs/components/woo-commerce/";
82
+ display: {
83
+ label: string;
84
+ category: "Application Connectors";
85
+ description: string;
86
+ iconPath: string;
87
+ };
88
+ actions: {
89
+ listCustomers: import("@prismatic-io/spectral").ActionDefinition<{
90
+ connection: {
91
+ label: string;
92
+ type: "connection";
93
+ comments: string;
94
+ required: true;
95
+ };
96
+ fetchAll: {
97
+ label: string;
98
+ type: "boolean";
99
+ comments: string;
100
+ required: false;
101
+ default: string;
102
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
103
+ };
104
+ resultsPerPage: {
105
+ label: string;
106
+ type: "string";
107
+ comments: string;
108
+ required: false;
109
+ placeholder: string;
110
+ example: string;
111
+ clean: (value: unknown) => string | undefined;
112
+ };
113
+ page: {
114
+ label: string;
115
+ type: "string";
116
+ comments: string;
117
+ required: false;
118
+ placeholder: string;
119
+ example: string;
120
+ clean: (value: unknown) => string | undefined;
121
+ };
122
+ offset: {
123
+ label: string;
124
+ type: "string";
125
+ comments: string;
126
+ required: false;
127
+ placeholder: string;
128
+ example: string;
129
+ clean: (value: unknown) => string | undefined;
130
+ };
131
+ search: {
132
+ label: string;
133
+ type: "string";
134
+ comments: string;
135
+ required: false;
136
+ placeholder: string;
137
+ example: string;
138
+ clean: (value: unknown) => string | undefined;
139
+ };
140
+ before: {
141
+ label: string;
142
+ type: "string";
143
+ comments: string;
144
+ required: false;
145
+ placeholder: string;
146
+ example: string;
147
+ clean: (value: unknown) => string | undefined;
148
+ };
149
+ after: {
150
+ label: string;
151
+ type: "string";
152
+ comments: string;
153
+ required: false;
154
+ placeholder: string;
155
+ example: string;
156
+ clean: (value: unknown) => string | undefined;
157
+ };
158
+ params: {
159
+ label: string;
160
+ type: "string";
161
+ collection: "keyvaluelist";
162
+ comments: string;
163
+ required: false;
164
+ clean: (value: unknown) => Record<string, unknown>;
165
+ };
166
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
167
+ data: {
168
+ data: {
169
+ id: number;
170
+ date_created: string;
171
+ date_created_gmt: string;
172
+ date_modified: string;
173
+ date_modified_gmt: string;
174
+ email: string;
175
+ first_name: string;
176
+ last_name: string;
177
+ role: string;
178
+ username: string;
179
+ billing: {
180
+ first_name: string;
181
+ last_name: string;
182
+ company: string;
183
+ address_1: string;
184
+ address_2: string;
185
+ city: string;
186
+ state: string;
187
+ postcode: string;
188
+ country: string;
189
+ email: string;
190
+ phone: string;
191
+ };
192
+ shipping: {
193
+ first_name: string;
194
+ last_name: string;
195
+ company: string;
196
+ address_1: string;
197
+ address_2: string;
198
+ city: string;
199
+ state: string;
200
+ postcode: string;
201
+ country: string;
202
+ };
203
+ is_paying_customer: boolean;
204
+ avatar_url: string;
205
+ meta_data: never[];
206
+ }[];
207
+ headers: any;
208
+ };
209
+ }>;
210
+ createCustomer: import("@prismatic-io/spectral").ActionDefinition<{
211
+ connection: {
212
+ label: string;
213
+ type: "connection";
214
+ comments: string;
215
+ required: true;
216
+ };
217
+ email: {
218
+ label: string;
219
+ type: "string";
220
+ comments: string;
221
+ required: true;
222
+ placeholder: string;
223
+ example: string;
224
+ clean: (value: unknown, defaultValue?: string) => string;
225
+ };
226
+ phone: {
227
+ label: string;
228
+ type: "string";
229
+ comments: string;
230
+ required: false;
231
+ placeholder: string;
232
+ example: string;
233
+ };
234
+ username: {
235
+ label: string;
236
+ type: "string";
237
+ comments: string;
238
+ required: false;
239
+ placeholder: string;
240
+ example: string;
241
+ };
242
+ firstName: {
243
+ label: string;
244
+ type: "string";
245
+ comments: string;
246
+ required: false;
247
+ placeholder: string;
248
+ example: string;
249
+ };
250
+ lastName: {
251
+ label: string;
252
+ type: "string";
253
+ comments: string;
254
+ required: false;
255
+ placeholder: string;
256
+ example: string;
257
+ };
258
+ company: {
259
+ label: string;
260
+ type: "string";
261
+ comments: string;
262
+ required: false;
263
+ placeholder: string;
264
+ example: string;
265
+ };
266
+ billingAddress1: {
267
+ label: string;
268
+ type: "string";
269
+ comments: string;
270
+ required: false;
271
+ placeholder: string;
272
+ example: string;
273
+ };
274
+ billingAddress2: {
275
+ label: string;
276
+ type: "string";
277
+ comments: string;
278
+ required: false;
279
+ placeholder: string;
280
+ example: string;
281
+ };
282
+ city: {
283
+ label: string;
284
+ type: "string";
285
+ comments: string;
286
+ required: false;
287
+ placeholder: string;
288
+ example: string;
289
+ };
290
+ state: {
291
+ label: string;
292
+ type: "string";
293
+ comments: string;
294
+ required: false;
295
+ placeholder: string;
296
+ example: string;
297
+ };
298
+ country: {
299
+ label: string;
300
+ type: "string";
301
+ comments: string;
302
+ required: false;
303
+ placeholder: string;
304
+ example: string;
305
+ };
306
+ postalcode: {
307
+ label: string;
308
+ type: "string";
309
+ comments: string;
310
+ required: false;
311
+ placeholder: string;
312
+ example: string;
313
+ };
314
+ shippingAddress1: {
315
+ label: string;
316
+ type: "string";
317
+ comments: string;
318
+ required: false;
319
+ placeholder: string;
320
+ example: string;
321
+ };
322
+ shippingAddress2: {
323
+ label: string;
324
+ type: "string";
325
+ comments: string;
326
+ required: false;
327
+ placeholder: string;
328
+ example: string;
329
+ };
330
+ shippingCity: {
331
+ label: string;
332
+ type: "string";
333
+ comments: string;
334
+ required: false;
335
+ placeholder: string;
336
+ example: string;
337
+ };
338
+ shippingState: {
339
+ label: string;
340
+ type: "string";
341
+ comments: string;
342
+ required: false;
343
+ placeholder: string;
344
+ example: string;
345
+ };
346
+ shippingCountry: {
347
+ label: string;
348
+ type: "string";
349
+ comments: string;
350
+ required: false;
351
+ placeholder: string;
352
+ example: string;
353
+ };
354
+ shippingPostalCode: {
355
+ label: string;
356
+ type: "string";
357
+ comments: string;
358
+ required: false;
359
+ placeholder: string;
360
+ example: string;
361
+ };
362
+ values: {
363
+ label: string;
364
+ type: "string";
365
+ collection: "keyvaluelist";
366
+ comments: string;
367
+ required: false;
368
+ };
369
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
370
+ data: unknown;
371
+ }>;
372
+ deleteCustomer: import("@prismatic-io/spectral").ActionDefinition<{
373
+ connection: {
374
+ label: string;
375
+ type: "connection";
376
+ comments: string;
377
+ required: true;
378
+ };
379
+ customerId: {
380
+ label: string;
381
+ type: "string";
382
+ comments: string;
383
+ required: true;
384
+ placeholder: string;
385
+ example: string;
386
+ clean: (value: unknown, defaultValue?: string) => string;
387
+ dataSource: string;
388
+ };
389
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
390
+ data: unknown;
391
+ }>;
392
+ getCustomer: import("@prismatic-io/spectral").ActionDefinition<{
393
+ connection: {
394
+ label: string;
395
+ type: "connection";
396
+ comments: string;
397
+ required: true;
398
+ };
399
+ customerId: {
400
+ label: string;
401
+ type: "string";
402
+ comments: string;
403
+ required: true;
404
+ placeholder: string;
405
+ example: string;
406
+ clean: (value: unknown, defaultValue?: string) => string;
407
+ dataSource: string;
408
+ };
409
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
410
+ data: unknown;
411
+ }>;
412
+ updateCustomer: import("@prismatic-io/spectral").ActionDefinition<{
413
+ connection: {
414
+ label: string;
415
+ type: "connection";
416
+ comments: string;
417
+ required: true;
418
+ };
419
+ customerId: {
420
+ label: string;
421
+ type: "string";
422
+ comments: string;
423
+ required: true;
424
+ placeholder: string;
425
+ example: string;
426
+ clean: (value: unknown, defaultValue?: string) => string;
427
+ dataSource: string;
428
+ };
429
+ email: {
430
+ required: false;
431
+ label: string;
432
+ type: "string";
433
+ comments: string;
434
+ placeholder: string;
435
+ example: string;
436
+ clean: (value: unknown, defaultValue?: string) => string;
437
+ };
438
+ phone: {
439
+ label: string;
440
+ type: "string";
441
+ comments: string;
442
+ required: false;
443
+ placeholder: string;
444
+ example: string;
445
+ };
446
+ username: {
447
+ label: string;
448
+ type: "string";
449
+ comments: string;
450
+ required: false;
451
+ placeholder: string;
452
+ example: string;
453
+ };
454
+ firstName: {
455
+ label: string;
456
+ type: "string";
457
+ comments: string;
458
+ required: false;
459
+ placeholder: string;
460
+ example: string;
461
+ };
462
+ lastName: {
463
+ label: string;
464
+ type: "string";
465
+ comments: string;
466
+ required: false;
467
+ placeholder: string;
468
+ example: string;
469
+ };
470
+ company: {
471
+ label: string;
472
+ type: "string";
473
+ comments: string;
474
+ required: false;
475
+ placeholder: string;
476
+ example: string;
477
+ };
478
+ billingAddress1: {
479
+ label: string;
480
+ type: "string";
481
+ comments: string;
482
+ required: false;
483
+ placeholder: string;
484
+ example: string;
485
+ };
486
+ billingAddress2: {
487
+ label: string;
488
+ type: "string";
489
+ comments: string;
490
+ required: false;
491
+ placeholder: string;
492
+ example: string;
493
+ };
494
+ billingCity: {
495
+ label: string;
496
+ type: "string";
497
+ comments: string;
498
+ required: false;
499
+ placeholder: string;
500
+ example: string;
501
+ };
502
+ billingState: {
503
+ label: string;
504
+ type: "string";
505
+ comments: string;
506
+ required: false;
507
+ placeholder: string;
508
+ example: string;
509
+ };
510
+ billingPostalCode: {
511
+ label: string;
512
+ type: "string";
513
+ comments: string;
514
+ required: false;
515
+ placeholder: string;
516
+ example: string;
517
+ };
518
+ billingCountry: {
519
+ label: string;
520
+ type: "string";
521
+ comments: string;
522
+ required: false;
523
+ placeholder: string;
524
+ example: string;
525
+ };
526
+ shippingAddress1: {
527
+ label: string;
528
+ type: "string";
529
+ comments: string;
530
+ required: false;
531
+ placeholder: string;
532
+ example: string;
533
+ };
534
+ shippingAddress2: {
535
+ label: string;
536
+ type: "string";
537
+ comments: string;
538
+ required: false;
539
+ placeholder: string;
540
+ example: string;
541
+ };
542
+ shippingCity: {
543
+ label: string;
544
+ type: "string";
545
+ comments: string;
546
+ required: false;
547
+ placeholder: string;
548
+ example: string;
549
+ };
550
+ shippingState: {
551
+ label: string;
552
+ type: "string";
553
+ comments: string;
554
+ required: false;
555
+ placeholder: string;
556
+ example: string;
557
+ };
558
+ shippingCountry: {
559
+ label: string;
560
+ type: "string";
561
+ comments: string;
562
+ required: false;
563
+ placeholder: string;
564
+ example: string;
565
+ };
566
+ shippingPostalCode: {
567
+ label: string;
568
+ type: "string";
569
+ comments: string;
570
+ required: false;
571
+ placeholder: string;
572
+ example: string;
573
+ };
574
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
575
+ data: unknown;
576
+ }>;
577
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
578
+ url: {
579
+ comments: string;
580
+ example: string;
581
+ label: string;
582
+ placeholder: string;
583
+ type: "string";
584
+ required: true;
585
+ clean: (value: unknown) => string;
586
+ };
587
+ method: {
588
+ label: string;
589
+ type: "string";
590
+ required: true;
591
+ model: {
592
+ label: Method;
593
+ value: Method;
594
+ }[];
595
+ comments: string;
596
+ clean: (value: unknown) => string;
597
+ };
598
+ data: {
599
+ label: string;
600
+ placeholder: string;
601
+ type: "string";
602
+ required: false;
603
+ comments: string;
604
+ example: string;
605
+ };
606
+ formData: {
607
+ label: string;
608
+ placeholder: string;
609
+ type: "string";
610
+ collection: "keyvaluelist";
611
+ required: false;
612
+ comments: string;
613
+ example: string;
614
+ };
615
+ fileData: {
616
+ label: string;
617
+ placeholder: string;
618
+ type: "string";
619
+ collection: "keyvaluelist";
620
+ required: false;
621
+ comments: string;
622
+ example: string;
623
+ };
624
+ fileDataFileNames: {
625
+ label: string;
626
+ placeholder: string;
627
+ type: "string";
628
+ collection: "keyvaluelist";
629
+ required: false;
630
+ comments: string;
631
+ clean: (values: any) => Record<string, string> | undefined;
632
+ };
633
+ queryParams: {
634
+ label: string;
635
+ placeholder: string;
636
+ type: "string";
637
+ collection: "keyvaluelist";
638
+ required: false;
639
+ comments: string;
640
+ };
641
+ headers: {
642
+ label: string;
643
+ placeholder: string;
644
+ type: "string";
645
+ collection: "keyvaluelist";
646
+ required: false;
647
+ comments: string;
648
+ example: string;
649
+ };
650
+ responseType: {
651
+ label: string;
652
+ placeholder: string;
653
+ type: "string";
654
+ default: string;
655
+ required: true;
656
+ comments: string;
657
+ model: {
658
+ label: ResponseType;
659
+ value: ResponseType;
660
+ }[];
661
+ clean: (value: unknown) => ResponseType;
662
+ };
663
+ timeout: {
664
+ label: string;
665
+ type: "string";
666
+ required: false;
667
+ comments: string;
668
+ example: string;
669
+ clean: (value: unknown) => number;
670
+ };
671
+ retryDelayMS: {
672
+ label: string;
673
+ placeholder: string;
674
+ type: "string";
675
+ required: false;
676
+ comments: string;
677
+ default: string;
678
+ clean: (value: unknown) => number;
679
+ };
680
+ retryAllErrors: {
681
+ label: string;
682
+ type: "boolean";
683
+ default: string;
684
+ required: false;
685
+ comments: string;
686
+ clean: (value: unknown) => boolean;
687
+ };
688
+ maxRetries: {
689
+ label: string;
690
+ placeholder: string;
691
+ type: "string";
692
+ required: false;
693
+ comments: string;
694
+ default: string;
695
+ clean: (value: unknown) => number;
696
+ };
697
+ useExponentialBackoff: {
698
+ label: string;
699
+ type: "boolean";
700
+ default: string;
701
+ required: false;
702
+ comments: string;
703
+ clean: (value: unknown) => boolean;
704
+ };
705
+ connection: {
706
+ label: string;
707
+ type: "connection";
708
+ comments: string;
709
+ required: true;
710
+ };
711
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
712
+ data: any;
713
+ }>;
714
+ createProduct: import("@prismatic-io/spectral").ActionDefinition<{
715
+ connection: {
716
+ label: string;
717
+ type: "connection";
718
+ comments: string;
719
+ required: true;
720
+ };
721
+ productName: {
722
+ label: string;
723
+ type: "string";
724
+ comments: string;
725
+ required: false;
726
+ placeholder: string;
727
+ example: string;
728
+ };
729
+ productType: {
730
+ label: string;
731
+ type: "string";
732
+ comments: string;
733
+ required: false;
734
+ placeholder: string;
735
+ example: string;
736
+ };
737
+ price: {
738
+ label: string;
739
+ type: "string";
740
+ comments: string;
741
+ required: false;
742
+ placeholder: string;
743
+ example: string;
744
+ };
745
+ description: {
746
+ label: string;
747
+ type: "string";
748
+ comments: string;
749
+ required: false;
750
+ placeholder: string;
751
+ example: string;
752
+ };
753
+ summary: {
754
+ label: string;
755
+ type: "string";
756
+ comments: string;
757
+ required: false;
758
+ placeholder: string;
759
+ example: string;
760
+ };
761
+ categories: {
762
+ label: string;
763
+ type: "code";
764
+ comments: string;
765
+ required: false;
766
+ language: "json";
767
+ placeholder: string;
768
+ example: string;
769
+ };
770
+ images: {
771
+ label: string;
772
+ type: "code";
773
+ language: "json";
774
+ comments: string;
775
+ required: false;
776
+ placeholder: string;
777
+ example: string;
778
+ };
779
+ values: {
780
+ label: string;
781
+ type: "string";
782
+ collection: "keyvaluelist";
783
+ comments: string;
784
+ required: false;
785
+ };
786
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
787
+ data: unknown;
788
+ }>;
789
+ deleteProduct: import("@prismatic-io/spectral").ActionDefinition<{
790
+ connection: {
791
+ label: string;
792
+ type: "connection";
793
+ comments: string;
794
+ required: true;
795
+ };
796
+ productId: {
797
+ label: string;
798
+ type: "string";
799
+ comments: string;
800
+ required: true;
801
+ placeholder: string;
802
+ example: string;
803
+ dataSource: string;
804
+ };
805
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
806
+ data: unknown;
807
+ }>;
808
+ getProduct: import("@prismatic-io/spectral").ActionDefinition<{
809
+ connection: {
810
+ label: string;
811
+ type: "connection";
812
+ comments: string;
813
+ required: true;
814
+ };
815
+ productId: {
816
+ label: string;
817
+ type: "string";
818
+ comments: string;
819
+ required: true;
820
+ placeholder: string;
821
+ example: string;
822
+ dataSource: string;
823
+ };
824
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
825
+ data: unknown;
826
+ }>;
827
+ listProducts: import("@prismatic-io/spectral").ActionDefinition<{
828
+ connection: {
829
+ label: string;
830
+ type: "connection";
831
+ comments: string;
832
+ required: true;
833
+ };
834
+ resultsPerPage: {
835
+ label: string;
836
+ type: "string";
837
+ comments: string;
838
+ required: false;
839
+ placeholder: string;
840
+ example: string;
841
+ clean: (value: unknown) => string | undefined;
842
+ };
843
+ page: {
844
+ label: string;
845
+ type: "string";
846
+ comments: string;
847
+ required: false;
848
+ placeholder: string;
849
+ example: string;
850
+ clean: (value: unknown) => string | undefined;
851
+ };
852
+ offset: {
853
+ label: string;
854
+ type: "string";
855
+ comments: string;
856
+ required: false;
857
+ placeholder: string;
858
+ example: string;
859
+ clean: (value: unknown) => string | undefined;
860
+ };
861
+ search: {
862
+ label: string;
863
+ type: "string";
864
+ comments: string;
865
+ required: false;
866
+ placeholder: string;
867
+ example: string;
868
+ clean: (value: unknown) => string | undefined;
869
+ };
870
+ before: {
871
+ label: string;
872
+ type: "string";
873
+ comments: string;
874
+ required: false;
875
+ placeholder: string;
876
+ example: string;
877
+ clean: (value: unknown) => string | undefined;
878
+ };
879
+ after: {
880
+ label: string;
881
+ type: "string";
882
+ comments: string;
883
+ required: false;
884
+ placeholder: string;
885
+ example: string;
886
+ clean: (value: unknown) => string | undefined;
887
+ };
888
+ params: {
889
+ label: string;
890
+ type: "string";
891
+ collection: "keyvaluelist";
892
+ comments: string;
893
+ required: false;
894
+ clean: (value: unknown) => Record<string, unknown>;
895
+ };
896
+ fetchAll: {
897
+ label: string;
898
+ type: "boolean";
899
+ comments: string;
900
+ required: false;
901
+ default: string;
902
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
903
+ };
904
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
905
+ data: {
906
+ data: {
907
+ id: number;
908
+ name: string;
909
+ slug: string;
910
+ permalink: string;
911
+ date_created: string;
912
+ date_created_gmt: string;
913
+ date_modified: string;
914
+ date_modified_gmt: string;
915
+ type: string;
916
+ status: string;
917
+ featured: boolean;
918
+ catalog_visibility: string;
919
+ description: string;
920
+ short_description: string;
921
+ sku: string;
922
+ price: string;
923
+ regular_price: string;
924
+ sale_price: string;
925
+ on_sale: boolean;
926
+ purchasable: boolean;
927
+ total_sales: number;
928
+ virtual: boolean;
929
+ downloadable: boolean;
930
+ downloads: never[];
931
+ tax_status: string;
932
+ manage_stock: boolean;
933
+ stock_quantity: null;
934
+ stock_status: string;
935
+ categories: {
936
+ id: number;
937
+ name: string;
938
+ slug: string;
939
+ }[];
940
+ images: {
941
+ id: number;
942
+ date_created: string;
943
+ date_created_gmt: string;
944
+ date_modified: string;
945
+ date_modified_gmt: string;
946
+ src: string;
947
+ name: string;
948
+ alt: string;
949
+ }[];
950
+ attributes: never[];
951
+ meta_data: never[];
952
+ }[];
953
+ headers: any;
954
+ };
955
+ }>;
956
+ updateProduct: import("@prismatic-io/spectral").ActionDefinition<{
957
+ connection: {
958
+ label: string;
959
+ type: "connection";
960
+ comments: string;
961
+ required: true;
962
+ };
963
+ productId: {
964
+ label: string;
965
+ type: "string";
966
+ comments: string;
967
+ required: true;
968
+ placeholder: string;
969
+ example: string;
970
+ dataSource: string;
971
+ };
972
+ productName: {
973
+ label: string;
974
+ type: "string";
975
+ comments: string;
976
+ required: false;
977
+ placeholder: string;
978
+ example: string;
979
+ };
980
+ productType: {
981
+ label: string;
982
+ type: "string";
983
+ comments: string;
984
+ required: false;
985
+ placeholder: string;
986
+ example: string;
987
+ };
988
+ price: {
989
+ label: string;
990
+ type: "string";
991
+ comments: string;
992
+ required: false;
993
+ placeholder: string;
994
+ example: string;
995
+ };
996
+ description: {
997
+ label: string;
998
+ type: "string";
999
+ comments: string;
1000
+ required: false;
1001
+ placeholder: string;
1002
+ example: string;
1003
+ };
1004
+ summary: {
1005
+ label: string;
1006
+ type: "string";
1007
+ comments: string;
1008
+ required: false;
1009
+ placeholder: string;
1010
+ example: string;
1011
+ };
1012
+ categories: {
1013
+ label: string;
1014
+ type: "code";
1015
+ comments: string;
1016
+ required: false;
1017
+ language: "json";
1018
+ placeholder: string;
1019
+ example: string;
1020
+ };
1021
+ images: {
1022
+ label: string;
1023
+ type: "code";
1024
+ language: "json";
1025
+ comments: string;
1026
+ required: false;
1027
+ placeholder: string;
1028
+ example: string;
1029
+ };
1030
+ values: {
1031
+ label: string;
1032
+ type: "string";
1033
+ collection: "keyvaluelist";
1034
+ comments: string;
1035
+ required: false;
1036
+ };
1037
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1038
+ data: unknown;
1039
+ }>;
1040
+ getCouponTotalsReport: import("@prismatic-io/spectral").ActionDefinition<{
1041
+ connection: {
1042
+ label: string;
1043
+ type: "connection";
1044
+ comments: string;
1045
+ required: true;
1046
+ };
1047
+ period: {
1048
+ label: string;
1049
+ type: "string";
1050
+ comments: string;
1051
+ required: false;
1052
+ model: {
1053
+ label: string;
1054
+ value: string;
1055
+ }[];
1056
+ };
1057
+ minDate: {
1058
+ label: string;
1059
+ type: "string";
1060
+ comments: string;
1061
+ required: false;
1062
+ placeholder: string;
1063
+ example: string;
1064
+ };
1065
+ maxDate: {
1066
+ label: string;
1067
+ type: "string";
1068
+ comments: string;
1069
+ required: false;
1070
+ placeholder: string;
1071
+ example: string;
1072
+ };
1073
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1074
+ data: unknown;
1075
+ }>;
1076
+ getCustomerTotalsReport: import("@prismatic-io/spectral").ActionDefinition<{
1077
+ connection: {
1078
+ label: string;
1079
+ type: "connection";
1080
+ comments: string;
1081
+ required: true;
1082
+ };
1083
+ period: {
1084
+ label: string;
1085
+ type: "string";
1086
+ comments: string;
1087
+ required: false;
1088
+ model: {
1089
+ label: string;
1090
+ value: string;
1091
+ }[];
1092
+ };
1093
+ maxDate: {
1094
+ label: string;
1095
+ type: "string";
1096
+ comments: string;
1097
+ required: false;
1098
+ placeholder: string;
1099
+ example: string;
1100
+ };
1101
+ minDate: {
1102
+ label: string;
1103
+ type: "string";
1104
+ comments: string;
1105
+ required: false;
1106
+ placeholder: string;
1107
+ example: string;
1108
+ };
1109
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1110
+ data: unknown;
1111
+ }>;
1112
+ getOrderTotalsReport: import("@prismatic-io/spectral").ActionDefinition<{
1113
+ connection: {
1114
+ label: string;
1115
+ type: "connection";
1116
+ comments: string;
1117
+ required: true;
1118
+ };
1119
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1120
+ data: unknown;
1121
+ }>;
1122
+ getProductTotalsReport: import("@prismatic-io/spectral").ActionDefinition<{
1123
+ connection: {
1124
+ label: string;
1125
+ type: "connection";
1126
+ comments: string;
1127
+ required: true;
1128
+ };
1129
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1130
+ data: unknown;
1131
+ }>;
1132
+ getReviewTotalsReport: import("@prismatic-io/spectral").ActionDefinition<{
1133
+ connection: {
1134
+ label: string;
1135
+ type: "connection";
1136
+ comments: string;
1137
+ required: true;
1138
+ };
1139
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1140
+ data: unknown;
1141
+ }>;
1142
+ getSalesReport: import("@prismatic-io/spectral").ActionDefinition<{
1143
+ connection: {
1144
+ label: string;
1145
+ type: "connection";
1146
+ comments: string;
1147
+ required: true;
1148
+ };
1149
+ period: {
1150
+ label: string;
1151
+ type: "string";
1152
+ comments: string;
1153
+ required: false;
1154
+ model: {
1155
+ label: string;
1156
+ value: string;
1157
+ }[];
1158
+ };
1159
+ minDate: {
1160
+ label: string;
1161
+ type: "string";
1162
+ comments: string;
1163
+ required: false;
1164
+ placeholder: string;
1165
+ example: string;
1166
+ };
1167
+ maxDate: {
1168
+ label: string;
1169
+ type: "string";
1170
+ comments: string;
1171
+ required: false;
1172
+ placeholder: string;
1173
+ example: string;
1174
+ };
1175
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1176
+ data: unknown;
1177
+ }>;
1178
+ getTopSellersReport: import("@prismatic-io/spectral").ActionDefinition<{
1179
+ connection: {
1180
+ label: string;
1181
+ type: "connection";
1182
+ comments: string;
1183
+ required: true;
1184
+ };
1185
+ period: {
1186
+ label: string;
1187
+ type: "string";
1188
+ comments: string;
1189
+ required: false;
1190
+ model: {
1191
+ label: string;
1192
+ value: string;
1193
+ }[];
1194
+ };
1195
+ minDate: {
1196
+ label: string;
1197
+ type: "string";
1198
+ comments: string;
1199
+ required: false;
1200
+ placeholder: string;
1201
+ example: string;
1202
+ };
1203
+ maxDate: {
1204
+ label: string;
1205
+ type: "string";
1206
+ comments: string;
1207
+ required: false;
1208
+ placeholder: string;
1209
+ example: string;
1210
+ };
1211
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1212
+ data: unknown;
1213
+ }>;
1214
+ listReports: import("@prismatic-io/spectral").ActionDefinition<{
1215
+ connection: {
1216
+ label: string;
1217
+ type: "connection";
1218
+ comments: string;
1219
+ required: true;
1220
+ };
1221
+ fetchAll: {
1222
+ label: string;
1223
+ type: "boolean";
1224
+ comments: string;
1225
+ required: false;
1226
+ default: string;
1227
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1228
+ };
1229
+ after: {
1230
+ label: string;
1231
+ type: "string";
1232
+ comments: string;
1233
+ required: false;
1234
+ placeholder: string;
1235
+ example: string;
1236
+ clean: (value: unknown) => string | undefined;
1237
+ };
1238
+ before: {
1239
+ label: string;
1240
+ type: "string";
1241
+ comments: string;
1242
+ required: false;
1243
+ placeholder: string;
1244
+ example: string;
1245
+ clean: (value: unknown) => string | undefined;
1246
+ };
1247
+ page: {
1248
+ label: string;
1249
+ type: "string";
1250
+ comments: string;
1251
+ required: false;
1252
+ placeholder: string;
1253
+ example: string;
1254
+ clean: (value: unknown) => string | undefined;
1255
+ };
1256
+ resultsPerPage: {
1257
+ label: string;
1258
+ type: "string";
1259
+ comments: string;
1260
+ required: false;
1261
+ placeholder: string;
1262
+ example: string;
1263
+ clean: (value: unknown) => string | undefined;
1264
+ };
1265
+ offset: {
1266
+ label: string;
1267
+ type: "string";
1268
+ comments: string;
1269
+ required: false;
1270
+ placeholder: string;
1271
+ example: string;
1272
+ clean: (value: unknown) => string | undefined;
1273
+ };
1274
+ search: {
1275
+ label: string;
1276
+ type: "string";
1277
+ comments: string;
1278
+ required: false;
1279
+ placeholder: string;
1280
+ example: string;
1281
+ clean: (value: unknown) => string | undefined;
1282
+ };
1283
+ params: {
1284
+ label: string;
1285
+ type: "string";
1286
+ collection: "keyvaluelist";
1287
+ comments: string;
1288
+ required: false;
1289
+ clean: (value: unknown) => Record<string, unknown>;
1290
+ };
1291
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1292
+ data: {
1293
+ data: any;
1294
+ headers: AxiosResponseHeaders | Partial<RawAxiosHeaders & {
1295
+ Server: AxiosHeaderValue;
1296
+ "Content-Type": AxiosHeaderValue;
1297
+ "Content-Length": AxiosHeaderValue;
1298
+ "Cache-Control": AxiosHeaderValue;
1299
+ "Content-Encoding": AxiosHeaderValue;
1300
+ server: AxiosHeaderValue;
1301
+ "content-type": AxiosHeaderValue;
1302
+ "content-length": AxiosHeaderValue;
1303
+ "cache-control": AxiosHeaderValue;
1304
+ "content-encoding": AxiosHeaderValue;
1305
+ } & {
1306
+ 'set-cookie': string[];
1307
+ }>;
1308
+ };
1309
+ }>;
1310
+ deleteOrder: import("@prismatic-io/spectral").ActionDefinition<{
1311
+ connection: {
1312
+ label: string;
1313
+ type: "connection";
1314
+ comments: string;
1315
+ required: true;
1316
+ };
1317
+ orderId: {
1318
+ label: string;
1319
+ type: "string";
1320
+ comments: string;
1321
+ required: true;
1322
+ placeholder: string;
1323
+ example: string;
1324
+ dataSource: string;
1325
+ };
1326
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1327
+ data: unknown;
1328
+ }>;
1329
+ getOrder: import("@prismatic-io/spectral").ActionDefinition<{
1330
+ connection: {
1331
+ label: string;
1332
+ type: "connection";
1333
+ comments: string;
1334
+ required: true;
1335
+ };
1336
+ orderId: {
1337
+ label: string;
1338
+ type: "string";
1339
+ comments: string;
1340
+ required: true;
1341
+ placeholder: string;
1342
+ example: string;
1343
+ dataSource: string;
1344
+ };
1345
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1346
+ data: unknown;
1347
+ }>;
1348
+ listOrders: import("@prismatic-io/spectral").ActionDefinition<{
1349
+ connection: {
1350
+ label: string;
1351
+ type: "connection";
1352
+ comments: string;
1353
+ required: true;
1354
+ };
1355
+ resultsPerPage: {
1356
+ label: string;
1357
+ type: "string";
1358
+ comments: string;
1359
+ required: false;
1360
+ placeholder: string;
1361
+ example: string;
1362
+ clean: (value: unknown) => string | undefined;
1363
+ };
1364
+ page: {
1365
+ label: string;
1366
+ type: "string";
1367
+ comments: string;
1368
+ required: false;
1369
+ placeholder: string;
1370
+ example: string;
1371
+ clean: (value: unknown) => string | undefined;
1372
+ };
1373
+ offset: {
1374
+ label: string;
1375
+ type: "string";
1376
+ comments: string;
1377
+ required: false;
1378
+ placeholder: string;
1379
+ example: string;
1380
+ clean: (value: unknown) => string | undefined;
1381
+ };
1382
+ search: {
1383
+ label: string;
1384
+ type: "string";
1385
+ comments: string;
1386
+ required: false;
1387
+ placeholder: string;
1388
+ example: string;
1389
+ clean: (value: unknown) => string | undefined;
1390
+ };
1391
+ before: {
1392
+ label: string;
1393
+ type: "string";
1394
+ comments: string;
1395
+ required: false;
1396
+ placeholder: string;
1397
+ example: string;
1398
+ clean: (value: unknown) => string | undefined;
1399
+ };
1400
+ after: {
1401
+ label: string;
1402
+ type: "string";
1403
+ comments: string;
1404
+ required: false;
1405
+ placeholder: string;
1406
+ example: string;
1407
+ clean: (value: unknown) => string | undefined;
1408
+ };
1409
+ params: {
1410
+ label: string;
1411
+ type: "string";
1412
+ collection: "keyvaluelist";
1413
+ comments: string;
1414
+ required: false;
1415
+ clean: (value: unknown) => Record<string, unknown>;
1416
+ };
1417
+ fetchAll: {
1418
+ label: string;
1419
+ type: "boolean";
1420
+ comments: string;
1421
+ required: false;
1422
+ default: string;
1423
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1424
+ };
1425
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1426
+ data: {
1427
+ data: {
1428
+ id: number;
1429
+ parent_id: number;
1430
+ number: string;
1431
+ order_key: string;
1432
+ created_via: string;
1433
+ version: string;
1434
+ status: string;
1435
+ currency: string;
1436
+ date_created: string;
1437
+ date_created_gmt: string;
1438
+ date_modified: string;
1439
+ date_modified_gmt: string;
1440
+ discount_total: string;
1441
+ discount_tax: string;
1442
+ shipping_total: string;
1443
+ shipping_tax: string;
1444
+ cart_tax: string;
1445
+ total: string;
1446
+ total_tax: string;
1447
+ prices_include_tax: boolean;
1448
+ customer_id: number;
1449
+ customer_note: string;
1450
+ billing: {
1451
+ first_name: string;
1452
+ last_name: string;
1453
+ company: string;
1454
+ address_1: string;
1455
+ address_2: string;
1456
+ city: string;
1457
+ state: string;
1458
+ postcode: string;
1459
+ country: string;
1460
+ email: string;
1461
+ phone: string;
1462
+ };
1463
+ shipping: {
1464
+ first_name: string;
1465
+ last_name: string;
1466
+ company: string;
1467
+ address_1: string;
1468
+ address_2: string;
1469
+ city: string;
1470
+ state: string;
1471
+ postcode: string;
1472
+ country: string;
1473
+ };
1474
+ payment_method: string;
1475
+ payment_method_title: string;
1476
+ line_items: {
1477
+ id: number;
1478
+ name: string;
1479
+ product_id: number;
1480
+ variation_id: number;
1481
+ quantity: number;
1482
+ tax_class: string;
1483
+ subtotal: string;
1484
+ total: string;
1485
+ total_tax: string;
1486
+ sku: string;
1487
+ price: number;
1488
+ }[];
1489
+ shipping_lines: {
1490
+ id: number;
1491
+ method_title: string;
1492
+ method_id: string;
1493
+ total: string;
1494
+ total_tax: string;
1495
+ }[];
1496
+ fee_lines: never[];
1497
+ coupon_lines: never[];
1498
+ refunds: never[];
1499
+ meta_data: never[];
1500
+ }[];
1501
+ headers: any;
1502
+ };
1503
+ }>;
1504
+ getRefund: import("@prismatic-io/spectral").ActionDefinition<{
1505
+ connection: {
1506
+ label: string;
1507
+ type: "connection";
1508
+ comments: string;
1509
+ required: true;
1510
+ };
1511
+ orderId: {
1512
+ label: string;
1513
+ type: "string";
1514
+ comments: string;
1515
+ required: true;
1516
+ placeholder: string;
1517
+ example: string;
1518
+ dataSource: string;
1519
+ };
1520
+ refundId: {
1521
+ label: string;
1522
+ type: "string";
1523
+ comments: string;
1524
+ required: true;
1525
+ placeholder: string;
1526
+ example: string;
1527
+ dataSource: string;
1528
+ };
1529
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1530
+ data: unknown;
1531
+ }>;
1532
+ listRefunds: import("@prismatic-io/spectral").ActionDefinition<{
1533
+ connection: {
1534
+ label: string;
1535
+ type: "connection";
1536
+ comments: string;
1537
+ required: true;
1538
+ };
1539
+ orderId: {
1540
+ label: string;
1541
+ type: "string";
1542
+ comments: string;
1543
+ required: true;
1544
+ placeholder: string;
1545
+ example: string;
1546
+ dataSource: string;
1547
+ };
1548
+ resultsPerPage: {
1549
+ label: string;
1550
+ type: "string";
1551
+ comments: string;
1552
+ required: false;
1553
+ placeholder: string;
1554
+ example: string;
1555
+ clean: (value: unknown) => string | undefined;
1556
+ };
1557
+ page: {
1558
+ label: string;
1559
+ type: "string";
1560
+ comments: string;
1561
+ required: false;
1562
+ placeholder: string;
1563
+ example: string;
1564
+ clean: (value: unknown) => string | undefined;
1565
+ };
1566
+ offset: {
1567
+ label: string;
1568
+ type: "string";
1569
+ comments: string;
1570
+ required: false;
1571
+ placeholder: string;
1572
+ example: string;
1573
+ clean: (value: unknown) => string | undefined;
1574
+ };
1575
+ search: {
1576
+ label: string;
1577
+ type: "string";
1578
+ comments: string;
1579
+ required: false;
1580
+ placeholder: string;
1581
+ example: string;
1582
+ clean: (value: unknown) => string | undefined;
1583
+ };
1584
+ before: {
1585
+ label: string;
1586
+ type: "string";
1587
+ comments: string;
1588
+ required: false;
1589
+ placeholder: string;
1590
+ example: string;
1591
+ clean: (value: unknown) => string | undefined;
1592
+ };
1593
+ after: {
1594
+ label: string;
1595
+ type: "string";
1596
+ comments: string;
1597
+ required: false;
1598
+ placeholder: string;
1599
+ example: string;
1600
+ clean: (value: unknown) => string | undefined;
1601
+ };
1602
+ params: {
1603
+ label: string;
1604
+ type: "string";
1605
+ collection: "keyvaluelist";
1606
+ comments: string;
1607
+ required: false;
1608
+ clean: (value: unknown) => Record<string, unknown>;
1609
+ };
1610
+ fetchAll: {
1611
+ label: string;
1612
+ type: "boolean";
1613
+ comments: string;
1614
+ required: false;
1615
+ default: string;
1616
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1617
+ };
1618
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1619
+ data: {
1620
+ data: any;
1621
+ headers: AxiosResponseHeaders | Partial<RawAxiosHeaders & {
1622
+ Server: AxiosHeaderValue;
1623
+ "Content-Type": AxiosHeaderValue;
1624
+ "Content-Length": AxiosHeaderValue;
1625
+ "Cache-Control": AxiosHeaderValue;
1626
+ "Content-Encoding": AxiosHeaderValue;
1627
+ server: AxiosHeaderValue;
1628
+ "content-type": AxiosHeaderValue;
1629
+ "content-length": AxiosHeaderValue;
1630
+ "cache-control": AxiosHeaderValue;
1631
+ "content-encoding": AxiosHeaderValue;
1632
+ } & {
1633
+ 'set-cookie': string[];
1634
+ }>;
1635
+ };
1636
+ }>;
1637
+ createOrder: import("@prismatic-io/spectral").ActionDefinition<{
1638
+ connection: {
1639
+ label: string;
1640
+ type: "connection";
1641
+ comments: string;
1642
+ required: true;
1643
+ };
1644
+ lineItems: {
1645
+ label: string;
1646
+ type: "code";
1647
+ language: "json";
1648
+ comments: string;
1649
+ required: false;
1650
+ placeholder: string;
1651
+ example: string;
1652
+ };
1653
+ shippingLines: {
1654
+ label: string;
1655
+ type: "code";
1656
+ comments: string;
1657
+ required: false;
1658
+ language: "json";
1659
+ placeholder: string;
1660
+ example: string;
1661
+ };
1662
+ paymentMethod: {
1663
+ label: string;
1664
+ type: "string";
1665
+ comments: string;
1666
+ required: false;
1667
+ placeholder: string;
1668
+ example: string;
1669
+ };
1670
+ paymentMethodTitle: {
1671
+ label: string;
1672
+ type: "string";
1673
+ comments: string;
1674
+ required: false;
1675
+ placeholder: string;
1676
+ example: string;
1677
+ };
1678
+ isPaid: {
1679
+ label: string;
1680
+ type: "boolean";
1681
+ comments: string;
1682
+ required: true;
1683
+ };
1684
+ email: {
1685
+ required: false;
1686
+ label: string;
1687
+ type: "string";
1688
+ comments: string;
1689
+ placeholder: string;
1690
+ example: string;
1691
+ clean: (value: unknown, defaultValue?: string) => string;
1692
+ };
1693
+ phone: {
1694
+ label: string;
1695
+ type: "string";
1696
+ comments: string;
1697
+ required: false;
1698
+ placeholder: string;
1699
+ example: string;
1700
+ };
1701
+ firstName: {
1702
+ label: string;
1703
+ type: "string";
1704
+ comments: string;
1705
+ required: false;
1706
+ placeholder: string;
1707
+ example: string;
1708
+ };
1709
+ lastName: {
1710
+ label: string;
1711
+ type: "string";
1712
+ comments: string;
1713
+ required: false;
1714
+ placeholder: string;
1715
+ example: string;
1716
+ };
1717
+ billingAddress1: {
1718
+ label: string;
1719
+ type: "string";
1720
+ comments: string;
1721
+ required: false;
1722
+ placeholder: string;
1723
+ example: string;
1724
+ };
1725
+ billingAddress2: {
1726
+ label: string;
1727
+ type: "string";
1728
+ comments: string;
1729
+ required: false;
1730
+ placeholder: string;
1731
+ example: string;
1732
+ };
1733
+ billingCity: {
1734
+ label: string;
1735
+ type: "string";
1736
+ comments: string;
1737
+ required: false;
1738
+ placeholder: string;
1739
+ example: string;
1740
+ };
1741
+ billingState: {
1742
+ label: string;
1743
+ type: "string";
1744
+ comments: string;
1745
+ required: false;
1746
+ placeholder: string;
1747
+ example: string;
1748
+ };
1749
+ billingPostalCode: {
1750
+ label: string;
1751
+ type: "string";
1752
+ comments: string;
1753
+ required: false;
1754
+ placeholder: string;
1755
+ example: string;
1756
+ };
1757
+ billingCountry: {
1758
+ label: string;
1759
+ type: "string";
1760
+ comments: string;
1761
+ required: false;
1762
+ placeholder: string;
1763
+ example: string;
1764
+ };
1765
+ shippingAddress1: {
1766
+ label: string;
1767
+ type: "string";
1768
+ comments: string;
1769
+ required: false;
1770
+ placeholder: string;
1771
+ example: string;
1772
+ };
1773
+ shippingAddress2: {
1774
+ label: string;
1775
+ type: "string";
1776
+ comments: string;
1777
+ required: false;
1778
+ placeholder: string;
1779
+ example: string;
1780
+ };
1781
+ shippingCity: {
1782
+ label: string;
1783
+ type: "string";
1784
+ comments: string;
1785
+ required: false;
1786
+ placeholder: string;
1787
+ example: string;
1788
+ };
1789
+ shippingState: {
1790
+ label: string;
1791
+ type: "string";
1792
+ comments: string;
1793
+ required: false;
1794
+ placeholder: string;
1795
+ example: string;
1796
+ };
1797
+ shippingCountry: {
1798
+ label: string;
1799
+ type: "string";
1800
+ comments: string;
1801
+ required: false;
1802
+ placeholder: string;
1803
+ example: string;
1804
+ };
1805
+ shippingPostalCode: {
1806
+ label: string;
1807
+ type: "string";
1808
+ comments: string;
1809
+ required: false;
1810
+ placeholder: string;
1811
+ example: string;
1812
+ };
1813
+ values: {
1814
+ label: string;
1815
+ type: "string";
1816
+ collection: "keyvaluelist";
1817
+ comments: string;
1818
+ required: false;
1819
+ };
1820
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1821
+ data: unknown;
1822
+ }>;
1823
+ createProductCategory: import("@prismatic-io/spectral").ActionDefinition<{
1824
+ connection: {
1825
+ label: string;
1826
+ type: "connection";
1827
+ comments: string;
1828
+ required: true;
1829
+ };
1830
+ categoryName: {
1831
+ label: string;
1832
+ type: "string";
1833
+ comments: string;
1834
+ required: true;
1835
+ placeholder: string;
1836
+ example: string;
1837
+ };
1838
+ imageLink: {
1839
+ label: string;
1840
+ type: "string";
1841
+ comments: string;
1842
+ required: false;
1843
+ placeholder: string;
1844
+ example: string;
1845
+ };
1846
+ description: {
1847
+ label: string;
1848
+ type: "string";
1849
+ comments: string;
1850
+ required: false;
1851
+ placeholder: string;
1852
+ example: string;
1853
+ };
1854
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1855
+ data: unknown;
1856
+ }>;
1857
+ deleteProductCategory: import("@prismatic-io/spectral").ActionDefinition<{
1858
+ connection: {
1859
+ label: string;
1860
+ type: "connection";
1861
+ comments: string;
1862
+ required: true;
1863
+ };
1864
+ categoryId: {
1865
+ label: string;
1866
+ type: "string";
1867
+ comments: string;
1868
+ required: true;
1869
+ placeholder: string;
1870
+ example: string;
1871
+ dataSource: string;
1872
+ };
1873
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1874
+ data: unknown;
1875
+ }>;
1876
+ getProductCategory: import("@prismatic-io/spectral").ActionDefinition<{
1877
+ connection: {
1878
+ label: string;
1879
+ type: "connection";
1880
+ comments: string;
1881
+ required: true;
1882
+ };
1883
+ categoryId: {
1884
+ label: string;
1885
+ type: "string";
1886
+ comments: string;
1887
+ required: true;
1888
+ placeholder: string;
1889
+ example: string;
1890
+ dataSource: string;
1891
+ };
1892
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1893
+ data: unknown;
1894
+ }>;
1895
+ listProductCategories: import("@prismatic-io/spectral").ActionDefinition<{
1896
+ connection: {
1897
+ label: string;
1898
+ type: "connection";
1899
+ comments: string;
1900
+ required: true;
1901
+ };
1902
+ fetchAll: {
1903
+ label: string;
1904
+ type: "boolean";
1905
+ comments: string;
1906
+ required: false;
1907
+ default: string;
1908
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
1909
+ };
1910
+ resultsPerPage: {
1911
+ label: string;
1912
+ type: "string";
1913
+ comments: string;
1914
+ required: false;
1915
+ placeholder: string;
1916
+ example: string;
1917
+ clean: (value: unknown) => string | undefined;
1918
+ };
1919
+ page: {
1920
+ label: string;
1921
+ type: "string";
1922
+ comments: string;
1923
+ required: false;
1924
+ placeholder: string;
1925
+ example: string;
1926
+ clean: (value: unknown) => string | undefined;
1927
+ };
1928
+ offset: {
1929
+ label: string;
1930
+ type: "string";
1931
+ comments: string;
1932
+ required: false;
1933
+ placeholder: string;
1934
+ example: string;
1935
+ clean: (value: unknown) => string | undefined;
1936
+ };
1937
+ search: {
1938
+ label: string;
1939
+ type: "string";
1940
+ comments: string;
1941
+ required: false;
1942
+ placeholder: string;
1943
+ example: string;
1944
+ clean: (value: unknown) => string | undefined;
1945
+ };
1946
+ before: {
1947
+ label: string;
1948
+ type: "string";
1949
+ comments: string;
1950
+ required: false;
1951
+ placeholder: string;
1952
+ example: string;
1953
+ clean: (value: unknown) => string | undefined;
1954
+ };
1955
+ after: {
1956
+ label: string;
1957
+ type: "string";
1958
+ comments: string;
1959
+ required: false;
1960
+ placeholder: string;
1961
+ example: string;
1962
+ clean: (value: unknown) => string | undefined;
1963
+ };
1964
+ params: {
1965
+ label: string;
1966
+ type: "string";
1967
+ collection: "keyvaluelist";
1968
+ comments: string;
1969
+ required: false;
1970
+ clean: (value: unknown) => Record<string, unknown>;
1971
+ };
1972
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1973
+ data: {
1974
+ data: any;
1975
+ headers: AxiosResponseHeaders | Partial<RawAxiosHeaders & {
1976
+ Server: AxiosHeaderValue;
1977
+ "Content-Type": AxiosHeaderValue;
1978
+ "Content-Length": AxiosHeaderValue;
1979
+ "Cache-Control": AxiosHeaderValue;
1980
+ "Content-Encoding": AxiosHeaderValue;
1981
+ server: AxiosHeaderValue;
1982
+ "content-type": AxiosHeaderValue;
1983
+ "content-length": AxiosHeaderValue;
1984
+ "cache-control": AxiosHeaderValue;
1985
+ "content-encoding": AxiosHeaderValue;
1986
+ } & {
1987
+ 'set-cookie': string[];
1988
+ }>;
1989
+ };
1990
+ }>;
1991
+ createRefund: import("@prismatic-io/spectral").ActionDefinition<{
1992
+ connection: {
1993
+ label: string;
1994
+ type: "connection";
1995
+ comments: string;
1996
+ required: true;
1997
+ };
1998
+ orderId: {
1999
+ label: string;
2000
+ type: "string";
2001
+ comments: string;
2002
+ required: true;
2003
+ placeholder: string;
2004
+ example: string;
2005
+ dataSource: string;
2006
+ };
2007
+ refundAmount: {
2008
+ label: string;
2009
+ type: "string";
2010
+ comments: string;
2011
+ required: false;
2012
+ placeholder: string;
2013
+ example: string;
2014
+ };
2015
+ lineItems: {
2016
+ example: string;
2017
+ label: string;
2018
+ type: "code";
2019
+ language: "json";
2020
+ comments: string;
2021
+ required: false;
2022
+ placeholder: string;
2023
+ };
2024
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2025
+ data: unknown;
2026
+ }>;
2027
+ deleteRefund: import("@prismatic-io/spectral").ActionDefinition<{
2028
+ connection: {
2029
+ label: string;
2030
+ type: "connection";
2031
+ comments: string;
2032
+ required: true;
2033
+ };
2034
+ orderId: {
2035
+ label: string;
2036
+ type: "string";
2037
+ comments: string;
2038
+ required: true;
2039
+ placeholder: string;
2040
+ example: string;
2041
+ dataSource: string;
2042
+ };
2043
+ refundId: {
2044
+ label: string;
2045
+ type: "string";
2046
+ comments: string;
2047
+ required: true;
2048
+ placeholder: string;
2049
+ example: string;
2050
+ dataSource: string;
2051
+ };
2052
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
2053
+ data: unknown;
2054
+ }>;
2055
+ };
2056
+ dataSources: {
2057
+ selectOrder: import("@prismatic-io/spectral").DataSourceDefinition<{
2058
+ connection: {
2059
+ label: string;
2060
+ type: "connection";
2061
+ comments: string;
2062
+ required: true;
2063
+ };
2064
+ resultsPerPage: {
2065
+ label: string;
2066
+ type: "string";
2067
+ comments: string;
2068
+ required: false;
2069
+ placeholder: string;
2070
+ example: string;
2071
+ clean: (value: unknown) => string | undefined;
2072
+ };
2073
+ search: {
2074
+ label: string;
2075
+ type: "string";
2076
+ comments: string;
2077
+ required: false;
2078
+ placeholder: string;
2079
+ example: string;
2080
+ clean: (value: unknown) => string | undefined;
2081
+ };
2082
+ before: {
2083
+ label: string;
2084
+ type: "string";
2085
+ comments: string;
2086
+ required: false;
2087
+ placeholder: string;
2088
+ example: string;
2089
+ clean: (value: unknown) => string | undefined;
2090
+ };
2091
+ after: {
2092
+ label: string;
2093
+ type: "string";
2094
+ comments: string;
2095
+ required: false;
2096
+ placeholder: string;
2097
+ example: string;
2098
+ clean: (value: unknown) => string | undefined;
2099
+ };
2100
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
2101
+ selectCustomer: import("@prismatic-io/spectral").DataSourceDefinition<{
2102
+ connection: {
2103
+ label: string;
2104
+ type: "connection";
2105
+ comments: string;
2106
+ required: true;
2107
+ };
2108
+ resultsPerPage: {
2109
+ label: string;
2110
+ type: "string";
2111
+ comments: string;
2112
+ required: false;
2113
+ placeholder: string;
2114
+ example: string;
2115
+ clean: (value: unknown) => string | undefined;
2116
+ };
2117
+ search: {
2118
+ label: string;
2119
+ type: "string";
2120
+ comments: string;
2121
+ required: false;
2122
+ placeholder: string;
2123
+ example: string;
2124
+ clean: (value: unknown) => string | undefined;
2125
+ };
2126
+ before: {
2127
+ label: string;
2128
+ type: "string";
2129
+ comments: string;
2130
+ required: false;
2131
+ placeholder: string;
2132
+ example: string;
2133
+ clean: (value: unknown) => string | undefined;
2134
+ };
2135
+ after: {
2136
+ label: string;
2137
+ type: "string";
2138
+ comments: string;
2139
+ required: false;
2140
+ placeholder: string;
2141
+ example: string;
2142
+ clean: (value: unknown) => string | undefined;
2143
+ };
2144
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
2145
+ selectProduct: import("@prismatic-io/spectral").DataSourceDefinition<{
2146
+ connection: {
2147
+ label: string;
2148
+ type: "connection";
2149
+ comments: string;
2150
+ required: true;
2151
+ };
2152
+ resultsPerPage: {
2153
+ label: string;
2154
+ type: "string";
2155
+ comments: string;
2156
+ required: false;
2157
+ placeholder: string;
2158
+ example: string;
2159
+ clean: (value: unknown) => string | undefined;
2160
+ };
2161
+ search: {
2162
+ label: string;
2163
+ type: "string";
2164
+ comments: string;
2165
+ required: false;
2166
+ placeholder: string;
2167
+ example: string;
2168
+ clean: (value: unknown) => string | undefined;
2169
+ };
2170
+ before: {
2171
+ label: string;
2172
+ type: "string";
2173
+ comments: string;
2174
+ required: false;
2175
+ placeholder: string;
2176
+ example: string;
2177
+ clean: (value: unknown) => string | undefined;
2178
+ };
2179
+ after: {
2180
+ label: string;
2181
+ type: "string";
2182
+ comments: string;
2183
+ required: false;
2184
+ placeholder: string;
2185
+ example: string;
2186
+ clean: (value: unknown) => string | undefined;
2187
+ };
2188
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
2189
+ selectProductCategory: import("@prismatic-io/spectral").DataSourceDefinition<{
2190
+ connection: {
2191
+ label: string;
2192
+ type: "connection";
2193
+ comments: string;
2194
+ required: true;
2195
+ };
2196
+ resultsPerPage: {
2197
+ label: string;
2198
+ type: "string";
2199
+ comments: string;
2200
+ required: false;
2201
+ placeholder: string;
2202
+ example: string;
2203
+ clean: (value: unknown) => string | undefined;
2204
+ };
2205
+ search: {
2206
+ label: string;
2207
+ type: "string";
2208
+ comments: string;
2209
+ required: false;
2210
+ placeholder: string;
2211
+ example: string;
2212
+ clean: (value: unknown) => string | undefined;
2213
+ };
2214
+ before: {
2215
+ label: string;
2216
+ type: "string";
2217
+ comments: string;
2218
+ required: false;
2219
+ placeholder: string;
2220
+ example: string;
2221
+ clean: (value: unknown) => string | undefined;
2222
+ };
2223
+ after: {
2224
+ label: string;
2225
+ type: "string";
2226
+ comments: string;
2227
+ required: false;
2228
+ placeholder: string;
2229
+ example: string;
2230
+ clean: (value: unknown) => string | undefined;
2231
+ };
2232
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
2233
+ selectRefund: import("@prismatic-io/spectral").DataSourceDefinition<{
2234
+ connection: {
2235
+ label: string;
2236
+ type: "connection";
2237
+ comments: string;
2238
+ required: true;
2239
+ };
2240
+ resultsPerPage: {
2241
+ label: string;
2242
+ type: "string";
2243
+ comments: string;
2244
+ required: false;
2245
+ placeholder: string;
2246
+ example: string;
2247
+ clean: (value: unknown) => string | undefined;
2248
+ };
2249
+ search: {
2250
+ label: string;
2251
+ type: "string";
2252
+ comments: string;
2253
+ required: false;
2254
+ placeholder: string;
2255
+ example: string;
2256
+ clean: (value: unknown) => string | undefined;
2257
+ };
2258
+ before: {
2259
+ label: string;
2260
+ type: "string";
2261
+ comments: string;
2262
+ required: false;
2263
+ placeholder: string;
2264
+ example: string;
2265
+ clean: (value: unknown) => string | undefined;
2266
+ };
2267
+ after: {
2268
+ label: string;
2269
+ type: "string";
2270
+ comments: string;
2271
+ required: false;
2272
+ placeholder: string;
2273
+ example: string;
2274
+ clean: (value: unknown) => string | undefined;
2275
+ };
2276
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
2277
+ };
2278
+ triggers: {
2279
+ pollNewRecordsTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
2280
+ connection: {
2281
+ label: string;
2282
+ type: "connection";
2283
+ comments: string;
2284
+ required: true;
2285
+ };
2286
+ resourceType: {
2287
+ label: string;
2288
+ type: "string";
2289
+ comments: string;
2290
+ required: true;
2291
+ model: {
2292
+ label: string;
2293
+ value: string;
2294
+ }[];
2295
+ };
2296
+ lookBackDate: {
2297
+ label: string;
2298
+ placeholder: string;
2299
+ type: "string";
2300
+ required: false;
2301
+ comments: string;
2302
+ example: string;
2303
+ clean: (value: unknown) => string;
2304
+ };
2305
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
2306
+ payload: {
2307
+ body: {
2308
+ data: {
2309
+ created: WooCommerceRecord[];
2310
+ updated: never[];
2311
+ };
2312
+ };
2313
+ headers: {
2314
+ [key: string]: string;
2315
+ };
2316
+ queryParameters: {
2317
+ [key: string]: string;
2318
+ };
2319
+ rawBody: {
2320
+ data: unknown;
2321
+ contentType?: string;
2322
+ };
2323
+ pathFragment: string;
2324
+ webhookUrls: {
2325
+ [key: string]: string;
2326
+ };
2327
+ webhookApiKeys: {
2328
+ [key: string]: string[];
2329
+ };
2330
+ invokeUrl: string;
2331
+ executionId: string;
2332
+ customer: import("@prismatic-io/spectral").CustomerAttributes;
2333
+ instance: import("@prismatic-io/spectral").InstanceAttributes;
2334
+ user: import("@prismatic-io/spectral").UserAttributes;
2335
+ integration: import("@prismatic-io/spectral").IntegrationAttributes;
2336
+ flow: import("@prismatic-io/spectral").FlowAttributes;
2337
+ startedAt: string;
2338
+ globalDebug: boolean;
2339
+ paginationState?: Record<string, unknown> | undefined;
2340
+ };
2341
+ polledNoChanges: boolean;
2342
+ }, import("@prismatic-io/spectral").Inputs>;
2343
+ };
2344
+ hooks: {
2345
+ error: (error: unknown) => unknown;
2346
+ };
2347
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
2348
+ key: "Basic";
2349
+ display: {
2350
+ description: string;
2351
+ label: string;
2352
+ };
2353
+ inputs: {
2354
+ username: {
2355
+ label: string;
2356
+ placeholder: string;
2357
+ type: "string";
2358
+ required: true;
2359
+ shown: true;
2360
+ };
2361
+ password: {
2362
+ label: string;
2363
+ placeholder: string;
2364
+ type: "password";
2365
+ required: true;
2366
+ shown: true;
2367
+ };
2368
+ domain: {
2369
+ label: string;
2370
+ placeholder: string;
2371
+ type: "string";
2372
+ example: string;
2373
+ comments: string;
2374
+ required: true;
2375
+ shown: true;
2376
+ };
2377
+ };
2378
+ }, "Basic">[];
2379
+ }>;
2380
+ export = _default;