@isoftdata/ebay-utility 1.0.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 +110 -0
- package/lib/adapters/AdapterResult.d.ts +84 -0
- package/lib/adapters/AdapterResult.d.ts.map +1 -0
- package/lib/adapters/AdapterResult.js +117 -0
- package/lib/adapters/AdapterResult.js.map +1 -0
- package/lib/adapters/AdapterToUseCaseConverter.d.ts +77 -0
- package/lib/adapters/AdapterToUseCaseConverter.d.ts.map +1 -0
- package/lib/adapters/AdapterToUseCaseConverter.js +223 -0
- package/lib/adapters/AdapterToUseCaseConverter.js.map +1 -0
- package/lib/adapters/AuthServerRepo.d.ts +13 -0
- package/lib/adapters/AuthServerRepo.d.ts.map +1 -0
- package/lib/adapters/AuthServerRepo.js +23 -0
- package/lib/adapters/AuthServerRepo.js.map +1 -0
- package/lib/adapters/ebay/EbayAdapter.d.ts +51 -0
- package/lib/adapters/ebay/EbayAdapter.d.ts.map +1 -0
- package/lib/adapters/ebay/EbayAdapter.js +310 -0
- package/lib/adapters/ebay/EbayAdapter.js.map +1 -0
- package/lib/adapters/itrack/ItrackAdapter.d.ts +52 -0
- package/lib/adapters/itrack/ItrackAdapter.d.ts.map +1 -0
- package/lib/adapters/itrack/ItrackAdapter.js +166 -0
- package/lib/adapters/itrack/ItrackAdapter.js.map +1 -0
- package/lib/entities/Request.d.ts +8 -0
- package/lib/entities/Request.d.ts.map +1 -0
- package/lib/entities/Request.js +2 -0
- package/lib/entities/Request.js.map +1 -0
- package/lib/entities/ebay/Address.d.ts +63 -0
- package/lib/entities/ebay/Address.d.ts.map +1 -0
- package/lib/entities/ebay/Address.js +24 -0
- package/lib/entities/ebay/Address.js.map +1 -0
- package/lib/entities/ebay/Amount.d.ts +19 -0
- package/lib/entities/ebay/Amount.d.ts.map +1 -0
- package/lib/entities/ebay/Amount.js +6 -0
- package/lib/entities/ebay/Amount.js.map +1 -0
- package/lib/entities/ebay/Availability.d.ts +437 -0
- package/lib/entities/ebay/Availability.d.ts.map +1 -0
- package/lib/entities/ebay/Availability.js +140 -0
- package/lib/entities/ebay/Availability.js.map +1 -0
- package/lib/entities/ebay/CategoryType.d.ts +41 -0
- package/lib/entities/ebay/CategoryType.d.ts.map +1 -0
- package/lib/entities/ebay/CategoryType.js +22 -0
- package/lib/entities/ebay/CategoryType.js.map +1 -0
- package/lib/entities/ebay/Charity.d.ts +34 -0
- package/lib/entities/ebay/Charity.d.ts.map +1 -0
- package/lib/entities/ebay/Charity.js +13 -0
- package/lib/entities/ebay/Charity.js.map +1 -0
- package/lib/entities/ebay/ConditionDescription.d.ts +13 -0
- package/lib/entities/ebay/ConditionDescription.d.ts.map +1 -0
- package/lib/entities/ebay/ConditionDescription.js +12 -0
- package/lib/entities/ebay/ConditionDescription.js.map +1 -0
- package/lib/entities/ebay/ConditionDescriptors.d.ts +16 -0
- package/lib/entities/ebay/ConditionDescriptors.d.ts.map +1 -0
- package/lib/entities/ebay/ConditionDescriptors.js +13 -0
- package/lib/entities/ebay/ConditionDescriptors.js.map +1 -0
- package/lib/entities/ebay/ConditionEnum.d.ts +62 -0
- package/lib/entities/ebay/ConditionEnum.d.ts.map +1 -0
- package/lib/entities/ebay/ConditionEnum.js +73 -0
- package/lib/entities/ebay/ConditionEnum.js.map +1 -0
- package/lib/entities/ebay/ErrorDetailsV3.d.ts +16 -0
- package/lib/entities/ebay/ErrorDetailsV3.d.ts.map +1 -0
- package/lib/entities/ebay/ErrorDetailsV3.js +2 -0
- package/lib/entities/ebay/ErrorDetailsV3.js.map +1 -0
- package/lib/entities/ebay/FulfillmentPolicy.d.ts +130 -0
- package/lib/entities/ebay/FulfillmentPolicy.d.ts.map +1 -0
- package/lib/entities/ebay/FulfillmentPolicy.js +2 -0
- package/lib/entities/ebay/FulfillmentPolicy.js.map +1 -0
- package/lib/entities/ebay/GeoCoordinates.d.ts +21 -0
- package/lib/entities/ebay/GeoCoordinates.d.ts.map +1 -0
- package/lib/entities/ebay/GeoCoordinates.js +2 -0
- package/lib/entities/ebay/GeoCoordinates.js.map +1 -0
- package/lib/entities/ebay/ImageUpload.d.ts +45 -0
- package/lib/entities/ebay/ImageUpload.d.ts.map +1 -0
- package/lib/entities/ebay/ImageUpload.js +2 -0
- package/lib/entities/ebay/ImageUpload.js.map +1 -0
- package/lib/entities/ebay/Interval.d.ts +23 -0
- package/lib/entities/ebay/Interval.d.ts.map +1 -0
- package/lib/entities/ebay/Interval.js +2 -0
- package/lib/entities/ebay/Interval.js.map +1 -0
- package/lib/entities/ebay/InventoryItem.d.ts +112 -0
- package/lib/entities/ebay/InventoryItem.d.ts.map +1 -0
- package/lib/entities/ebay/InventoryItem.js +102 -0
- package/lib/entities/ebay/InventoryItem.js.map +1 -0
- package/lib/entities/ebay/InventoryLocation.d.ts +77 -0
- package/lib/entities/ebay/InventoryLocation.d.ts.map +1 -0
- package/lib/entities/ebay/InventoryLocation.js +2 -0
- package/lib/entities/ebay/InventoryLocation.js.map +1 -0
- package/lib/entities/ebay/InventoryLocationFull.d.ts +64 -0
- package/lib/entities/ebay/InventoryLocationFull.d.ts.map +1 -0
- package/lib/entities/ebay/InventoryLocationFull.js +42 -0
- package/lib/entities/ebay/InventoryLocationFull.js.map +1 -0
- package/lib/entities/ebay/ListingDurationEnum.d.ts +26 -0
- package/lib/entities/ebay/ListingDurationEnum.d.ts.map +1 -0
- package/lib/entities/ebay/ListingDurationEnum.js +33 -0
- package/lib/entities/ebay/ListingDurationEnum.js.map +1 -0
- package/lib/entities/ebay/ListingPolicies.d.ts +164 -0
- package/lib/entities/ebay/ListingPolicies.d.ts.map +1 -0
- package/lib/entities/ebay/ListingPolicies.js +30 -0
- package/lib/entities/ebay/ListingPolicies.js.map +1 -0
- package/lib/entities/ebay/LocationDetails.d.ts +34 -0
- package/lib/entities/ebay/LocationDetails.d.ts.map +1 -0
- package/lib/entities/ebay/LocationDetails.js +12 -0
- package/lib/entities/ebay/LocationDetails.js.map +1 -0
- package/lib/entities/ebay/MarketplaceEnum.d.ts +17 -0
- package/lib/entities/ebay/MarketplaceEnum.d.ts.map +1 -0
- package/lib/entities/ebay/MarketplaceEnum.js +31 -0
- package/lib/entities/ebay/MarketplaceEnum.js.map +1 -0
- package/lib/entities/ebay/MerchantLocationKey.d.ts +4 -0
- package/lib/entities/ebay/MerchantLocationKey.d.ts.map +1 -0
- package/lib/entities/ebay/MerchantLocationKey.js +3 -0
- package/lib/entities/ebay/MerchantLocationKey.js.map +1 -0
- package/lib/entities/ebay/Offer.d.ts +158 -0
- package/lib/entities/ebay/Offer.d.ts.map +1 -0
- package/lib/entities/ebay/Offer.js +110 -0
- package/lib/entities/ebay/Offer.js.map +1 -0
- package/lib/entities/ebay/OperatingHours.d.ts +34 -0
- package/lib/entities/ebay/OperatingHours.d.ts.map +1 -0
- package/lib/entities/ebay/OperatingHours.js +14 -0
- package/lib/entities/ebay/OperatingHours.js.map +1 -0
- package/lib/entities/ebay/PackageWeightAndSize.d.ts +132 -0
- package/lib/entities/ebay/PackageWeightAndSize.d.ts.map +1 -0
- package/lib/entities/ebay/PackageWeightAndSize.js +90 -0
- package/lib/entities/ebay/PackageWeightAndSize.js.map +1 -0
- package/lib/entities/ebay/PaymentPolicy.d.ts +55 -0
- package/lib/entities/ebay/PaymentPolicy.d.ts.map +1 -0
- package/lib/entities/ebay/PaymentPolicy.js +2 -0
- package/lib/entities/ebay/PaymentPolicy.js.map +1 -0
- package/lib/entities/ebay/PricingSummary.d.ts +80 -0
- package/lib/entities/ebay/PricingSummary.d.ts.map +1 -0
- package/lib/entities/ebay/PricingSummary.js +80 -0
- package/lib/entities/ebay/PricingSummary.js.map +1 -0
- package/lib/entities/ebay/Product.d.ts +119 -0
- package/lib/entities/ebay/Product.d.ts.map +1 -0
- package/lib/entities/ebay/Product.js +201 -0
- package/lib/entities/ebay/Product.js.map +1 -0
- package/lib/entities/ebay/ReturnPolicy.d.ts +72 -0
- package/lib/entities/ebay/ReturnPolicy.d.ts.map +1 -0
- package/lib/entities/ebay/ReturnPolicy.js +6 -0
- package/lib/entities/ebay/ReturnPolicy.js.map +1 -0
- package/lib/entities/ebay/Scopes.d.ts +7 -0
- package/lib/entities/ebay/Scopes.d.ts.map +1 -0
- package/lib/entities/ebay/Scopes.js +11 -0
- package/lib/entities/ebay/Scopes.js.map +1 -0
- package/lib/entities/ebay/ShippingOption.d.ts +91 -0
- package/lib/entities/ebay/ShippingOption.d.ts.map +1 -0
- package/lib/entities/ebay/ShippingOption.js +45 -0
- package/lib/entities/ebay/ShippingOption.js.map +1 -0
- package/lib/entities/ebay/ShippingService.d.ts +117 -0
- package/lib/entities/ebay/ShippingService.d.ts.map +1 -0
- package/lib/entities/ebay/ShippingService.js +11 -0
- package/lib/entities/ebay/ShippingService.js.map +1 -0
- package/lib/entities/ebay/Sku.d.ts +4 -0
- package/lib/entities/ebay/Sku.d.ts.map +1 -0
- package/lib/entities/ebay/Sku.js +3 -0
- package/lib/entities/ebay/Sku.js.map +1 -0
- package/lib/entities/ebay/SpecialHours.d.ts +30 -0
- package/lib/entities/ebay/SpecialHours.d.ts.map +1 -0
- package/lib/entities/ebay/SpecialHours.js +2 -0
- package/lib/entities/ebay/SpecialHours.js.map +1 -0
- package/lib/entities/ebay/TimeDuration.d.ts +38 -0
- package/lib/entities/ebay/TimeDuration.d.ts.map +1 -0
- package/lib/entities/ebay/TimeDuration.js +28 -0
- package/lib/entities/ebay/TimeDuration.js.map +1 -0
- package/lib/entities/ebay/url.d.ts +3 -0
- package/lib/entities/ebay/url.d.ts.map +1 -0
- package/lib/entities/ebay/url.js +7 -0
- package/lib/entities/ebay/url.js.map +1 -0
- package/lib/entities/ebay/validation.d.ts +52 -0
- package/lib/entities/ebay/validation.d.ts.map +1 -0
- package/lib/entities/ebay/validation.js +174 -0
- package/lib/entities/ebay/validation.js.map +1 -0
- package/lib/entities/htp/InventoryDetails.d.ts +20 -0
- package/lib/entities/htp/InventoryDetails.d.ts.map +1 -0
- package/lib/entities/htp/InventoryDetails.js +2 -0
- package/lib/entities/htp/InventoryDetails.js.map +1 -0
- package/lib/entities/http/HttpHeaders.d.ts +21 -0
- package/lib/entities/http/HttpHeaders.d.ts.map +1 -0
- package/lib/entities/http/HttpHeaders.js +10 -0
- package/lib/entities/http/HttpHeaders.js.map +1 -0
- package/lib/entities/http/HttpMethod.d.ts +7 -0
- package/lib/entities/http/HttpMethod.d.ts.map +1 -0
- package/lib/entities/http/HttpMethod.js +8 -0
- package/lib/entities/http/HttpMethod.js.map +1 -0
- package/lib/entities/http/HttpRequest.d.ts +10 -0
- package/lib/entities/http/HttpRequest.d.ts.map +1 -0
- package/lib/entities/http/HttpRequest.js +2 -0
- package/lib/entities/http/HttpRequest.js.map +1 -0
- package/lib/entities/itrack/FulfillmentPolicy.d.ts +10 -0
- package/lib/entities/itrack/FulfillmentPolicy.d.ts.map +1 -0
- package/lib/entities/itrack/FulfillmentPolicy.js +2 -0
- package/lib/entities/itrack/FulfillmentPolicy.js.map +1 -0
- package/lib/entities/itrack/InventoryListingDetail.d.ts +118 -0
- package/lib/entities/itrack/InventoryListingDetail.d.ts.map +1 -0
- package/lib/entities/itrack/InventoryListingDetail.js +2 -0
- package/lib/entities/itrack/InventoryListingDetail.js.map +1 -0
- package/lib/entities/itrack/ItrackEbayInventoryItem.js +25 -0
- package/lib/entities/itrack/ItrackEbayInventoryItem.js.map +1 -0
- package/lib/entities/itrack/ItrackEbayListing.d.ts +45 -0
- package/lib/entities/itrack/ItrackEbayListing.d.ts.map +1 -0
- package/lib/entities/itrack/ItrackEbayListing.js +25 -0
- package/lib/entities/itrack/ItrackEbayListing.js.map +1 -0
- package/lib/entities/itrack/ItrackEbayListing_deprecated.d.ts +46 -0
- package/lib/entities/itrack/ItrackEbayListing_deprecated.d.ts.map +1 -0
- package/lib/entities/itrack/ItrackEbayListing_deprecated.js +27 -0
- package/lib/entities/itrack/ItrackEbayListing_deprecated.js.map +1 -0
- package/lib/entities/itrack/PaymentPolicy.d.ts +10 -0
- package/lib/entities/itrack/PaymentPolicy.d.ts.map +1 -0
- package/lib/entities/itrack/PaymentPolicy.js +2 -0
- package/lib/entities/itrack/PaymentPolicy.js.map +1 -0
- package/lib/entities/itrack/ReturnPolicy.d.ts +10 -0
- package/lib/entities/itrack/ReturnPolicy.d.ts.map +1 -0
- package/lib/entities/itrack/ReturnPolicy.js +2 -0
- package/lib/entities/itrack/ReturnPolicy.js.map +1 -0
- package/lib/entities/itrack/ShouldBeOnEbayEnum.d.ts +5 -0
- package/lib/entities/itrack/ShouldBeOnEbayEnum.d.ts.map +1 -0
- package/lib/entities/itrack/ShouldBeOnEbayEnum.js +6 -0
- package/lib/entities/itrack/ShouldBeOnEbayEnum.js.map +1 -0
- package/lib/index.d.ts +35 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +44 -0
- package/lib/index.js.map +1 -0
- package/lib/infrastructure/HttpToRepoConverter.d.ts +8 -0
- package/lib/infrastructure/HttpToRepoConverter.d.ts.map +1 -0
- package/lib/infrastructure/HttpToRepoConverter.js +28 -0
- package/lib/infrastructure/HttpToRepoConverter.js.map +1 -0
- package/lib/infrastructure/TokenManager.d.ts +33 -0
- package/lib/infrastructure/TokenManager.d.ts.map +1 -0
- package/lib/infrastructure/TokenManager.js +145 -0
- package/lib/infrastructure/TokenManager.js.map +1 -0
- package/lib/infrastructure/http.d.ts +15 -0
- package/lib/infrastructure/http.d.ts.map +1 -0
- package/lib/infrastructure/http.js +59 -0
- package/lib/infrastructure/http.js.map +1 -0
- package/lib/infrastructure/httpMultipart.d.ts +27 -0
- package/lib/infrastructure/httpMultipart.d.ts.map +1 -0
- package/lib/infrastructure/httpMultipart.js +98 -0
- package/lib/infrastructure/httpMultipart.js.map +1 -0
- package/lib/infrastructure/mysql/MysqlDatastore.d.ts +11 -0
- package/lib/infrastructure/mysql/MysqlDatastore.d.ts.map +1 -0
- package/lib/infrastructure/mysql/MysqlDatastore.js +42 -0
- package/lib/infrastructure/mysql/MysqlDatastore.js.map +1 -0
- package/lib/infrastructure/mysql/getPool.d.ts +12 -0
- package/lib/infrastructure/mysql/getPool.d.ts.map +1 -0
- package/lib/infrastructure/mysql/getPool.js +25 -0
- package/lib/infrastructure/mysql/getPool.js.map +1 -0
- package/lib/ports/DatastoreInterface.d.ts +8 -0
- package/lib/ports/DatastoreInterface.d.ts.map +1 -0
- package/lib/ports/DatastoreInterface.js +2 -0
- package/lib/ports/DatastoreInterface.js.map +1 -0
- package/lib/ports/EbayInterface.d.ts +17 -0
- package/lib/ports/EbayInterface.d.ts.map +1 -0
- package/lib/ports/EbayInterface.js +2 -0
- package/lib/ports/EbayInterface.js.map +1 -0
- package/lib/ports/HtpInterface.d.ts +1 -0
- package/lib/ports/HtpInterface.d.ts.map +1 -0
- package/lib/ports/HtpInterface.js +1 -0
- package/lib/ports/HtpInterface.js.map +1 -0
- package/lib/ports/ItrackInterface.d.ts +10 -0
- package/lib/ports/ItrackInterface.d.ts.map +1 -0
- package/lib/ports/ItrackInterface.js +2 -0
- package/lib/ports/ItrackInterface.js.map +1 -0
- package/lib/repositories/EbaySandboxRefreshTokenRepo.d.ts +5 -0
- package/lib/repositories/EbaySandboxRefreshTokenRepo.d.ts.map +1 -0
- package/lib/repositories/EbaySandboxRefreshTokenRepo.js +8 -0
- package/lib/repositories/EbaySandboxRefreshTokenRepo.js.map +1 -0
- package/lib/repositories/KeyValueRepo.d.ts +9 -0
- package/lib/repositories/KeyValueRepo.d.ts.map +1 -0
- package/lib/repositories/KeyValueRepo.js +20 -0
- package/lib/repositories/KeyValueRepo.js.map +1 -0
- package/lib/repositories/RemoteEbaySandboxTokenRepo.d.ts +5 -0
- package/lib/repositories/RemoteEbaySandboxTokenRepo.d.ts.map +1 -0
- package/lib/repositories/RemoteEbaySandboxTokenRepo.js +8 -0
- package/lib/repositories/RemoteEbaySandboxTokenRepo.js.map +1 -0
- package/lib/repositories/RemoteEbayTokenRepo.d.ts +5 -0
- package/lib/repositories/RemoteEbayTokenRepo.d.ts.map +1 -0
- package/lib/repositories/RemoteEbayTokenRepo.js +8 -0
- package/lib/repositories/RemoteEbayTokenRepo.js.map +1 -0
- package/lib/repositories/ebay/BaseRepo.d.ts +30 -0
- package/lib/repositories/ebay/BaseRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/BaseRepo.js +7 -0
- package/lib/repositories/ebay/BaseRepo.js.map +1 -0
- package/lib/repositories/ebay/CompanyRepo.d.ts +5 -0
- package/lib/repositories/ebay/CompanyRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/CompanyRepo.js +15 -0
- package/lib/repositories/ebay/CompanyRepo.js.map +1 -0
- package/lib/repositories/ebay/EbayRefreshTokenRepo.d.ts +1 -0
- package/lib/repositories/ebay/EbayRefreshTokenRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/EbayRefreshTokenRepo.js +1 -0
- package/lib/repositories/ebay/EbayRefreshTokenRepo.js.map +1 -0
- package/lib/repositories/ebay/FulfillmentPolicyRepo.d.ts +32 -0
- package/lib/repositories/ebay/FulfillmentPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/FulfillmentPolicyRepo.js +42 -0
- package/lib/repositories/ebay/FulfillmentPolicyRepo.js.map +1 -0
- package/lib/repositories/ebay/ImageUploadRepo.d.ts +25 -0
- package/lib/repositories/ebay/ImageUploadRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/ImageUploadRepo.js +131 -0
- package/lib/repositories/ebay/ImageUploadRepo.js.map +1 -0
- package/lib/repositories/ebay/InventoryItemRepo.d.ts +18 -0
- package/lib/repositories/ebay/InventoryItemRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/InventoryItemRepo.js +54 -0
- package/lib/repositories/ebay/InventoryItemRepo.js.map +1 -0
- package/lib/repositories/ebay/InventoryLocationRepo.d.ts +21 -0
- package/lib/repositories/ebay/InventoryLocationRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/InventoryLocationRepo.js +53 -0
- package/lib/repositories/ebay/InventoryLocationRepo.js.map +1 -0
- package/lib/repositories/ebay/ListingRepo.d.ts +31 -0
- package/lib/repositories/ebay/ListingRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/ListingRepo.js +43 -0
- package/lib/repositories/ebay/ListingRepo.js.map +1 -0
- package/lib/repositories/ebay/OfferRepo.d.ts +68 -0
- package/lib/repositories/ebay/OfferRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/OfferRepo.js +147 -0
- package/lib/repositories/ebay/OfferRepo.js.map +1 -0
- package/lib/repositories/ebay/PaymentPolicyRepo.d.ts +30 -0
- package/lib/repositories/ebay/PaymentPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/PaymentPolicyRepo.js +41 -0
- package/lib/repositories/ebay/PaymentPolicyRepo.js.map +1 -0
- package/lib/repositories/ebay/ReturnPolicyRepo.d.ts +30 -0
- package/lib/repositories/ebay/ReturnPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/ReturnPolicyRepo.js +41 -0
- package/lib/repositories/ebay/ReturnPolicyRepo.js.map +1 -0
- package/lib/repositories/ebay/ShippingOptionRepo.d.ts +1 -0
- package/lib/repositories/ebay/ShippingOptionRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/ShippingOptionRepo.js +1 -0
- package/lib/repositories/ebay/ShippingOptionRepo.js.map +1 -0
- package/lib/repositories/ebay/ShippingServiceRepo.d.ts +1 -0
- package/lib/repositories/ebay/ShippingServiceRepo.d.ts.map +1 -0
- package/lib/repositories/ebay/ShippingServiceRepo.js +2 -0
- package/lib/repositories/ebay/ShippingServiceRepo.js.map +1 -0
- package/lib/repositories/htp/InventoryDetailsRepo.d.ts +8 -0
- package/lib/repositories/htp/InventoryDetailsRepo.d.ts.map +1 -0
- package/lib/repositories/htp/InventoryDetailsRepo.js +25 -0
- package/lib/repositories/htp/InventoryDetailsRepo.js.map +1 -0
- package/lib/repositories/itrack/BaseRepo.d.ts +7 -0
- package/lib/repositories/itrack/BaseRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/BaseRepo.js +6 -0
- package/lib/repositories/itrack/BaseRepo.js.map +1 -0
- package/lib/repositories/itrack/CompanyRepo.d.ts +5 -0
- package/lib/repositories/itrack/CompanyRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/CompanyRepo.js +8 -0
- package/lib/repositories/itrack/CompanyRepo.js.map +1 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo.d.ts +27 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo.js +2 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo.js.map +1 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.d.ts +27 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.d.ts.map +1 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.js +2 -0
- package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.js.map +1 -0
- package/lib/repositories/itrack/ImageRepo.d.ts +7 -0
- package/lib/repositories/itrack/ImageRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ImageRepo.js +23 -0
- package/lib/repositories/itrack/ImageRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackEbayConditionRepo.d.ts +36 -0
- package/lib/repositories/itrack/ItrackEbayConditionRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackEbayConditionRepo.js +113 -0
- package/lib/repositories/itrack/ItrackEbayConditionRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.d.ts +11 -0
- package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.js +35 -0
- package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackEbayInventoryItemRepo.js +75 -0
- package/lib/repositories/itrack/ItrackEbayInventoryItemRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.d.ts +8 -0
- package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.js +66 -0
- package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.js.map +1 -0
- package/lib/repositories/itrack/ItrackEbayListingRepo.d.ts +8 -0
- package/lib/repositories/itrack/ItrackEbayListingRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackEbayListingRepo.js +66 -0
- package/lib/repositories/itrack/ItrackEbayListingRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.d.ts +11 -0
- package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.js +35 -0
- package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.d.ts +11 -0
- package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.js +34 -0
- package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.d.ts +11 -0
- package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.js +35 -0
- package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackPaymentPolicyRepo.d.ts +11 -0
- package/lib/repositories/itrack/ItrackPaymentPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackPaymentPolicyRepo.js +35 -0
- package/lib/repositories/itrack/ItrackPaymentPolicyRepo.js.map +1 -0
- package/lib/repositories/itrack/ItrackReturnPolicyRepo.d.ts +11 -0
- package/lib/repositories/itrack/ItrackReturnPolicyRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/ItrackReturnPolicyRepo.js +34 -0
- package/lib/repositories/itrack/ItrackReturnPolicyRepo.js.map +1 -0
- package/lib/repositories/itrack/StoreRepo.d.ts +35 -0
- package/lib/repositories/itrack/StoreRepo.d.ts.map +1 -0
- package/lib/repositories/itrack/StoreRepo.js +35 -0
- package/lib/repositories/itrack/StoreRepo.js.map +1 -0
- package/lib/tests/processImageUrlTest.d.ts +29 -0
- package/lib/tests/processImageUrlTest.d.ts.map +1 -0
- package/lib/tests/processImageUrlTest.js +402 -0
- package/lib/tests/processImageUrlTest.js.map +1 -0
- package/lib/tests/test.d.ts +2 -0
- package/lib/tests/test.d.ts.map +1 -0
- package/lib/tests/test.js +130 -0
- package/lib/tests/test.js.map +1 -0
- package/lib/tests/tests.js +130 -0
- package/lib/tests/tests.js.map +1 -0
- package/lib/types/PushEbayListing.d.ts +1 -0
- package/lib/types/PushEbayListing.d.ts.map +1 -0
- package/lib/types/PushEbayListing.js +1 -0
- package/lib/types/PushEbayListing.js.map +1 -0
- package/lib/types/UseCaseResult.d.ts +107 -0
- package/lib/types/UseCaseResult.d.ts.map +1 -0
- package/lib/types/UseCaseResult.examples.d.ts +42 -0
- package/lib/types/UseCaseResult.examples.d.ts.map +1 -0
- package/lib/types/UseCaseResult.examples.js +168 -0
- package/lib/types/UseCaseResult.examples.js.map +1 -0
- package/lib/types/UseCaseResult.js +201 -0
- package/lib/types/UseCaseResult.js.map +1 -0
- package/lib/usecases/Agg_StoreEvent.d.ts +21 -0
- package/lib/usecases/Agg_StoreEvent.d.ts.map +1 -0
- package/lib/usecases/Agg_StoreEvent.js +12 -0
- package/lib/usecases/Agg_StoreEvent.js.map +1 -0
- package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.d.ts +7 -0
- package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.d.ts.map +1 -0
- package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.js +5 -0
- package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.js.map +1 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.d.ts +6 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.d.ts.map +1 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.js +6 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.js.map +1 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.d.ts +6 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.d.ts.map +1 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.js +5 -0
- package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.js.map +1 -0
- package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.d.ts +7 -0
- package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.d.ts.map +1 -0
- package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.js +5 -0
- package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.js.map +1 -0
- package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.d.ts +10 -0
- package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.d.ts.map +1 -0
- package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.js +35 -0
- package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.js.map +1 -0
- package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.d.ts +7 -0
- package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.d.ts.map +1 -0
- package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.js +5 -0
- package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.js.map +1 -0
- package/lib/usecases/FulfillmentPolicy/integration.test.d.ts +2 -0
- package/lib/usecases/FulfillmentPolicy/integration.test.d.ts.map +1 -0
- package/lib/usecases/FulfillmentPolicy/integration.test.js +52 -0
- package/lib/usecases/FulfillmentPolicy/integration.test.js.map +1 -0
- package/lib/usecases/GetSigninUrl.d.ts +9 -0
- package/lib/usecases/GetSigninUrl.d.ts.map +1 -0
- package/lib/usecases/GetSigninUrl.js +18 -0
- package/lib/usecases/GetSigninUrl.js.map +1 -0
- package/lib/usecases/Images/GetImageFromProduct.d.ts +12 -0
- package/lib/usecases/Images/GetImageFromProduct.d.ts.map +1 -0
- package/lib/usecases/Images/GetImageFromProduct.js +16 -0
- package/lib/usecases/Images/GetImageFromProduct.js.map +1 -0
- package/lib/usecases/Images/PushImageToEbay.d.ts +15 -0
- package/lib/usecases/Images/PushImageToEbay.d.ts.map +1 -0
- package/lib/usecases/Images/PushImageToEbay.js +25 -0
- package/lib/usecases/Images/PushImageToEbay.js.map +1 -0
- package/lib/usecases/Images/SyncImageToEbay.d.ts +21 -0
- package/lib/usecases/Images/SyncImageToEbay.d.ts.map +1 -0
- package/lib/usecases/Images/SyncImageToEbay.js +36 -0
- package/lib/usecases/Images/SyncImageToEbay.js.map +1 -0
- package/lib/usecases/Images/SyncMultipleImagesToEbay.d.ts +19 -0
- package/lib/usecases/Images/SyncMultipleImagesToEbay.d.ts.map +1 -0
- package/lib/usecases/Images/SyncMultipleImagesToEbay.js +53 -0
- package/lib/usecases/Images/SyncMultipleImagesToEbay.js.map +1 -0
- package/lib/usecases/Images/integration.test.d.ts +30 -0
- package/lib/usecases/Images/integration.test.d.ts.map +1 -0
- package/lib/usecases/Images/integration.test.js +320 -0
- package/lib/usecases/Images/integration.test.js.map +1 -0
- package/lib/usecases/Inventory/ConvertInventoryItemToSku.js +54 -0
- package/lib/usecases/Inventory/ConvertInventoryItemToSku.js.map +1 -0
- package/lib/usecases/Inventory/GetInventoryFromProduct.d.ts +8 -0
- package/lib/usecases/Inventory/GetInventoryFromProduct.d.ts.map +1 -0
- package/lib/usecases/Inventory/GetInventoryFromProduct.js +6 -0
- package/lib/usecases/Inventory/GetInventoryFromProduct.js.map +1 -0
- package/lib/usecases/Inventory/PushInventorySkuToEbay.d.ts +18 -0
- package/lib/usecases/Inventory/PushInventorySkuToEbay.d.ts.map +1 -0
- package/lib/usecases/Inventory/PushInventorySkuToEbay.js +21 -0
- package/lib/usecases/Inventory/PushInventorySkuToEbay.js.map +1 -0
- package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.d.ts +1 -0
- package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.d.ts.map +1 -0
- package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.js +1 -0
- package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.js.map +1 -0
- package/lib/usecases/Inventory/SyncInventoryToEbay.d.ts +19 -0
- package/lib/usecases/Inventory/SyncInventoryToEbay.d.ts.map +1 -0
- package/lib/usecases/Inventory/SyncInventoryToEbay.js +42 -0
- package/lib/usecases/Inventory/SyncInventoryToEbay.js.map +1 -0
- package/lib/usecases/Inventory/integration.test.d.ts +35 -0
- package/lib/usecases/Inventory/integration.test.d.ts.map +1 -0
- package/lib/usecases/Inventory/integration.test.js +333 -0
- package/lib/usecases/Inventory/integration.test.js.map +1 -0
- package/lib/usecases/Listing/GetListingFromProduct.js +15 -0
- package/lib/usecases/Listing/GetListingFromProduct.js.map +1 -0
- package/lib/usecases/Listing/PushListingToEbay.js +31 -0
- package/lib/usecases/Listing/PushListingToEbay.js.map +1 -0
- package/lib/usecases/Listing/SyncListing.js +182 -0
- package/lib/usecases/Listing/SyncListing.js.map +1 -0
- package/lib/usecases/Listing_old/GetListingFromProduct.d.ts +8 -0
- package/lib/usecases/Listing_old/GetListingFromProduct.d.ts.map +1 -0
- package/lib/usecases/Listing_old/GetListingFromProduct.js +6 -0
- package/lib/usecases/Listing_old/GetListingFromProduct.js.map +1 -0
- package/lib/usecases/Listing_old/PushListingToEbay.d.ts +16 -0
- package/lib/usecases/Listing_old/PushListingToEbay.d.ts.map +1 -0
- package/lib/usecases/Listing_old/PushListingToEbay.js +22 -0
- package/lib/usecases/Listing_old/PushListingToEbay.js.map +1 -0
- package/lib/usecases/Listing_old/SyncListing.d.ts +11 -0
- package/lib/usecases/Listing_old/SyncListing.d.ts.map +1 -0
- package/lib/usecases/Listing_old/SyncListing.js +173 -0
- package/lib/usecases/Listing_old/SyncListing.js.map +1 -0
- package/lib/usecases/Location/GetInventoryLocationsFromEbay.d.ts +11 -0
- package/lib/usecases/Location/GetInventoryLocationsFromEbay.d.ts.map +1 -0
- package/lib/usecases/Location/GetInventoryLocationsFromEbay.js +5 -0
- package/lib/usecases/Location/GetInventoryLocationsFromEbay.js.map +1 -0
- package/lib/usecases/Location/PushInventoryLocationToEbay.d.ts +12 -0
- package/lib/usecases/Location/PushInventoryLocationToEbay.d.ts.map +1 -0
- package/lib/usecases/Location/PushInventoryLocationToEbay.js +12 -0
- package/lib/usecases/Location/PushInventoryLocationToEbay.js.map +1 -0
- package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.d.ts +1 -0
- package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.d.ts.map +1 -0
- package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.js +1 -0
- package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.js.map +1 -0
- package/lib/usecases/Location/SyncInventoryLocations.d.ts +17 -0
- package/lib/usecases/Location/SyncInventoryLocations.d.ts.map +1 -0
- package/lib/usecases/Location/SyncInventoryLocations.js +67 -0
- package/lib/usecases/Location/SyncInventoryLocations.js.map +1 -0
- package/lib/usecases/Location/integration.test.d.ts +2 -0
- package/lib/usecases/Location/integration.test.d.ts.map +1 -0
- package/lib/usecases/Location/integration.test.js +31 -0
- package/lib/usecases/Location/integration.test.js.map +1 -0
- package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.d.ts +22 -0
- package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.js +67 -0
- package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.js.map +1 -0
- package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.d.ts +17 -0
- package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.js +66 -0
- package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.js.map +1 -0
- package/lib/usecases/Offer/CreateEbayOffer.d.ts +11 -0
- package/lib/usecases/Offer/CreateEbayOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/CreateEbayOffer.js +31 -0
- package/lib/usecases/Offer/CreateEbayOffer.js.map +1 -0
- package/lib/usecases/Offer/GetEbayDefaultsFromProduct.d.ts +8 -0
- package/lib/usecases/Offer/GetEbayDefaultsFromProduct.d.ts.map +1 -0
- package/lib/usecases/Offer/GetEbayDefaultsFromProduct.js +10 -0
- package/lib/usecases/Offer/GetEbayDefaultsFromProduct.js.map +1 -0
- package/lib/usecases/Offer/PublishEbayOffer.d.ts +11 -0
- package/lib/usecases/Offer/PublishEbayOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/PublishEbayOffer.js +20 -0
- package/lib/usecases/Offer/PublishEbayOffer.js.map +1 -0
- package/lib/usecases/Offer/PushEbayOffer.d.ts +14 -0
- package/lib/usecases/Offer/PushEbayOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/PushEbayOffer.js +54 -0
- package/lib/usecases/Offer/PushEbayOffer.js.map +1 -0
- package/lib/usecases/Offer/SyncEbayInventoryAndOffer.d.ts +26 -0
- package/lib/usecases/Offer/SyncEbayInventoryAndOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/SyncEbayInventoryAndOffer.js +145 -0
- package/lib/usecases/Offer/SyncEbayInventoryAndOffer.js.map +1 -0
- package/lib/usecases/Offer/SyncEbayOffer.d.ts +20 -0
- package/lib/usecases/Offer/SyncEbayOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/SyncEbayOffer.js +49 -0
- package/lib/usecases/Offer/SyncEbayOffer.js.map +1 -0
- package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.d.ts +36 -0
- package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.d.ts.map +1 -0
- package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.js +102 -0
- package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.js.map +1 -0
- package/lib/usecases/Offer/createOfferSample.d.ts +1 -0
- package/lib/usecases/Offer/createOfferSample.d.ts.map +1 -0
- package/lib/usecases/Offer/createOfferSample.js +230 -0
- package/lib/usecases/Offer/createOfferSample.js.map +1 -0
- package/lib/usecases/Offer/integration.test.d.ts +37 -0
- package/lib/usecases/Offer/integration.test.d.ts.map +1 -0
- package/lib/usecases/Offer/integration.test.js +472 -0
- package/lib/usecases/Offer/integration.test.js.map +1 -0
- package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.d.ts +7 -0
- package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.d.ts.map +1 -0
- package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.js +5 -0
- package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.js.map +1 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.d.ts +6 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.d.ts.map +1 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.js +6 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.js.map +1 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.d.ts +6 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.d.ts.map +1 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.js +5 -0
- package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.js.map +1 -0
- package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.d.ts +7 -0
- package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.d.ts.map +1 -0
- package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.js +5 -0
- package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.js.map +1 -0
- package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.d.ts +15 -0
- package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.d.ts.map +1 -0
- package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.js +40 -0
- package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.js.map +1 -0
- package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.d.ts +7 -0
- package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.d.ts.map +1 -0
- package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.js +5 -0
- package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.js.map +1 -0
- package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.d.ts +7 -0
- package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.d.ts.map +1 -0
- package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.js +5 -0
- package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.js.map +1 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.d.ts +6 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.d.ts.map +1 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.js +6 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.js.map +1 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.d.ts +6 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.d.ts.map +1 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.js +5 -0
- package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.js.map +1 -0
- package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.d.ts +7 -0
- package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.d.ts.map +1 -0
- package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.js +5 -0
- package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.js.map +1 -0
- package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.d.ts +15 -0
- package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.d.ts.map +1 -0
- package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.js +40 -0
- package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.js.map +1 -0
- package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.d.ts +7 -0
- package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.d.ts.map +1 -0
- package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.js +5 -0
- package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.js.map +1 -0
- package/lib/usecases/ReturnPolicy/integration.test.d.ts +2 -0
- package/lib/usecases/ReturnPolicy/integration.test.d.ts.map +1 -0
- package/lib/usecases/ReturnPolicy/integration.test.js +56 -0
- package/lib/usecases/ReturnPolicy/integration.test.js.map +1 -0
- package/lib/usecases/integration.test.d.ts +33 -0
- package/lib/usecases/integration.test.d.ts.map +1 -0
- package/lib/usecases/integration.test.js +499 -0
- package/lib/usecases/integration.test.js.map +1 -0
- package/lib/usecases/types/CompleteListing.d.ts +29 -0
- package/lib/usecases/types/CompleteListing.d.ts.map +1 -0
- package/lib/usecases/types/CompleteListing.js +2 -0
- package/lib/usecases/types/CompleteListing.js.map +1 -0
- package/lib/utils/buildInventoryListingRow.d.ts +23 -0
- package/lib/utils/buildInventoryListingRow.d.ts.map +1 -0
- package/lib/utils/buildInventoryListingRow.js +14 -0
- package/lib/utils/buildInventoryListingRow.js.map +1 -0
- package/lib/utils/ebayResponseParser.d.ts +50 -0
- package/lib/utils/ebayResponseParser.d.ts.map +1 -0
- package/lib/utils/ebayResponseParser.js +98 -0
- package/lib/utils/ebayResponseParser.js.map +1 -0
- package/lib/utils/imageUrlComparison.d.ts +5 -0
- package/lib/utils/imageUrlComparison.d.ts.map +1 -0
- package/lib/utils/imageUrlComparison.js +46 -0
- package/lib/utils/imageUrlComparison.js.map +1 -0
- package/lib/utils/imageUrlComparison.test.d.ts +2 -0
- package/lib/utils/imageUrlComparison.test.d.ts.map +1 -0
- package/lib/utils/imageUrlComparison.test.js +113 -0
- package/lib/utils/imageUrlComparison.test.js.map +1 -0
- package/lib/utils/typeHelpers.d.ts +5 -0
- package/lib/utils/typeHelpers.d.ts.map +1 -0
- package/lib/utils/typeHelpers.js +2 -0
- package/lib/utils/typeHelpers.js.map +1 -0
- package/lib/utils/utils.d.ts +25 -0
- package/lib/utils/utils.d.ts.map +1 -0
- package/lib/utils/utils.js +124 -0
- package/lib/utils/utils.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Interval } from "./Interval.js";
|
|
2
|
+
/**
|
|
3
|
+
* An enumerated type defining the days of the week. This type is used by the dayOfWeekEnum field under the
|
|
4
|
+
* operatingHours container to indicate which days a merchant's store is open to pick up In-Store Pickup or Click and
|
|
5
|
+
* Collect orders.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum DayOfWeekEnum {
|
|
8
|
+
Monday = "MONDAY",
|
|
9
|
+
Tuesday = "TUESDAY",
|
|
10
|
+
Wednesday = "WEDNESDAY",
|
|
11
|
+
Thursday = "THURSDAY",
|
|
12
|
+
Friday = "FRIDAY"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* This type is used to express the regular operating hours of a merchant's store during the days of the week.
|
|
16
|
+
*/
|
|
17
|
+
export interface OperatingHours {
|
|
18
|
+
/**
|
|
19
|
+
* A dayOfWeekEnum value is required for each day of the week that the store location has regular operating hours.
|
|
20
|
+
*
|
|
21
|
+
* This field is returned if operating hours are defined for the store location.
|
|
22
|
+
*/
|
|
23
|
+
dayOfWeekEnum: DayOfWeekEnum;
|
|
24
|
+
/**
|
|
25
|
+
* This container is used to define the opening and closing times of a store's working day (defined in the
|
|
26
|
+
* dayOfWeekEnum field). An intervals container is needed for each day of the week that the store location is open.
|
|
27
|
+
* If a store location closes for lunch (or any other period during the day) and then reopens, multiple open and
|
|
28
|
+
* close pairs are needed
|
|
29
|
+
*
|
|
30
|
+
* This container is returned if operating hours are defined for the store location.
|
|
31
|
+
*/
|
|
32
|
+
intervals: Interval[];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=OperatingHours.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperatingHours.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/OperatingHours.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC;;;;GAIG;AAEH,oBAAY,aAAa;IACxB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;OAIG;IACH,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;;;;OAOG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enumerated type defining the days of the week. This type is used by the dayOfWeekEnum field under the
|
|
3
|
+
* operatingHours container to indicate which days a merchant's store is open to pick up In-Store Pickup or Click and
|
|
4
|
+
* Collect orders.
|
|
5
|
+
*/
|
|
6
|
+
export var DayOfWeekEnum;
|
|
7
|
+
(function (DayOfWeekEnum) {
|
|
8
|
+
DayOfWeekEnum["Monday"] = "MONDAY";
|
|
9
|
+
DayOfWeekEnum["Tuesday"] = "TUESDAY";
|
|
10
|
+
DayOfWeekEnum["Wednesday"] = "WEDNESDAY";
|
|
11
|
+
DayOfWeekEnum["Thursday"] = "THURSDAY";
|
|
12
|
+
DayOfWeekEnum["Friday"] = "FRIDAY";
|
|
13
|
+
})(DayOfWeekEnum || (DayOfWeekEnum = {}));
|
|
14
|
+
//# sourceMappingURL=OperatingHours.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperatingHours.js","sourceRoot":"","sources":["../../../src/entities/ebay/OperatingHours.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACxB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AAClB,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* This enumeration type is used to specify/indicate the unit of measurement with which the dimensions of the shipping
|
|
4
|
+
* package are being measured.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum EbayLengthUnitOfMeasureEnum {
|
|
7
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in inches. */
|
|
8
|
+
Inch = "INCH",
|
|
9
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in feet. */
|
|
10
|
+
Feet = "FEET",
|
|
11
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in centimeters.*/
|
|
12
|
+
Centimeter = "CENTIMETER",
|
|
13
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in meters. */
|
|
14
|
+
Meter = "METER"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Indicates that the unit of measurement used for measuring the weight of the shipping package.
|
|
18
|
+
*/
|
|
19
|
+
export declare enum EbayWeightUnitOfMeasureEnum {
|
|
20
|
+
Pound = "POUND",
|
|
21
|
+
Kilogram = "KILOGRAM",
|
|
22
|
+
Ounce = "OUNCE",
|
|
23
|
+
Gram = "GRAM"
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* This enumeration value indicates the type of shipping package used to ship the inventory item.
|
|
27
|
+
* There are more than what's listed here.
|
|
28
|
+
* source: https://developer.ebay.com/api-docs/sell/inventory/types/slr:PackageTypeEnum
|
|
29
|
+
*/
|
|
30
|
+
export declare enum EbayPackageTypeEnum {
|
|
31
|
+
/** This enumeration value indicates that the inventory item is considered a "bulky good". */
|
|
32
|
+
BulkyGoods = "BULKY_GOODS",
|
|
33
|
+
/** This enumeration value indicates that the shipping package is a letter. */
|
|
34
|
+
Letter = "LETTER",
|
|
35
|
+
/** This enumeration value indicates that the shipping package is a standard mailing box. */
|
|
36
|
+
MailingBox = "MAILING_BOX",
|
|
37
|
+
/** This enumeration value indicates that the shipping package is a pallet. */
|
|
38
|
+
Pallet = "ONE_WAY_PALLET",
|
|
39
|
+
/** This enumeration value indicates that the shipping package is a parcel or padded envelope. */
|
|
40
|
+
Parcel = "PARCEL_OR_PADDED_ENVELOPE",
|
|
41
|
+
/** This enumeration value indicates that the shipping package is a flat rate envelope. */
|
|
42
|
+
UspsFlatRateEnvelope = "USPS_FLAT_RATE_ENVELOPE"
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Used to specifiy the weight and unit of a shipping package.
|
|
46
|
+
* Conditionally required if the seller will be offering calculated shipping rates to determine shipping
|
|
47
|
+
* cost, or is using flat-rate costs, but charging a weight surcharge.
|
|
48
|
+
*/
|
|
49
|
+
export declare const Weight: z.ZodObject<{
|
|
50
|
+
unit: z.ZodNativeEnum<typeof EbayWeightUnitOfMeasureEnum>;
|
|
51
|
+
value: z.ZodNumber;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
unit?: EbayWeightUnitOfMeasureEnum;
|
|
54
|
+
value?: number;
|
|
55
|
+
}, {
|
|
56
|
+
unit?: EbayWeightUnitOfMeasureEnum;
|
|
57
|
+
value?: number;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const PackageWeightAndSize: z.ZodObject<{
|
|
60
|
+
/**
|
|
61
|
+
* This container is used to indicate the length, width, and height of the shipping package that will be used to ship the inventory item.
|
|
62
|
+
* The dimensions of a shipping package are needed when calculated shipping is used.
|
|
63
|
+
*/
|
|
64
|
+
dimensions: z.ZodObject<{
|
|
65
|
+
height: z.ZodNumber;
|
|
66
|
+
length: z.ZodNumber;
|
|
67
|
+
unit: z.ZodNativeEnum<typeof EbayLengthUnitOfMeasureEnum>;
|
|
68
|
+
width: z.ZodNumber;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
unit?: EbayLengthUnitOfMeasureEnum;
|
|
71
|
+
length?: number;
|
|
72
|
+
height?: number;
|
|
73
|
+
width?: number;
|
|
74
|
+
}, {
|
|
75
|
+
unit?: EbayLengthUnitOfMeasureEnum;
|
|
76
|
+
length?: number;
|
|
77
|
+
height?: number;
|
|
78
|
+
width?: number;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* This enumeration value indicates the type of shipping package used to ship the inventory item
|
|
82
|
+
*/
|
|
83
|
+
packageType: z.ZodNativeEnum<typeof EbayPackageTypeEnum>;
|
|
84
|
+
/**
|
|
85
|
+
* A value of true indicates that the package is irregular and cannot go through the stamping machine at the shipping service office.
|
|
86
|
+
* This field applies to calculated shipping only.
|
|
87
|
+
* Irregular packages require special or fragile handling.
|
|
88
|
+
*/
|
|
89
|
+
shippingIrregular: z.ZodBoolean;
|
|
90
|
+
/**
|
|
91
|
+
* This container is used to specify the weight of the shipping package that will be used to ship the inventory item.
|
|
92
|
+
* The weight of a shipping package are needed when calculated shipping is used, or if flat-rate shipping rates are used, but with a weight surcharge.
|
|
93
|
+
*/
|
|
94
|
+
weight: z.ZodObject<{
|
|
95
|
+
unit: z.ZodNativeEnum<typeof EbayWeightUnitOfMeasureEnum>;
|
|
96
|
+
value: z.ZodNumber;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
unit?: EbayWeightUnitOfMeasureEnum;
|
|
99
|
+
value?: number;
|
|
100
|
+
}, {
|
|
101
|
+
unit?: EbayWeightUnitOfMeasureEnum;
|
|
102
|
+
value?: number;
|
|
103
|
+
}>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
dimensions?: {
|
|
106
|
+
unit?: EbayLengthUnitOfMeasureEnum;
|
|
107
|
+
length?: number;
|
|
108
|
+
height?: number;
|
|
109
|
+
width?: number;
|
|
110
|
+
};
|
|
111
|
+
packageType?: EbayPackageTypeEnum;
|
|
112
|
+
shippingIrregular?: boolean;
|
|
113
|
+
weight?: {
|
|
114
|
+
unit?: EbayWeightUnitOfMeasureEnum;
|
|
115
|
+
value?: number;
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
dimensions?: {
|
|
119
|
+
unit?: EbayLengthUnitOfMeasureEnum;
|
|
120
|
+
length?: number;
|
|
121
|
+
height?: number;
|
|
122
|
+
width?: number;
|
|
123
|
+
};
|
|
124
|
+
packageType?: EbayPackageTypeEnum;
|
|
125
|
+
shippingIrregular?: boolean;
|
|
126
|
+
weight?: {
|
|
127
|
+
unit?: EbayWeightUnitOfMeasureEnum;
|
|
128
|
+
value?: number;
|
|
129
|
+
};
|
|
130
|
+
}>;
|
|
131
|
+
export type PackageWeightAndSize = z.infer<typeof PackageWeightAndSize>;
|
|
132
|
+
//# sourceMappingURL=PackageWeightAndSize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageWeightAndSize.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/PackageWeightAndSize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,oBAAY,2BAA2B;IACnC,gHAAgH;IAChH,IAAI,SAAS;IACb,8GAA8G;IAC9G,IAAI,SAAS;IACb,oHAAoH;IACpH,UAAU,eAAe;IACzB,gHAAgH;IAChH,KAAK,UAAU;CAClB;AAED;;GAEG;AACH,oBAAY,2BAA2B;IACnC,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED;;;;GAIG;AAEH,oBAAY,mBAAmB;IAC3B,6FAA6F;IAC7F,UAAU,gBAAgB;IAC1B,8EAA8E;IAC9E,MAAM,WAAW;IACjB,4FAA4F;IAC5F,UAAU,gBAAgB;IAC1B,8EAA8E;IAC9E,MAAM,mBAAmB;IACzB,iGAAiG;IACjG,MAAM,8BAA8B;IACpC,0FAA0F;IAC1F,oBAAoB,4BAA4B;CACnD;AAeD;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;;;;EAGjB,CAAA;AAEF,eAAO,MAAM,oBAAoB;IAC7B;;;OAGG;;;;;;;;;;;;;;;;;IAGH;;OAEG;;IAEH;;;;OAIG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIL,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* This enumeration type is used to specify/indicate the unit of measurement with which the dimensions of the shipping
|
|
4
|
+
* package are being measured.
|
|
5
|
+
*/
|
|
6
|
+
export var EbayLengthUnitOfMeasureEnum;
|
|
7
|
+
(function (EbayLengthUnitOfMeasureEnum) {
|
|
8
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in inches. */
|
|
9
|
+
EbayLengthUnitOfMeasureEnum["Inch"] = "INCH";
|
|
10
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in feet. */
|
|
11
|
+
EbayLengthUnitOfMeasureEnum["Feet"] = "FEET";
|
|
12
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in centimeters.*/
|
|
13
|
+
EbayLengthUnitOfMeasureEnum["Centimeter"] = "CENTIMETER";
|
|
14
|
+
/** This enumeration value indicates that the dimensions of the shipping package is being measured in meters. */
|
|
15
|
+
EbayLengthUnitOfMeasureEnum["Meter"] = "METER";
|
|
16
|
+
})(EbayLengthUnitOfMeasureEnum || (EbayLengthUnitOfMeasureEnum = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Indicates that the unit of measurement used for measuring the weight of the shipping package.
|
|
19
|
+
*/
|
|
20
|
+
export var EbayWeightUnitOfMeasureEnum;
|
|
21
|
+
(function (EbayWeightUnitOfMeasureEnum) {
|
|
22
|
+
EbayWeightUnitOfMeasureEnum["Pound"] = "POUND";
|
|
23
|
+
EbayWeightUnitOfMeasureEnum["Kilogram"] = "KILOGRAM";
|
|
24
|
+
EbayWeightUnitOfMeasureEnum["Ounce"] = "OUNCE";
|
|
25
|
+
EbayWeightUnitOfMeasureEnum["Gram"] = "GRAM";
|
|
26
|
+
})(EbayWeightUnitOfMeasureEnum || (EbayWeightUnitOfMeasureEnum = {}));
|
|
27
|
+
/**
|
|
28
|
+
* This enumeration value indicates the type of shipping package used to ship the inventory item.
|
|
29
|
+
* There are more than what's listed here.
|
|
30
|
+
* source: https://developer.ebay.com/api-docs/sell/inventory/types/slr:PackageTypeEnum
|
|
31
|
+
*/
|
|
32
|
+
export var EbayPackageTypeEnum;
|
|
33
|
+
(function (EbayPackageTypeEnum) {
|
|
34
|
+
/** This enumeration value indicates that the inventory item is considered a "bulky good". */
|
|
35
|
+
EbayPackageTypeEnum["BulkyGoods"] = "BULKY_GOODS";
|
|
36
|
+
/** This enumeration value indicates that the shipping package is a letter. */
|
|
37
|
+
EbayPackageTypeEnum["Letter"] = "LETTER";
|
|
38
|
+
/** This enumeration value indicates that the shipping package is a standard mailing box. */
|
|
39
|
+
EbayPackageTypeEnum["MailingBox"] = "MAILING_BOX";
|
|
40
|
+
/** This enumeration value indicates that the shipping package is a pallet. */
|
|
41
|
+
EbayPackageTypeEnum["Pallet"] = "ONE_WAY_PALLET";
|
|
42
|
+
/** This enumeration value indicates that the shipping package is a parcel or padded envelope. */
|
|
43
|
+
EbayPackageTypeEnum["Parcel"] = "PARCEL_OR_PADDED_ENVELOPE";
|
|
44
|
+
/** This enumeration value indicates that the shipping package is a flat rate envelope. */
|
|
45
|
+
EbayPackageTypeEnum["UspsFlatRateEnvelope"] = "USPS_FLAT_RATE_ENVELOPE";
|
|
46
|
+
})(EbayPackageTypeEnum || (EbayPackageTypeEnum = {}));
|
|
47
|
+
/**
|
|
48
|
+
* This type is used to specify the dimensions (and the unit used to measure those dimensions) of a shipping package.
|
|
49
|
+
* The dimensions container is conditionally required if the seller will be offering calculated shipping rates to
|
|
50
|
+
* determine shipping cost. See the Calculated shipping help page for more information on calculated shipping.
|
|
51
|
+
* Conditional: Required if the seller will be offering calculated shipping rates to determine shipping cost.
|
|
52
|
+
*/
|
|
53
|
+
const Dimension = z.object({
|
|
54
|
+
height: z.number(),
|
|
55
|
+
length: z.number(),
|
|
56
|
+
unit: z.nativeEnum(EbayLengthUnitOfMeasureEnum),
|
|
57
|
+
width: z.number()
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* Used to specifiy the weight and unit of a shipping package.
|
|
61
|
+
* Conditionally required if the seller will be offering calculated shipping rates to determine shipping
|
|
62
|
+
* cost, or is using flat-rate costs, but charging a weight surcharge.
|
|
63
|
+
*/
|
|
64
|
+
export const Weight = z.object({
|
|
65
|
+
unit: z.nativeEnum(EbayWeightUnitOfMeasureEnum),
|
|
66
|
+
value: z.number()
|
|
67
|
+
});
|
|
68
|
+
export const PackageWeightAndSize = z.object({
|
|
69
|
+
/**
|
|
70
|
+
* This container is used to indicate the length, width, and height of the shipping package that will be used to ship the inventory item.
|
|
71
|
+
* The dimensions of a shipping package are needed when calculated shipping is used.
|
|
72
|
+
*/
|
|
73
|
+
dimensions: Dimension,
|
|
74
|
+
/**
|
|
75
|
+
* This enumeration value indicates the type of shipping package used to ship the inventory item
|
|
76
|
+
*/
|
|
77
|
+
packageType: z.nativeEnum(EbayPackageTypeEnum),
|
|
78
|
+
/**
|
|
79
|
+
* A value of true indicates that the package is irregular and cannot go through the stamping machine at the shipping service office.
|
|
80
|
+
* This field applies to calculated shipping only.
|
|
81
|
+
* Irregular packages require special or fragile handling.
|
|
82
|
+
*/
|
|
83
|
+
shippingIrregular: z.boolean(),
|
|
84
|
+
/**
|
|
85
|
+
* This container is used to specify the weight of the shipping package that will be used to ship the inventory item.
|
|
86
|
+
* The weight of a shipping package are needed when calculated shipping is used, or if flat-rate shipping rates are used, but with a weight surcharge.
|
|
87
|
+
*/
|
|
88
|
+
weight: Weight
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=PackageWeightAndSize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageWeightAndSize.js","sourceRoot":"","sources":["../../../src/entities/ebay/PackageWeightAndSize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,MAAM,CAAN,IAAY,2BASX;AATD,WAAY,2BAA2B;IACnC,gHAAgH;IAChH,4CAAa,CAAA;IACb,8GAA8G;IAC9G,4CAAa,CAAA;IACb,oHAAoH;IACpH,wDAAyB,CAAA;IACzB,gHAAgH;IAChH,8CAAe,CAAA;AACnB,CAAC,EATW,2BAA2B,KAA3B,2BAA2B,QAStC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACnC,8CAAe,CAAA;IACf,oDAAqB,CAAA;IACrB,8CAAe,CAAA;IACf,4CAAa,CAAA;AACjB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC;AAED;;;;GAIG;AAEH,MAAM,CAAN,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,6FAA6F;IAC7F,iDAA0B,CAAA;IAC1B,8EAA8E;IAC9E,wCAAiB,CAAA;IACjB,4FAA4F;IAC5F,iDAA0B,CAAA;IAC1B,8EAA8E;IAC9E,gDAAyB,CAAA;IACzB,iGAAiG;IACjG,2DAAoC,CAAA;IACpC,0FAA0F;IAC1F,uEAAgD,CAAA;AACpD,CAAC,EAbW,mBAAmB,KAAnB,mBAAmB,QAa9B;AAED;;;;;GAKG;AACH,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC;;;OAGG;IACH,UAAU,EAAE,SAAS;IAErB;;OAEG;IACH,WAAW,EAAE,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC9C;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE;IAE9B;;;OAGG;IACH,MAAM,EAAE,MAAM;CAGjB,CAAC,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CategoryType } from "./CategoryType.js";
|
|
2
|
+
import { MarketplaceEnum } from "./MarketplaceEnum.js";
|
|
3
|
+
/**
|
|
4
|
+
* Root container that defines the fields for a seller's payment policy. The paymentPolicy encapsulates a seller's
|
|
5
|
+
* payment terms and consists of payment details for the seller, the name and description of the policy, and the
|
|
6
|
+
* marketplace and category group(s) covered by the payment policy. While each seller must define at least one payment
|
|
7
|
+
* policy for every marketplace into which they sell, sellers can define multiple payment policies for a single
|
|
8
|
+
* marketplace by specifying different configurations for the unique policies.
|
|
9
|
+
*/
|
|
10
|
+
export interface PaymentPolicy {
|
|
11
|
+
/**
|
|
12
|
+
* The CategoryTypeEnum value to which this policy applies. Used to discern accounts that sell motor vehicles from
|
|
13
|
+
* those that don't. (Currently, each policy can be set to only one categoryTypes value at a time.)
|
|
14
|
+
*/
|
|
15
|
+
categoryTypes: CategoryType[];
|
|
16
|
+
/**
|
|
17
|
+
* An optional seller-defined description of the payment policy for internal use (this value is not displayed to end
|
|
18
|
+
* users).
|
|
19
|
+
*
|
|
20
|
+
* Max length: 250
|
|
21
|
+
*/
|
|
22
|
+
description: string;
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the eBay marketplace to which the payment policy applies. If this value is not specified, value
|
|
25
|
+
* defaults to the seller's eBay registration site.
|
|
26
|
+
*/
|
|
27
|
+
marketplaceId: MarketplaceEnum;
|
|
28
|
+
/**
|
|
29
|
+
* A user-defined name for this payment policy. Names must be unique for policies assigned to the same marketplace.
|
|
30
|
+
*
|
|
31
|
+
* Max length: 64
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* This free-form string field gives sellers the ability add detailed payment instructions to their listings. The
|
|
36
|
+
* payment instructions appear on eBay's View Item and Checkout pages.
|
|
37
|
+
*
|
|
38
|
+
* eBay recommends sellers use this field to clarify payment policies for motor vehicle listings on eBay Motors. For
|
|
39
|
+
* example, sellers can include the specifics on the deposit (if required), pickup/delivery arrangements, and full
|
|
40
|
+
* payment details on the vehicle.
|
|
41
|
+
*
|
|
42
|
+
* The field allows only 500 characters as input, but due to the way the eBay web site UI treats characters, this
|
|
43
|
+
* field can return more than 500 characters in the response. For example, characters like & and ' (ampersand and
|
|
44
|
+
* single quote) count as 5 characters each.
|
|
45
|
+
*/
|
|
46
|
+
paymentInstructions: string;
|
|
47
|
+
/** A unique eBay-assigned ID for a payment policy. This ID is generated when the policy is created. */
|
|
48
|
+
paymentPolicyId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface PaymentPolicyResponse {
|
|
51
|
+
href: string;
|
|
52
|
+
paymentPolicies: PaymentPolicy[];
|
|
53
|
+
total: number;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=PaymentPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentPolicy.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/PaymentPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAItD;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B;;;OAGG;IACH,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAA;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;;;;;OAWG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B,uGAAuG;IACvG,eAAe,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,qBAAqB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,aAAa,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentPolicy.js","sourceRoot":"","sources":["../../../src/entities/ebay/PaymentPolicy.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Amount } from "./Amount.js";
|
|
2
|
+
import { ValidationResult } from "./validation.js";
|
|
3
|
+
/**
|
|
4
|
+
* This enumeration type is used to indicate if the product was sold for the price in the originalRetailPrice field on
|
|
5
|
+
* an eBay site, or sold for that price by a third-party retailer. This type is only applicable if the seller and
|
|
6
|
+
* listing are eligible to use the Strikethrough Pricing feature, a feature which is limited to the US (core site and
|
|
7
|
+
* Motors), UK, Germany, Canada (English and French versions), France, Italy, and Spain.
|
|
8
|
+
*/
|
|
9
|
+
declare enum SoldOnEnum {
|
|
10
|
+
OnEbay = "ON_EBAY",
|
|
11
|
+
OffEbay = "OFF_EBAY",
|
|
12
|
+
OnAndOffEbay = "ON_AND_OFF_EBAY"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* This type is used to control how/when the Minimum Advertised Price is shown for an offer. The Minimum Advertised
|
|
16
|
+
* Price (MAP) feature is only available on the US site.
|
|
17
|
+
*/
|
|
18
|
+
declare enum MinimumAdvertisedPriceHandlingEnum {
|
|
19
|
+
None = "NONE",
|
|
20
|
+
PreCheckout = "PRE_CHECKOUT",
|
|
21
|
+
DuringCheckout = "DURING_CHECKOUT"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* This type is used to specify the listing price for the product and settings for the Minimum Advertised Price and
|
|
25
|
+
* Strikethrough Pricing features. The price field must be supplied before an offer is published, but a seller may
|
|
26
|
+
* create an offer without supplying a price initially. The Minimum Advertised Price feature is only available on the US
|
|
27
|
+
* site. Strikethrough Pricing is available on the US, eBay Motors, UK, Germany, Canada (English and French), France,
|
|
28
|
+
* Italy, and Spain sites.
|
|
29
|
+
*/
|
|
30
|
+
export interface PricingSummary {
|
|
31
|
+
/**
|
|
32
|
+
* This container is needed if the Minimum Advertised Price (MAP) feature will be used in the offer. Minimum
|
|
33
|
+
* Advertised Price (MAP) is an agreement between suppliers (or manufacturers (OEM)) and the retailers (sellers)
|
|
34
|
+
* stipulating the lowest price an item is allowed to be advertised at. Sellers can only offer prices below this
|
|
35
|
+
* price through the use of other discounts. The MAP feature is only available to eligible US sellers. This field
|
|
36
|
+
* will be ignored if the seller and or the listing is not eligible for the MAP feature.
|
|
37
|
+
*/
|
|
38
|
+
minimumAdvertisedPrice?: Amount;
|
|
39
|
+
/**
|
|
40
|
+
* This field is needed if the Strikethrough Pricing (STP) feature will be used in the offer. This field indicates
|
|
41
|
+
* that the product was sold for the price in the originalRetailPrice field on an eBay site, or sold for that price
|
|
42
|
+
* by a third-party retailer. When using the createOffer or updateOffer calls, the seller will pass in a value of
|
|
43
|
+
* ON_EBAY to indicate that the product was sold for the originalRetailPrice on an eBay site, or the seller will
|
|
44
|
+
* pass in a value of OFF_EBAY to indicate that the product was sold for the originalRetailPrice through a
|
|
45
|
+
* third-party retailer. This field and the originalRetailPrice field are only applicable if the seller and listing
|
|
46
|
+
* are eligible to use the Strikethrough Pricing feature, a feature which is limited to the US (core site and
|
|
47
|
+
* Motors), UK, Germany, Canada (English and French versions), France, Italy, and Spain sites.
|
|
48
|
+
*/
|
|
49
|
+
originallySoldForRetailPrice?: SoldOnEnum;
|
|
50
|
+
/**
|
|
51
|
+
* This container is needed if the Strikethrough Pricing (STP) feature will be used in the offer. The dollar value
|
|
52
|
+
* passed into this field indicates the original retail price set by the manufacturer (OEM). eBay does not maintain
|
|
53
|
+
* or validate the value supplied here by the seller. The dollar value in this field should always be more than the
|
|
54
|
+
* dollar value in the price container. This field and the originallySoldForRetailPriceOn field are only applicable
|
|
55
|
+
* if the seller and listing are eligible to use the Strikethrough Pricing feature, a feature which is limited to
|
|
56
|
+
* the US (core site and Motors), UK, Germany, Canada (English and French versions), France, Italy, and Spain sites.
|
|
57
|
+
* Compare the originalRetailPrice and the dollar value in the price field to determine the amount of savings to the
|
|
58
|
+
* buyer. This Original Retail Price will have a strikethrough line through for a marketing affect.
|
|
59
|
+
*/
|
|
60
|
+
originalRetailPrice?: Amount;
|
|
61
|
+
/**
|
|
62
|
+
* This is the listing price of the product. A listing price must be specified before publishing an offer, but it is
|
|
63
|
+
* possible to create an offer without a price.
|
|
64
|
+
*/
|
|
65
|
+
price: Amount;
|
|
66
|
+
/**
|
|
67
|
+
* This field is needed if the Minimum Advertised Price (MAP) feature will be used in the offer. This field is only
|
|
68
|
+
* applicable if an eligible US seller is using the Minimum Advertised Price (MAP) feature and a
|
|
69
|
+
* minimumAdvertisedPrice has been specified. The value set in this field will determine whether the MAP price is
|
|
70
|
+
* shown to a prospective buyer prior to checkout through a pop-up window accessed from the View Item page, or if
|
|
71
|
+
* the MAP price is not shown until the checkout flow after the buyer has already committed to buying the item. To
|
|
72
|
+
* show the MAP price prior to checkout, the seller will set this value to PRE_CHECKOUT. To show the MAP price after
|
|
73
|
+
* the buyer already commits to buy the item, the seller will set this value to DURING_CHECKOUT. This field will be
|
|
74
|
+
* ignored if the seller and/or the listing is not eligible for the MAP feature.
|
|
75
|
+
*/
|
|
76
|
+
pricingVisibility?: MinimumAdvertisedPriceHandlingEnum;
|
|
77
|
+
}
|
|
78
|
+
export declare const validatePricingSummary: (pricingSummary: unknown) => ValidationResult<PricingSummary>;
|
|
79
|
+
export {};
|
|
80
|
+
//# sourceMappingURL=PricingSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PricingSummary.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/PricingSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAA;AACtD,OAAO,EAAY,gBAAgB,EAAoD,MAAM,iBAAiB,CAAA;AAE9G;;;;;GAKG;AACH,aAAK,UAAU;IACd,MAAM,YAAY;IAClB,OAAO,aAAa;IACpB,YAAY,oBAAoB;CAChC;AAED;;;GAGG;AACH,aAAK,kCAAkC;IACtC,IAAI,SAAS;IACb,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;CAClC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B;;;;;;;;;OASG;IACH,4BAA4B,CAAC,EAAE,UAAU,CAAA;IACzC;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;;;OASG;IACH,iBAAiB,CAAC,EAAE,kCAAkC,CAAA;CACtD;AA8CD,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,OAAO,KAAG,gBAAgB,CAAC,cAAc,CAuB/F,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { CurrencyCodeEnum } from "./Amount.js";
|
|
2
|
+
import { isObject, validateEnum, validateString } from "./validation.js";
|
|
3
|
+
/**
|
|
4
|
+
* This enumeration type is used to indicate if the product was sold for the price in the originalRetailPrice field on
|
|
5
|
+
* an eBay site, or sold for that price by a third-party retailer. This type is only applicable if the seller and
|
|
6
|
+
* listing are eligible to use the Strikethrough Pricing feature, a feature which is limited to the US (core site and
|
|
7
|
+
* Motors), UK, Germany, Canada (English and French versions), France, Italy, and Spain.
|
|
8
|
+
*/
|
|
9
|
+
var SoldOnEnum;
|
|
10
|
+
(function (SoldOnEnum) {
|
|
11
|
+
SoldOnEnum["OnEbay"] = "ON_EBAY";
|
|
12
|
+
SoldOnEnum["OffEbay"] = "OFF_EBAY";
|
|
13
|
+
SoldOnEnum["OnAndOffEbay"] = "ON_AND_OFF_EBAY";
|
|
14
|
+
})(SoldOnEnum || (SoldOnEnum = {}));
|
|
15
|
+
/**
|
|
16
|
+
* This type is used to control how/when the Minimum Advertised Price is shown for an offer. The Minimum Advertised
|
|
17
|
+
* Price (MAP) feature is only available on the US site.
|
|
18
|
+
*/
|
|
19
|
+
var MinimumAdvertisedPriceHandlingEnum;
|
|
20
|
+
(function (MinimumAdvertisedPriceHandlingEnum) {
|
|
21
|
+
MinimumAdvertisedPriceHandlingEnum["None"] = "NONE";
|
|
22
|
+
MinimumAdvertisedPriceHandlingEnum["PreCheckout"] = "PRE_CHECKOUT";
|
|
23
|
+
MinimumAdvertisedPriceHandlingEnum["DuringCheckout"] = "DURING_CHECKOUT";
|
|
24
|
+
})(MinimumAdvertisedPriceHandlingEnum || (MinimumAdvertisedPriceHandlingEnum = {}));
|
|
25
|
+
// Helper function to validate Amount objects
|
|
26
|
+
const validateAmount = (amount, fieldName, required = false) => {
|
|
27
|
+
const errors = [];
|
|
28
|
+
if (!required && (amount === undefined || amount === null)) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
if (!isObject(amount)) {
|
|
32
|
+
errors.push({
|
|
33
|
+
type: 'validation_error',
|
|
34
|
+
field: fieldName,
|
|
35
|
+
message: `${fieldName} must be an object`,
|
|
36
|
+
value: amount,
|
|
37
|
+
code: 'INVALID_TYPE'
|
|
38
|
+
});
|
|
39
|
+
return errors;
|
|
40
|
+
}
|
|
41
|
+
const amountObj = amount;
|
|
42
|
+
// Validate currency field
|
|
43
|
+
errors.push(...validateEnum(`${fieldName}.currency`, amountObj.currency, CurrencyCodeEnum, { required: true }));
|
|
44
|
+
// Validate value field (should be a numeric string)
|
|
45
|
+
errors.push(...validateString(`${fieldName}.value`, amountObj.value, { required: true }));
|
|
46
|
+
// Additional validation: ensure value is numeric
|
|
47
|
+
if (typeof amountObj.value === 'string' && amountObj.value !== '') {
|
|
48
|
+
const numericValue = parseFloat(amountObj.value);
|
|
49
|
+
if (isNaN(numericValue) || numericValue < 0) {
|
|
50
|
+
errors.push({
|
|
51
|
+
type: 'validation_error',
|
|
52
|
+
field: `${fieldName}.value`,
|
|
53
|
+
message: `${fieldName}.value must be a valid positive number`,
|
|
54
|
+
value: amountObj.value,
|
|
55
|
+
code: 'INVALID_FORMAT'
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return errors;
|
|
60
|
+
};
|
|
61
|
+
export const validatePricingSummary = (pricingSummary) => {
|
|
62
|
+
const errors = [];
|
|
63
|
+
if (!isObject(pricingSummary)) {
|
|
64
|
+
errors.push({
|
|
65
|
+
type: 'validation_error',
|
|
66
|
+
field: 'pricingSummary',
|
|
67
|
+
message: 'pricingSummary must be an object',
|
|
68
|
+
value: pricingSummary,
|
|
69
|
+
code: 'INVALID_TYPE'
|
|
70
|
+
});
|
|
71
|
+
return { success: false, errors };
|
|
72
|
+
}
|
|
73
|
+
// Validate required price field
|
|
74
|
+
errors.push(...validateAmount(pricingSummary.price, 'price', true));
|
|
75
|
+
if (errors.length > 0) {
|
|
76
|
+
return { success: false, errors };
|
|
77
|
+
}
|
|
78
|
+
return { success: true, data: pricingSummary };
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=PricingSummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PricingSummary.js","sourceRoot":"","sources":["../../../src/entities/ebay/PricingSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAwC,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAE9G;;;;;GAKG;AACH,IAAK,UAIJ;AAJD,WAAK,UAAU;IACd,gCAAkB,CAAA;IAClB,kCAAoB,CAAA;IACpB,8CAAgC,CAAA;AACjC,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAED;;;GAGG;AACH,IAAK,kCAIJ;AAJD,WAAK,kCAAkC;IACtC,mDAAa,CAAA;IACb,kEAA4B,CAAA;IAC5B,wEAAkC,CAAA;AACnC,CAAC,EAJI,kCAAkC,KAAlC,kCAAkC,QAItC;AA0DD,6CAA6C;AAC7C,MAAM,cAAc,GAAG,CAAC,MAAe,EAAE,SAAiB,EAAE,WAAoB,KAAK,EAAwB,EAAE;IAC9G,MAAM,MAAM,GAAyB,EAAE,CAAA;IAEvC,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC;QAC5D,OAAO,EAAE,CAAA;IACV,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACvB,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,GAAG,SAAS,oBAAoB;YACzC,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,cAAc;SACpB,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACd,CAAC;IAED,MAAM,SAAS,GAAG,MAAa,CAAA;IAE/B,0BAA0B;IAC1B,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,GAAG,SAAS,WAAW,EAAE,SAAS,CAAC,QAAQ,EAAE,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAE/G,oDAAoD;IACpD,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,GAAG,SAAS,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAEzF,iDAAiD;IACjD,IAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,IAAI,SAAS,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;QACnE,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;QAChD,IAAI,KAAK,CAAC,YAAY,CAAC,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;YAC7C,MAAM,CAAC,IAAI,CAAC;gBACX,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,GAAG,SAAS,QAAQ;gBAC3B,OAAO,EAAE,GAAG,SAAS,wCAAwC;gBAC7D,KAAK,EAAE,SAAS,CAAC,KAAK;gBACtB,IAAI,EAAE,gBAAgB;aACtB,CAAC,CAAA;QACH,CAAC;IACF,CAAC;IAED,OAAO,MAAM,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,cAAuB,EAAoC,EAAE;IACnG,MAAM,MAAM,GAAyB,EAAE,CAAA;IAEvC,IAAI,CAAC,QAAQ,CAAiB,cAAc,CAAC,EAAE,CAAC;QAC/C,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,kCAAkC;YAC3C,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,cAAc;SACpB,CAAC,CAAA;QACF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;IAClC,CAAC;IAED,gCAAgC;IAChC,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;IAGnE,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;IAClC,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,cAAgC,EAAE,CAAA;AACjE,CAAC,CAAA"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { ValidationResult } from "./validation.js";
|
|
2
|
+
export type Aspects = {
|
|
3
|
+
"Brand": string[];
|
|
4
|
+
"Manufacturer Part Number"?: string[];
|
|
5
|
+
"OE/OEM Part Number"?: string[];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* This type is used to define the product details, such as a title, a product description, product aspects/item
|
|
9
|
+
* specifics, and links to images for the product. Optionally, in a createOrReplaceInventoryItem call, a seller can pass
|
|
10
|
+
* in an eBay Product Identifier (ePID) or a Global Trade Item Number (GTIN) value, such as an EAN, an ISBN, a UPC, to
|
|
11
|
+
* identify a product to be matched with a product in the eBay Catalog. The information in this type is also returned in
|
|
12
|
+
* the getInventoryItem, getInventoryItems, and bulkGetInventoryItem calls if defined.
|
|
13
|
+
*
|
|
14
|
+
* https://developer.ebay.com/api-docs/sell/inventory/types/slr:Product
|
|
15
|
+
*/
|
|
16
|
+
export interface Product {
|
|
17
|
+
/**
|
|
18
|
+
* This is a collection of item specifics (aka product aspects) name-value pairs that provide more information about the product and might make it easier for buyers to find.
|
|
19
|
+
* To view required/recommended product aspects/item specifics names (and corresponding values) for a specific eBay category,
|
|
20
|
+
* sellers can use the getItemAspectsForCategory method of the Taxonomy API.
|
|
21
|
+
*
|
|
22
|
+
* Occurrence: Required for offer
|
|
23
|
+
*/
|
|
24
|
+
aspects: Aspects;
|
|
25
|
+
/**
|
|
26
|
+
* The brand of the product. This field is often paired with the mpn field to identify a specific product by
|
|
27
|
+
* Manufacture Part Number. This field is conditionally required if the eBay category requires a Manufacturer Part
|
|
28
|
+
* Number (MPN) value. If eBay is able to find a product match in the eBay Catalog when an eBay Product ID (ePID) or
|
|
29
|
+
* GTIN value (UPC, ISBN, or EAN) is supplied, all product details of that eBay Catalog product is picked up by the
|
|
30
|
+
* inventory item record (including brand) if the createOrUpdateInventoryItem call is successful.
|
|
31
|
+
*/
|
|
32
|
+
brand?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The description of the product. The description of an existing inventory item can be added or modified with a
|
|
35
|
+
* createOrReplaceInventoryItem call. The description of an inventory item is automatically populated if the seller
|
|
36
|
+
* specifies an eBay Product ID (ePID) or a Global Trade Item Number (GTIN) and eBay is able to find a matching
|
|
37
|
+
* product in the eBay Catalog.
|
|
38
|
+
*
|
|
39
|
+
* Note that this field is optional but recommended. If a listingDescription field is omitted when creating and
|
|
40
|
+
* publishing a single-variation offer, the text in this field will be used instead. If neither the
|
|
41
|
+
* product.description field for the inventory item nor the listingDescription field for the offer exist, the
|
|
42
|
+
* publishOffer call will fail. If the inventory item will be part of an inventory item group/multiple-variation
|
|
43
|
+
* listing, this field should definitely be used to specify how the corresponding product variation is different
|
|
44
|
+
* (e.g. This is the green, extra-large version of the shirt). However, in the case of an inventory item group, the
|
|
45
|
+
* text in the description field of the inventory item group will become the listing description of the actual eBay
|
|
46
|
+
* listing instead of the text in this field.
|
|
47
|
+
*
|
|
48
|
+
* Min Length: 1, Max Length: 4000
|
|
49
|
+
*/
|
|
50
|
+
description: string;
|
|
51
|
+
ean?: string[];
|
|
52
|
+
epid?: string;
|
|
53
|
+
/**
|
|
54
|
+
* An array of one or more links to images for the product. URLs must use the "HTTPS" protocol. Images can be
|
|
55
|
+
* self-hosted by the seller, or sellers can use the UploadSiteHostedPictures call of the Trading API to upload
|
|
56
|
+
* images to an eBay Picture Server. If successful, the response of the UploadSiteHostedPictures call will contain a
|
|
57
|
+
* full URL to the image on an eBay Picture Server. This is the URL that will be passed in through the imageUrls
|
|
58
|
+
* array. Before an offer can be published, at least one image must exist for the inventory item. Most eBay sites
|
|
59
|
+
* support up to 12 pictures free of charge, and eBay Motors listings can have up to 24 pictures.
|
|
60
|
+
*/
|
|
61
|
+
imageUrls?: string[];
|
|
62
|
+
isbn?: string[];
|
|
63
|
+
/**
|
|
64
|
+
* The Manufacturer Part Number (MPN) of a product. This field is paired with the brand field to identify a product.
|
|
65
|
+
* Some eBay categories require MPN values. The GetCategorySpecifics call of the Trading API can be used to see if a
|
|
66
|
+
* category requires an MPN. The MPN value for a product may automatically be populated for an inventory item if the
|
|
67
|
+
* seller specifies an eBay Product ID (ePID) or a Global Trade Item Number (GTIN) and eBay is able to find a
|
|
68
|
+
* matching product in the eBay Catalog.
|
|
69
|
+
*/
|
|
70
|
+
mpn?: string;
|
|
71
|
+
/**
|
|
72
|
+
* A subtitle is an optional listing feature that allows the seller to provide more information about the product,
|
|
73
|
+
* possibly including keywords that may assist with search results. An additional listing fee will be charged to the
|
|
74
|
+
* seller if a subtitle is used. For more information on using listing subtitles on the US site, see the Adding a
|
|
75
|
+
* subtitle to your listings help page. The subtitle of an existing inventory item can added, modified, or removed
|
|
76
|
+
* with a createOrReplaceInventoryItem call.
|
|
77
|
+
*
|
|
78
|
+
* Note that the same subtitle text should be used for each inventory item that will be part of an inventory item
|
|
79
|
+
* group, and ultimately become one product variation within a multiple-variation listing.
|
|
80
|
+
*
|
|
81
|
+
* This field will only be returned if set for an inventory item.
|
|
82
|
+
*
|
|
83
|
+
* Max Length: 55
|
|
84
|
+
*/
|
|
85
|
+
subtitle?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The title of an inventory item can be added or modified with a createOrReplaceInventoryItem call. Although not
|
|
88
|
+
* immediately required, a title will be needed before an offer with the inventory item is published. The title of
|
|
89
|
+
* an inventory item is automatically populated if the seller specifies an eBay Product ID (ePID) or a Global Trade
|
|
90
|
+
* Item Number (GTIN) and eBay is able to find a matching product in the eBay Catalog. If the inventory item will
|
|
91
|
+
* become part of a single-variation offer, and the listing is not a product-based listing, the text in this field
|
|
92
|
+
* will become the actual listing title for the published offer. However, if the inventory item will become part of
|
|
93
|
+
* a multiple-variation offer, the text in title field of the inventory item group entity will actually become the
|
|
94
|
+
* listing title for the published offer instead, although a title can still be provided for the inventory item, and
|
|
95
|
+
* it will actually become the title of the variation.
|
|
96
|
+
*
|
|
97
|
+
* This field will always be returned for an inventory item that is part of a published offer since a published
|
|
98
|
+
* offer will always have a listing title, but this field will only be returned if defined for inventory items that
|
|
99
|
+
* are not a part of a published offer.
|
|
100
|
+
*
|
|
101
|
+
* Max Length: 80
|
|
102
|
+
*/
|
|
103
|
+
title: string;
|
|
104
|
+
/**
|
|
105
|
+
* The Universal Product Code (UPC) value for the product. Although an ePID value is preferred when trying to find a
|
|
106
|
+
* product match in the eBay Catalog, this field can also be used in an attempt to find a product match in the eBay
|
|
107
|
+
* Catalog. If a product match is found in the eBay Catalog, the inventory item is automatically populated with
|
|
108
|
+
* available product details such as a title, a product description, product aspects (including the specified UPC
|
|
109
|
+
* value), and a link to any stock image that exists for the catalog product.
|
|
110
|
+
*
|
|
111
|
+
* This field is returned if defined for an inventory item. If a UPC was passed in as an item specific name-value
|
|
112
|
+
* pair through the aspects array in a createOrReplaceInventoryItem call, this value is also picked up by the upc
|
|
113
|
+
* field.
|
|
114
|
+
*/
|
|
115
|
+
upc?: string[];
|
|
116
|
+
}
|
|
117
|
+
export declare function validateProduct(product: unknown): ValidationResult<Product>;
|
|
118
|
+
export declare const validate: (product: unknown) => any;
|
|
119
|
+
//# sourceMappingURL=Product.d.ts.map
|