ebay-mcp 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +586 -0
- package/build/api/account-management/account.d.ts +216 -0
- package/build/api/account-management/account.js +305 -0
- package/build/api/analytics-and-report/analytics.d.ts +33 -0
- package/build/api/analytics-and-report/analytics.js +102 -0
- package/build/api/client.d.ts +89 -0
- package/build/api/client.js +343 -0
- package/build/api/communication/feedback.d.ts +45 -0
- package/build/api/communication/feedback.js +119 -0
- package/build/api/communication/message.d.ts +55 -0
- package/build/api/communication/message.js +131 -0
- package/build/api/communication/negotiation.d.ts +39 -0
- package/build/api/communication/negotiation.js +97 -0
- package/build/api/communication/notification.d.ts +128 -0
- package/build/api/communication/notification.js +373 -0
- package/build/api/index.d.ts +96 -0
- package/build/api/index.js +121 -0
- package/build/api/listing-management/inventory.d.ts +216 -0
- package/build/api/listing-management/inventory.js +633 -0
- package/build/api/listing-metadata/metadata.d.ts +154 -0
- package/build/api/listing-metadata/metadata.js +485 -0
- package/build/api/listing-metadata/taxonomy.d.ts +38 -0
- package/build/api/listing-metadata/taxonomy.js +58 -0
- package/build/api/marketing-and-promotions/marketing.d.ts +395 -0
- package/build/api/marketing-and-promotions/marketing.js +565 -0
- package/build/api/marketing-and-promotions/recommendation.d.ts +20 -0
- package/build/api/marketing-and-promotions/recommendation.js +32 -0
- package/build/api/order-management/dispute.d.ts +65 -0
- package/build/api/order-management/dispute.js +69 -0
- package/build/api/order-management/fulfillment.d.ts +80 -0
- package/build/api/order-management/fulfillment.js +89 -0
- package/build/api/other/compliance.d.ts +26 -0
- package/build/api/other/compliance.js +47 -0
- package/build/api/other/edelivery.d.ts +153 -0
- package/build/api/other/edelivery.js +219 -0
- package/build/api/other/identity.d.ts +17 -0
- package/build/api/other/identity.js +24 -0
- package/build/api/other/translation.d.ts +14 -0
- package/build/api/other/translation.js +22 -0
- package/build/api/other/vero.d.ts +30 -0
- package/build/api/other/vero.js +48 -0
- package/build/auth/oauth-metadata.d.ts +46 -0
- package/build/auth/oauth-metadata.js +59 -0
- package/build/auth/oauth-middleware.d.ts +35 -0
- package/build/auth/oauth-middleware.js +99 -0
- package/build/auth/oauth-types.d.ts +66 -0
- package/build/auth/oauth-types.js +4 -0
- package/build/auth/oauth.d.ts +93 -0
- package/build/auth/oauth.js +383 -0
- package/build/auth/scope-utils.d.ts +70 -0
- package/build/auth/scope-utils.js +304 -0
- package/build/auth/token-verifier.d.ts +57 -0
- package/build/auth/token-verifier.js +172 -0
- package/build/config/environment.d.ts +61 -0
- package/build/config/environment.js +260 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +98 -0
- package/build/schemas/account-management/account.d.ts +5324 -0
- package/build/schemas/account-management/account.js +366 -0
- package/build/schemas/analytics/analytics.d.ts +167 -0
- package/build/schemas/analytics/analytics.js +191 -0
- package/build/schemas/communication/messages.d.ts +1872 -0
- package/build/schemas/communication/messages.js +348 -0
- package/build/schemas/fulfillment/orders.d.ts +4655 -0
- package/build/schemas/fulfillment/orders.js +317 -0
- package/build/schemas/index.d.ts +2100 -0
- package/build/schemas/index.js +68 -0
- package/build/schemas/inventory-management/inventory.d.ts +6419 -0
- package/build/schemas/inventory-management/inventory.js +450 -0
- package/build/schemas/marketing/marketing.d.ts +14181 -0
- package/build/schemas/marketing/marketing.js +1088 -0
- package/build/schemas/metadata/metadata.d.ts +5259 -0
- package/build/schemas/metadata/metadata.js +614 -0
- package/build/schemas/other/other-apis.d.ts +257 -0
- package/build/schemas/other/other-apis.js +372 -0
- package/build/schemas/taxonomy/taxonomy.d.ts +215 -0
- package/build/schemas/taxonomy/taxonomy.js +571 -0
- package/build/scripts/auto-setup.d.ts +12 -0
- package/build/scripts/auto-setup.js +277 -0
- package/build/scripts/diagnostics.d.ts +8 -0
- package/build/scripts/diagnostics.js +299 -0
- package/build/scripts/download-specs.d.ts +1 -0
- package/build/scripts/download-specs.js +116 -0
- package/build/scripts/interactive-setup.d.ts +21 -0
- package/build/scripts/interactive-setup.js +723 -0
- package/build/server-http.d.ts +11 -0
- package/build/server-http.js +361 -0
- package/build/tools/definitions/account-with-schemas.d.ts +39 -0
- package/build/tools/definitions/account-with-schemas.js +170 -0
- package/build/tools/definitions/account.d.ts +12 -0
- package/build/tools/definitions/account.js +428 -0
- package/build/tools/definitions/analytics.d.ts +25 -0
- package/build/tools/definitions/analytics.js +66 -0
- package/build/tools/definitions/communication.d.ts +12 -0
- package/build/tools/definitions/communication.js +151 -0
- package/build/tools/definitions/fulfillment.d.ts +12 -0
- package/build/tools/definitions/fulfillment.js +326 -0
- package/build/tools/definitions/index.d.ts +25 -0
- package/build/tools/definitions/index.js +37 -0
- package/build/tools/definitions/inventory.d.ts +12 -0
- package/build/tools/definitions/inventory.js +429 -0
- package/build/tools/definitions/marketing.d.ts +12 -0
- package/build/tools/definitions/marketing.js +1095 -0
- package/build/tools/definitions/metadata.d.ts +12 -0
- package/build/tools/definitions/metadata.js +188 -0
- package/build/tools/definitions/other.d.ts +13 -0
- package/build/tools/definitions/other.js +309 -0
- package/build/tools/definitions/taxonomy.d.ts +25 -0
- package/build/tools/definitions/taxonomy.js +64 -0
- package/build/tools/definitions/token-management.d.ts +35 -0
- package/build/tools/definitions/token-management.js +103 -0
- package/build/tools/index.d.ts +11 -0
- package/build/tools/index.js +1003 -0
- package/build/tools/schemas.d.ts +14764 -0
- package/build/tools/schemas.js +667 -0
- package/build/tools/tool-definitions.d.ts +35 -0
- package/build/tools/tool-definitions.js +3534 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.d.ts +197 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.js +5 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.d.ts +155 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.js +5 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.d.ts +246 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.js +5 -0
- package/build/types/ebay-enums.d.ts +1204 -0
- package/build/types/ebay-enums.js +1330 -0
- package/build/types/ebay.d.ts +143 -0
- package/build/types/ebay.js +123 -0
- package/build/types/index.d.ts +6 -0
- package/build/types/index.js +10 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.d.ts +2579 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.js +5 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.d.ts +446 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.d.ts +705 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.js +5 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.d.ts +590 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.d.ts +1276 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.d.ts +277 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.d.ts +3133 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.d.ts +2289 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.js +5 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.d.ts +1869 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.d.ts +178 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.d.ts +128 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.d.ts +417 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.d.ts +273 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.d.ts +2537 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.js +5 -0
- package/build/utils/account-management/account.d.ts +1094 -0
- package/build/utils/account-management/account.js +831 -0
- package/build/utils/communication/feedback.d.ts +152 -0
- package/build/utils/communication/feedback.js +216 -0
- package/build/utils/communication/message.d.ts +174 -0
- package/build/utils/communication/message.js +242 -0
- package/build/utils/communication/negotiation.d.ts +123 -0
- package/build/utils/communication/negotiation.js +150 -0
- package/build/utils/communication/notification.d.ts +370 -0
- package/build/utils/communication/notification.js +369 -0
- package/build/utils/date-converter.d.ts +59 -0
- package/build/utils/date-converter.js +160 -0
- package/build/utils/llm-client-detector.d.ts +54 -0
- package/build/utils/llm-client-detector.js +318 -0
- package/build/utils/oauth-helper.d.ts +37 -0
- package/build/utils/oauth-helper.js +315 -0
- package/build/utils/order-management/dispute.d.ts +346 -0
- package/build/utils/order-management/dispute.js +369 -0
- package/build/utils/order-management/fulfillment.d.ts +200 -0
- package/build/utils/order-management/fulfillment.js +205 -0
- package/build/utils/other/compliance.d.ts +49 -0
- package/build/utils/other/compliance.js +76 -0
- package/build/utils/other/edelivery.d.ts +310 -0
- package/build/utils/other/edelivery.js +241 -0
- package/build/utils/other/identity.d.ts +13 -0
- package/build/utils/other/identity.js +13 -0
- package/build/utils/other/translation.d.ts +28 -0
- package/build/utils/other/translation.js +41 -0
- package/build/utils/other/vero.d.ts +61 -0
- package/build/utils/other/vero.js +90 -0
- package/build/utils/scope-helper.d.ts +49 -0
- package/build/utils/scope-helper.js +207 -0
- package/build/utils/security-checker.d.ts +46 -0
- package/build/utils/security-checker.js +248 -0
- package/build/utils/setup-validator.d.ts +25 -0
- package/build/utils/setup-validator.js +305 -0
- package/build/utils/token-utils.d.ts +40 -0
- package/build/utils/token-utils.js +40 -0
- package/package.json +115 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core eBay API types
|
|
3
|
+
*/
|
|
4
|
+
import { type LocaleEnum } from "./ebay-enums.js";
|
|
5
|
+
export interface EbayConfig {
|
|
6
|
+
clientId: string;
|
|
7
|
+
clientSecret: string;
|
|
8
|
+
redirectUri?: string;
|
|
9
|
+
locale?: LocaleEnum;
|
|
10
|
+
environment: 'production' | 'sandbox';
|
|
11
|
+
accessToken?: string;
|
|
12
|
+
refreshToken?: string;
|
|
13
|
+
appAccessToken?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* OAuth token response from eBay
|
|
17
|
+
* Supports both client credentials and authorization code grants
|
|
18
|
+
*/
|
|
19
|
+
export interface EbayAuthToken {
|
|
20
|
+
accessToken: string;
|
|
21
|
+
tokenType: string;
|
|
22
|
+
expiresIn: number;
|
|
23
|
+
refreshToken: string;
|
|
24
|
+
refreshTokenExpiresIn?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* App access token response from client credentials flow
|
|
28
|
+
* Used for application-level operations (1,000 requests/day)
|
|
29
|
+
* No refresh token - app tokens are short-lived and re-generated
|
|
30
|
+
*/
|
|
31
|
+
export interface EbayAppAccessTokenResponse {
|
|
32
|
+
access_token: string;
|
|
33
|
+
expires_in: number;
|
|
34
|
+
token_type: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* User access token with refresh token
|
|
38
|
+
* Used for user-specific operations (10,000-50,000 requests/day)
|
|
39
|
+
*/
|
|
40
|
+
export interface EbayUserToken {
|
|
41
|
+
access_token: string;
|
|
42
|
+
refresh_token: string;
|
|
43
|
+
token_type: string;
|
|
44
|
+
expires_in: number;
|
|
45
|
+
refresh_token_expires_in: number;
|
|
46
|
+
scope?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Stored user token data with expiry timestamps
|
|
50
|
+
*/
|
|
51
|
+
export interface StoredTokenData {
|
|
52
|
+
userAccessToken: string;
|
|
53
|
+
userRefreshToken: string;
|
|
54
|
+
tokenType: string;
|
|
55
|
+
clientId: string;
|
|
56
|
+
clientSecret: string;
|
|
57
|
+
redirectUri?: string;
|
|
58
|
+
locale?: LocaleEnum;
|
|
59
|
+
envAppToken?: string;
|
|
60
|
+
userAccessTokenExpiry?: number;
|
|
61
|
+
userRefreshTokenExpiry?: number;
|
|
62
|
+
scope?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface EbayApiResponse<T = unknown> {
|
|
65
|
+
data: T;
|
|
66
|
+
warnings?: {
|
|
67
|
+
category: string;
|
|
68
|
+
domain: string;
|
|
69
|
+
errorId: number;
|
|
70
|
+
message: string;
|
|
71
|
+
}[];
|
|
72
|
+
}
|
|
73
|
+
export interface EbayApiError {
|
|
74
|
+
errors: {
|
|
75
|
+
errorId: number;
|
|
76
|
+
domain: string;
|
|
77
|
+
category: string;
|
|
78
|
+
message: string;
|
|
79
|
+
longMessage?: string;
|
|
80
|
+
parameters?: {
|
|
81
|
+
name: string;
|
|
82
|
+
value: string;
|
|
83
|
+
}[];
|
|
84
|
+
}[];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* API category identifiers matching docs structure
|
|
88
|
+
*/
|
|
89
|
+
export declare enum EbayApiCategory {
|
|
90
|
+
ACCOUNT_MANAGEMENT = "account-management",
|
|
91
|
+
ANALYTICS_AND_REPORT = "analytics-and-report",
|
|
92
|
+
COMMUNICATION = "communication",
|
|
93
|
+
LISTING_MANAGEMENT = "listing-management",
|
|
94
|
+
LISTING_METADATA = "listing-metadata",
|
|
95
|
+
MARKETING_AND_PROMOTIONS = "marketing-and-promotions",
|
|
96
|
+
ORDER_MANAGEMENT = "order-management",
|
|
97
|
+
OTHER = "other"
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Specific API identifiers
|
|
101
|
+
*/
|
|
102
|
+
export declare enum EbayApi {
|
|
103
|
+
ACCOUNT = "sell/account/v1",
|
|
104
|
+
ANALYTICS = "sell/analytics/v1",
|
|
105
|
+
NEGOTIATION = "sell/negotiation/v1",
|
|
106
|
+
MESSAGE = "commerce/message/v1",
|
|
107
|
+
NOTIFICATION = "commerce/notification/v1",
|
|
108
|
+
FEEDBACK = "commerce/feedback/v1",
|
|
109
|
+
INVENTORY = "sell/inventory/v1",
|
|
110
|
+
METADATA = "sell/metadata/v1",
|
|
111
|
+
MARKETING = "sell/marketing/v1",
|
|
112
|
+
RECOMMENDATION = "sell/recommendation/v1",
|
|
113
|
+
FULFILLMENT = "sell/fulfillment/v1",
|
|
114
|
+
IDENTITY = "commerce/identity/v1",
|
|
115
|
+
VERO = "commerce/vero/v1",
|
|
116
|
+
COMPLIANCE = "sell/compliance/v1",
|
|
117
|
+
TRANSLATION = "commerce/translation/v1",
|
|
118
|
+
EDELIVERY = "sell/logistics/v1"
|
|
119
|
+
}
|
|
120
|
+
export declare const productionScopes: string[];
|
|
121
|
+
export declare const sandboxScopes: string[];
|
|
122
|
+
/**
|
|
123
|
+
* OAuth API endpoints
|
|
124
|
+
*/
|
|
125
|
+
export declare enum EbayOAuthApi {
|
|
126
|
+
TOKEN = "/identity/v1/oauth2/token",
|
|
127
|
+
AUTHORIZE_SANDBOX = "https://auth.sandbox.ebay.com/oauth2/authorize",
|
|
128
|
+
AUTHORIZE_PRODUCTION = "https://auth.ebay.com/oauth2/authorize",
|
|
129
|
+
SIGNIN_SANDBOX = "https://signin.sandbox.ebay.com/signin",
|
|
130
|
+
SIGNIN_PRODUCTION = "https://signin.ebay.com/signin"
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* OAuth parameter descriptions
|
|
134
|
+
*/
|
|
135
|
+
export interface EbayOAuthParams {
|
|
136
|
+
client_id: string;
|
|
137
|
+
redirect_uri: string;
|
|
138
|
+
response_type: 'code';
|
|
139
|
+
scope: string;
|
|
140
|
+
state?: string;
|
|
141
|
+
locale?: string;
|
|
142
|
+
prompt?: 'login';
|
|
143
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core eBay API types
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* API category identifiers matching docs structure
|
|
6
|
+
*/
|
|
7
|
+
export var EbayApiCategory;
|
|
8
|
+
(function (EbayApiCategory) {
|
|
9
|
+
EbayApiCategory["ACCOUNT_MANAGEMENT"] = "account-management";
|
|
10
|
+
EbayApiCategory["ANALYTICS_AND_REPORT"] = "analytics-and-report";
|
|
11
|
+
EbayApiCategory["COMMUNICATION"] = "communication";
|
|
12
|
+
EbayApiCategory["LISTING_MANAGEMENT"] = "listing-management";
|
|
13
|
+
EbayApiCategory["LISTING_METADATA"] = "listing-metadata";
|
|
14
|
+
EbayApiCategory["MARKETING_AND_PROMOTIONS"] = "marketing-and-promotions";
|
|
15
|
+
EbayApiCategory["ORDER_MANAGEMENT"] = "order-management";
|
|
16
|
+
EbayApiCategory["OTHER"] = "other";
|
|
17
|
+
})(EbayApiCategory || (EbayApiCategory = {}));
|
|
18
|
+
/**
|
|
19
|
+
* Specific API identifiers
|
|
20
|
+
*/
|
|
21
|
+
export var EbayApi;
|
|
22
|
+
(function (EbayApi) {
|
|
23
|
+
// Account Management
|
|
24
|
+
EbayApi["ACCOUNT"] = "sell/account/v1";
|
|
25
|
+
// Analytics and Report
|
|
26
|
+
EbayApi["ANALYTICS"] = "sell/analytics/v1";
|
|
27
|
+
// Communication
|
|
28
|
+
EbayApi["NEGOTIATION"] = "sell/negotiation/v1";
|
|
29
|
+
EbayApi["MESSAGE"] = "commerce/message/v1";
|
|
30
|
+
EbayApi["NOTIFICATION"] = "commerce/notification/v1";
|
|
31
|
+
EbayApi["FEEDBACK"] = "commerce/feedback/v1";
|
|
32
|
+
// Listing Management
|
|
33
|
+
EbayApi["INVENTORY"] = "sell/inventory/v1";
|
|
34
|
+
// Listing Metadata
|
|
35
|
+
EbayApi["METADATA"] = "sell/metadata/v1";
|
|
36
|
+
// Marketing and Promotions
|
|
37
|
+
EbayApi["MARKETING"] = "sell/marketing/v1";
|
|
38
|
+
EbayApi["RECOMMENDATION"] = "sell/recommendation/v1";
|
|
39
|
+
// Order Management
|
|
40
|
+
EbayApi["FULFILLMENT"] = "sell/fulfillment/v1";
|
|
41
|
+
// Other APIs
|
|
42
|
+
EbayApi["IDENTITY"] = "commerce/identity/v1";
|
|
43
|
+
EbayApi["VERO"] = "commerce/vero/v1";
|
|
44
|
+
EbayApi["COMPLIANCE"] = "sell/compliance/v1";
|
|
45
|
+
EbayApi["TRANSLATION"] = "commerce/translation/v1";
|
|
46
|
+
EbayApi["EDELIVERY"] = "sell/logistics/v1";
|
|
47
|
+
})(EbayApi || (EbayApi = {}));
|
|
48
|
+
export const productionScopes = [
|
|
49
|
+
'https://api.ebay.com/oauth/api_scope',
|
|
50
|
+
'https://api.ebay.com/oauth/api_scope/sell.marketing.readonly',
|
|
51
|
+
'https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
|
|
52
|
+
'https://api.ebay.com/oauth/api_scope/sell.inventory',
|
|
53
|
+
'https://api.ebay.com/oauth/api_scope/sell.account',
|
|
54
|
+
'https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
55
|
+
'https://api.ebay.com/oauth/api_scope/sell.analytics.readonly',
|
|
56
|
+
'https://api.ebay.com/oauth/api_scope/sell.marketing',
|
|
57
|
+
'https://api.ebay.com/oauth/api_scope/sell.account.readonly',
|
|
58
|
+
'https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly',
|
|
59
|
+
'https://api.ebay.com/oauth/api_scope/sell.finances',
|
|
60
|
+
'https://api.ebay.com/oauth/api_scope/sell.payment.dispute',
|
|
61
|
+
'https://api.ebay.com/oauth/api_scope/commerce.identity.readonly',
|
|
62
|
+
'https://api.ebay.com/oauth/api_scope/sell.reputation',
|
|
63
|
+
'https://api.ebay.com/oauth/api_scope/sell.reputation.readonly',
|
|
64
|
+
'https://api.ebay.com/oauth/api_scope/commerce.notification.subscription',
|
|
65
|
+
'https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly',
|
|
66
|
+
'https://api.ebay.com/oauth/api_scope/sell.stores',
|
|
67
|
+
'https://api.ebay.com/oauth/api_scope/sell.stores.readonly',
|
|
68
|
+
'https://api.ebay.com/oauth/scope/sell.edelivery',
|
|
69
|
+
'https://api.ebay.com/oauth/api_scope/commerce.vero',
|
|
70
|
+
'https://api.ebay.com/oauth/api_scope/sell.inventory.mapping',
|
|
71
|
+
'https://api.ebay.com/oauth/api_scope/commerce.message',
|
|
72
|
+
'https://api.ebay.com/oauth/api_scope/commerce.feedback',
|
|
73
|
+
'https://api.ebay.com/oauth/api_scope/commerce.shipping',
|
|
74
|
+
'https://api.ebay.com/oauth/api_scope/commerce.feedback.readonly',
|
|
75
|
+
];
|
|
76
|
+
export const sandboxScopes = [
|
|
77
|
+
'https://api.ebay.com/oauth/api_scope',
|
|
78
|
+
'https://api.ebay.com/oauth/api_scope/sell.marketing.readonly',
|
|
79
|
+
'https://api.ebay.com/oauth/api_scope/sell.marketing',
|
|
80
|
+
'https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
|
|
81
|
+
'https://api.ebay.com/oauth/api_scope/sell.inventory',
|
|
82
|
+
'https://api.ebay.com/oauth/api_scope/sell.account.readonly',
|
|
83
|
+
'https://api.ebay.com/oauth/api_scope/sell.account',
|
|
84
|
+
'https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly',
|
|
85
|
+
'https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
86
|
+
'https://api.ebay.com/oauth/api_scope/sell.analytics.readonly',
|
|
87
|
+
'https://api.ebay.com/oauth/api_scope/sell.finances',
|
|
88
|
+
'https://api.ebay.com/oauth/api_scope/sell.payment.dispute',
|
|
89
|
+
'https://api.ebay.com/oauth/api_scope/commerce.identity.readonly',
|
|
90
|
+
'https://api.ebay.com/oauth/api_scope/sell.reputation',
|
|
91
|
+
'https://api.ebay.com/oauth/api_scope/sell.reputation.readonly',
|
|
92
|
+
'https://api.ebay.com/oauth/api_scope/commerce.notification.subscription',
|
|
93
|
+
'https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly',
|
|
94
|
+
'https://api.ebay.com/oauth/api_scope/sell.stores',
|
|
95
|
+
'https://api.ebay.com/oauth/api_scope/sell.stores.readonly',
|
|
96
|
+
'https://api.ebay.com/oauth/api_scope/sell.edelivery',
|
|
97
|
+
'https://api.ebay.com/oauth/api_scope/commerce.vero',
|
|
98
|
+
'https://api.ebay.com/oauth/api_scope/sell.inventory.mapping',
|
|
99
|
+
'https://api.ebay.com/oauth/api_scope/commerce.message',
|
|
100
|
+
'https://api.ebay.com/oauth/api_scope/commerce.feedback',
|
|
101
|
+
'https://api.ebay.com/oauth/api_scope/commerce.shipping',
|
|
102
|
+
'https://api.ebay.com/oauth/api_scope/commerce.feedback.readonly',
|
|
103
|
+
'https://api.ebay.com/oauth/api_scope/sell.item.draft',
|
|
104
|
+
'https://api.ebay.com/oauth/api_scope/sell.item',
|
|
105
|
+
'https://api.ebay.com/oauth/api_scope/sell.marketplace.insights.readonly',
|
|
106
|
+
'https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly',
|
|
107
|
+
'https://api.ebay.com/oauth/api_scope/commerce.identity.email.readonly',
|
|
108
|
+
'https://api.ebay.com/oauth/api_scope/commerce.identity.phone.readonly',
|
|
109
|
+
'https://api.ebay.com/oauth/api_scope/commerce.identity.address.readonly',
|
|
110
|
+
'https://api.ebay.com/oauth/api_scope/commerce.identity.name.readonly',
|
|
111
|
+
'https://api.ebay.com/oauth/api_scope/commerce.identity.status.readonly',
|
|
112
|
+
];
|
|
113
|
+
/**
|
|
114
|
+
* OAuth API endpoints
|
|
115
|
+
*/
|
|
116
|
+
export var EbayOAuthApi;
|
|
117
|
+
(function (EbayOAuthApi) {
|
|
118
|
+
EbayOAuthApi["TOKEN"] = "/identity/v1/oauth2/token";
|
|
119
|
+
EbayOAuthApi["AUTHORIZE_SANDBOX"] = "https://auth.sandbox.ebay.com/oauth2/authorize";
|
|
120
|
+
EbayOAuthApi["AUTHORIZE_PRODUCTION"] = "https://auth.ebay.com/oauth2/authorize";
|
|
121
|
+
EbayOAuthApi["SIGNIN_SANDBOX"] = "https://signin.sandbox.ebay.com/signin";
|
|
122
|
+
EbayOAuthApi["SIGNIN_PRODUCTION"] = "https://signin.ebay.com/signin";
|
|
123
|
+
})(EbayOAuthApi || (EbayOAuthApi = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main types index
|
|
3
|
+
* Exports all eBay types for easy importing
|
|
4
|
+
*/
|
|
5
|
+
// Core eBay types
|
|
6
|
+
export * from './ebay.js';
|
|
7
|
+
// eBay API enums
|
|
8
|
+
export * from './ebay-enums.js';
|
|
9
|
+
// OpenAPI generated types are imported directly as needed
|
|
10
|
+
// due to their size and specific usage patterns
|