fix: Updated definition for SearchItemsResource.

This commit is contained in:
David Ball 2024-07-21 00:14:38 -04:00
parent 5dae789942
commit 86f73e1cbf
3 changed files with 8 additions and 14 deletions

15
package-lock.json generated
View File

@ -1,15 +1,14 @@
{ {
"name": "paapi5-nodejs-sdk", "name": "amazon-pa-api5-node-ts",
"version": "2.1.0", "version": "2.1.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "paapi5-nodejs-sdk", "name": "amazon-pa-api5-node-ts",
"version": "2.1.0", "version": "2.1.5",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"crypto-js": "^4.2.0",
"superagent": "^9.0.0" "superagent": "^9.0.0"
}, },
"devDependencies": { "devDependencies": {
@ -2376,12 +2375,6 @@
"node": ">= 8" "node": ">= 8"
} }
}, },
"node_modules/crypto-js": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==",
"license": "MIT"
},
"node_modules/debug": { "node_modules/debug": {
"version": "4.3.5", "version": "4.3.5",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz",

View File

@ -1,6 +1,6 @@
{ {
"name": "amazon-pa-api5-node-ts", "name": "amazon-pa-api5-node-ts",
"version": "2.1.4", "version": "2.1.5",
"description": "ProductAdvertisingAPI 5.0 NodeJS SDK rewritten in TypeScript.", "description": "ProductAdvertisingAPI 5.0 NodeJS SDK rewritten in TypeScript.",
"license": "Apache-2.0", "license": "Apache-2.0",
"main": "dist/src/index", "main": "dist/src/index",

View File

@ -329,10 +329,11 @@ export const SearchItemsResourceValues = {
"SearchRefinements": "SearchRefinements" "SearchRefinements": "SearchRefinements"
}; };
export class SearchItemsResource { export class SearchItemsResource extends String {
[key: string]: any; [key: string]: any;
public constructor() { public constructor() {
super();
const self = this; const self = this;
Object.keys(SearchItemsResourceValues).forEach((key: string) => self[key] = SearchItemsResourceValues[key]); Object.keys(SearchItemsResourceValues).forEach((key: string) => self[key] = SearchItemsResourceValues[key]);
} }
@ -342,5 +343,5 @@ export class SearchItemsResource {
* @param {Object} data The plain JavaScript object containing the name of the enum value. * @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/SearchItemsResource} The enum <code>SearchItemsResource</code> value. * @return {module:model/SearchItemsResource} The enum <code>SearchItemsResource</code> value.
*/ */
public static constructFromObject(object: any) { return object; } public static constructFromObject(object: string|SearchItemsResource|typeof SearchItemsResourceValues) { return object; }
}; };