pipedrive 29.0.0 → 29.2.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.
Files changed (85) hide show
  1. package/dist/esm/versions/v1/models/add-deal-product-request-all-of.d.ts +1 -1
  2. package/dist/esm/versions/v1/models/add-deal-product-request-all-of1.d.ts +1 -1
  3. package/dist/esm/versions/v1/models/add-deal-product-request-all-of2.d.ts +1 -1
  4. package/dist/esm/versions/v1/models/add-or-update-role-setting-request.d.ts +1 -1
  5. package/dist/esm/versions/v1/models/add-product-request-all-of1.d.ts +1 -1
  6. package/dist/esm/versions/v1/models/add-product-request-all-of2.d.ts +1 -1
  7. package/dist/esm/versions/v1/models/add-webhook-request.d.ts +7 -2
  8. package/dist/esm/versions/v1/models/base-deal.d.ts +6 -6
  9. package/dist/esm/versions/v1/models/base-product.d.ts +2 -2
  10. package/dist/esm/versions/v1/models/base-webhook.d.ts +10 -5
  11. package/dist/esm/versions/v1/models/update-deal-product-request-all-of.d.ts +1 -1
  12. package/dist/esm/versions/v1/models/update-product-request-all-of1.d.ts +1 -1
  13. package/dist/esm/versions/v2/api/beta-api.d.ts +220 -16
  14. package/dist/esm/versions/v2/api/beta-api.js +308 -16
  15. package/dist/esm/versions/v2/api/deals-api.d.ts +16 -16
  16. package/dist/esm/versions/v2/api/deals-api.js +16 -16
  17. package/dist/esm/versions/v2/api/products-api.d.ts +204 -0
  18. package/dist/esm/versions/v2/api/products-api.js +292 -0
  19. package/dist/esm/versions/v2/models/add-product-image-response.d.ts +29 -0
  20. package/dist/esm/versions/v2/models/add-product-image-response.js +14 -0
  21. package/dist/esm/versions/v2/models/base-product-all-of1.d.ts +1 -1
  22. package/dist/esm/versions/v2/models/deal-item.d.ts +3 -3
  23. package/dist/esm/versions/v2/models/deal-item1.d.ts +3 -3
  24. package/dist/esm/versions/v2/models/delete-product-image-response-data.d.ts +23 -0
  25. package/dist/esm/versions/v2/models/delete-product-image-response-data.js +14 -0
  26. package/dist/esm/versions/v2/models/delete-product-image-response.d.ts +29 -0
  27. package/dist/esm/versions/v2/models/delete-product-image-response.js +14 -0
  28. package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of1.d.ts +1 -1
  29. package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of2.d.ts +1 -1
  30. package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of3.d.ts +1 -1
  31. package/dist/esm/versions/v2/models/get-product-image-response-data.d.ts +53 -0
  32. package/dist/esm/versions/v2/models/get-product-image-response-data.js +14 -0
  33. package/dist/esm/versions/v2/models/get-product-image-response.d.ts +29 -0
  34. package/dist/esm/versions/v2/models/get-product-image-response.js +14 -0
  35. package/dist/esm/versions/v2/models/index.d.ts +7 -0
  36. package/dist/esm/versions/v2/models/index.js +7 -0
  37. package/dist/esm/versions/v2/models/update-deal-product-request-all-of.d.ts +1 -1
  38. package/dist/esm/versions/v2/models/update-product-image-response-data.d.ts +38 -0
  39. package/dist/esm/versions/v2/models/update-product-image-response-data.js +14 -0
  40. package/dist/esm/versions/v2/models/update-product-image-response.d.ts +29 -0
  41. package/dist/esm/versions/v2/models/update-product-image-response.js +14 -0
  42. package/dist/esm/versions/v2/models/update-product-request-all-of1.d.ts +1 -1
  43. package/dist/versions/v1/models/add-deal-product-request-all-of.d.ts +1 -1
  44. package/dist/versions/v1/models/add-deal-product-request-all-of1.d.ts +1 -1
  45. package/dist/versions/v1/models/add-deal-product-request-all-of2.d.ts +1 -1
  46. package/dist/versions/v1/models/add-or-update-role-setting-request.d.ts +1 -1
  47. package/dist/versions/v1/models/add-product-request-all-of1.d.ts +1 -1
  48. package/dist/versions/v1/models/add-product-request-all-of2.d.ts +1 -1
  49. package/dist/versions/v1/models/add-webhook-request.d.ts +7 -2
  50. package/dist/versions/v1/models/base-deal.d.ts +6 -6
  51. package/dist/versions/v1/models/base-product.d.ts +2 -2
  52. package/dist/versions/v1/models/base-webhook.d.ts +10 -5
  53. package/dist/versions/v1/models/update-deal-product-request-all-of.d.ts +1 -1
  54. package/dist/versions/v1/models/update-product-request-all-of1.d.ts +1 -1
  55. package/dist/versions/v2/api/beta-api.d.ts +220 -16
  56. package/dist/versions/v2/api/beta-api.js +308 -16
  57. package/dist/versions/v2/api/deals-api.d.ts +16 -16
  58. package/dist/versions/v2/api/deals-api.js +16 -16
  59. package/dist/versions/v2/api/products-api.d.ts +204 -0
  60. package/dist/versions/v2/api/products-api.js +292 -0
  61. package/dist/versions/v2/models/add-product-image-response.d.ts +29 -0
  62. package/dist/versions/v2/models/add-product-image-response.js +15 -0
  63. package/dist/versions/v2/models/base-product-all-of1.d.ts +1 -1
  64. package/dist/versions/v2/models/deal-item.d.ts +3 -3
  65. package/dist/versions/v2/models/deal-item1.d.ts +3 -3
  66. package/dist/versions/v2/models/delete-product-image-response-data.d.ts +23 -0
  67. package/dist/versions/v2/models/delete-product-image-response-data.js +15 -0
  68. package/dist/versions/v2/models/delete-product-image-response.d.ts +29 -0
  69. package/dist/versions/v2/models/delete-product-image-response.js +15 -0
  70. package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of1.d.ts +1 -1
  71. package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of2.d.ts +1 -1
  72. package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of3.d.ts +1 -1
  73. package/dist/versions/v2/models/get-product-image-response-data.d.ts +53 -0
  74. package/dist/versions/v2/models/get-product-image-response-data.js +15 -0
  75. package/dist/versions/v2/models/get-product-image-response.d.ts +29 -0
  76. package/dist/versions/v2/models/get-product-image-response.js +15 -0
  77. package/dist/versions/v2/models/index.d.ts +7 -0
  78. package/dist/versions/v2/models/index.js +7 -0
  79. package/dist/versions/v2/models/update-deal-product-request-all-of.d.ts +1 -1
  80. package/dist/versions/v2/models/update-product-image-response-data.d.ts +38 -0
  81. package/dist/versions/v2/models/update-product-image-response-data.js +15 -0
  82. package/dist/versions/v2/models/update-product-image-response.d.ts +29 -0
  83. package/dist/versions/v2/models/update-product-image-response.js +15 -0
  84. package/dist/versions/v2/models/update-product-request-all-of1.d.ts +1 -1
  85. package/package.json +1 -1
@@ -322,7 +322,7 @@ export const DealsApiAxiosParamCreator = function (configuration) {
322
322
  };
323
323
  }),
324
324
  /**
325
- * Removes an installment from a deal. Only available in Advanced and above plans.
325
+ * Removes an installment from a deal. Only available in Growth and above plans.
326
326
  * @summary Delete an installment from a deal
327
327
  * @param {number} id The ID of the deal
328
328
  * @param {number} installment_id The ID of the installment
@@ -848,7 +848,7 @@ export const DealsApiAxiosParamCreator = function (configuration) {
848
848
  };
849
849
  }),
850
850
  /**
851
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
851
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
852
852
  * @summary List installments added to a list of deals
853
853
  * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
854
854
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -937,7 +937,7 @@ export const DealsApiAxiosParamCreator = function (configuration) {
937
937
  };
938
938
  }),
939
939
  /**
940
- * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
940
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
941
941
  * @summary Add an installment to a deal
942
942
  * @param {number} id The ID of the deal
943
943
  * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
@@ -1161,7 +1161,7 @@ export const DealsApiAxiosParamCreator = function (configuration) {
1161
1161
  };
1162
1162
  }),
1163
1163
  /**
1164
- * Edits an installment added to a deal. Only available in Advanced and above plans.
1164
+ * Edits an installment added to a deal. Only available in Growth and above plans.
1165
1165
  * @summary Update an installment added to a deal
1166
1166
  * @param {number} id The ID of the deal
1167
1167
  * @param {number} installment_id The ID of the installment
@@ -1320,7 +1320,7 @@ export const DealsApiFp = function (configuration) {
1320
1320
  });
1321
1321
  },
1322
1322
  /**
1323
- * Removes an installment from a deal. Only available in Advanced and above plans.
1323
+ * Removes an installment from a deal. Only available in Growth and above plans.
1324
1324
  * @summary Delete an installment from a deal
1325
1325
  * @param {number} id The ID of the deal
1326
1326
  * @param {number} installment_id The ID of the installment
@@ -1496,7 +1496,7 @@ export const DealsApiFp = function (configuration) {
1496
1496
  });
1497
1497
  },
1498
1498
  /**
1499
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
1499
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
1500
1500
  * @summary List installments added to a list of deals
1501
1501
  * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
1502
1502
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -1527,7 +1527,7 @@ export const DealsApiFp = function (configuration) {
1527
1527
  });
1528
1528
  },
1529
1529
  /**
1530
- * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
1530
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
1531
1531
  * @summary Add an installment to a deal
1532
1532
  * @param {number} id The ID of the deal
1533
1533
  * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
@@ -1606,7 +1606,7 @@ export const DealsApiFp = function (configuration) {
1606
1606
  });
1607
1607
  },
1608
1608
  /**
1609
- * Edits an installment added to a deal. Only available in Advanced and above plans.
1609
+ * Edits an installment added to a deal. Only available in Growth and above plans.
1610
1610
  * @summary Update an installment added to a deal
1611
1611
  * @param {number} id The ID of the deal
1612
1612
  * @param {number} installment_id The ID of the installment
@@ -1710,7 +1710,7 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
1710
1710
  return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
1711
1711
  },
1712
1712
  /**
1713
- * Removes an installment from a deal. Only available in Advanced and above plans.
1713
+ * Removes an installment from a deal. Only available in Growth and above plans.
1714
1714
  * @summary Delete an installment from a deal
1715
1715
  * @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
1716
1716
 
@@ -1810,7 +1810,7 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
1810
1810
  return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
1811
1811
  },
1812
1812
  /**
1813
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
1813
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
1814
1814
  * @summary List installments added to a list of deals
1815
1815
  * @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
1816
1816
 
@@ -1830,7 +1830,7 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
1830
1830
  return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
1831
1831
  },
1832
1832
  /**
1833
- * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
1833
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
1834
1834
  * @summary Add an installment to a deal
1835
1835
  * @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
1836
1836
 
@@ -1880,7 +1880,7 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
1880
1880
  return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
1881
1881
  },
1882
1882
  /**
1883
- * Edits an installment added to a deal. Only available in Advanced and above plans.
1883
+ * Edits an installment added to a deal. Only available in Growth and above plans.
1884
1884
  * @summary Update an installment added to a deal
1885
1885
  * @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
1886
1886
 
@@ -1987,7 +1987,7 @@ export class DealsApi extends BaseAPI {
1987
1987
  return DealsApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
1988
1988
  }
1989
1989
  /**
1990
- * Removes an installment from a deal. Only available in Advanced and above plans.
1990
+ * Removes an installment from a deal. Only available in Growth and above plans.
1991
1991
  * @summary Delete an installment from a deal
1992
1992
  * @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
1993
1993
 
@@ -2097,7 +2097,7 @@ export class DealsApi extends BaseAPI {
2097
2097
  return DealsApiFp(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
2098
2098
  }
2099
2099
  /**
2100
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
2100
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
2101
2101
  * @summary List installments added to a list of deals
2102
2102
  * @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
2103
2103
 
@@ -2119,7 +2119,7 @@ export class DealsApi extends BaseAPI {
2119
2119
  return DealsApiFp(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
2120
2120
  }
2121
2121
  /**
2122
- * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
2122
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
2123
2123
  * @summary Add an installment to a deal
2124
2124
  * @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
2125
2125
 
@@ -2174,7 +2174,7 @@ export class DealsApi extends BaseAPI {
2174
2174
  return DealsApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
2175
2175
  }
2176
2176
  /**
2177
- * Edits an installment added to a deal. Only available in Advanced and above plans.
2177
+ * Edits an installment added to a deal. Only available in Growth and above plans.
2178
2178
  * @summary Update an installment added to a deal
2179
2179
  * @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
2180
2180
 
@@ -14,18 +14,22 @@ import type { AxiosInstance } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { AddDealFollowerRequest } from '../models';
16
16
  import { AddFollowerResponse } from '../models';
17
+ import { AddProductImageResponse } from '../models';
17
18
  import { AddProductRequest } from '../models';
18
19
  import { AddProductVariationRequest } from '../models';
19
20
  import { DeleteFollowerResponse } from '../models';
21
+ import { DeleteProductImageResponse } from '../models';
20
22
  import { DeleteProductResponse } from '../models';
21
23
  import { DeleteProductVariationResponse } from '../models';
22
24
  import { GetFollowerChangelogsResponse } from '../models';
23
25
  import { GetFollowersResponse } from '../models';
26
+ import { GetProductImageResponse } from '../models';
24
27
  import { GetProductResponse } from '../models';
25
28
  import { GetProductSearchResponse } from '../models';
26
29
  import { GetProductVariationResponse } from '../models';
27
30
  import { GetProductVariationsResponse } from '../models';
28
31
  import { GetProductsResponse } from '../models';
32
+ import { UpdateProductImageResponse } from '../models';
29
33
  import { UpdateProductRequest } from '../models';
30
34
  import { UpdateProductResponse } from '../models';
31
35
  import { UpdateProductVariationRequest } from '../models';
@@ -77,6 +81,14 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
77
81
  * @throws {RequiredError}
78
82
  */
79
83
  deleteProductFollower: (id: number, follower_id: number) => Promise<RequestArgs>;
84
+ /**
85
+ * Deletes the image of a product.
86
+ * @summary Delete an image of a product
87
+ * @param {number} id The ID of the product
88
+
89
+ * @throws {RequiredError}
90
+ */
91
+ deleteProductImage: (id: number) => Promise<RequestArgs>;
80
92
  /**
81
93
  * Deletes a product variation.
82
94
  * @summary Delete a product variation
@@ -114,6 +126,14 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
114
126
  * @throws {RequiredError}
115
127
  */
116
128
  getProductFollowersChangelog: (id: number, limit?: number, cursor?: string) => Promise<RequestArgs>;
129
+ /**
130
+ * Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
131
+ * @summary Get image of a product
132
+ * @param {number} id The ID of the product
133
+
134
+ * @throws {RequiredError}
135
+ */
136
+ getProductImage: (id: number) => Promise<RequestArgs>;
117
137
  /**
118
138
  * Returns data about all product variations.
119
139
  * @summary Get all product variations
@@ -161,6 +181,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
161
181
  * @throws {RequiredError}
162
182
  */
163
183
  updateProduct: (id: number, UpdateProductRequest?: UpdateProductRequest) => Promise<RequestArgs>;
184
+ /**
185
+ * Updates the image of a product.
186
+ * @summary Update an image for a product
187
+ * @param {number} id The ID of the product
188
+ * @param {File} data One image supplied in the multipart/form-data encoding
189
+
190
+ * @throws {RequiredError}
191
+ */
192
+ updateProductImage: (id: number, data: File) => Promise<RequestArgs>;
164
193
  /**
165
194
  * Updates product variation data.
166
195
  * @summary Update a product variation
@@ -171,6 +200,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
171
200
  * @throws {RequiredError}
172
201
  */
173
202
  updateProductVariation: (id: number, product_variation_id: number, UpdateProductVariationRequest?: UpdateProductVariationRequest) => Promise<RequestArgs>;
203
+ /**
204
+ * Uploads an image for a product.
205
+ * @summary Upload an image for a product
206
+ * @param {number} id The ID of the product
207
+ * @param {File} data One image supplied in the multipart/form-data encoding
208
+
209
+ * @throws {RequiredError}
210
+ */
211
+ uploadProductImage: (id: number, data: File) => Promise<RequestArgs>;
174
212
  };
175
213
  /**
176
214
  * ProductsApi - functional programming interface
@@ -220,6 +258,14 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
220
258
  * @throws {RequiredError}
221
259
  */
222
260
  deleteProductFollower(id: number, follower_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFollowerResponse>>;
261
+ /**
262
+ * Deletes the image of a product.
263
+ * @summary Delete an image of a product
264
+ * @param {number} id The ID of the product
265
+
266
+ * @throws {RequiredError}
267
+ */
268
+ deleteProductImage(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteProductImageResponse>>;
223
269
  /**
224
270
  * Deletes a product variation.
225
271
  * @summary Delete a product variation
@@ -257,6 +303,14 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
257
303
  * @throws {RequiredError}
258
304
  */
259
305
  getProductFollowersChangelog(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowerChangelogsResponse>>;
306
+ /**
307
+ * Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
308
+ * @summary Get image of a product
309
+ * @param {number} id The ID of the product
310
+
311
+ * @throws {RequiredError}
312
+ */
313
+ getProductImage(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductImageResponse>>;
260
314
  /**
261
315
  * Returns data about all product variations.
262
316
  * @summary Get all product variations
@@ -304,6 +358,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
304
358
  * @throws {RequiredError}
305
359
  */
306
360
  updateProduct(id: number, UpdateProductRequest?: UpdateProductRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpdateProductResponse>>;
361
+ /**
362
+ * Updates the image of a product.
363
+ * @summary Update an image for a product
364
+ * @param {number} id The ID of the product
365
+ * @param {File} data One image supplied in the multipart/form-data encoding
366
+
367
+ * @throws {RequiredError}
368
+ */
369
+ updateProductImage(id: number, data: File): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpdateProductImageResponse>>;
307
370
  /**
308
371
  * Updates product variation data.
309
372
  * @summary Update a product variation
@@ -314,6 +377,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
314
377
  * @throws {RequiredError}
315
378
  */
316
379
  updateProductVariation(id: number, product_variation_id: number, UpdateProductVariationRequest?: UpdateProductVariationRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductVariationResponse>>;
380
+ /**
381
+ * Uploads an image for a product.
382
+ * @summary Upload an image for a product
383
+ * @param {number} id The ID of the product
384
+ * @param {File} data One image supplied in the multipart/form-data encoding
385
+
386
+ * @throws {RequiredError}
387
+ */
388
+ uploadProductImage(id: number, data: File): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddProductImageResponse>>;
317
389
  };
318
390
  /**
319
391
  * ProductsApi - factory interface
@@ -360,6 +432,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
360
432
  * @throws {RequiredError}
361
433
  */
362
434
  deleteProductFollower(requestParameters: ProductsApiDeleteProductFollowerRequest): Promise<DeleteFollowerResponse>;
435
+ /**
436
+ * Deletes the image of a product.
437
+ * @summary Delete an image of a product
438
+ * @param {ProductsApiDeleteProductImageRequest} requestParameters Request parameters.
439
+
440
+ * @throws {RequiredError}
441
+ */
442
+ deleteProductImage(requestParameters: ProductsApiDeleteProductImageRequest): Promise<DeleteProductImageResponse>;
363
443
  /**
364
444
  * Deletes a product variation.
365
445
  * @summary Delete a product variation
@@ -392,6 +472,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
392
472
  * @throws {RequiredError}
393
473
  */
394
474
  getProductFollowersChangelog(requestParameters: ProductsApiGetProductFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
475
+ /**
476
+ * Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
477
+ * @summary Get image of a product
478
+ * @param {ProductsApiGetProductImageRequest} requestParameters Request parameters.
479
+
480
+ * @throws {RequiredError}
481
+ */
482
+ getProductImage(requestParameters: ProductsApiGetProductImageRequest): Promise<GetProductImageResponse>;
395
483
  /**
396
484
  * Returns data about all product variations.
397
485
  * @summary Get all product variations
@@ -424,6 +512,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
424
512
  * @throws {RequiredError}
425
513
  */
426
514
  updateProduct(requestParameters: ProductsApiUpdateProductRequest): Promise<UpdateProductResponse>;
515
+ /**
516
+ * Updates the image of a product.
517
+ * @summary Update an image for a product
518
+ * @param {ProductsApiUpdateProductImageRequest} requestParameters Request parameters.
519
+
520
+ * @throws {RequiredError}
521
+ */
522
+ updateProductImage(requestParameters: ProductsApiUpdateProductImageRequest): Promise<UpdateProductImageResponse>;
427
523
  /**
428
524
  * Updates product variation data.
429
525
  * @summary Update a product variation
@@ -432,6 +528,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
432
528
  * @throws {RequiredError}
433
529
  */
434
530
  updateProductVariation(requestParameters: ProductsApiUpdateProductVariationRequest): Promise<GetProductVariationResponse>;
531
+ /**
532
+ * Uploads an image for a product.
533
+ * @summary Upload an image for a product
534
+ * @param {ProductsApiUploadProductImageRequest} requestParameters Request parameters.
535
+
536
+ * @throws {RequiredError}
537
+ */
538
+ uploadProductImage(requestParameters: ProductsApiUploadProductImageRequest): Promise<AddProductImageResponse>;
435
539
  };
436
540
  /**
437
541
  * Request parameters for addProduct operation in ProductsApi.
@@ -516,6 +620,19 @@ export interface ProductsApiDeleteProductFollowerRequest {
516
620
  */
517
621
  readonly follower_id: number;
518
622
  }
623
+ /**
624
+ * Request parameters for deleteProductImage operation in ProductsApi.
625
+ * @export
626
+ * @interface ProductsApiDeleteProductImageRequest
627
+ */
628
+ export interface ProductsApiDeleteProductImageRequest {
629
+ /**
630
+ * The ID of the product
631
+ * @type {number}
632
+ * @memberof ProductsApiDeleteProductImage
633
+ */
634
+ readonly id: number;
635
+ }
519
636
  /**
520
637
  * Request parameters for deleteProductVariation operation in ProductsApi.
521
638
  * @export
@@ -598,6 +715,19 @@ export interface ProductsApiGetProductFollowersChangelogRequest {
598
715
  */
599
716
  readonly cursor?: string;
600
717
  }
718
+ /**
719
+ * Request parameters for getProductImage operation in ProductsApi.
720
+ * @export
721
+ * @interface ProductsApiGetProductImageRequest
722
+ */
723
+ export interface ProductsApiGetProductImageRequest {
724
+ /**
725
+ * The ID of the product
726
+ * @type {number}
727
+ * @memberof ProductsApiGetProductImage
728
+ */
729
+ readonly id: number;
730
+ }
601
731
  /**
602
732
  * Request parameters for getProductVariations operation in ProductsApi.
603
733
  * @export
@@ -740,6 +870,25 @@ export interface ProductsApiUpdateProductRequest {
740
870
  */
741
871
  readonly UpdateProductRequest?: UpdateProductRequest;
742
872
  }
873
+ /**
874
+ * Request parameters for updateProductImage operation in ProductsApi.
875
+ * @export
876
+ * @interface ProductsApiUpdateProductImageRequest
877
+ */
878
+ export interface ProductsApiUpdateProductImageRequest {
879
+ /**
880
+ * The ID of the product
881
+ * @type {number}
882
+ * @memberof ProductsApiUpdateProductImage
883
+ */
884
+ readonly id: number;
885
+ /**
886
+ * One image supplied in the multipart/form-data encoding
887
+ * @type {File}
888
+ * @memberof ProductsApiUpdateProductImage
889
+ */
890
+ readonly data: File;
891
+ }
743
892
  /**
744
893
  * Request parameters for updateProductVariation operation in ProductsApi.
745
894
  * @export
@@ -765,6 +914,25 @@ export interface ProductsApiUpdateProductVariationRequest {
765
914
  */
766
915
  readonly UpdateProductVariationRequest?: UpdateProductVariationRequest;
767
916
  }
917
+ /**
918
+ * Request parameters for uploadProductImage operation in ProductsApi.
919
+ * @export
920
+ * @interface ProductsApiUploadProductImageRequest
921
+ */
922
+ export interface ProductsApiUploadProductImageRequest {
923
+ /**
924
+ * The ID of the product
925
+ * @type {number}
926
+ * @memberof ProductsApiUploadProductImage
927
+ */
928
+ readonly id: number;
929
+ /**
930
+ * One image supplied in the multipart/form-data encoding
931
+ * @type {File}
932
+ * @memberof ProductsApiUploadProductImage
933
+ */
934
+ readonly data: File;
935
+ }
768
936
  /**
769
937
  * ProductsApi - object-oriented interface
770
938
  * @export
@@ -817,6 +985,15 @@ export declare class ProductsApi extends BaseAPI {
817
985
  * @memberof ProductsApi
818
986
  */
819
987
  deleteProductFollower(requestParameters: ProductsApiDeleteProductFollowerRequest): Promise<DeleteFollowerResponse>;
988
+ /**
989
+ * Deletes the image of a product.
990
+ * @summary Delete an image of a product
991
+ * @param {ProductsApiDeleteProductImageRequest} requestParameters Request parameters.
992
+
993
+ * @throws {RequiredError}
994
+ * @memberof ProductsApi
995
+ */
996
+ deleteProductImage(requestParameters: ProductsApiDeleteProductImageRequest): Promise<DeleteProductImageResponse>;
820
997
  /**
821
998
  * Deletes a product variation.
822
999
  * @summary Delete a product variation
@@ -853,6 +1030,15 @@ export declare class ProductsApi extends BaseAPI {
853
1030
  * @memberof ProductsApi
854
1031
  */
855
1032
  getProductFollowersChangelog(requestParameters: ProductsApiGetProductFollowersChangelogRequest): Promise<GetFollowerChangelogsResponse>;
1033
+ /**
1034
+ * Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
1035
+ * @summary Get image of a product
1036
+ * @param {ProductsApiGetProductImageRequest} requestParameters Request parameters.
1037
+
1038
+ * @throws {RequiredError}
1039
+ * @memberof ProductsApi
1040
+ */
1041
+ getProductImage(requestParameters: ProductsApiGetProductImageRequest): Promise<GetProductImageResponse>;
856
1042
  /**
857
1043
  * Returns data about all product variations.
858
1044
  * @summary Get all product variations
@@ -889,6 +1075,15 @@ export declare class ProductsApi extends BaseAPI {
889
1075
  * @memberof ProductsApi
890
1076
  */
891
1077
  updateProduct(requestParameters: ProductsApiUpdateProductRequest): Promise<UpdateProductResponse>;
1078
+ /**
1079
+ * Updates the image of a product.
1080
+ * @summary Update an image for a product
1081
+ * @param {ProductsApiUpdateProductImageRequest} requestParameters Request parameters.
1082
+
1083
+ * @throws {RequiredError}
1084
+ * @memberof ProductsApi
1085
+ */
1086
+ updateProductImage(requestParameters: ProductsApiUpdateProductImageRequest): Promise<UpdateProductImageResponse>;
892
1087
  /**
893
1088
  * Updates product variation data.
894
1089
  * @summary Update a product variation
@@ -898,4 +1093,13 @@ export declare class ProductsApi extends BaseAPI {
898
1093
  * @memberof ProductsApi
899
1094
  */
900
1095
  updateProductVariation(requestParameters: ProductsApiUpdateProductVariationRequest): Promise<GetProductVariationResponse>;
1096
+ /**
1097
+ * Uploads an image for a product.
1098
+ * @summary Upload an image for a product
1099
+ * @param {ProductsApiUploadProductImageRequest} requestParameters Request parameters.
1100
+
1101
+ * @throws {RequiredError}
1102
+ * @memberof ProductsApi
1103
+ */
1104
+ uploadProductImage(requestParameters: ProductsApiUploadProductImageRequest): Promise<AddProductImageResponse>;
901
1105
  }