@shopvirge/shopvirge-client 0.3.2 → 0.4.4
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/index.d.ts +1287 -796
- package/dist/index.js +792 -443
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ var OpenAPI = {
|
|
|
126
126
|
PASSWORD: void 0,
|
|
127
127
|
TOKEN: void 0,
|
|
128
128
|
USERNAME: void 0,
|
|
129
|
-
VERSION: "0.
|
|
129
|
+
VERSION: "0.4.4",
|
|
130
130
|
WITH_CREDENTIALS: false,
|
|
131
131
|
interceptors: {
|
|
132
132
|
request: new Interceptors(),
|
|
@@ -717,96 +717,6 @@ var $AvailableOptionSchema = {
|
|
|
717
717
|
required: ["id", "value_key", "product_count"],
|
|
718
718
|
title: "AvailableOptionSchema"
|
|
719
719
|
};
|
|
720
|
-
var $Body_login_access_token_login_access_token_post = {
|
|
721
|
-
properties: {
|
|
722
|
-
grant_type: {
|
|
723
|
-
anyOf: [
|
|
724
|
-
{
|
|
725
|
-
type: "string",
|
|
726
|
-
pattern: "^password$"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
type: "null"
|
|
730
|
-
}
|
|
731
|
-
],
|
|
732
|
-
title: "Grant Type"
|
|
733
|
-
},
|
|
734
|
-
username: {
|
|
735
|
-
type: "string",
|
|
736
|
-
title: "Username"
|
|
737
|
-
},
|
|
738
|
-
password: {
|
|
739
|
-
type: "string",
|
|
740
|
-
format: "password",
|
|
741
|
-
title: "Password"
|
|
742
|
-
},
|
|
743
|
-
scope: {
|
|
744
|
-
type: "string",
|
|
745
|
-
title: "Scope",
|
|
746
|
-
default: ""
|
|
747
|
-
},
|
|
748
|
-
client_id: {
|
|
749
|
-
anyOf: [
|
|
750
|
-
{
|
|
751
|
-
type: "string"
|
|
752
|
-
},
|
|
753
|
-
{
|
|
754
|
-
type: "null"
|
|
755
|
-
}
|
|
756
|
-
],
|
|
757
|
-
title: "Client Id"
|
|
758
|
-
},
|
|
759
|
-
client_secret: {
|
|
760
|
-
anyOf: [
|
|
761
|
-
{
|
|
762
|
-
type: "string"
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
type: "null"
|
|
766
|
-
}
|
|
767
|
-
],
|
|
768
|
-
format: "password",
|
|
769
|
-
title: "Client Secret"
|
|
770
|
-
}
|
|
771
|
-
},
|
|
772
|
-
type: "object",
|
|
773
|
-
required: ["username", "password"],
|
|
774
|
-
title: "Body_login_access_token_login_access_token_post"
|
|
775
|
-
};
|
|
776
|
-
var $Body_reset_password_reset_password__post = {
|
|
777
|
-
properties: {
|
|
778
|
-
token: {
|
|
779
|
-
type: "string",
|
|
780
|
-
title: "Token"
|
|
781
|
-
},
|
|
782
|
-
new_password: {
|
|
783
|
-
type: "string",
|
|
784
|
-
title: "New Password"
|
|
785
|
-
}
|
|
786
|
-
},
|
|
787
|
-
type: "object",
|
|
788
|
-
required: ["token", "new_password"],
|
|
789
|
-
title: "Body_reset_password_reset_password__post"
|
|
790
|
-
};
|
|
791
|
-
var $Body_update_user_me_users_me_put = {
|
|
792
|
-
properties: {
|
|
793
|
-
password: {
|
|
794
|
-
type: "string",
|
|
795
|
-
title: "Password"
|
|
796
|
-
},
|
|
797
|
-
full_name: {
|
|
798
|
-
type: "string",
|
|
799
|
-
title: "Full Name"
|
|
800
|
-
},
|
|
801
|
-
email: {
|
|
802
|
-
type: "string",
|
|
803
|
-
format: "email",
|
|
804
|
-
title: "Email"
|
|
805
|
-
}
|
|
806
|
-
},
|
|
807
|
-
type: "object",
|
|
808
|
-
title: "Body_update_user_me_users_me_put"
|
|
809
|
-
};
|
|
810
720
|
var $Cart = {
|
|
811
721
|
properties: {
|
|
812
722
|
products: {
|
|
@@ -2249,17 +2159,6 @@ var $LinkStripeBody = {
|
|
|
2249
2159
|
required: ["stripe_customer_id"],
|
|
2250
2160
|
title: "LinkStripeBody"
|
|
2251
2161
|
};
|
|
2252
|
-
var $Msg = {
|
|
2253
|
-
properties: {
|
|
2254
|
-
msg: {
|
|
2255
|
-
type: "string",
|
|
2256
|
-
title: "Msg"
|
|
2257
|
-
}
|
|
2258
|
-
},
|
|
2259
|
-
type: "object",
|
|
2260
|
-
required: ["msg"],
|
|
2261
|
-
title: "Msg"
|
|
2262
|
-
};
|
|
2263
2162
|
var $MyShopsResponse = {
|
|
2264
2163
|
properties: {
|
|
2265
2164
|
shops: {
|
|
@@ -2796,18 +2695,6 @@ var $OrderSchema = {
|
|
|
2796
2695
|
],
|
|
2797
2696
|
title: "Completed At"
|
|
2798
2697
|
},
|
|
2799
|
-
completed_by: {
|
|
2800
|
-
anyOf: [
|
|
2801
|
-
{
|
|
2802
|
-
type: "string",
|
|
2803
|
-
format: "uuid"
|
|
2804
|
-
},
|
|
2805
|
-
{
|
|
2806
|
-
type: "null"
|
|
2807
|
-
}
|
|
2808
|
-
],
|
|
2809
|
-
title: "Completed By"
|
|
2810
|
-
},
|
|
2811
2698
|
account_name: {
|
|
2812
2699
|
anyOf: [
|
|
2813
2700
|
{
|
|
@@ -2829,17 +2716,6 @@ var $OrderSchema = {
|
|
|
2829
2716
|
}
|
|
2830
2717
|
],
|
|
2831
2718
|
title: "Shop Name"
|
|
2832
|
-
},
|
|
2833
|
-
completed_by_name: {
|
|
2834
|
-
anyOf: [
|
|
2835
|
-
{
|
|
2836
|
-
type: "string"
|
|
2837
|
-
},
|
|
2838
|
-
{
|
|
2839
|
-
type: "null"
|
|
2840
|
-
}
|
|
2841
|
-
],
|
|
2842
|
-
title: "Completed By Name"
|
|
2843
2719
|
}
|
|
2844
2720
|
},
|
|
2845
2721
|
type: "object",
|
|
@@ -2852,7 +2728,6 @@ var $OrderSchema = {
|
|
|
2852
2728
|
"shop_id",
|
|
2853
2729
|
"order_info",
|
|
2854
2730
|
"created_at",
|
|
2855
|
-
"completed_by",
|
|
2856
2731
|
"account_name",
|
|
2857
2732
|
"shop_name"
|
|
2858
2733
|
],
|
|
@@ -3215,8 +3090,15 @@ var $ProductCreate = {
|
|
|
3215
3090
|
title: "Shop Id"
|
|
3216
3091
|
},
|
|
3217
3092
|
category_id: {
|
|
3218
|
-
|
|
3219
|
-
|
|
3093
|
+
anyOf: [
|
|
3094
|
+
{
|
|
3095
|
+
type: "string",
|
|
3096
|
+
format: "uuid"
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
type: "null"
|
|
3100
|
+
}
|
|
3101
|
+
],
|
|
3220
3102
|
title: "Category Id"
|
|
3221
3103
|
},
|
|
3222
3104
|
price: {
|
|
@@ -3357,6 +3239,17 @@ var $ProductCreate = {
|
|
|
3357
3239
|
title: "Stock",
|
|
3358
3240
|
default: 1
|
|
3359
3241
|
},
|
|
3242
|
+
sku: {
|
|
3243
|
+
anyOf: [
|
|
3244
|
+
{
|
|
3245
|
+
type: "string"
|
|
3246
|
+
},
|
|
3247
|
+
{
|
|
3248
|
+
type: "null"
|
|
3249
|
+
}
|
|
3250
|
+
],
|
|
3251
|
+
title: "Sku"
|
|
3252
|
+
},
|
|
3360
3253
|
image_1: {
|
|
3361
3254
|
anyOf: [
|
|
3362
3255
|
{
|
|
@@ -3454,7 +3347,6 @@ var $ProductCreate = {
|
|
|
3454
3347
|
type: "object",
|
|
3455
3348
|
required: [
|
|
3456
3349
|
"shop_id",
|
|
3457
|
-
"category_id",
|
|
3458
3350
|
"max_one",
|
|
3459
3351
|
"shippable",
|
|
3460
3352
|
"featured",
|
|
@@ -3476,6 +3368,28 @@ var $ProductResponse = {
|
|
|
3476
3368
|
type: "string",
|
|
3477
3369
|
title: "Id"
|
|
3478
3370
|
},
|
|
3371
|
+
short_id: {
|
|
3372
|
+
anyOf: [
|
|
3373
|
+
{
|
|
3374
|
+
type: "string"
|
|
3375
|
+
},
|
|
3376
|
+
{
|
|
3377
|
+
type: "null"
|
|
3378
|
+
}
|
|
3379
|
+
],
|
|
3380
|
+
title: "Short Id"
|
|
3381
|
+
},
|
|
3382
|
+
sku: {
|
|
3383
|
+
anyOf: [
|
|
3384
|
+
{
|
|
3385
|
+
type: "string"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
type: "null"
|
|
3389
|
+
}
|
|
3390
|
+
],
|
|
3391
|
+
title: "Sku"
|
|
3392
|
+
},
|
|
3479
3393
|
category: {
|
|
3480
3394
|
type: "string",
|
|
3481
3395
|
title: "Category"
|
|
@@ -3890,8 +3804,15 @@ var $ProductUpdate = {
|
|
|
3890
3804
|
title: "Shop Id"
|
|
3891
3805
|
},
|
|
3892
3806
|
category_id: {
|
|
3893
|
-
|
|
3894
|
-
|
|
3807
|
+
anyOf: [
|
|
3808
|
+
{
|
|
3809
|
+
type: "string",
|
|
3810
|
+
format: "uuid"
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
type: "null"
|
|
3814
|
+
}
|
|
3815
|
+
],
|
|
3895
3816
|
title: "Category Id"
|
|
3896
3817
|
},
|
|
3897
3818
|
price: {
|
|
@@ -4032,6 +3953,17 @@ var $ProductUpdate = {
|
|
|
4032
3953
|
title: "Stock",
|
|
4033
3954
|
default: 1
|
|
4034
3955
|
},
|
|
3956
|
+
sku: {
|
|
3957
|
+
anyOf: [
|
|
3958
|
+
{
|
|
3959
|
+
type: "string"
|
|
3960
|
+
},
|
|
3961
|
+
{
|
|
3962
|
+
type: "null"
|
|
3963
|
+
}
|
|
3964
|
+
],
|
|
3965
|
+
title: "Sku"
|
|
3966
|
+
},
|
|
4035
3967
|
image_1: {
|
|
4036
3968
|
anyOf: [
|
|
4037
3969
|
{
|
|
@@ -4141,7 +4073,6 @@ var $ProductUpdate = {
|
|
|
4141
4073
|
type: "object",
|
|
4142
4074
|
required: [
|
|
4143
4075
|
"shop_id",
|
|
4144
|
-
"category_id",
|
|
4145
4076
|
"max_one",
|
|
4146
4077
|
"shippable",
|
|
4147
4078
|
"featured",
|
|
@@ -4184,8 +4115,15 @@ var $ProductWithDefaultPrice = {
|
|
|
4184
4115
|
title: "Shop Id"
|
|
4185
4116
|
},
|
|
4186
4117
|
category_id: {
|
|
4187
|
-
|
|
4188
|
-
|
|
4118
|
+
anyOf: [
|
|
4119
|
+
{
|
|
4120
|
+
type: "string",
|
|
4121
|
+
format: "uuid"
|
|
4122
|
+
},
|
|
4123
|
+
{
|
|
4124
|
+
type: "null"
|
|
4125
|
+
}
|
|
4126
|
+
],
|
|
4189
4127
|
title: "Category Id"
|
|
4190
4128
|
},
|
|
4191
4129
|
price: {
|
|
@@ -4310,6 +4248,17 @@ var $ProductWithDefaultPrice = {
|
|
|
4310
4248
|
title: "Stock",
|
|
4311
4249
|
default: 1
|
|
4312
4250
|
},
|
|
4251
|
+
sku: {
|
|
4252
|
+
anyOf: [
|
|
4253
|
+
{
|
|
4254
|
+
type: "string"
|
|
4255
|
+
},
|
|
4256
|
+
{
|
|
4257
|
+
type: "null"
|
|
4258
|
+
}
|
|
4259
|
+
],
|
|
4260
|
+
title: "Sku"
|
|
4261
|
+
},
|
|
4313
4262
|
image_1: {
|
|
4314
4263
|
anyOf: [
|
|
4315
4264
|
{
|
|
@@ -4408,6 +4357,17 @@ var $ProductWithDefaultPrice = {
|
|
|
4408
4357
|
format: "uuid",
|
|
4409
4358
|
title: "Id"
|
|
4410
4359
|
},
|
|
4360
|
+
short_id: {
|
|
4361
|
+
anyOf: [
|
|
4362
|
+
{
|
|
4363
|
+
type: "string"
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
type: "null"
|
|
4367
|
+
}
|
|
4368
|
+
],
|
|
4369
|
+
title: "Short Id"
|
|
4370
|
+
},
|
|
4411
4371
|
modified_at: {
|
|
4412
4372
|
anyOf: [
|
|
4413
4373
|
{
|
|
@@ -4452,7 +4412,6 @@ var $ProductWithDefaultPrice = {
|
|
|
4452
4412
|
type: "object",
|
|
4453
4413
|
required: [
|
|
4454
4414
|
"shop_id",
|
|
4455
|
-
"category_id",
|
|
4456
4415
|
"max_one",
|
|
4457
4416
|
"shippable",
|
|
4458
4417
|
"featured",
|
|
@@ -4477,8 +4436,15 @@ var $ProductWithDetailsAndPrices = {
|
|
|
4477
4436
|
title: "Shop Id"
|
|
4478
4437
|
},
|
|
4479
4438
|
category_id: {
|
|
4480
|
-
|
|
4481
|
-
|
|
4439
|
+
anyOf: [
|
|
4440
|
+
{
|
|
4441
|
+
type: "string",
|
|
4442
|
+
format: "uuid"
|
|
4443
|
+
},
|
|
4444
|
+
{
|
|
4445
|
+
type: "null"
|
|
4446
|
+
}
|
|
4447
|
+
],
|
|
4482
4448
|
title: "Category Id"
|
|
4483
4449
|
},
|
|
4484
4450
|
price: {
|
|
@@ -4603,6 +4569,17 @@ var $ProductWithDetailsAndPrices = {
|
|
|
4603
4569
|
title: "Stock",
|
|
4604
4570
|
default: 1
|
|
4605
4571
|
},
|
|
4572
|
+
sku: {
|
|
4573
|
+
anyOf: [
|
|
4574
|
+
{
|
|
4575
|
+
type: "string"
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
type: "null"
|
|
4579
|
+
}
|
|
4580
|
+
],
|
|
4581
|
+
title: "Sku"
|
|
4582
|
+
},
|
|
4606
4583
|
image_1: {
|
|
4607
4584
|
anyOf: [
|
|
4608
4585
|
{
|
|
@@ -4701,6 +4678,17 @@ var $ProductWithDetailsAndPrices = {
|
|
|
4701
4678
|
format: "uuid",
|
|
4702
4679
|
title: "Id"
|
|
4703
4680
|
},
|
|
4681
|
+
short_id: {
|
|
4682
|
+
anyOf: [
|
|
4683
|
+
{
|
|
4684
|
+
type: "string"
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
type: "null"
|
|
4688
|
+
}
|
|
4689
|
+
],
|
|
4690
|
+
title: "Short Id"
|
|
4691
|
+
},
|
|
4704
4692
|
modified_at: {
|
|
4705
4693
|
anyOf: [
|
|
4706
4694
|
{
|
|
@@ -4743,7 +4731,6 @@ var $ProductWithDetailsAndPrices = {
|
|
|
4743
4731
|
type: "object",
|
|
4744
4732
|
required: [
|
|
4745
4733
|
"shop_id",
|
|
4746
|
-
"category_id",
|
|
4747
4734
|
"max_one",
|
|
4748
4735
|
"shippable",
|
|
4749
4736
|
"featured",
|
|
@@ -4760,79 +4747,345 @@ var $ProductWithDetailsAndPrices = {
|
|
|
4760
4747
|
],
|
|
4761
4748
|
title: "ProductWithDetailsAndPrices"
|
|
4762
4749
|
};
|
|
4763
|
-
var $
|
|
4750
|
+
var $RestoreReport = {
|
|
4764
4751
|
properties: {
|
|
4765
|
-
|
|
4752
|
+
restored: {
|
|
4753
|
+
type: "boolean",
|
|
4754
|
+
title: "Restored"
|
|
4755
|
+
},
|
|
4756
|
+
entity_type: {
|
|
4766
4757
|
type: "string",
|
|
4767
|
-
|
|
4768
|
-
title: "Shop Id"
|
|
4758
|
+
title: "Entity Type"
|
|
4769
4759
|
},
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
type: "array",
|
|
4775
|
-
title: "Order Info"
|
|
4776
|
-
}
|
|
4777
|
-
},
|
|
4778
|
-
type: "object",
|
|
4779
|
-
required: ["shop_id", "order_info"],
|
|
4780
|
-
title: "ShippingCalculateRequest"
|
|
4781
|
-
};
|
|
4782
|
-
var $ShippingCalculation = {
|
|
4783
|
-
properties: {
|
|
4784
|
-
enabled: {
|
|
4785
|
-
type: "boolean",
|
|
4786
|
-
title: "Enabled"
|
|
4760
|
+
entity_id: {
|
|
4761
|
+
type: "string",
|
|
4762
|
+
format: "uuid",
|
|
4763
|
+
title: "Entity Id"
|
|
4787
4764
|
},
|
|
4788
|
-
|
|
4765
|
+
restored_from_revision_no: {
|
|
4789
4766
|
anyOf: [
|
|
4790
4767
|
{
|
|
4791
|
-
type: "
|
|
4768
|
+
type: "integer"
|
|
4792
4769
|
},
|
|
4793
4770
|
{
|
|
4794
4771
|
type: "null"
|
|
4795
4772
|
}
|
|
4796
4773
|
],
|
|
4797
|
-
title: "
|
|
4798
|
-
},
|
|
4799
|
-
fee_inc_btw: {
|
|
4800
|
-
type: "number",
|
|
4801
|
-
title: "Fee Inc Btw"
|
|
4802
|
-
},
|
|
4803
|
-
fee_ex_btw: {
|
|
4804
|
-
type: "number",
|
|
4805
|
-
title: "Fee Ex Btw"
|
|
4806
|
-
},
|
|
4807
|
-
fee_btw: {
|
|
4808
|
-
type: "number",
|
|
4809
|
-
title: "Fee Btw"
|
|
4810
|
-
},
|
|
4811
|
-
free_shipping_applied: {
|
|
4812
|
-
type: "boolean",
|
|
4813
|
-
title: "Free Shipping Applied"
|
|
4774
|
+
title: "Restored From Revision No"
|
|
4814
4775
|
},
|
|
4815
|
-
|
|
4776
|
+
new_revision_no: {
|
|
4816
4777
|
anyOf: [
|
|
4817
4778
|
{
|
|
4818
|
-
type: "
|
|
4779
|
+
type: "integer"
|
|
4819
4780
|
},
|
|
4820
4781
|
{
|
|
4821
4782
|
type: "null"
|
|
4822
4783
|
}
|
|
4823
4784
|
],
|
|
4824
|
-
title: "
|
|
4785
|
+
title: "New Revision No"
|
|
4825
4786
|
},
|
|
4826
|
-
|
|
4787
|
+
resurrected: {
|
|
4827
4788
|
items: {
|
|
4828
|
-
$ref: "#/components/schemas/
|
|
4789
|
+
$ref: "#/components/schemas/ResurrectedEntity"
|
|
4829
4790
|
},
|
|
4830
4791
|
type: "array",
|
|
4831
|
-
title: "
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4792
|
+
title: "Resurrected",
|
|
4793
|
+
default: []
|
|
4794
|
+
},
|
|
4795
|
+
skipped_fields: {
|
|
4796
|
+
items: {
|
|
4797
|
+
type: "string"
|
|
4798
|
+
},
|
|
4799
|
+
type: "array",
|
|
4800
|
+
title: "Skipped Fields",
|
|
4801
|
+
default: []
|
|
4802
|
+
},
|
|
4803
|
+
unresolved: {
|
|
4804
|
+
items: {
|
|
4805
|
+
$ref: "#/components/schemas/UnresolvedReference"
|
|
4806
|
+
},
|
|
4807
|
+
type: "array",
|
|
4808
|
+
title: "Unresolved",
|
|
4809
|
+
default: []
|
|
4810
|
+
},
|
|
4811
|
+
warnings: {
|
|
4812
|
+
items: {
|
|
4813
|
+
type: "string"
|
|
4814
|
+
},
|
|
4815
|
+
type: "array",
|
|
4816
|
+
title: "Warnings",
|
|
4817
|
+
default: []
|
|
4818
|
+
}
|
|
4819
|
+
},
|
|
4820
|
+
type: "object",
|
|
4821
|
+
required: ["restored", "entity_type", "entity_id"],
|
|
4822
|
+
title: "RestoreReport",
|
|
4823
|
+
description: "What a restore actually did \u2014 agents should read this to see what didn't come back."
|
|
4824
|
+
};
|
|
4825
|
+
var $ResurrectedEntity = {
|
|
4826
|
+
properties: {
|
|
4827
|
+
kind: {
|
|
4828
|
+
type: "string",
|
|
4829
|
+
title: "Kind"
|
|
4830
|
+
},
|
|
4831
|
+
id: {
|
|
4832
|
+
type: "string",
|
|
4833
|
+
format: "uuid",
|
|
4834
|
+
title: "Id"
|
|
4835
|
+
},
|
|
4836
|
+
name: {
|
|
4837
|
+
anyOf: [
|
|
4838
|
+
{
|
|
4839
|
+
type: "string"
|
|
4840
|
+
},
|
|
4841
|
+
{
|
|
4842
|
+
type: "null"
|
|
4843
|
+
}
|
|
4844
|
+
],
|
|
4845
|
+
title: "Name"
|
|
4846
|
+
}
|
|
4847
|
+
},
|
|
4848
|
+
type: "object",
|
|
4849
|
+
required: ["kind", "id"],
|
|
4850
|
+
title: "ResurrectedEntity"
|
|
4851
|
+
};
|
|
4852
|
+
var $RevisionDetail = {
|
|
4853
|
+
properties: {
|
|
4854
|
+
id: {
|
|
4855
|
+
type: "string",
|
|
4856
|
+
format: "uuid",
|
|
4857
|
+
title: "Id"
|
|
4858
|
+
},
|
|
4859
|
+
entity_type: {
|
|
4860
|
+
type: "string",
|
|
4861
|
+
title: "Entity Type"
|
|
4862
|
+
},
|
|
4863
|
+
entity_id: {
|
|
4864
|
+
type: "string",
|
|
4865
|
+
format: "uuid",
|
|
4866
|
+
title: "Entity Id"
|
|
4867
|
+
},
|
|
4868
|
+
revision_no: {
|
|
4869
|
+
type: "integer",
|
|
4870
|
+
title: "Revision No"
|
|
4871
|
+
},
|
|
4872
|
+
action: {
|
|
4873
|
+
type: "string",
|
|
4874
|
+
title: "Action"
|
|
4875
|
+
},
|
|
4876
|
+
schema_version: {
|
|
4877
|
+
type: "integer",
|
|
4878
|
+
title: "Schema Version"
|
|
4879
|
+
},
|
|
4880
|
+
created_by: {
|
|
4881
|
+
anyOf: [
|
|
4882
|
+
{
|
|
4883
|
+
type: "string"
|
|
4884
|
+
},
|
|
4885
|
+
{
|
|
4886
|
+
type: "null"
|
|
4887
|
+
}
|
|
4888
|
+
],
|
|
4889
|
+
title: "Created By"
|
|
4890
|
+
},
|
|
4891
|
+
source: {
|
|
4892
|
+
type: "string",
|
|
4893
|
+
title: "Source"
|
|
4894
|
+
},
|
|
4895
|
+
created_at: {
|
|
4896
|
+
anyOf: [
|
|
4897
|
+
{
|
|
4898
|
+
type: "string",
|
|
4899
|
+
format: "date-time"
|
|
4900
|
+
},
|
|
4901
|
+
{
|
|
4902
|
+
type: "null"
|
|
4903
|
+
}
|
|
4904
|
+
],
|
|
4905
|
+
title: "Created At"
|
|
4906
|
+
},
|
|
4907
|
+
name: {
|
|
4908
|
+
anyOf: [
|
|
4909
|
+
{
|
|
4910
|
+
type: "string"
|
|
4911
|
+
},
|
|
4912
|
+
{
|
|
4913
|
+
type: "null"
|
|
4914
|
+
}
|
|
4915
|
+
],
|
|
4916
|
+
title: "Name"
|
|
4917
|
+
},
|
|
4918
|
+
data: {
|
|
4919
|
+
additionalProperties: true,
|
|
4920
|
+
type: "object",
|
|
4921
|
+
title: "Data"
|
|
4922
|
+
}
|
|
4923
|
+
},
|
|
4924
|
+
type: "object",
|
|
4925
|
+
required: [
|
|
4926
|
+
"id",
|
|
4927
|
+
"entity_type",
|
|
4928
|
+
"entity_id",
|
|
4929
|
+
"revision_no",
|
|
4930
|
+
"action",
|
|
4931
|
+
"schema_version",
|
|
4932
|
+
"source",
|
|
4933
|
+
"data"
|
|
4934
|
+
],
|
|
4935
|
+
title: "RevisionDetail"
|
|
4936
|
+
};
|
|
4937
|
+
var $RevisionSummary = {
|
|
4938
|
+
properties: {
|
|
4939
|
+
id: {
|
|
4940
|
+
type: "string",
|
|
4941
|
+
format: "uuid",
|
|
4942
|
+
title: "Id"
|
|
4943
|
+
},
|
|
4944
|
+
entity_type: {
|
|
4945
|
+
type: "string",
|
|
4946
|
+
title: "Entity Type"
|
|
4947
|
+
},
|
|
4948
|
+
entity_id: {
|
|
4949
|
+
type: "string",
|
|
4950
|
+
format: "uuid",
|
|
4951
|
+
title: "Entity Id"
|
|
4952
|
+
},
|
|
4953
|
+
revision_no: {
|
|
4954
|
+
type: "integer",
|
|
4955
|
+
title: "Revision No"
|
|
4956
|
+
},
|
|
4957
|
+
action: {
|
|
4958
|
+
type: "string",
|
|
4959
|
+
title: "Action"
|
|
4960
|
+
},
|
|
4961
|
+
schema_version: {
|
|
4962
|
+
type: "integer",
|
|
4963
|
+
title: "Schema Version"
|
|
4964
|
+
},
|
|
4965
|
+
created_by: {
|
|
4966
|
+
anyOf: [
|
|
4967
|
+
{
|
|
4968
|
+
type: "string"
|
|
4969
|
+
},
|
|
4970
|
+
{
|
|
4971
|
+
type: "null"
|
|
4972
|
+
}
|
|
4973
|
+
],
|
|
4974
|
+
title: "Created By"
|
|
4975
|
+
},
|
|
4976
|
+
source: {
|
|
4977
|
+
type: "string",
|
|
4978
|
+
title: "Source"
|
|
4979
|
+
},
|
|
4980
|
+
created_at: {
|
|
4981
|
+
anyOf: [
|
|
4982
|
+
{
|
|
4983
|
+
type: "string",
|
|
4984
|
+
format: "date-time"
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
type: "null"
|
|
4988
|
+
}
|
|
4989
|
+
],
|
|
4990
|
+
title: "Created At"
|
|
4991
|
+
},
|
|
4992
|
+
name: {
|
|
4993
|
+
anyOf: [
|
|
4994
|
+
{
|
|
4995
|
+
type: "string"
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
type: "null"
|
|
4999
|
+
}
|
|
5000
|
+
],
|
|
5001
|
+
title: "Name"
|
|
5002
|
+
}
|
|
5003
|
+
},
|
|
5004
|
+
type: "object",
|
|
5005
|
+
required: [
|
|
5006
|
+
"id",
|
|
5007
|
+
"entity_type",
|
|
5008
|
+
"entity_id",
|
|
5009
|
+
"revision_no",
|
|
5010
|
+
"action",
|
|
5011
|
+
"schema_version",
|
|
5012
|
+
"source"
|
|
5013
|
+
],
|
|
5014
|
+
title: "RevisionSummary"
|
|
5015
|
+
};
|
|
5016
|
+
var $ShippingCalculateRequest = {
|
|
5017
|
+
properties: {
|
|
5018
|
+
shop_id: {
|
|
5019
|
+
type: "string",
|
|
5020
|
+
format: "uuid",
|
|
5021
|
+
title: "Shop Id"
|
|
5022
|
+
},
|
|
5023
|
+
order_info: {
|
|
5024
|
+
items: {
|
|
5025
|
+
$ref: "#/components/schemas/OrderItem-Input"
|
|
5026
|
+
},
|
|
5027
|
+
type: "array",
|
|
5028
|
+
title: "Order Info"
|
|
5029
|
+
}
|
|
5030
|
+
},
|
|
5031
|
+
type: "object",
|
|
5032
|
+
required: ["shop_id", "order_info"],
|
|
5033
|
+
title: "ShippingCalculateRequest"
|
|
5034
|
+
};
|
|
5035
|
+
var $ShippingCalculation = {
|
|
5036
|
+
properties: {
|
|
5037
|
+
enabled: {
|
|
5038
|
+
type: "boolean",
|
|
5039
|
+
title: "Enabled"
|
|
5040
|
+
},
|
|
5041
|
+
method: {
|
|
5042
|
+
anyOf: [
|
|
5043
|
+
{
|
|
5044
|
+
type: "string"
|
|
5045
|
+
},
|
|
5046
|
+
{
|
|
5047
|
+
type: "null"
|
|
5048
|
+
}
|
|
5049
|
+
],
|
|
5050
|
+
title: "Method"
|
|
5051
|
+
},
|
|
5052
|
+
fee_inc_btw: {
|
|
5053
|
+
type: "number",
|
|
5054
|
+
title: "Fee Inc Btw"
|
|
5055
|
+
},
|
|
5056
|
+
fee_ex_btw: {
|
|
5057
|
+
type: "number",
|
|
5058
|
+
title: "Fee Ex Btw"
|
|
5059
|
+
},
|
|
5060
|
+
fee_btw: {
|
|
5061
|
+
type: "number",
|
|
5062
|
+
title: "Fee Btw"
|
|
5063
|
+
},
|
|
5064
|
+
free_shipping_applied: {
|
|
5065
|
+
type: "boolean",
|
|
5066
|
+
title: "Free Shipping Applied"
|
|
5067
|
+
},
|
|
5068
|
+
free_shipping_threshold: {
|
|
5069
|
+
anyOf: [
|
|
5070
|
+
{
|
|
5071
|
+
type: "number"
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
type: "null"
|
|
5075
|
+
}
|
|
5076
|
+
],
|
|
5077
|
+
title: "Free Shipping Threshold"
|
|
5078
|
+
},
|
|
5079
|
+
lines: {
|
|
5080
|
+
items: {
|
|
5081
|
+
$ref: "#/components/schemas/ShippingLine"
|
|
5082
|
+
},
|
|
5083
|
+
type: "array",
|
|
5084
|
+
title: "Lines"
|
|
5085
|
+
}
|
|
5086
|
+
},
|
|
5087
|
+
type: "object",
|
|
5088
|
+
required: [
|
|
4836
5089
|
"enabled",
|
|
4837
5090
|
"fee_inc_btw",
|
|
4838
5091
|
"fee_ex_btw",
|
|
@@ -5628,93 +5881,28 @@ var $Toggles = {
|
|
|
5628
5881
|
type: "boolean",
|
|
5629
5882
|
title: "Enable Attributes For Categories",
|
|
5630
5883
|
default: false
|
|
5884
|
+
},
|
|
5885
|
+
force_unique_product_names: {
|
|
5886
|
+
type: "boolean",
|
|
5887
|
+
title: "Force Unique Product Names",
|
|
5888
|
+
default: false
|
|
5631
5889
|
}
|
|
5632
5890
|
},
|
|
5633
5891
|
type: "object",
|
|
5634
5892
|
title: "Toggles"
|
|
5635
5893
|
};
|
|
5636
|
-
var $
|
|
5894
|
+
var $TrashItem = {
|
|
5637
5895
|
properties: {
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
type: "string",
|
|
5642
|
-
format: "email"
|
|
5643
|
-
},
|
|
5644
|
-
{
|
|
5645
|
-
type: "null"
|
|
5646
|
-
}
|
|
5647
|
-
],
|
|
5648
|
-
title: "Email"
|
|
5649
|
-
},
|
|
5650
|
-
is_active: {
|
|
5651
|
-
anyOf: [
|
|
5652
|
-
{
|
|
5653
|
-
type: "boolean"
|
|
5654
|
-
},
|
|
5655
|
-
{
|
|
5656
|
-
type: "null"
|
|
5657
|
-
}
|
|
5658
|
-
],
|
|
5659
|
-
title: "Is Active",
|
|
5660
|
-
default: true
|
|
5661
|
-
},
|
|
5662
|
-
is_superuser: {
|
|
5663
|
-
type: "boolean",
|
|
5664
|
-
title: "Is Superuser",
|
|
5665
|
-
default: false
|
|
5666
|
-
},
|
|
5667
|
-
username: {
|
|
5668
|
-
anyOf: [
|
|
5669
|
-
{
|
|
5670
|
-
type: "string"
|
|
5671
|
-
},
|
|
5672
|
-
{
|
|
5673
|
-
type: "null"
|
|
5674
|
-
}
|
|
5675
|
-
],
|
|
5676
|
-
title: "Username"
|
|
5896
|
+
entity_type: {
|
|
5897
|
+
type: "string",
|
|
5898
|
+
title: "Entity Type"
|
|
5677
5899
|
},
|
|
5678
5900
|
id: {
|
|
5679
5901
|
type: "string",
|
|
5680
5902
|
format: "uuid",
|
|
5681
5903
|
title: "Id"
|
|
5682
5904
|
},
|
|
5683
|
-
|
|
5684
|
-
type: "string",
|
|
5685
|
-
format: "date-time",
|
|
5686
|
-
title: "Created At"
|
|
5687
|
-
}
|
|
5688
|
-
},
|
|
5689
|
-
type: "object",
|
|
5690
|
-
required: ["id", "created_at"],
|
|
5691
|
-
title: "User"
|
|
5692
|
-
};
|
|
5693
|
-
var $UserCreate = {
|
|
5694
|
-
properties: {
|
|
5695
|
-
email: {
|
|
5696
|
-
type: "string",
|
|
5697
|
-
format: "email",
|
|
5698
|
-
title: "Email"
|
|
5699
|
-
},
|
|
5700
|
-
is_active: {
|
|
5701
|
-
anyOf: [
|
|
5702
|
-
{
|
|
5703
|
-
type: "boolean"
|
|
5704
|
-
},
|
|
5705
|
-
{
|
|
5706
|
-
type: "null"
|
|
5707
|
-
}
|
|
5708
|
-
],
|
|
5709
|
-
title: "Is Active",
|
|
5710
|
-
default: true
|
|
5711
|
-
},
|
|
5712
|
-
is_superuser: {
|
|
5713
|
-
type: "boolean",
|
|
5714
|
-
title: "Is Superuser",
|
|
5715
|
-
default: false
|
|
5716
|
-
},
|
|
5717
|
-
username: {
|
|
5905
|
+
name: {
|
|
5718
5906
|
anyOf: [
|
|
5719
5907
|
{
|
|
5720
5908
|
type: "string"
|
|
@@ -5723,60 +5911,56 @@ var $UserCreate = {
|
|
|
5723
5911
|
type: "null"
|
|
5724
5912
|
}
|
|
5725
5913
|
],
|
|
5726
|
-
title: "
|
|
5914
|
+
title: "Name"
|
|
5727
5915
|
},
|
|
5728
|
-
|
|
5729
|
-
type: "string",
|
|
5730
|
-
title: "Password"
|
|
5731
|
-
}
|
|
5732
|
-
},
|
|
5733
|
-
type: "object",
|
|
5734
|
-
required: ["email", "password"],
|
|
5735
|
-
title: "UserCreate"
|
|
5736
|
-
};
|
|
5737
|
-
var $UserUpdate = {
|
|
5738
|
-
properties: {
|
|
5739
|
-
email: {
|
|
5916
|
+
deleted_at: {
|
|
5740
5917
|
anyOf: [
|
|
5741
5918
|
{
|
|
5742
5919
|
type: "string",
|
|
5743
|
-
format: "
|
|
5920
|
+
format: "date-time"
|
|
5744
5921
|
},
|
|
5745
5922
|
{
|
|
5746
5923
|
type: "null"
|
|
5747
5924
|
}
|
|
5748
5925
|
],
|
|
5749
|
-
title: "
|
|
5926
|
+
title: "Deleted At"
|
|
5750
5927
|
},
|
|
5751
|
-
|
|
5928
|
+
deleted_batch_id: {
|
|
5752
5929
|
anyOf: [
|
|
5753
5930
|
{
|
|
5754
|
-
type: "
|
|
5931
|
+
type: "string",
|
|
5932
|
+
format: "uuid"
|
|
5755
5933
|
},
|
|
5756
5934
|
{
|
|
5757
5935
|
type: "null"
|
|
5758
5936
|
}
|
|
5759
5937
|
],
|
|
5760
|
-
title: "
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5938
|
+
title: "Deleted Batch Id"
|
|
5939
|
+
}
|
|
5940
|
+
},
|
|
5941
|
+
type: "object",
|
|
5942
|
+
required: ["entity_type", "id"],
|
|
5943
|
+
title: "TrashItem"
|
|
5944
|
+
};
|
|
5945
|
+
var $UnresolvedReference = {
|
|
5946
|
+
properties: {
|
|
5947
|
+
kind: {
|
|
5948
|
+
type: "string",
|
|
5949
|
+
title: "Kind"
|
|
5767
5950
|
},
|
|
5768
|
-
|
|
5951
|
+
id: {
|
|
5769
5952
|
anyOf: [
|
|
5770
5953
|
{
|
|
5771
|
-
type: "string"
|
|
5954
|
+
type: "string",
|
|
5955
|
+
format: "uuid"
|
|
5772
5956
|
},
|
|
5773
5957
|
{
|
|
5774
5958
|
type: "null"
|
|
5775
5959
|
}
|
|
5776
5960
|
],
|
|
5777
|
-
title: "
|
|
5961
|
+
title: "Id"
|
|
5778
5962
|
},
|
|
5779
|
-
|
|
5963
|
+
name: {
|
|
5780
5964
|
anyOf: [
|
|
5781
5965
|
{
|
|
5782
5966
|
type: "string"
|
|
@@ -5785,11 +5969,12 @@ var $UserUpdate = {
|
|
|
5785
5969
|
type: "null"
|
|
5786
5970
|
}
|
|
5787
5971
|
],
|
|
5788
|
-
title: "
|
|
5972
|
+
title: "Name"
|
|
5789
5973
|
}
|
|
5790
5974
|
},
|
|
5791
5975
|
type: "object",
|
|
5792
|
-
|
|
5976
|
+
required: ["kind"],
|
|
5977
|
+
title: "UnresolvedReference"
|
|
5793
5978
|
};
|
|
5794
5979
|
var $ValidationError = {
|
|
5795
5980
|
properties: {
|
|
@@ -6093,143 +6278,34 @@ var request = (config, options) => {
|
|
|
6093
6278
|
onCancel
|
|
6094
6279
|
);
|
|
6095
6280
|
for (const fn of config.interceptors.response._fns) {
|
|
6096
|
-
response = await fn(response);
|
|
6097
|
-
}
|
|
6098
|
-
const responseBody = await getResponseBody(response);
|
|
6099
|
-
const responseHeader = getResponseHeader(
|
|
6100
|
-
response,
|
|
6101
|
-
options.responseHeader
|
|
6102
|
-
);
|
|
6103
|
-
const result = {
|
|
6104
|
-
url,
|
|
6105
|
-
ok: response.ok,
|
|
6106
|
-
status: response.status,
|
|
6107
|
-
statusText: response.statusText,
|
|
6108
|
-
body: responseHeader ?? responseBody
|
|
6109
|
-
};
|
|
6110
|
-
catchErrorCodes(options, result);
|
|
6111
|
-
resolve2(result.body);
|
|
6112
|
-
}
|
|
6113
|
-
} catch (error) {
|
|
6114
|
-
reject(error);
|
|
6115
|
-
}
|
|
6116
|
-
});
|
|
6117
|
-
};
|
|
6118
|
-
|
|
6119
|
-
// src/api/generated/services.gen.ts
|
|
6120
|
-
var loginAccessTokenLoginAccessTokenPost = (data) => {
|
|
6121
|
-
return request(OpenAPI, {
|
|
6122
|
-
method: "POST",
|
|
6123
|
-
url: "/login/access-token",
|
|
6124
|
-
formData: data.formData,
|
|
6125
|
-
mediaType: "application/x-www-form-urlencoded",
|
|
6126
|
-
errors: {
|
|
6127
|
-
422: "Validation Error"
|
|
6128
|
-
}
|
|
6129
|
-
});
|
|
6130
|
-
};
|
|
6131
|
-
var testTokenLoginTestTokenPost = () => {
|
|
6132
|
-
return request(OpenAPI, {
|
|
6133
|
-
method: "POST",
|
|
6134
|
-
url: "/login/test-token"
|
|
6135
|
-
});
|
|
6136
|
-
};
|
|
6137
|
-
var recoverPasswordPasswordRecoveryEmailPost = (data) => {
|
|
6138
|
-
return request(OpenAPI, {
|
|
6139
|
-
method: "POST",
|
|
6140
|
-
url: "/password-recovery/{email}",
|
|
6141
|
-
path: {
|
|
6142
|
-
email: data.email
|
|
6143
|
-
},
|
|
6144
|
-
errors: {
|
|
6145
|
-
422: "Validation Error"
|
|
6146
|
-
}
|
|
6147
|
-
});
|
|
6148
|
-
};
|
|
6149
|
-
var resetPasswordResetPasswordPost = (data) => {
|
|
6150
|
-
return request(OpenAPI, {
|
|
6151
|
-
method: "POST",
|
|
6152
|
-
url: "/reset-password/",
|
|
6153
|
-
body: data.requestBody,
|
|
6154
|
-
mediaType: "application/json",
|
|
6155
|
-
errors: {
|
|
6156
|
-
422: "Validation Error"
|
|
6157
|
-
}
|
|
6158
|
-
});
|
|
6159
|
-
};
|
|
6160
|
-
var getHealthHealthGet = () => {
|
|
6161
|
-
return request(OpenAPI, {
|
|
6162
|
-
method: "GET",
|
|
6163
|
-
url: "/health/"
|
|
6164
|
-
});
|
|
6165
|
-
};
|
|
6166
|
-
var getMultiUsersGet = (data = {}) => {
|
|
6167
|
-
return request(OpenAPI, {
|
|
6168
|
-
method: "GET",
|
|
6169
|
-
url: "/users/",
|
|
6170
|
-
query: {
|
|
6171
|
-
skip: data.skip,
|
|
6172
|
-
limit: data.limit,
|
|
6173
|
-
filter: data.filter,
|
|
6174
|
-
sort: data.sort
|
|
6175
|
-
},
|
|
6176
|
-
errors: {
|
|
6177
|
-
422: "Validation Error"
|
|
6178
|
-
}
|
|
6179
|
-
});
|
|
6180
|
-
};
|
|
6181
|
-
var createUsersPost = (data) => {
|
|
6182
|
-
return request(OpenAPI, {
|
|
6183
|
-
method: "POST",
|
|
6184
|
-
url: "/users/",
|
|
6185
|
-
body: data.requestBody,
|
|
6186
|
-
mediaType: "application/json",
|
|
6187
|
-
errors: {
|
|
6188
|
-
422: "Validation Error"
|
|
6189
|
-
}
|
|
6190
|
-
});
|
|
6191
|
-
};
|
|
6192
|
-
var getUserMeUsersMeGet = () => {
|
|
6193
|
-
return request(OpenAPI, {
|
|
6194
|
-
method: "GET",
|
|
6195
|
-
url: "/users/me"
|
|
6196
|
-
});
|
|
6197
|
-
};
|
|
6198
|
-
var updateUserMeUsersMePut = (data = {}) => {
|
|
6199
|
-
return request(OpenAPI, {
|
|
6200
|
-
method: "PUT",
|
|
6201
|
-
url: "/users/me",
|
|
6202
|
-
body: data.requestBody,
|
|
6203
|
-
mediaType: "application/json",
|
|
6204
|
-
errors: {
|
|
6205
|
-
422: "Validation Error"
|
|
6281
|
+
response = await fn(response);
|
|
6282
|
+
}
|
|
6283
|
+
const responseBody = await getResponseBody(response);
|
|
6284
|
+
const responseHeader = getResponseHeader(
|
|
6285
|
+
response,
|
|
6286
|
+
options.responseHeader
|
|
6287
|
+
);
|
|
6288
|
+
const result = {
|
|
6289
|
+
url,
|
|
6290
|
+
ok: response.ok,
|
|
6291
|
+
status: response.status,
|
|
6292
|
+
statusText: response.statusText,
|
|
6293
|
+
body: responseHeader ?? responseBody
|
|
6294
|
+
};
|
|
6295
|
+
catchErrorCodes(options, result);
|
|
6296
|
+
resolve2(result.body);
|
|
6297
|
+
}
|
|
6298
|
+
} catch (error) {
|
|
6299
|
+
reject(error);
|
|
6206
6300
|
}
|
|
6207
6301
|
});
|
|
6208
6302
|
};
|
|
6209
|
-
|
|
6303
|
+
|
|
6304
|
+
// src/api/generated/services.gen.ts
|
|
6305
|
+
var getHealthHealthGet = () => {
|
|
6210
6306
|
return request(OpenAPI, {
|
|
6211
6307
|
method: "GET",
|
|
6212
|
-
url: "/
|
|
6213
|
-
path: {
|
|
6214
|
-
user_id: data.userId
|
|
6215
|
-
},
|
|
6216
|
-
errors: {
|
|
6217
|
-
422: "Validation Error"
|
|
6218
|
-
}
|
|
6219
|
-
});
|
|
6220
|
-
};
|
|
6221
|
-
var updateUsersUserIdPut = (data) => {
|
|
6222
|
-
return request(OpenAPI, {
|
|
6223
|
-
method: "PUT",
|
|
6224
|
-
url: "/users/{user_id}",
|
|
6225
|
-
path: {
|
|
6226
|
-
user_id: data.userId
|
|
6227
|
-
},
|
|
6228
|
-
body: data.requestBody,
|
|
6229
|
-
mediaType: "application/json",
|
|
6230
|
-
errors: {
|
|
6231
|
-
422: "Validation Error"
|
|
6232
|
-
}
|
|
6308
|
+
url: "/health/"
|
|
6233
6309
|
});
|
|
6234
6310
|
};
|
|
6235
6311
|
var getFormsFormsGet = () => {
|
|
@@ -6897,6 +6973,10 @@ var deleteCategory = (data) => {
|
|
|
6897
6973
|
headers: {
|
|
6898
6974
|
"X-API-Key": data.xApiKey
|
|
6899
6975
|
},
|
|
6976
|
+
query: {
|
|
6977
|
+
force: data.force,
|
|
6978
|
+
detach: data.detach
|
|
6979
|
+
},
|
|
6900
6980
|
errors: {
|
|
6901
6981
|
422: "Validation Error"
|
|
6902
6982
|
}
|
|
@@ -7138,6 +7218,9 @@ var deleteProduct = (data) => {
|
|
|
7138
7218
|
headers: {
|
|
7139
7219
|
"X-API-Key": data.xApiKey
|
|
7140
7220
|
},
|
|
7221
|
+
query: {
|
|
7222
|
+
force: data.force
|
|
7223
|
+
},
|
|
7141
7224
|
errors: {
|
|
7142
7225
|
422: "Validation Error"
|
|
7143
7226
|
}
|
|
@@ -7265,6 +7348,257 @@ var deleteShopsShopIdProductsToTagsProductToTagIdDelete = (data) => {
|
|
|
7265
7348
|
}
|
|
7266
7349
|
});
|
|
7267
7350
|
};
|
|
7351
|
+
var listShopRevisions = (data) => {
|
|
7352
|
+
return request(OpenAPI, {
|
|
7353
|
+
method: "GET",
|
|
7354
|
+
url: "/shops/{shop_id}/revisions",
|
|
7355
|
+
path: {
|
|
7356
|
+
shop_id: data.shopId
|
|
7357
|
+
},
|
|
7358
|
+
headers: {
|
|
7359
|
+
"X-API-Key": data.xApiKey
|
|
7360
|
+
},
|
|
7361
|
+
query: {
|
|
7362
|
+
entity_type: data.entityType,
|
|
7363
|
+
entity_id: data.entityId,
|
|
7364
|
+
action: data.action,
|
|
7365
|
+
source: data.source,
|
|
7366
|
+
created_by: data.createdBy,
|
|
7367
|
+
skip: data.skip,
|
|
7368
|
+
limit: data.limit
|
|
7369
|
+
},
|
|
7370
|
+
errors: {
|
|
7371
|
+
422: "Validation Error"
|
|
7372
|
+
}
|
|
7373
|
+
});
|
|
7374
|
+
};
|
|
7375
|
+
var getRevision = (data) => {
|
|
7376
|
+
return request(OpenAPI, {
|
|
7377
|
+
method: "GET",
|
|
7378
|
+
url: "/shops/{shop_id}/revisions/{revision_id}",
|
|
7379
|
+
path: {
|
|
7380
|
+
shop_id: data.shopId,
|
|
7381
|
+
revision_id: data.revisionId
|
|
7382
|
+
},
|
|
7383
|
+
headers: {
|
|
7384
|
+
"X-API-Key": data.xApiKey
|
|
7385
|
+
},
|
|
7386
|
+
errors: {
|
|
7387
|
+
422: "Validation Error"
|
|
7388
|
+
}
|
|
7389
|
+
});
|
|
7390
|
+
};
|
|
7391
|
+
var listProductRevisions = (data) => {
|
|
7392
|
+
return request(OpenAPI, {
|
|
7393
|
+
method: "GET",
|
|
7394
|
+
url: "/shops/{shop_id}/products/{product_id}/revisions",
|
|
7395
|
+
path: {
|
|
7396
|
+
shop_id: data.shopId,
|
|
7397
|
+
product_id: data.productId
|
|
7398
|
+
},
|
|
7399
|
+
headers: {
|
|
7400
|
+
"X-API-Key": data.xApiKey
|
|
7401
|
+
},
|
|
7402
|
+
errors: {
|
|
7403
|
+
422: "Validation Error"
|
|
7404
|
+
}
|
|
7405
|
+
});
|
|
7406
|
+
};
|
|
7407
|
+
var getProductRevision = (data) => {
|
|
7408
|
+
return request(OpenAPI, {
|
|
7409
|
+
method: "GET",
|
|
7410
|
+
url: "/shops/{shop_id}/products/{product_id}/revisions/{revision_no}",
|
|
7411
|
+
path: {
|
|
7412
|
+
shop_id: data.shopId,
|
|
7413
|
+
product_id: data.productId,
|
|
7414
|
+
revision_no: data.revisionNo
|
|
7415
|
+
},
|
|
7416
|
+
headers: {
|
|
7417
|
+
"X-API-Key": data.xApiKey
|
|
7418
|
+
},
|
|
7419
|
+
errors: {
|
|
7420
|
+
422: "Validation Error"
|
|
7421
|
+
}
|
|
7422
|
+
});
|
|
7423
|
+
};
|
|
7424
|
+
var restoreProductRevision = (data) => {
|
|
7425
|
+
return request(OpenAPI, {
|
|
7426
|
+
method: "POST",
|
|
7427
|
+
url: "/shops/{shop_id}/products/{product_id}/revisions/{revision_no}/restore",
|
|
7428
|
+
path: {
|
|
7429
|
+
shop_id: data.shopId,
|
|
7430
|
+
product_id: data.productId,
|
|
7431
|
+
revision_no: data.revisionNo
|
|
7432
|
+
},
|
|
7433
|
+
headers: {
|
|
7434
|
+
"X-API-Key": data.xApiKey
|
|
7435
|
+
},
|
|
7436
|
+
query: {
|
|
7437
|
+
force: data.force
|
|
7438
|
+
},
|
|
7439
|
+
errors: {
|
|
7440
|
+
422: "Validation Error"
|
|
7441
|
+
}
|
|
7442
|
+
});
|
|
7443
|
+
};
|
|
7444
|
+
var restoreProduct = (data) => {
|
|
7445
|
+
return request(OpenAPI, {
|
|
7446
|
+
method: "POST",
|
|
7447
|
+
url: "/shops/{shop_id}/products/{product_id}/restore",
|
|
7448
|
+
path: {
|
|
7449
|
+
shop_id: data.shopId,
|
|
7450
|
+
product_id: data.productId
|
|
7451
|
+
},
|
|
7452
|
+
headers: {
|
|
7453
|
+
"X-API-Key": data.xApiKey
|
|
7454
|
+
},
|
|
7455
|
+
errors: {
|
|
7456
|
+
422: "Validation Error"
|
|
7457
|
+
}
|
|
7458
|
+
});
|
|
7459
|
+
};
|
|
7460
|
+
var listCategoryRevisionsShopsShopIdCategoriesCategoryIdRevisionsGet = (data) => {
|
|
7461
|
+
return request(OpenAPI, {
|
|
7462
|
+
method: "GET",
|
|
7463
|
+
url: "/shops/{shop_id}/categories/{category_id}/revisions",
|
|
7464
|
+
path: {
|
|
7465
|
+
shop_id: data.shopId,
|
|
7466
|
+
category_id: data.categoryId
|
|
7467
|
+
},
|
|
7468
|
+
headers: {
|
|
7469
|
+
"X-API-Key": data.xApiKey
|
|
7470
|
+
},
|
|
7471
|
+
errors: {
|
|
7472
|
+
422: "Validation Error"
|
|
7473
|
+
}
|
|
7474
|
+
});
|
|
7475
|
+
};
|
|
7476
|
+
var restoreCategory = (data) => {
|
|
7477
|
+
return request(OpenAPI, {
|
|
7478
|
+
method: "POST",
|
|
7479
|
+
url: "/shops/{shop_id}/categories/{category_id}/restore",
|
|
7480
|
+
path: {
|
|
7481
|
+
shop_id: data.shopId,
|
|
7482
|
+
category_id: data.categoryId
|
|
7483
|
+
},
|
|
7484
|
+
headers: {
|
|
7485
|
+
"X-API-Key": data.xApiKey
|
|
7486
|
+
},
|
|
7487
|
+
query: {
|
|
7488
|
+
restore_products: data.restoreProducts
|
|
7489
|
+
},
|
|
7490
|
+
errors: {
|
|
7491
|
+
422: "Validation Error"
|
|
7492
|
+
}
|
|
7493
|
+
});
|
|
7494
|
+
};
|
|
7495
|
+
var restoreCategoryRevision = (data) => {
|
|
7496
|
+
return request(OpenAPI, {
|
|
7497
|
+
method: "POST",
|
|
7498
|
+
url: "/shops/{shop_id}/categories/{category_id}/revisions/{revision_no}/restore",
|
|
7499
|
+
path: {
|
|
7500
|
+
shop_id: data.shopId,
|
|
7501
|
+
category_id: data.categoryId,
|
|
7502
|
+
revision_no: data.revisionNo
|
|
7503
|
+
},
|
|
7504
|
+
headers: {
|
|
7505
|
+
"X-API-Key": data.xApiKey
|
|
7506
|
+
},
|
|
7507
|
+
query: {
|
|
7508
|
+
force: data.force
|
|
7509
|
+
},
|
|
7510
|
+
errors: {
|
|
7511
|
+
422: "Validation Error"
|
|
7512
|
+
}
|
|
7513
|
+
});
|
|
7514
|
+
};
|
|
7515
|
+
var restoreTagRevision = (data) => {
|
|
7516
|
+
return request(OpenAPI, {
|
|
7517
|
+
method: "POST",
|
|
7518
|
+
url: "/shops/{shop_id}/tags/{tag_id}/revisions/{revision_no}/restore",
|
|
7519
|
+
path: {
|
|
7520
|
+
shop_id: data.shopId,
|
|
7521
|
+
tag_id: data.tagId,
|
|
7522
|
+
revision_no: data.revisionNo
|
|
7523
|
+
},
|
|
7524
|
+
headers: {
|
|
7525
|
+
"X-API-Key": data.xApiKey
|
|
7526
|
+
},
|
|
7527
|
+
query: {
|
|
7528
|
+
force: data.force
|
|
7529
|
+
},
|
|
7530
|
+
errors: {
|
|
7531
|
+
422: "Validation Error"
|
|
7532
|
+
}
|
|
7533
|
+
});
|
|
7534
|
+
};
|
|
7535
|
+
var restoreTag = (data) => {
|
|
7536
|
+
return request(OpenAPI, {
|
|
7537
|
+
method: "POST",
|
|
7538
|
+
url: "/shops/{shop_id}/tags/{tag_id}/restore",
|
|
7539
|
+
path: {
|
|
7540
|
+
shop_id: data.shopId,
|
|
7541
|
+
tag_id: data.tagId
|
|
7542
|
+
},
|
|
7543
|
+
headers: {
|
|
7544
|
+
"X-API-Key": data.xApiKey
|
|
7545
|
+
},
|
|
7546
|
+
errors: {
|
|
7547
|
+
422: "Validation Error"
|
|
7548
|
+
}
|
|
7549
|
+
});
|
|
7550
|
+
};
|
|
7551
|
+
var restoreAttributeRevision = (data) => {
|
|
7552
|
+
return request(OpenAPI, {
|
|
7553
|
+
method: "POST",
|
|
7554
|
+
url: "/shops/{shop_id}/attributes/{attribute_id}/revisions/{revision_no}/restore",
|
|
7555
|
+
path: {
|
|
7556
|
+
shop_id: data.shopId,
|
|
7557
|
+
attribute_id: data.attributeId,
|
|
7558
|
+
revision_no: data.revisionNo
|
|
7559
|
+
},
|
|
7560
|
+
headers: {
|
|
7561
|
+
"X-API-Key": data.xApiKey
|
|
7562
|
+
},
|
|
7563
|
+
query: {
|
|
7564
|
+
force: data.force
|
|
7565
|
+
},
|
|
7566
|
+
errors: {
|
|
7567
|
+
422: "Validation Error"
|
|
7568
|
+
}
|
|
7569
|
+
});
|
|
7570
|
+
};
|
|
7571
|
+
var restoreAttribute = (data) => {
|
|
7572
|
+
return request(OpenAPI, {
|
|
7573
|
+
method: "POST",
|
|
7574
|
+
url: "/shops/{shop_id}/attributes/{attribute_id}/restore",
|
|
7575
|
+
path: {
|
|
7576
|
+
shop_id: data.shopId,
|
|
7577
|
+
attribute_id: data.attributeId
|
|
7578
|
+
},
|
|
7579
|
+
headers: {
|
|
7580
|
+
"X-API-Key": data.xApiKey
|
|
7581
|
+
},
|
|
7582
|
+
errors: {
|
|
7583
|
+
422: "Validation Error"
|
|
7584
|
+
}
|
|
7585
|
+
});
|
|
7586
|
+
};
|
|
7587
|
+
var listTrashShopsShopIdTrashGet = (data) => {
|
|
7588
|
+
return request(OpenAPI, {
|
|
7589
|
+
method: "GET",
|
|
7590
|
+
url: "/shops/{shop_id}/trash",
|
|
7591
|
+
path: {
|
|
7592
|
+
shop_id: data.shopId
|
|
7593
|
+
},
|
|
7594
|
+
headers: {
|
|
7595
|
+
"X-API-Key": data.xApiKey
|
|
7596
|
+
},
|
|
7597
|
+
errors: {
|
|
7598
|
+
422: "Validation Error"
|
|
7599
|
+
}
|
|
7600
|
+
});
|
|
7601
|
+
};
|
|
7268
7602
|
var listTags = (data) => {
|
|
7269
7603
|
return request(OpenAPI, {
|
|
7270
7604
|
method: "GET",
|
|
@@ -7348,6 +7682,9 @@ var deleteTag = (data) => {
|
|
|
7348
7682
|
headers: {
|
|
7349
7683
|
"X-API-Key": data.xApiKey
|
|
7350
7684
|
},
|
|
7685
|
+
query: {
|
|
7686
|
+
force: data.force
|
|
7687
|
+
},
|
|
7351
7688
|
errors: {
|
|
7352
7689
|
422: "Validation Error"
|
|
7353
7690
|
}
|
|
@@ -7521,6 +7858,9 @@ var deleteAttribute = (data) => {
|
|
|
7521
7858
|
headers: {
|
|
7522
7859
|
"X-API-Key": data.xApiKey
|
|
7523
7860
|
},
|
|
7861
|
+
query: {
|
|
7862
|
+
force: data.force
|
|
7863
|
+
},
|
|
7524
7864
|
errors: {
|
|
7525
7865
|
422: "Validation Error"
|
|
7526
7866
|
}
|
|
@@ -7633,6 +7973,9 @@ var deleteOptionV2ShopsShopIdAttributeOptionsOptionIdDelete = (data) => {
|
|
|
7633
7973
|
shop_id: data.shopId,
|
|
7634
7974
|
option_id: data.optionId
|
|
7635
7975
|
},
|
|
7976
|
+
query: {
|
|
7977
|
+
force: data.force
|
|
7978
|
+
},
|
|
7636
7979
|
errors: {
|
|
7637
7980
|
422: "Validation Error"
|
|
7638
7981
|
}
|
|
@@ -7695,6 +8038,9 @@ var deleteOptionShopsShopIdAttributesAttributeIdOptionsOptionIdDelete = (data) =
|
|
|
7695
8038
|
attribute_id: data.attributeId,
|
|
7696
8039
|
option_id: data.optionId
|
|
7697
8040
|
},
|
|
8041
|
+
query: {
|
|
8042
|
+
force: data.force
|
|
8043
|
+
},
|
|
7698
8044
|
errors: {
|
|
7699
8045
|
422: "Validation Error"
|
|
7700
8046
|
}
|
|
@@ -8030,9 +8376,6 @@ export {
|
|
|
8030
8376
|
$AttributeWithOptionsSchema,
|
|
8031
8377
|
$AvailableAttributeSchema,
|
|
8032
8378
|
$AvailableOptionSchema,
|
|
8033
|
-
$Body_login_access_token_login_access_token_post,
|
|
8034
|
-
$Body_reset_password_reset_password__post,
|
|
8035
|
-
$Body_update_user_me_users_me_put,
|
|
8036
8379
|
$Cart,
|
|
8037
8380
|
$CategoryCreate,
|
|
8038
8381
|
$CategoryImageDelete,
|
|
@@ -8063,7 +8406,6 @@ export {
|
|
|
8063
8406
|
$LicenseSchema,
|
|
8064
8407
|
$LicenseUpdate,
|
|
8065
8408
|
$LinkStripeBody,
|
|
8066
|
-
$Msg,
|
|
8067
8409
|
$MyShopsResponse,
|
|
8068
8410
|
$OrderBase,
|
|
8069
8411
|
$OrderCreate,
|
|
@@ -8088,6 +8430,10 @@ export {
|
|
|
8088
8430
|
$ProductWithAttributes,
|
|
8089
8431
|
$ProductWithDefaultPrice,
|
|
8090
8432
|
$ProductWithDetailsAndPrices,
|
|
8433
|
+
$RestoreReport,
|
|
8434
|
+
$ResurrectedEntity,
|
|
8435
|
+
$RevisionDetail,
|
|
8436
|
+
$RevisionSummary,
|
|
8091
8437
|
$ShippingCalculateRequest,
|
|
8092
8438
|
$ShippingCalculation,
|
|
8093
8439
|
$ShippingLine,
|
|
@@ -8110,9 +8456,8 @@ export {
|
|
|
8110
8456
|
$TagTranslationBase,
|
|
8111
8457
|
$TagUpdate,
|
|
8112
8458
|
$Toggles,
|
|
8113
|
-
$
|
|
8114
|
-
$
|
|
8115
|
-
$UserUpdate,
|
|
8459
|
+
$TrashItem,
|
|
8460
|
+
$UnresolvedReference,
|
|
8116
8461
|
$ValidationError,
|
|
8117
8462
|
ApiError,
|
|
8118
8463
|
CancelError,
|
|
@@ -8137,7 +8482,6 @@ export {
|
|
|
8137
8482
|
createShopsShopIdProductsToTagsPost,
|
|
8138
8483
|
createSubscriptionIntentShopsShopIdStripeSubscriptionPost,
|
|
8139
8484
|
createTag,
|
|
8140
|
-
createUsersPost,
|
|
8141
8485
|
deleteAttribute,
|
|
8142
8486
|
deleteCategory,
|
|
8143
8487
|
deleteFaqFaqIdDelete,
|
|
@@ -8166,7 +8510,6 @@ export {
|
|
|
8166
8510
|
getByIdShopsShopIdAccountsIdGet,
|
|
8167
8511
|
getByIdShopsShopIdCategoriesImagesIdGet,
|
|
8168
8512
|
getByIdShopsShopIdProductsToTagsIdGet,
|
|
8169
|
-
getByIdUsersUserIdGet,
|
|
8170
8513
|
getByIdWithAttributesShopsShopIdProductsProductIdWithAttributesGet,
|
|
8171
8514
|
getByIdWithOptionsDirectShopsShopIdAttributesAttributeIdWithOptionsGet,
|
|
8172
8515
|
getByIdWithOptionsShopsShopIdAttributesIdAttributeIdWithOptionsGet,
|
|
@@ -8190,32 +8533,35 @@ export {
|
|
|
8190
8533
|
getMultiShopsShopIdAccountsGet,
|
|
8191
8534
|
getMultiShopsShopIdCategoriesImagesGet,
|
|
8192
8535
|
getMultiShopsShopIdProductsToTagsGet,
|
|
8193
|
-
getMultiUsersGet,
|
|
8194
8536
|
getMultiWithAttributesShopsShopIdProductsWithAttributesGet,
|
|
8195
8537
|
getOptionShopsShopIdAttributesAttributeIdOptionsOptionIdGet,
|
|
8196
8538
|
getOptionV2ShopsShopIdAttributeOptionsOptionIdGet,
|
|
8197
8539
|
getOrderProductsInStockOrdersStockOrderIdGet,
|
|
8198
8540
|
getProduct,
|
|
8541
|
+
getProductRevision,
|
|
8199
8542
|
getProductsShopsShopIdPricesGet,
|
|
8200
8543
|
getRelationIdShopsShopIdProductsToTagsGetRelationIdGet,
|
|
8544
|
+
getRevision,
|
|
8201
8545
|
getSignedDownloadLinkDownloadsFileNameGet,
|
|
8202
8546
|
getSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGet,
|
|
8203
8547
|
getSignedUrlImagesSignedUrlImageNameGet,
|
|
8204
8548
|
getStripeCustomerAdminAccountsIdStripeCustomerGet,
|
|
8205
8549
|
getTag,
|
|
8206
|
-
getUserMeUsersMeGet,
|
|
8207
8550
|
getWithOptionsShopsShopIdAttributesWithOptionsGet,
|
|
8208
8551
|
linkStripeAdminAccountsIdLinkStripePost,
|
|
8209
8552
|
listAccountsAdminAccountsGet,
|
|
8210
8553
|
listAttributes,
|
|
8211
8554
|
listCategories,
|
|
8555
|
+
listCategoryRevisionsShopsShopIdCategoriesCategoryIdRevisionsGet,
|
|
8212
8556
|
listKeysShopsShopIdApiKeysGet,
|
|
8213
8557
|
listMyShops,
|
|
8214
8558
|
listOptionsForShopShopsShopIdAttributeOptionsGet,
|
|
8215
8559
|
listOptionsShopsShopIdAttributesAttributeIdOptionsGet,
|
|
8560
|
+
listProductRevisions,
|
|
8216
8561
|
listProducts,
|
|
8562
|
+
listShopRevisions,
|
|
8217
8563
|
listTags,
|
|
8218
|
-
|
|
8564
|
+
listTrashShopsShopIdTrashGet,
|
|
8219
8565
|
mintShopsShopIdApiKeysPost,
|
|
8220
8566
|
moveImagesImagesMovePost,
|
|
8221
8567
|
newFormFormsFormKeyPost,
|
|
@@ -8227,9 +8573,15 @@ export {
|
|
|
8227
8573
|
productAttributeValuesList,
|
|
8228
8574
|
productAttributeValuesReplaceForProduct,
|
|
8229
8575
|
putShopsShopIdCategoriesImagesIdPut,
|
|
8230
|
-
recoverPasswordPasswordRecoveryEmailPost,
|
|
8231
8576
|
removeIpShopsAllowedIpsIdRemovePost,
|
|
8232
|
-
|
|
8577
|
+
restoreAttribute,
|
|
8578
|
+
restoreAttributeRevision,
|
|
8579
|
+
restoreCategory,
|
|
8580
|
+
restoreCategoryRevision,
|
|
8581
|
+
restoreProduct,
|
|
8582
|
+
restoreProductRevision,
|
|
8583
|
+
restoreTag,
|
|
8584
|
+
restoreTagRevision,
|
|
8233
8585
|
revokeShopsShopIdApiKeysKeyIdDelete,
|
|
8234
8586
|
sendDownloadLinkViaEmailDownloadsSendPost,
|
|
8235
8587
|
showAllCompleteOrdersPerShopOrdersShopShopIdCompleteGet,
|
|
@@ -8237,7 +8589,6 @@ export {
|
|
|
8237
8589
|
swapShopsShopIdCategoriesCategoryIdSwapPut,
|
|
8238
8590
|
swapShopsShopIdProductsProductIdSwapPut,
|
|
8239
8591
|
syncStripeAdminAccountsIdSyncStripePost,
|
|
8240
|
-
testTokenLoginTestTokenPost,
|
|
8241
8592
|
triggerErrorSentryGet,
|
|
8242
8593
|
updateAttribute,
|
|
8243
8594
|
updateCategory,
|
|
@@ -8249,7 +8600,5 @@ export {
|
|
|
8249
8600
|
updateShopsShopIdAccountsAccountIdPut,
|
|
8250
8601
|
updateShopsShopIdProductsToTagsProductToTagIdPut,
|
|
8251
8602
|
updateShopsShopIdPut,
|
|
8252
|
-
updateTag
|
|
8253
|
-
updateUserMeUsersMePut,
|
|
8254
|
-
updateUsersUserIdPut
|
|
8603
|
+
updateTag
|
|
8255
8604
|
};
|