@sp-api-sdk/application-integrations-api-2024-04-01 3.0.17 → 4.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 (53) hide show
  1. package/README.md +7 -8
  2. package/dist/index.cjs +449 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +423 -0
  5. package/dist/index.d.ts +423 -0
  6. package/dist/index.js +418 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +26 -12
  9. package/dist/cjs/api-model/api/application-integrations-api.js +0 -242
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/create-notification-request.js +0 -15
  16. package/dist/cjs/api-model/models/create-notification-response.js +0 -15
  17. package/dist/cjs/api-model/models/delete-notifications-request.js +0 -20
  18. package/dist/cjs/api-model/models/error-list.js +0 -15
  19. package/dist/cjs/api-model/models/index.js +0 -22
  20. package/dist/cjs/api-model/models/model-error.js +0 -15
  21. package/dist/cjs/api-model/models/record-action-feedback-request.js +0 -19
  22. package/dist/cjs/client.js +0 -35
  23. package/dist/cjs/index.js +0 -19
  24. package/dist/es/api-model/api/application-integrations-api.js +0 -232
  25. package/dist/es/api-model/api.js +0 -14
  26. package/dist/es/api-model/base.js +0 -44
  27. package/dist/es/api-model/common.js +0 -110
  28. package/dist/es/api-model/configuration.js +0 -94
  29. package/dist/es/api-model/index.js +0 -16
  30. package/dist/es/api-model/models/create-notification-request.js +0 -14
  31. package/dist/es/api-model/models/create-notification-response.js +0 -14
  32. package/dist/es/api-model/models/delete-notifications-request.js +0 -17
  33. package/dist/es/api-model/models/error-list.js +0 -14
  34. package/dist/es/api-model/models/index.js +0 -6
  35. package/dist/es/api-model/models/model-error.js +0 -14
  36. package/dist/es/api-model/models/record-action-feedback-request.js +0 -16
  37. package/dist/es/client.js +0 -31
  38. package/dist/es/index.js +0 -3
  39. package/dist/types/api-model/api/application-integrations-api.d.ts +0 -156
  40. package/dist/types/api-model/api.d.ts +0 -12
  41. package/dist/types/api-model/base.d.ts +0 -42
  42. package/dist/types/api-model/common.d.ts +0 -34
  43. package/dist/types/api-model/configuration.d.ts +0 -98
  44. package/dist/types/api-model/index.d.ts +0 -14
  45. package/dist/types/api-model/models/create-notification-request.d.ts +0 -30
  46. package/dist/types/api-model/models/create-notification-response.d.ts +0 -20
  47. package/dist/types/api-model/models/delete-notifications-request.d.ts +0 -29
  48. package/dist/types/api-model/models/error-list.d.ts +0 -20
  49. package/dist/types/api-model/models/index.d.ts +0 -6
  50. package/dist/types/api-model/models/model-error.d.ts +0 -28
  51. package/dist/types/api-model/models/record-action-feedback-request.d.ts +0 -24
  52. package/dist/types/client.d.ts +0 -6
  53. package/dist/types/index.d.ts +0 -3
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for third party application integrations.
5
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
6
- *
7
- * The version of the OpenAPI document: 2024-04-01
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 {};
@@ -1,17 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for third party application integrations.
5
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
6
- *
7
- * The version of the OpenAPI document: 2024-04-01
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 DeleteNotificationsRequestDeletionReasonEnum = {
15
- IncorrectContent: 'INCORRECT_CONTENT',
16
- IncorrectRecipient: 'INCORRECT_RECIPIENT',
17
- };
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for third party application integrations.
5
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
6
- *
7
- * The version of the OpenAPI document: 2024-04-01
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 {};
@@ -1,6 +0,0 @@
1
- export * from './create-notification-request';
2
- export * from './create-notification-response';
3
- export * from './delete-notifications-request';
4
- export * from './error-list';
5
- export * from './model-error';
6
- export * from './record-action-feedback-request';
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for third party application integrations.
5
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
6
- *
7
- * The version of the OpenAPI document: 2024-04-01
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 {};
@@ -1,16 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for third party application integrations.
5
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
6
- *
7
- * The version of the OpenAPI document: 2024-04-01
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 RecordActionFeedbackRequestFeedbackActionCodeEnum = {
15
- SellerActionCompleted: 'SELLER_ACTION_COMPLETED',
16
- };
package/dist/es/client.js DELETED
@@ -1,31 +0,0 @@
1
- import { createAxiosInstance } from '@sp-api-sdk/common';
2
- import { ApplicationIntegrationsApi, Configuration } from './api-model';
3
- export const clientRateLimits = [
4
- {
5
- method: 'post',
6
- // eslint-disable-next-line prefer-regex-literals
7
- urlRegex: new RegExp('^/appIntegrations/2024-04-01/notifications$'),
8
- rate: 1,
9
- burst: 5,
10
- },
11
- {
12
- method: 'post',
13
- // eslint-disable-next-line prefer-regex-literals
14
- urlRegex: new RegExp('^/appIntegrations/2024-04-01/notifications/deletion$'),
15
- rate: 1,
16
- burst: 5,
17
- },
18
- {
19
- method: 'post',
20
- // eslint-disable-next-line prefer-regex-literals
21
- urlRegex: new RegExp('^/appIntegrations/2024-04-01/notifications/[^/]*/feedback$'),
22
- rate: 1,
23
- burst: 5,
24
- },
25
- ];
26
- export class ApplicationIntegrationsApiClient extends ApplicationIntegrationsApi {
27
- constructor(configuration) {
28
- const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
29
- super(new Configuration(), endpoint, axios);
30
- }
31
- }
package/dist/es/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './client';
2
- export * from './api-model/api';
3
- export * from './api-model/models';
@@ -1,156 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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, RawAxiosRequestConfig } from 'axios';
14
- import globalAxios from 'axios';
15
- import { type RequestArgs, BaseAPI } from '../base';
16
- import type { CreateNotificationRequest } from '../models';
17
- import type { CreateNotificationResponse } from '../models';
18
- import type { DeleteNotificationsRequest } from '../models';
19
- import type { RecordActionFeedbackRequest } from '../models';
20
- /**
21
- * ApplicationIntegrationsApi - axios parameter creator
22
- */
23
- export declare const ApplicationIntegrationsApiAxiosParamCreator: (configuration?: Configuration) => {
24
- /**
25
- * Create a notification for sellers in Seller Central. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
26
- * @param {CreateNotificationRequest} body The request body for the `createNotification` operation.
27
- * @param {*} [options] Override http request option.
28
- * @throws {RequiredError}
29
- */
30
- createNotification: (body: CreateNotificationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
- /**
32
- * Remove your application\'s notifications from the Appstore notifications dashboard. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
33
- * @param {DeleteNotificationsRequest} body The request body for the &#x60;deleteNotifications&#x60; operation.
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- deleteNotifications: (body: DeleteNotificationsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
- /**
39
- * Records the seller\'s response to a notification. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
40
- * @param {string} notificationId A &#x60;notificationId&#x60; uniquely identifies a notification.
41
- * @param {RecordActionFeedbackRequest} body The request body for the &#x60;recordActionFeedback&#x60; operation.
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- recordActionFeedback: (notificationId: string, body: RecordActionFeedbackRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
46
- };
47
- /**
48
- * ApplicationIntegrationsApi - functional programming interface
49
- */
50
- export declare const ApplicationIntegrationsApiFp: (configuration?: Configuration) => {
51
- /**
52
- * Create a notification for sellers in Seller Central. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
53
- * @param {CreateNotificationRequest} body The request body for the &#x60;createNotification&#x60; operation.
54
- * @param {*} [options] Override http request option.
55
- * @throws {RequiredError}
56
- */
57
- createNotification(body: CreateNotificationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNotificationResponse>>;
58
- /**
59
- * Remove your application\'s notifications from the Appstore notifications dashboard. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
60
- * @param {DeleteNotificationsRequest} body The request body for the &#x60;deleteNotifications&#x60; operation.
61
- * @param {*} [options] Override http request option.
62
- * @throws {RequiredError}
63
- */
64
- deleteNotifications(body: DeleteNotificationsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
65
- /**
66
- * Records the seller\'s response to a notification. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
67
- * @param {string} notificationId A &#x60;notificationId&#x60; uniquely identifies a notification.
68
- * @param {RecordActionFeedbackRequest} body The request body for the &#x60;recordActionFeedback&#x60; operation.
69
- * @param {*} [options] Override http request option.
70
- * @throws {RequiredError}
71
- */
72
- recordActionFeedback(notificationId: string, body: RecordActionFeedbackRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
73
- };
74
- /**
75
- * ApplicationIntegrationsApi - factory interface
76
- */
77
- export declare const ApplicationIntegrationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
78
- /**
79
- * Create a notification for sellers in Seller Central. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
80
- * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
81
- * @param {*} [options] Override http request option.
82
- * @throws {RequiredError}
83
- */
84
- createNotification(requestParameters: ApplicationIntegrationsApiCreateNotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateNotificationResponse>;
85
- /**
86
- * Remove your application\'s notifications from the Appstore notifications dashboard. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
87
- * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- */
91
- deleteNotifications(requestParameters: ApplicationIntegrationsApiDeleteNotificationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
92
- /**
93
- * Records the seller\'s response to a notification. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
94
- * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- recordActionFeedback(requestParameters: ApplicationIntegrationsApiRecordActionFeedbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
99
- };
100
- /**
101
- * Request parameters for createNotification operation in ApplicationIntegrationsApi.
102
- */
103
- export interface ApplicationIntegrationsApiCreateNotificationRequest {
104
- /**
105
- * The request body for the &#x60;createNotification&#x60; operation.
106
- */
107
- readonly body: CreateNotificationRequest;
108
- }
109
- /**
110
- * Request parameters for deleteNotifications operation in ApplicationIntegrationsApi.
111
- */
112
- export interface ApplicationIntegrationsApiDeleteNotificationsRequest {
113
- /**
114
- * The request body for the &#x60;deleteNotifications&#x60; operation.
115
- */
116
- readonly body: DeleteNotificationsRequest;
117
- }
118
- /**
119
- * Request parameters for recordActionFeedback operation in ApplicationIntegrationsApi.
120
- */
121
- export interface ApplicationIntegrationsApiRecordActionFeedbackRequest {
122
- /**
123
- * A &#x60;notificationId&#x60; uniquely identifies a notification.
124
- */
125
- readonly notificationId: string;
126
- /**
127
- * The request body for the &#x60;recordActionFeedback&#x60; operation.
128
- */
129
- readonly body: RecordActionFeedbackRequest;
130
- }
131
- /**
132
- * ApplicationIntegrationsApi - object-oriented interface
133
- */
134
- export declare class ApplicationIntegrationsApi extends BaseAPI {
135
- /**
136
- * Create a notification for sellers in Seller Central. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
137
- * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
138
- * @param {*} [options] Override http request option.
139
- * @throws {RequiredError}
140
- */
141
- createNotification(requestParameters: ApplicationIntegrationsApiCreateNotificationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateNotificationResponse, any, {}>>;
142
- /**
143
- * Remove your application\'s notifications from the Appstore notifications dashboard. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
144
- * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
145
- * @param {*} [options] Override http request option.
146
- * @throws {RequiredError}
147
- */
148
- deleteNotifications(requestParameters: ApplicationIntegrationsApiDeleteNotificationsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any, {}>>;
149
- /**
150
- * Records the seller\'s response to a notification. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have 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).
151
- * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
152
- * @param {*} [options] Override http request option.
153
- * @throws {RequiredError}
154
- */
155
- recordActionFeedback(requestParameters: ApplicationIntegrationsApiRecordActionFeedbackRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any, {}>>;
156
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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/application-integrations-api';
@@ -1,42 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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, RawAxiosRequestConfig } from 'axios';
14
- export declare const BASE_PATH: string;
15
- export declare const COLLECTION_FORMATS: {
16
- csv: string;
17
- ssv: string;
18
- tsv: string;
19
- pipes: string;
20
- };
21
- export interface RequestArgs {
22
- url: string;
23
- options: RawAxiosRequestConfig;
24
- }
25
- export declare class BaseAPI {
26
- protected basePath: string;
27
- protected axios: AxiosInstance;
28
- protected configuration: Configuration | undefined;
29
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
30
- }
31
- export declare class RequiredError extends Error {
32
- field: string;
33
- constructor(field: string, msg?: string);
34
- }
35
- interface ServerMap {
36
- [key: string]: {
37
- url: string;
38
- description: string;
39
- }[];
40
- }
41
- export declare const operationServerMap: ServerMap;
42
- export {};
@@ -1,34 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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 { RequestArgs } from "./base";
14
- import type { AxiosInstance, AxiosResponse } from 'axios';
15
- export declare const DUMMY_BASE_URL = "https://example.com";
16
- /**
17
- *
18
- * @throws {RequiredError}
19
- */
20
- export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
21
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
22
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
23
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
24
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
25
- export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
26
- /**
27
- * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
28
- * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
- * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
- */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
- export declare const toPathString: (url: URL) => string;
34
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -1,98 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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
- interface AWSv4Configuration {
13
- options?: {
14
- region?: string;
15
- service?: string;
16
- };
17
- credentials?: {
18
- accessKeyId?: string;
19
- secretAccessKey?: string;
20
- sessionToken?: string;
21
- };
22
- }
23
- export interface ConfigurationParameters {
24
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
25
- username?: string;
26
- password?: string;
27
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
- awsv4?: AWSv4Configuration;
29
- basePath?: string;
30
- serverIndex?: number;
31
- baseOptions?: any;
32
- formDataCtor?: new () => any;
33
- }
34
- export declare class Configuration {
35
- /**
36
- * parameter for apiKey security
37
- * @param name security name
38
- */
39
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
40
- /**
41
- * parameter for basic security
42
- */
43
- username?: string;
44
- /**
45
- * parameter for basic security
46
- */
47
- password?: string;
48
- /**
49
- * parameter for oauth2 security
50
- * @param name security name
51
- * @param scopes oauth2 scope
52
- */
53
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
- /**
55
- * parameter for aws4 signature security
56
- * @param {Object} AWS4Signature - AWS4 Signature security
57
- * @param {string} options.region - aws region
58
- * @param {string} options.service - name of the service.
59
- * @param {string} credentials.accessKeyId - aws access key id
60
- * @param {string} credentials.secretAccessKey - aws access key
61
- * @param {string} credentials.sessionToken - aws session token
62
- * @memberof Configuration
63
- */
64
- awsv4?: AWSv4Configuration;
65
- /**
66
- * override base path
67
- */
68
- basePath?: string;
69
- /**
70
- * override server index
71
- */
72
- serverIndex?: number;
73
- /**
74
- * base options for axios calls
75
- */
76
- baseOptions?: any;
77
- /**
78
- * The FormData constructor that will be used to create multipart form data
79
- * requests. You can inject this here so that execution environments that
80
- * do not support the FormData class can still run the generated client.
81
- *
82
- * @type {new () => FormData}
83
- */
84
- formDataCtor?: new () => any;
85
- constructor(param?: ConfigurationParameters);
86
- /**
87
- * Check if the given MIME is a JSON MIME.
88
- * JSON MIME examples:
89
- * application/json
90
- * application/json; charset=UTF8
91
- * APPLICATION/JSON
92
- * application/vnd.company+json
93
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
94
- * @return True if the given MIME is JSON, false otherwise.
95
- */
96
- isJsonMime(mime: string): boolean;
97
- }
98
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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";
@@ -1,30 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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 request for the `createNotification` operation.
14
- */
15
- export interface CreateNotificationRequest {
16
- /**
17
- * The unique identifier of the notification template you used to onboard your application.
18
- */
19
- 'templateId': string;
20
- /**
21
- * The dynamic parameters required by the notification templated specified by `templateId`.
22
- */
23
- 'notificationParameters': {
24
- [key: string]: object;
25
- };
26
- /**
27
- * An encrypted marketplace identifier for the posted notification.
28
- */
29
- 'marketplaceId'?: string;
30
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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 `createNotification` operation.
14
- */
15
- export interface CreateNotificationResponse {
16
- /**
17
- * The unique identifier assigned to each notification.
18
- */
19
- 'notificationId'?: string;
20
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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 request for the `deleteNotifications` operation.
14
- */
15
- export interface DeleteNotificationsRequest {
16
- /**
17
- * The unique identifier of the notification template you used to onboard your application.
18
- */
19
- 'templateId': string;
20
- /**
21
- * The unique identifier that maps each notification status to a reason code.
22
- */
23
- 'deletionReason': DeleteNotificationsRequestDeletionReasonEnum;
24
- }
25
- export declare const DeleteNotificationsRequestDeletionReasonEnum: {
26
- readonly IncorrectContent: "INCORRECT_CONTENT";
27
- readonly IncorrectRecipient: "INCORRECT_RECIPIENT";
28
- };
29
- export type DeleteNotificationsRequestDeletionReasonEnum = typeof DeleteNotificationsRequestDeletionReasonEnum[keyof typeof DeleteNotificationsRequestDeletionReasonEnum];
@@ -1,20 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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
- */
15
- export interface ErrorList {
16
- /**
17
- * Error response returned when the request is unsuccessful.
18
- */
19
- 'errors': Array<Error>;
20
- }
@@ -1,6 +0,0 @@
1
- export * from './create-notification-request';
2
- export * from './create-notification-response';
3
- export * from './delete-notifications-request';
4
- export * from './error-list';
5
- export * from './model-error';
6
- export * from './record-action-feedback-request';
@@ -1,28 +0,0 @@
1
- /**
2
- * The Selling Partner API for third party application integrations.
3
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
4
- *
5
- * The version of the OpenAPI document: 2024-04-01
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
- */
15
- export interface ModelError {
16
- /**
17
- * An error code that identifies the type of error that occurred.
18
- */
19
- 'code': string;
20
- /**
21
- * A message that describes the error condition.
22
- */
23
- 'message': string;
24
- /**
25
- * Additional details that can help the caller understand or fix the issue.
26
- */
27
- 'details'?: string;
28
- }