hostinger-api-sdk 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@2.0.0
1
+ ## @hostinger/sdk@2.1.0
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/sdk@2.0.0 --save
8
+ npm install @hostinger/sdk@2.1.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.0.0
6
+ * API Version: 2.1.0
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
@@ -5424,6 +5424,37 @@ export interface EcommerceV1ProductCreatePhysicalProductRequest {
5424
5424
  * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5425
5425
  */
5426
5426
  'currency': string | null;
5427
+ /**
5428
+ *
5429
+ * @type {EcommerceV1ProductCreatePhysicalProductRequestSeoSettings}
5430
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5431
+ */
5432
+ 'seo_settings': EcommerceV1ProductCreatePhysicalProductRequestSeoSettings;
5433
+ }
5434
+ /**
5435
+ * Search-engine settings. Omitted fields are generated from the name and description; a slug already in use gets a numeric suffix. Send at least one field.
5436
+ * @export
5437
+ * @interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5438
+ */
5439
+ export interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings {
5440
+ /**
5441
+ * Search-engine title for the product page.
5442
+ * @type {string}
5443
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5444
+ */
5445
+ 'title': string;
5446
+ /**
5447
+ * Search-engine description for the product page.
5448
+ * @type {string}
5449
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5450
+ */
5451
+ 'description': string;
5452
+ /**
5453
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5454
+ * @type {string}
5455
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5456
+ */
5457
+ 'slug': string;
5427
5458
  }
5428
5459
  /**
5429
5460
  *
@@ -5835,6 +5866,18 @@ export interface EcommerceV1ProductUpdateRequest {
5835
5866
  * @memberof EcommerceV1ProductUpdateRequest
5836
5867
  */
5837
5868
  'status': EcommerceV1ProductUpdateRequestStatusEnum;
5869
+ /**
5870
+ *
5871
+ * @type {EcommerceV1ProductUpdateRequestSeoSettings}
5872
+ * @memberof EcommerceV1ProductUpdateRequest
5873
+ */
5874
+ 'seo_settings': EcommerceV1ProductUpdateRequestSeoSettings;
5875
+ /**
5876
+ *
5877
+ * @type {EcommerceV1ProductUpdateRequestCollectionChanges}
5878
+ * @memberof EcommerceV1ProductUpdateRequest
5879
+ */
5880
+ 'collection_changes': EcommerceV1ProductUpdateRequestCollectionChanges;
5838
5881
  }
5839
5882
 
5840
5883
  export const EcommerceV1ProductUpdateRequestStatusEnum = {
@@ -5845,6 +5888,63 @@ export const EcommerceV1ProductUpdateRequestStatusEnum = {
5845
5888
 
5846
5889
  export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1ProductUpdateRequestStatusEnum[keyof typeof EcommerceV1ProductUpdateRequestStatusEnum];
5847
5890
 
5891
+ /**
5892
+ * Adds the product to or removes it from collections without touching its other collections. Send at least one collection in add or remove.
5893
+ * @export
5894
+ * @interface EcommerceV1ProductUpdateRequestCollectionChanges
5895
+ */
5896
+ export interface EcommerceV1ProductUpdateRequestCollectionChanges {
5897
+ /**
5898
+ * Collections to add the product to. Every id must exist in the store.
5899
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5900
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5901
+ */
5902
+ 'add': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5903
+ /**
5904
+ * Collections to take the product out of. Ids the product is not in are ignored.
5905
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5906
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5907
+ */
5908
+ 'remove': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5909
+ }
5910
+ /**
5911
+ *
5912
+ * @export
5913
+ * @interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5914
+ */
5915
+ export interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner {
5916
+ /**
5917
+ * The collection id.
5918
+ * @type {string}
5919
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5920
+ */
5921
+ 'id': string;
5922
+ }
5923
+ /**
5924
+ * Search-engine settings to change. Send at least one field; omitted fields keep their current values.
5925
+ * @export
5926
+ * @interface EcommerceV1ProductUpdateRequestSeoSettings
5927
+ */
5928
+ export interface EcommerceV1ProductUpdateRequestSeoSettings {
5929
+ /**
5930
+ * Search-engine title for the product page.
5931
+ * @type {string}
5932
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5933
+ */
5934
+ 'title': string;
5935
+ /**
5936
+ * Search-engine description for the product page.
5937
+ * @type {string}
5938
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5939
+ */
5940
+ 'description': string;
5941
+ /**
5942
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5943
+ * @type {string}
5944
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5945
+ */
5946
+ 'slug': string;
5947
+ }
5848
5948
  /**
5849
5949
  *
5850
5950
  * @export
@@ -6506,6 +6606,12 @@ export interface EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner {
6506
6606
  * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6507
6607
  */
6508
6608
  'title': string;
6609
+ /**
6610
+ * The variant SKU.
6611
+ * @type {string}
6612
+ * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6613
+ */
6614
+ 'sku': string;
6509
6615
  /**
6510
6616
  * Units in stock.
6511
6617
  * @type {number}
@@ -28591,7 +28697,7 @@ export const EcommerceProductVariantsApiAxiosParamCreator = function (configurat
28591
28697
  };
28592
28698
  },
28593
28699
  /**
28594
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28700
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28595
28701
  * @summary Update product variants in batch
28596
28702
  * @param {string} storeId The ID of the store that owns the product.
28597
28703
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -28691,7 +28797,7 @@ export const EcommerceProductVariantsApiFp = function(configuration?: Configurat
28691
28797
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28692
28798
  },
28693
28799
  /**
28694
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28800
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28695
28801
  * @summary Update product variants in batch
28696
28802
  * @param {string} storeId The ID of the store that owns the product.
28697
28803
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -28751,7 +28857,7 @@ export const EcommerceProductVariantsApiFactory = function (configuration?: Conf
28751
28857
  return localVarFp.listProductVariantsV1(storeId, productId, page, options).then((request) => request(axios, basePath));
28752
28858
  },
28753
28859
  /**
28754
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28860
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28755
28861
  * @summary Update product variants in batch
28756
28862
  * @param {string} storeId The ID of the store that owns the product.
28757
28863
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -28815,7 +28921,7 @@ export class EcommerceProductVariantsApi extends BaseAPI {
28815
28921
  }
28816
28922
 
28817
28923
  /**
28818
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28924
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
28819
28925
  * @summary Update product variants in batch
28820
28926
  * @param {string} storeId The ID of the store that owns the product.
28821
28927
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -29073,7 +29179,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: C
29073
29179
  };
29074
29180
  },
29075
29181
  /**
29076
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29182
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29077
29183
  * @summary Update a product
29078
29184
  * @param {string} storeId The ID of the store that owns the product.
29079
29185
  * @param {string} productId The ID of the product to update.
@@ -29248,7 +29354,7 @@ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
29248
29354
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29249
29355
  },
29250
29356
  /**
29251
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29357
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29252
29358
  * @summary Update a product
29253
29359
  * @param {string} storeId The ID of the store that owns the product.
29254
29360
  * @param {string} productId The ID of the product to update.
@@ -29345,7 +29451,7 @@ export const EcommerceProductsApiFactory = function (configuration?: Configurati
29345
29451
  return localVarFp.listProductsV1(storeId, productIds, status, q, include, page, options).then((request) => request(axios, basePath));
29346
29452
  },
29347
29453
  /**
29348
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29454
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29349
29455
  * @summary Update a product
29350
29456
  * @param {string} storeId The ID of the store that owns the product.
29351
29457
  * @param {string} productId The ID of the product to update.
@@ -29448,7 +29554,7 @@ export class EcommerceProductsApi extends BaseAPI {
29448
29554
  }
29449
29555
 
29450
29556
  /**
29451
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29557
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
29452
29558
  * @summary Update a product
29453
29559
  * @param {string} storeId The ID of the store that owns the product.
29454
29560
  * @param {string} productId The ID of the product to update.
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.0.0
6
+ * API Version: 2.1.0
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: 2.0.0
6
+ * API Version: 2.1.0
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: 2.0.0
6
+ * API Version: 2.1.0
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/2.0.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.1.0",
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: 2.0.0
4
+ * API Version: 2.1.0
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
@@ -5306,6 +5306,37 @@ export interface EcommerceV1ProductCreatePhysicalProductRequest {
5306
5306
  * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5307
5307
  */
5308
5308
  'currency': string | null;
5309
+ /**
5310
+ *
5311
+ * @type {EcommerceV1ProductCreatePhysicalProductRequestSeoSettings}
5312
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
5313
+ */
5314
+ 'seo_settings': EcommerceV1ProductCreatePhysicalProductRequestSeoSettings;
5315
+ }
5316
+ /**
5317
+ * Search-engine settings. Omitted fields are generated from the name and description; a slug already in use gets a numeric suffix. Send at least one field.
5318
+ * @export
5319
+ * @interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5320
+ */
5321
+ export interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings {
5322
+ /**
5323
+ * Search-engine title for the product page.
5324
+ * @type {string}
5325
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5326
+ */
5327
+ 'title': string;
5328
+ /**
5329
+ * Search-engine description for the product page.
5330
+ * @type {string}
5331
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5332
+ */
5333
+ 'description': string;
5334
+ /**
5335
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5336
+ * @type {string}
5337
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
5338
+ */
5339
+ 'slug': string;
5309
5340
  }
5310
5341
  /**
5311
5342
  *
@@ -5713,6 +5744,18 @@ export interface EcommerceV1ProductUpdateRequest {
5713
5744
  * @memberof EcommerceV1ProductUpdateRequest
5714
5745
  */
5715
5746
  'status': EcommerceV1ProductUpdateRequestStatusEnum;
5747
+ /**
5748
+ *
5749
+ * @type {EcommerceV1ProductUpdateRequestSeoSettings}
5750
+ * @memberof EcommerceV1ProductUpdateRequest
5751
+ */
5752
+ 'seo_settings': EcommerceV1ProductUpdateRequestSeoSettings;
5753
+ /**
5754
+ *
5755
+ * @type {EcommerceV1ProductUpdateRequestCollectionChanges}
5756
+ * @memberof EcommerceV1ProductUpdateRequest
5757
+ */
5758
+ 'collection_changes': EcommerceV1ProductUpdateRequestCollectionChanges;
5716
5759
  }
5717
5760
  export declare const EcommerceV1ProductUpdateRequestStatusEnum: {
5718
5761
  readonly Draft: "draft";
@@ -5720,6 +5763,63 @@ export declare const EcommerceV1ProductUpdateRequestStatusEnum: {
5720
5763
  readonly Archived: "archived";
5721
5764
  };
5722
5765
  export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1ProductUpdateRequestStatusEnum[keyof typeof EcommerceV1ProductUpdateRequestStatusEnum];
5766
+ /**
5767
+ * Adds the product to or removes it from collections without touching its other collections. Send at least one collection in add or remove.
5768
+ * @export
5769
+ * @interface EcommerceV1ProductUpdateRequestCollectionChanges
5770
+ */
5771
+ export interface EcommerceV1ProductUpdateRequestCollectionChanges {
5772
+ /**
5773
+ * Collections to add the product to. Every id must exist in the store.
5774
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5775
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5776
+ */
5777
+ 'add': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5778
+ /**
5779
+ * Collections to take the product out of. Ids the product is not in are ignored.
5780
+ * @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
5781
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChanges
5782
+ */
5783
+ 'remove': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
5784
+ }
5785
+ /**
5786
+ *
5787
+ * @export
5788
+ * @interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5789
+ */
5790
+ export interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner {
5791
+ /**
5792
+ * The collection id.
5793
+ * @type {string}
5794
+ * @memberof EcommerceV1ProductUpdateRequestCollectionChangesAddInner
5795
+ */
5796
+ 'id': string;
5797
+ }
5798
+ /**
5799
+ * Search-engine settings to change. Send at least one field; omitted fields keep their current values.
5800
+ * @export
5801
+ * @interface EcommerceV1ProductUpdateRequestSeoSettings
5802
+ */
5803
+ export interface EcommerceV1ProductUpdateRequestSeoSettings {
5804
+ /**
5805
+ * Search-engine title for the product page.
5806
+ * @type {string}
5807
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5808
+ */
5809
+ 'title': string;
5810
+ /**
5811
+ * Search-engine description for the product page.
5812
+ * @type {string}
5813
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5814
+ */
5815
+ 'description': string;
5816
+ /**
5817
+ * URL slug of the product page. Lowercase letters, digits and dashes.
5818
+ * @type {string}
5819
+ * @memberof EcommerceV1ProductUpdateRequestSeoSettings
5820
+ */
5821
+ 'slug': string;
5822
+ }
5723
5823
  /**
5724
5824
  *
5725
5825
  * @export
@@ -6366,6 +6466,12 @@ export interface EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner {
6366
6466
  * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6367
6467
  */
6368
6468
  'title': string;
6469
+ /**
6470
+ * The variant SKU.
6471
+ * @type {string}
6472
+ * @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
6473
+ */
6474
+ 'sku': string;
6369
6475
  /**
6370
6476
  * Units in stock.
6371
6477
  * @type {number}
@@ -22980,7 +23086,7 @@ export declare const EcommerceProductVariantsApiAxiosParamCreator: (configuratio
22980
23086
  */
22981
23087
  listProductVariantsV1: (storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22982
23088
  /**
22983
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
23089
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
22984
23090
  * @summary Update product variants in batch
22985
23091
  * @param {string} storeId The ID of the store that owns the product.
22986
23092
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23026,7 +23132,7 @@ export declare const EcommerceProductVariantsApiFp: (configuration?: Configurati
23026
23132
  */
23027
23133
  listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceListProductVariantsV1200Response>>;
23028
23134
  /**
23029
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
23135
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
23030
23136
  * @summary Update product variants in batch
23031
23137
  * @param {string} storeId The ID of the store that owns the product.
23032
23138
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23072,7 +23178,7 @@ export declare const EcommerceProductVariantsApiFactory: (configuration?: Config
23072
23178
  */
23073
23179
  listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceListProductVariantsV1200Response>;
23074
23180
  /**
23075
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
23181
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
23076
23182
  * @summary Update product variants in batch
23077
23183
  * @param {string} storeId The ID of the store that owns the product.
23078
23184
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23123,7 +23229,7 @@ export declare class EcommerceProductVariantsApi extends BaseAPI {
23123
23229
  */
23124
23230
  listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceListProductVariantsV1200Response, any, {}, any>>;
23125
23231
  /**
23126
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
23232
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
23127
23233
  * @summary Update product variants in batch
23128
23234
  * @param {string} storeId The ID of the store that owns the product.
23129
23235
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -23189,7 +23295,7 @@ export declare const EcommerceProductsApiAxiosParamCreator: (configuration?: Con
23189
23295
  */
23190
23296
  listProductsV1: (storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23191
23297
  /**
23192
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23298
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23193
23299
  * @summary Update a product
23194
23300
  * @param {string} storeId The ID of the store that owns the product.
23195
23301
  * @param {string} productId The ID of the product to update.
@@ -23264,7 +23370,7 @@ export declare const EcommerceProductsApiFp: (configuration?: Configuration) =>
23264
23370
  */
23265
23371
  listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceListProductsV1200Response>>;
23266
23372
  /**
23267
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23373
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23268
23374
  * @summary Update a product
23269
23375
  * @param {string} storeId The ID of the store that owns the product.
23270
23376
  * @param {string} productId The ID of the product to update.
@@ -23339,7 +23445,7 @@ export declare const EcommerceProductsApiFactory: (configuration?: Configuration
23339
23445
  */
23340
23446
  listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceListProductsV1200Response>;
23341
23447
  /**
23342
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23448
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23343
23449
  * @summary Update a product
23344
23450
  * @param {string} storeId The ID of the store that owns the product.
23345
23451
  * @param {string} productId The ID of the product to update.
@@ -23421,7 +23527,7 @@ export declare class EcommerceProductsApi extends BaseAPI {
23421
23527
  */
23422
23528
  listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceListProductsV1200Response, any, {}, any>>;
23423
23529
  /**
23424
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23530
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
23425
23531
  * @summary Update a product
23426
23532
  * @param {string} storeId The ID of the store that owns the product.
23427
23533
  * @param {string} productId The ID of the product to update.
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.0.0
7
+ * API Version: 2.1.0
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
@@ -10774,7 +10774,7 @@ const EcommerceProductVariantsApiAxiosParamCreator = function (configuration) {
10774
10774
  };
10775
10775
  }),
10776
10776
  /**
10777
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
10777
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
10778
10778
  * @summary Update product variants in batch
10779
10779
  * @param {string} storeId The ID of the store that owns the product.
10780
10780
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -10876,7 +10876,7 @@ const EcommerceProductVariantsApiFp = function (configuration) {
10876
10876
  });
10877
10877
  },
10878
10878
  /**
10879
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
10879
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
10880
10880
  * @summary Update product variants in batch
10881
10881
  * @param {string} storeId The ID of the store that owns the product.
10882
10882
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -10939,7 +10939,7 @@ const EcommerceProductVariantsApiFactory = function (configuration, basePath, ax
10939
10939
  return localVarFp.listProductVariantsV1(storeId, productId, page, options).then((request) => request(axios, basePath));
10940
10940
  },
10941
10941
  /**
10942
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
10942
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
10943
10943
  * @summary Update product variants in batch
10944
10944
  * @param {string} storeId The ID of the store that owns the product.
10945
10945
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -11000,7 +11000,7 @@ class EcommerceProductVariantsApi extends base_1.BaseAPI {
11000
11000
  return (0, exports.EcommerceProductVariantsApiFp)(this.configuration).listProductVariantsV1(storeId, productId, page, options).then((request) => request(this.axios, this.basePath));
11001
11001
  }
11002
11002
  /**
11003
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
11003
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
11004
11004
  * @summary Update product variants in batch
11005
11005
  * @param {string} storeId The ID of the store that owns the product.
11006
11006
  * @param {string} productId The ID of the product whose variants are being updated.
@@ -11219,7 +11219,7 @@ const EcommerceProductsApiAxiosParamCreator = function (configuration) {
11219
11219
  };
11220
11220
  }),
11221
11221
  /**
11222
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11222
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11223
11223
  * @summary Update a product
11224
11224
  * @param {string} storeId The ID of the store that owns the product.
11225
11225
  * @param {string} productId The ID of the product to update.
@@ -11395,7 +11395,7 @@ const EcommerceProductsApiFp = function (configuration) {
11395
11395
  });
11396
11396
  },
11397
11397
  /**
11398
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11398
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11399
11399
  * @summary Update a product
11400
11400
  * @param {string} storeId The ID of the store that owns the product.
11401
11401
  * @param {string} productId The ID of the product to update.
@@ -11498,7 +11498,7 @@ const EcommerceProductsApiFactory = function (configuration, basePath, axios) {
11498
11498
  return localVarFp.listProductsV1(storeId, productIds, status, q, include, page, options).then((request) => request(axios, basePath));
11499
11499
  },
11500
11500
  /**
11501
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11501
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11502
11502
  * @summary Update a product
11503
11503
  * @param {string} storeId The ID of the store that owns the product.
11504
11504
  * @param {string} productId The ID of the product to update.
@@ -11596,7 +11596,7 @@ class EcommerceProductsApi extends base_1.BaseAPI {
11596
11596
  return (0, exports.EcommerceProductsApiFp)(this.configuration).listProductsV1(storeId, productIds, status, q, include, page, options).then((request) => request(this.axios, this.basePath));
11597
11597
  }
11598
11598
  /**
11599
- * Update a product\'s name, description or status. Set status to published to make it buyable, draft to hide it, or archived to retire it. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11599
+ * Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
11600
11600
  * @summary Update a product
11601
11601
  * @param {string} storeId The ID of the store that owns the product.
11602
11602
  * @param {string} productId The ID of the product to update.
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.0.0
4
+ * API Version: 2.1.0
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: 2.0.0
7
+ * API Version: 2.1.0
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: 2.0.0
4
+ * API Version: 2.1.0
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: 2.0.0
7
+ * API Version: 2.1.0
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: 2.0.0
4
+ * API Version: 2.1.0
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: 2.0.0
7
+ * API Version: 2.1.0
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/2.0.0" }, (_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/2.1.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**