hostinger-api-sdk 1.30.5 → 1.30.6

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@1.30.5
1
+ ## hostinger-api-sdk@1.30.6
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-api-sdk@1.30.5 --save
8
+ npm install hostinger-api-sdk@1.30.6 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3569,11 +3569,11 @@ export interface EcommerceV1ProductProductImageUploadResource {
3569
3569
  */
3570
3570
  export interface EcommerceV1ProductUploadProductImageRequest {
3571
3571
  /**
3572
- * Raster image file (JPEG, PNG, GIF or WebP), maximum 15MB. SVG is not accepted.
3572
+ * Publicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted.
3573
3573
  * @type {string}
3574
3574
  * @memberof EcommerceV1ProductUploadProductImageRequest
3575
3575
  */
3576
- 'image': string;
3576
+ 'image_url': string;
3577
3577
  /**
3578
3578
  * When true, the image becomes the product\'s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet.
3579
3579
  * @type {boolean}
@@ -19320,7 +19320,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: C
19320
19320
  };
19321
19321
  },
19322
19322
  /**
19323
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19323
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19324
19324
  * @summary Upload and attach a product image
19325
19325
  * @param {string} storeId The ID of the store the product belongs to.
19326
19326
  * @param {string} productId The ID of the product to attach the image to.
@@ -19404,7 +19404,7 @@ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
19404
19404
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19405
19405
  },
19406
19406
  /**
19407
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19407
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19408
19408
  * @summary Upload and attach a product image
19409
19409
  * @param {string} storeId The ID of the store the product belongs to.
19410
19410
  * @param {string} productId The ID of the product to attach the image to.
@@ -19450,7 +19450,7 @@ export const EcommerceProductsApiFactory = function (configuration?: Configurati
19450
19450
  return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
19451
19451
  },
19452
19452
  /**
19453
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19453
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19454
19454
  * @summary Upload and attach a product image
19455
19455
  * @param {string} storeId The ID of the store the product belongs to.
19456
19456
  * @param {string} productId The ID of the product to attach the image to.
@@ -19498,7 +19498,7 @@ export class EcommerceProductsApi extends BaseAPI {
19498
19498
  }
19499
19499
 
19500
19500
  /**
19501
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19501
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19502
19502
  * @summary Upload and attach a product image
19503
19503
  * @param {string} storeId The ID of the store the product belongs to.
19504
19504
  * @param {string} productId The ID of the product to attach the image to.
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.30.5",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.30.6",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3488,11 +3488,11 @@ export interface EcommerceV1ProductProductImageUploadResource {
3488
3488
  */
3489
3489
  export interface EcommerceV1ProductUploadProductImageRequest {
3490
3490
  /**
3491
- * Raster image file (JPEG, PNG, GIF or WebP), maximum 15MB. SVG is not accepted.
3491
+ * Publicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted.
3492
3492
  * @type {string}
3493
3493
  * @memberof EcommerceV1ProductUploadProductImageRequest
3494
3494
  */
3495
- 'image': string;
3495
+ 'image_url': string;
3496
3496
  /**
3497
3497
  * When true, the image becomes the product\'s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet.
3498
3498
  * @type {boolean}
@@ -15217,7 +15217,7 @@ export declare const EcommerceProductsApiAxiosParamCreator: (configuration?: Con
15217
15217
  */
15218
15218
  createPhysicalProductV1: (storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15219
15219
  /**
15220
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15220
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15221
15221
  * @summary Upload and attach a product image
15222
15222
  * @param {string} storeId The ID of the store the product belongs to.
15223
15223
  * @param {string} productId The ID of the product to attach the image to.
@@ -15251,7 +15251,7 @@ export declare const EcommerceProductsApiFp: (configuration?: Configuration) =>
15251
15251
  */
15252
15252
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductCreationResource>>;
15253
15253
  /**
15254
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15254
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15255
15255
  * @summary Upload and attach a product image
15256
15256
  * @param {string} storeId The ID of the store the product belongs to.
15257
15257
  * @param {string} productId The ID of the product to attach the image to.
@@ -15285,7 +15285,7 @@ export declare const EcommerceProductsApiFactory: (configuration?: Configuration
15285
15285
  */
15286
15286
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductCreationResource>;
15287
15287
  /**
15288
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15288
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15289
15289
  * @summary Upload and attach a product image
15290
15290
  * @param {string} storeId The ID of the store the product belongs to.
15291
15291
  * @param {string} productId The ID of the product to attach the image to.
@@ -15323,7 +15323,7 @@ export declare class EcommerceProductsApi extends BaseAPI {
15323
15323
  */
15324
15324
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1ProductProductCreationResource, any, {}, any>>;
15325
15325
  /**
15326
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15326
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15327
15327
  * @summary Upload and attach a product image
15328
15328
  * @param {string} storeId The ID of the store the product belongs to.
15329
15329
  * @param {string} productId The ID of the product to attach the image to.
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.32.4
7
+ * API Version: 1.32.5
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7701,7 +7701,7 @@ const EcommerceProductsApiAxiosParamCreator = function (configuration) {
7701
7701
  };
7702
7702
  }),
7703
7703
  /**
7704
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7704
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7705
7705
  * @summary Upload and attach a product image
7706
7706
  * @param {string} storeId The ID of the store the product belongs to.
7707
7707
  * @param {string} productId The ID of the product to attach the image to.
@@ -7784,7 +7784,7 @@ const EcommerceProductsApiFp = function (configuration) {
7784
7784
  });
7785
7785
  },
7786
7786
  /**
7787
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7787
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7788
7788
  * @summary Upload and attach a product image
7789
7789
  * @param {string} storeId The ID of the store the product belongs to.
7790
7790
  * @param {string} productId The ID of the product to attach the image to.
@@ -7833,7 +7833,7 @@ const EcommerceProductsApiFactory = function (configuration, basePath, axios) {
7833
7833
  return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
7834
7834
  },
7835
7835
  /**
7836
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7836
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7837
7837
  * @summary Upload and attach a product image
7838
7838
  * @param {string} storeId The ID of the store the product belongs to.
7839
7839
  * @param {string} productId The ID of the product to attach the image to.
@@ -7879,7 +7879,7 @@ class EcommerceProductsApi extends base_1.BaseAPI {
7879
7879
  return (0, exports.EcommerceProductsApiFp)(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
7880
7880
  }
7881
7881
  /**
7882
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7882
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7883
7883
  * @summary Upload and attach a product image
7884
7884
  * @param {string} storeId The ID of the store the product belongs to.
7885
7885
  * @param {string} productId The ID of the product to attach the image to.
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.32.4
7
+ * API Version: 1.32.5
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.32.4
7
+ * API Version: 1.32.5
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.32.4
7
+ * API Version: 1.32.5
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.5" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.6" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3488,11 +3488,11 @@ export interface EcommerceV1ProductProductImageUploadResource {
3488
3488
  */
3489
3489
  export interface EcommerceV1ProductUploadProductImageRequest {
3490
3490
  /**
3491
- * Raster image file (JPEG, PNG, GIF or WebP), maximum 15MB. SVG is not accepted.
3491
+ * Publicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted.
3492
3492
  * @type {string}
3493
3493
  * @memberof EcommerceV1ProductUploadProductImageRequest
3494
3494
  */
3495
- 'image': string;
3495
+ 'image_url': string;
3496
3496
  /**
3497
3497
  * When true, the image becomes the product\'s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet.
3498
3498
  * @type {boolean}
@@ -15217,7 +15217,7 @@ export declare const EcommerceProductsApiAxiosParamCreator: (configuration?: Con
15217
15217
  */
15218
15218
  createPhysicalProductV1: (storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15219
15219
  /**
15220
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15220
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15221
15221
  * @summary Upload and attach a product image
15222
15222
  * @param {string} storeId The ID of the store the product belongs to.
15223
15223
  * @param {string} productId The ID of the product to attach the image to.
@@ -15251,7 +15251,7 @@ export declare const EcommerceProductsApiFp: (configuration?: Configuration) =>
15251
15251
  */
15252
15252
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductCreationResource>>;
15253
15253
  /**
15254
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15254
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15255
15255
  * @summary Upload and attach a product image
15256
15256
  * @param {string} storeId The ID of the store the product belongs to.
15257
15257
  * @param {string} productId The ID of the product to attach the image to.
@@ -15285,7 +15285,7 @@ export declare const EcommerceProductsApiFactory: (configuration?: Configuration
15285
15285
  */
15286
15286
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductCreationResource>;
15287
15287
  /**
15288
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15288
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15289
15289
  * @summary Upload and attach a product image
15290
15290
  * @param {string} storeId The ID of the store the product belongs to.
15291
15291
  * @param {string} productId The ID of the product to attach the image to.
@@ -15323,7 +15323,7 @@ export declare class EcommerceProductsApi extends BaseAPI {
15323
15323
  */
15324
15324
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1ProductProductCreationResource, any, {}, any>>;
15325
15325
  /**
15326
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15326
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
15327
15327
  * @summary Upload and attach a product image
15328
15328
  * @param {string} storeId The ID of the store the product belongs to.
15329
15329
  * @param {string} productId The ID of the product to attach the image to.
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7590,7 +7590,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration) {
7590
7590
  };
7591
7591
  }),
7592
7592
  /**
7593
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7593
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7594
7594
  * @summary Upload and attach a product image
7595
7595
  * @param {string} storeId The ID of the store the product belongs to.
7596
7596
  * @param {string} productId The ID of the product to attach the image to.
@@ -7672,7 +7672,7 @@ export const EcommerceProductsApiFp = function (configuration) {
7672
7672
  });
7673
7673
  },
7674
7674
  /**
7675
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7675
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7676
7676
  * @summary Upload and attach a product image
7677
7677
  * @param {string} storeId The ID of the store the product belongs to.
7678
7678
  * @param {string} productId The ID of the product to attach the image to.
@@ -7720,7 +7720,7 @@ export const EcommerceProductsApiFactory = function (configuration, basePath, ax
7720
7720
  return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
7721
7721
  },
7722
7722
  /**
7723
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7723
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7724
7724
  * @summary Upload and attach a product image
7725
7725
  * @param {string} storeId The ID of the store the product belongs to.
7726
7726
  * @param {string} productId The ID of the product to attach the image to.
@@ -7765,7 +7765,7 @@ export class EcommerceProductsApi extends BaseAPI {
7765
7765
  return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
7766
7766
  }
7767
7767
  /**
7768
- * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7768
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
7769
7769
  * @summary Upload and attach a product image
7770
7770
  * @param {string} storeId The ID of the store the product belongs to.
7771
7771
  * @param {string} productId The ID of the product to attach the image to.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.5" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.6" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.32.4
4
+ * API Version: 1.32.5
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.32.4
7
+ * API Version: 1.32.5
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -127,7 +127,7 @@ const { status, data } = await apiInstance.createPhysicalProductV1(
127
127
  # **uploadAndAttachAProductImageV1**
128
128
  > EcommerceV1ProductProductImageUploadResource uploadAndAttachAProductImageV1(ecommerceV1ProductUploadProductImageRequest)
129
129
 
130
- Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
130
+ Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
131
131
 
132
132
  ### Example
133
133
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **image** | **string** | Raster image file (JPEG, PNG, GIF or WebP), maximum 15MB. SVG is not accepted. | [default to undefined]
8
+ **image_url** | **string** | Publicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. | [default to undefined]
9
9
  **is_thumbnail** | **boolean** | When true, the image becomes the product\&#39;s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet. | [optional] [default to undefined]
10
10
 
11
11
  ## Example
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  import { EcommerceV1ProductUploadProductImageRequest } from 'hostinger-api-sdk';
15
15
 
16
16
  const instance: EcommerceV1ProductUploadProductImageRequest = {
17
- image,
17
+ image_url,
18
18
  is_thumbnail,
19
19
  };
20
20
  ```
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.4
6
+ * API Version: 1.32.5
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.30.5",
3
+ "version": "1.30.6",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {