ebay-api 8.5.0 → 8.6.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.
- package/README.md +4 -4
- package/dist/api/apiFactory.d.ts +0 -3
- package/dist/api/apiFactory.js +0 -4
- package/dist/api/base.d.ts +0 -3
- package/dist/api/base.js +0 -3
- package/dist/api/digitalSignature.d.ts +0 -33
- package/dist/api/digitalSignature.js +1 -41
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -3
- package/dist/api/restful/buy/browse/index.d.ts +0 -66
- package/dist/api/restful/buy/browse/index.js +0 -73
- package/dist/api/restful/buy/deal/index.d.ts +0 -32
- package/dist/api/restful/buy/deal/index.js +0 -32
- package/dist/api/restful/buy/feed/index.d.ts +0 -33
- package/dist/api/restful/buy/feed/index.js +0 -33
- package/dist/api/restful/buy/marketing/index.d.ts +0 -18
- package/dist/api/restful/buy/marketing/index.js +0 -22
- package/dist/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
- package/dist/api/restful/buy/marketplaceInsights/index.js +0 -21
- package/dist/api/restful/buy/offer/index.d.ts +0 -15
- package/dist/api/restful/buy/offer/index.js +0 -15
- package/dist/api/restful/buy/order/index.d.ts +0 -227
- package/dist/api/restful/buy/order/index.js +0 -227
- package/dist/api/restful/commerce/catalog/index.d.ts +0 -54
- package/dist/api/restful/commerce/catalog/index.js +0 -54
- package/dist/api/restful/commerce/charity/index.d.ts +0 -21
- package/dist/api/restful/commerce/charity/index.js +0 -21
- package/dist/api/restful/commerce/identity/index.d.ts +0 -7
- package/dist/api/restful/commerce/identity/index.js +0 -7
- package/dist/api/restful/commerce/notification/index.d.ts +0 -93
- package/dist/api/restful/commerce/notification/index.js +0 -93
- package/dist/api/restful/commerce/taxonomy/index.d.ts +0 -64
- package/dist/api/restful/commerce/taxonomy/index.js +0 -64
- package/dist/api/restful/commerce/translation/index.d.ts +0 -8
- package/dist/api/restful/commerce/translation/index.js +0 -8
- package/dist/api/restful/developer/analytics/index.d.ts +0 -15
- package/dist/api/restful/developer/analytics/index.js +0 -15
- package/dist/api/restful/developer/keyManagement/index.d.ts +0 -15
- package/dist/api/restful/developer/keyManagement/index.js +0 -15
- package/dist/api/restful/index.d.ts +0 -16
- package/dist/api/restful/index.js +1 -23
- package/dist/api/restful/postOrder/cancellation/index.d.ts +0 -43
- package/dist/api/restful/postOrder/cancellation/index.js +0 -43
- package/dist/api/restful/postOrder/case/index.d.ts +0 -46
- package/dist/api/restful/postOrder/case/index.js +0 -46
- package/dist/api/restful/postOrder/inquiry/index.d.ts +0 -64
- package/dist/api/restful/postOrder/inquiry/index.js +0 -64
- package/dist/api/restful/postOrder/return/index.d.ts +0 -190
- package/dist/api/restful/postOrder/return/index.js +0 -190
- package/dist/api/restful/sell/account/index.d.ts +0 -241
- package/dist/api/restful/sell/account/index.js +0 -241
- package/dist/api/restful/sell/analytics/index.d.ts +0 -26
- package/dist/api/restful/sell/analytics/index.js +0 -26
- package/dist/api/restful/sell/compliance/index.d.ts +0 -23
- package/dist/api/restful/sell/compliance/index.js +0 -23
- package/dist/api/restful/sell/feed/index.d.ts +0 -135
- package/dist/api/restful/sell/feed/index.js +0 -135
- package/dist/api/restful/sell/finances/index.d.ts +0 -51
- package/dist/api/restful/sell/finances/index.js +0 -51
- package/dist/api/restful/sell/fulfillment/index.d.ts +0 -108
- package/dist/api/restful/sell/fulfillment/index.js +0 -108
- package/dist/api/restful/sell/inventory/index.d.ts +0 -197
- package/dist/api/restful/sell/inventory/index.js +0 -197
- package/dist/api/restful/sell/listing/index.d.ts +0 -8
- package/dist/api/restful/sell/listing/index.js +0 -8
- package/dist/api/restful/sell/logistics/index.d.ts +0 -33
- package/dist/api/restful/sell/logistics/index.js +0 -33
- package/dist/api/restful/sell/marketing/index.d.ts +16 -495
- package/dist/api/restful/sell/marketing/index.js +48 -494
- package/dist/api/restful/sell/metadata/index.d.ts +0 -65
- package/dist/api/restful/sell/metadata/index.js +0 -65
- package/dist/api/restful/sell/negotiation/index.d.ts +0 -14
- package/dist/api/restful/sell/negotiation/index.js +0 -14
- package/dist/api/restful/sell/recommendation/index.d.ts +0 -15
- package/dist/api/restful/sell/recommendation/index.js +0 -15
- package/dist/api/traditional/XMLRequest.d.ts +0 -44
- package/dist/api/traditional/XMLRequest.js +0 -46
- package/dist/api/traditional/clientAlerts/index.js +0 -1
- package/dist/api/traditional/index.d.ts +0 -3
- package/dist/api/traditional/index.js +0 -5
- package/dist/api/traditional/shopping/index.js +0 -1
- package/dist/auth/authNAuth.d.ts +0 -5
- package/dist/auth/authNAuth.js +0 -5
- package/dist/auth/index.d.ts +0 -3
- package/dist/auth/index.js +0 -3
- package/dist/auth/oAuth2.d.ts +0 -52
- package/dist/auth/oAuth2.js +0 -53
- package/dist/eBayApi.d.ts +1 -12
- package/dist/eBayApi.js +0 -14
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/enums/restfulEnums.d.ts +24 -23
- package/dist/enums/restfulEnums.js +52 -51
- package/dist/errors/index.d.ts +0 -19
- package/dist/errors/index.js +1 -20
- package/dist/types/apiTypes.d.ts +2 -2
- package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
- package/dist/types/restful/specs/buy_browse_v1_oas3.js +0 -4
- package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
- package/dist/types/restful/specs/buy_deal_v1_oas3.js +0 -4
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/cancellation_oas3.d.ts +0 -29
- package/dist/types/restful/specs/cancellation_oas3.js +0 -4
- package/dist/types/restful/specs/case_oas3.d.ts +0 -31
- package/dist/types/restful/specs/case_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
- package/dist/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
- package/dist/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
- package/dist/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
- package/dist/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
- package/dist/types/restful/specs/inquiry_oas3.d.ts +0 -45
- package/dist/types/restful/specs/inquiry_oas3.js +0 -4
- package/dist/types/restful/specs/return_oas3.d.ts +0 -130
- package/dist/types/restful/specs/return_oas3.js +0 -4
- package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
- package/dist/types/restful/specs/sell_account_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
- package/dist/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
- package/dist/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
- package/dist/types/restful/specs/sell_feed_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
- package/dist/types/restful/specs/sell_finances_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
- package/dist/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
- package/dist/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
- package/dist/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
- package/dist/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
- package/dist/types/restfulTypes.d.ts +3 -0
- package/lib/api/apiFactory.d.ts +0 -3
- package/lib/api/apiFactory.js +0 -4
- package/lib/api/base.d.ts +0 -3
- package/lib/api/base.js +0 -3
- package/lib/api/digitalSignature.d.ts +0 -33
- package/lib/api/digitalSignature.js +1 -41
- package/lib/api/index.d.ts +0 -3
- package/lib/api/index.js +0 -3
- package/lib/api/restful/buy/browse/index.d.ts +0 -66
- package/lib/api/restful/buy/browse/index.js +0 -73
- package/lib/api/restful/buy/deal/index.d.ts +0 -32
- package/lib/api/restful/buy/deal/index.js +0 -32
- package/lib/api/restful/buy/feed/index.d.ts +0 -33
- package/lib/api/restful/buy/feed/index.js +0 -33
- package/lib/api/restful/buy/marketing/index.d.ts +0 -18
- package/lib/api/restful/buy/marketing/index.js +0 -22
- package/lib/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
- package/lib/api/restful/buy/marketplaceInsights/index.js +0 -21
- package/lib/api/restful/buy/offer/index.d.ts +0 -15
- package/lib/api/restful/buy/offer/index.js +0 -15
- package/lib/api/restful/buy/order/index.d.ts +0 -227
- package/lib/api/restful/buy/order/index.js +0 -227
- package/lib/api/restful/commerce/catalog/index.d.ts +0 -54
- package/lib/api/restful/commerce/catalog/index.js +0 -54
- package/lib/api/restful/commerce/charity/index.d.ts +0 -21
- package/lib/api/restful/commerce/charity/index.js +0 -21
- package/lib/api/restful/commerce/identity/index.d.ts +0 -7
- package/lib/api/restful/commerce/identity/index.js +0 -7
- package/lib/api/restful/commerce/notification/index.d.ts +0 -93
- package/lib/api/restful/commerce/notification/index.js +0 -93
- package/lib/api/restful/commerce/taxonomy/index.d.ts +0 -64
- package/lib/api/restful/commerce/taxonomy/index.js +0 -64
- package/lib/api/restful/commerce/translation/index.d.ts +0 -8
- package/lib/api/restful/commerce/translation/index.js +0 -8
- package/lib/api/restful/developer/analytics/index.d.ts +0 -15
- package/lib/api/restful/developer/analytics/index.js +0 -15
- package/lib/api/restful/developer/keyManagement/index.d.ts +0 -15
- package/lib/api/restful/developer/keyManagement/index.js +0 -15
- package/lib/api/restful/index.d.ts +0 -16
- package/lib/api/restful/index.js +1 -23
- package/lib/api/restful/postOrder/cancellation/index.d.ts +0 -43
- package/lib/api/restful/postOrder/cancellation/index.js +0 -43
- package/lib/api/restful/postOrder/case/index.d.ts +0 -46
- package/lib/api/restful/postOrder/case/index.js +0 -46
- package/lib/api/restful/postOrder/inquiry/index.d.ts +0 -64
- package/lib/api/restful/postOrder/inquiry/index.js +0 -64
- package/lib/api/restful/postOrder/return/index.d.ts +0 -190
- package/lib/api/restful/postOrder/return/index.js +0 -190
- package/lib/api/restful/sell/account/index.d.ts +0 -241
- package/lib/api/restful/sell/account/index.js +0 -241
- package/lib/api/restful/sell/analytics/index.d.ts +0 -26
- package/lib/api/restful/sell/analytics/index.js +0 -26
- package/lib/api/restful/sell/compliance/index.d.ts +0 -23
- package/lib/api/restful/sell/compliance/index.js +0 -23
- package/lib/api/restful/sell/feed/index.d.ts +0 -135
- package/lib/api/restful/sell/feed/index.js +0 -135
- package/lib/api/restful/sell/finances/index.d.ts +0 -51
- package/lib/api/restful/sell/finances/index.js +0 -51
- package/lib/api/restful/sell/fulfillment/index.d.ts +0 -108
- package/lib/api/restful/sell/fulfillment/index.js +0 -108
- package/lib/api/restful/sell/inventory/index.d.ts +0 -197
- package/lib/api/restful/sell/inventory/index.js +0 -197
- package/lib/api/restful/sell/listing/index.d.ts +0 -8
- package/lib/api/restful/sell/listing/index.js +0 -8
- package/lib/api/restful/sell/logistics/index.d.ts +0 -33
- package/lib/api/restful/sell/logistics/index.js +0 -33
- package/lib/api/restful/sell/marketing/index.d.ts +16 -495
- package/lib/api/restful/sell/marketing/index.js +48 -494
- package/lib/api/restful/sell/metadata/index.d.ts +0 -65
- package/lib/api/restful/sell/metadata/index.js +0 -65
- package/lib/api/restful/sell/negotiation/index.d.ts +0 -14
- package/lib/api/restful/sell/negotiation/index.js +0 -14
- package/lib/api/restful/sell/recommendation/index.d.ts +0 -15
- package/lib/api/restful/sell/recommendation/index.js +0 -15
- package/lib/api/traditional/XMLRequest.d.ts +0 -44
- package/lib/api/traditional/XMLRequest.js +0 -46
- package/lib/api/traditional/clientAlerts/index.js +0 -1
- package/lib/api/traditional/index.d.ts +0 -3
- package/lib/api/traditional/index.js +0 -5
- package/lib/api/traditional/shopping/index.js +0 -1
- package/lib/auth/authNAuth.d.ts +0 -5
- package/lib/auth/authNAuth.js +0 -5
- package/lib/auth/index.d.ts +0 -3
- package/lib/auth/index.js +0 -3
- package/lib/auth/oAuth2.d.ts +0 -52
- package/lib/auth/oAuth2.js +0 -53
- package/lib/eBayApi.d.ts +1 -12
- package/lib/eBayApi.js +0 -14
- package/lib/ebay-api.min.js +1 -1
- package/lib/enums/restfulEnums.d.ts +24 -23
- package/lib/enums/restfulEnums.js +52 -52
- package/lib/errors/index.d.ts +0 -19
- package/lib/errors/index.js +1 -20
- package/lib/types/apiTypes.d.ts +2 -2
- package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
- package/lib/types/restful/specs/buy_browse_v1_oas3.js +0 -4
- package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
- package/lib/types/restful/specs/buy_deal_v1_oas3.js +0 -4
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/cancellation_oas3.d.ts +0 -29
- package/lib/types/restful/specs/cancellation_oas3.js +0 -4
- package/lib/types/restful/specs/case_oas3.d.ts +0 -31
- package/lib/types/restful/specs/case_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
- package/lib/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
- package/lib/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
- package/lib/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
- package/lib/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
- package/lib/types/restful/specs/inquiry_oas3.d.ts +0 -45
- package/lib/types/restful/specs/inquiry_oas3.js +0 -4
- package/lib/types/restful/specs/return_oas3.d.ts +0 -130
- package/lib/types/restful/specs/return_oas3.js +0 -4
- package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
- package/lib/types/restful/specs/sell_account_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
- package/lib/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
- package/lib/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
- package/lib/types/restful/specs/sell_feed_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
- package/lib/types/restful/specs/sell_finances_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
- package/lib/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
- package/lib/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
- package/lib/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
- package/lib/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
- package/lib/types/restfulTypes.d.ts +3 -0
- package/package.json +2 -2
|
@@ -760,6 +760,29 @@ export declare enum CurrencyCode {
|
|
|
760
760
|
ZMW = "ZMW",
|
|
761
761
|
ZWL = "ZWL"
|
|
762
762
|
}
|
|
763
|
+
export declare enum Locale {
|
|
764
|
+
de_AT = "de-AT",
|
|
765
|
+
de_CH = "de-CH",
|
|
766
|
+
de_DE = "de-DE",
|
|
767
|
+
en_AU = "en-AU",
|
|
768
|
+
en_CA = "en-CA",
|
|
769
|
+
en_GB = "en-GB",
|
|
770
|
+
en_IE = "en-IE",
|
|
771
|
+
en_PH = "en-PH",
|
|
772
|
+
en_US = "en-US",
|
|
773
|
+
es_ES = "es-ES",
|
|
774
|
+
fr_BE = "fr-BE",
|
|
775
|
+
fr_CA = "fr-CA",
|
|
776
|
+
fr_FR = "fr-FR",
|
|
777
|
+
it_IT = "it-IT",
|
|
778
|
+
nl_BE = "nl-BE",
|
|
779
|
+
nl_NL = "nl-NL",
|
|
780
|
+
pl_PL = "pl-PL",
|
|
781
|
+
th_TH = "th-TH",
|
|
782
|
+
zh_HK = "zh-HK",
|
|
783
|
+
zh_TW = "zh-TW"
|
|
784
|
+
}
|
|
785
|
+
export { Locale as ContentLanguage };
|
|
763
786
|
export declare enum Condition {
|
|
764
787
|
NEW = "NEW",
|
|
765
788
|
LIKE_NEW = "LIKE_NEW",
|
|
@@ -773,7 +796,7 @@ export declare enum Condition {
|
|
|
773
796
|
USED_ACCEPTABLE = "USED_ACCEPTABLE",
|
|
774
797
|
FOR_PARTS_OR_NOT_WORKING = "FOR_PARTS_OR_NOT_WORKING"
|
|
775
798
|
}
|
|
776
|
-
export declare enum
|
|
799
|
+
export declare enum LocaleEnum {
|
|
777
800
|
en_US = "en_US",
|
|
778
801
|
en_CA = "en_CA",
|
|
779
802
|
fr_CA = "fr_CA",
|
|
@@ -800,28 +823,6 @@ export declare enum Locale {
|
|
|
800
823
|
en_IE = "en_IE",
|
|
801
824
|
en_MY = "en_MY"
|
|
802
825
|
}
|
|
803
|
-
export declare enum ContentLanguage {
|
|
804
|
-
de_AT = "de-AT",
|
|
805
|
-
de_CH = "de-CH",
|
|
806
|
-
de_DE = "de-DE",
|
|
807
|
-
en_AU = "en-AU",
|
|
808
|
-
en_CA = "en-CA",
|
|
809
|
-
en_GB = "en-GB",
|
|
810
|
-
en_IE = "en-IE",
|
|
811
|
-
en_PH = "en-PH",
|
|
812
|
-
en_US = "en-US",
|
|
813
|
-
es_ES = "es-ES",
|
|
814
|
-
fr_BE = "fr-BE",
|
|
815
|
-
fr_CA = "fr-CA",
|
|
816
|
-
fr_FR = "fr-FR",
|
|
817
|
-
it_IT = "it-IT",
|
|
818
|
-
nl_BE = "nl-BE",
|
|
819
|
-
nl_NL = "nl-NL",
|
|
820
|
-
pl_PL = "pl-PL",
|
|
821
|
-
th_TH = "th-TH",
|
|
822
|
-
zh_HK = "zh-HK",
|
|
823
|
-
zh_TW = "zh-TW"
|
|
824
|
-
}
|
|
825
826
|
export declare enum Marketplace {
|
|
826
827
|
EBAY_US = "EBAY_US",
|
|
827
828
|
EBAY_MOTORS = "EBAY_MOTORS",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PackageType = exports.WeightUnitOfMeasure = exports.LengthUnitOfMeasure = exports.CancelReason = exports.ReasonForRefund = exports.RegionType = exports.ReturnShippingCostPayer = exports.ReturnMethod = exports.RefundMethod = exports.Metric = exports.FormatType = exports.Marketplace = exports.
|
|
3
|
+
exports.PackageType = exports.WeightUnitOfMeasure = exports.LengthUnitOfMeasure = exports.CancelReason = exports.ReasonForRefund = exports.RegionType = exports.ReturnShippingCostPayer = exports.ReturnMethod = exports.RefundMethod = exports.Metric = exports.FormatType = exports.Marketplace = exports.LocaleEnum = exports.Condition = exports.ContentLanguage = exports.Locale = exports.CurrencyCode = exports.CountryCode = exports.RecipientAccountReferenceType = exports.PaymentMethodType = exports.PaymentsProgramStatus = exports.PaymentsProgramType = exports.ShippingCostType = exports.ShippingOptionType = exports.TimeDurationUnit = exports.StoreType = exports.ActivityOption = exports.RefundFeeType = exports.FilePurpose = exports.ReturnState = exports.ReturnCountFilter = exports.CategoryType = exports.Decision = exports.EscalateReason = exports.GetReturnFieldGroupEnum = exports.ReturnType = exports.RequestType = exports.ReturnReason = exports.ShippingCarrier = exports.InquiryStatusFilter = exports.CaseSearchFieldGroup = exports.CaseStatusFilter = exports.InquirySearchFieldGroup = exports.UserRoleFilter = void 0;
|
|
4
4
|
var UserRoleFilter;
|
|
5
5
|
(function (UserRoleFilter) {
|
|
6
6
|
UserRoleFilter["BUYER"] = "BUYER";
|
|
@@ -791,6 +791,29 @@ var CurrencyCode;
|
|
|
791
791
|
CurrencyCode["ZMW"] = "ZMW";
|
|
792
792
|
CurrencyCode["ZWL"] = "ZWL";
|
|
793
793
|
})(CurrencyCode || (exports.CurrencyCode = CurrencyCode = {}));
|
|
794
|
+
var Locale;
|
|
795
|
+
(function (Locale) {
|
|
796
|
+
Locale["de_AT"] = "de-AT";
|
|
797
|
+
Locale["de_CH"] = "de-CH";
|
|
798
|
+
Locale["de_DE"] = "de-DE";
|
|
799
|
+
Locale["en_AU"] = "en-AU";
|
|
800
|
+
Locale["en_CA"] = "en-CA";
|
|
801
|
+
Locale["en_GB"] = "en-GB";
|
|
802
|
+
Locale["en_IE"] = "en-IE";
|
|
803
|
+
Locale["en_PH"] = "en-PH";
|
|
804
|
+
Locale["en_US"] = "en-US";
|
|
805
|
+
Locale["es_ES"] = "es-ES";
|
|
806
|
+
Locale["fr_BE"] = "fr-BE";
|
|
807
|
+
Locale["fr_CA"] = "fr-CA";
|
|
808
|
+
Locale["fr_FR"] = "fr-FR";
|
|
809
|
+
Locale["it_IT"] = "it-IT";
|
|
810
|
+
Locale["nl_BE"] = "nl-BE";
|
|
811
|
+
Locale["nl_NL"] = "nl-NL";
|
|
812
|
+
Locale["pl_PL"] = "pl-PL";
|
|
813
|
+
Locale["th_TH"] = "th-TH";
|
|
814
|
+
Locale["zh_HK"] = "zh-HK";
|
|
815
|
+
Locale["zh_TW"] = "zh-TW";
|
|
816
|
+
})(Locale || (exports.ContentLanguage = exports.Locale = Locale = {}));
|
|
794
817
|
var Condition;
|
|
795
818
|
(function (Condition) {
|
|
796
819
|
Condition["NEW"] = "NEW";
|
|
@@ -805,57 +828,34 @@ var Condition;
|
|
|
805
828
|
Condition["USED_ACCEPTABLE"] = "USED_ACCEPTABLE";
|
|
806
829
|
Condition["FOR_PARTS_OR_NOT_WORKING"] = "FOR_PARTS_OR_NOT_WORKING";
|
|
807
830
|
})(Condition || (exports.Condition = Condition = {}));
|
|
808
|
-
var
|
|
809
|
-
(function (
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
})(
|
|
836
|
-
var ContentLanguage;
|
|
837
|
-
(function (ContentLanguage) {
|
|
838
|
-
ContentLanguage["de_AT"] = "de-AT";
|
|
839
|
-
ContentLanguage["de_CH"] = "de-CH";
|
|
840
|
-
ContentLanguage["de_DE"] = "de-DE";
|
|
841
|
-
ContentLanguage["en_AU"] = "en-AU";
|
|
842
|
-
ContentLanguage["en_CA"] = "en-CA";
|
|
843
|
-
ContentLanguage["en_GB"] = "en-GB";
|
|
844
|
-
ContentLanguage["en_IE"] = "en-IE";
|
|
845
|
-
ContentLanguage["en_PH"] = "en-PH";
|
|
846
|
-
ContentLanguage["en_US"] = "en-US";
|
|
847
|
-
ContentLanguage["es_ES"] = "es-ES";
|
|
848
|
-
ContentLanguage["fr_BE"] = "fr-BE";
|
|
849
|
-
ContentLanguage["fr_CA"] = "fr-CA";
|
|
850
|
-
ContentLanguage["fr_FR"] = "fr-FR";
|
|
851
|
-
ContentLanguage["it_IT"] = "it-IT";
|
|
852
|
-
ContentLanguage["nl_BE"] = "nl-BE";
|
|
853
|
-
ContentLanguage["nl_NL"] = "nl-NL";
|
|
854
|
-
ContentLanguage["pl_PL"] = "pl-PL";
|
|
855
|
-
ContentLanguage["th_TH"] = "th-TH";
|
|
856
|
-
ContentLanguage["zh_HK"] = "zh-HK";
|
|
857
|
-
ContentLanguage["zh_TW"] = "zh-TW";
|
|
858
|
-
})(ContentLanguage || (exports.ContentLanguage = ContentLanguage = {}));
|
|
831
|
+
var LocaleEnum;
|
|
832
|
+
(function (LocaleEnum) {
|
|
833
|
+
LocaleEnum["en_US"] = "en_US";
|
|
834
|
+
LocaleEnum["en_CA"] = "en_CA";
|
|
835
|
+
LocaleEnum["fr_CA"] = "fr_CA";
|
|
836
|
+
LocaleEnum["en_GB"] = "en_GB";
|
|
837
|
+
LocaleEnum["en_AU"] = "en_AU";
|
|
838
|
+
LocaleEnum["en_IN"] = "en_IN";
|
|
839
|
+
LocaleEnum["de_AT"] = "de_AT";
|
|
840
|
+
LocaleEnum["fr_BE"] = "fr_BE";
|
|
841
|
+
LocaleEnum["fr_FR"] = "fr_FR";
|
|
842
|
+
LocaleEnum["de_DE"] = "de_DE";
|
|
843
|
+
LocaleEnum["it_IT"] = "it_IT";
|
|
844
|
+
LocaleEnum["nl_BE"] = "nl_BE";
|
|
845
|
+
LocaleEnum["nl_NL"] = "nl_NL";
|
|
846
|
+
LocaleEnum["es_ES"] = "es_ES";
|
|
847
|
+
LocaleEnum["de_CH"] = "de_CH";
|
|
848
|
+
LocaleEnum["fi_FI"] = "fi_FI";
|
|
849
|
+
LocaleEnum["zh_HK"] = "zh_HK";
|
|
850
|
+
LocaleEnum["hu_HU"] = "hu_HU";
|
|
851
|
+
LocaleEnum["en_PH"] = "en_PH";
|
|
852
|
+
LocaleEnum["pl_PL"] = "pl_PL";
|
|
853
|
+
LocaleEnum["pt_PT"] = "pt_PT";
|
|
854
|
+
LocaleEnum["ru_RU"] = "ru_RU";
|
|
855
|
+
LocaleEnum["en_SG"] = "en_SG";
|
|
856
|
+
LocaleEnum["en_IE"] = "en_IE";
|
|
857
|
+
LocaleEnum["en_MY"] = "en_MY";
|
|
858
|
+
})(LocaleEnum || (exports.LocaleEnum = LocaleEnum = {}));
|
|
859
859
|
var Marketplace;
|
|
860
860
|
(function (Marketplace) {
|
|
861
861
|
Marketplace["EBAY_US"] = "EBAY_US";
|
package/lib/errors/index.d.ts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
export declare const rawError: unique symbol;
|
|
2
|
-
/**
|
|
3
|
-
* Error object for ease of capturing if some service depends on .toJSON() method to log something
|
|
4
|
-
*
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
2
|
export declare class EBayError extends Error {
|
|
8
3
|
readonly meta: any;
|
|
9
4
|
readonly description: string;
|
|
10
5
|
constructor(message: string, description?: string, meta?: any);
|
|
11
|
-
/**
|
|
12
|
-
* returns a JSON representation of the Error
|
|
13
|
-
*
|
|
14
|
-
* @return {Object} json representation of the Error
|
|
15
|
-
*/
|
|
16
6
|
toJSON(): {
|
|
17
7
|
message: string;
|
|
18
8
|
description: string;
|
|
@@ -21,23 +11,14 @@ export declare class EBayError extends Error {
|
|
|
21
11
|
meta: any;
|
|
22
12
|
};
|
|
23
13
|
}
|
|
24
|
-
/**
|
|
25
|
-
* thrown when Request.prototype.run() is called without having defined an eBay API call
|
|
26
|
-
*/
|
|
27
14
|
export declare class EbayNoCallError extends EBayError {
|
|
28
15
|
constructor(msg?: string);
|
|
29
16
|
}
|
|
30
|
-
/**
|
|
31
|
-
* thrown when attempting to load environment variables that don't exist
|
|
32
|
-
*/
|
|
33
17
|
export declare class ApiEnvError extends EBayError {
|
|
34
18
|
constructor(key: any);
|
|
35
19
|
}
|
|
36
20
|
export declare const getErrorMessage: (err: any) => any;
|
|
37
21
|
export declare const getErrorDescription: (err: any) => any;
|
|
38
|
-
/**
|
|
39
|
-
* Thrown when an Error occurs on eBay's side.
|
|
40
|
-
*/
|
|
41
22
|
export declare class EbayApiError extends EBayError {
|
|
42
23
|
constructor(err: any);
|
|
43
24
|
}
|
package/lib/errors/index.js
CHANGED
|
@@ -4,15 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.checkEBayResponse = exports.handleEBayError = exports.mapEBayError = exports.EBayInvalidScope = exports.EBayTokenRequired = exports.EBayIAFTokenInvalid = exports.EBayIAFTokenExpired = exports.EBayInvalidAccessToken = exports.EBayNotFound = exports.EBayInvalidGrant = exports.EBayAccessDenied = exports.EbayApiError = exports.getErrorDescription = exports.getErrorMessage = exports.ApiEnvError = exports.EbayNoCallError = exports.EBayError = exports.rawError = void 0;
|
|
7
|
-
// tslint:disable:max-classes-per-file
|
|
8
7
|
const debug_1 = __importDefault(require("debug"));
|
|
9
8
|
const log = (0, debug_1.default)('ebay:error');
|
|
10
9
|
exports.rawError = Symbol('raw-error');
|
|
11
|
-
/**
|
|
12
|
-
* Error object for ease of capturing if some service depends on .toJSON() method to log something
|
|
13
|
-
*
|
|
14
|
-
* @ignore
|
|
15
|
-
*/
|
|
16
10
|
class EBayError extends Error {
|
|
17
11
|
constructor(message, description = '', meta = {}) {
|
|
18
12
|
super(message);
|
|
@@ -21,11 +15,6 @@ class EBayError extends Error {
|
|
|
21
15
|
this.description = description;
|
|
22
16
|
this.meta = meta;
|
|
23
17
|
}
|
|
24
|
-
/**
|
|
25
|
-
* returns a JSON representation of the Error
|
|
26
|
-
*
|
|
27
|
-
* @return {Object} json representation of the Error
|
|
28
|
-
*/
|
|
29
18
|
toJSON() {
|
|
30
19
|
return {
|
|
31
20
|
message: this.message,
|
|
@@ -37,18 +26,12 @@ class EBayError extends Error {
|
|
|
37
26
|
}
|
|
38
27
|
}
|
|
39
28
|
exports.EBayError = EBayError;
|
|
40
|
-
/**
|
|
41
|
-
* thrown when Request.prototype.run() is called without having defined an eBay API call
|
|
42
|
-
*/
|
|
43
29
|
class EbayNoCallError extends EBayError {
|
|
44
30
|
constructor(msg = 'No eBay API call defined, please invoke one.') {
|
|
45
31
|
super(msg);
|
|
46
32
|
}
|
|
47
33
|
}
|
|
48
34
|
exports.EbayNoCallError = EbayNoCallError;
|
|
49
|
-
/**
|
|
50
|
-
* thrown when attempting to load environment variables that don't exist
|
|
51
|
-
*/
|
|
52
35
|
class ApiEnvError extends EBayError {
|
|
53
36
|
constructor(key) {
|
|
54
37
|
super(`Could not find ${key} in process.env.`);
|
|
@@ -71,9 +54,6 @@ const getErrorDescription = (err) => err.response?.data?.error_description
|
|
|
71
54
|
|| err.response?.statusText
|
|
72
55
|
|| '';
|
|
73
56
|
exports.getErrorDescription = getErrorDescription;
|
|
74
|
-
/**
|
|
75
|
-
* Thrown when an Error occurs on eBay's side.
|
|
76
|
-
*/
|
|
77
57
|
class EbayApiError extends EBayError {
|
|
78
58
|
constructor(err) {
|
|
79
59
|
const { message, description, meta } = (0, exports.mapEBayError)(err);
|
|
@@ -198,6 +178,7 @@ const checkEBayResponse = (data) => {
|
|
|
198
178
|
case EBayIAFTokenExpired.code:
|
|
199
179
|
throw new EBayIAFTokenExpired(data);
|
|
200
180
|
case EBayIAFTokenInvalid.code:
|
|
181
|
+
case 1.32:
|
|
201
182
|
throw new EBayIAFTokenInvalid(data);
|
|
202
183
|
case EBayTokenRequired.code:
|
|
203
184
|
throw new EBayTokenRequired(data);
|
package/lib/types/apiTypes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { Locale, MarketplaceId, SiteId } from '../enums/index.js';
|
|
3
3
|
export type Scope = string[];
|
|
4
4
|
export type Keyset = {
|
|
5
5
|
appId: string;
|
|
@@ -9,7 +9,7 @@ export type Keyset = {
|
|
|
9
9
|
export type RestConfig = {
|
|
10
10
|
marketplaceId?: MarketplaceId | `${MarketplaceId}`;
|
|
11
11
|
endUserCtx?: string;
|
|
12
|
-
contentLanguage?:
|
|
12
|
+
contentLanguage?: Locale | `${Locale}`;
|
|
13
13
|
acceptLanguage?: Locale | `${Locale}`;
|
|
14
14
|
};
|
|
15
15
|
export type TraditionalConfig = {
|