Skip to content

Commit d717bf2

Browse files
authored
chore: bump openapi to version 7.15.0 (#1565)
1 parent 9b81488 commit d717bf2

File tree

1,908 files changed

+1
-25503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,908 files changed

+1
-25503
lines changed

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/api/amazon-warehousing-and-distribution-api.ts

Lines changed: 0 additions & 115 deletions
Large diffs are not rendered by default.

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/base.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,18 @@ import globalAxios from 'axios';
2121

2222
export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
2323

24-
/**
25-
*
26-
* @export
27-
*/
2824
export const COLLECTION_FORMATS = {
2925
csv: ",",
3026
ssv: " ",
3127
tsv: "\t",
3228
pipes: "|",
3329
};
3430

35-
/**
36-
*
37-
* @export
38-
* @interface RequestArgs
39-
*/
4031
export interface RequestArgs {
4132
url: string;
4233
options: RawAxiosRequestConfig;
4334
}
4435

45-
/**
46-
*
47-
* @export
48-
* @class BaseAPI
49-
*/
5036
export class BaseAPI {
5137
protected configuration: Configuration | undefined;
5238

@@ -58,12 +44,6 @@ export class BaseAPI {
5844
}
5945
};
6046

61-
/**
62-
*
63-
* @export
64-
* @class RequiredError
65-
* @extends {Error}
66-
*/
6747
export class RequiredError extends Error {
6848
constructor(public field: string, msg?: string) {
6949
super(msg);
@@ -78,9 +58,5 @@ interface ServerMap {
7858
}[];
7959
}
8060

81-
/**
82-
*
83-
* @export
84-
*/
8561
export const operationServerMap: ServerMap = {
8662
}

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/common.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,18 @@ import type { RequestArgs } from "./base";
1818
import type { AxiosInstance, AxiosResponse } from 'axios';
1919
import { RequiredError } from "./base";
2020

21-
/**
22-
*
23-
* @export
24-
*/
2521
export const DUMMY_BASE_URL = 'https://example.com'
2622

2723
/**
2824
*
2925
* @throws {RequiredError}
30-
* @export
3126
*/
3227
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
3328
if (paramValue === null || paramValue === undefined) {
3429
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
3530
}
3631
}
3732

38-
/**
39-
*
40-
* @export
41-
*/
4233
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
4334
if (configuration && configuration.apiKey) {
4435
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
@@ -48,20 +39,12 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
4839
}
4940
}
5041

51-
/**
52-
*
53-
* @export
54-
*/
5542
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
5643
if (configuration && (configuration.username || configuration.password)) {
5744
object["auth"] = { username: configuration.username, password: configuration.password };
5845
}
5946
}
6047

61-
/**
62-
*
63-
* @export
64-
*/
6548
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
6649
if (configuration && configuration.accessToken) {
6750
const accessToken = typeof configuration.accessToken === 'function'
@@ -71,10 +54,6 @@ export const setBearerAuthToObject = async function (object: any, configuration?
7154
}
7255
}
7356

74-
/**
75-
*
76-
* @export
77-
*/
7857
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
7958
if (configuration && configuration.accessToken) {
8059
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
@@ -106,20 +85,12 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
10685
}
10786
}
10887

109-
/**
110-
*
111-
* @export
112-
*/
11388
export const setSearchParams = function (url: URL, ...objects: any[]) {
11489
const searchParams = new URLSearchParams(url.search);
11590
setFlattenedQueryParams(searchParams, objects);
11691
url.search = searchParams.toString();
11792
}
11893

119-
/**
120-
*
121-
* @export
122-
*/
12394
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
12495
const nonString = typeof value !== 'string';
12596
const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -130,18 +101,10 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
130101
: (value || "");
131102
}
132103

133-
/**
134-
*
135-
* @export
136-
*/
137104
export const toPathString = function (url: URL) {
138105
return url.pathname + url.search + url.hash
139106
}
140107

141-
/**
142-
*
143-
* @export
144-
*/
145108
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
146109
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
147110
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/configuration.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,49 +28,32 @@ export class Configuration {
2828
/**
2929
* parameter for apiKey security
3030
* @param name security name
31-
* @memberof Configuration
3231
*/
3332
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
3433
/**
3534
* parameter for basic security
36-
*
37-
* @type {string}
38-
* @memberof Configuration
3935
*/
4036
username?: string;
4137
/**
4238
* parameter for basic security
43-
*
44-
* @type {string}
45-
* @memberof Configuration
4639
*/
4740
password?: string;
4841
/**
4942
* parameter for oauth2 security
5043
* @param name security name
5144
* @param scopes oauth2 scope
52-
* @memberof Configuration
5345
*/
5446
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
5547
/**
5648
* override base path
57-
*
58-
* @type {string}
59-
* @memberof Configuration
6049
*/
6150
basePath?: string;
6251
/**
6352
* override server index
64-
*
65-
* @type {number}
66-
* @memberof Configuration
6753
*/
6854
serverIndex?: number;
6955
/**
7056
* base options for axios calls
71-
*
72-
* @type {any}
73-
* @memberof Configuration
7457
*/
7558
baseOptions?: any;
7659
/**

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/models/address.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,74 +16,50 @@
1616

1717
/**
1818
* Shipping address that represents the origin or destination location.
19-
* @export
20-
* @interface Address
2119
*/
2220
export interface Address {
2321
/**
2422
* First line of the address text.
25-
* @type {string}
26-
* @memberof Address
2723
*/
2824
'addressLine1': string;
2925
/**
3026
* Optional second line of the address text.
31-
* @type {string}
32-
* @memberof Address
3327
*/
3428
'addressLine2'?: string;
3529
/**
3630
* Optional third line of the address text.
37-
* @type {string}
38-
* @memberof Address
3931
*/
4032
'addressLine3'?: string;
4133
/**
4234
* Optional city where this address is located.
43-
* @type {string}
44-
* @memberof Address
4535
*/
4636
'city'?: string;
4737
/**
4838
* Two-digit, ISO 3166-1 alpha-2 formatted country code where this address is located.
49-
* @type {string}
50-
* @memberof Address
5139
*/
5240
'countryCode': string;
5341
/**
5442
* Optional county where this address is located.
55-
* @type {string}
56-
* @memberof Address
5743
*/
5844
'county'?: string;
5945
/**
6046
* Optional district where this address is located.
61-
* @type {string}
62-
* @memberof Address
6347
*/
6448
'district'?: string;
6549
/**
6650
* Name of the person, business, or institution at this address.
67-
* @type {string}
68-
* @memberof Address
6951
*/
7052
'name': string;
7153
/**
7254
* Optional E.164-formatted phone number for an available contact at this address.
73-
* @type {string}
74-
* @memberof Address
7555
*/
7656
'phoneNumber'?: string;
7757
/**
7858
* Optional postal code where this address is located.
79-
* @type {string}
80-
* @memberof Address
8159
*/
8260
'postalCode'?: string;
8361
/**
8462
* State or region where this address is located. Note that this is contextual to the specified country code.
85-
* @type {string}
86-
* @memberof Address
8763
*/
8864
'stateOrRegion': string;
8965
}

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/models/carrier-code-type.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
/**
1818
* Denotes the type for the carrier.
19-
* @export
20-
* @enum {string}
2119
*/
2220

2321
export const CarrierCodeType = {

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/models/carrier-code.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,11 @@ import type { CarrierCodeType } from './carrier-code-type';
1919

2020
/**
2121
* Identifies the carrier that will deliver the shipment.
22-
* @export
23-
* @interface CarrierCode
2422
*/
2523
export interface CarrierCode {
26-
/**
27-
*
28-
* @type {CarrierCodeType}
29-
* @memberof CarrierCode
30-
*/
3124
'carrierCodeType'?: CarrierCodeType;
3225
/**
3326
* Value of the carrier code.
34-
* @type {string}
35-
* @memberof CarrierCode
3627
*/
3728
'carrierCodeValue'?: string;
3829
}

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/models/destination-details.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,15 @@ import type { Address } from './address';
1919

2020
/**
2121
* Destination details of an inbound order based on the assigned region and DC for the order.
22-
* @export
23-
* @interface DestinationDetails
2422
*/
2523
export interface DestinationDetails {
26-
/**
27-
*
28-
* @type {Address}
29-
* @memberof DestinationDetails
30-
*/
3124
'destinationAddress'?: Address;
3225
/**
3326
* Assigned region where the order will be shipped. This can differ from what was passed as preference. AWD currently supports following region IDs: [us-west, us-east, us-southcentral, us-southeast]
34-
* @type {string}
35-
* @memberof DestinationDetails
3627
*/
3728
'destinationRegion'?: string;
3829
/**
3930
* Unique ID of the confirmed shipment being shipped to the assigned destination. This will be available only after an inbound order is confirmed and can be used to track the shipment.
40-
* @type {string}
41-
* @memberof DestinationDetails
4231
*/
4332
'shipmentId'?: string;
4433
}

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/models/dimension-unit-of-measurement.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
/**
1818
* Unit of measurement for package dimensions.
19-
* @export
20-
* @enum {string}
2119
*/
2220

2321
export const DimensionUnitOfMeasurement = {

clients/amazon-warehousing-and-distribution-api-2024-05-09/src/api-model/models/distribution-package-contents.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,14 @@ import type { ProductQuantity } from './product-quantity';
2222

2323
/**
2424
* Represents the contents inside a package, which can be products or a nested package.
25-
* @export
26-
* @interface DistributionPackageContents
2725
*/
2826
export interface DistributionPackageContents {
2927
/**
3028
* This is required only when `DistributionPackageType=PALLET`.
31-
* @type {Array<DistributionPackageQuantity>}
32-
* @memberof DistributionPackageContents
3329
*/
3430
'packages'?: Array<DistributionPackageQuantity>;
3531
/**
3632
* This is required only when `DistributionPackageType=CASE`.
37-
* @type {Array<ProductQuantity>}
38-
* @memberof DistributionPackageContents
3933
*/
4034
'products'?: Array<ProductQuantity>;
4135
}

0 commit comments

Comments
 (0)