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
|
@@ -1,74 +1,20 @@
|
|
|
1
1
|
import { CommerceCatalogSearchParams } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/commerce_catalog_v1_beta_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
|
-
/**
|
|
5
|
-
* Use the Catalog API to search the eBay catalog for products on which to base a seller's item listing;
|
|
6
|
-
*/
|
|
7
4
|
export default class Catalog extends Restful implements OpenApi<Omit<operations, 'createChangeRequest'>> {
|
|
8
5
|
static id: string;
|
|
9
6
|
get basePath(): string;
|
|
10
|
-
/**
|
|
11
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
12
|
-
* decommissioned in Q1 of 2020.
|
|
13
|
-
*
|
|
14
|
-
* @param changeRequestId The unique identifier of the change request being requested.
|
|
15
|
-
*/
|
|
16
7
|
getChangeRequest(changeRequestId: string): Promise<any>;
|
|
17
|
-
/**
|
|
18
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
19
|
-
* decommissioned in Q1 of 2020.
|
|
20
|
-
*
|
|
21
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of change requests returned
|
|
22
|
-
* by this call.
|
|
23
|
-
* @param limit The number of change requests to return. This is the result set, a subset of the full collection of
|
|
24
|
-
* change requests that match the filter criteria of this call.
|
|
25
|
-
* @param offset The first change request to return based on its position in the returned collection of change
|
|
26
|
-
* requests.
|
|
27
|
-
*/
|
|
28
8
|
getChangeRequests({ filter, limit, offset }?: {
|
|
29
9
|
filter?: string;
|
|
30
10
|
limit?: number;
|
|
31
11
|
offset?: number;
|
|
32
12
|
}): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* This call retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in
|
|
35
|
-
* the request.
|
|
36
|
-
*
|
|
37
|
-
* @param epid The ePID of the product being requested.
|
|
38
|
-
*/
|
|
39
13
|
getProduct(epid: string): Promise<any>;
|
|
40
|
-
/**
|
|
41
|
-
* This call searches for and retrieves summaries of one or more products in the eBay catalog that match the search
|
|
42
|
-
* criteria provided by a seller.
|
|
43
|
-
*
|
|
44
|
-
* @param params SearchCatalogParams
|
|
45
|
-
*/
|
|
46
14
|
search(params?: CommerceCatalogSearchParams): Promise<any>;
|
|
47
|
-
/**
|
|
48
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
49
|
-
* catalog product and its associated or suggested categories, as well as the values currently associated with that
|
|
50
|
-
* product.
|
|
51
|
-
*
|
|
52
|
-
* @param epid The unique eBay product identifier of the catalog product that you want to update.
|
|
53
|
-
* @param acceptLanguage This request header sets the natural language that will be provided in the field values of
|
|
54
|
-
* the response payload.
|
|
55
|
-
* @param otherApplicableCategoryIds Use only if you are also including the primary_category_id parameter in the
|
|
56
|
-
* request.
|
|
57
|
-
* @param primaryCategoryId Use only if the seller believes this product is associated with the wrong primary
|
|
58
|
-
* category.
|
|
59
|
-
* @param marketplaceId Use this header to specify the eBay marketplace identifier.
|
|
60
|
-
*/
|
|
61
15
|
getProductMetadata(epid: string, { otherApplicableCategoryIds, primaryCategoryId }?: {
|
|
62
16
|
otherApplicableCategoryIds?: string;
|
|
63
17
|
primaryCategoryId?: string;
|
|
64
18
|
}): Promise<any>;
|
|
65
|
-
/**
|
|
66
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
67
|
-
* eBay categories.
|
|
68
|
-
*
|
|
69
|
-
* @param primaryCategoryId The unique identifier of the primary eBay category for which you will retrieve product
|
|
70
|
-
* aspects.
|
|
71
|
-
* @param otherApplicableCategoryIds A string of comma-separated category IDs.
|
|
72
|
-
*/
|
|
73
19
|
getProductMetadataForCategories(primaryCategoryId: string, otherApplicableCategoryIds?: string): Promise<any>;
|
|
74
20
|
}
|
|
@@ -4,33 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* Use the Catalog API to search the eBay catalog for products on which to base a seller's item listing;
|
|
9
|
-
*/
|
|
10
7
|
class Catalog extends index_js_1.default {
|
|
11
8
|
get basePath() {
|
|
12
9
|
return '/commerce/catalog/v1_beta';
|
|
13
10
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
16
|
-
* decommissioned in Q1 of 2020.
|
|
17
|
-
*
|
|
18
|
-
* @param changeRequestId The unique identifier of the change request being requested.
|
|
19
|
-
*/
|
|
20
11
|
getChangeRequest(changeRequestId) {
|
|
21
12
|
return this.get(`/change_request/${changeRequestId}`);
|
|
22
13
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
25
|
-
* decommissioned in Q1 of 2020.
|
|
26
|
-
*
|
|
27
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of change requests returned
|
|
28
|
-
* by this call.
|
|
29
|
-
* @param limit The number of change requests to return. This is the result set, a subset of the full collection of
|
|
30
|
-
* change requests that match the filter criteria of this call.
|
|
31
|
-
* @param offset The first change request to return based on its position in the returned collection of change
|
|
32
|
-
* requests.
|
|
33
|
-
*/
|
|
34
14
|
getChangeRequests({ filter, limit, offset } = {}) {
|
|
35
15
|
return this.get(`/change_request`, {
|
|
36
16
|
params: {
|
|
@@ -40,41 +20,15 @@ class Catalog extends index_js_1.default {
|
|
|
40
20
|
}
|
|
41
21
|
});
|
|
42
22
|
}
|
|
43
|
-
/**
|
|
44
|
-
* This call retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in
|
|
45
|
-
* the request.
|
|
46
|
-
*
|
|
47
|
-
* @param epid The ePID of the product being requested.
|
|
48
|
-
*/
|
|
49
23
|
getProduct(epid) {
|
|
50
24
|
const e = encodeURIComponent(epid);
|
|
51
25
|
return this.get(`/product/${e}`);
|
|
52
26
|
}
|
|
53
|
-
/**
|
|
54
|
-
* This call searches for and retrieves summaries of one or more products in the eBay catalog that match the search
|
|
55
|
-
* criteria provided by a seller.
|
|
56
|
-
*
|
|
57
|
-
* @param params SearchCatalogParams
|
|
58
|
-
*/
|
|
59
27
|
search(params) {
|
|
60
28
|
return this.get(`/product_summary/search`, {
|
|
61
29
|
params
|
|
62
30
|
});
|
|
63
31
|
}
|
|
64
|
-
/**
|
|
65
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
66
|
-
* catalog product and its associated or suggested categories, as well as the values currently associated with that
|
|
67
|
-
* product.
|
|
68
|
-
*
|
|
69
|
-
* @param epid The unique eBay product identifier of the catalog product that you want to update.
|
|
70
|
-
* @param acceptLanguage This request header sets the natural language that will be provided in the field values of
|
|
71
|
-
* the response payload.
|
|
72
|
-
* @param otherApplicableCategoryIds Use only if you are also including the primary_category_id parameter in the
|
|
73
|
-
* request.
|
|
74
|
-
* @param primaryCategoryId Use only if the seller believes this product is associated with the wrong primary
|
|
75
|
-
* category.
|
|
76
|
-
* @param marketplaceId Use this header to specify the eBay marketplace identifier.
|
|
77
|
-
*/
|
|
78
32
|
getProductMetadata(epid, { otherApplicableCategoryIds, primaryCategoryId } = {}) {
|
|
79
33
|
return this.get(`/get_product_metadata`, {
|
|
80
34
|
params: {
|
|
@@ -84,14 +38,6 @@ class Catalog extends index_js_1.default {
|
|
|
84
38
|
}
|
|
85
39
|
});
|
|
86
40
|
}
|
|
87
|
-
/**
|
|
88
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
89
|
-
* eBay categories.
|
|
90
|
-
*
|
|
91
|
-
* @param primaryCategoryId The unique identifier of the primary eBay category for which you will retrieve product
|
|
92
|
-
* aspects.
|
|
93
|
-
* @param otherApplicableCategoryIds A string of comma-separated category IDs.
|
|
94
|
-
*/
|
|
95
41
|
getProductMetadataForCategories(primaryCategoryId, otherApplicableCategoryIds) {
|
|
96
42
|
return this.get(`/get_product_metadata_for_categories`, {
|
|
97
43
|
params: {
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
import { operations } from '../../../../types/restful/specs/commerce_charity_v1_oas3.js';
|
|
2
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* The Charity API allows third-party developers to search for and access details on supported charitable organizations.
|
|
5
|
-
*/
|
|
6
3
|
export default class Charity extends Restful implements OpenApi<operations> {
|
|
7
4
|
static id: string;
|
|
8
5
|
get basePath(): string;
|
|
9
|
-
/**
|
|
10
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
11
|
-
*
|
|
12
|
-
* @param charityOrgId The unique ID of the charitable organization.
|
|
13
|
-
*/
|
|
14
6
|
getCharityOrg(charityOrgId: string): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
17
|
-
*
|
|
18
|
-
* @param limit The number of items, from the result set, returned in a single page. Valid Values: 1-100 Default: 20
|
|
19
|
-
* @param offset The number of items that will be skipped in the result set.
|
|
20
|
-
* @param q A query string that matches the keywords in name, mission statement, or description.
|
|
21
|
-
* @param registrationIds A comma-separated list of charitable organization registration IDs.
|
|
22
|
-
*/
|
|
23
7
|
getCharityOrgs({ limit, offset, q, registrationIds }: {
|
|
24
8
|
limit?: string;
|
|
25
9
|
offset?: string;
|
|
26
10
|
q?: string;
|
|
27
11
|
registrationIds?: string;
|
|
28
12
|
}): Promise<any>;
|
|
29
|
-
/**
|
|
30
|
-
* This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID.
|
|
31
|
-
*
|
|
32
|
-
* @param legacyCharityOrgId The legacy ID of the charitable organization.
|
|
33
|
-
*/
|
|
34
13
|
getCharityOrgByLegacyId(legacyCharityOrgId: string): Promise<any>;
|
|
35
14
|
}
|
|
@@ -4,30 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* The Charity API allows third-party developers to search for and access details on supported charitable organizations.
|
|
9
|
-
*/
|
|
10
7
|
class Charity extends index_js_1.default {
|
|
11
8
|
get basePath() {
|
|
12
9
|
return '/commerce/charity/v1';
|
|
13
10
|
}
|
|
14
|
-
/**
|
|
15
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
16
|
-
*
|
|
17
|
-
* @param charityOrgId The unique ID of the charitable organization.
|
|
18
|
-
*/
|
|
19
11
|
getCharityOrg(charityOrgId) {
|
|
20
12
|
charityOrgId = encodeURIComponent(charityOrgId);
|
|
21
13
|
return this.get(`/charity_org/${charityOrgId}`);
|
|
22
14
|
}
|
|
23
|
-
/**
|
|
24
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
25
|
-
*
|
|
26
|
-
* @param limit The number of items, from the result set, returned in a single page. Valid Values: 1-100 Default: 20
|
|
27
|
-
* @param offset The number of items that will be skipped in the result set.
|
|
28
|
-
* @param q A query string that matches the keywords in name, mission statement, or description.
|
|
29
|
-
* @param registrationIds A comma-separated list of charitable organization registration IDs.
|
|
30
|
-
*/
|
|
31
15
|
getCharityOrgs({ limit, offset, q, registrationIds }) {
|
|
32
16
|
return this.get(`/charity_org`, {
|
|
33
17
|
params: {
|
|
@@ -38,11 +22,6 @@ class Charity extends index_js_1.default {
|
|
|
38
22
|
}
|
|
39
23
|
});
|
|
40
24
|
}
|
|
41
|
-
/**
|
|
42
|
-
* This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID.
|
|
43
|
-
*
|
|
44
|
-
* @param legacyCharityOrgId The legacy ID of the charitable organization.
|
|
45
|
-
*/
|
|
46
25
|
getCharityOrgByLegacyId(legacyCharityOrgId) {
|
|
47
26
|
return this.get(`/charity_org/get_charity_org_by_legacy_id`, {
|
|
48
27
|
params: {
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { operations } from '../../../../types/restful/specs/commerce_identity_v1_oas3.js';
|
|
2
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Retrieves the authenticated user's account profile information.
|
|
5
|
-
*/
|
|
6
3
|
export default class Identity extends Restful implements OpenApi<operations> {
|
|
7
4
|
static id: string;
|
|
8
5
|
get basePath(): string;
|
|
9
6
|
get subdomain(): string;
|
|
10
|
-
/**
|
|
11
|
-
* This method retrieves the account profile information for an authenticated user, which requires a User access
|
|
12
|
-
* token. What is returned is controlled by the scopes.
|
|
13
|
-
*/
|
|
14
7
|
getUser(): Promise<any>;
|
|
15
8
|
}
|
|
@@ -4,9 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the authenticated user's account profile information.
|
|
9
|
-
*/
|
|
10
7
|
class Identity extends index_js_1.default {
|
|
11
8
|
get basePath() {
|
|
12
9
|
return '/commerce/identity/v1';
|
|
@@ -14,10 +11,6 @@ class Identity extends index_js_1.default {
|
|
|
14
11
|
get subdomain() {
|
|
15
12
|
return 'apiz';
|
|
16
13
|
}
|
|
17
|
-
/**
|
|
18
|
-
* This method retrieves the account profile information for an authenticated user, which requires a User access
|
|
19
|
-
* token. What is returned is controlled by the scopes.
|
|
20
|
-
*/
|
|
21
14
|
getUser() {
|
|
22
15
|
return this.get(`/user/`);
|
|
23
16
|
}
|
|
@@ -1,118 +1,25 @@
|
|
|
1
1
|
import { CommerceNotificationConfig, CreateSubscriptionRequest, DestinationRequest, NotificationParams, UpdateSubscriptionRequest } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/commerce_notification_v1_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
|
-
/**
|
|
5
|
-
* The eBay Notification API allows third-party developers and applications to process eBay notifications and verify the integrity of the notification message payload.
|
|
6
|
-
*/
|
|
7
4
|
export default class Notification extends Restful implements OpenApi<operations> {
|
|
8
5
|
static id: string;
|
|
9
6
|
get basePath(): string;
|
|
10
|
-
/**
|
|
11
|
-
* This method allows users to retrieve a public key using a specified key ID.
|
|
12
|
-
*
|
|
13
|
-
* @param publicKeyId The unique key ID that is used to retrieve the public key
|
|
14
|
-
*/
|
|
15
7
|
getPublicKey(publicKeyId: string): Promise<any>;
|
|
16
|
-
/**
|
|
17
|
-
* This method allows applications to retrieve details for the specified topic.
|
|
18
|
-
*
|
|
19
|
-
* @param topicId The ID of the topic for which to retrieve the details.
|
|
20
|
-
*/
|
|
21
8
|
getTopic(topicId: string): Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* This method returns a paginated collection of all supported topics, along with the details for the topics.
|
|
24
|
-
*
|
|
25
|
-
* @param limit The maximum number of items to return per page from the result set.
|
|
26
|
-
* @param continuationToken The token used to access the next set of results.
|
|
27
|
-
*/
|
|
28
9
|
getTopics({ limit, continuationToken: continuation_token }: NotificationParams): Promise<any>;
|
|
29
|
-
/**
|
|
30
|
-
* This method allows applications to retrieve a list of all subscriptions.
|
|
31
|
-
*
|
|
32
|
-
* @param limit The number of items, from the result set, returned in a single page.
|
|
33
|
-
* @param continuation_token The continuation token for the next set of results.
|
|
34
|
-
*/
|
|
35
10
|
getSubscriptions({ limit, continuationToken: continuation_token }: NotificationParams): Promise<any>;
|
|
36
|
-
/**
|
|
37
|
-
* This method allows applications to retrieve a list of all subscriptions.
|
|
38
|
-
*
|
|
39
|
-
* @param body The create subscription request.
|
|
40
|
-
*/
|
|
41
11
|
createSubscription(body: CreateSubscriptionRequest): Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* This method allows applications to retrieve subscription details for the specified subscription.
|
|
44
|
-
*
|
|
45
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
46
|
-
*/
|
|
47
12
|
getSubscription(subscriptionId: string): Promise<any>;
|
|
48
|
-
/**
|
|
49
|
-
* This method allows applications to retrieve subscription details for the specified subscription.
|
|
50
|
-
*
|
|
51
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
52
|
-
* @param body The update subscription request.
|
|
53
|
-
*/
|
|
54
13
|
updateSubscription(subscriptionId: string, body: UpdateSubscriptionRequest): Promise<any>;
|
|
55
|
-
/**
|
|
56
|
-
* This method allows applications to delete a subscription.
|
|
57
|
-
*
|
|
58
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
59
|
-
*/
|
|
60
14
|
deleteSubscription(subscriptionId: string): Promise<any>;
|
|
61
|
-
/**
|
|
62
|
-
* This method allows applications to enable a disabled subscription.
|
|
63
|
-
*
|
|
64
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
65
|
-
*/
|
|
66
15
|
enableSubscription(subscriptionId: string): Promise<any>;
|
|
67
|
-
/**
|
|
68
|
-
* This method disables a subscription, which prevents the subscription from providing notifications.
|
|
69
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
70
|
-
*/
|
|
71
16
|
disableSubscription(subscriptionId: string): Promise<any>;
|
|
72
|
-
/**
|
|
73
|
-
* This method triggers a mocked test payload that includes a notification ID, publish date, and so on.
|
|
74
|
-
*
|
|
75
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
76
|
-
*/
|
|
77
17
|
test(subscriptionId: string): Promise<any>;
|
|
78
|
-
/**
|
|
79
|
-
* This method allows applications to retrieve a paginated collection of destination resources and related details.
|
|
80
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
81
|
-
*/
|
|
82
18
|
getDestinations({ limit, continuationToken: continuation_token }: NotificationParams): Promise<any>;
|
|
83
|
-
/**
|
|
84
|
-
* This method allows applications to create a destination.
|
|
85
|
-
*
|
|
86
|
-
* @param body The create destination request.
|
|
87
|
-
*/
|
|
88
19
|
createDestination(body: DestinationRequest): Promise<any>;
|
|
89
|
-
/**
|
|
90
|
-
* This method allows applications to fetch the details for a destination.
|
|
91
|
-
*
|
|
92
|
-
* @param destinationId The unique identifier for the destination.
|
|
93
|
-
*/
|
|
94
20
|
getDestination(destinationId: string): Promise<any>;
|
|
95
|
-
/**
|
|
96
|
-
* This method allows applications to update a destination.
|
|
97
|
-
*
|
|
98
|
-
* @param destinationId The unique identifier for the destination.
|
|
99
|
-
* @param body The create subscription request.
|
|
100
|
-
*/
|
|
101
21
|
updateDestination(destinationId: string, body: DestinationRequest): Promise<any>;
|
|
102
|
-
/**
|
|
103
|
-
* his method provides applications a way to delete a destination.
|
|
104
|
-
*
|
|
105
|
-
* @param destinationId The unique identifier for the destination.
|
|
106
|
-
*/
|
|
107
22
|
deleteDestination(destinationId: string): Promise<any>;
|
|
108
|
-
/**
|
|
109
|
-
* This method allows applications to retrieve a previously created configuration.
|
|
110
|
-
*/
|
|
111
23
|
getConfig(): Promise<any>;
|
|
112
|
-
/**
|
|
113
|
-
* This method allows applications to create a new configuration or update an existing configuration.
|
|
114
|
-
*
|
|
115
|
-
* @param body The configurations for this application.
|
|
116
|
-
*/
|
|
117
24
|
updateConfig(body: CommerceNotificationConfig): Promise<any>;
|
|
118
25
|
}
|
|
@@ -4,37 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* The eBay Notification API allows third-party developers and applications to process eBay notifications and verify the integrity of the notification message payload.
|
|
9
|
-
*/
|
|
10
7
|
class Notification extends index_js_1.default {
|
|
11
8
|
get basePath() {
|
|
12
9
|
return '/commerce/notification/v1';
|
|
13
10
|
}
|
|
14
|
-
/**
|
|
15
|
-
* This method allows users to retrieve a public key using a specified key ID.
|
|
16
|
-
*
|
|
17
|
-
* @param publicKeyId The unique key ID that is used to retrieve the public key
|
|
18
|
-
*/
|
|
19
11
|
getPublicKey(publicKeyId) {
|
|
20
12
|
publicKeyId = encodeURIComponent(publicKeyId);
|
|
21
13
|
return this.get(`/public_key/${publicKeyId}`);
|
|
22
14
|
}
|
|
23
|
-
/**
|
|
24
|
-
* This method allows applications to retrieve details for the specified topic.
|
|
25
|
-
*
|
|
26
|
-
* @param topicId The ID of the topic for which to retrieve the details.
|
|
27
|
-
*/
|
|
28
15
|
getTopic(topicId) {
|
|
29
16
|
topicId = encodeURIComponent(topicId);
|
|
30
17
|
return this.get(`/topic/${topicId}`);
|
|
31
18
|
}
|
|
32
|
-
/**
|
|
33
|
-
* This method returns a paginated collection of all supported topics, along with the details for the topics.
|
|
34
|
-
*
|
|
35
|
-
* @param limit The maximum number of items to return per page from the result set.
|
|
36
|
-
* @param continuationToken The token used to access the next set of results.
|
|
37
|
-
*/
|
|
38
19
|
getTopics({ limit, continuationToken: continuation_token }) {
|
|
39
20
|
return this.get(`/topic`, {
|
|
40
21
|
params: {
|
|
@@ -43,12 +24,6 @@ class Notification extends index_js_1.default {
|
|
|
43
24
|
}
|
|
44
25
|
});
|
|
45
26
|
}
|
|
46
|
-
/**
|
|
47
|
-
* This method allows applications to retrieve a list of all subscriptions.
|
|
48
|
-
*
|
|
49
|
-
* @param limit The number of items, from the result set, returned in a single page.
|
|
50
|
-
* @param continuation_token The continuation token for the next set of results.
|
|
51
|
-
*/
|
|
52
27
|
getSubscriptions({ limit, continuationToken: continuation_token }) {
|
|
53
28
|
return this.get(`/subscription`, {
|
|
54
29
|
params: {
|
|
@@ -57,72 +32,33 @@ class Notification extends index_js_1.default {
|
|
|
57
32
|
}
|
|
58
33
|
});
|
|
59
34
|
}
|
|
60
|
-
/**
|
|
61
|
-
* This method allows applications to retrieve a list of all subscriptions.
|
|
62
|
-
*
|
|
63
|
-
* @param body The create subscription request.
|
|
64
|
-
*/
|
|
65
35
|
createSubscription(body) {
|
|
66
36
|
return this.post(`/subscription`, body);
|
|
67
37
|
}
|
|
68
|
-
/**
|
|
69
|
-
* This method allows applications to retrieve subscription details for the specified subscription.
|
|
70
|
-
*
|
|
71
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
72
|
-
*/
|
|
73
38
|
getSubscription(subscriptionId) {
|
|
74
39
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
75
40
|
return this.get(`/subscription/${subscriptionId}`);
|
|
76
41
|
}
|
|
77
|
-
/**
|
|
78
|
-
* This method allows applications to retrieve subscription details for the specified subscription.
|
|
79
|
-
*
|
|
80
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
81
|
-
* @param body The update subscription request.
|
|
82
|
-
*/
|
|
83
42
|
updateSubscription(subscriptionId, body) {
|
|
84
43
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
85
44
|
return this.put(`/subscription/${subscriptionId}`, body);
|
|
86
45
|
}
|
|
87
|
-
/**
|
|
88
|
-
* This method allows applications to delete a subscription.
|
|
89
|
-
*
|
|
90
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
91
|
-
*/
|
|
92
46
|
deleteSubscription(subscriptionId) {
|
|
93
47
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
94
48
|
return this.delete(`/subscription/${subscriptionId}`);
|
|
95
49
|
}
|
|
96
|
-
/**
|
|
97
|
-
* This method allows applications to enable a disabled subscription.
|
|
98
|
-
*
|
|
99
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
100
|
-
*/
|
|
101
50
|
enableSubscription(subscriptionId) {
|
|
102
51
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
103
52
|
return this.post(`/subscription/${subscriptionId}/enable`);
|
|
104
53
|
}
|
|
105
|
-
/**
|
|
106
|
-
* This method disables a subscription, which prevents the subscription from providing notifications.
|
|
107
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
108
|
-
*/
|
|
109
54
|
disableSubscription(subscriptionId) {
|
|
110
55
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
111
56
|
return this.post(`/subscription/${subscriptionId}/disable`);
|
|
112
57
|
}
|
|
113
|
-
/**
|
|
114
|
-
* This method triggers a mocked test payload that includes a notification ID, publish date, and so on.
|
|
115
|
-
*
|
|
116
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
117
|
-
*/
|
|
118
58
|
test(subscriptionId) {
|
|
119
59
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
120
60
|
return this.post(`/subscription/${subscriptionId}/test`);
|
|
121
61
|
}
|
|
122
|
-
/**
|
|
123
|
-
* This method allows applications to retrieve a paginated collection of destination resources and related details.
|
|
124
|
-
* @param subscriptionId The unique identifier for the subscription.
|
|
125
|
-
*/
|
|
126
62
|
getDestinations({ limit, continuationToken: continuation_token }) {
|
|
127
63
|
return this.get(`/destination`, {
|
|
128
64
|
params: {
|
|
@@ -131,53 +67,24 @@ class Notification extends index_js_1.default {
|
|
|
131
67
|
}
|
|
132
68
|
});
|
|
133
69
|
}
|
|
134
|
-
/**
|
|
135
|
-
* This method allows applications to create a destination.
|
|
136
|
-
*
|
|
137
|
-
* @param body The create destination request.
|
|
138
|
-
*/
|
|
139
70
|
createDestination(body) {
|
|
140
71
|
return this.post(`/destination`, body);
|
|
141
72
|
}
|
|
142
|
-
/**
|
|
143
|
-
* This method allows applications to fetch the details for a destination.
|
|
144
|
-
*
|
|
145
|
-
* @param destinationId The unique identifier for the destination.
|
|
146
|
-
*/
|
|
147
73
|
getDestination(destinationId) {
|
|
148
74
|
destinationId = encodeURIComponent(destinationId);
|
|
149
75
|
return this.get(`/destination/${destinationId}`);
|
|
150
76
|
}
|
|
151
|
-
/**
|
|
152
|
-
* This method allows applications to update a destination.
|
|
153
|
-
*
|
|
154
|
-
* @param destinationId The unique identifier for the destination.
|
|
155
|
-
* @param body The create subscription request.
|
|
156
|
-
*/
|
|
157
77
|
updateDestination(destinationId, body) {
|
|
158
78
|
destinationId = encodeURIComponent(destinationId);
|
|
159
79
|
return this.put(`/destination/${destinationId}`, body);
|
|
160
80
|
}
|
|
161
|
-
/**
|
|
162
|
-
* his method provides applications a way to delete a destination.
|
|
163
|
-
*
|
|
164
|
-
* @param destinationId The unique identifier for the destination.
|
|
165
|
-
*/
|
|
166
81
|
deleteDestination(destinationId) {
|
|
167
82
|
destinationId = encodeURIComponent(destinationId);
|
|
168
83
|
return this.delete(`/destination/${destinationId}`);
|
|
169
84
|
}
|
|
170
|
-
/**
|
|
171
|
-
* This method allows applications to retrieve a previously created configuration.
|
|
172
|
-
*/
|
|
173
85
|
getConfig() {
|
|
174
86
|
return this.get(`/config`);
|
|
175
87
|
}
|
|
176
|
-
/**
|
|
177
|
-
* This method allows applications to create a new configuration or update an existing configuration.
|
|
178
|
-
*
|
|
179
|
-
* @param body The configurations for this application.
|
|
180
|
-
*/
|
|
181
88
|
updateConfig(body) {
|
|
182
89
|
return this.put(`/config`, body);
|
|
183
90
|
}
|
|
@@ -1,79 +1,15 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/commerce_taxonomy_v1_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
|
-
/**
|
|
5
|
-
* Use the Taxonomy API to discover the most appropriate eBay categories under which sellers can offer inventory items
|
|
6
|
-
* for sale, and the most likely categories under which buyers can browse or search for items to purchase.
|
|
7
|
-
*/
|
|
8
4
|
export default class Taxonomy extends Restful implements OpenApi<operations> {
|
|
9
5
|
static id: string;
|
|
10
6
|
get basePath(): string;
|
|
11
|
-
/**
|
|
12
|
-
* A given eBay marketplace might use multiple category trees, but one of those trees is considered to be the
|
|
13
|
-
* default for that marketplace.
|
|
14
|
-
*
|
|
15
|
-
* @param marketplaceId The ID of the eBay marketplace for which the category tree ID is being requested.
|
|
16
|
-
*/
|
|
17
7
|
getDefaultCategoryTreeId(marketplaceId: string): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* This call retrieves the complete category tree that is identified by the category_tree_id parameter.
|
|
20
|
-
*
|
|
21
|
-
* @param categoryTreeId
|
|
22
|
-
*/
|
|
23
8
|
getCategoryTree(categoryTreeId: string): Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* This call retrieves the details of all nodes of the category tree hierarchy (the subtree) below a specified
|
|
26
|
-
* category of a category tree.
|
|
27
|
-
*
|
|
28
|
-
* @param categoryTreeId The unique identifier of the eBay category tree from which a category subtree is being
|
|
29
|
-
* requested.
|
|
30
|
-
* @param categoryId The unique identifier of the category at the top of the subtree being requested.
|
|
31
|
-
*/
|
|
32
9
|
getCategorySubtree(categoryTreeId: string, categoryId: string): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* This call returns an array of category tree leaf nodes in the specified category tree that are considered by eBay
|
|
35
|
-
* to most closely correspond to the query string q.
|
|
36
|
-
*
|
|
37
|
-
* @param categoryTreeId The unique identifier of the eBay category tree for which suggested nodes are being
|
|
38
|
-
* requested.
|
|
39
|
-
* @param q A quoted string that describes or characterizes the item being offered for sale.
|
|
40
|
-
*/
|
|
41
10
|
getCategorySuggestions(categoryTreeId: string, q: string): Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* This call returns a list of aspects that are appropriate or necessary for accurately describing items in the
|
|
44
|
-
* specified leaf category.
|
|
45
|
-
*
|
|
46
|
-
* @param categoryTreeId The unique identifier of the eBay category tree from which the specified category's
|
|
47
|
-
* aspects are being requested.
|
|
48
|
-
* @param categoryId The unique identifier of the leaf category for which aspects are being requested.
|
|
49
|
-
*/
|
|
50
11
|
getItemAspectsForCategory(categoryTreeId: string, categoryId: string): Promise<any>;
|
|
51
|
-
/**
|
|
52
|
-
* This call retrieves the compatible vehicle aspects that are used to define a motor vehicle that is compatible
|
|
53
|
-
* with a motor vehicle part or accessory.
|
|
54
|
-
*
|
|
55
|
-
* @param categoryTreeId This is the unique identifier of category tree. The following is the list of
|
|
56
|
-
* category_tree_id values and the eBay marketplaces that they represent.
|
|
57
|
-
*
|
|
58
|
-
* @param categoryId The unique identifier of an eBay category.
|
|
59
|
-
*/
|
|
60
12
|
getCompatibilityProperties(categoryTreeId: string, categoryId: string): Promise<any>;
|
|
61
|
-
/**
|
|
62
|
-
* This call retrieves applicable compatible vehicle property values based on the specified eBay marketplace,
|
|
63
|
-
* specified eBay category, and filters used in the request.
|
|
64
|
-
*
|
|
65
|
-
* @param categoryTreeId This is the unique identifier of the category tree.
|
|
66
|
-
* @param categoryId The unique identifier of an eBay category.
|
|
67
|
-
* @param compatibilityProperty One compatible vehicle property applicable to the specified eBay marketplace and
|
|
68
|
-
* eBay category is specified in this required filter.
|
|
69
|
-
*/
|
|
70
13
|
getCompatibilityPropertyValues(categoryTreeId: string, categoryId: string, compatibilityProperty: string): Promise<any>;
|
|
71
|
-
/**
|
|
72
|
-
* This call returns a complete list of aspects for all of the leaf categories that belong to an eBay marketplace.
|
|
73
|
-
*
|
|
74
|
-
* @param categoryTreeId
|
|
75
|
-
*
|
|
76
|
-
* @return A JSON GZIP compressed file buffer
|
|
77
|
-
*/
|
|
78
14
|
fetchItemAspects(categoryTreeId: string): Promise<Buffer>;
|
|
79
15
|
}
|