@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,164 @@
|
|
|
1
|
+
import { Amount } from "./Amount.js";
|
|
2
|
+
import { NonFunctionProperties } from "../../utils/typeHelpers.js";
|
|
3
|
+
/**
|
|
4
|
+
* This type is used to identify the payment, return, and fulfillment listing policies that will be, or are associated
|
|
5
|
+
* with the listing. Every published offer must have a payment, return, and fulfillment listing policy associated with
|
|
6
|
+
* it. This type is also used to override the shipping costs of one or more shipping service options that are associated
|
|
7
|
+
* with the fulfillment policy, to enable eBay Plus eligibility for a listing, or to enable the Best Offer feature on
|
|
8
|
+
* the listing.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ListingPolicies {
|
|
11
|
+
/**
|
|
12
|
+
* This unique identifier indicates the fulfillment listing policy that will be used once an offer is published and
|
|
13
|
+
* converted to an eBay listing. This fulfillment listing policy will set all fulfillment-related settings for the
|
|
14
|
+
* eBay listing.
|
|
15
|
+
*
|
|
16
|
+
* Listing policies are not immediately required for offers, but are required before an offer can be published. The
|
|
17
|
+
* seller should review the fulfillment listing policy before assigning it to the offer to make sure it is
|
|
18
|
+
* compatible with the inventory item and the offer settings. The seller may also want to review the shipping
|
|
19
|
+
* service costs in the fulfillment policy, and that seller might decide to override the shipping costs for one or
|
|
20
|
+
* more shipping service options by using the shippingCostOverrides container.
|
|
21
|
+
*
|
|
22
|
+
* Listing policies can be created and managed in My eBay or with the Account API. To get a list of all return
|
|
23
|
+
* policies associated with a seller's account on a specific eBay Marketplace, use the Account API's
|
|
24
|
+
* getFulfillmentPolicies call. There are also calls in the Account API to retrieve a fulfillment policy by policy
|
|
25
|
+
* ID or policy name.
|
|
26
|
+
*/
|
|
27
|
+
fulfillmentPolicyId: string;
|
|
28
|
+
/**
|
|
29
|
+
* This unique identifier indicates the payment listing policy that will be used once an offer is published and
|
|
30
|
+
* converted to an eBay listing. This payment listing policy will set all payment-related settings for the eBay
|
|
31
|
+
* listing.
|
|
32
|
+
*
|
|
33
|
+
* Listing policies are not immediately required for offers, but are required before an offer can be published. The
|
|
34
|
+
* seller should review the payment listing policy before assigning it to the offer, as the following must be true
|
|
35
|
+
* for the payment listing policy to be compatible with the offer:
|
|
36
|
+
*
|
|
37
|
+
* The marketplaceId value should reflect where the offer is being published
|
|
38
|
+
* The immediatePay field value must be set to true since Inventory API offers only support immediate payment
|
|
39
|
+
* The only specified payment method should be 'PayPal', since immediate payment requires 'PayPal'
|
|
40
|
+
*
|
|
41
|
+
* Listing policies can be created and managed in My eBay or
|
|
42
|
+
* with the Account API. To get a list of all payment policies associated with a seller's account on a specific eBay
|
|
43
|
+
* Marketplace, use the Account API's getPaymentPolicies call. There are also calls in the Account API to retrieve a
|
|
44
|
+
* payment policy by policy ID or policy name.
|
|
45
|
+
*/
|
|
46
|
+
paymentPolicyId: string;
|
|
47
|
+
/**
|
|
48
|
+
* This unique identifier indicates the return listing policy that will be used once an offer is published and
|
|
49
|
+
* converted to an eBay listing. This return listing policy will set all return policy settings for the eBay
|
|
50
|
+
* listing.
|
|
51
|
+
*
|
|
52
|
+
* Listing policies are not immediately required for offers, but are required before an offer can be published. The
|
|
53
|
+
* seller should review the return listing policy before assigning it to the offer to make sure it is compatible
|
|
54
|
+
* with the inventory item and the offer settings.
|
|
55
|
+
*
|
|
56
|
+
* Listing policies can be created and managed in My eBay or with the Account API. To get a list of all return
|
|
57
|
+
* policies associated with a seller's account on a specific eBay Marketplace, use the Account API's
|
|
58
|
+
* getReturnPolicies call. There are also calls in the Account API to retrieve a return policy by policy ID or
|
|
59
|
+
* policy name.
|
|
60
|
+
*/
|
|
61
|
+
returnPolicyId: string;
|
|
62
|
+
/**
|
|
63
|
+
* This container is used if the seller wishes to override the shipping costs or surcharge for one or more domestic
|
|
64
|
+
* or international shipping service options defined in the fulfillment listing policy. To override the costs of a
|
|
65
|
+
* specific domestic or international shipping service option, the seller must know the priority/order of that
|
|
66
|
+
* shipping service in the fulfillment listing policy. The name of a shipping service option can be found in the
|
|
67
|
+
* shippingOptions.shippingServices.shippingServiceCode field of the fulfillment policy, and the priority/order of
|
|
68
|
+
* that shipping service option is found in the shippingOptions.shippingServices.sortOrderId field. Both of these
|
|
69
|
+
* values can be retrieved by searching for that fulfillment policy with the getFulfillmentPolicies or
|
|
70
|
+
* getFulfillmentPolicyByName calls of the Account API. The shippingCostOverrides.priority value should match the
|
|
71
|
+
* shippingOptions.shippingServices.sortOrderId in order to override the shipping costs for that shipping service
|
|
72
|
+
* option. The seller must also ensure that the shippingServiceType value is set to DOMESTIC to override a domestic
|
|
73
|
+
* shipping service option, or to INTERNATIONAL to override an international shipping service option.
|
|
74
|
+
*
|
|
75
|
+
* A separate ShippingCostOverrides node is needed for each shipping service option whose costs are being
|
|
76
|
+
* overridden. All defined fields of the shippingCostOverrides container should be included, even if the shipping
|
|
77
|
+
* costs and surcharge values are not changing.
|
|
78
|
+
*/
|
|
79
|
+
shippingCostOverrides?: ShippingCostOverride[];
|
|
80
|
+
constructor(init: NonFunctionProperties<ListingPolicies>);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* This type is used if the seller wants to override the shipping costs or surcharge associated with a specific domestic
|
|
84
|
+
* or international shipping service option defined in the fulfillment listing policy that is being applied toward the
|
|
85
|
+
* offer. The shipping-related costs that can be overridden include the shipping cost to ship one item, the shipping
|
|
86
|
+
* cost to ship each additional item (if multiple quantity are purchased), and the shipping surcharge applied to the
|
|
87
|
+
* shipping service option.
|
|
88
|
+
*/
|
|
89
|
+
interface ShippingCostOverride {
|
|
90
|
+
/**
|
|
91
|
+
* The dollar value passed into this field will override the additional shipping cost that is currently set for the
|
|
92
|
+
* applicable shipping service option. The "Additional shipping cost" is the cost to ship each additional identical
|
|
93
|
+
* product to the buyer using the corresponding shipping service. The shipping service option in the fulfillment
|
|
94
|
+
* policy to override is controlled by the shippingServiceType and priority values.
|
|
95
|
+
*
|
|
96
|
+
* If using an updateOffer call, and this field is defined for the offer being updated, this field must be supplied
|
|
97
|
+
* again, even if its value is not changing.
|
|
98
|
+
*/
|
|
99
|
+
additionalShippingCost?: Amount;
|
|
100
|
+
/**
|
|
101
|
+
* The integer value input into this field, along with the shippingServiceType value, sets which domestic or
|
|
102
|
+
* international shipping service option in the fulfillment policy will be modified with updated shipping costs.
|
|
103
|
+
* Specifically, the shippingCostOverrides.shippingServiceType value in a createOffer or updateOffer call must match
|
|
104
|
+
* the shippingOptions.optionType value in a fulfillment listing policy, and the shippingCostOverrides.priority
|
|
105
|
+
* value in a createOffer or updateOffer call must match the shippingOptions.shippingServices.sortOrderId value in a
|
|
106
|
+
* fulfillment listing policy.
|
|
107
|
+
*
|
|
108
|
+
* This field is always required when overriding the shipping costs of a shipping service option, and will be always
|
|
109
|
+
* be returned for each shipping service option whose costs are being overridden.
|
|
110
|
+
*/
|
|
111
|
+
priority: number;
|
|
112
|
+
/**
|
|
113
|
+
* The dollar value passed into this field will override the shipping cost that is currently set for the applicable
|
|
114
|
+
* shipping service option. This value will be the cost to ship one item to the buyer using the corresponding
|
|
115
|
+
* shipping service. The shipping service option in the fulfillment policy to override is controlled by the
|
|
116
|
+
* shippingServiceType and priority values.
|
|
117
|
+
*
|
|
118
|
+
* If using an updateOffer call, and this field is defined for the offer being updated, this field must be supplied
|
|
119
|
+
* again, even if its value is not changing.
|
|
120
|
+
*/
|
|
121
|
+
shippingCost: Amount;
|
|
122
|
+
/**
|
|
123
|
+
* This enumerated value indicates whether the shipping service specified in the priority field is a domestic or an
|
|
124
|
+
* international shipping service option. To override the shipping costs for a specific domestic shipping service in
|
|
125
|
+
* the fulfillment listing policy, this field should be set to DOMESTIC, and to override the shipping costs for each
|
|
126
|
+
* international shipping service, this field should be set to INTERNATIONAL. This value, along with priority value,
|
|
127
|
+
* sets which domestic or international shipping service option in the fulfillment policy that will be modified with
|
|
128
|
+
* updated shipping costs. Specifically, the shippingCostOverrides.shippingServiceType value in a createOffer or
|
|
129
|
+
* updateOffer call must match the shippingOptions.optionType value in a fulfillment listing policy, and the
|
|
130
|
+
* shippingCostOverrides.priority value in a createOffer or updateOffer call must match the
|
|
131
|
+
* shippingOptions.shippingServices.sortOrderId value in a fulfillment listing policy.
|
|
132
|
+
*
|
|
133
|
+
* This field is always required when overriding the shipping costs of a shipping service option, and will be always
|
|
134
|
+
* be returned for each shipping service option whose costs are being overridden.
|
|
135
|
+
*/
|
|
136
|
+
shippingServiceType: ShippingServiceTypeEnum;
|
|
137
|
+
/**
|
|
138
|
+
* The dollar value passed into this field will override the shipping surcharge that is currently set for the
|
|
139
|
+
* applicable shipping service option. The shipping service option in the fulfillment policy to override is
|
|
140
|
+
* controlled by the shippingServiceType and priority values.
|
|
141
|
+
*
|
|
142
|
+
* If using an updateOffer call, and this field is defined for the offer being updated, this field must be supplied
|
|
143
|
+
* again, even if its value is not changing.
|
|
144
|
+
*/
|
|
145
|
+
surcharge: Amount;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* This enumeration type is used to specify/indicate whether the shipping service option whose shipping costs will be
|
|
149
|
+
* overridden is a domestic or an international shipping service.
|
|
150
|
+
*/
|
|
151
|
+
declare enum ShippingServiceTypeEnum {
|
|
152
|
+
/**
|
|
153
|
+
* This enumeration value indicates that the shipping service option whose shipping costs will be overridden is a
|
|
154
|
+
* domestic shipping service.
|
|
155
|
+
*/
|
|
156
|
+
Domestic = "DOMESTIC",
|
|
157
|
+
/**
|
|
158
|
+
* This enumeration value indicates that the shipping service option whose shipping costs will be overridden is an
|
|
159
|
+
* international shipping service.
|
|
160
|
+
*/
|
|
161
|
+
International = "INTERNATIONAL"
|
|
162
|
+
}
|
|
163
|
+
export {};
|
|
164
|
+
//# sourceMappingURL=ListingPolicies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListingPolicies.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/ListingPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE;;;;;;GAMG;AACH,qBAAa,eAAe;IAC3B;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;;;;;;;;;;;;OAaG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;;;;;;;;;;;;;;;MAgBE;IACF,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,CAAA;gBAElC,IAAI,EAAE,qBAAqB,CAAC,eAAe,CAAC;CAGxD;AAED;;;;;;GAMG;AACH,UAAU,oBAAoB;IAC7B;;;;;;;;OAQG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;;;;;;OAUG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;OAaG;IACH,mBAAmB,EAAE,uBAAuB,CAAC;IAC7C;;;;;;;OAOG;IACH,SAAS,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,aAAK,uBAAuB;IAC3B;;;OAGG;IACH,QAAQ,aAAa;IACrB;;;OAGG;IACH,aAAa,kBAAkB;CAC/B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This type is used to identify the payment, return, and fulfillment listing policies that will be, or are associated
|
|
3
|
+
* with the listing. Every published offer must have a payment, return, and fulfillment listing policy associated with
|
|
4
|
+
* it. This type is also used to override the shipping costs of one or more shipping service options that are associated
|
|
5
|
+
* with the fulfillment policy, to enable eBay Plus eligibility for a listing, or to enable the Best Offer feature on
|
|
6
|
+
* the listing.
|
|
7
|
+
*/
|
|
8
|
+
export class ListingPolicies {
|
|
9
|
+
constructor(init) {
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* This enumeration type is used to specify/indicate whether the shipping service option whose shipping costs will be
|
|
15
|
+
* overridden is a domestic or an international shipping service.
|
|
16
|
+
*/
|
|
17
|
+
var ShippingServiceTypeEnum;
|
|
18
|
+
(function (ShippingServiceTypeEnum) {
|
|
19
|
+
/**
|
|
20
|
+
* This enumeration value indicates that the shipping service option whose shipping costs will be overridden is a
|
|
21
|
+
* domestic shipping service.
|
|
22
|
+
*/
|
|
23
|
+
ShippingServiceTypeEnum["Domestic"] = "DOMESTIC";
|
|
24
|
+
/**
|
|
25
|
+
* This enumeration value indicates that the shipping service option whose shipping costs will be overridden is an
|
|
26
|
+
* international shipping service.
|
|
27
|
+
*/
|
|
28
|
+
ShippingServiceTypeEnum["International"] = "INTERNATIONAL";
|
|
29
|
+
})(ShippingServiceTypeEnum || (ShippingServiceTypeEnum = {}));
|
|
30
|
+
//# sourceMappingURL=ListingPolicies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListingPolicies.js","sourceRoot":"","sources":["../../../src/entities/ebay/ListingPolicies.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,OAAO,eAAe;IAuE3B,YAAY,IAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1B,CAAC;CACD;AAoED;;;GAGG;AACH,IAAK,uBAWJ;AAXD,WAAK,uBAAuB;IAC3B;;;OAGG;IACH,gDAAqB,CAAA;IACrB;;;OAGG;IACH,0DAA+B,CAAA;AAChC,CAAC,EAXI,uBAAuB,KAAvB,uBAAuB,QAW3B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ValidationError } from "yup";
|
|
2
|
+
import { Address } from "./Address.js";
|
|
3
|
+
import { GeoCoordinates } from "./GeoCoordinates.js";
|
|
4
|
+
import { InventoryLocationResponse } from "./InventoryLocation.js";
|
|
5
|
+
/**
|
|
6
|
+
* This type is used by the createInventoryLocation call to provide an full or partial address of an inventory location.
|
|
7
|
+
*/
|
|
8
|
+
export interface LocationDetails {
|
|
9
|
+
/**
|
|
10
|
+
* The address container is required for a createInventoryLocation call. Except in the case of an inventory location
|
|
11
|
+
* that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory
|
|
12
|
+
* location.
|
|
13
|
+
*/
|
|
14
|
+
address: Address;
|
|
15
|
+
/**
|
|
16
|
+
* This container is used to set the Global Positioning System (GPS) latitude and longitude coordinates for the
|
|
17
|
+
* inventory location.
|
|
18
|
+
*/
|
|
19
|
+
geoCoordinates?: GeoCoordinates;
|
|
20
|
+
}
|
|
21
|
+
export interface Location extends LocationDetails {
|
|
22
|
+
locationId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface LocationResponse {
|
|
25
|
+
href: string;
|
|
26
|
+
limit: number;
|
|
27
|
+
next: string;
|
|
28
|
+
offset: number;
|
|
29
|
+
prev: string;
|
|
30
|
+
total: number;
|
|
31
|
+
locations: InventoryLocationResponse[];
|
|
32
|
+
}
|
|
33
|
+
export declare const validateLocationDetails: (location: unknown) => ValidationError | LocationDetails;
|
|
34
|
+
//# sourceMappingURL=LocationDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationDetails.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/LocationDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAIlE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AAGD,MAAM,WAAW,QAAS,SAAQ,eAAe;IAChD,UAAU,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,yBAAyB,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,OAAO,sCASxD,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ValidationError } from "yup";
|
|
2
|
+
import { isObject, isValidationError } from "./validation.js";
|
|
3
|
+
import { validate as validateAddress } from "./Address.js";
|
|
4
|
+
export const validateLocationDetails = (location) => {
|
|
5
|
+
if (!isObject(location))
|
|
6
|
+
return new ValidationError("Location Details must be defined", location);
|
|
7
|
+
const failures = [
|
|
8
|
+
validateAddress(location.address),
|
|
9
|
+
].filter(isValidationError);
|
|
10
|
+
return failures.length ? new ValidationError("Error validating Location Details", failures) : location;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=LocationDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationDetails.js","sourceRoot":"","sources":["../../../src/entities/ebay/LocationDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AAIrC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,cAAc,CAAA;AAmC1D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAiB,EAAE,EAAE;IAE5D,IAAI,CAAC,QAAQ,CAAkB,QAAQ,CAAC;QAAE,OAAO,IAAI,eAAe,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAAA;IAElH,MAAM,QAAQ,GAAG;QAChB,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC;KACjC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAE3B,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,mCAAmC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;AACvG,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** This enumeration type is used to indicate the different eBay marketplace sites. */
|
|
2
|
+
export declare enum MarketplaceEnum {
|
|
3
|
+
Motors = "EBAY_MOTORS",
|
|
4
|
+
US = "EBAY_US"
|
|
5
|
+
}
|
|
6
|
+
export declare const checkMarketplaceEnum: (val: string) => MarketplaceEnum;
|
|
7
|
+
/**
|
|
8
|
+
* This enumerated type defines the unique eBay-assigned IDs for each of the eBay marketplaces.
|
|
9
|
+
* Yes, this is DIFFERENT than MarketplaceEnum and BOTH are in use by ebay.
|
|
10
|
+
* https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum
|
|
11
|
+
* */
|
|
12
|
+
export declare enum MarketplaceIdEnum {
|
|
13
|
+
Motors = "EBAY_MOTORS_US",
|
|
14
|
+
US = "EBAY_US"
|
|
15
|
+
}
|
|
16
|
+
export declare const checkMarketplaceIdEnum: (val: string) => MarketplaceIdEnum;
|
|
17
|
+
//# sourceMappingURL=MarketplaceEnum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarketplaceEnum.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/MarketplaceEnum.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,oBAAY,eAAe;IAC1B,MAAM,gBAAgB;IACtB,EAAE,YAAY;CACd;AAED,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,KAAG,eAGlD,CAAA;AAED;;;;KAIK;AACL,oBAAY,iBAAiB;IAI5B,MAAM,mBAAmB;IAEzB,EAAE,YAAY;CACd;AAED,eAAO,MAAM,sBAAsB,GAAI,KAAK,MAAM,KAAG,iBAGpD,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** This enumeration type is used to indicate the different eBay marketplace sites. */
|
|
2
|
+
export var MarketplaceEnum;
|
|
3
|
+
(function (MarketplaceEnum) {
|
|
4
|
+
MarketplaceEnum["Motors"] = "EBAY_MOTORS";
|
|
5
|
+
MarketplaceEnum["US"] = "EBAY_US";
|
|
6
|
+
})(MarketplaceEnum || (MarketplaceEnum = {}));
|
|
7
|
+
export const checkMarketplaceEnum = (val) => {
|
|
8
|
+
if (Object.values(MarketplaceEnum).includes(val))
|
|
9
|
+
return val;
|
|
10
|
+
throw new Error(`'${val}' is not a valid eBay marketplace`);
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* This enumerated type defines the unique eBay-assigned IDs for each of the eBay marketplaces.
|
|
14
|
+
* Yes, this is DIFFERENT than MarketplaceEnum and BOTH are in use by ebay.
|
|
15
|
+
* https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum
|
|
16
|
+
* */
|
|
17
|
+
export var MarketplaceIdEnum;
|
|
18
|
+
(function (MarketplaceIdEnum) {
|
|
19
|
+
/* Indicates the parent category for "Auto Parts and Vehicles" on the EBAY_US marketplace
|
|
20
|
+
* (https://www.ebay.com/motors).
|
|
21
|
+
*/
|
|
22
|
+
MarketplaceIdEnum["Motors"] = "EBAY_MOTORS_US";
|
|
23
|
+
/* Indicates the eBay marketplace for the United States (https://www.ebay.com). */
|
|
24
|
+
MarketplaceIdEnum["US"] = "EBAY_US";
|
|
25
|
+
})(MarketplaceIdEnum || (MarketplaceIdEnum = {}));
|
|
26
|
+
export const checkMarketplaceIdEnum = (val) => {
|
|
27
|
+
if (Object.values(MarketplaceIdEnum).includes(val))
|
|
28
|
+
return val;
|
|
29
|
+
throw new Error(`'${val}' is not a valid eBay marketplace id`);
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=MarketplaceEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarketplaceEnum.js","sourceRoot":"","sources":["../../../src/entities/ebay/MarketplaceEnum.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,yCAAsB,CAAA;IACtB,iCAAc,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAmB,EAAE;IACpE,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,GAAsB,CAAC;QAAE,OAAO,GAAsB,CAAA;IAClG,MAAM,IAAI,KAAK,CAAC,IAAI,GAAG,mCAAmC,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED;;;;KAIK;AACL,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC5B;;OAEG;IACH,8CAAyB,CAAA;IACzB,kFAAkF;IAClF,mCAAc,CAAA;AACf,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAW,EAAqB,EAAE;IACxE,IAAI,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,GAAwB,CAAC;QAAE,OAAO,GAAwB,CAAA;IACxG,MAAM,IAAI,KAAK,CAAC,IAAI,GAAG,sCAAsC,CAAC,CAAA;AAC/D,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MerchantLocationKey.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/MerchantLocationKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,eAAO,MAAM,mBAAmB,eAA0B,CAAA;AAC1D,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MerchantLocationKey.js","sourceRoot":"","sources":["../../../src/entities/ebay/MerchantLocationKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Charity } from "./Charity.js";
|
|
2
|
+
import { ListingPolicies } from "./ListingPolicies.js";
|
|
3
|
+
import { ListingDurationEnum } from "./ListingDurationEnum.js";
|
|
4
|
+
import { MarketplaceEnum } from "./MarketplaceEnum.js";
|
|
5
|
+
import { MerchantLocationKey } from "./MerchantLocationKey.js";
|
|
6
|
+
import { PricingSummary } from "./PricingSummary.js";
|
|
7
|
+
import { ValidationResult } from './validation.js';
|
|
8
|
+
import { ErrorDetailV3 } from "./ErrorDetailsV3.js";
|
|
9
|
+
import { Sku } from "./Sku.js";
|
|
10
|
+
/** This enumeration type is used to indicate the listing format of the offer. */
|
|
11
|
+
export declare enum FormatTypeEnum {
|
|
12
|
+
/**
|
|
13
|
+
* This enumeration value indicates that the listing format of the offer is fixed price. Currently, fixed price is
|
|
14
|
+
* the only supported listing format.
|
|
15
|
+
*/
|
|
16
|
+
FixedPrice = "FIXED_PRICE"
|
|
17
|
+
}
|
|
18
|
+
/** This enumeration type is used to indicate the current status of the offer (published or unpublished). */
|
|
19
|
+
export declare enum OfferStatusEnum {
|
|
20
|
+
Published = "PUBLISHED",
|
|
21
|
+
Unpublished = "UNPUBLISHED"
|
|
22
|
+
}
|
|
23
|
+
export interface EbayOfferDetails {
|
|
24
|
+
/** This integer value sets the quantity of the inventory item (specified by the sku value) that will be available
|
|
25
|
+
* for purchase by buyers shopping on the eBay site specified in the marketplaceId field. Quantity must be set to 1
|
|
26
|
+
* or more in order for the inventory item to be purchasable, but this field is not necessarily required, even for
|
|
27
|
+
* published offers, if the general quantity of the inventory item has already been set in the inventory item
|
|
28
|
+
* record.
|
|
29
|
+
*
|
|
30
|
+
* Occurrence: Conditional
|
|
31
|
+
*/
|
|
32
|
+
availableQuantity?: number;
|
|
33
|
+
/**
|
|
34
|
+
* The unique identifier of the eBay category that the inventory item will be listed under. This field is not
|
|
35
|
+
* immediately required upon creating an offer, but will be required before publishing the offer. Sellers can use
|
|
36
|
+
* the getCategorySuggestions method of the Taxonomy API or the GetSuggestedCategories call of the Trading API to
|
|
37
|
+
* retrieve suggested category ID values. The seller passes in a query string like "iPhone 6", and category ID
|
|
38
|
+
* values for suggested categories are returned in the response.
|
|
39
|
+
*/
|
|
40
|
+
categoryId: string;
|
|
41
|
+
/**
|
|
42
|
+
* This container is used if the seller wishes to select a charitable organization that will receive a percentage of
|
|
43
|
+
* sale proceeds for each sale generated by the eBay listing. This container consists of the charityId field to
|
|
44
|
+
* identify the charitable organization, and the donationPercentage field that indicates the percentage of the sales
|
|
45
|
+
* proceeds that will be donated to the charitable organization for each sale. Both fields in this container are
|
|
46
|
+
* conditionally required for charitable listings.
|
|
47
|
+
*/
|
|
48
|
+
charity?: Charity;
|
|
49
|
+
/**
|
|
50
|
+
* This enumerated value indicates the listing format of the offer. Currently, the only supported value for this
|
|
51
|
+
* field is FIXED_PRICE, as the Inventory API only supports fixed-price listings at this time.
|
|
52
|
+
*/
|
|
53
|
+
format: FormatTypeEnum.FixedPrice;
|
|
54
|
+
/**
|
|
55
|
+
* This field indicates whether or not eBay product catalog details are applied to a listing. A value of true
|
|
56
|
+
* indicates the listing corresponds to the eBay product associated with the provided product identifier. The
|
|
57
|
+
* product identifier is provided in createOrReplaceInventoryItem.
|
|
58
|
+
*/
|
|
59
|
+
includeCatalogProductDetails?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* The text in this field is (published offers), or will become (unpublished offers) the description of the eBay
|
|
62
|
+
* listing. This field is not immediately required for an unpublished offer, but will be required before publishing
|
|
63
|
+
* the offer. Note that if the listingDescription field was omitted in the createOffer call for the offer, the offer
|
|
64
|
+
* entity should have picked up the text provided in the product.description field of the inventory item record, or
|
|
65
|
+
* if the inventory item is part of a group, the offer entity should have picked up the text provided in the
|
|
66
|
+
* description field of the inventory item group record.
|
|
67
|
+
*
|
|
68
|
+
* HTML tags and markup can be used in listing descriptions, but each character counts toward the max length limit.
|
|
69
|
+
*
|
|
70
|
+
* Max length: 500000 (which includes HTML markup/tags)
|
|
71
|
+
*
|
|
72
|
+
* Occurrence: Conditional
|
|
73
|
+
*/
|
|
74
|
+
listingDescription?: string;
|
|
75
|
+
/**
|
|
76
|
+
* This field indicates the number of days that the listing will be active. For fixed-price listings, this value must be set to GTC,
|
|
77
|
+
* but auction listings support different listing durations.
|
|
78
|
+
*
|
|
79
|
+
* The GTC (Good 'Til Cancelled) listings are automatically renewed each calendar month until the seller decides to end the listing.
|
|
80
|
+
*/
|
|
81
|
+
listingDuration: ListingDurationEnum;
|
|
82
|
+
/**
|
|
83
|
+
* This container is used to set the listing policies that will be used to construct the listing. This container
|
|
84
|
+
* consists of the identifiers of the payment, return, and fulfillment listing policies that will be associated with
|
|
85
|
+
* the eBay listing. This container is not initially required upon first creating an offer, but will become required
|
|
86
|
+
* before an offer can be published.
|
|
87
|
+
*
|
|
88
|
+
* It is required that the seller be opted in to Business Policies before being able to create live eBay listings
|
|
89
|
+
* through the Inventory API. Sellers can opt-in to Business Policies through My eBay or by using the Account API's
|
|
90
|
+
* optInToProgram call. Similarly, payment, return, and fulfillment listing policies may be created/managed in My
|
|
91
|
+
* eBay or by using the listing policy calls of the Account API.
|
|
92
|
+
*/
|
|
93
|
+
listingPolicies: ListingPolicies;
|
|
94
|
+
/**
|
|
95
|
+
* This field is only applicable if the listing is a lot listing. A lot listing is a listing that has multiple
|
|
96
|
+
* quantity of the same product. An example would be a set of four identical car tires. The integer value passed
|
|
97
|
+
* into this field is the number of identical items being sold through the lot listing.
|
|
98
|
+
*/
|
|
99
|
+
lotSize?: number;
|
|
100
|
+
/**
|
|
101
|
+
* The unique identifier of a merchant's inventory location (where the inventory item in the offer is located). A
|
|
102
|
+
* merchantLocationKey value is established when the merchant creates an inventory location using the
|
|
103
|
+
* createInventoryLocation call. To get more information about inventory locations, the getInventoryLocation call
|
|
104
|
+
* can be used.
|
|
105
|
+
*
|
|
106
|
+
* This field is not initially required upon first creating an offer, but will become required before an offer can
|
|
107
|
+
* be published.
|
|
108
|
+
*/
|
|
109
|
+
merchantLocationKey: MerchantLocationKey;
|
|
110
|
+
/**
|
|
111
|
+
* This container shows the listing price for the product offer, and if applicable, the settings for the Minimum
|
|
112
|
+
* Advertised Price and Strikethrough Pricing features. The Minimum Advertised Price feature is only available on
|
|
113
|
+
* the US site. Strikethrough Pricing is available on the US, eBay Motors, UK, Germany, Canada (English and French),
|
|
114
|
+
* France, Italy, and Spain sites.
|
|
115
|
+
*
|
|
116
|
+
* This container is not initially required upon first creating an offer, but the price of the offer will become
|
|
117
|
+
* required before an offer can be published.
|
|
118
|
+
*/
|
|
119
|
+
pricingSummary: PricingSummary;
|
|
120
|
+
/**
|
|
121
|
+
* This field is only applicable and set if the seller wishes to set a restriction on the purchase quantity per
|
|
122
|
+
* seller. If this field is set by the seller for the offer, then each distinct buyer may purchase up to, but not
|
|
123
|
+
* exceed the quantity specified for this field. So, if this field's value is 5, each buyer may purchase between one
|
|
124
|
+
* to five of these products, and the purchases can occur in one multiple-quantity purchase, or over multiple
|
|
125
|
+
* transactions. If a buyer attempts to purchase one or more of these products, and the cumulative quantity will
|
|
126
|
+
* take the buyer beyond the quantity limit, that buyer will be blocked from that purchase.
|
|
127
|
+
*/
|
|
128
|
+
quantityLimitPerBuyer?: number;
|
|
129
|
+
sku?: Sku;
|
|
130
|
+
/**
|
|
131
|
+
* This container is used if the seller would like to place the inventory item into one or two eBay store categories
|
|
132
|
+
* that the seller has set up for their eBay store. The string value(s) passed in to this container will be the full
|
|
133
|
+
* path(s) to the eBay store categories, as shown below:
|
|
134
|
+
*
|
|
135
|
+
* "storeCategoryNames": [
|
|
136
|
+
* "/Fashion/Men/Shirts",
|
|
137
|
+
* "/Fashion/Men/Accessories" ],
|
|
138
|
+
*/
|
|
139
|
+
storeCategoryNames?: string[];
|
|
140
|
+
/**
|
|
141
|
+
* This enumeration value is the unique identifier of the eBay site for which the offer will be made available. See
|
|
142
|
+
* MarketplaceEnum for the list of supported enumeration values. This field is required.
|
|
143
|
+
*/
|
|
144
|
+
marketplaceId: MarketplaceEnum;
|
|
145
|
+
}
|
|
146
|
+
export declare const validateEbayOfferDetails: (offer: unknown) => ValidationResult<EbayOfferDetails>;
|
|
147
|
+
export interface PushOfferResponse {
|
|
148
|
+
id: string | null;
|
|
149
|
+
}
|
|
150
|
+
export interface PublishOfferResponse {
|
|
151
|
+
id: string | null;
|
|
152
|
+
warnings?: ErrorDetailV3[];
|
|
153
|
+
}
|
|
154
|
+
export interface PushOfferRequest {
|
|
155
|
+
offer: EbayOfferDetails;
|
|
156
|
+
sku: Sku;
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=Offer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Offer.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/Offer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,cAAc,EAA0B,MAAM,qBAAqB,CAAA;AAE5E,OAAO,EAAY,gBAAgB,EAA6F,MAAM,iBAAiB,CAAA;AACvJ,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,iFAAiF;AACjF,oBAAY,cAAc;IACzB;;;OAGG;IACH,UAAU,gBAAgB;CAC1B;AAED,4GAA4G;AAC5G,oBAAY,eAAe;IAC1B,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAChC;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,MAAM,EAAE,cAAc,CAAC,UAAU,CAAA;IACjC;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;;;;OAKG;IACH,eAAe,EAAE,mBAAmB,CAAA;IACpC;;;;;;;;;;OAUG;IACH,eAAe,EAAE,eAAe,CAAA;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;;OAQG;IACH,mBAAmB,EAAE,mBAAmB,CAAA;IACxC;;;;;;;;OAQG;IACH,cAAc,EAAE,cAAc,CAAA;IAC9B;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B,GAAG,CAAC,EAAE,GAAG,CAAA;IACT;;;;;;;;OAQG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAA;CAC9B;AA2CD,eAAO,MAAM,wBAAwB,GAAI,OAAO,OAAO,KAAG,gBAAgB,CAAC,gBAAgB,CAyD1F,CAAA;AAED,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACpC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IACjB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAA;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAEhC,KAAK,EAAE,gBAAgB,CAAC;IAExB,GAAG,EAAE,GAAG,CAAC;CACT"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ListingDurationEnum } from "./ListingDurationEnum.js";
|
|
2
|
+
import { MarketplaceEnum } from "./MarketplaceEnum.js";
|
|
3
|
+
import { validatePricingSummary } from "./PricingSummary.js";
|
|
4
|
+
//import { isObject, isValidationError, ValidationError } from "./validation.js"
|
|
5
|
+
import { isObject, validateString, validateEnum } from './validation.js';
|
|
6
|
+
/** This enumeration type is used to indicate the listing format of the offer. */
|
|
7
|
+
export var FormatTypeEnum;
|
|
8
|
+
(function (FormatTypeEnum) {
|
|
9
|
+
/**
|
|
10
|
+
* This enumeration value indicates that the listing format of the offer is fixed price. Currently, fixed price is
|
|
11
|
+
* the only supported listing format.
|
|
12
|
+
*/
|
|
13
|
+
FormatTypeEnum["FixedPrice"] = "FIXED_PRICE";
|
|
14
|
+
})(FormatTypeEnum || (FormatTypeEnum = {}));
|
|
15
|
+
/** This enumeration type is used to indicate the current status of the offer (published or unpublished). */
|
|
16
|
+
export var OfferStatusEnum;
|
|
17
|
+
(function (OfferStatusEnum) {
|
|
18
|
+
OfferStatusEnum["Published"] = "PUBLISHED";
|
|
19
|
+
OfferStatusEnum["Unpublished"] = "UNPUBLISHED";
|
|
20
|
+
})(OfferStatusEnum || (OfferStatusEnum = {}));
|
|
21
|
+
// export interface EbayOfferKeys {
|
|
22
|
+
// /**
|
|
23
|
+
// * This enumeration value is the unique identifier of the eBay site for which the offer will be made available. See
|
|
24
|
+
// * MarketplaceEnum for the list of supported enumeration values. This field is required.
|
|
25
|
+
// */
|
|
26
|
+
// marketplaceId: MarketplaceEnum
|
|
27
|
+
// /**
|
|
28
|
+
// * This is the seller-defined SKU value of the product that will be listed on the eBay site (specified in the
|
|
29
|
+
// * marketplaceId field). Only one offer (in unpublished or published state) may exist for each
|
|
30
|
+
// * sku/marketplaceId/format combination. This field is required.
|
|
31
|
+
// */
|
|
32
|
+
// sku: string
|
|
33
|
+
// }
|
|
34
|
+
//export type EbayOfferDetailsWithKeys = EbayOfferDetails & EbayOfferKeys
|
|
35
|
+
// Used in getOffers response payload
|
|
36
|
+
// export interface EbayOfferDetailsWithAll extends EbayOfferDetailsWithKeys {
|
|
37
|
+
// listing: {
|
|
38
|
+
// listingId: string,
|
|
39
|
+
// },
|
|
40
|
+
// offerId: string,
|
|
41
|
+
// status: OfferStatusEnum,
|
|
42
|
+
// }
|
|
43
|
+
// export interface OfferArrayElement extends EbayOfferDetailsWithKeys {
|
|
44
|
+
// offerId: string,
|
|
45
|
+
// status: OfferStatusEnum,
|
|
46
|
+
// }
|
|
47
|
+
// export const validateEbayOfferDetails = (offer: unknown) => {
|
|
48
|
+
// if (!isObject<EbayOfferDetails>(offer)) return new ValidationError("Offer must be defined", offer)
|
|
49
|
+
// const failures = [
|
|
50
|
+
// validatePricingSummary
|
|
51
|
+
// ].filter(isValidationError)
|
|
52
|
+
// return failures.length ? new ValidationError("Error validating Product", failures) : offer
|
|
53
|
+
// }
|
|
54
|
+
// TODO: There are likely other fields to review
|
|
55
|
+
export const validateEbayOfferDetails = (offer) => {
|
|
56
|
+
const errors = [];
|
|
57
|
+
if (!isObject(offer)) {
|
|
58
|
+
errors.push({
|
|
59
|
+
type: 'validation_error',
|
|
60
|
+
field: 'offer',
|
|
61
|
+
message: 'Offer must be an object',
|
|
62
|
+
value: offer,
|
|
63
|
+
code: 'INVALID_TYPE'
|
|
64
|
+
});
|
|
65
|
+
return { success: false, errors };
|
|
66
|
+
}
|
|
67
|
+
// Validate pricing (required)
|
|
68
|
+
const pricingSummaryValidation = validatePricingSummary(offer.pricingSummary);
|
|
69
|
+
if (!pricingSummaryValidation.success && pricingSummaryValidation.errors) {
|
|
70
|
+
errors.push(...pricingSummaryValidation.errors.map(error => ({
|
|
71
|
+
...error,
|
|
72
|
+
field: `offer.${error.field}`
|
|
73
|
+
})));
|
|
74
|
+
}
|
|
75
|
+
// Validate other required fields
|
|
76
|
+
errors.push(...validateString('offer.categoryId', offer.categoryId, { required: true }));
|
|
77
|
+
errors.push(...validateEnum('offer.format', offer.format, FormatTypeEnum, { required: true }));
|
|
78
|
+
errors.push(...validateEnum('offer.listingDuration', offer.listingDuration, ListingDurationEnum, { required: true }));
|
|
79
|
+
errors.push(...validateEnum('offer.marketplaceId', offer.marketplaceId, MarketplaceEnum, { required: true }));
|
|
80
|
+
errors.push(...validateString('offer.merchantLocationKey', offer.merchantLocationKey, { required: true }));
|
|
81
|
+
// Validate listingPolicies (required object)
|
|
82
|
+
if (!offer.listingPolicies) {
|
|
83
|
+
errors.push({
|
|
84
|
+
type: 'validation_error',
|
|
85
|
+
field: 'offer.listingPolicies',
|
|
86
|
+
message: 'ListingPolicies is required',
|
|
87
|
+
value: offer.listingPolicies,
|
|
88
|
+
code: 'REQUIRED_FIELD_MISSING'
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
else if (!isObject(offer.listingPolicies)) {
|
|
92
|
+
errors.push({
|
|
93
|
+
type: 'validation_error',
|
|
94
|
+
field: 'offer.listingPolicies',
|
|
95
|
+
message: 'ListingPolicies must be an object',
|
|
96
|
+
value: offer.listingPolicies,
|
|
97
|
+
code: 'INVALID_TYPE'
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
// Validate required policy IDs within listingPolicies
|
|
102
|
+
errors.push(...validateString('offer.listingPolicies.fulfillmentPolicyId', offer.listingPolicies.fulfillmentPolicyId, { required: true }));
|
|
103
|
+
errors.push(...validateString('offer.listingPolicies.paymentPolicyId', offer.listingPolicies.paymentPolicyId, { required: true }));
|
|
104
|
+
errors.push(...validateString('offer.listingPolicies.returnPolicyId', offer.listingPolicies.returnPolicyId, { required: true }));
|
|
105
|
+
}
|
|
106
|
+
return errors.length > 0
|
|
107
|
+
? { success: false, errors }
|
|
108
|
+
: { success: true, data: offer };
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=Offer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Offer.js","sourceRoot":"","sources":["../../../src/entities/ebay/Offer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAkB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5E,gFAAgF;AAChF,OAAO,EAAE,QAAQ,EAAwC,cAAc,EAAE,YAAY,EAA2C,MAAM,iBAAiB,CAAA;AAGvJ,iFAAiF;AACjF,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACzB;;;OAGG;IACH,4CAA0B,CAAA;AAC3B,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAED,4GAA4G;AAC5G,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,0CAAuB,CAAA;IACvB,8CAA2B,CAAA;AAC5B,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AA+HD,mCAAmC;AACnC,OAAO;AACP,uHAAuH;AACvH,4FAA4F;AAC5F,OAAO;AACP,kCAAkC;AAClC,OAAO;AACP,iHAAiH;AACjH,kGAAkG;AAClG,oEAAoE;AACpE,OAAO;AACP,eAAe;AACf,IAAI;AAEJ,yEAAyE;AAEzE,qCAAqC;AACrC,8EAA8E;AAC9E,cAAc;AACd,uBAAuB;AACvB,MAAM;AACN,oBAAoB;AACpB,4BAA4B;AAC5B,IAAI;AAEJ,wEAAwE;AACxE,oBAAoB;AACpB,4BAA4B;AAC5B,IAAI;AAEJ,gEAAgE;AAChE,sGAAsG;AAEtG,sBAAsB;AACtB,2BAA2B;AAC3B,+BAA+B;AAE/B,8FAA8F;AAC9F,IAAI;AAEJ,gDAAgD;AAChD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAc,EAAsC,EAAE;IAC9F,MAAM,MAAM,GAAyB,EAAE,CAAA;IAEvC,IAAI,CAAC,QAAQ,CAAmB,KAAK,CAAC,EAAE,CAAC;QACxC,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,yBAAyB;YAClC,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,cAAc;SACpB,CAAC,CAAA;QACF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;IAClC,CAAC;IAED,8BAA8B;IAC9B,MAAM,wBAAwB,GAAG,sBAAsB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;IAC7E,IAAI,CAAC,wBAAwB,CAAC,OAAO,IAAI,wBAAwB,CAAC,MAAM,EAAE,CAAC;QAC1E,MAAM,CAAC,IAAI,CAAC,GAAG,wBAAwB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC5D,GAAG,KAAK;YACR,KAAK,EAAE,SAAS,KAAK,CAAC,KAAK,EAAE;SAC7B,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;IAED,iCAAiC;IACjC,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,kBAAkB,EAAE,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC,CAAA;IACvF,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAC9F,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,uBAAuB,EAAE,KAAK,CAAC,eAAe,EAAE,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IACrH,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,qBAAqB,EAAE,KAAK,CAAC,aAAa,EAAE,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAC7G,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,2BAA2B,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAE1G,6CAA6C;IAC7C,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,6BAA6B;YACtC,KAAK,EAAE,KAAK,CAAC,eAAe;YAC5B,IAAI,EAAE,wBAAwB;SAC9B,CAAC,CAAA;IACH,CAAC;SAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;QAC7C,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,mCAAmC;YAC5C,KAAK,EAAE,KAAK,CAAC,eAAe;YAC5B,IAAI,EAAE,cAAc;SACpB,CAAC,CAAA;IACH,CAAC;SAAM,CAAC;QACP,sDAAsD;QACtD,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,2CAA2C,EAAE,KAAK,CAAC,eAAe,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QAC1I,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,uCAAuC,EAAE,KAAK,CAAC,eAAe,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QAClI,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,sCAAsC,EAAE,KAAK,CAAC,eAAe,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IACjI,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC;QACvB,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE;QAC5B,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAyB,EAAE,CAAA;AACtD,CAAC,CAAA"}
|