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,152 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for getAwaitingFeedback method
|
|
4
|
+
* Endpoint: GET /awaiting_feedback
|
|
5
|
+
* Params: GetAwaitingFeedbackParams - filter, limit, offset, sort
|
|
6
|
+
*/
|
|
7
|
+
export declare const getAwaitingFeedbackSchema: z.ZodObject<{
|
|
8
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
9
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
10
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
11
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
sort?: string | undefined;
|
|
14
|
+
filter?: string | undefined;
|
|
15
|
+
limit?: string | undefined;
|
|
16
|
+
offset?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
sort?: string | undefined;
|
|
19
|
+
filter?: string | undefined;
|
|
20
|
+
limit?: string | undefined;
|
|
21
|
+
offset?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Schema for getFeedback method
|
|
25
|
+
* Endpoint: GET /feedback
|
|
26
|
+
* Params: GetFeedbackParams - user_id (required), feedback_type (required), feedback_id, filter, limit, listing_id, offset, order_line_item_id, sort, transaction_id
|
|
27
|
+
*/
|
|
28
|
+
export declare const getFeedbackSchema: z.ZodObject<{
|
|
29
|
+
user_id: z.ZodString;
|
|
30
|
+
feedback_type: z.ZodString;
|
|
31
|
+
feedback_id: z.ZodOptional<z.ZodString>;
|
|
32
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
33
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
34
|
+
listing_id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
36
|
+
order_line_item_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
38
|
+
transaction_id: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
user_id: string;
|
|
41
|
+
feedback_type: string;
|
|
42
|
+
sort?: string | undefined;
|
|
43
|
+
filter?: string | undefined;
|
|
44
|
+
limit?: string | undefined;
|
|
45
|
+
offset?: string | undefined;
|
|
46
|
+
transaction_id?: string | undefined;
|
|
47
|
+
listing_id?: string | undefined;
|
|
48
|
+
feedback_id?: string | undefined;
|
|
49
|
+
order_line_item_id?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
user_id: string;
|
|
52
|
+
feedback_type: string;
|
|
53
|
+
sort?: string | undefined;
|
|
54
|
+
filter?: string | undefined;
|
|
55
|
+
limit?: string | undefined;
|
|
56
|
+
offset?: string | undefined;
|
|
57
|
+
transaction_id?: string | undefined;
|
|
58
|
+
listing_id?: string | undefined;
|
|
59
|
+
feedback_id?: string | undefined;
|
|
60
|
+
order_line_item_id?: string | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
/**
|
|
63
|
+
* Schema for getFeedbackRatingSummary method
|
|
64
|
+
* Endpoint: GET /feedback_rating_summary
|
|
65
|
+
* Params: GetFeedbackRatingSummaryParams - user_id (required), filter (required)
|
|
66
|
+
*/
|
|
67
|
+
export declare const getFeedbackRatingSummarySchema: z.ZodObject<{
|
|
68
|
+
user_id: z.ZodString;
|
|
69
|
+
filter: z.ZodString;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
filter: string;
|
|
72
|
+
user_id: string;
|
|
73
|
+
}, {
|
|
74
|
+
filter: string;
|
|
75
|
+
user_id: string;
|
|
76
|
+
}>;
|
|
77
|
+
/**
|
|
78
|
+
* Schema for leaveFeedbackForBuyer method
|
|
79
|
+
* Endpoint: POST /feedback
|
|
80
|
+
* Body: LeaveFeedbackRequest - commentText, commentType, images, listingId, orderLineItemId, sellerRatings, transactionId
|
|
81
|
+
*/
|
|
82
|
+
export declare const leaveFeedbackForBuyerSchema: z.ZodObject<{
|
|
83
|
+
comment_text: z.ZodOptional<z.ZodString>;
|
|
84
|
+
comment_type: z.ZodOptional<z.ZodString>;
|
|
85
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
+
url: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
url?: string | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
url?: string | undefined;
|
|
91
|
+
}>, "many">>;
|
|
92
|
+
listing_id: z.ZodOptional<z.ZodString>;
|
|
93
|
+
order_line_item_id: z.ZodOptional<z.ZodString>;
|
|
94
|
+
seller_ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
+
key: z.ZodOptional<z.ZodString>;
|
|
96
|
+
value: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
value?: string | undefined;
|
|
99
|
+
key?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
value?: string | undefined;
|
|
102
|
+
key?: string | undefined;
|
|
103
|
+
}>, "many">>;
|
|
104
|
+
transaction_id: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
transaction_id?: string | undefined;
|
|
107
|
+
listing_id?: string | undefined;
|
|
108
|
+
order_line_item_id?: string | undefined;
|
|
109
|
+
comment_text?: string | undefined;
|
|
110
|
+
comment_type?: string | undefined;
|
|
111
|
+
images?: {
|
|
112
|
+
url?: string | undefined;
|
|
113
|
+
}[] | undefined;
|
|
114
|
+
seller_ratings?: {
|
|
115
|
+
value?: string | undefined;
|
|
116
|
+
key?: string | undefined;
|
|
117
|
+
}[] | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
transaction_id?: string | undefined;
|
|
120
|
+
listing_id?: string | undefined;
|
|
121
|
+
order_line_item_id?: string | undefined;
|
|
122
|
+
comment_text?: string | undefined;
|
|
123
|
+
comment_type?: string | undefined;
|
|
124
|
+
images?: {
|
|
125
|
+
url?: string | undefined;
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
seller_ratings?: {
|
|
128
|
+
value?: string | undefined;
|
|
129
|
+
key?: string | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Schema for respondToFeedback method
|
|
134
|
+
* Endpoint: POST /respond_to_feedback
|
|
135
|
+
* Body: RespondToFeedbackRequest - feedbackId, recipientUserId, responseText, responseType
|
|
136
|
+
*/
|
|
137
|
+
export declare const respondToFeedbackSchema: z.ZodObject<{
|
|
138
|
+
feedback_id: z.ZodOptional<z.ZodString>;
|
|
139
|
+
recipient_user_id: z.ZodOptional<z.ZodString>;
|
|
140
|
+
response_text: z.ZodOptional<z.ZodString>;
|
|
141
|
+
response_type: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
response_type?: string | undefined;
|
|
144
|
+
feedback_id?: string | undefined;
|
|
145
|
+
recipient_user_id?: string | undefined;
|
|
146
|
+
response_text?: string | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
response_type?: string | undefined;
|
|
149
|
+
feedback_id?: string | undefined;
|
|
150
|
+
recipient_user_id?: string | undefined;
|
|
151
|
+
response_text?: string | undefined;
|
|
152
|
+
}>;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Zod schemas for Feedback API input validation
|
|
4
|
+
* Based on: src/api/communication/feedback.ts
|
|
5
|
+
* OpenAPI spec: docs/sell-apps/communication/commerce_feedback_v1_beta_oas3.json
|
|
6
|
+
* Types from: src/types/commerce_feedback_v1_beta_oas3.ts
|
|
7
|
+
*/
|
|
8
|
+
// Reusable schema for filter parameter
|
|
9
|
+
const filterSchema = z
|
|
10
|
+
.string({
|
|
11
|
+
message: 'Filter must be a string',
|
|
12
|
+
invalid_type_error: 'filter must be a string',
|
|
13
|
+
description: 'Filter criteria for the query',
|
|
14
|
+
})
|
|
15
|
+
.optional();
|
|
16
|
+
// Reusable schema for limit parameter (string in API, converted to number)
|
|
17
|
+
const limitSchema = z
|
|
18
|
+
.string({
|
|
19
|
+
invalid_type_error: 'limit must be a string',
|
|
20
|
+
description: 'Maximum number of items to return per page (25-200)',
|
|
21
|
+
})
|
|
22
|
+
.optional();
|
|
23
|
+
// Reusable schema for offset parameter (string in API, converted to number)
|
|
24
|
+
const offsetSchema = z
|
|
25
|
+
.string({
|
|
26
|
+
invalid_type_error: 'offset must be a string',
|
|
27
|
+
description: 'Number of items to skip',
|
|
28
|
+
})
|
|
29
|
+
.optional();
|
|
30
|
+
// Reusable schema for sort parameter
|
|
31
|
+
const sortSchema = z
|
|
32
|
+
.string({
|
|
33
|
+
invalid_type_error: 'sort must be a string',
|
|
34
|
+
description: 'Sort order for results',
|
|
35
|
+
})
|
|
36
|
+
.optional();
|
|
37
|
+
/**
|
|
38
|
+
* Schema for getAwaitingFeedback method
|
|
39
|
+
* Endpoint: GET /awaiting_feedback
|
|
40
|
+
* Params: GetAwaitingFeedbackParams - filter, limit, offset, sort
|
|
41
|
+
*/
|
|
42
|
+
export const getAwaitingFeedbackSchema = z.object({
|
|
43
|
+
filter: filterSchema,
|
|
44
|
+
limit: limitSchema,
|
|
45
|
+
offset: offsetSchema,
|
|
46
|
+
sort: sortSchema,
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* Schema for getFeedback method
|
|
50
|
+
* Endpoint: GET /feedback
|
|
51
|
+
* Params: GetFeedbackParams - user_id (required), feedback_type (required), feedback_id, filter, limit, listing_id, offset, order_line_item_id, sort, transaction_id
|
|
52
|
+
*/
|
|
53
|
+
export const getFeedbackSchema = z.object({
|
|
54
|
+
user_id: z.string({
|
|
55
|
+
message: 'User ID is required',
|
|
56
|
+
required_error: 'user_id is required',
|
|
57
|
+
invalid_type_error: 'user_id must be a string',
|
|
58
|
+
description: 'The unique identifier (eBay username) of the user',
|
|
59
|
+
}),
|
|
60
|
+
feedback_type: z.string({
|
|
61
|
+
message: 'Feedback type is required',
|
|
62
|
+
required_error: 'feedback_type is required',
|
|
63
|
+
invalid_type_error: 'feedback_type must be a string',
|
|
64
|
+
description: 'Type of feedback (FEEDBACK_RECEIVED or FEEDBACK_SENT)',
|
|
65
|
+
}),
|
|
66
|
+
feedback_id: z
|
|
67
|
+
.string({
|
|
68
|
+
invalid_type_error: 'feedback_id must be a string',
|
|
69
|
+
description: 'Filter by specific feedback ID',
|
|
70
|
+
})
|
|
71
|
+
.optional(),
|
|
72
|
+
filter: filterSchema,
|
|
73
|
+
limit: limitSchema,
|
|
74
|
+
listing_id: z
|
|
75
|
+
.string({
|
|
76
|
+
invalid_type_error: 'listing_id must be a string',
|
|
77
|
+
description: 'Filter by listing ID',
|
|
78
|
+
})
|
|
79
|
+
.optional(),
|
|
80
|
+
offset: offsetSchema,
|
|
81
|
+
order_line_item_id: z
|
|
82
|
+
.string({
|
|
83
|
+
invalid_type_error: 'order_line_item_id must be a string',
|
|
84
|
+
description: 'Filter by order line item ID',
|
|
85
|
+
})
|
|
86
|
+
.optional(),
|
|
87
|
+
sort: sortSchema,
|
|
88
|
+
transaction_id: z
|
|
89
|
+
.string({
|
|
90
|
+
invalid_type_error: 'transaction_id must be a string',
|
|
91
|
+
description: 'Filter by transaction ID',
|
|
92
|
+
})
|
|
93
|
+
.optional(),
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* Schema for getFeedbackRatingSummary method
|
|
97
|
+
* Endpoint: GET /feedback_rating_summary
|
|
98
|
+
* Params: GetFeedbackRatingSummaryParams - user_id (required), filter (required)
|
|
99
|
+
*/
|
|
100
|
+
export const getFeedbackRatingSummarySchema = z.object({
|
|
101
|
+
user_id: z.string({
|
|
102
|
+
message: 'User ID is required',
|
|
103
|
+
required_error: 'user_id is required',
|
|
104
|
+
invalid_type_error: 'user_id must be a string',
|
|
105
|
+
description: 'The unique identifier of the eBay user',
|
|
106
|
+
}),
|
|
107
|
+
filter: z.string({
|
|
108
|
+
message: 'Filter is required (must include ratingType)',
|
|
109
|
+
required_error: 'filter is required',
|
|
110
|
+
invalid_type_error: 'filter must be a string',
|
|
111
|
+
description: 'Filter with required ratingType parameter',
|
|
112
|
+
}),
|
|
113
|
+
});
|
|
114
|
+
/**
|
|
115
|
+
* Schema for leaveFeedbackForBuyer method
|
|
116
|
+
* Endpoint: POST /feedback
|
|
117
|
+
* Body: LeaveFeedbackRequest - commentText, commentType, images, listingId, orderLineItemId, sellerRatings, transactionId
|
|
118
|
+
*/
|
|
119
|
+
export const leaveFeedbackForBuyerSchema = z.object({
|
|
120
|
+
comment_text: z
|
|
121
|
+
.string({
|
|
122
|
+
invalid_type_error: 'comment_text must be a string',
|
|
123
|
+
description: 'The feedback comment text (max 500 characters)',
|
|
124
|
+
})
|
|
125
|
+
.max(500, 'comment_text must be 500 characters or less')
|
|
126
|
+
.optional(),
|
|
127
|
+
comment_type: z
|
|
128
|
+
.string({
|
|
129
|
+
invalid_type_error: 'comment_type must be a string',
|
|
130
|
+
description: 'Overall rating: POSITIVE, NEUTRAL, or NEGATIVE',
|
|
131
|
+
})
|
|
132
|
+
.optional(),
|
|
133
|
+
images: z
|
|
134
|
+
.array(z.object({
|
|
135
|
+
url: z
|
|
136
|
+
.string({
|
|
137
|
+
invalid_type_error: 'image url must be a string',
|
|
138
|
+
description: 'URL of the image',
|
|
139
|
+
})
|
|
140
|
+
.optional(),
|
|
141
|
+
}), {
|
|
142
|
+
invalid_type_error: 'images must be an array',
|
|
143
|
+
description: 'Array of up to 5 images',
|
|
144
|
+
})
|
|
145
|
+
.max(5, 'Maximum 5 images allowed')
|
|
146
|
+
.optional(),
|
|
147
|
+
listing_id: z
|
|
148
|
+
.string({
|
|
149
|
+
invalid_type_error: 'listing_id must be a string',
|
|
150
|
+
description: 'The listing ID related to the transaction',
|
|
151
|
+
})
|
|
152
|
+
.optional(),
|
|
153
|
+
order_line_item_id: z
|
|
154
|
+
.string({
|
|
155
|
+
invalid_type_error: 'order_line_item_id must be a string',
|
|
156
|
+
description: 'The unique identifier of the line item',
|
|
157
|
+
})
|
|
158
|
+
.optional(),
|
|
159
|
+
seller_ratings: z
|
|
160
|
+
.array(z.object({
|
|
161
|
+
key: z
|
|
162
|
+
.string({
|
|
163
|
+
invalid_type_error: 'seller rating key must be a string',
|
|
164
|
+
description: 'Rating category (e.g., ON_TIME_DELIVERY, ITEM_AS_DESCRIBED)',
|
|
165
|
+
})
|
|
166
|
+
.optional(),
|
|
167
|
+
value: z
|
|
168
|
+
.string({
|
|
169
|
+
invalid_type_error: 'seller rating value must be a string',
|
|
170
|
+
description: 'Rating value (1-5)',
|
|
171
|
+
})
|
|
172
|
+
.optional(),
|
|
173
|
+
}), {
|
|
174
|
+
invalid_type_error: 'seller_ratings must be an array',
|
|
175
|
+
description: 'Array of seller performance ratings',
|
|
176
|
+
})
|
|
177
|
+
.optional(),
|
|
178
|
+
transaction_id: z
|
|
179
|
+
.string({
|
|
180
|
+
invalid_type_error: 'transaction_id must be a string',
|
|
181
|
+
description: 'The unique identifier of the transaction',
|
|
182
|
+
})
|
|
183
|
+
.optional(),
|
|
184
|
+
});
|
|
185
|
+
/**
|
|
186
|
+
* Schema for respondToFeedback method
|
|
187
|
+
* Endpoint: POST /respond_to_feedback
|
|
188
|
+
* Body: RespondToFeedbackRequest - feedbackId, recipientUserId, responseText, responseType
|
|
189
|
+
*/
|
|
190
|
+
export const respondToFeedbackSchema = z.object({
|
|
191
|
+
feedback_id: z
|
|
192
|
+
.string({
|
|
193
|
+
invalid_type_error: 'feedback_id must be a string',
|
|
194
|
+
description: 'The unique identifier of the feedback being responded to',
|
|
195
|
+
})
|
|
196
|
+
.optional(),
|
|
197
|
+
recipient_user_id: z
|
|
198
|
+
.string({
|
|
199
|
+
invalid_type_error: 'recipient_user_id must be a string',
|
|
200
|
+
description: 'The user ID of the feedback provider',
|
|
201
|
+
})
|
|
202
|
+
.optional(),
|
|
203
|
+
response_text: z
|
|
204
|
+
.string({
|
|
205
|
+
invalid_type_error: 'response_text must be a string',
|
|
206
|
+
description: 'The text content of the response (max 500 characters)',
|
|
207
|
+
})
|
|
208
|
+
.max(500, 'response_text must be 500 characters or less')
|
|
209
|
+
.optional(),
|
|
210
|
+
response_type: z
|
|
211
|
+
.string({
|
|
212
|
+
invalid_type_error: 'response_type must be a string',
|
|
213
|
+
description: 'The type of response: REPLY or FOLLOW_UP',
|
|
214
|
+
})
|
|
215
|
+
.optional(),
|
|
216
|
+
});
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for bulkUpdateConversation method
|
|
4
|
+
* Endpoint: POST /bulk_update_conversation
|
|
5
|
+
* Body: BulkUpdateConversationsRequest - conversations array
|
|
6
|
+
*/
|
|
7
|
+
export declare const bulkUpdateConversationSchema: z.ZodObject<{
|
|
8
|
+
conversations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
conversation_status: z.ZodOptional<z.ZodString>;
|
|
11
|
+
conversation_type: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
conversation_id?: string | undefined;
|
|
14
|
+
conversation_status?: string | undefined;
|
|
15
|
+
conversation_type?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
conversation_id?: string | undefined;
|
|
18
|
+
conversation_status?: string | undefined;
|
|
19
|
+
conversation_type?: string | undefined;
|
|
20
|
+
}>, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
conversations?: {
|
|
23
|
+
conversation_id?: string | undefined;
|
|
24
|
+
conversation_status?: string | undefined;
|
|
25
|
+
conversation_type?: string | undefined;
|
|
26
|
+
}[] | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
conversations?: {
|
|
29
|
+
conversation_id?: string | undefined;
|
|
30
|
+
conversation_status?: string | undefined;
|
|
31
|
+
conversation_type?: string | undefined;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Schema for getConversations method
|
|
36
|
+
* Endpoint: GET /conversation
|
|
37
|
+
* Params: GetConversationsParams - conversation_type (required), conversation_status, end_time, limit, offset, other_party_username, reference_id, reference_type, start_time
|
|
38
|
+
*/
|
|
39
|
+
export declare const getConversationsSchema: z.ZodObject<{
|
|
40
|
+
conversation_type: z.ZodString;
|
|
41
|
+
conversation_status: z.ZodOptional<z.ZodString>;
|
|
42
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
43
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
44
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
45
|
+
other_party_username: z.ZodOptional<z.ZodString>;
|
|
46
|
+
reference_id: z.ZodOptional<z.ZodString>;
|
|
47
|
+
reference_type: z.ZodOptional<z.ZodString>;
|
|
48
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
conversation_type: string;
|
|
51
|
+
limit?: string | undefined;
|
|
52
|
+
offset?: string | undefined;
|
|
53
|
+
conversation_status?: string | undefined;
|
|
54
|
+
end_time?: string | undefined;
|
|
55
|
+
other_party_username?: string | undefined;
|
|
56
|
+
reference_id?: string | undefined;
|
|
57
|
+
reference_type?: string | undefined;
|
|
58
|
+
start_time?: string | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
conversation_type: string;
|
|
61
|
+
limit?: string | undefined;
|
|
62
|
+
offset?: string | undefined;
|
|
63
|
+
conversation_status?: string | undefined;
|
|
64
|
+
end_time?: string | undefined;
|
|
65
|
+
other_party_username?: string | undefined;
|
|
66
|
+
reference_id?: string | undefined;
|
|
67
|
+
reference_type?: string | undefined;
|
|
68
|
+
start_time?: string | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Schema for getConversation method
|
|
72
|
+
* Endpoint: GET /conversation/{conversation_id}
|
|
73
|
+
* Path: conversation_id (required)
|
|
74
|
+
* Query: conversation_type (required), limit, offset
|
|
75
|
+
*/
|
|
76
|
+
export declare const getConversationSchema: z.ZodObject<{
|
|
77
|
+
conversation_id: z.ZodString;
|
|
78
|
+
conversation_type: z.ZodString;
|
|
79
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
80
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
conversation_id: string;
|
|
83
|
+
conversation_type: string;
|
|
84
|
+
limit?: string | undefined;
|
|
85
|
+
offset?: string | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
conversation_id: string;
|
|
88
|
+
conversation_type: string;
|
|
89
|
+
limit?: string | undefined;
|
|
90
|
+
offset?: string | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* Schema for sendMessage method
|
|
94
|
+
* Endpoint: POST /send_message
|
|
95
|
+
* Body: SendMessageRequest - conversationId, emailCopyToSender, messageMedia, messageText, otherPartyUsername, reference
|
|
96
|
+
*/
|
|
97
|
+
export declare const sendMessageSchema: z.ZodObject<{
|
|
98
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
email_copy_to_sender: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
message_media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
|
+
media_name: z.ZodOptional<z.ZodString>;
|
|
102
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
103
|
+
media_url: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
media_name?: string | undefined;
|
|
106
|
+
media_type?: string | undefined;
|
|
107
|
+
media_url?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
media_name?: string | undefined;
|
|
110
|
+
media_type?: string | undefined;
|
|
111
|
+
media_url?: string | undefined;
|
|
112
|
+
}>, "many">>;
|
|
113
|
+
message_text: z.ZodOptional<z.ZodString>;
|
|
114
|
+
other_party_username: z.ZodOptional<z.ZodString>;
|
|
115
|
+
reference: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
reference_id: z.ZodOptional<z.ZodString>;
|
|
117
|
+
reference_type: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
reference_id?: string | undefined;
|
|
120
|
+
reference_type?: string | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
reference_id?: string | undefined;
|
|
123
|
+
reference_type?: string | undefined;
|
|
124
|
+
}>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
conversation_id?: string | undefined;
|
|
127
|
+
reference?: {
|
|
128
|
+
reference_id?: string | undefined;
|
|
129
|
+
reference_type?: string | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
other_party_username?: string | undefined;
|
|
132
|
+
email_copy_to_sender?: boolean | undefined;
|
|
133
|
+
message_media?: {
|
|
134
|
+
media_name?: string | undefined;
|
|
135
|
+
media_type?: string | undefined;
|
|
136
|
+
media_url?: string | undefined;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
message_text?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
conversation_id?: string | undefined;
|
|
141
|
+
reference?: {
|
|
142
|
+
reference_id?: string | undefined;
|
|
143
|
+
reference_type?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
other_party_username?: string | undefined;
|
|
146
|
+
email_copy_to_sender?: boolean | undefined;
|
|
147
|
+
message_media?: {
|
|
148
|
+
media_name?: string | undefined;
|
|
149
|
+
media_type?: string | undefined;
|
|
150
|
+
media_url?: string | undefined;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
message_text?: string | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
/**
|
|
155
|
+
* Schema for updateConversation method
|
|
156
|
+
* Endpoint: POST /update_conversation
|
|
157
|
+
* Body: UpdateConversationRequest - conversationId, conversationStatus, conversationType, read
|
|
158
|
+
*/
|
|
159
|
+
export declare const updateConversationSchema: z.ZodObject<{
|
|
160
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
161
|
+
conversation_status: z.ZodOptional<z.ZodString>;
|
|
162
|
+
conversation_type: z.ZodOptional<z.ZodString>;
|
|
163
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
conversation_id?: string | undefined;
|
|
166
|
+
conversation_status?: string | undefined;
|
|
167
|
+
conversation_type?: string | undefined;
|
|
168
|
+
read?: boolean | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
conversation_id?: string | undefined;
|
|
171
|
+
conversation_status?: string | undefined;
|
|
172
|
+
conversation_type?: string | undefined;
|
|
173
|
+
read?: boolean | undefined;
|
|
174
|
+
}>;
|