@sp-api-sdk/data-kiosk-api-2023-11-15 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.
- package/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/src/api-model/api/queries-api.js +373 -0
- package/dist/cjs/src/api-model/api.js +30 -0
- package/dist/cjs/src/api-model/base.js +66 -0
- package/dist/cjs/src/api-model/common.js +145 -0
- package/dist/cjs/src/api-model/configuration.js +91 -0
- package/dist/cjs/src/api-model/index.js +32 -0
- package/dist/cjs/src/api-model/models/create-query-response.js +15 -0
- package/dist/cjs/src/api-model/models/create-query-specification.js +15 -0
- package/dist/cjs/src/api-model/models/error-list.js +15 -0
- package/dist/cjs/src/api-model/models/get-document-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-queries-response-pagination.js +15 -0
- package/dist/cjs/src/api-model/models/get-queries-response.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +25 -0
- package/dist/cjs/src/api-model/models/model-error.js +15 -0
- package/dist/cjs/src/api-model/models/query-pagination.js +15 -0
- package/dist/cjs/src/api-model/models/query.js +23 -0
- package/dist/cjs/src/client.js +49 -0
- package/dist/es/index.js +2 -0
- package/dist/es/src/api-model/api/queries-api.js +363 -0
- package/dist/es/src/api-model/api.js +14 -0
- package/dist/es/src/api-model/base.js +58 -0
- package/dist/es/src/api-model/common.js +133 -0
- package/dist/es/src/api-model/configuration.js +87 -0
- package/dist/es/src/api-model/index.js +16 -0
- package/dist/es/src/api-model/models/create-query-response.js +14 -0
- package/dist/es/src/api-model/models/create-query-specification.js +14 -0
- package/dist/es/src/api-model/models/error-list.js +14 -0
- package/dist/es/src/api-model/models/get-document-response.js +14 -0
- package/dist/es/src/api-model/models/get-queries-response-pagination.js +14 -0
- package/dist/es/src/api-model/models/get-queries-response.js +14 -0
- package/dist/es/src/api-model/models/index.js +9 -0
- package/dist/es/src/api-model/models/model-error.js +14 -0
- package/dist/es/src/api-model/models/query-pagination.js +14 -0
- package/dist/es/src/api-model/models/query.js +20 -0
- package/dist/es/src/client.js +45 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/src/api-model/api/queries-api.d.ts +287 -0
- package/dist/types/src/api-model/api.d.ts +12 -0
- package/dist/types/src/api-model/base.d.ts +54 -0
- package/dist/types/src/api-model/common.d.ts +66 -0
- package/dist/types/src/api-model/configuration.d.ts +83 -0
- package/dist/types/src/api-model/index.d.ts +14 -0
- package/dist/types/src/api-model/models/create-query-response.d.ts +24 -0
- package/dist/types/src/api-model/models/create-query-specification.d.ts +30 -0
- package/dist/types/src/api-model/models/error-list.d.ts +24 -0
- package/dist/types/src/api-model/models/get-document-response.d.ts +30 -0
- package/dist/types/src/api-model/models/get-queries-response-pagination.d.ts +24 -0
- package/dist/types/src/api-model/models/get-queries-response.d.ts +32 -0
- package/dist/types/src/api-model/models/index.d.ts +9 -0
- package/dist/types/src/api-model/models/model-error.d.ts +36 -0
- package/dist/types/src/api-model/models/query-pagination.d.ts +24 -0
- package/dist/types/src/api-model/models/query.d.ts +81 -0
- package/dist/types/src/client.d.ts +6 -0
- package/package.json +44 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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 Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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 Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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 Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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 Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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
|
+
* The response for the `createQuery` operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateQueryResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateQueryResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The identifier for the query. This identifier is unique only in combination with a selling partner account ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateQueryResponse
|
|
22
|
+
*/
|
|
23
|
+
'queryId': string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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
|
+
* Information required to create the query.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateQuerySpecification
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateQuerySpecification {
|
|
18
|
+
/**
|
|
19
|
+
* The GraphQL query to submit. A query must be at most 8000 characters after unnecessary whitespace is removed.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateQuerySpecification
|
|
22
|
+
*/
|
|
23
|
+
'query': string;
|
|
24
|
+
/**
|
|
25
|
+
* A token to fetch a certain page of query results when there are multiple pages of query results available. The value of this token must be fetched from the `pagination.nextToken` field of the `Query` object, and the `query` field for this object must also be set to the `query` field of the same `Query` object. A `Query` object can be retrieved from either the `getQueries` or `getQuery` operation. In the absence of this token value, the first page of query results will be requested.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateQuerySpecification
|
|
28
|
+
*/
|
|
29
|
+
'paginationToken'?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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
|
+
*
|
|
20
|
+
* @type {Array<Error>}
|
|
21
|
+
* @memberof ErrorList
|
|
22
|
+
*/
|
|
23
|
+
'errors': Array<Error>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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
|
+
* The response for the `getDocument` operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetDocumentResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface GetDocumentResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The identifier for the Data Kiosk document. This identifier is unique only in combination with a selling partner account ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetDocumentResponse
|
|
22
|
+
*/
|
|
23
|
+
'documentId': string;
|
|
24
|
+
/**
|
|
25
|
+
* A presigned URL that can be used to retrieve the Data Kiosk document. This URL expires after 5 minutes. If the Data Kiosk document is compressed, the `Content-Encoding` header will indicate the compression algorithm. **Note:** Most HTTP clients are capable of automatically decompressing downloaded files based on the `Content-Encoding` header.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetDocumentResponse
|
|
28
|
+
*/
|
|
29
|
+
'documentUrl': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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
|
+
* When a request has results that are not included in this response, pagination occurs. This means the results are divided into pages. To retrieve the next page, you must pass the `nextToken` as the `paginationToken` query parameter in the subsequent `getQueries` request. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. When there are no more pages to fetch, the `nextToken` field will be absent.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetQueriesResponsePagination
|
|
16
|
+
*/
|
|
17
|
+
export interface GetQueriesResponsePagination {
|
|
18
|
+
/**
|
|
19
|
+
* A token that can be used to fetch the next page of results.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetQueriesResponsePagination
|
|
22
|
+
*/
|
|
23
|
+
'nextToken'?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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 { GetQueriesResponsePagination } from './get-queries-response-pagination';
|
|
13
|
+
import { Query } from './query';
|
|
14
|
+
/**
|
|
15
|
+
* The response for the `getQueries` operation.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetQueriesResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface GetQueriesResponse {
|
|
20
|
+
/**
|
|
21
|
+
* A list of queries.
|
|
22
|
+
* @type {Array<Query>}
|
|
23
|
+
* @memberof GetQueriesResponse
|
|
24
|
+
*/
|
|
25
|
+
'queries': Array<Query>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {GetQueriesResponsePagination}
|
|
29
|
+
* @memberof GetQueriesResponse
|
|
30
|
+
*/
|
|
31
|
+
'pagination'?: GetQueriesResponsePagination;
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './create-query-response';
|
|
2
|
+
export * from './create-query-specification';
|
|
3
|
+
export * from './error-list';
|
|
4
|
+
export * from './get-document-response';
|
|
5
|
+
export * from './get-queries-response';
|
|
6
|
+
export * from './get-queries-response-pagination';
|
|
7
|
+
export * from './model-error';
|
|
8
|
+
export * from './query';
|
|
9
|
+
export * from './query-pagination';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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 in a human-readable form.
|
|
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,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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
|
+
* When a query produces results that are not included in the data document, pagination occurs. This means the results are divided into pages. To retrieve the next page, you must pass a `CreateQuerySpecification` object with `paginationToken` set to this object\'s `nextToken` and with `query` set to this object\'s `query` in the subsequent `createQuery` request. When there are no more pages to fetch, the `nextToken` field will be absent.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface QueryPagination
|
|
16
|
+
*/
|
|
17
|
+
export interface QueryPagination {
|
|
18
|
+
/**
|
|
19
|
+
* A token that can be used to fetch the next page of results.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof QueryPagination
|
|
22
|
+
*/
|
|
23
|
+
'nextToken'?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Data Kiosk
|
|
3
|
+
* The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023-11-15
|
|
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 { QueryPagination } from './query-pagination';
|
|
13
|
+
/**
|
|
14
|
+
* Detailed information about the query.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Query
|
|
17
|
+
*/
|
|
18
|
+
export interface Query {
|
|
19
|
+
/**
|
|
20
|
+
* The query identifier. This identifier is unique only in combination with a selling partner account ID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Query
|
|
23
|
+
*/
|
|
24
|
+
'queryId': string;
|
|
25
|
+
/**
|
|
26
|
+
* The submitted query.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Query
|
|
29
|
+
*/
|
|
30
|
+
'query': string;
|
|
31
|
+
/**
|
|
32
|
+
* The date and time when the query was created, in ISO 8601 date time format.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Query
|
|
35
|
+
*/
|
|
36
|
+
'createdTime': string;
|
|
37
|
+
/**
|
|
38
|
+
* The processing status of the query.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Query
|
|
41
|
+
*/
|
|
42
|
+
'processingStatus': QueryProcessingStatusEnum;
|
|
43
|
+
/**
|
|
44
|
+
* The date and time when the query processing started, in ISO 8601 date time format.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Query
|
|
47
|
+
*/
|
|
48
|
+
'processingStartTime'?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The date and time when the query processing completed, in ISO 8601 date time format.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Query
|
|
53
|
+
*/
|
|
54
|
+
'processingEndTime'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The data document identifier. This identifier is only present when there is data available as a result of the query. This identifier is unique only in combination with a selling partner account ID. Pass this identifier into the `getDocument` operation to get the information required to retrieve the data document\'s contents.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Query
|
|
59
|
+
*/
|
|
60
|
+
'dataDocumentId'?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The error document identifier. This identifier is only present when an error occurs during query processing. This identifier is unique only in combination with a selling partner account ID. Pass this identifier into the `getDocument` operation to get the information required to retrieve the error document\'s contents.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Query
|
|
65
|
+
*/
|
|
66
|
+
'errorDocumentId'?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {QueryPagination}
|
|
70
|
+
* @memberof Query
|
|
71
|
+
*/
|
|
72
|
+
'pagination'?: QueryPagination;
|
|
73
|
+
}
|
|
74
|
+
export declare const QueryProcessingStatusEnum: {
|
|
75
|
+
readonly Cancelled: "CANCELLED";
|
|
76
|
+
readonly Done: "DONE";
|
|
77
|
+
readonly Fatal: "FATAL";
|
|
78
|
+
readonly InProgress: "IN_PROGRESS";
|
|
79
|
+
readonly InQueue: "IN_QUEUE";
|
|
80
|
+
};
|
|
81
|
+
export type QueryProcessingStatusEnum = typeof QueryProcessingStatusEnum[keyof typeof QueryProcessingStatusEnum];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import { QueriesApi } from './api-model';
|
|
3
|
+
export declare const clientRateLimits: RateLimit[];
|
|
4
|
+
export declare class DataKioskApiClient extends QueriesApi {
|
|
5
|
+
constructor(configuration: ClientConfiguration);
|
|
6
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sp-api-sdk/data-kiosk-api-2023-11-15",
|
|
3
|
+
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
|
+
"description": "The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.",
|
|
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.3",
|
|
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/data-kiosk-api-2023-11-15"
|
|
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/data-kiosk-api-2023-11-15",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"amazon",
|
|
35
|
+
"bizon",
|
|
36
|
+
"marketplace web services",
|
|
37
|
+
"mws",
|
|
38
|
+
"selling partner api",
|
|
39
|
+
"sp api",
|
|
40
|
+
"sp sdk",
|
|
41
|
+
"data kiosk api"
|
|
42
|
+
],
|
|
43
|
+
"gitHead": "c81279baeb662780ae3cb42fb60fa11670fed191"
|
|
44
|
+
}
|