@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.
Files changed (57) 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/queries-api.js +373 -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/create-query-response.js +15 -0
  11. package/dist/cjs/src/api-model/models/create-query-specification.js +15 -0
  12. package/dist/cjs/src/api-model/models/error-list.js +15 -0
  13. package/dist/cjs/src/api-model/models/get-document-response.js +15 -0
  14. package/dist/cjs/src/api-model/models/get-queries-response-pagination.js +15 -0
  15. package/dist/cjs/src/api-model/models/get-queries-response.js +15 -0
  16. package/dist/cjs/src/api-model/models/index.js +25 -0
  17. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  18. package/dist/cjs/src/api-model/models/query-pagination.js +15 -0
  19. package/dist/cjs/src/api-model/models/query.js +23 -0
  20. package/dist/cjs/src/client.js +49 -0
  21. package/dist/es/index.js +2 -0
  22. package/dist/es/src/api-model/api/queries-api.js +363 -0
  23. package/dist/es/src/api-model/api.js +14 -0
  24. package/dist/es/src/api-model/base.js +58 -0
  25. package/dist/es/src/api-model/common.js +133 -0
  26. package/dist/es/src/api-model/configuration.js +87 -0
  27. package/dist/es/src/api-model/index.js +16 -0
  28. package/dist/es/src/api-model/models/create-query-response.js +14 -0
  29. package/dist/es/src/api-model/models/create-query-specification.js +14 -0
  30. package/dist/es/src/api-model/models/error-list.js +14 -0
  31. package/dist/es/src/api-model/models/get-document-response.js +14 -0
  32. package/dist/es/src/api-model/models/get-queries-response-pagination.js +14 -0
  33. package/dist/es/src/api-model/models/get-queries-response.js +14 -0
  34. package/dist/es/src/api-model/models/index.js +9 -0
  35. package/dist/es/src/api-model/models/model-error.js +14 -0
  36. package/dist/es/src/api-model/models/query-pagination.js +14 -0
  37. package/dist/es/src/api-model/models/query.js +20 -0
  38. package/dist/es/src/client.js +45 -0
  39. package/dist/types/index.d.ts +2 -0
  40. package/dist/types/src/api-model/api/queries-api.d.ts +287 -0
  41. package/dist/types/src/api-model/api.d.ts +12 -0
  42. package/dist/types/src/api-model/base.d.ts +54 -0
  43. package/dist/types/src/api-model/common.d.ts +66 -0
  44. package/dist/types/src/api-model/configuration.d.ts +83 -0
  45. package/dist/types/src/api-model/index.d.ts +14 -0
  46. package/dist/types/src/api-model/models/create-query-response.d.ts +24 -0
  47. package/dist/types/src/api-model/models/create-query-specification.d.ts +30 -0
  48. package/dist/types/src/api-model/models/error-list.d.ts +24 -0
  49. package/dist/types/src/api-model/models/get-document-response.d.ts +30 -0
  50. package/dist/types/src/api-model/models/get-queries-response-pagination.d.ts +24 -0
  51. package/dist/types/src/api-model/models/get-queries-response.d.ts +32 -0
  52. package/dist/types/src/api-model/models/index.d.ts +9 -0
  53. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  54. package/dist/types/src/api-model/models/query-pagination.d.ts +24 -0
  55. package/dist/types/src/api-model/models/query.d.ts +81 -0
  56. package/dist/types/src/client.d.ts +6 -0
  57. package/package.json +44 -0
@@ -0,0 +1,87 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 class Configuration {
15
+ /**
16
+ * parameter for apiKey security
17
+ * @param name security name
18
+ * @memberof Configuration
19
+ */
20
+ apiKey;
21
+ /**
22
+ * parameter for basic security
23
+ *
24
+ * @type {string}
25
+ * @memberof Configuration
26
+ */
27
+ username;
28
+ /**
29
+ * parameter for basic security
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ password;
35
+ /**
36
+ * parameter for oauth2 security
37
+ * @param name security name
38
+ * @param scopes oauth2 scope
39
+ * @memberof Configuration
40
+ */
41
+ accessToken;
42
+ /**
43
+ * override base path
44
+ *
45
+ * @type {string}
46
+ * @memberof Configuration
47
+ */
48
+ basePath;
49
+ /**
50
+ * base options for axios calls
51
+ *
52
+ * @type {any}
53
+ * @memberof Configuration
54
+ */
55
+ baseOptions;
56
+ /**
57
+ * The FormData constructor that will be used to create multipart form data
58
+ * requests. You can inject this here so that execution environments that
59
+ * do not support the FormData class can still run the generated client.
60
+ *
61
+ * @type {new () => FormData}
62
+ */
63
+ formDataCtor;
64
+ constructor(param = {}) {
65
+ this.apiKey = param.apiKey;
66
+ this.username = param.username;
67
+ this.password = param.password;
68
+ this.accessToken = param.accessToken;
69
+ this.basePath = param.basePath;
70
+ this.baseOptions = param.baseOptions;
71
+ this.formDataCtor = param.formDataCtor;
72
+ }
73
+ /**
74
+ * Check if the given MIME is a JSON MIME.
75
+ * JSON MIME examples:
76
+ * application/json
77
+ * application/json; charset=UTF8
78
+ * APPLICATION/JSON
79
+ * application/vnd.company+json
80
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
81
+ * @return True if the given MIME is JSON, false otherwise.
82
+ */
83
+ isJsonMime(mime) {
84
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
85
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
86
+ }
87
+ }
@@ -0,0 +1,16 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 * from "./api";
15
+ export * from "./configuration";
16
+ export * from "./models";
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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,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,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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,20 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Data Kiosk
5
+ * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
6
+ *
7
+ * The version of the OpenAPI document: 2023-11-15
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 const QueryProcessingStatusEnum = {
15
+ Cancelled: 'CANCELLED',
16
+ Done: 'DONE',
17
+ Fatal: 'FATAL',
18
+ InProgress: 'IN_PROGRESS',
19
+ InQueue: 'IN_QUEUE'
20
+ };
@@ -0,0 +1,45 @@
1
+ import { createAxiosInstance } from '@sp-api-sdk/common';
2
+ import { Configuration, QueriesApi } from './api-model';
3
+ export const clientRateLimits = [
4
+ {
5
+ method: 'get',
6
+ // eslint-disable-next-line prefer-regex-literals
7
+ urlRegex: new RegExp('^/dataKiosk/2023-11-15/queries$'),
8
+ rate: 0.0222,
9
+ burst: 10,
10
+ },
11
+ {
12
+ method: 'post',
13
+ // eslint-disable-next-line prefer-regex-literals
14
+ urlRegex: new RegExp('^/dataKiosk/2023-11-15/queries$'),
15
+ rate: 0.0167,
16
+ burst: 15,
17
+ },
18
+ {
19
+ method: 'delete',
20
+ // eslint-disable-next-line prefer-regex-literals
21
+ urlRegex: new RegExp('^/dataKiosk/2023-11-15/queries/[^/]*$'),
22
+ rate: 0.0222,
23
+ burst: 10,
24
+ },
25
+ {
26
+ method: 'get',
27
+ // eslint-disable-next-line prefer-regex-literals
28
+ urlRegex: new RegExp('^/dataKiosk/2023-11-15/queries/[^/]*$'),
29
+ rate: 2,
30
+ burst: 15,
31
+ },
32
+ {
33
+ method: 'get',
34
+ // eslint-disable-next-line prefer-regex-literals
35
+ urlRegex: new RegExp('^/dataKiosk/2023-11-15/documents/[^/]*$'),
36
+ rate: 0.0167,
37
+ burst: 15,
38
+ },
39
+ ];
40
+ export class DataKioskApiClient extends QueriesApi {
41
+ constructor(configuration) {
42
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
43
+ super(new Configuration(), endpoint, axios);
44
+ }
45
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/client';
2
+ export * from './src/api-model/models';
@@ -0,0 +1,287 @@
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateQueryResponse } from '../models';
16
+ import { CreateQuerySpecification } from '../models';
17
+ import { GetDocumentResponse } from '../models';
18
+ import { GetQueriesResponse } from '../models';
19
+ import { Query } from '../models';
20
+ /**
21
+ * QueriesApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export declare const QueriesApiAxiosParamCreator: (configuration?: Configuration) => {
25
+ /**
26
+ * Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
27
+ * @param {string} queryId The identifier for the query. This identifier is unique only in combination with a selling partner account ID.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ cancelQuery: (queryId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * Creates a Data Kiosk query request. **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query\'s resulting documents always matches the retention of the query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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).
34
+ * @param {CreateQuerySpecification} body
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ createQuery: (body: CreateQuerySpecification, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39
+ /**
40
+ * Returns the information required for retrieving a Data Kiosk document\'s contents. See the `createQuery` operation for details about document retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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).
41
+ * @param {string} documentId The identifier for the Data Kiosk document.
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getDocument: (documentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
+ /**
47
+ * Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
48
+ * @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter queries.
49
+ * @param {number} [pageSize] The maximum number of queries to return in a single call.
50
+ * @param {string} [createdSince] The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago.
51
+ * @param {string} [createdUntil] The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the &#x60;getQueries&#x60; request.
52
+ * @param {string} [paginationToken] A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the &#x60;pagination.nextToken&#x60; field returned in the &#x60;GetQueriesResponse&#x60; object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of &#x60;pageSize&#x60; which can be modified between calls to &#x60;getQueries&#x60;. In the absence of this token value, &#x60;getQueries&#x60; returns the first page of results.
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ getQueries: (processingStatuses?: Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>, pageSize?: number, createdSince?: string, createdUntil?: string, paginationToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ * Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | 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, refer to [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).
59
+ * @param {string} queryId The query identifier.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ getQuery: (queryId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ };
65
+ /**
66
+ * QueriesApi - functional programming interface
67
+ * @export
68
+ */
69
+ export declare const QueriesApiFp: (configuration?: Configuration) => {
70
+ /**
71
+ * Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
72
+ * @param {string} queryId The identifier for the query. This identifier is unique only in combination with a selling partner account ID.
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ cancelQuery(queryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
77
+ /**
78
+ * Creates a Data Kiosk query request. **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query\'s resulting documents always matches the retention of the query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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).
79
+ * @param {CreateQuerySpecification} body
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ createQuery(body: CreateQuerySpecification, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQueryResponse>>;
84
+ /**
85
+ * Returns the information required for retrieving a Data Kiosk document\'s contents. See the `createQuery` operation for details about document retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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).
86
+ * @param {string} documentId The identifier for the Data Kiosk document.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ getDocument(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocumentResponse>>;
91
+ /**
92
+ * Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
93
+ * @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter queries.
94
+ * @param {number} [pageSize] The maximum number of queries to return in a single call.
95
+ * @param {string} [createdSince] The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago.
96
+ * @param {string} [createdUntil] The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the &#x60;getQueries&#x60; request.
97
+ * @param {string} [paginationToken] A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the &#x60;pagination.nextToken&#x60; field returned in the &#x60;GetQueriesResponse&#x60; object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of &#x60;pageSize&#x60; which can be modified between calls to &#x60;getQueries&#x60;. In the absence of this token value, &#x60;getQueries&#x60; returns the first page of results.
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ getQueries(processingStatuses?: Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>, pageSize?: number, createdSince?: string, createdUntil?: string, paginationToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetQueriesResponse>>;
102
+ /**
103
+ * Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | 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, refer to [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).
104
+ * @param {string} queryId The query identifier.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getQuery(queryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Query>>;
109
+ };
110
+ /**
111
+ * QueriesApi - factory interface
112
+ * @export
113
+ */
114
+ export declare const QueriesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
115
+ /**
116
+ * Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
117
+ * @param {QueriesApiCancelQueryRequest} requestParameters Request parameters.
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ cancelQuery(requestParameters: QueriesApiCancelQueryRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
122
+ /**
123
+ * Creates a Data Kiosk query request. **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query\'s resulting documents always matches the retention of the query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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).
124
+ * @param {QueriesApiCreateQueryRequest} requestParameters Request parameters.
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ createQuery(requestParameters: QueriesApiCreateQueryRequest, options?: AxiosRequestConfig): AxiosPromise<CreateQueryResponse>;
129
+ /**
130
+ * Returns the information required for retrieving a Data Kiosk document\'s contents. See the `createQuery` operation for details about document retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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 {QueriesApiGetDocumentRequest} requestParameters Request parameters.
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ getDocument(requestParameters: QueriesApiGetDocumentRequest, options?: AxiosRequestConfig): AxiosPromise<GetDocumentResponse>;
136
+ /**
137
+ * Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
138
+ * @param {QueriesApiGetQueriesRequest} requestParameters Request parameters.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getQueries(requestParameters?: QueriesApiGetQueriesRequest, options?: AxiosRequestConfig): AxiosPromise<GetQueriesResponse>;
143
+ /**
144
+ * Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | 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, refer to [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).
145
+ * @param {QueriesApiGetQueryRequest} requestParameters Request parameters.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ getQuery(requestParameters: QueriesApiGetQueryRequest, options?: AxiosRequestConfig): AxiosPromise<Query>;
150
+ };
151
+ /**
152
+ * Request parameters for cancelQuery operation in QueriesApi.
153
+ * @export
154
+ * @interface QueriesApiCancelQueryRequest
155
+ */
156
+ export interface QueriesApiCancelQueryRequest {
157
+ /**
158
+ * The identifier for the query. This identifier is unique only in combination with a selling partner account ID.
159
+ * @type {string}
160
+ * @memberof QueriesApiCancelQuery
161
+ */
162
+ readonly queryId: string;
163
+ }
164
+ /**
165
+ * Request parameters for createQuery operation in QueriesApi.
166
+ * @export
167
+ * @interface QueriesApiCreateQueryRequest
168
+ */
169
+ export interface QueriesApiCreateQueryRequest {
170
+ /**
171
+ *
172
+ * @type {CreateQuerySpecification}
173
+ * @memberof QueriesApiCreateQuery
174
+ */
175
+ readonly body: CreateQuerySpecification;
176
+ }
177
+ /**
178
+ * Request parameters for getDocument operation in QueriesApi.
179
+ * @export
180
+ * @interface QueriesApiGetDocumentRequest
181
+ */
182
+ export interface QueriesApiGetDocumentRequest {
183
+ /**
184
+ * The identifier for the Data Kiosk document.
185
+ * @type {string}
186
+ * @memberof QueriesApiGetDocument
187
+ */
188
+ readonly documentId: string;
189
+ }
190
+ /**
191
+ * Request parameters for getQueries operation in QueriesApi.
192
+ * @export
193
+ * @interface QueriesApiGetQueriesRequest
194
+ */
195
+ export interface QueriesApiGetQueriesRequest {
196
+ /**
197
+ * A list of processing statuses used to filter queries.
198
+ * @type {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>}
199
+ * @memberof QueriesApiGetQueries
200
+ */
201
+ readonly processingStatuses?: Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>;
202
+ /**
203
+ * The maximum number of queries to return in a single call.
204
+ * @type {number}
205
+ * @memberof QueriesApiGetQueries
206
+ */
207
+ readonly pageSize?: number;
208
+ /**
209
+ * The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago.
210
+ * @type {string}
211
+ * @memberof QueriesApiGetQueries
212
+ */
213
+ readonly createdSince?: string;
214
+ /**
215
+ * The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the &#x60;getQueries&#x60; request.
216
+ * @type {string}
217
+ * @memberof QueriesApiGetQueries
218
+ */
219
+ readonly createdUntil?: string;
220
+ /**
221
+ * A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the &#x60;pagination.nextToken&#x60; field returned in the &#x60;GetQueriesResponse&#x60; object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of &#x60;pageSize&#x60; which can be modified between calls to &#x60;getQueries&#x60;. In the absence of this token value, &#x60;getQueries&#x60; returns the first page of results.
222
+ * @type {string}
223
+ * @memberof QueriesApiGetQueries
224
+ */
225
+ readonly paginationToken?: string;
226
+ }
227
+ /**
228
+ * Request parameters for getQuery operation in QueriesApi.
229
+ * @export
230
+ * @interface QueriesApiGetQueryRequest
231
+ */
232
+ export interface QueriesApiGetQueryRequest {
233
+ /**
234
+ * The query identifier.
235
+ * @type {string}
236
+ * @memberof QueriesApiGetQuery
237
+ */
238
+ readonly queryId: string;
239
+ }
240
+ /**
241
+ * QueriesApi - object-oriented interface
242
+ * @export
243
+ * @class QueriesApi
244
+ * @extends {BaseAPI}
245
+ */
246
+ export declare class QueriesApi extends BaseAPI {
247
+ /**
248
+ * Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
249
+ * @param {QueriesApiCancelQueryRequest} requestParameters Request parameters.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ * @memberof QueriesApi
253
+ */
254
+ cancelQuery(requestParameters: QueriesApiCancelQueryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
255
+ /**
256
+ * Creates a Data Kiosk query request. **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query\'s resulting documents always matches the retention of the query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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).
257
+ * @param {QueriesApiCreateQueryRequest} requestParameters Request parameters.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof QueriesApi
261
+ */
262
+ createQuery(requestParameters: QueriesApiCreateQueryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQueryResponse, any>>;
263
+ /**
264
+ * Returns the information required for retrieving a Data Kiosk document\'s contents. See the `createQuery` operation for details about document retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 15 | 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, refer to [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).
265
+ * @param {QueriesApiGetDocumentRequest} requestParameters Request parameters.
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ * @memberof QueriesApi
269
+ */
270
+ getDocument(requestParameters: QueriesApiGetDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocumentResponse, any>>;
271
+ /**
272
+ * Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 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, refer to [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).
273
+ * @param {QueriesApiGetQueriesRequest} requestParameters Request parameters.
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ * @memberof QueriesApi
277
+ */
278
+ getQueries(requestParameters?: QueriesApiGetQueriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQueriesResponse, any>>;
279
+ /**
280
+ * Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | 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, refer to [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).
281
+ * @param {QueriesApiGetQueryRequest} requestParameters Request parameters.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ * @memberof QueriesApi
285
+ */
286
+ getQuery(requestParameters: QueriesApiGetQueryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Query, any>>;
287
+ }
@@ -0,0 +1,12 @@
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/queries-api';