@shopvirge/shopvirge-client 0.9.0 → 0.9.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.
package/dist/index.js CHANGED
@@ -123,7 +123,7 @@ var OpenAPI = {
123
123
  PASSWORD: void 0,
124
124
  TOKEN: void 0,
125
125
  USERNAME: void 0,
126
- VERSION: "0.9.0",
126
+ VERSION: "0.9.1",
127
127
  WITH_CREDENTIALS: false,
128
128
  interceptors: {
129
129
  request: new Interceptors(),
@@ -2226,11 +2226,91 @@ var $LinkStripeBody = {
2226
2226
  required: ["stripe_customer_id"],
2227
2227
  title: "LinkStripeBody"
2228
2228
  };
2229
+ var $MyShopSchema = {
2230
+ properties: {
2231
+ name: {
2232
+ type: "string",
2233
+ title: "Name"
2234
+ },
2235
+ description: {
2236
+ type: "string",
2237
+ title: "Description"
2238
+ },
2239
+ internal_url: {
2240
+ anyOf: [
2241
+ {
2242
+ type: "string"
2243
+ },
2244
+ {
2245
+ type: "null"
2246
+ }
2247
+ ],
2248
+ title: "Internal Url"
2249
+ },
2250
+ external_url: {
2251
+ anyOf: [
2252
+ {
2253
+ type: "string"
2254
+ },
2255
+ {
2256
+ type: "null"
2257
+ }
2258
+ ],
2259
+ title: "External Url"
2260
+ },
2261
+ vat_standard: {
2262
+ type: "number",
2263
+ title: "Vat Standard"
2264
+ },
2265
+ vat_lower_1: {
2266
+ type: "number",
2267
+ title: "Vat Lower 1"
2268
+ },
2269
+ vat_lower_2: {
2270
+ type: "number",
2271
+ title: "Vat Lower 2"
2272
+ },
2273
+ vat_lower_3: {
2274
+ type: "number",
2275
+ title: "Vat Lower 3"
2276
+ },
2277
+ vat_special: {
2278
+ type: "number",
2279
+ title: "Vat Special"
2280
+ },
2281
+ vat_zero: {
2282
+ type: "number",
2283
+ title: "Vat Zero"
2284
+ },
2285
+ id: {
2286
+ type: "string",
2287
+ format: "uuid",
2288
+ title: "Id"
2289
+ },
2290
+ languages: {
2291
+ $ref: "#/components/schemas/ShopLanguages"
2292
+ }
2293
+ },
2294
+ type: "object",
2295
+ required: [
2296
+ "name",
2297
+ "description",
2298
+ "vat_standard",
2299
+ "vat_lower_1",
2300
+ "vat_lower_2",
2301
+ "vat_lower_3",
2302
+ "vat_special",
2303
+ "vat_zero",
2304
+ "id",
2305
+ "languages"
2306
+ ],
2307
+ title: "MyShopSchema"
2308
+ };
2229
2309
  var $MyShopsResponse = {
2230
2310
  properties: {
2231
2311
  shops: {
2232
2312
  items: {
2233
- $ref: "#/components/schemas/ShopSchema"
2313
+ $ref: "#/components/schemas/MyShopSchema"
2234
2314
  },
2235
2315
  type: "array",
2236
2316
  title: "Shops"
@@ -3289,6 +3369,19 @@ var $ProductCreate = {
3289
3369
  ],
3290
3370
  title: "ProductCreate"
3291
3371
  };
3372
+ var $ProductImageUploadRequest = {
3373
+ properties: {
3374
+ content_type: {
3375
+ type: "string",
3376
+ enum: ["image/png", "image/jpeg", "image/gif", "image/webp"],
3377
+ title: "Content Type",
3378
+ description: "MIME type of the file you are going to upload."
3379
+ }
3380
+ },
3381
+ type: "object",
3382
+ required: ["content_type"],
3383
+ title: "ProductImageUploadRequest"
3384
+ };
3292
3385
  var $ProductResponse = {
3293
3386
  properties: {
3294
3387
  id: {
@@ -5260,6 +5353,55 @@ var $ShippingLine = {
5260
5353
  required: ["btw_rate", "amount_ex_btw", "amount_inc_btw", "amount_btw"],
5261
5354
  title: "ShippingLine"
5262
5355
  };
5356
+ var $ShopAbout = {
5357
+ properties: {
5358
+ name: {
5359
+ type: "string",
5360
+ title: "Name"
5361
+ },
5362
+ main: {
5363
+ $ref: "#/components/schemas/ShopAboutSlot"
5364
+ },
5365
+ alt1: {
5366
+ $ref: "#/components/schemas/ShopAboutSlot"
5367
+ },
5368
+ alt2: {
5369
+ $ref: "#/components/schemas/ShopAboutSlot"
5370
+ }
5371
+ },
5372
+ type: "object",
5373
+ required: ["name", "main", "alt1", "alt2"],
5374
+ title: "ShopAbout",
5375
+ description: 'What a shop says about itself, per translation slot: the markdown of its storefront "About" page.'
5376
+ };
5377
+ var $ShopAboutSlot = {
5378
+ properties: {
5379
+ language_name: {
5380
+ anyOf: [
5381
+ {
5382
+ type: "string"
5383
+ },
5384
+ {
5385
+ type: "null"
5386
+ }
5387
+ ],
5388
+ title: "Language Name"
5389
+ },
5390
+ about: {
5391
+ anyOf: [
5392
+ {
5393
+ type: "string"
5394
+ },
5395
+ {
5396
+ type: "null"
5397
+ }
5398
+ ],
5399
+ title: "About"
5400
+ }
5401
+ },
5402
+ type: "object",
5403
+ title: "ShopAboutSlot"
5404
+ };
5263
5405
  var $ShopCacheStatus = {
5264
5406
  properties: {
5265
5407
  modified_at: {
@@ -5464,6 +5606,53 @@ var $ShopIp = {
5464
5606
  required: ["ip"],
5465
5607
  title: "ShopIp"
5466
5608
  };
5609
+ var $ShopLanguageSlot = {
5610
+ properties: {
5611
+ language_name: {
5612
+ anyOf: [
5613
+ {
5614
+ type: "string"
5615
+ },
5616
+ {
5617
+ type: "null"
5618
+ }
5619
+ ],
5620
+ title: "Language Name"
5621
+ },
5622
+ enabled: {
5623
+ type: "boolean",
5624
+ title: "Enabled",
5625
+ default: true
5626
+ }
5627
+ },
5628
+ type: "object",
5629
+ title: "ShopLanguageSlot"
5630
+ };
5631
+ var $ShopLanguages = {
5632
+ properties: {
5633
+ main: {
5634
+ $ref: "#/components/schemas/ShopLanguageSlot",
5635
+ default: {
5636
+ enabled: true
5637
+ }
5638
+ },
5639
+ alt1: {
5640
+ $ref: "#/components/schemas/ShopLanguageSlot",
5641
+ default: {
5642
+ enabled: false
5643
+ }
5644
+ },
5645
+ alt2: {
5646
+ $ref: "#/components/schemas/ShopLanguageSlot",
5647
+ default: {
5648
+ enabled: false
5649
+ }
5650
+ }
5651
+ },
5652
+ type: "object",
5653
+ title: "ShopLanguages",
5654
+ description: "Which real language each translation slot (`main_*`, `alt1_*`, `alt2_*`) holds in one shop."
5655
+ };
5467
5656
  var $ShopSchema = {
5468
5657
  properties: {
5469
5658
  name: {
@@ -7203,6 +7392,21 @@ var swapShopsShopIdProductsProductIdSwapPut = (data) => {
7203
7392
  }
7204
7393
  });
7205
7394
  };
7395
+ var createProductImageUpload = (data) => {
7396
+ return request(OpenAPI, {
7397
+ method: "POST",
7398
+ url: "/shops/{shop_id}/products/{product_id}/images/upload-url",
7399
+ path: {
7400
+ shop_id: data.shopId,
7401
+ product_id: data.productId
7402
+ },
7403
+ body: data.requestBody,
7404
+ mediaType: "application/json",
7405
+ errors: {
7406
+ 422: "Validation Error"
7407
+ }
7408
+ });
7409
+ };
7206
7410
  var listProductToTags = (data) => {
7207
7411
  return request(OpenAPI, {
7208
7412
  method: "GET",
@@ -7575,6 +7779,18 @@ var listTrashShopsShopIdTrashGet = (data) => {
7575
7779
  }
7576
7780
  });
7577
7781
  };
7782
+ var getShopAbout = (data) => {
7783
+ return request(OpenAPI, {
7784
+ method: "GET",
7785
+ url: "/shops/{shop_id}/about",
7786
+ path: {
7787
+ shop_id: data.shopId
7788
+ },
7789
+ errors: {
7790
+ 422: "Validation Error"
7791
+ }
7792
+ });
7793
+ };
7578
7794
  var listTags = (data) => {
7579
7795
  return request(OpenAPI, {
7580
7796
  method: "GET",
@@ -8380,6 +8596,7 @@ export {
8380
8596
  $LicenseSchema,
8381
8597
  $LicenseUpdate,
8382
8598
  $LinkStripeBody,
8599
+ $MyShopSchema,
8383
8600
  $MyShopsResponse,
8384
8601
  $OrderCreate,
8385
8602
  $OrderCreated,
@@ -8396,6 +8613,7 @@ export {
8396
8613
  $ProductAttributeOptionSelectionReplace,
8397
8614
  $ProductAttributeValueSchema,
8398
8615
  $ProductCreate,
8616
+ $ProductImageUploadRequest,
8399
8617
  $ProductResponse,
8400
8618
  $ProductToTagCreate,
8401
8619
  $ProductToTagSchema,
@@ -8414,12 +8632,16 @@ export {
8414
8632
  $ShippingCalculateRequest,
8415
8633
  $ShippingCalculation,
8416
8634
  $ShippingLine,
8635
+ $ShopAbout,
8636
+ $ShopAboutSlot,
8417
8637
  $ShopCacheStatus,
8418
8638
  $ShopConfig,
8419
8639
  $ShopConfigUpdate_Input,
8420
8640
  $ShopConfigUpdate_Output,
8421
8641
  $ShopCreate,
8422
8642
  $ShopIp,
8643
+ $ShopLanguageSlot,
8644
+ $ShopLanguages,
8423
8645
  $ShopSchema,
8424
8646
  $ShopType,
8425
8647
  $ShopTypeName,
@@ -8453,6 +8675,7 @@ export {
8453
8675
  createOrdersPost,
8454
8676
  createPaymentIntentShopsShopIdStripePost,
8455
8677
  createProduct,
8678
+ createProductImageUpload,
8456
8679
  createProductToTag,
8457
8680
  createShopsPost,
8458
8681
  createShopsShopIdAccountsPost,
@@ -8513,6 +8736,7 @@ export {
8513
8736
  getProductToTagRelationId,
8514
8737
  getProductsShopsShopIdPricesGet,
8515
8738
  getRevision,
8739
+ getShopAbout,
8516
8740
  getSignedDownloadLinkDownloadsFileNameGet,
8517
8741
  getSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGet,
8518
8742
  getSignedUrlImagesSignedUrlImageNameGet,