-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: api configuration parameters's properties
* remove apiKey, formDataCtor * add explicitly set for basePath * remove apiModelProperties
- Loading branch information
1 parent
e21d3d6
commit dc2da96
Showing
12 changed files
with
54 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/types/api-clients/amazon-selling-partner-api-base-path.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const enum ProductionApiBasePath { | ||
NA = 'https://sellingpartnerapi-na.amazon.com', | ||
EU = 'https://sellingpartnerapi-eu.amazon.com', | ||
FE = 'https://sellingpartnerapi-fe.amazon.com', | ||
} | ||
|
||
export const enum SandboxApiBasePath { | ||
NA = 'https://sandbox.sellingpartnerapi-na.amazon.com', | ||
EU = 'https://sandbox.sellingpartnerapi-eu.amazon.com', | ||
FE = 'https://sandbox.sellingpartnerapi-fe.amazon.com', | ||
} | ||
|
||
export type ApiBasePath = ProductionApiBasePath | SandboxApiBasePath | ||
|
||
export const DEFAULT_API_BASE_PATH = ProductionApiBasePath.NA |
2 changes: 1 addition & 1 deletion
2
...lients/selling-partner-api-credentials.ts → ...amazon-selling-partner-api-credentials.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export * from './amazon-selling-partner-api-credentials' | ||
export * from './amazon-selling-partner-api-region' | ||
export * from './api-configuration-parameters' | ||
export * from './default-api-base-path' | ||
export * from './selling-partner-api-credentials' | ||
export * from './selling-partner-api-model-properties' | ||
export * from './amazon-selling-partner-api-base-path' |
7 changes: 0 additions & 7 deletions
7
src/types/api-clients/selling-partner-api-model-properties.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters