@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1 4.0.17 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.cjs +314 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +391 -0
- package/dist/index.d.ts +391 -0
- package/dist/index.js +272 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/vendor-direct-fulfillment-inventory-api.js +0 -122
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/index.js +0 -24
- package/dist/cjs/api-model/models/inventory-update.js +0 -15
- package/dist/cjs/api-model/models/item-details.js +0 -15
- package/dist/cjs/api-model/models/item-quantity.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/party-identification.js +0 -15
- package/dist/cjs/api-model/models/submit-inventory-update-request.js +0 -15
- package/dist/cjs/api-model/models/submit-inventory-update-response.js +0 -15
- package/dist/cjs/api-model/models/transaction-reference.js +0 -15
- package/dist/cjs/client.js +0 -21
- package/dist/cjs/index.js +0 -18
- package/dist/es/api-model/api/vendor-direct-fulfillment-inventory-api.js +0 -112
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/index.js +0 -8
- package/dist/es/api-model/models/inventory-update.js +0 -14
- package/dist/es/api-model/models/item-details.js +0 -14
- package/dist/es/api-model/models/item-quantity.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/party-identification.js +0 -14
- package/dist/es/api-model/models/submit-inventory-update-request.js +0 -14
- package/dist/es/api-model/models/submit-inventory-update-response.js +0 -14
- package/dist/es/api-model/models/transaction-reference.js +0 -14
- package/dist/es/client.js +0 -17
- package/dist/es/index.js +0 -2
- package/dist/types/api-model/api/vendor-direct-fulfillment-inventory-api.d.ts +0 -80
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/index.d.ts +0 -8
- package/dist/types/api-model/models/inventory-update.d.ts +0 -27
- package/dist/types/api-model/models/item-details.d.ts +0 -30
- package/dist/types/api-model/models/item-quantity.d.ts +0 -24
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/party-identification.d.ts +0 -20
- package/dist/types/api-model/models/submit-inventory-update-request.d.ts +0 -18
- package/dist/types/api-model/models/submit-inventory-update-response.d.ts +0 -22
- package/dist/types/api-model/models/transaction-reference.d.ts +0 -20
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1`
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1)
|
|
4
4
|
[](https://github.com/xojs/xo)
|
|
@@ -25,10 +25,10 @@ npm install @sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1
|
|
|
25
25
|
import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
|
|
26
26
|
import {VendorDirectFulfillmentInventoryApiClient} from '@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1'
|
|
27
27
|
|
|
28
|
+
// `clientId` and `clientSecret` default to the `LWA_CLIENT_ID` and
|
|
29
|
+
// `LWA_CLIENT_SECRET` environment variables.
|
|
28
30
|
const auth = new SellingPartnerApiAuth({
|
|
29
|
-
|
|
30
|
-
clientSecret: process.env.LWA_CLIENT_SECRET,
|
|
31
|
-
refreshToken: 'Atzr|…',
|
|
31
|
+
refreshToken: await getRefreshTokenForSeller(sellerId),
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
const client = new VendorDirectFulfillmentInventoryApiClient({
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
VendorDirectFulfillmentInventoryApi: () => VendorDirectFulfillmentInventoryApi,
|
|
34
|
+
VendorDirectFulfillmentInventoryApiAxiosParamCreator: () => VendorDirectFulfillmentInventoryApiAxiosParamCreator,
|
|
35
|
+
VendorDirectFulfillmentInventoryApiClient: () => VendorDirectFulfillmentInventoryApiClient,
|
|
36
|
+
VendorDirectFulfillmentInventoryApiFactory: () => VendorDirectFulfillmentInventoryApiFactory,
|
|
37
|
+
VendorDirectFulfillmentInventoryApiFp: () => VendorDirectFulfillmentInventoryApiFp,
|
|
38
|
+
clientRateLimits: () => clientRateLimits
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(index_exports);
|
|
41
|
+
|
|
42
|
+
// src/client.ts
|
|
43
|
+
var import_common2 = require("@sp-api-sdk/common");
|
|
44
|
+
|
|
45
|
+
// src/api-model/api/vendor-direct-fulfillment-inventory-api.ts
|
|
46
|
+
var import_axios2 = __toESM(require("axios"), 1);
|
|
47
|
+
|
|
48
|
+
// src/api-model/base.ts
|
|
49
|
+
var import_axios = __toESM(require("axios"), 1);
|
|
50
|
+
var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
51
|
+
var BaseAPI = class {
|
|
52
|
+
constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
|
|
53
|
+
this.basePath = basePath;
|
|
54
|
+
this.axios = axios;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
this.configuration = configuration;
|
|
57
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
basePath;
|
|
61
|
+
axios;
|
|
62
|
+
configuration;
|
|
63
|
+
};
|
|
64
|
+
var RequiredError = class extends Error {
|
|
65
|
+
constructor(field, msg) {
|
|
66
|
+
super(msg);
|
|
67
|
+
this.field = field;
|
|
68
|
+
this.name = "RequiredError";
|
|
69
|
+
}
|
|
70
|
+
field;
|
|
71
|
+
};
|
|
72
|
+
var operationServerMap = {};
|
|
73
|
+
|
|
74
|
+
// src/api-model/common.ts
|
|
75
|
+
var DUMMY_BASE_URL = "https://example.com";
|
|
76
|
+
var assertParamExists = function(functionName, paramName, paramValue) {
|
|
77
|
+
if (paramValue === null || paramValue === void 0) {
|
|
78
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
82
|
+
if (parameter == null) return;
|
|
83
|
+
if (typeof parameter === "object") {
|
|
84
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
85
|
+
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
86
|
+
} else {
|
|
87
|
+
Object.keys(parameter).forEach(
|
|
88
|
+
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
} else {
|
|
92
|
+
if (urlSearchParams.has(key)) {
|
|
93
|
+
urlSearchParams.append(key, parameter);
|
|
94
|
+
} else {
|
|
95
|
+
urlSearchParams.set(key, parameter);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
var setSearchParams = function(url, ...objects) {
|
|
100
|
+
const searchParams = new URLSearchParams(url.search);
|
|
101
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
102
|
+
url.search = searchParams.toString();
|
|
103
|
+
};
|
|
104
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
105
|
+
if (value instanceof Set) {
|
|
106
|
+
return Array.from(value);
|
|
107
|
+
} else {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
112
|
+
const nonString = typeof value !== "string";
|
|
113
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
114
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
115
|
+
};
|
|
116
|
+
var toPathString = function(url) {
|
|
117
|
+
return url.pathname + url.search + url.hash;
|
|
118
|
+
};
|
|
119
|
+
var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
|
|
120
|
+
return (axios = globalAxios3, basePath = BASE_PATH2) => {
|
|
121
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
122
|
+
return axios.request(axiosRequestArgs);
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// src/api-model/api/vendor-direct-fulfillment-inventory-api.ts
|
|
127
|
+
var VendorDirectFulfillmentInventoryApiAxiosParamCreator = function(configuration) {
|
|
128
|
+
return {
|
|
129
|
+
/**
|
|
130
|
+
* Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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).
|
|
131
|
+
* @param {string} warehouseId Identifier for the warehouse for which to update inventory.
|
|
132
|
+
* @param {SubmitInventoryUpdateRequest} body The request body containing the inventory update data to submit.
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
submitInventoryUpdate: async (warehouseId, body, options = {}) => {
|
|
137
|
+
assertParamExists("submitInventoryUpdate", "warehouseId", warehouseId);
|
|
138
|
+
assertParamExists("submitInventoryUpdate", "body", body);
|
|
139
|
+
const localVarPath = `/vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items`.replace("{warehouseId}", encodeURIComponent(String(warehouseId)));
|
|
140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
141
|
+
let baseOptions;
|
|
142
|
+
if (configuration) {
|
|
143
|
+
baseOptions = configuration.baseOptions;
|
|
144
|
+
}
|
|
145
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
146
|
+
const localVarHeaderParameter = {};
|
|
147
|
+
const localVarQueryParameter = {};
|
|
148
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
149
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
153
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
154
|
+
return {
|
|
155
|
+
url: toPathString(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
var VendorDirectFulfillmentInventoryApiFp = function(configuration) {
|
|
162
|
+
const localVarAxiosParamCreator = VendorDirectFulfillmentInventoryApiAxiosParamCreator(configuration);
|
|
163
|
+
return {
|
|
164
|
+
/**
|
|
165
|
+
* Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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 {string} warehouseId Identifier for the warehouse for which to update inventory.
|
|
167
|
+
* @param {SubmitInventoryUpdateRequest} body The request body containing the inventory update data to submit.
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
async submitInventoryUpdate(warehouseId, body, options) {
|
|
172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitInventoryUpdate(warehouseId, body, options);
|
|
173
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
174
|
+
const localVarOperationServerBasePath = operationServerMap["VendorDirectFulfillmentInventoryApi.submitInventoryUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
175
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
var VendorDirectFulfillmentInventoryApiFactory = function(configuration, basePath, axios) {
|
|
180
|
+
const localVarFp = VendorDirectFulfillmentInventoryApiFp(configuration);
|
|
181
|
+
return {
|
|
182
|
+
/**
|
|
183
|
+
* Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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).
|
|
184
|
+
* @param {VendorDirectFulfillmentInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
submitInventoryUpdate(requestParameters, options) {
|
|
189
|
+
return localVarFp.submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
var VendorDirectFulfillmentInventoryApi = class extends BaseAPI {
|
|
194
|
+
/**
|
|
195
|
+
* Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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).
|
|
196
|
+
* @param {VendorDirectFulfillmentInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
submitInventoryUpdate(requestParameters, options) {
|
|
201
|
+
return VendorDirectFulfillmentInventoryApiFp(this.configuration).submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
// src/api-model/configuration.ts
|
|
206
|
+
var Configuration = class {
|
|
207
|
+
/**
|
|
208
|
+
* parameter for apiKey security
|
|
209
|
+
* @param name security name
|
|
210
|
+
*/
|
|
211
|
+
apiKey;
|
|
212
|
+
/**
|
|
213
|
+
* parameter for basic security
|
|
214
|
+
*/
|
|
215
|
+
username;
|
|
216
|
+
/**
|
|
217
|
+
* parameter for basic security
|
|
218
|
+
*/
|
|
219
|
+
password;
|
|
220
|
+
/**
|
|
221
|
+
* parameter for oauth2 security
|
|
222
|
+
* @param name security name
|
|
223
|
+
* @param scopes oauth2 scope
|
|
224
|
+
*/
|
|
225
|
+
accessToken;
|
|
226
|
+
/**
|
|
227
|
+
* parameter for aws4 signature security
|
|
228
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
229
|
+
* @param {string} options.region - aws region
|
|
230
|
+
* @param {string} options.service - name of the service.
|
|
231
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
232
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
233
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
234
|
+
* @memberof Configuration
|
|
235
|
+
*/
|
|
236
|
+
awsv4;
|
|
237
|
+
/**
|
|
238
|
+
* override base path
|
|
239
|
+
*/
|
|
240
|
+
basePath;
|
|
241
|
+
/**
|
|
242
|
+
* override server index
|
|
243
|
+
*/
|
|
244
|
+
serverIndex;
|
|
245
|
+
/**
|
|
246
|
+
* base options for axios calls
|
|
247
|
+
*/
|
|
248
|
+
baseOptions;
|
|
249
|
+
/**
|
|
250
|
+
* The FormData constructor that will be used to create multipart form data
|
|
251
|
+
* requests. You can inject this here so that execution environments that
|
|
252
|
+
* do not support the FormData class can still run the generated client.
|
|
253
|
+
*
|
|
254
|
+
* @type {new () => FormData}
|
|
255
|
+
*/
|
|
256
|
+
formDataCtor;
|
|
257
|
+
constructor(param = {}) {
|
|
258
|
+
this.apiKey = param.apiKey;
|
|
259
|
+
this.username = param.username;
|
|
260
|
+
this.password = param.password;
|
|
261
|
+
this.accessToken = param.accessToken;
|
|
262
|
+
this.awsv4 = param.awsv4;
|
|
263
|
+
this.basePath = param.basePath;
|
|
264
|
+
this.serverIndex = param.serverIndex;
|
|
265
|
+
this.baseOptions = {
|
|
266
|
+
...param.baseOptions,
|
|
267
|
+
headers: {
|
|
268
|
+
...param.baseOptions?.headers
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
this.formDataCtor = param.formDataCtor;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Check if the given MIME is a JSON MIME.
|
|
275
|
+
* JSON MIME examples:
|
|
276
|
+
* application/json
|
|
277
|
+
* application/json; charset=UTF8
|
|
278
|
+
* APPLICATION/JSON
|
|
279
|
+
* application/vnd.company+json
|
|
280
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
281
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
282
|
+
*/
|
|
283
|
+
isJsonMime(mime) {
|
|
284
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
285
|
+
return mime !== null && jsonMime.test(mime);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
// src/client.ts
|
|
290
|
+
var clientRateLimits = [
|
|
291
|
+
{
|
|
292
|
+
method: "post",
|
|
293
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
294
|
+
urlRegex: new RegExp("^/vendor/directFulfillment/inventory/v1/warehouses/[^/]*/items$"),
|
|
295
|
+
rate: 10,
|
|
296
|
+
burst: 10
|
|
297
|
+
}
|
|
298
|
+
];
|
|
299
|
+
var VendorDirectFulfillmentInventoryApiClient = class extends VendorDirectFulfillmentInventoryApi {
|
|
300
|
+
constructor(configuration) {
|
|
301
|
+
const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
|
|
302
|
+
super(new Configuration(), endpoint, axios);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
306
|
+
0 && (module.exports = {
|
|
307
|
+
VendorDirectFulfillmentInventoryApi,
|
|
308
|
+
VendorDirectFulfillmentInventoryApiAxiosParamCreator,
|
|
309
|
+
VendorDirectFulfillmentInventoryApiClient,
|
|
310
|
+
VendorDirectFulfillmentInventoryApiFactory,
|
|
311
|
+
VendorDirectFulfillmentInventoryApiFp,
|
|
312
|
+
clientRateLimits
|
|
313
|
+
});
|
|
314
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/client.ts","../src/api-model/api/vendor-direct-fulfillment-inventory-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts"],"sourcesContent":["export * from './client.js'\nexport * from './api-model/api.js'\nexport type * from './api-model/models/index.js'\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, VendorDirectFulfillmentInventoryApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/vendor/directFulfillment/inventory/v1/warehouses/[^/]*/items$'),\n rate: 10,\n burst: 10,\n },\n]\n\nexport class VendorDirectFulfillmentInventoryApiClient extends VendorDirectFulfillmentInventoryApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Direct Fulfillment Inventory Updates\n * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\\'s inventory updates.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { SubmitInventoryUpdateRequest } from '../models/index.js';\n// @ts-ignore\nimport type { SubmitInventoryUpdateResponse } from '../models/index.js';\n/**\n * VendorDirectFulfillmentInventoryApi - axios parameter creator\n */\nexport const VendorDirectFulfillmentInventoryApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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).\n * @param {string} warehouseId Identifier for the warehouse for which to update inventory.\n * @param {SubmitInventoryUpdateRequest} body The request body containing the inventory update data to submit.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n submitInventoryUpdate: async (warehouseId: string, body: SubmitInventoryUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'warehouseId' is not null or undefined\n assertParamExists('submitInventoryUpdate', 'warehouseId', warehouseId)\n // verify required parameter 'body' is not null or undefined\n assertParamExists('submitInventoryUpdate', 'body', body)\n const localVarPath = `/vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items`\n .replace('{warehouseId}', encodeURIComponent(String(warehouseId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * VendorDirectFulfillmentInventoryApi - functional programming interface\n */\nexport const VendorDirectFulfillmentInventoryApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = VendorDirectFulfillmentInventoryApiAxiosParamCreator(configuration)\n return {\n /**\n * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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).\n * @param {string} warehouseId Identifier for the warehouse for which to update inventory.\n * @param {SubmitInventoryUpdateRequest} body The request body containing the inventory update data to submit.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async submitInventoryUpdate(warehouseId: string, body: SubmitInventoryUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitInventoryUpdateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.submitInventoryUpdate(warehouseId, body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentInventoryApi.submitInventoryUpdate']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * VendorDirectFulfillmentInventoryApi - factory interface\n */\nexport const VendorDirectFulfillmentInventoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = VendorDirectFulfillmentInventoryApiFp(configuration)\n return {\n /**\n * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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).\n * @param {VendorDirectFulfillmentInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n submitInventoryUpdate(requestParameters: VendorDirectFulfillmentInventoryApiSubmitInventoryUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitInventoryUpdateResponse> {\n return localVarFp.submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for submitInventoryUpdate operation in VendorDirectFulfillmentInventoryApi.\n */\nexport interface VendorDirectFulfillmentInventoryApiSubmitInventoryUpdateRequest {\n /**\n * Identifier for the warehouse for which to update inventory.\n */\n readonly warehouseId: string\n\n /**\n * The request body containing the inventory update data to submit.\n */\n readonly body: SubmitInventoryUpdateRequest\n}\n\n/**\n * VendorDirectFulfillmentInventoryApi - object-oriented interface\n */\nexport class VendorDirectFulfillmentInventoryApi extends BaseAPI {\n /**\n * Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | 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).\n * @param {VendorDirectFulfillmentInventoryApiSubmitInventoryUpdateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public submitInventoryUpdate(requestParameters: VendorDirectFulfillmentInventoryApiSubmitInventoryUpdateRequest, options?: RawAxiosRequestConfig) {\n return VendorDirectFulfillmentInventoryApiFp(this.configuration).submitInventoryUpdate(requestParameters.warehouseId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Direct Fulfillment Inventory Updates\n * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\\'s inventory updates.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Direct Fulfillment Inventory Updates\n * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\\'s inventory updates.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Direct Fulfillment Inventory Updates\n * The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor\\'s inventory updates.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,iBAA4E;;;ACiB5E,IAAAC,gBAAwB;;;ACExB,mBAAwB;AAEjB,IAAM,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAc9E,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,eAAyC,WAAmB,WAAqB,QAAuB,aAAAC,SAAa;AAA5E;AAAwC;AACzF,QAAI,eAAe;AACf,WAAK,gBAAgB;AACrB,WAAK,WAAW,cAAc,YAAY;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD;AAAA,EAAwC;AAAA,EAFnF;AAQd;AAEO,IAAM,gBAAN,cAA4B,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