@swishapp/api-client 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/types.gen.d.ts +231 -121
- package/dist/index.d.ts +3 -7
- package/package.json +1 -1
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
export type Item = {
|
|
2
|
+
/**
|
|
3
|
+
* The ID of the item
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The Shopify ID of the product
|
|
8
|
+
*/
|
|
9
|
+
productId: number;
|
|
10
|
+
/**
|
|
11
|
+
* The Shopify ID of the variant
|
|
12
|
+
*/
|
|
13
|
+
variantId: {
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The quantity of the item in the list
|
|
18
|
+
*/
|
|
19
|
+
quantity: number;
|
|
20
|
+
/**
|
|
21
|
+
* The date and time the item was created
|
|
22
|
+
*/
|
|
23
|
+
createdAt: string;
|
|
24
|
+
/**
|
|
25
|
+
* The date and time the item was updated
|
|
26
|
+
*/
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
};
|
|
1
29
|
export type List = {
|
|
2
30
|
/**
|
|
3
31
|
* The ID of the list
|
|
@@ -19,13 +47,35 @@ export type List = {
|
|
|
19
47
|
* The date and time the list was updated
|
|
20
48
|
*/
|
|
21
49
|
updatedAt: string;
|
|
50
|
+
/**
|
|
51
|
+
* The items in the list
|
|
52
|
+
*/
|
|
53
|
+
items: Array<Item>;
|
|
22
54
|
};
|
|
23
|
-
export type
|
|
55
|
+
export type ErrorDto = {
|
|
56
|
+
/**
|
|
57
|
+
* The error message
|
|
58
|
+
*/
|
|
24
59
|
message: string;
|
|
60
|
+
/**
|
|
61
|
+
* The error type
|
|
62
|
+
*/
|
|
25
63
|
error: string;
|
|
64
|
+
/**
|
|
65
|
+
* The HTTP status code of the error
|
|
66
|
+
*/
|
|
26
67
|
statusCode: number;
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the request that caused the error
|
|
70
|
+
*/
|
|
27
71
|
requestId: string;
|
|
28
72
|
};
|
|
73
|
+
export type ErrorResponseDto = {
|
|
74
|
+
/**
|
|
75
|
+
* Error details
|
|
76
|
+
*/
|
|
77
|
+
error: ErrorDto;
|
|
78
|
+
};
|
|
29
79
|
export type PageInfoDto = {
|
|
30
80
|
/**
|
|
31
81
|
* The cursor for the next page
|
|
@@ -58,34 +108,6 @@ export type UpdateListDto = {
|
|
|
58
108
|
*/
|
|
59
109
|
name: string;
|
|
60
110
|
};
|
|
61
|
-
export type Item = {
|
|
62
|
-
/**
|
|
63
|
-
* The ID of the item
|
|
64
|
-
*/
|
|
65
|
-
id: string;
|
|
66
|
-
/**
|
|
67
|
-
* The Shopify ID of the product
|
|
68
|
-
*/
|
|
69
|
-
productId: number;
|
|
70
|
-
/**
|
|
71
|
-
* The Shopify ID of the variant
|
|
72
|
-
*/
|
|
73
|
-
variantId: {
|
|
74
|
-
[key: string]: unknown;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* The quantity of the item in the list
|
|
78
|
-
*/
|
|
79
|
-
quantity: number;
|
|
80
|
-
/**
|
|
81
|
-
* The date and time the item was created
|
|
82
|
-
*/
|
|
83
|
-
createdAt: string;
|
|
84
|
-
/**
|
|
85
|
-
* The date and time the item was updated
|
|
86
|
-
*/
|
|
87
|
-
updatedAt: string;
|
|
88
|
-
};
|
|
89
111
|
export type CreateItemDto = {
|
|
90
112
|
/**
|
|
91
113
|
* The Shopify ID of the product
|
|
@@ -154,9 +176,9 @@ export type ListControllerFindAllData = {
|
|
|
154
176
|
path?: never;
|
|
155
177
|
query?: {
|
|
156
178
|
/**
|
|
157
|
-
* The
|
|
179
|
+
* The page cursor
|
|
158
180
|
*/
|
|
159
|
-
|
|
181
|
+
page?: string;
|
|
160
182
|
};
|
|
161
183
|
url: '/lists';
|
|
162
184
|
};
|
|
@@ -165,29 +187,37 @@ export type ListControllerFindAllErrors = {
|
|
|
165
187
|
* Bad Request
|
|
166
188
|
*/
|
|
167
189
|
400: ErrorResponseDto & {
|
|
168
|
-
|
|
169
|
-
|
|
190
|
+
error?: {
|
|
191
|
+
statusCode?: number;
|
|
192
|
+
error?: string;
|
|
193
|
+
};
|
|
170
194
|
};
|
|
171
195
|
/**
|
|
172
196
|
* Unauthorized
|
|
173
197
|
*/
|
|
174
198
|
401: ErrorResponseDto & {
|
|
175
|
-
|
|
176
|
-
|
|
199
|
+
error?: {
|
|
200
|
+
statusCode?: number;
|
|
201
|
+
error?: string;
|
|
202
|
+
};
|
|
177
203
|
};
|
|
178
204
|
/**
|
|
179
205
|
* Forbidden
|
|
180
206
|
*/
|
|
181
207
|
403: ErrorResponseDto & {
|
|
182
|
-
|
|
183
|
-
|
|
208
|
+
error?: {
|
|
209
|
+
statusCode?: number;
|
|
210
|
+
error?: string;
|
|
211
|
+
};
|
|
184
212
|
};
|
|
185
213
|
/**
|
|
186
214
|
* Not Found
|
|
187
215
|
*/
|
|
188
216
|
404: ErrorResponseDto & {
|
|
189
|
-
|
|
190
|
-
|
|
217
|
+
error?: {
|
|
218
|
+
statusCode?: number;
|
|
219
|
+
error?: string;
|
|
220
|
+
};
|
|
191
221
|
};
|
|
192
222
|
};
|
|
193
223
|
export type ListControllerFindAllError = ListControllerFindAllErrors[keyof ListControllerFindAllErrors];
|
|
@@ -225,29 +255,37 @@ export type ListControllerCreateOneErrors = {
|
|
|
225
255
|
* Bad Request
|
|
226
256
|
*/
|
|
227
257
|
400: ErrorResponseDto & {
|
|
228
|
-
|
|
229
|
-
|
|
258
|
+
error?: {
|
|
259
|
+
statusCode?: number;
|
|
260
|
+
error?: string;
|
|
261
|
+
};
|
|
230
262
|
};
|
|
231
263
|
/**
|
|
232
264
|
* Unauthorized
|
|
233
265
|
*/
|
|
234
266
|
401: ErrorResponseDto & {
|
|
235
|
-
|
|
236
|
-
|
|
267
|
+
error?: {
|
|
268
|
+
statusCode?: number;
|
|
269
|
+
error?: string;
|
|
270
|
+
};
|
|
237
271
|
};
|
|
238
272
|
/**
|
|
239
273
|
* Forbidden
|
|
240
274
|
*/
|
|
241
275
|
403: ErrorResponseDto & {
|
|
242
|
-
|
|
243
|
-
|
|
276
|
+
error?: {
|
|
277
|
+
statusCode?: number;
|
|
278
|
+
error?: string;
|
|
279
|
+
};
|
|
244
280
|
};
|
|
245
281
|
/**
|
|
246
282
|
* Not Found
|
|
247
283
|
*/
|
|
248
284
|
404: ErrorResponseDto & {
|
|
249
|
-
|
|
250
|
-
|
|
285
|
+
error?: {
|
|
286
|
+
statusCode?: number;
|
|
287
|
+
error?: string;
|
|
288
|
+
};
|
|
251
289
|
};
|
|
252
290
|
};
|
|
253
291
|
export type ListControllerCreateOneError = ListControllerCreateOneErrors[keyof ListControllerCreateOneErrors];
|
|
@@ -290,29 +328,37 @@ export type ListControllerDeleteOneErrors = {
|
|
|
290
328
|
* Bad Request
|
|
291
329
|
*/
|
|
292
330
|
400: ErrorResponseDto & {
|
|
293
|
-
|
|
294
|
-
|
|
331
|
+
error?: {
|
|
332
|
+
statusCode?: number;
|
|
333
|
+
error?: string;
|
|
334
|
+
};
|
|
295
335
|
};
|
|
296
336
|
/**
|
|
297
337
|
* Unauthorized
|
|
298
338
|
*/
|
|
299
339
|
401: ErrorResponseDto & {
|
|
300
|
-
|
|
301
|
-
|
|
340
|
+
error?: {
|
|
341
|
+
statusCode?: number;
|
|
342
|
+
error?: string;
|
|
343
|
+
};
|
|
302
344
|
};
|
|
303
345
|
/**
|
|
304
346
|
* Forbidden
|
|
305
347
|
*/
|
|
306
348
|
403: ErrorResponseDto & {
|
|
307
|
-
|
|
308
|
-
|
|
349
|
+
error?: {
|
|
350
|
+
statusCode?: number;
|
|
351
|
+
error?: string;
|
|
352
|
+
};
|
|
309
353
|
};
|
|
310
354
|
/**
|
|
311
355
|
* Not Found
|
|
312
356
|
*/
|
|
313
357
|
404: ErrorResponseDto & {
|
|
314
|
-
|
|
315
|
-
|
|
358
|
+
error?: {
|
|
359
|
+
statusCode?: number;
|
|
360
|
+
error?: string;
|
|
361
|
+
};
|
|
316
362
|
};
|
|
317
363
|
};
|
|
318
364
|
export type ListControllerDeleteOneError = ListControllerDeleteOneErrors[keyof ListControllerDeleteOneErrors];
|
|
@@ -353,29 +399,37 @@ export type ListControllerFindOneErrors = {
|
|
|
353
399
|
* Bad Request
|
|
354
400
|
*/
|
|
355
401
|
400: ErrorResponseDto & {
|
|
356
|
-
|
|
357
|
-
|
|
402
|
+
error?: {
|
|
403
|
+
statusCode?: number;
|
|
404
|
+
error?: string;
|
|
405
|
+
};
|
|
358
406
|
};
|
|
359
407
|
/**
|
|
360
408
|
* Unauthorized
|
|
361
409
|
*/
|
|
362
410
|
401: ErrorResponseDto & {
|
|
363
|
-
|
|
364
|
-
|
|
411
|
+
error?: {
|
|
412
|
+
statusCode?: number;
|
|
413
|
+
error?: string;
|
|
414
|
+
};
|
|
365
415
|
};
|
|
366
416
|
/**
|
|
367
417
|
* Forbidden
|
|
368
418
|
*/
|
|
369
419
|
403: ErrorResponseDto & {
|
|
370
|
-
|
|
371
|
-
|
|
420
|
+
error?: {
|
|
421
|
+
statusCode?: number;
|
|
422
|
+
error?: string;
|
|
423
|
+
};
|
|
372
424
|
};
|
|
373
425
|
/**
|
|
374
426
|
* Not Found
|
|
375
427
|
*/
|
|
376
428
|
404: ErrorResponseDto & {
|
|
377
|
-
|
|
378
|
-
|
|
429
|
+
error?: {
|
|
430
|
+
statusCode?: number;
|
|
431
|
+
error?: string;
|
|
432
|
+
};
|
|
379
433
|
};
|
|
380
434
|
};
|
|
381
435
|
export type ListControllerFindOneError = ListControllerFindOneErrors[keyof ListControllerFindOneErrors];
|
|
@@ -418,29 +472,37 @@ export type ListControllerUpdateOneErrors = {
|
|
|
418
472
|
* Bad Request
|
|
419
473
|
*/
|
|
420
474
|
400: ErrorResponseDto & {
|
|
421
|
-
|
|
422
|
-
|
|
475
|
+
error?: {
|
|
476
|
+
statusCode?: number;
|
|
477
|
+
error?: string;
|
|
478
|
+
};
|
|
423
479
|
};
|
|
424
480
|
/**
|
|
425
481
|
* Unauthorized
|
|
426
482
|
*/
|
|
427
483
|
401: ErrorResponseDto & {
|
|
428
|
-
|
|
429
|
-
|
|
484
|
+
error?: {
|
|
485
|
+
statusCode?: number;
|
|
486
|
+
error?: string;
|
|
487
|
+
};
|
|
430
488
|
};
|
|
431
489
|
/**
|
|
432
490
|
* Forbidden
|
|
433
491
|
*/
|
|
434
492
|
403: ErrorResponseDto & {
|
|
435
|
-
|
|
436
|
-
|
|
493
|
+
error?: {
|
|
494
|
+
statusCode?: number;
|
|
495
|
+
error?: string;
|
|
496
|
+
};
|
|
437
497
|
};
|
|
438
498
|
/**
|
|
439
499
|
* Not Found
|
|
440
500
|
*/
|
|
441
501
|
404: ErrorResponseDto & {
|
|
442
|
-
|
|
443
|
-
|
|
502
|
+
error?: {
|
|
503
|
+
statusCode?: number;
|
|
504
|
+
error?: string;
|
|
505
|
+
};
|
|
444
506
|
};
|
|
445
507
|
};
|
|
446
508
|
export type ListControllerUpdateOneError = ListControllerUpdateOneErrors[keyof ListControllerUpdateOneErrors];
|
|
@@ -478,29 +540,37 @@ export type ItemControllerDeleteErrors = {
|
|
|
478
540
|
* Bad Request
|
|
479
541
|
*/
|
|
480
542
|
400: ErrorResponseDto & {
|
|
481
|
-
|
|
482
|
-
|
|
543
|
+
error?: {
|
|
544
|
+
statusCode?: number;
|
|
545
|
+
error?: string;
|
|
546
|
+
};
|
|
483
547
|
};
|
|
484
548
|
/**
|
|
485
549
|
* Unauthorized
|
|
486
550
|
*/
|
|
487
551
|
401: ErrorResponseDto & {
|
|
488
|
-
|
|
489
|
-
|
|
552
|
+
error?: {
|
|
553
|
+
statusCode?: number;
|
|
554
|
+
error?: string;
|
|
555
|
+
};
|
|
490
556
|
};
|
|
491
557
|
/**
|
|
492
558
|
* Forbidden
|
|
493
559
|
*/
|
|
494
560
|
403: ErrorResponseDto & {
|
|
495
|
-
|
|
496
|
-
|
|
561
|
+
error?: {
|
|
562
|
+
statusCode?: number;
|
|
563
|
+
error?: string;
|
|
564
|
+
};
|
|
497
565
|
};
|
|
498
566
|
/**
|
|
499
567
|
* Not Found
|
|
500
568
|
*/
|
|
501
569
|
404: ErrorResponseDto & {
|
|
502
|
-
|
|
503
|
-
|
|
570
|
+
error?: {
|
|
571
|
+
statusCode?: number;
|
|
572
|
+
error?: string;
|
|
573
|
+
};
|
|
504
574
|
};
|
|
505
575
|
};
|
|
506
576
|
export type ItemControllerDeleteError = ItemControllerDeleteErrors[keyof ItemControllerDeleteErrors];
|
|
@@ -530,9 +600,9 @@ export type ItemControllerFindData = {
|
|
|
530
600
|
path?: never;
|
|
531
601
|
query?: {
|
|
532
602
|
/**
|
|
533
|
-
* The
|
|
603
|
+
* The page cursor
|
|
534
604
|
*/
|
|
535
|
-
|
|
605
|
+
page?: string;
|
|
536
606
|
};
|
|
537
607
|
url: '/items';
|
|
538
608
|
};
|
|
@@ -541,29 +611,37 @@ export type ItemControllerFindErrors = {
|
|
|
541
611
|
* Bad Request
|
|
542
612
|
*/
|
|
543
613
|
400: ErrorResponseDto & {
|
|
544
|
-
|
|
545
|
-
|
|
614
|
+
error?: {
|
|
615
|
+
statusCode?: number;
|
|
616
|
+
error?: string;
|
|
617
|
+
};
|
|
546
618
|
};
|
|
547
619
|
/**
|
|
548
620
|
* Unauthorized
|
|
549
621
|
*/
|
|
550
622
|
401: ErrorResponseDto & {
|
|
551
|
-
|
|
552
|
-
|
|
623
|
+
error?: {
|
|
624
|
+
statusCode?: number;
|
|
625
|
+
error?: string;
|
|
626
|
+
};
|
|
553
627
|
};
|
|
554
628
|
/**
|
|
555
629
|
* Forbidden
|
|
556
630
|
*/
|
|
557
631
|
403: ErrorResponseDto & {
|
|
558
|
-
|
|
559
|
-
|
|
632
|
+
error?: {
|
|
633
|
+
statusCode?: number;
|
|
634
|
+
error?: string;
|
|
635
|
+
};
|
|
560
636
|
};
|
|
561
637
|
/**
|
|
562
638
|
* Not Found
|
|
563
639
|
*/
|
|
564
640
|
404: ErrorResponseDto & {
|
|
565
|
-
|
|
566
|
-
|
|
641
|
+
error?: {
|
|
642
|
+
statusCode?: number;
|
|
643
|
+
error?: string;
|
|
644
|
+
};
|
|
567
645
|
};
|
|
568
646
|
};
|
|
569
647
|
export type ItemControllerFindError = ItemControllerFindErrors[keyof ItemControllerFindErrors];
|
|
@@ -601,29 +679,37 @@ export type ItemControllerCreateErrors = {
|
|
|
601
679
|
* Bad Request
|
|
602
680
|
*/
|
|
603
681
|
400: ErrorResponseDto & {
|
|
604
|
-
|
|
605
|
-
|
|
682
|
+
error?: {
|
|
683
|
+
statusCode?: number;
|
|
684
|
+
error?: string;
|
|
685
|
+
};
|
|
606
686
|
};
|
|
607
687
|
/**
|
|
608
688
|
* Unauthorized
|
|
609
689
|
*/
|
|
610
690
|
401: ErrorResponseDto & {
|
|
611
|
-
|
|
612
|
-
|
|
691
|
+
error?: {
|
|
692
|
+
statusCode?: number;
|
|
693
|
+
error?: string;
|
|
694
|
+
};
|
|
613
695
|
};
|
|
614
696
|
/**
|
|
615
697
|
* Forbidden
|
|
616
698
|
*/
|
|
617
699
|
403: ErrorResponseDto & {
|
|
618
|
-
|
|
619
|
-
|
|
700
|
+
error?: {
|
|
701
|
+
statusCode?: number;
|
|
702
|
+
error?: string;
|
|
703
|
+
};
|
|
620
704
|
};
|
|
621
705
|
/**
|
|
622
706
|
* Not Found
|
|
623
707
|
*/
|
|
624
708
|
404: ErrorResponseDto & {
|
|
625
|
-
|
|
626
|
-
|
|
709
|
+
error?: {
|
|
710
|
+
statusCode?: number;
|
|
711
|
+
error?: string;
|
|
712
|
+
};
|
|
627
713
|
};
|
|
628
714
|
};
|
|
629
715
|
export type ItemControllerCreateError = ItemControllerCreateErrors[keyof ItemControllerCreateErrors];
|
|
@@ -666,29 +752,37 @@ export type ItemControllerDeleteByIdErrors = {
|
|
|
666
752
|
* Bad Request
|
|
667
753
|
*/
|
|
668
754
|
400: ErrorResponseDto & {
|
|
669
|
-
|
|
670
|
-
|
|
755
|
+
error?: {
|
|
756
|
+
statusCode?: number;
|
|
757
|
+
error?: string;
|
|
758
|
+
};
|
|
671
759
|
};
|
|
672
760
|
/**
|
|
673
761
|
* Unauthorized
|
|
674
762
|
*/
|
|
675
763
|
401: ErrorResponseDto & {
|
|
676
|
-
|
|
677
|
-
|
|
764
|
+
error?: {
|
|
765
|
+
statusCode?: number;
|
|
766
|
+
error?: string;
|
|
767
|
+
};
|
|
678
768
|
};
|
|
679
769
|
/**
|
|
680
770
|
* Forbidden
|
|
681
771
|
*/
|
|
682
772
|
403: ErrorResponseDto & {
|
|
683
|
-
|
|
684
|
-
|
|
773
|
+
error?: {
|
|
774
|
+
statusCode?: number;
|
|
775
|
+
error?: string;
|
|
776
|
+
};
|
|
685
777
|
};
|
|
686
778
|
/**
|
|
687
779
|
* Not Found
|
|
688
780
|
*/
|
|
689
781
|
404: ErrorResponseDto & {
|
|
690
|
-
|
|
691
|
-
|
|
782
|
+
error?: {
|
|
783
|
+
statusCode?: number;
|
|
784
|
+
error?: string;
|
|
785
|
+
};
|
|
692
786
|
};
|
|
693
787
|
};
|
|
694
788
|
export type ItemControllerDeleteByIdError = ItemControllerDeleteByIdErrors[keyof ItemControllerDeleteByIdErrors];
|
|
@@ -729,29 +823,37 @@ export type ItemControllerUpdateByIdErrors = {
|
|
|
729
823
|
* Bad Request
|
|
730
824
|
*/
|
|
731
825
|
400: ErrorResponseDto & {
|
|
732
|
-
|
|
733
|
-
|
|
826
|
+
error?: {
|
|
827
|
+
statusCode?: number;
|
|
828
|
+
error?: string;
|
|
829
|
+
};
|
|
734
830
|
};
|
|
735
831
|
/**
|
|
736
832
|
* Unauthorized
|
|
737
833
|
*/
|
|
738
834
|
401: ErrorResponseDto & {
|
|
739
|
-
|
|
740
|
-
|
|
835
|
+
error?: {
|
|
836
|
+
statusCode?: number;
|
|
837
|
+
error?: string;
|
|
838
|
+
};
|
|
741
839
|
};
|
|
742
840
|
/**
|
|
743
841
|
* Forbidden
|
|
744
842
|
*/
|
|
745
843
|
403: ErrorResponseDto & {
|
|
746
|
-
|
|
747
|
-
|
|
844
|
+
error?: {
|
|
845
|
+
statusCode?: number;
|
|
846
|
+
error?: string;
|
|
847
|
+
};
|
|
748
848
|
};
|
|
749
849
|
/**
|
|
750
850
|
* Not Found
|
|
751
851
|
*/
|
|
752
852
|
404: ErrorResponseDto & {
|
|
753
|
-
|
|
754
|
-
|
|
853
|
+
error?: {
|
|
854
|
+
statusCode?: number;
|
|
855
|
+
error?: string;
|
|
856
|
+
};
|
|
755
857
|
};
|
|
756
858
|
};
|
|
757
859
|
export type ItemControllerUpdateByIdError = ItemControllerUpdateByIdErrors[keyof ItemControllerUpdateByIdErrors];
|
|
@@ -789,29 +891,37 @@ export type ProfileControllerIdentifyErrors = {
|
|
|
789
891
|
* Bad Request
|
|
790
892
|
*/
|
|
791
893
|
400: ErrorResponseDto & {
|
|
792
|
-
|
|
793
|
-
|
|
894
|
+
error?: {
|
|
895
|
+
statusCode?: number;
|
|
896
|
+
error?: string;
|
|
897
|
+
};
|
|
794
898
|
};
|
|
795
899
|
/**
|
|
796
900
|
* Unauthorized
|
|
797
901
|
*/
|
|
798
902
|
401: ErrorResponseDto & {
|
|
799
|
-
|
|
800
|
-
|
|
903
|
+
error?: {
|
|
904
|
+
statusCode?: number;
|
|
905
|
+
error?: string;
|
|
906
|
+
};
|
|
801
907
|
};
|
|
802
908
|
/**
|
|
803
909
|
* Forbidden
|
|
804
910
|
*/
|
|
805
911
|
403: ErrorResponseDto & {
|
|
806
|
-
|
|
807
|
-
|
|
912
|
+
error?: {
|
|
913
|
+
statusCode?: number;
|
|
914
|
+
error?: string;
|
|
915
|
+
};
|
|
808
916
|
};
|
|
809
917
|
/**
|
|
810
918
|
* Not Found
|
|
811
919
|
*/
|
|
812
920
|
404: ErrorResponseDto & {
|
|
813
|
-
|
|
814
|
-
|
|
921
|
+
error?: {
|
|
922
|
+
statusCode?: number;
|
|
923
|
+
error?: string;
|
|
924
|
+
};
|
|
815
925
|
};
|
|
816
926
|
};
|
|
817
927
|
export type ProfileControllerIdentifyError = ProfileControllerIdentifyErrors[keyof ProfileControllerIdentifyErrors];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { CreateItemDto, CreateListDto, DeleteItemsDto, UpdateItemDto, UpdateListDto } from "./client/types.gen";
|
|
1
|
+
import { CreateItemDto, CreateListDto, DeleteItemsDto, ItemControllerFindData, ListControllerFindAllData, UpdateItemDto, UpdateListDto } from "./client/types.gen";
|
|
2
2
|
export interface SwishClientOptions {
|
|
3
3
|
authToken: string;
|
|
4
4
|
shop: string;
|
|
5
5
|
key: string;
|
|
6
6
|
}
|
|
7
|
-
type CursorQuery = {
|
|
8
|
-
cursor?: string;
|
|
9
|
-
};
|
|
10
7
|
export declare class SwishClient {
|
|
11
8
|
private readonly authToken;
|
|
12
9
|
private readonly shop;
|
|
13
10
|
private readonly key;
|
|
14
11
|
constructor(options: SwishClientOptions);
|
|
15
12
|
readonly items: {
|
|
16
|
-
list: (query?:
|
|
13
|
+
list: (query?: ItemControllerFindData["query"]) => Promise<(import("./client").PaginatedResponseDto & {
|
|
17
14
|
data?: Array<import("./client").Item>;
|
|
18
15
|
}) | undefined>;
|
|
19
16
|
create: (items: CreateItemDto) => Promise<(import("./client").ResponseDto & {
|
|
@@ -26,7 +23,7 @@ export declare class SwishClient {
|
|
|
26
23
|
}) | undefined>;
|
|
27
24
|
};
|
|
28
25
|
readonly lists: {
|
|
29
|
-
list: (query?:
|
|
26
|
+
list: (query?: ListControllerFindAllData["query"]) => Promise<(import("./client").PaginatedResponseDto & {
|
|
30
27
|
data?: Array<import("./client").List>;
|
|
31
28
|
}) | undefined>;
|
|
32
29
|
getById: (listId: string) => Promise<(import("./client").ResponseDto & {
|
|
@@ -43,4 +40,3 @@ export declare class SwishClient {
|
|
|
43
40
|
private readonly addHeaders;
|
|
44
41
|
private readonly handleRequest;
|
|
45
42
|
}
|
|
46
|
-
export {};
|