pipedrive 28.0.2 → 29.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.
Files changed (91) hide show
  1. package/dist/esm/versions/v1/api/subscriptions-api.d.ts +9 -9
  2. package/dist/esm/versions/v1/api.d.ts +0 -1
  3. package/dist/esm/versions/v1/api.js +0 -1
  4. package/dist/esm/versions/v1/models/add-deal-product-request-all-of.d.ts +1 -1
  5. package/dist/esm/versions/v1/models/add-deal-product-request-all-of1.d.ts +1 -1
  6. package/dist/esm/versions/v1/models/add-deal-product-request-all-of2.d.ts +1 -1
  7. package/dist/esm/versions/v1/models/add-or-update-role-setting-request.d.ts +1 -1
  8. package/dist/esm/versions/v1/models/add-product-request-all-of1.d.ts +1 -1
  9. package/dist/esm/versions/v1/models/add-product-request-all-of2.d.ts +1 -1
  10. package/dist/esm/versions/v1/models/base-deal.d.ts +6 -6
  11. package/dist/esm/versions/v1/models/base-product.d.ts +2 -2
  12. package/dist/esm/versions/v1/models/index.d.ts +0 -11
  13. package/dist/esm/versions/v1/models/index.js +0 -11
  14. package/dist/esm/versions/v1/models/update-deal-product-request-all-of.d.ts +1 -1
  15. package/dist/esm/versions/v1/models/update-product-request-all-of1.d.ts +1 -1
  16. package/dist/esm/versions/v2/api/beta-api.d.ts +220 -16
  17. package/dist/esm/versions/v2/api/beta-api.js +308 -16
  18. package/dist/esm/versions/v2/api/deals-api.d.ts +16 -16
  19. package/dist/esm/versions/v2/api/deals-api.js +16 -16
  20. package/dist/esm/versions/v2/api/products-api.d.ts +204 -0
  21. package/dist/esm/versions/v2/api/products-api.js +292 -0
  22. package/dist/esm/versions/v2/models/add-product-image-response.d.ts +29 -0
  23. package/dist/esm/versions/v2/models/add-product-image-response.js +14 -0
  24. package/dist/esm/versions/v2/models/base-product-all-of1.d.ts +1 -1
  25. package/dist/esm/versions/v2/models/deal-item.d.ts +3 -3
  26. package/dist/esm/versions/v2/models/deal-item1.d.ts +3 -3
  27. package/dist/esm/versions/v2/models/delete-product-image-response-data.d.ts +23 -0
  28. package/dist/esm/versions/v2/models/delete-product-image-response-data.js +14 -0
  29. package/dist/esm/versions/v2/models/delete-product-image-response.d.ts +29 -0
  30. package/dist/esm/versions/v2/models/delete-product-image-response.js +14 -0
  31. package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of1.d.ts +1 -1
  32. package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of2.d.ts +1 -1
  33. package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of3.d.ts +1 -1
  34. package/dist/esm/versions/v2/models/get-product-image-response-data.d.ts +53 -0
  35. package/dist/esm/versions/v2/models/get-product-image-response-data.js +14 -0
  36. package/dist/esm/versions/v2/models/get-product-image-response.d.ts +29 -0
  37. package/dist/esm/versions/v2/models/get-product-image-response.js +14 -0
  38. package/dist/esm/versions/v2/models/index.d.ts +7 -0
  39. package/dist/esm/versions/v2/models/index.js +7 -0
  40. package/dist/esm/versions/v2/models/update-deal-product-request-all-of.d.ts +1 -1
  41. package/dist/esm/versions/v2/models/update-product-image-response-data.d.ts +38 -0
  42. package/dist/esm/versions/v2/models/update-product-image-response-data.js +14 -0
  43. package/dist/esm/versions/v2/models/update-product-image-response.d.ts +29 -0
  44. package/dist/esm/versions/v2/models/update-product-image-response.js +14 -0
  45. package/dist/esm/versions/v2/models/update-product-request-all-of1.d.ts +1 -1
  46. package/dist/versions/v1/api/subscriptions-api.d.ts +9 -9
  47. package/dist/versions/v1/api.d.ts +0 -1
  48. package/dist/versions/v1/api.js +0 -1
  49. package/dist/versions/v1/models/add-deal-product-request-all-of.d.ts +1 -1
  50. package/dist/versions/v1/models/add-deal-product-request-all-of1.d.ts +1 -1
  51. package/dist/versions/v1/models/add-deal-product-request-all-of2.d.ts +1 -1
  52. package/dist/versions/v1/models/add-or-update-role-setting-request.d.ts +1 -1
  53. package/dist/versions/v1/models/add-product-request-all-of1.d.ts +1 -1
  54. package/dist/versions/v1/models/add-product-request-all-of2.d.ts +1 -1
  55. package/dist/versions/v1/models/base-deal.d.ts +6 -6
  56. package/dist/versions/v1/models/base-product.d.ts +2 -2
  57. package/dist/versions/v1/models/index.d.ts +0 -11
  58. package/dist/versions/v1/models/index.js +0 -11
  59. package/dist/versions/v1/models/update-deal-product-request-all-of.d.ts +1 -1
  60. package/dist/versions/v1/models/update-product-request-all-of1.d.ts +1 -1
  61. package/dist/versions/v2/api/beta-api.d.ts +220 -16
  62. package/dist/versions/v2/api/beta-api.js +308 -16
  63. package/dist/versions/v2/api/deals-api.d.ts +16 -16
  64. package/dist/versions/v2/api/deals-api.js +16 -16
  65. package/dist/versions/v2/api/products-api.d.ts +204 -0
  66. package/dist/versions/v2/api/products-api.js +292 -0
  67. package/dist/versions/v2/models/add-product-image-response.d.ts +29 -0
  68. package/dist/versions/v2/models/add-product-image-response.js +15 -0
  69. package/dist/versions/v2/models/base-product-all-of1.d.ts +1 -1
  70. package/dist/versions/v2/models/deal-item.d.ts +3 -3
  71. package/dist/versions/v2/models/deal-item1.d.ts +3 -3
  72. package/dist/versions/v2/models/delete-product-image-response-data.d.ts +23 -0
  73. package/dist/versions/v2/models/delete-product-image-response-data.js +15 -0
  74. package/dist/versions/v2/models/delete-product-image-response.d.ts +29 -0
  75. package/dist/versions/v2/models/delete-product-image-response.js +15 -0
  76. package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of1.d.ts +1 -1
  77. package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of2.d.ts +1 -1
  78. package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of3.d.ts +1 -1
  79. package/dist/versions/v2/models/get-product-image-response-data.d.ts +53 -0
  80. package/dist/versions/v2/models/get-product-image-response-data.js +15 -0
  81. package/dist/versions/v2/models/get-product-image-response.d.ts +29 -0
  82. package/dist/versions/v2/models/get-product-image-response.js +15 -0
  83. package/dist/versions/v2/models/index.d.ts +7 -0
  84. package/dist/versions/v2/models/index.js +7 -0
  85. package/dist/versions/v2/models/update-deal-product-request-all-of.d.ts +1 -1
  86. package/dist/versions/v2/models/update-product-image-response-data.d.ts +38 -0
  87. package/dist/versions/v2/models/update-product-image-response-data.js +15 -0
  88. package/dist/versions/v2/models/update-product-image-response.d.ts +29 -0
  89. package/dist/versions/v2/models/update-product-image-response.js +15 -0
  90. package/dist/versions/v2/models/update-product-request-all-of1.d.ts +1 -1
  91. package/package.json +1 -1
@@ -328,7 +328,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
328
328
  };
329
329
  }),
330
330
  /**
331
- * Removes an installment from a deal. Only available in Advanced and above plans.
331
+ * Removes an installment from a deal. Only available in Growth and above plans.
332
332
  * @summary Delete an installment from a deal
333
333
  * @param {number} id The ID of the deal
334
334
  * @param {number} installment_id The ID of the installment
@@ -854,7 +854,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
854
854
  };
855
855
  }),
856
856
  /**
857
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
857
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
858
858
  * @summary List installments added to a list of deals
859
859
  * @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.
860
860
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -943,7 +943,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
943
943
  };
944
944
  }),
945
945
  /**
946
- * 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.
946
+ * 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.
947
947
  * @summary Add an installment to a deal
948
948
  * @param {number} id The ID of the deal
949
949
  * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
@@ -1167,7 +1167,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
1167
1167
  };
1168
1168
  }),
1169
1169
  /**
1170
- * Edits an installment added to a deal. Only available in Advanced and above plans.
1170
+ * Edits an installment added to a deal. Only available in Growth and above plans.
1171
1171
  * @summary Update an installment added to a deal
1172
1172
  * @param {number} id The ID of the deal
1173
1173
  * @param {number} installment_id The ID of the installment
@@ -1327,7 +1327,7 @@ const DealsApiFp = function (configuration) {
1327
1327
  });
1328
1328
  },
1329
1329
  /**
1330
- * Removes an installment from a deal. Only available in Advanced and above plans.
1330
+ * Removes an installment from a deal. Only available in Growth and above plans.
1331
1331
  * @summary Delete an installment from a deal
1332
1332
  * @param {number} id The ID of the deal
1333
1333
  * @param {number} installment_id The ID of the installment
@@ -1503,7 +1503,7 @@ const DealsApiFp = function (configuration) {
1503
1503
  });
1504
1504
  },
1505
1505
  /**
1506
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
1506
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
1507
1507
  * @summary List installments added to a list of deals
1508
1508
  * @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.
1509
1509
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -1534,7 +1534,7 @@ const DealsApiFp = function (configuration) {
1534
1534
  });
1535
1535
  },
1536
1536
  /**
1537
- * 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.
1537
+ * 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.
1538
1538
  * @summary Add an installment to a deal
1539
1539
  * @param {number} id The ID of the deal
1540
1540
  * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
@@ -1613,7 +1613,7 @@ const DealsApiFp = function (configuration) {
1613
1613
  });
1614
1614
  },
1615
1615
  /**
1616
- * Edits an installment added to a deal. Only available in Advanced and above plans.
1616
+ * Edits an installment added to a deal. Only available in Growth and above plans.
1617
1617
  * @summary Update an installment added to a deal
1618
1618
  * @param {number} id The ID of the deal
1619
1619
  * @param {number} installment_id The ID of the installment
@@ -1718,7 +1718,7 @@ const DealsApiFactory = function (configuration, basePath, axios) {
1718
1718
  return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
1719
1719
  },
1720
1720
  /**
1721
- * Removes an installment from a deal. Only available in Advanced and above plans.
1721
+ * Removes an installment from a deal. Only available in Growth and above plans.
1722
1722
  * @summary Delete an installment from a deal
1723
1723
  * @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
1724
1724
 
@@ -1818,7 +1818,7 @@ const DealsApiFactory = function (configuration, basePath, axios) {
1818
1818
  return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
1819
1819
  },
1820
1820
  /**
1821
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
1821
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
1822
1822
  * @summary List installments added to a list of deals
1823
1823
  * @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
1824
1824
 
@@ -1838,7 +1838,7 @@ const DealsApiFactory = function (configuration, basePath, axios) {
1838
1838
  return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
1839
1839
  },
1840
1840
  /**
1841
- * 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.
1841
+ * 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.
1842
1842
  * @summary Add an installment to a deal
1843
1843
  * @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
1844
1844
 
@@ -1888,7 +1888,7 @@ const DealsApiFactory = function (configuration, basePath, axios) {
1888
1888
  return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
1889
1889
  },
1890
1890
  /**
1891
- * Edits an installment added to a deal. Only available in Advanced and above plans.
1891
+ * Edits an installment added to a deal. Only available in Growth and above plans.
1892
1892
  * @summary Update an installment added to a deal
1893
1893
  * @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
1894
1894
 
@@ -1996,7 +1996,7 @@ class DealsApi extends base_1.BaseAPI {
1996
1996
  return (0, exports.DealsApiFp)(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
1997
1997
  }
1998
1998
  /**
1999
- * Removes an installment from a deal. Only available in Advanced and above plans.
1999
+ * Removes an installment from a deal. Only available in Growth and above plans.
2000
2000
  * @summary Delete an installment from a deal
2001
2001
  * @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
2002
2002
 
@@ -2106,7 +2106,7 @@ class DealsApi extends base_1.BaseAPI {
2106
2106
  return (0, exports.DealsApiFp)(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
2107
2107
  }
2108
2108
  /**
2109
- * Lists installments attached to a list of deals. Only available in Advanced and above plans.
2109
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
2110
2110
  * @summary List installments added to a list of deals
2111
2111
  * @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
2112
2112
 
@@ -2128,7 +2128,7 @@ class DealsApi extends base_1.BaseAPI {
2128
2128
  return (0, exports.DealsApiFp)(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
2129
2129
  }
2130
2130
  /**
2131
- * 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.
2131
+ * 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.
2132
2132
  * @summary Add an installment to a deal
2133
2133
  * @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
2134
2134
 
@@ -2183,7 +2183,7 @@ class DealsApi extends base_1.BaseAPI {
2183
2183
  return (0, exports.DealsApiFp)(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
2184
2184
  }
2185
2185
  /**
2186
- * Edits an installment added to a deal. Only available in Advanced and above plans.
2186
+ * Edits an installment added to a deal. Only available in Growth and above plans.
2187
2187
  * @summary Update an installment added to a deal
2188
2188
  * @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
2189
2189
 
@@ -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
  }