@shopvirge/shopvirge-client 0.2.6 → 0.2.8

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.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.2.6",
129
+ VERSION: "0.2.8",
130
130
  WITH_CREDENTIALS: false,
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -200,6 +200,97 @@ var $AccountUpdate = {
200
200
  required: ["shop_id", "name", "details"],
201
201
  title: "AccountUpdate"
202
202
  };
203
+ var $AdminAccountSchema = {
204
+ properties: {
205
+ id: {
206
+ type: "string",
207
+ format: "uuid",
208
+ title: "Id"
209
+ },
210
+ shop_id: {
211
+ anyOf: [
212
+ {
213
+ type: "string",
214
+ format: "uuid"
215
+ },
216
+ {
217
+ type: "null"
218
+ }
219
+ ],
220
+ title: "Shop Id"
221
+ },
222
+ shop_name: {
223
+ anyOf: [
224
+ {
225
+ type: "string"
226
+ },
227
+ {
228
+ type: "null"
229
+ }
230
+ ],
231
+ title: "Shop Name"
232
+ },
233
+ name: {
234
+ anyOf: [
235
+ {
236
+ type: "string"
237
+ },
238
+ {
239
+ type: "null"
240
+ }
241
+ ],
242
+ title: "Name"
243
+ },
244
+ hash_name: {
245
+ anyOf: [
246
+ {
247
+ type: "string"
248
+ },
249
+ {
250
+ type: "null"
251
+ }
252
+ ],
253
+ title: "Hash Name"
254
+ },
255
+ details: {
256
+ anyOf: [
257
+ {
258
+ type: "object"
259
+ },
260
+ {
261
+ type: "null"
262
+ }
263
+ ],
264
+ title: "Details"
265
+ },
266
+ stripe_customer_id: {
267
+ anyOf: [
268
+ {
269
+ type: "string"
270
+ },
271
+ {
272
+ type: "null"
273
+ }
274
+ ],
275
+ title: "Stripe Customer Id"
276
+ },
277
+ stripe_synced_at: {
278
+ anyOf: [
279
+ {
280
+ type: "string",
281
+ format: "date-time"
282
+ },
283
+ {
284
+ type: "null"
285
+ }
286
+ ],
287
+ title: "Stripe Synced At"
288
+ }
289
+ },
290
+ type: "object",
291
+ required: ["id"],
292
+ title: "AdminAccountSchema"
293
+ };
203
294
  var $AttributeCreate = {
204
295
  properties: {
205
296
  name: {
@@ -1259,6 +1350,37 @@ var $ConfigurationLegal = {
1259
1350
  type: "object",
1260
1351
  title: "ConfigurationLegal"
1261
1352
  };
1353
+ var $ConfigurationShipping = {
1354
+ properties: {
1355
+ enabled: {
1356
+ type: "boolean",
1357
+ title: "Enabled",
1358
+ default: false
1359
+ },
1360
+ method: {
1361
+ type: "string",
1362
+ title: "Method",
1363
+ default: "fixed"
1364
+ },
1365
+ fixed_fee: {
1366
+ type: "number",
1367
+ title: "Fixed Fee",
1368
+ default: 0
1369
+ },
1370
+ free_shipping_above_enabled: {
1371
+ type: "boolean",
1372
+ title: "Free Shipping Above Enabled",
1373
+ default: false
1374
+ },
1375
+ free_shipping_above_amount: {
1376
+ type: "number",
1377
+ title: "Free Shipping Above Amount",
1378
+ default: 0
1379
+ }
1380
+ },
1381
+ type: "object",
1382
+ title: "ConfigurationShipping"
1383
+ };
1262
1384
  var $ConfigurationV1_Input = {
1263
1385
  properties: {
1264
1386
  short_shop_name: {
@@ -1329,6 +1451,16 @@ var $ConfigurationV1_Input = {
1329
1451
  type: "null"
1330
1452
  }
1331
1453
  ]
1454
+ },
1455
+ shipping: {
1456
+ anyOf: [
1457
+ {
1458
+ $ref: "#/components/schemas/ConfigurationShipping"
1459
+ },
1460
+ {
1461
+ type: "null"
1462
+ }
1463
+ ]
1332
1464
  }
1333
1465
  },
1334
1466
  type: "object",
@@ -1412,6 +1544,16 @@ var $ConfigurationV1_Output = {
1412
1544
  type: "null"
1413
1545
  }
1414
1546
  ]
1547
+ },
1548
+ shipping: {
1549
+ anyOf: [
1550
+ {
1551
+ $ref: "#/components/schemas/ConfigurationShipping"
1552
+ },
1553
+ {
1554
+ type: "null"
1555
+ }
1556
+ ]
1415
1557
  }
1416
1558
  },
1417
1559
  type: "object",
@@ -1880,6 +2022,17 @@ var $LicenseUpdate = {
1880
2022
  required: ["seats", "end_date"],
1881
2023
  title: "LicenseUpdate"
1882
2024
  };
2025
+ var $LinkStripeBody = {
2026
+ properties: {
2027
+ stripe_customer_id: {
2028
+ type: "string",
2029
+ title: "Stripe Customer Id"
2030
+ }
2031
+ },
2032
+ type: "object",
2033
+ required: ["stripe_customer_id"],
2034
+ title: "LinkStripeBody"
2035
+ };
1883
2036
  var $Msg = {
1884
2037
  properties: {
1885
2038
  msg: {
@@ -1948,6 +2101,17 @@ var $OrderBase = {
1948
2101
  }
1949
2102
  ],
1950
2103
  title: "Status"
2104
+ },
2105
+ shipping_fee_inc_btw: {
2106
+ anyOf: [
2107
+ {
2108
+ type: "number"
2109
+ },
2110
+ {
2111
+ type: "null"
2112
+ }
2113
+ ],
2114
+ title: "Shipping Fee Inc Btw"
1951
2115
  }
1952
2116
  },
1953
2117
  type: "object",
@@ -2012,6 +2176,17 @@ var $OrderCreate = {
2012
2176
  ],
2013
2177
  title: "Status"
2014
2178
  },
2179
+ shipping_fee_inc_btw: {
2180
+ anyOf: [
2181
+ {
2182
+ type: "number"
2183
+ },
2184
+ {
2185
+ type: "null"
2186
+ }
2187
+ ],
2188
+ title: "Shipping Fee Inc Btw"
2189
+ },
2015
2190
  shop_id: {
2016
2191
  type: "string",
2017
2192
  format: "uuid",
@@ -2117,6 +2292,17 @@ var $OrderCreated = {
2117
2292
  ],
2118
2293
  title: "Status"
2119
2294
  },
2295
+ shipping_fee_inc_btw: {
2296
+ anyOf: [
2297
+ {
2298
+ type: "number"
2299
+ },
2300
+ {
2301
+ type: "null"
2302
+ }
2303
+ ],
2304
+ title: "Shipping Fee Inc Btw"
2305
+ },
2120
2306
  id: {
2121
2307
  type: "string",
2122
2308
  format: "uuid",
@@ -2262,6 +2448,17 @@ var $OrderSchema = {
2262
2448
  ],
2263
2449
  title: "Status"
2264
2450
  },
2451
+ shipping_fee_inc_btw: {
2452
+ anyOf: [
2453
+ {
2454
+ type: "number"
2455
+ },
2456
+ {
2457
+ type: "null"
2458
+ }
2459
+ ],
2460
+ title: "Shipping Fee Inc Btw"
2461
+ },
2265
2462
  id: {
2266
2463
  type: "string",
2267
2464
  format: "uuid",
@@ -2416,6 +2613,17 @@ var $OrderUpdate = {
2416
2613
  ],
2417
2614
  title: "Status"
2418
2615
  },
2616
+ shipping_fee_inc_btw: {
2617
+ anyOf: [
2618
+ {
2619
+ type: "number"
2620
+ },
2621
+ {
2622
+ type: "null"
2623
+ }
2624
+ ],
2625
+ title: "Shipping Fee Inc Btw"
2626
+ },
2419
2627
  shop_id: {
2420
2628
  type: "string",
2421
2629
  format: "uuid",
@@ -2498,6 +2706,17 @@ var $OrderUpdated = {
2498
2706
  ],
2499
2707
  title: "Status"
2500
2708
  },
2709
+ shipping_fee_inc_btw: {
2710
+ anyOf: [
2711
+ {
2712
+ type: "number"
2713
+ },
2714
+ {
2715
+ type: "null"
2716
+ }
2717
+ ],
2718
+ title: "Shipping Fee Inc Btw"
2719
+ },
2501
2720
  shop_id: {
2502
2721
  type: "string",
2503
2722
  format: "uuid",
@@ -4173,6 +4392,111 @@ var $ProductWithDetailsAndPrices = {
4173
4392
  ],
4174
4393
  title: "ProductWithDetailsAndPrices"
4175
4394
  };
4395
+ var $ShippingCalculateRequest = {
4396
+ properties: {
4397
+ shop_id: {
4398
+ type: "string",
4399
+ format: "uuid",
4400
+ title: "Shop Id"
4401
+ },
4402
+ order_info: {
4403
+ items: {
4404
+ $ref: "#/components/schemas/OrderItem"
4405
+ },
4406
+ type: "array",
4407
+ title: "Order Info"
4408
+ }
4409
+ },
4410
+ type: "object",
4411
+ required: ["shop_id", "order_info"],
4412
+ title: "ShippingCalculateRequest"
4413
+ };
4414
+ var $ShippingCalculation = {
4415
+ properties: {
4416
+ enabled: {
4417
+ type: "boolean",
4418
+ title: "Enabled"
4419
+ },
4420
+ method: {
4421
+ anyOf: [
4422
+ {
4423
+ type: "string"
4424
+ },
4425
+ {
4426
+ type: "null"
4427
+ }
4428
+ ],
4429
+ title: "Method"
4430
+ },
4431
+ fee_inc_btw: {
4432
+ type: "number",
4433
+ title: "Fee Inc Btw"
4434
+ },
4435
+ fee_ex_btw: {
4436
+ type: "number",
4437
+ title: "Fee Ex Btw"
4438
+ },
4439
+ fee_btw: {
4440
+ type: "number",
4441
+ title: "Fee Btw"
4442
+ },
4443
+ free_shipping_applied: {
4444
+ type: "boolean",
4445
+ title: "Free Shipping Applied"
4446
+ },
4447
+ free_shipping_threshold: {
4448
+ anyOf: [
4449
+ {
4450
+ type: "number"
4451
+ },
4452
+ {
4453
+ type: "null"
4454
+ }
4455
+ ],
4456
+ title: "Free Shipping Threshold"
4457
+ },
4458
+ lines: {
4459
+ items: {
4460
+ $ref: "#/components/schemas/ShippingLine"
4461
+ },
4462
+ type: "array",
4463
+ title: "Lines"
4464
+ }
4465
+ },
4466
+ type: "object",
4467
+ required: [
4468
+ "enabled",
4469
+ "fee_inc_btw",
4470
+ "fee_ex_btw",
4471
+ "fee_btw",
4472
+ "free_shipping_applied",
4473
+ "lines"
4474
+ ],
4475
+ title: "ShippingCalculation"
4476
+ };
4477
+ var $ShippingLine = {
4478
+ properties: {
4479
+ btw_rate: {
4480
+ type: "number",
4481
+ title: "Btw Rate"
4482
+ },
4483
+ amount_ex_btw: {
4484
+ type: "number",
4485
+ title: "Amount Ex Btw"
4486
+ },
4487
+ amount_inc_btw: {
4488
+ type: "number",
4489
+ title: "Amount Inc Btw"
4490
+ },
4491
+ amount_btw: {
4492
+ type: "number",
4493
+ title: "Amount Btw"
4494
+ }
4495
+ },
4496
+ type: "object",
4497
+ required: ["btw_rate", "amount_ex_btw", "amount_inc_btw", "amount_btw"],
4498
+ title: "ShippingLine"
4499
+ };
4176
4500
  var $ShopCacheStatus = {
4177
4501
  properties: {
4178
4502
  modified_at: {
@@ -4663,6 +4987,36 @@ var $ShopWithPrices = {
4663
4987
  ],
4664
4988
  title: "ShopWithPrices"
4665
4989
  };
4990
+ var $SyncStripeResponse = {
4991
+ properties: {
4992
+ id: {
4993
+ type: "string",
4994
+ format: "uuid",
4995
+ title: "Id"
4996
+ },
4997
+ stripe_customer_id: {
4998
+ type: "string",
4999
+ title: "Stripe Customer Id"
5000
+ },
5001
+ stripe_synced_at: {
5002
+ type: "string",
5003
+ format: "date-time",
5004
+ title: "Stripe Synced At"
5005
+ },
5006
+ stripe_customer: {
5007
+ type: "object",
5008
+ title: "Stripe Customer"
5009
+ }
5010
+ },
5011
+ type: "object",
5012
+ required: [
5013
+ "id",
5014
+ "stripe_customer_id",
5015
+ "stripe_synced_at",
5016
+ "stripe_customer"
5017
+ ],
5018
+ title: "SyncStripeResponse"
5019
+ };
4666
5020
  var $TagCreate = {
4667
5021
  properties: {
4668
5022
  shop_id: {
@@ -5536,6 +5890,86 @@ var getByImproviserUserIdLicensesImproviserImproviserUserIdGet = (data) => {
5536
5890
  }
5537
5891
  });
5538
5892
  };
5893
+ var listAccountsAdminAccountsGet = (data = {}) => {
5894
+ return request(OpenAPI, {
5895
+ method: "GET",
5896
+ url: "/admin/accounts",
5897
+ query: {
5898
+ shop_id: data.shopId,
5899
+ missing_stripe: data.missingStripe,
5900
+ skip: data.skip,
5901
+ limit: data.limit,
5902
+ filter: data.filter,
5903
+ sort: data.sort
5904
+ },
5905
+ errors: {
5906
+ 403: "Not a member of the Admins group",
5907
+ 422: "Validation Error"
5908
+ }
5909
+ });
5910
+ };
5911
+ var getAccountAdminAccountsIdGet = (data) => {
5912
+ return request(OpenAPI, {
5913
+ method: "GET",
5914
+ url: "/admin/accounts/{id}",
5915
+ path: {
5916
+ id: data.id
5917
+ },
5918
+ errors: {
5919
+ 403: "Not a member of the Admins group",
5920
+ 404: "Account not found",
5921
+ 422: "Validation Error"
5922
+ }
5923
+ });
5924
+ };
5925
+ var getStripeCustomerAdminAccountsIdStripeCustomerGet = (data) => {
5926
+ return request(OpenAPI, {
5927
+ method: "GET",
5928
+ url: "/admin/accounts/{id}/stripe-customer",
5929
+ path: {
5930
+ id: data.id
5931
+ },
5932
+ errors: {
5933
+ 400: "Account or shop not configured for Stripe",
5934
+ 403: "Not a member of the Admins group",
5935
+ 404: "Account not found",
5936
+ 422: "Validation Error",
5937
+ 502: "Stripe API error"
5938
+ }
5939
+ });
5940
+ };
5941
+ var syncStripeAdminAccountsIdSyncStripePost = (data) => {
5942
+ return request(OpenAPI, {
5943
+ method: "POST",
5944
+ url: "/admin/accounts/{id}/sync-stripe",
5945
+ path: {
5946
+ id: data.id
5947
+ },
5948
+ errors: {
5949
+ 400: "Account or shop not configured for Stripe",
5950
+ 403: "Not a member of the Admins group",
5951
+ 404: "Account not found",
5952
+ 422: "Validation Error",
5953
+ 502: "Stripe API error"
5954
+ }
5955
+ });
5956
+ };
5957
+ var linkStripeAdminAccountsIdLinkStripePost = (data) => {
5958
+ return request(OpenAPI, {
5959
+ method: "POST",
5960
+ url: "/admin/accounts/{id}/link-stripe",
5961
+ path: {
5962
+ id: data.id
5963
+ },
5964
+ body: data.requestBody,
5965
+ mediaType: "application/json",
5966
+ errors: {
5967
+ 403: "Not a member of the Admins group",
5968
+ 404: "Account not found",
5969
+ 422: "Validation Error"
5970
+ }
5971
+ });
5972
+ };
5539
5973
  var getSignedDownloadLinkDownloadsFileNameGet = (data) => {
5540
5974
  return request(OpenAPI, {
5541
5975
  method: "GET",
@@ -5898,6 +6332,17 @@ var getOrderProductsInStockOrdersStockOrderIdGet = (data) => {
5898
6332
  }
5899
6333
  });
5900
6334
  };
6335
+ var calculateShippingCalculatePost = (data) => {
6336
+ return request(OpenAPI, {
6337
+ method: "POST",
6338
+ url: "/shipping/calculate",
6339
+ body: data.requestBody,
6340
+ mediaType: "application/json",
6341
+ errors: {
6342
+ 422: "Validation Error"
6343
+ }
6344
+ });
6345
+ };
5901
6346
  var getMultiShopsShopIdCategoriesGet = (data) => {
5902
6347
  return request(OpenAPI, {
5903
6348
  method: "GET",
@@ -6972,6 +7417,7 @@ export {
6972
7417
  $AccountCreate,
6973
7418
  $AccountSchema,
6974
7419
  $AccountUpdate,
7420
+ $AdminAccountSchema,
6975
7421
  $AttributeCreate,
6976
7422
  $AttributeOptionCreate,
6977
7423
  $AttributeOptionSchema,
@@ -6998,6 +7444,7 @@ export {
6998
7444
  $ConfigurationLanguages_Input,
6999
7445
  $ConfigurationLanguages_Output,
7000
7446
  $ConfigurationLegal,
7447
+ $ConfigurationShipping,
7001
7448
  $ConfigurationV1_Input,
7002
7449
  $ConfigurationV1_Output,
7003
7450
  $DefaultPrice,
@@ -7012,6 +7459,7 @@ export {
7012
7459
  $LicenseCreate,
7013
7460
  $LicenseSchema,
7014
7461
  $LicenseUpdate,
7462
+ $LinkStripeBody,
7015
7463
  $Msg,
7016
7464
  $OrderBase,
7017
7465
  $OrderCreate,
@@ -7035,6 +7483,9 @@ export {
7035
7483
  $ProductWithAttributes,
7036
7484
  $ProductWithDefaultPrice,
7037
7485
  $ProductWithDetailsAndPrices,
7486
+ $ShippingCalculateRequest,
7487
+ $ShippingCalculation,
7488
+ $ShippingLine,
7038
7489
  $ShopCacheStatus,
7039
7490
  $ShopConfig,
7040
7491
  $ShopConfigUpdate_Input,
@@ -7048,6 +7499,7 @@ export {
7048
7499
  $ShopTypeName,
7049
7500
  $ShopUpdate,
7050
7501
  $ShopWithPrices,
7502
+ $SyncStripeResponse,
7051
7503
  $TagCreate,
7052
7504
  $TagSchema,
7053
7505
  $TagTranslationBase,
@@ -7062,6 +7514,7 @@ export {
7062
7514
  CancelablePromise,
7063
7515
  OpenAPI,
7064
7516
  addNewIpShopsAllowedIpsIdPost,
7517
+ calculateShippingCalculatePost,
7065
7518
  cancelSubscriptionShopsShopIdStripeSubscriptionSubscriptionIdDelete,
7066
7519
  checkOrdersCheckIdsGet,
7067
7520
  createEarlyAccessPost,
@@ -7097,6 +7550,7 @@ export {
7097
7550
  editLicensesIdPut,
7098
7551
  formInfoRequestFormPost,
7099
7552
  formTestFormsPost,
7553
+ getAccountAdminAccountsIdGet,
7100
7554
  getAllowedIpsShopsAllowedIpsIdGet,
7101
7555
  getAvailableAttributesShopsShopIdCategoriesCategoryIdAvailableAttributesGet,
7102
7556
  getByIdFaqIdGet,
@@ -7147,8 +7601,11 @@ export {
7147
7601
  getSignedDownloadLinkDownloadsFileNameGet,
7148
7602
  getSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGet,
7149
7603
  getSignedUrlImagesSignedUrlImageNameGet,
7604
+ getStripeCustomerAdminAccountsIdStripeCustomerGet,
7150
7605
  getUserMeUsersMeGet,
7151
7606
  getWithOptionsShopsShopIdAttributesWithOptionsGet,
7607
+ linkStripeAdminAccountsIdLinkStripePost,
7608
+ listAccountsAdminAccountsGet,
7152
7609
  listOptionsForShopShopsShopIdAttributeOptionsGet,
7153
7610
  listOptionsShopsShopIdAttributesAttributeIdOptionsGet,
7154
7611
  loginAccessTokenLoginAccessTokenPost,
@@ -7170,6 +7627,7 @@ export {
7170
7627
  showAllPendingOrdersPerShopOrdersShopShopIdPendingGet,
7171
7628
  swapShopsShopIdCategoriesCategoryIdSwapPut,
7172
7629
  swapShopsShopIdProductsProductIdSwapPut,
7630
+ syncStripeAdminAccountsIdSyncStripePost,
7173
7631
  testTokenLoginTestTokenPost,
7174
7632
  triggerErrorSentryGet,
7175
7633
  updateConfigShopsConfigIdPut,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopvirge/shopvirge-client",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },