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",
|
|
@@ -788,6 +788,30 @@ export var CurrencyCode;
|
|
|
788
788
|
CurrencyCode["ZMW"] = "ZMW";
|
|
789
789
|
CurrencyCode["ZWL"] = "ZWL";
|
|
790
790
|
})(CurrencyCode || (CurrencyCode = {}));
|
|
791
|
+
export var Locale;
|
|
792
|
+
(function (Locale) {
|
|
793
|
+
Locale["de_AT"] = "de-AT";
|
|
794
|
+
Locale["de_CH"] = "de-CH";
|
|
795
|
+
Locale["de_DE"] = "de-DE";
|
|
796
|
+
Locale["en_AU"] = "en-AU";
|
|
797
|
+
Locale["en_CA"] = "en-CA";
|
|
798
|
+
Locale["en_GB"] = "en-GB";
|
|
799
|
+
Locale["en_IE"] = "en-IE";
|
|
800
|
+
Locale["en_PH"] = "en-PH";
|
|
801
|
+
Locale["en_US"] = "en-US";
|
|
802
|
+
Locale["es_ES"] = "es-ES";
|
|
803
|
+
Locale["fr_BE"] = "fr-BE";
|
|
804
|
+
Locale["fr_CA"] = "fr-CA";
|
|
805
|
+
Locale["fr_FR"] = "fr-FR";
|
|
806
|
+
Locale["it_IT"] = "it-IT";
|
|
807
|
+
Locale["nl_BE"] = "nl-BE";
|
|
808
|
+
Locale["nl_NL"] = "nl-NL";
|
|
809
|
+
Locale["pl_PL"] = "pl-PL";
|
|
810
|
+
Locale["th_TH"] = "th-TH";
|
|
811
|
+
Locale["zh_HK"] = "zh-HK";
|
|
812
|
+
Locale["zh_TW"] = "zh-TW";
|
|
813
|
+
})(Locale || (Locale = {}));
|
|
814
|
+
export { Locale as ContentLanguage };
|
|
791
815
|
export var Condition;
|
|
792
816
|
(function (Condition) {
|
|
793
817
|
Condition["NEW"] = "NEW";
|
|
@@ -802,57 +826,34 @@ export var Condition;
|
|
|
802
826
|
Condition["USED_ACCEPTABLE"] = "USED_ACCEPTABLE";
|
|
803
827
|
Condition["FOR_PARTS_OR_NOT_WORKING"] = "FOR_PARTS_OR_NOT_WORKING";
|
|
804
828
|
})(Condition || (Condition = {}));
|
|
805
|
-
export var
|
|
806
|
-
(function (
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
})(
|
|
833
|
-
export var ContentLanguage;
|
|
834
|
-
(function (ContentLanguage) {
|
|
835
|
-
ContentLanguage["de_AT"] = "de-AT";
|
|
836
|
-
ContentLanguage["de_CH"] = "de-CH";
|
|
837
|
-
ContentLanguage["de_DE"] = "de-DE";
|
|
838
|
-
ContentLanguage["en_AU"] = "en-AU";
|
|
839
|
-
ContentLanguage["en_CA"] = "en-CA";
|
|
840
|
-
ContentLanguage["en_GB"] = "en-GB";
|
|
841
|
-
ContentLanguage["en_IE"] = "en-IE";
|
|
842
|
-
ContentLanguage["en_PH"] = "en-PH";
|
|
843
|
-
ContentLanguage["en_US"] = "en-US";
|
|
844
|
-
ContentLanguage["es_ES"] = "es-ES";
|
|
845
|
-
ContentLanguage["fr_BE"] = "fr-BE";
|
|
846
|
-
ContentLanguage["fr_CA"] = "fr-CA";
|
|
847
|
-
ContentLanguage["fr_FR"] = "fr-FR";
|
|
848
|
-
ContentLanguage["it_IT"] = "it-IT";
|
|
849
|
-
ContentLanguage["nl_BE"] = "nl-BE";
|
|
850
|
-
ContentLanguage["nl_NL"] = "nl-NL";
|
|
851
|
-
ContentLanguage["pl_PL"] = "pl-PL";
|
|
852
|
-
ContentLanguage["th_TH"] = "th-TH";
|
|
853
|
-
ContentLanguage["zh_HK"] = "zh-HK";
|
|
854
|
-
ContentLanguage["zh_TW"] = "zh-TW";
|
|
855
|
-
})(ContentLanguage || (ContentLanguage = {}));
|
|
829
|
+
export var LocaleEnum;
|
|
830
|
+
(function (LocaleEnum) {
|
|
831
|
+
LocaleEnum["en_US"] = "en_US";
|
|
832
|
+
LocaleEnum["en_CA"] = "en_CA";
|
|
833
|
+
LocaleEnum["fr_CA"] = "fr_CA";
|
|
834
|
+
LocaleEnum["en_GB"] = "en_GB";
|
|
835
|
+
LocaleEnum["en_AU"] = "en_AU";
|
|
836
|
+
LocaleEnum["en_IN"] = "en_IN";
|
|
837
|
+
LocaleEnum["de_AT"] = "de_AT";
|
|
838
|
+
LocaleEnum["fr_BE"] = "fr_BE";
|
|
839
|
+
LocaleEnum["fr_FR"] = "fr_FR";
|
|
840
|
+
LocaleEnum["de_DE"] = "de_DE";
|
|
841
|
+
LocaleEnum["it_IT"] = "it_IT";
|
|
842
|
+
LocaleEnum["nl_BE"] = "nl_BE";
|
|
843
|
+
LocaleEnum["nl_NL"] = "nl_NL";
|
|
844
|
+
LocaleEnum["es_ES"] = "es_ES";
|
|
845
|
+
LocaleEnum["de_CH"] = "de_CH";
|
|
846
|
+
LocaleEnum["fi_FI"] = "fi_FI";
|
|
847
|
+
LocaleEnum["zh_HK"] = "zh_HK";
|
|
848
|
+
LocaleEnum["hu_HU"] = "hu_HU";
|
|
849
|
+
LocaleEnum["en_PH"] = "en_PH";
|
|
850
|
+
LocaleEnum["pl_PL"] = "pl_PL";
|
|
851
|
+
LocaleEnum["pt_PT"] = "pt_PT";
|
|
852
|
+
LocaleEnum["ru_RU"] = "ru_RU";
|
|
853
|
+
LocaleEnum["en_SG"] = "en_SG";
|
|
854
|
+
LocaleEnum["en_IE"] = "en_IE";
|
|
855
|
+
LocaleEnum["en_MY"] = "en_MY";
|
|
856
|
+
})(LocaleEnum || (LocaleEnum = {}));
|
|
856
857
|
export var Marketplace;
|
|
857
858
|
(function (Marketplace) {
|
|
858
859
|
Marketplace["EBAY_US"] = "EBAY_US";
|
package/dist/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/dist/errors/index.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
// tslint:disable:max-classes-per-file
|
|
2
1
|
import debug from 'debug';
|
|
3
2
|
const log = debug('ebay:error');
|
|
4
3
|
export const rawError = Symbol('raw-error');
|
|
5
|
-
/**
|
|
6
|
-
* Error object for ease of capturing if some service depends on .toJSON() method to log something
|
|
7
|
-
*
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
4
|
export class EBayError extends Error {
|
|
11
5
|
constructor(message, description = '', meta = {}) {
|
|
12
6
|
super(message);
|
|
@@ -15,11 +9,6 @@ export class EBayError extends Error {
|
|
|
15
9
|
this.description = description;
|
|
16
10
|
this.meta = meta;
|
|
17
11
|
}
|
|
18
|
-
/**
|
|
19
|
-
* returns a JSON representation of the Error
|
|
20
|
-
*
|
|
21
|
-
* @return {Object} json representation of the Error
|
|
22
|
-
*/
|
|
23
12
|
toJSON() {
|
|
24
13
|
return {
|
|
25
14
|
message: this.message,
|
|
@@ -30,17 +19,11 @@ export class EBayError extends Error {
|
|
|
30
19
|
};
|
|
31
20
|
}
|
|
32
21
|
}
|
|
33
|
-
/**
|
|
34
|
-
* thrown when Request.prototype.run() is called without having defined an eBay API call
|
|
35
|
-
*/
|
|
36
22
|
export class EbayNoCallError extends EBayError {
|
|
37
23
|
constructor(msg = 'No eBay API call defined, please invoke one.') {
|
|
38
24
|
super(msg);
|
|
39
25
|
}
|
|
40
26
|
}
|
|
41
|
-
/**
|
|
42
|
-
* thrown when attempting to load environment variables that don't exist
|
|
43
|
-
*/
|
|
44
27
|
export class ApiEnvError extends EBayError {
|
|
45
28
|
constructor(key) {
|
|
46
29
|
super(`Could not find ${key} in process.env.`);
|
|
@@ -60,9 +43,6 @@ export const getErrorDescription = (err) => err.response?.data?.error_descriptio
|
|
|
60
43
|
|| err.Errors?.LongMessage
|
|
61
44
|
|| err.response?.statusText
|
|
62
45
|
|| '';
|
|
63
|
-
/**
|
|
64
|
-
* Thrown when an Error occurs on eBay's side.
|
|
65
|
-
*/
|
|
66
46
|
export class EbayApiError extends EBayError {
|
|
67
47
|
constructor(err) {
|
|
68
48
|
const { message, description, meta } = mapEBayError(err);
|
|
@@ -176,6 +156,7 @@ export const checkEBayResponse = (data) => {
|
|
|
176
156
|
case EBayIAFTokenExpired.code:
|
|
177
157
|
throw new EBayIAFTokenExpired(data);
|
|
178
158
|
case EBayIAFTokenInvalid.code:
|
|
159
|
+
case 1.32:
|
|
179
160
|
throw new EBayIAFTokenInvalid(data);
|
|
180
161
|
case EBayTokenRequired.code:
|
|
181
162
|
throw new EBayTokenRequired(data);
|
package/dist/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 = {
|