@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 @@
|
|
|
1
|
+
{"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/Product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,gBAAgB,EAAiF,MAAM,iBAAiB,CAAA;AAE3I,MAAM,MAAM,OAAO,GAAG;IACrB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;IACrC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC/B,CAAA;AACD;;;;;;;;GAQG;AAEH,MAAM,WAAW,OAAO;IACvB;;;;;;OAMG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;;;;OAUG;IACH,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;CACd;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAyL3E;AAGD,eAAO,MAAM,QAAQ,GAAI,SAAS,OAAO,QASxC,CAAA"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { isObject, validateString } from "./validation.js";
|
|
2
|
+
export function validateProduct(product) {
|
|
3
|
+
const errors = [];
|
|
4
|
+
if (!isObject(product)) {
|
|
5
|
+
errors.push({
|
|
6
|
+
type: 'validation_error',
|
|
7
|
+
field: 'product',
|
|
8
|
+
message: 'Product must be an object',
|
|
9
|
+
value: product,
|
|
10
|
+
code: 'INVALID_TYPE'
|
|
11
|
+
});
|
|
12
|
+
return { success: false, errors };
|
|
13
|
+
}
|
|
14
|
+
// Validate required fields
|
|
15
|
+
errors.push(...validateString('product.title', product.title, { required: true, min: 1, max: 80 }));
|
|
16
|
+
errors.push(...validateString('product.description', product.description, { required: true, min: 1, max: 4000 }));
|
|
17
|
+
// Validate required aspects
|
|
18
|
+
if (product.aspects === undefined || product.aspects === null) {
|
|
19
|
+
errors.push({
|
|
20
|
+
type: 'validation_error',
|
|
21
|
+
field: 'product.aspects',
|
|
22
|
+
message: 'aspects is required',
|
|
23
|
+
value: product.aspects,
|
|
24
|
+
code: 'REQUIRED_FIELD_MISSING'
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
else if (!isObject(product.aspects)) {
|
|
28
|
+
errors.push({
|
|
29
|
+
type: 'validation_error',
|
|
30
|
+
field: 'product.aspects',
|
|
31
|
+
message: 'aspects must be an object',
|
|
32
|
+
value: product.aspects,
|
|
33
|
+
code: 'INVALID_TYPE'
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
// Validate required Brand property
|
|
38
|
+
if (!product.aspects.Brand) {
|
|
39
|
+
errors.push({
|
|
40
|
+
type: 'validation_error',
|
|
41
|
+
field: 'product.aspects.Brand',
|
|
42
|
+
message: 'Brand is required in aspects',
|
|
43
|
+
value: product.aspects.Brand,
|
|
44
|
+
code: 'REQUIRED_FIELD_MISSING'
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
else if (!Array.isArray(product.aspects.Brand)) {
|
|
48
|
+
errors.push({
|
|
49
|
+
type: 'validation_error',
|
|
50
|
+
field: 'product.aspects.Brand',
|
|
51
|
+
message: 'Brand must be an array',
|
|
52
|
+
value: product.aspects.Brand,
|
|
53
|
+
code: 'INVALID_TYPE'
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else if (product.aspects.Brand.length === 0) {
|
|
57
|
+
errors.push({
|
|
58
|
+
type: 'validation_error',
|
|
59
|
+
field: 'product.aspects.Brand',
|
|
60
|
+
message: 'Brand must contain at least one value',
|
|
61
|
+
value: product.aspects.Brand,
|
|
62
|
+
code: 'ARRAY_TOO_SHORT'
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
// Validate each brand string
|
|
67
|
+
product.aspects.Brand.forEach((brand, index) => {
|
|
68
|
+
errors.push(...validateString(`product.aspects.Brand[${index}]`, brand, { required: true }));
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Validate optional Manufacturer Part Number
|
|
72
|
+
if (product.aspects['Manufacturer Part Number'] !== undefined) {
|
|
73
|
+
if (!Array.isArray(product.aspects['Manufacturer Part Number'])) {
|
|
74
|
+
errors.push({
|
|
75
|
+
type: 'validation_error',
|
|
76
|
+
field: 'product.aspects.Manufacturer Part Number',
|
|
77
|
+
message: 'Manufacturer Part Number must be an array',
|
|
78
|
+
value: product.aspects['Manufacturer Part Number'],
|
|
79
|
+
code: 'INVALID_TYPE'
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
product.aspects['Manufacturer Part Number'].forEach((value, index) => {
|
|
84
|
+
errors.push(...validateString(`product.aspects.Manufacturer Part Number[${index}]`, value, { required: true }));
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// Validate optional OE/OEM Part Number
|
|
89
|
+
if (product.aspects['OE/OEM Part Number'] !== undefined) {
|
|
90
|
+
if (!Array.isArray(product.aspects['OE/OEM Part Number'])) {
|
|
91
|
+
errors.push({
|
|
92
|
+
type: 'validation_error',
|
|
93
|
+
field: 'product.aspects.OE/OEM Part Number',
|
|
94
|
+
message: 'OE/OEM Part Number must be an array',
|
|
95
|
+
value: product.aspects['OE/OEM Part Number'],
|
|
96
|
+
code: 'INVALID_TYPE'
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
product.aspects['OE/OEM Part Number'].forEach((value, index) => {
|
|
101
|
+
errors.push(...validateString(`product.aspects.OE/OEM Part Number[${index}]`, value, { required: true }));
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
// Validate optional fields
|
|
107
|
+
errors.push(...validateString('product.brand', product.brand, { max: 100 }));
|
|
108
|
+
errors.push(...validateString('product.mpn', product.mpn, { max: 100 }));
|
|
109
|
+
errors.push(...validateString('product.subtitle', product.subtitle, { max: 55 }));
|
|
110
|
+
errors.push(...validateString('product.epid', product.epid, { max: 50 }));
|
|
111
|
+
// Validate arrays if present
|
|
112
|
+
if (product.imageUrls !== undefined) {
|
|
113
|
+
if (!Array.isArray(product.imageUrls)) {
|
|
114
|
+
errors.push({
|
|
115
|
+
type: 'validation_error',
|
|
116
|
+
field: 'product.imageUrls',
|
|
117
|
+
message: 'imageUrls must be an array',
|
|
118
|
+
value: product.imageUrls,
|
|
119
|
+
code: 'INVALID_TYPE'
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
else if (product.imageUrls.length === 0) {
|
|
123
|
+
errors.push({
|
|
124
|
+
type: 'validation_error',
|
|
125
|
+
field: 'product.imageUrls',
|
|
126
|
+
message: 'imageUrls must contain at least one URL',
|
|
127
|
+
value: product.imageUrls,
|
|
128
|
+
code: 'ARRAY_TOO_SHORT'
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
product.imageUrls.forEach((url, index) => {
|
|
133
|
+
errors.push(...validateString(`product.imageUrls[${index}]`, url, { required: true }));
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (product.ean !== undefined) {
|
|
138
|
+
if (!Array.isArray(product.ean)) {
|
|
139
|
+
errors.push({
|
|
140
|
+
type: 'validation_error',
|
|
141
|
+
field: 'product.ean',
|
|
142
|
+
message: 'ean must be an array',
|
|
143
|
+
value: product.ean,
|
|
144
|
+
code: 'INVALID_TYPE'
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
product.ean.forEach((ean, index) => {
|
|
149
|
+
errors.push(...validateString(`product.ean[${index}]`, ean, { required: true }));
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (product.isbn !== undefined) {
|
|
154
|
+
if (!Array.isArray(product.isbn)) {
|
|
155
|
+
errors.push({
|
|
156
|
+
type: 'validation_error',
|
|
157
|
+
field: 'product.isbn',
|
|
158
|
+
message: 'isbn must be an array',
|
|
159
|
+
value: product.isbn,
|
|
160
|
+
code: 'INVALID_TYPE'
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
product.isbn.forEach((isbn, index) => {
|
|
165
|
+
errors.push(...validateString(`product.isbn[${index}]`, isbn, { required: true }));
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (product.upc !== undefined) {
|
|
170
|
+
if (!Array.isArray(product.upc)) {
|
|
171
|
+
errors.push({
|
|
172
|
+
type: 'validation_error',
|
|
173
|
+
field: 'product.upc',
|
|
174
|
+
message: 'upc must be an array',
|
|
175
|
+
value: product.upc,
|
|
176
|
+
code: 'INVALID_TYPE'
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
product.upc.forEach((upc, index) => {
|
|
181
|
+
errors.push(...validateString(`product.upc[${index}]`, upc, { required: true }));
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return errors.length > 0
|
|
186
|
+
? { success: false, errors }
|
|
187
|
+
: { success: true, data: product };
|
|
188
|
+
}
|
|
189
|
+
// Legacy export for backward compatibility
|
|
190
|
+
export const validate = (product) => {
|
|
191
|
+
const result = validateProduct(product);
|
|
192
|
+
if (result.success) {
|
|
193
|
+
return result.data;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
// Convert to legacy ValidationError for backward compatibility
|
|
197
|
+
const { ValidationErrorLegacy } = require('./validation.js');
|
|
198
|
+
return new ValidationErrorLegacy("Error validating Product", result.errors);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
//# sourceMappingURL=Product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../src/entities/ebay/Product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAwC,cAAc,EAA6C,MAAM,iBAAiB,CAAA;AAwH3I,MAAM,UAAU,eAAe,CAAC,OAAgB;IAC/C,MAAM,MAAM,GAAyB,EAAE,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MAAM,QAAQ,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC5C,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,CAAA;IACvC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC,IAAI,CAAA;IACnB,CAAC;SAAM,CAAC;QACP,+DAA+D;QAC/D,MAAM,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;QAC5D,OAAO,IAAI,qBAAqB,CAAC,0BAA0B,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IAC5E,CAAC;AACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CategoryType } from "./CategoryType.js";
|
|
2
|
+
import { MarketplaceEnum } from "./MarketplaceEnum.js";
|
|
3
|
+
import { TimeDuration } from "./TimeDuration.js";
|
|
4
|
+
export declare enum ReturnShippingCostPayerEnum {
|
|
5
|
+
BUYER = "BUYER",
|
|
6
|
+
SELLER = "SELLER"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Number of days that hte buyer has to return an item. Return period begins when item is marked
|
|
10
|
+
* "delivered"
|
|
11
|
+
*
|
|
12
|
+
* Occurrence: Conditionally required if returnsAccepted is true
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Root container that defines the fields for a seller's return policy. The returnPolicy encapsulates a seller's terms for how they handle item returns, the
|
|
16
|
+
* name and description of the policy, and the marketplace and category group(s) to which the return policy is applied. While each seller must define at least
|
|
17
|
+
* one return policy for every marketplace into which they sell, sellers can define multiple return policies for a single marketplace by specifying different
|
|
18
|
+
* configurations for the unique policies.
|
|
19
|
+
* There are many fields in the docs that are no longer supported.
|
|
20
|
+
*/
|
|
21
|
+
export interface ReturnPolicy {
|
|
22
|
+
/**
|
|
23
|
+
* Which category group that the return policy applies to.
|
|
24
|
+
* Not applicable to motor vehicle listings
|
|
25
|
+
* categoryType.name value must be set to ALL_EXCLUDING_MOTOR_VEHICLES
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
categoryTypes: CategoryType[];
|
|
29
|
+
/**
|
|
30
|
+
* A seller-defined description of the policy, not public
|
|
31
|
+
* Max length: 250
|
|
32
|
+
*
|
|
33
|
+
* Occurrence: Optional
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
/**
|
|
37
|
+
* marketplace id that the policy applies to
|
|
38
|
+
*/
|
|
39
|
+
marketplaceId: MarketplaceEnum;
|
|
40
|
+
/**
|
|
41
|
+
* A user-defined name for this return policy. Names must be unique for policies assigned to the same marketplace.
|
|
42
|
+
* Max length: 64
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Used if seller willing and able to offer a replacement as alternative to 'Money Back'
|
|
47
|
+
*
|
|
48
|
+
* Occurrence: Optional
|
|
49
|
+
*/
|
|
50
|
+
returnMethod: "REPLACEMENT";
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
returnPeriod: TimeDuration;
|
|
55
|
+
/**
|
|
56
|
+
* Top-rated sellers must accept item returns and handlingTime should be set to 0 or 1 days to keep Top-Rated Plus badge
|
|
57
|
+
*/
|
|
58
|
+
returnsAccepted: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates who is responsible for paying the shipping charges on returned items
|
|
61
|
+
*
|
|
62
|
+
* Occurrence: Conditionally required if returnsAccepted = true
|
|
63
|
+
*/
|
|
64
|
+
returnShippingCostPayer: ReturnShippingCostPayerEnum;
|
|
65
|
+
returnPolicyId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface ReturnPolicyResponse {
|
|
68
|
+
href: string;
|
|
69
|
+
returnPolicies: ReturnPolicy[];
|
|
70
|
+
total: number;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=ReturnPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReturnPolicy.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/ReturnPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAwB,MAAM,mBAAmB,CAAA;AAEtE,oBAAY,2BAA2B;IACtC,KAAK,UAAU;IACf,MAAM,WAAW;CACjB;AAED;;;;;GAKG;AAMH;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC5B;;;;;OAKG;IACH,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,aAAa,EAAE,eAAe,CAAA;IAC9B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,YAAY,EAAE,aAAa,CAAA;IAC3B;;OAEG;IACH,YAAY,EAAE,YAAY,CAAA;IAC1B;;OAEG;IACH,eAAe,EAAE,OAAO,CAAA;IACxB;;;;OAIG;IACH,uBAAuB,EAAE,2BAA2B,CAAA;IAEpD,cAAc,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ReturnShippingCostPayerEnum;
|
|
2
|
+
(function (ReturnShippingCostPayerEnum) {
|
|
3
|
+
ReturnShippingCostPayerEnum["BUYER"] = "BUYER";
|
|
4
|
+
ReturnShippingCostPayerEnum["SELLER"] = "SELLER";
|
|
5
|
+
})(ReturnShippingCostPayerEnum || (ReturnShippingCostPayerEnum = {}));
|
|
6
|
+
//# sourceMappingURL=ReturnPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReturnPolicy.js","sourceRoot":"","sources":["../../../src/entities/ebay/ReturnPolicy.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACtC,8CAAe,CAAA;IACf,gDAAiB,CAAA;AAClB,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum EbayScopes {
|
|
2
|
+
Inventory = "https://api.ebay.com/oauth/api_scope/sell.inventory",
|
|
3
|
+
Marketing = "https://api.ebay.com/oauth/api_scope/sell.marketing",
|
|
4
|
+
Account = "https://api.ebay.com/oauth/api_scope/sell.account",
|
|
5
|
+
Fulfillment = "https://api.ebay.com/oauth/api_scope/sell.fulfillment"
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=Scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scopes.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/Scopes.ts"],"names":[],"mappings":"AACA,oBAAY,UAAU;IAClB,SAAS,wDAAwD;IACjE,SAAS,wDAAwD;IACjE,OAAO,sDAAsD;IAChE,WAAW,0DAA0D;CAGrE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// TODO: confirm these work with the inventory api we're using
|
|
2
|
+
export var EbayScopes;
|
|
3
|
+
(function (EbayScopes) {
|
|
4
|
+
EbayScopes["Inventory"] = "https://api.ebay.com/oauth/api_scope/sell.inventory";
|
|
5
|
+
EbayScopes["Marketing"] = "https://api.ebay.com/oauth/api_scope/sell.marketing";
|
|
6
|
+
EbayScopes["Account"] = "https://api.ebay.com/oauth/api_scope/sell.account";
|
|
7
|
+
EbayScopes["Fulfillment"] = "https://api.ebay.com/oauth/api_scope/sell.fulfillment";
|
|
8
|
+
//Api = "https://api.ebay.com/oauth/api_scope"
|
|
9
|
+
// ItemDraft = "https://api.ebay.com/oauth/api_scope/sell.item.draft",
|
|
10
|
+
})(EbayScopes || (EbayScopes = {}));
|
|
11
|
+
//# sourceMappingURL=Scopes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scopes.js","sourceRoot":"","sources":["../../../src/entities/ebay/Scopes.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IAClB,+EAAiE,CAAA;IACjE,+EAAiE,CAAA;IACjE,2EAA6D,CAAA;IAChE,mFAAqE,CAAA;IAClE,8CAA8C;IACjD,sEAAsE;AACvE,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Amount } from "./Amount.js";
|
|
2
|
+
import { ShippingService } from "./ShippingService.js";
|
|
3
|
+
import { NonFunctionProperties } from "../../utils/typeHelpers.js";
|
|
4
|
+
/**
|
|
5
|
+
* An enum defining the supported ways that shipping costs are calculated.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum ShippingCostTypeEnum {
|
|
8
|
+
/**
|
|
9
|
+
* Shipping cost type CALCULATED, the shipping cost varies by location of the ship-to address and the size and
|
|
10
|
+
* weight of the package (as defined by the item).
|
|
11
|
+
*/
|
|
12
|
+
Calculated = "CALCULATED",
|
|
13
|
+
/** Shipping cost type FLAT_RATE, the shipping cost is the same for all buyers. */
|
|
14
|
+
FlatRate = "FLAT_RATE",
|
|
15
|
+
/** Shipping cost type NOT_SPECIFIED. Use for local pickup. */
|
|
16
|
+
NotSpecified = "NOT_SPECIFIED"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An enum defining a region that is either domestic (within the country from where the item is listed or shipped) or
|
|
20
|
+
* international (a country outside the country from where the item is listed or shipped).
|
|
21
|
+
*/
|
|
22
|
+
export declare enum ShippingOptionTypeEnum {
|
|
23
|
+
/** DOMESTIC indicates a region that is within the source country. */
|
|
24
|
+
Domestic = "DOMESTIC",
|
|
25
|
+
/** INTERNATIONAL indicates a region that is external to the source country. */
|
|
26
|
+
International = "INTERNATIONAL"
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This complex type defines a seller's shipping configuration for either a DOMESTIC or INTERNATIONAL shipping option.
|
|
30
|
+
*
|
|
31
|
+
* Shipping options configure the high-level settings for shipments, such as flat-rate or calculated shipping, and any
|
|
32
|
+
* rate tables the seller wants to associate with the policy.
|
|
33
|
+
*
|
|
34
|
+
* Each shippingOption element has a shippingServices container that defines the list of shipping carriers and services
|
|
35
|
+
* that are available for the parent shipping option (that is, for either DOMESTIC or INTERNATIONAL shipping). If a
|
|
36
|
+
* seller offers an international shipping option, they must also offer a domestic shipping option.
|
|
37
|
+
*
|
|
38
|
+
* Note that costType (FLAT_RATE or CALCULATED) is set in shippingOptions and that all associated shipping services must
|
|
39
|
+
* be able to support this cost type.
|
|
40
|
+
*/
|
|
41
|
+
export declare class ShippingOption {
|
|
42
|
+
/**
|
|
43
|
+
* Defines whether the shipping cost is FLAT_RATE (the same rate for all buyers), CALCULATED (the shipping rate
|
|
44
|
+
* varies by the ship-to location and size and weight of the package, as defined by the item), or NOT_SPECIFIED (for
|
|
45
|
+
* use with local pickup).
|
|
46
|
+
*
|
|
47
|
+
* Required if the policy offers shipping options using a shippingOptions container.
|
|
48
|
+
*/
|
|
49
|
+
costType: ShippingCostTypeEnum;
|
|
50
|
+
/**
|
|
51
|
+
* Use this field to set the ShippingOption element to either DOMESTIC or INTERNATIONAL.
|
|
52
|
+
*
|
|
53
|
+
* Required if the policy offers shipping options using a shippingOptions container.
|
|
54
|
+
*/
|
|
55
|
+
optionType: ShippingOptionTypeEnum;
|
|
56
|
+
/**
|
|
57
|
+
* Applicable to only CALCULATED shipping, an amount a seller can add to cover packaging, handling costs. This cost
|
|
58
|
+
* is an addition to the selected shipping service cost and is included in the sum of the final shipping service
|
|
59
|
+
* costs in the output.
|
|
60
|
+
*
|
|
61
|
+
* This field must specify a zero value if freeShipping is set to true.
|
|
62
|
+
*
|
|
63
|
+
* If the seller offers domestic and international calculated shipping but sets this field for only domestic
|
|
64
|
+
* shipping, eBay also applies the cost to all international shipments. To specify a fee for only international
|
|
65
|
+
* shipments, set the a domestic packagingHandlingCost to 0.
|
|
66
|
+
*/
|
|
67
|
+
packageHandlingCost: Amount;
|
|
68
|
+
/**
|
|
69
|
+
* A unique eBay-assigned ID associated with a user-created shipping rate table. The locality of a shipping rate
|
|
70
|
+
* table can be either DOMESTIC or INTERNATIONAL and you must ensure the value specified in this field references a
|
|
71
|
+
* shipping rate table that matches the type specified in the shippingOptions.optionType field. If you mismatch the
|
|
72
|
+
* types, eBay responds with a 20403 error.
|
|
73
|
+
*
|
|
74
|
+
* Call getRateTable to retrieve information (including rateTableId values) on the rate tables configured by a
|
|
75
|
+
* seller. For information on creating rate tables, see Using shipping rate tables.
|
|
76
|
+
*/
|
|
77
|
+
rateTableId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Contains a list of shipping services offered for either DOMESTIC or INTERNATIONAL shipments.
|
|
80
|
+
*
|
|
81
|
+
* Sellers can specify up to four domestic shipping services and up to five international shipping services by using
|
|
82
|
+
* separate shippingService containers for each. Note that if the seller is opted in to the Global Shipping Program,
|
|
83
|
+
* they can specify only four other international shipping services, regardless of whether or not Global Shipping is
|
|
84
|
+
* offered as one of the services.
|
|
85
|
+
*
|
|
86
|
+
* Required if the policy offers shipping options using a shippingOptions container.
|
|
87
|
+
*/
|
|
88
|
+
shippingServices: ShippingService[];
|
|
89
|
+
constructor(init: NonFunctionProperties<ShippingOption>);
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=ShippingOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShippingOption.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/ShippingOption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE;;GAEG;AACH,oBAAY,oBAAoB;IAC/B;;;OAGG;IACH,UAAU,eAAe;IACzB,kFAAkF;IAClF,QAAQ,cAAc;IACtB,8DAA8D;IAC9D,YAAY,kBAAkB;CAC9B;AAED;;;GAGG;AACH,oBAAY,sBAAsB;IACjC,qEAAqE;IACrE,QAAQ,aAAa;IACrB,+EAA+E;IAC/E,aAAa,kBAAkB;CAC/B;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,cAAc;IAC1B;;;;;;OAMG;IACH,QAAQ,EAAE,oBAAoB,CAAA;IAC9B;;;;OAIG;IACH,UAAU,EAAE,sBAAsB,CAAA;IAClC;;;;;;;;;;OAUG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;;;;;OAQG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;;;;;;;OASG;IACH,gBAAgB,EAAE,eAAe,EAAE,CAAA;gBAEvB,IAAI,EAAE,qBAAqB,CAAC,cAAc,CAAC;CAGvD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum defining the supported ways that shipping costs are calculated.
|
|
3
|
+
*/
|
|
4
|
+
export var ShippingCostTypeEnum;
|
|
5
|
+
(function (ShippingCostTypeEnum) {
|
|
6
|
+
/**
|
|
7
|
+
* Shipping cost type CALCULATED, the shipping cost varies by location of the ship-to address and the size and
|
|
8
|
+
* weight of the package (as defined by the item).
|
|
9
|
+
*/
|
|
10
|
+
ShippingCostTypeEnum["Calculated"] = "CALCULATED";
|
|
11
|
+
/** Shipping cost type FLAT_RATE, the shipping cost is the same for all buyers. */
|
|
12
|
+
ShippingCostTypeEnum["FlatRate"] = "FLAT_RATE";
|
|
13
|
+
/** Shipping cost type NOT_SPECIFIED. Use for local pickup. */
|
|
14
|
+
ShippingCostTypeEnum["NotSpecified"] = "NOT_SPECIFIED";
|
|
15
|
+
})(ShippingCostTypeEnum || (ShippingCostTypeEnum = {}));
|
|
16
|
+
/**
|
|
17
|
+
* An enum defining a region that is either domestic (within the country from where the item is listed or shipped) or
|
|
18
|
+
* international (a country outside the country from where the item is listed or shipped).
|
|
19
|
+
*/
|
|
20
|
+
export var ShippingOptionTypeEnum;
|
|
21
|
+
(function (ShippingOptionTypeEnum) {
|
|
22
|
+
/** DOMESTIC indicates a region that is within the source country. */
|
|
23
|
+
ShippingOptionTypeEnum["Domestic"] = "DOMESTIC";
|
|
24
|
+
/** INTERNATIONAL indicates a region that is external to the source country. */
|
|
25
|
+
ShippingOptionTypeEnum["International"] = "INTERNATIONAL";
|
|
26
|
+
})(ShippingOptionTypeEnum || (ShippingOptionTypeEnum = {}));
|
|
27
|
+
/**
|
|
28
|
+
* This complex type defines a seller's shipping configuration for either a DOMESTIC or INTERNATIONAL shipping option.
|
|
29
|
+
*
|
|
30
|
+
* Shipping options configure the high-level settings for shipments, such as flat-rate or calculated shipping, and any
|
|
31
|
+
* rate tables the seller wants to associate with the policy.
|
|
32
|
+
*
|
|
33
|
+
* Each shippingOption element has a shippingServices container that defines the list of shipping carriers and services
|
|
34
|
+
* that are available for the parent shipping option (that is, for either DOMESTIC or INTERNATIONAL shipping). If a
|
|
35
|
+
* seller offers an international shipping option, they must also offer a domestic shipping option.
|
|
36
|
+
*
|
|
37
|
+
* Note that costType (FLAT_RATE or CALCULATED) is set in shippingOptions and that all associated shipping services must
|
|
38
|
+
* be able to support this cost type.
|
|
39
|
+
*/
|
|
40
|
+
export class ShippingOption {
|
|
41
|
+
constructor(init) {
|
|
42
|
+
Object.assign(this, init);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=ShippingOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShippingOption.js","sourceRoot":"","sources":["../../../src/entities/ebay/ShippingOption.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,CAAN,IAAY,oBAUX;AAVD,WAAY,oBAAoB;IAC/B;;;OAGG;IACH,iDAAyB,CAAA;IACzB,kFAAkF;IAClF,8CAAsB,CAAA;IACtB,8DAA8D;IAC9D,sDAA8B,CAAA;AAC/B,CAAC,EAVW,oBAAoB,KAApB,oBAAoB,QAU/B;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IACjC,qEAAqE;IACrE,+CAAqB,CAAA;IACrB,+EAA+E;IAC/E,yDAA+B,CAAA;AAChC,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,cAAc;IAiD1B,YAAY,IAA2C;QACtD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1B,CAAC;CACD"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Amount } from "./Amount.js";
|
|
2
|
+
import { NonFunctionProperties } from "../../utils/typeHelpers.js";
|
|
3
|
+
/**
|
|
4
|
+
* A complex type that defines the available shipping services offered in the parent shippingOptions container. The
|
|
5
|
+
* shipping services specified here must be able to accommodate the optionType defined in the parent shippingOption
|
|
6
|
+
* container (either DOMESTIC or INTERNATIONAL).
|
|
7
|
+
*/
|
|
8
|
+
export declare class ShippingService {
|
|
9
|
+
/**
|
|
10
|
+
* The cost of shipping each additional item if the same buyer purchases a multiple quantity of the same line item.
|
|
11
|
+
* This field is applicable for policies that cover multiple-quantity, fixed-price listings and is not applicable
|
|
12
|
+
* for policies that apply to single-quantity listings.
|
|
13
|
+
*
|
|
14
|
+
* Sellers can encourage buyers to purchase multiple items and by offering a shipping discount on added items. The
|
|
15
|
+
* value for this field should be lower than the value set for shippingCost and you can set this value to 0 to offer
|
|
16
|
+
* free shipping on added items. If this value is not set, it defaults to the value set for shippingCost.
|
|
17
|
+
*/
|
|
18
|
+
additionalShippingCost: Amount;
|
|
19
|
+
/**
|
|
20
|
+
* This field is only applicable to vehicle categories on eBay Motors (US and Canada). If set to true, the buyer is
|
|
21
|
+
* responsible for picking up the vehicle. Otherwise, the seller should specify the vehicle pickup arrangements in
|
|
22
|
+
* the item description.
|
|
23
|
+
*
|
|
24
|
+
* The seller cannot modify this flag if the vehicle has bids or if the listing ends within 12 hours.
|
|
25
|
+
*
|
|
26
|
+
* Default: false
|
|
27
|
+
*/
|
|
28
|
+
buyerResponsibleForPickup: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* This field is applicable for only items listed in vehicle categories on eBay Motors (US and Canada). If set to
|
|
31
|
+
* true, the buyer is responsible for the shipment of the vehicle. Otherwise, the seller should specify the vehicle
|
|
32
|
+
* shipping arrangements in the item description.
|
|
33
|
+
*
|
|
34
|
+
* The seller cannot modify this flag if the vehicle has bids or if the listing ends within 12 hours.
|
|
35
|
+
*
|
|
36
|
+
* Default: false
|
|
37
|
+
*/
|
|
38
|
+
buyerResponsibleForShipping: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The value indicates the Cash on Delivery (COD) fee that the seller charges if the buyer uses the CASH_ON_DELIVERY
|
|
41
|
+
* payment method. This fee is added to the total cost of the item, and the total cost is due from the buyer upon
|
|
42
|
+
* the delivery of the item. This field is applicable only if the buyer-selected payment method is 'COD' and the
|
|
43
|
+
* selected shipping service option supports a Cash on Delivery option.
|
|
44
|
+
*
|
|
45
|
+
* To see if a domestic shipping service supports the Cash on Delivery option, call GeteBayDetails with DetailName
|
|
46
|
+
* set to ShippingServiceDetails, then review the response to see if CODService is set to true for the targeted
|
|
47
|
+
* shipping service.
|
|
48
|
+
*/
|
|
49
|
+
cashOnDeliveryFee: Amount;
|
|
50
|
+
/**
|
|
51
|
+
* If set to true, the seller offers free shipping to the buyer. This field can only be included and set to 'true'
|
|
52
|
+
* for the first domestic shipping service option specified in the shippingServices container (it is ignored if set
|
|
53
|
+
* for subsequent shipping services). The first specified shipping service option has a sortOrder value of 1 or (if
|
|
54
|
+
* the sortOrderId field is not used) it is the shipping service option that's specified first in the
|
|
55
|
+
* shippingServices container.
|
|
56
|
+
*/
|
|
57
|
+
freeShipping: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The shipping carrier, such as 'USPS', 'FedEx', 'UPS', and so on.
|
|
60
|
+
*/
|
|
61
|
+
shippingCarrierCode: string;
|
|
62
|
+
/**
|
|
63
|
+
* For FLAT_RATE shipping options, the amount specified in this field is the shipping cost for the selected shipping
|
|
64
|
+
* carrier and service. The amount supplied must exclude any additional shipping charges (such as the seller's
|
|
65
|
+
* handling charges).
|
|
66
|
+
*
|
|
67
|
+
* This field is not applicable in CALCULATED shipping services (the cost for a calculated shipping service cannot
|
|
68
|
+
* be determined until the listing has ended and the buyer has specified a postal code).
|
|
69
|
+
*
|
|
70
|
+
* This value is automatically set to '0.0' if freeShipping is set to true.
|
|
71
|
+
*
|
|
72
|
+
* Required if the shipping option uses a FLAT_RATE cost type and freeShipping is false.
|
|
73
|
+
*/
|
|
74
|
+
shippingCost: Amount;
|
|
75
|
+
/**
|
|
76
|
+
* The shipping service that the shipping carrier uses to ship an item. For example, an overnight, two-day delivery,
|
|
77
|
+
* or other type of service. For details on configuring shipping services, see Setting the shipping carrier and
|
|
78
|
+
* shipping service values.
|
|
79
|
+
*/
|
|
80
|
+
shippingServiceCode: string;
|
|
81
|
+
/**
|
|
82
|
+
* This integer value controls the order that this shipping service option appears in the View Item and Checkout
|
|
83
|
+
* pages, as related to the other specified shipping service options.
|
|
84
|
+
*
|
|
85
|
+
* Sellers can specify up to four domestic shipping services (in four separate shippingService containers), so valid
|
|
86
|
+
* values are 1, 2, 3, and 4. A shipping service option with a sortOrder value of '1' appears at the top of View
|
|
87
|
+
* Item and Checkout pages. Conversely, a shipping service option with a sortOrder value of '4' appears at the
|
|
88
|
+
* bottom of the list.
|
|
89
|
+
*
|
|
90
|
+
* Sellers can specify up to five international shipping services (in five separate shippingService containers, so
|
|
91
|
+
* valid values for international shipping services are 1, 2, 3, 4, and 5. Similarly to domestic shipping service
|
|
92
|
+
* options, the sortOrder value of a international shipping service option controls the placement of that shipping
|
|
93
|
+
* service option in the View Item and Checkout pages. Set up different domestic and international services by
|
|
94
|
+
* configuring two shippingOptions containers, where you set shippingOptions.optionType to either DOMESTIC or
|
|
95
|
+
* INTERNATIONAL to indicate the area supported by the listed shipping services.
|
|
96
|
+
*
|
|
97
|
+
* If the sortOrder field is not supplied, the order of domestic and international shipping service options is
|
|
98
|
+
* determined by the order in which they are listed in the API call.
|
|
99
|
+
*
|
|
100
|
+
* Min: 1. Max: 4 (for domestic shipping service) or 5 (for international shipping service).
|
|
101
|
+
*/
|
|
102
|
+
sortOrder: number;
|
|
103
|
+
/**
|
|
104
|
+
* A fee that can be charged to US buyers when they have an item shipped via UPS or FedEx to Alaska, Hawaii or
|
|
105
|
+
* Puerto Rico.
|
|
106
|
+
*
|
|
107
|
+
* Use this element only if the shipping option specifies a flat-rate service and the policy targets the
|
|
108
|
+
* MOTORS_VEHICLES category type in the US marketplace.
|
|
109
|
+
*
|
|
110
|
+
* If some line items in an order have a surcharge, the surcharge amount is added only for those line items. This
|
|
111
|
+
* value is returned only when set. Note that you cannot add a surcharge to items shipped via the Global Shipping
|
|
112
|
+
* Program.
|
|
113
|
+
*/
|
|
114
|
+
surcharge: Amount;
|
|
115
|
+
constructor(init: NonFunctionProperties<ShippingService>);
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=ShippingService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShippingService.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/ShippingService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE;;;;GAIG;AACH,qBAAa,eAAe;IAC3B;;;;;;;;OAQG;IACH,sBAAsB,EAAE,MAAM,CAAA;IAC9B;;;;;;;;OAQG;IACH,yBAAyB,EAAE,OAAO,CAAA;IAClC;;;;;;;;OAQG;IACH,2BAA2B,EAAE,OAAO,CAAA;IACpC;;;;;;;;;OASG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;;;;;OAMG;IACH,YAAY,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;;;;;;;;OAWG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAE3B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;;;;;;OAUG;IACH,SAAS,EAAE,MAAM,CAAA;gBAEL,IAAI,EAAE,qBAAqB,CAAC,eAAe,CAAC;CAGxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A complex type that defines the available shipping services offered in the parent shippingOptions container. The
|
|
3
|
+
* shipping services specified here must be able to accommodate the optionType defined in the parent shippingOption
|
|
4
|
+
* container (either DOMESTIC or INTERNATIONAL).
|
|
5
|
+
*/
|
|
6
|
+
export class ShippingService {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
Object.assign(this, init);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ShippingService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShippingService.js","sourceRoot":"","sources":["../../../src/entities/ebay/ShippingService.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,OAAO,eAAe;IA6G3B,YAAY,IAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1B,CAAC;CACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sku.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/Sku.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,MAAM,MAAM,GAAG,GAAG,MAAM,CAAA;AACxB,eAAO,MAAM,GAAG,eAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sku.js","sourceRoot":"","sources":["../../../src/entities/ebay/Sku.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAG1B,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
|