@sp-api-sdk/application-management-api-2023-11-30 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 (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -0
  3. package/dist/cjs/index.js +18 -0
  4. package/dist/cjs/src/api-model/api/applications-api.js +113 -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/error-list.js +15 -0
  11. package/dist/cjs/src/api-model/models/index.js +18 -0
  12. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  13. package/dist/cjs/src/client.js +21 -0
  14. package/dist/es/index.js +2 -0
  15. package/dist/es/src/api-model/api/applications-api.js +103 -0
  16. package/dist/es/src/api-model/api.js +14 -0
  17. package/dist/es/src/api-model/base.js +58 -0
  18. package/dist/es/src/api-model/common.js +133 -0
  19. package/dist/es/src/api-model/configuration.js +87 -0
  20. package/dist/es/src/api-model/index.js +16 -0
  21. package/dist/es/src/api-model/models/error-list.js +14 -0
  22. package/dist/es/src/api-model/models/index.js +2 -0
  23. package/dist/es/src/api-model/models/model-error.js +14 -0
  24. package/dist/es/src/client.js +17 -0
  25. package/dist/types/index.d.ts +2 -0
  26. package/dist/types/src/api-model/api/applications-api.d.ts +66 -0
  27. package/dist/types/src/api-model/api.d.ts +12 -0
  28. package/dist/types/src/api-model/base.d.ts +54 -0
  29. package/dist/types/src/api-model/common.d.ts +66 -0
  30. package/dist/types/src/api-model/configuration.d.ts +83 -0
  31. package/dist/types/src/api-model/index.d.ts +14 -0
  32. package/dist/types/src/api-model/models/error-list.d.ts +24 -0
  33. package/dist/types/src/api-model/models/index.d.ts +2 -0
  34. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  35. package/dist/types/src/client.d.ts +6 -0
  36. package/package.json +44 -0
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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>;
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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 interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ baseOptions?: any;
19
+ formDataCtor?: new () => any;
20
+ }
21
+ export declare class Configuration {
22
+ /**
23
+ * parameter for apiKey security
24
+ * @param name security name
25
+ * @memberof Configuration
26
+ */
27
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
+ /**
29
+ * parameter for basic security
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ username?: string;
35
+ /**
36
+ * parameter for basic security
37
+ *
38
+ * @type {string}
39
+ * @memberof Configuration
40
+ */
41
+ password?: string;
42
+ /**
43
+ * parameter for oauth2 security
44
+ * @param name security name
45
+ * @param scopes oauth2 scope
46
+ * @memberof Configuration
47
+ */
48
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
+ /**
50
+ * override base path
51
+ *
52
+ * @type {string}
53
+ * @memberof Configuration
54
+ */
55
+ basePath?: string;
56
+ /**
57
+ * base options for axios calls
58
+ *
59
+ * @type {any}
60
+ * @memberof Configuration
61
+ */
62
+ baseOptions?: any;
63
+ /**
64
+ * The FormData constructor that will be used to create multipart form data
65
+ * requests. You can inject this here so that execution environments that
66
+ * do not support the FormData class can still run the generated client.
67
+ *
68
+ * @type {new () => FormData}
69
+ */
70
+ formDataCtor?: new () => any;
71
+ constructor(param?: ConfigurationParameters);
72
+ /**
73
+ * Check if the given MIME is a JSON MIME.
74
+ * JSON MIME examples:
75
+ * application/json
76
+ * application/json; charset=UTF8
77
+ * APPLICATION/JSON
78
+ * application/vnd.company+json
79
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
+ * @return True if the given MIME is JSON, false otherwise.
81
+ */
82
+ isJsonMime(mime: string): boolean;
83
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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";
13
+ export * from "./configuration";
14
+ export * from "./models";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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
+ /**
13
+ * A list of error responses returned when a request is unsuccessful.
14
+ * @export
15
+ * @interface ErrorList
16
+ */
17
+ export interface ErrorList {
18
+ /**
19
+ * array of errors
20
+ * @type {Array<Error>}
21
+ * @memberof ErrorList
22
+ */
23
+ 'errors': Array<Error>;
24
+ }
@@ -0,0 +1,2 @@
1
+ export * from './error-list';
2
+ export * from './model-error';
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Selling Partner API for Application Management
3
+ * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
4
+ *
5
+ * The version of the OpenAPI document: 2023-11-30
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
+ /**
13
+ * Error response returned when the request is unsuccessful.
14
+ * @export
15
+ * @interface ModelError
16
+ */
17
+ export interface ModelError {
18
+ /**
19
+ * An error code that identifies the type of error that occurred.
20
+ * @type {string}
21
+ * @memberof ModelError
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * A message that describes the error condition.
26
+ * @type {string}
27
+ * @memberof ModelError
28
+ */
29
+ 'message': string;
30
+ /**
31
+ * Additional details that can help the caller understand or fix the issue.
32
+ * @type {string}
33
+ * @memberof ModelError
34
+ */
35
+ 'details'?: string;
36
+ }
@@ -0,0 +1,6 @@
1
+ import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
2
+ import { ApplicationsApi } from './api-model';
3
+ export declare const clientRateLimits: RateLimit[];
4
+ export declare class ApplicationManagementApiClient extends ApplicationsApi {
5
+ constructor(configuration: ClientConfiguration);
6
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@sp-api-sdk/application-management-api-2023-11-30",
3
+ "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
+ "description": "The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.",
5
+ "version": "1.1.0",
6
+ "main": "dist/cjs/index.js",
7
+ "module": "dist/es/index.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "license": "MIT",
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "directories": {
14
+ "lib": "dist"
15
+ },
16
+ "files": [
17
+ "dist/**/*.js",
18
+ "dist/**/*.d.ts"
19
+ ],
20
+ "dependencies": {
21
+ "@sp-api-sdk/common": "2.0.4",
22
+ "axios": "^1.6.2"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/bizon/selling-partner-api-sdk.git",
27
+ "directory": "clients/application-management-api-2023-11-30"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/bizon/selling-partner-api-sdk/issues"
31
+ },
32
+ "homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/application-management-api-2023-11-30",
33
+ "keywords": [
34
+ "amazon",
35
+ "bizon",
36
+ "marketplace web services",
37
+ "mws",
38
+ "selling partner api",
39
+ "sp api",
40
+ "sp sdk",
41
+ "application management api"
42
+ ],
43
+ "gitHead": "96729dd2eabfca855da5eb33f271c0b09b449972"
44
+ }