@sp-api-sdk/replenishment-api-2022-11-07 1.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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +103 -0
  3. package/dist/cjs/index.js +18 -0
  4. package/dist/cjs/src/api-model/api/offers-api.js +231 -0
  5. package/dist/cjs/src/api-model/api.js +30 -0
  6. package/dist/cjs/src/api-model/base.js +66 -0
  7. package/dist/cjs/src/api-model/common.js +145 -0
  8. package/dist/cjs/src/api-model/configuration.js +91 -0
  9. package/dist/cjs/src/api-model/index.js +32 -0
  10. package/dist/cjs/src/api-model/models/aggregation-frequency.js +27 -0
  11. package/dist/cjs/src/api-model/models/auto-enrollment-preference.js +25 -0
  12. package/dist/cjs/src/api-model/models/discount-funding.js +15 -0
  13. package/dist/cjs/src/api-model/models/eligibility-status.js +27 -0
  14. package/dist/cjs/src/api-model/models/enrollment-method.js +25 -0
  15. package/dist/cjs/src/api-model/models/error-list.js +15 -0
  16. package/dist/cjs/src/api-model/models/get-selling-partner-metrics-request.js +15 -0
  17. package/dist/cjs/src/api-model/models/get-selling-partner-metrics-response-metric.js +15 -0
  18. package/dist/cjs/src/api-model/models/get-selling-partner-metrics-response.js +15 -0
  19. package/dist/cjs/src/api-model/models/index.js +52 -0
  20. package/dist/cjs/src/api-model/models/list-offer-metrics-request-filters.js +15 -0
  21. package/dist/cjs/src/api-model/models/list-offer-metrics-request-pagination.js +15 -0
  22. package/dist/cjs/src/api-model/models/list-offer-metrics-request-sort.js +15 -0
  23. package/dist/cjs/src/api-model/models/list-offer-metrics-request.js +15 -0
  24. package/dist/cjs/src/api-model/models/list-offer-metrics-response-offer.js +15 -0
  25. package/dist/cjs/src/api-model/models/list-offer-metrics-response.js +15 -0
  26. package/dist/cjs/src/api-model/models/list-offer-metrics-sort-key.js +32 -0
  27. package/dist/cjs/src/api-model/models/list-offers-request-filters.js +15 -0
  28. package/dist/cjs/src/api-model/models/list-offers-request-pagination.js +15 -0
  29. package/dist/cjs/src/api-model/models/list-offers-request-sort.js +15 -0
  30. package/dist/cjs/src/api-model/models/list-offers-request.js +15 -0
  31. package/dist/cjs/src/api-model/models/list-offers-response-offer.js +15 -0
  32. package/dist/cjs/src/api-model/models/list-offers-response.js +15 -0
  33. package/dist/cjs/src/api-model/models/list-offers-sort-key.js +28 -0
  34. package/dist/cjs/src/api-model/models/metric.js +28 -0
  35. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  36. package/dist/cjs/src/api-model/models/offer-program-configuration-preferences.js +15 -0
  37. package/dist/cjs/src/api-model/models/offer-program-configuration-promotions-discount-funding.js +15 -0
  38. package/dist/cjs/src/api-model/models/offer-program-configuration-promotions.js +15 -0
  39. package/dist/cjs/src/api-model/models/offer-program-configuration.js +15 -0
  40. package/dist/cjs/src/api-model/models/pagination-response.js +15 -0
  41. package/dist/cjs/src/api-model/models/preference.js +15 -0
  42. package/dist/cjs/src/api-model/models/program-type.js +24 -0
  43. package/dist/cjs/src/api-model/models/promotion.js +15 -0
  44. package/dist/cjs/src/api-model/models/sort-order.js +25 -0
  45. package/dist/cjs/src/api-model/models/time-interval.js +15 -0
  46. package/dist/cjs/src/api-model/models/time-period-type.js +25 -0
  47. package/dist/cjs/src/client.js +35 -0
  48. package/dist/es/index.js +2 -0
  49. package/dist/es/src/api-model/api/offers-api.js +221 -0
  50. package/dist/es/src/api-model/api.js +14 -0
  51. package/dist/es/src/api-model/base.js +58 -0
  52. package/dist/es/src/api-model/common.js +133 -0
  53. package/dist/es/src/api-model/configuration.js +87 -0
  54. package/dist/es/src/api-model/index.js +16 -0
  55. package/dist/es/src/api-model/models/aggregation-frequency.js +24 -0
  56. package/dist/es/src/api-model/models/auto-enrollment-preference.js +22 -0
  57. package/dist/es/src/api-model/models/discount-funding.js +14 -0
  58. package/dist/es/src/api-model/models/eligibility-status.js +24 -0
  59. package/dist/es/src/api-model/models/enrollment-method.js +22 -0
  60. package/dist/es/src/api-model/models/error-list.js +14 -0
  61. package/dist/es/src/api-model/models/get-selling-partner-metrics-request.js +14 -0
  62. package/dist/es/src/api-model/models/get-selling-partner-metrics-response-metric.js +14 -0
  63. package/dist/es/src/api-model/models/get-selling-partner-metrics-response.js +14 -0
  64. package/dist/es/src/api-model/models/index.js +36 -0
  65. package/dist/es/src/api-model/models/list-offer-metrics-request-filters.js +14 -0
  66. package/dist/es/src/api-model/models/list-offer-metrics-request-pagination.js +14 -0
  67. package/dist/es/src/api-model/models/list-offer-metrics-request-sort.js +14 -0
  68. package/dist/es/src/api-model/models/list-offer-metrics-request.js +14 -0
  69. package/dist/es/src/api-model/models/list-offer-metrics-response-offer.js +14 -0
  70. package/dist/es/src/api-model/models/list-offer-metrics-response.js +14 -0
  71. package/dist/es/src/api-model/models/list-offer-metrics-sort-key.js +29 -0
  72. package/dist/es/src/api-model/models/list-offers-request-filters.js +14 -0
  73. package/dist/es/src/api-model/models/list-offers-request-pagination.js +14 -0
  74. package/dist/es/src/api-model/models/list-offers-request-sort.js +14 -0
  75. package/dist/es/src/api-model/models/list-offers-request.js +14 -0
  76. package/dist/es/src/api-model/models/list-offers-response-offer.js +14 -0
  77. package/dist/es/src/api-model/models/list-offers-response.js +14 -0
  78. package/dist/es/src/api-model/models/list-offers-sort-key.js +25 -0
  79. package/dist/es/src/api-model/models/metric.js +25 -0
  80. package/dist/es/src/api-model/models/model-error.js +14 -0
  81. package/dist/es/src/api-model/models/offer-program-configuration-preferences.js +14 -0
  82. package/dist/es/src/api-model/models/offer-program-configuration-promotions-discount-funding.js +14 -0
  83. package/dist/es/src/api-model/models/offer-program-configuration-promotions.js +14 -0
  84. package/dist/es/src/api-model/models/offer-program-configuration.js +14 -0
  85. package/dist/es/src/api-model/models/pagination-response.js +14 -0
  86. package/dist/es/src/api-model/models/preference.js +14 -0
  87. package/dist/es/src/api-model/models/program-type.js +21 -0
  88. package/dist/es/src/api-model/models/promotion.js +14 -0
  89. package/dist/es/src/api-model/models/sort-order.js +22 -0
  90. package/dist/es/src/api-model/models/time-interval.js +14 -0
  91. package/dist/es/src/api-model/models/time-period-type.js +22 -0
  92. package/dist/es/src/client.js +31 -0
  93. package/dist/types/index.d.ts +2 -0
  94. package/dist/types/src/api-model/api/offers-api.d.ts +172 -0
  95. package/dist/types/src/api-model/api.d.ts +12 -0
  96. package/dist/types/src/api-model/base.d.ts +54 -0
  97. package/dist/types/src/api-model/common.d.ts +66 -0
  98. package/dist/types/src/api-model/configuration.d.ts +83 -0
  99. package/dist/types/src/api-model/index.d.ts +14 -0
  100. package/dist/types/src/api-model/models/aggregation-frequency.d.ts +23 -0
  101. package/dist/types/src/api-model/models/auto-enrollment-preference.d.ts +21 -0
  102. package/dist/types/src/api-model/models/discount-funding.d.ts +24 -0
  103. package/dist/types/src/api-model/models/eligibility-status.d.ts +23 -0
  104. package/dist/types/src/api-model/models/enrollment-method.d.ts +21 -0
  105. package/dist/types/src/api-model/models/error-list.d.ts +24 -0
  106. package/dist/types/src/api-model/models/get-selling-partner-metrics-request.d.ts +59 -0
  107. package/dist/types/src/api-model/models/get-selling-partner-metrics-response-metric.d.ts +67 -0
  108. package/dist/types/src/api-model/models/get-selling-partner-metrics-response.d.ts +25 -0
  109. package/dist/types/src/api-model/models/index.d.ts +36 -0
  110. package/dist/types/src/api-model/models/list-offer-metrics-request-filters.d.ts +58 -0
  111. package/dist/types/src/api-model/models/list-offer-metrics-request-pagination.d.ts +30 -0
  112. package/dist/types/src/api-model/models/list-offer-metrics-request-sort.d.ts +32 -0
  113. package/dist/types/src/api-model/models/list-offer-metrics-request.d.ts +39 -0
  114. package/dist/types/src/api-model/models/list-offer-metrics-response-offer.d.ts +103 -0
  115. package/dist/types/src/api-model/models/list-offer-metrics-response.d.ts +32 -0
  116. package/dist/types/src/api-model/models/list-offer-metrics-sort-key.d.ts +28 -0
  117. package/dist/types/src/api-model/models/list-offers-request-filters.d.ts +64 -0
  118. package/dist/types/src/api-model/models/list-offers-request-pagination.d.ts +30 -0
  119. package/dist/types/src/api-model/models/list-offers-request-sort.d.ts +32 -0
  120. package/dist/types/src/api-model/models/list-offers-request.d.ts +39 -0
  121. package/dist/types/src/api-model/models/list-offers-response-offer.d.ts +63 -0
  122. package/dist/types/src/api-model/models/list-offers-response.d.ts +32 -0
  123. package/dist/types/src/api-model/models/list-offers-sort-key.d.ts +24 -0
  124. package/dist/types/src/api-model/models/metric.d.ts +24 -0
  125. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  126. package/dist/types/src/api-model/models/offer-program-configuration-preferences.d.ts +25 -0
  127. package/dist/types/src/api-model/models/offer-program-configuration-promotions-discount-funding.d.ts +24 -0
  128. package/dist/types/src/api-model/models/offer-program-configuration-promotions.d.ts +43 -0
  129. package/dist/types/src/api-model/models/offer-program-configuration.d.ts +39 -0
  130. package/dist/types/src/api-model/models/pagination-response.d.ts +24 -0
  131. package/dist/types/src/api-model/models/preference.d.ts +25 -0
  132. package/dist/types/src/api-model/models/program-type.d.ts +20 -0
  133. package/dist/types/src/api-model/models/promotion.d.ts +43 -0
  134. package/dist/types/src/api-model/models/sort-order.d.ts +21 -0
  135. package/dist/types/src/api-model/models/time-interval.d.ts +30 -0
  136. package/dist/types/src/api-model/models/time-period-type.d.ts +21 -0
  137. package/dist/types/src/client.d.ts +6 -0
  138. package/package.json +44 -0
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The attribute to use to sort the results.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const ListOffersSortKey = {
20
+ Asin: 'ASIN',
21
+ SellingPartnerFundedBaseDiscountPercentage: 'SELLING_PARTNER_FUNDED_BASE_DISCOUNT_PERCENTAGE',
22
+ SellingPartnerFundedTieredDiscountPercentage: 'SELLING_PARTNER_FUNDED_TIERED_DISCOUNT_PERCENTAGE',
23
+ AmazonFundedBaseDiscountPercentage: 'AMAZON_FUNDED_BASE_DISCOUNT_PERCENTAGE',
24
+ AmazonFundedTieredDiscountPercentage: 'AMAZON_FUNDED_TIERED_DISCOUNT_PERCENTAGE'
25
+ };
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The metric name and description.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const Metric = {
20
+ ShippedSubscriptionUnits: 'SHIPPED_SUBSCRIPTION_UNITS',
21
+ TotalSubscriptionsRevenue: 'TOTAL_SUBSCRIPTIONS_REVENUE',
22
+ ActiveSubscriptions: 'ACTIVE_SUBSCRIPTIONS',
23
+ NotDeliveredDueToOos: 'NOT_DELIVERED_DUE_TO_OOS',
24
+ SubscriberNonSubscriberAverageRevenue: 'SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUE'
25
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,21 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The replenishment program type.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const ProgramType = {
20
+ SubscribeAndSave: 'SUBSCRIBE_AND_SAVE'
21
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The sort order.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const SortOrder = {
20
+ Asc: 'ASC',
21
+ Desc: 'DESC'
22
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Replenishment
5
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
6
+ *
7
+ * The version of the OpenAPI document: 2022-11-07
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The time period type that determines whether the metrics requested are backward-looking (performance) or forward-looking (forecast).
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const TimePeriodType = {
20
+ Performance: 'PERFORMANCE',
21
+ Forecast: 'FORECAST'
22
+ };
@@ -0,0 +1,31 @@
1
+ import { createAxiosInstance } from '@sp-api-sdk/common';
2
+ import { Configuration, OffersApi } from './api-model';
3
+ export const clientRateLimits = [
4
+ {
5
+ method: 'post',
6
+ // eslint-disable-next-line prefer-regex-literals
7
+ urlRegex: new RegExp('^/replenishment/2022-11-07/sellingPartners/metrics/search$'),
8
+ rate: 1,
9
+ burst: 1,
10
+ },
11
+ {
12
+ method: 'post',
13
+ // eslint-disable-next-line prefer-regex-literals
14
+ urlRegex: new RegExp('^/replenishment/2022-11-07/offers/metrics/search$'),
15
+ rate: 1,
16
+ burst: 1,
17
+ },
18
+ {
19
+ method: 'post',
20
+ // eslint-disable-next-line prefer-regex-literals
21
+ urlRegex: new RegExp('^/replenishment/2022-11-07/offers/search$'),
22
+ rate: 1,
23
+ burst: 1,
24
+ },
25
+ ];
26
+ export class ReplenishmentApiClient extends OffersApi {
27
+ constructor(configuration) {
28
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
29
+ super(new Configuration(), endpoint, axios);
30
+ }
31
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/client';
2
+ export * from './src/api-model/models';
@@ -0,0 +1,172 @@
1
+ /**
2
+ * Selling Partner API for Replenishment
3
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
4
+ *
5
+ * The version of the OpenAPI document: 2022-11-07
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetSellingPartnerMetricsRequest } from '../models';
16
+ import { GetSellingPartnerMetricsResponse } from '../models';
17
+ import { ListOfferMetricsRequest } from '../models';
18
+ import { ListOfferMetricsResponse } from '../models';
19
+ import { ListOffersRequest } from '../models';
20
+ import { ListOffersResponse } from '../models';
21
+ /**
22
+ * OffersApi - axios parameter creator
23
+ * @export
24
+ */
25
+ export declare const OffersApiAxiosParamCreator: (configuration?: Configuration) => {
26
+ /**
27
+ * Returns aggregated replenishment program metrics for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
28
+ * @param {GetSellingPartnerMetricsRequest} [body]
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ getSellingPartnerMetrics: (body?: GetSellingPartnerMetricsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ * Returns aggregated replenishment program metrics for a selling partner\'s offers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
35
+ * @param {ListOfferMetricsRequest} [body] The request body for the &#x60;listOfferMetrics&#x60; operation.
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ listOfferMetrics: (body?: ListOfferMetricsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ /**
41
+ * Returns the details of a selling partner\'s replenishment program offers. Note that this operation only supports sellers at this time. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
42
+ * @param {ListOffersRequest} [body]
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listOffers: (body?: ListOffersRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ };
48
+ /**
49
+ * OffersApi - functional programming interface
50
+ * @export
51
+ */
52
+ export declare const OffersApiFp: (configuration?: Configuration) => {
53
+ /**
54
+ * Returns aggregated replenishment program metrics for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
55
+ * @param {GetSellingPartnerMetricsRequest} [body]
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ getSellingPartnerMetrics(body?: GetSellingPartnerMetricsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSellingPartnerMetricsResponse>>;
60
+ /**
61
+ * Returns aggregated replenishment program metrics for a selling partner\'s offers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
62
+ * @param {ListOfferMetricsRequest} [body] The request body for the &#x60;listOfferMetrics&#x60; operation.
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ listOfferMetrics(body?: ListOfferMetricsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOfferMetricsResponse>>;
67
+ /**
68
+ * Returns the details of a selling partner\'s replenishment program offers. Note that this operation only supports sellers at this time. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
69
+ * @param {ListOffersRequest} [body]
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ listOffers(body?: ListOffersRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOffersResponse>>;
74
+ };
75
+ /**
76
+ * OffersApi - factory interface
77
+ * @export
78
+ */
79
+ export declare const OffersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
80
+ /**
81
+ * Returns aggregated replenishment program metrics for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
82
+ * @param {OffersApiGetSellingPartnerMetricsRequest} requestParameters Request parameters.
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ getSellingPartnerMetrics(requestParameters?: OffersApiGetSellingPartnerMetricsRequest, options?: AxiosRequestConfig): AxiosPromise<GetSellingPartnerMetricsResponse>;
87
+ /**
88
+ * Returns aggregated replenishment program metrics for a selling partner\'s offers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
89
+ * @param {OffersApiListOfferMetricsRequest} requestParameters Request parameters.
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ listOfferMetrics(requestParameters?: OffersApiListOfferMetricsRequest, options?: AxiosRequestConfig): AxiosPromise<ListOfferMetricsResponse>;
94
+ /**
95
+ * Returns the details of a selling partner\'s replenishment program offers. Note that this operation only supports sellers at this time. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
96
+ * @param {OffersApiListOffersRequest} requestParameters Request parameters.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ listOffers(requestParameters?: OffersApiListOffersRequest, options?: AxiosRequestConfig): AxiosPromise<ListOffersResponse>;
101
+ };
102
+ /**
103
+ * Request parameters for getSellingPartnerMetrics operation in OffersApi.
104
+ * @export
105
+ * @interface OffersApiGetSellingPartnerMetricsRequest
106
+ */
107
+ export interface OffersApiGetSellingPartnerMetricsRequest {
108
+ /**
109
+ *
110
+ * @type {GetSellingPartnerMetricsRequest}
111
+ * @memberof OffersApiGetSellingPartnerMetrics
112
+ */
113
+ readonly body?: GetSellingPartnerMetricsRequest;
114
+ }
115
+ /**
116
+ * Request parameters for listOfferMetrics operation in OffersApi.
117
+ * @export
118
+ * @interface OffersApiListOfferMetricsRequest
119
+ */
120
+ export interface OffersApiListOfferMetricsRequest {
121
+ /**
122
+ * The request body for the &#x60;listOfferMetrics&#x60; operation.
123
+ * @type {ListOfferMetricsRequest}
124
+ * @memberof OffersApiListOfferMetrics
125
+ */
126
+ readonly body?: ListOfferMetricsRequest;
127
+ }
128
+ /**
129
+ * Request parameters for listOffers operation in OffersApi.
130
+ * @export
131
+ * @interface OffersApiListOffersRequest
132
+ */
133
+ export interface OffersApiListOffersRequest {
134
+ /**
135
+ *
136
+ * @type {ListOffersRequest}
137
+ * @memberof OffersApiListOffers
138
+ */
139
+ readonly body?: ListOffersRequest;
140
+ }
141
+ /**
142
+ * OffersApi - object-oriented interface
143
+ * @export
144
+ * @class OffersApi
145
+ * @extends {BaseAPI}
146
+ */
147
+ export declare class OffersApi extends BaseAPI {
148
+ /**
149
+ * Returns aggregated replenishment program metrics for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
150
+ * @param {OffersApiGetSellingPartnerMetricsRequest} requestParameters Request parameters.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ * @memberof OffersApi
154
+ */
155
+ getSellingPartnerMetrics(requestParameters?: OffersApiGetSellingPartnerMetricsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSellingPartnerMetricsResponse, any>>;
156
+ /**
157
+ * Returns aggregated replenishment program metrics for a selling partner\'s offers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
158
+ * @param {OffersApiListOfferMetricsRequest} requestParameters Request parameters.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ * @memberof OffersApi
162
+ */
163
+ listOfferMetrics(requestParameters?: OffersApiListOfferMetricsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOfferMetricsResponse, any>>;
164
+ /**
165
+ * Returns the details of a selling partner\'s replenishment program offers. Note that this operation only supports sellers at this time. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
166
+ * @param {OffersApiListOffersRequest} requestParameters Request parameters.
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ * @memberof OffersApi
170
+ */
171
+ listOffers(requestParameters?: OffersApiListOffersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOffersResponse, any>>;
172
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Selling Partner API for Replenishment
3
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
4
+ *
5
+ * The version of the OpenAPI document: 2022-11-07
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from './api/offers-api';
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Selling Partner API for Replenishment
3
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
4
+ *
5
+ * The version of the OpenAPI document: 2022-11-07
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: AxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Selling Partner API for Replenishment
3
+ * The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery (automatic or manual) of any replenishable item at a frequency chosen by the customer.
4
+ *
5
+ * The version of the OpenAPI document: 2022-11-07
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /// <reference types="node" />
13
+ import type { Configuration } from "./configuration";
14
+ import type { RequestArgs } from "./base";
15
+ import type { AxiosInstance, AxiosResponse } from 'axios';
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export declare const DUMMY_BASE_URL = "https://example.com";
21
+ /**
22
+ *
23
+ * @throws {RequiredError}
24
+ * @export
25
+ */
26
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
27
+ /**
28
+ *
29
+ * @export
30
+ */
31
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
32
+ /**
33
+ *
34
+ * @export
35
+ */
36
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
37
+ /**
38
+ *
39
+ * @export
40
+ */
41
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
42
+ /**
43
+ *
44
+ * @export
45
+ */
46
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
47
+ /**
48
+ *
49
+ * @export
50
+ */
51
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
52
+ /**
53
+ *
54
+ * @export
55
+ */
56
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
57
+ /**
58
+ *
59
+ * @export
60
+ */
61
+ export declare const toPathString: (url: URL) => string;
62
+ /**
63
+ *
64
+ * @export
65
+ */
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;