@51eat/sdk 2.0.0 → 2.1.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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/business/resources/commerce/client/Client.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/commerce/client/Client.js +17 -2
- package/dist/cjs/api/resources/business/resources/commerce/resources/index.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/index.js +14 -4
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.d.ts +294 -1
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.js +893 -1
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.js +15 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.ts +52 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.ts +68 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.js +38 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.ts +30 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.ts +46 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.ts +52 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.ts +15 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.js +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.d.ts +114 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.js +401 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.ts +49 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.ts +36 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.js +7 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.ts +44 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.js +20 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.d.ts +104 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.js +380 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.d.ts +163 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.js +537 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.ts +16 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.ts +54 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.ts +46 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.ts +7 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.js +7 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.js +22 -0
- package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.d.ts +9 -5
- package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.js +9 -5
- package/dist/cjs/api/types/BusinessCommerceLocation.d.ts +37 -3
- package/dist/cjs/api/types/BusinessEvent.d.ts +2 -0
- package/dist/cjs/api/types/BusinessLocation.d.ts +29 -0
- package/dist/cjs/api/types/BusinessLocation.js +11 -0
- package/dist/cjs/api/types/BusinessLocationDetails.d.ts +36 -0
- package/dist/cjs/api/types/BusinessLocationDetails.js +11 -0
- package/dist/cjs/api/types/BusinessLocationHourException.d.ts +14 -0
- package/dist/cjs/api/types/BusinessLocationHourException.js +3 -0
- package/dist/cjs/api/types/BusinessLocationOpeningHours.d.ts +17 -0
- package/dist/cjs/api/types/BusinessLocationOpeningHours.js +3 -0
- package/dist/cjs/api/types/BusinessLocationPickup.d.ts +25 -0
- package/dist/cjs/api/types/BusinessLocationPickup.js +14 -0
- package/dist/cjs/api/types/BusinessOpeningHourSlot.d.ts +10 -0
- package/dist/cjs/api/types/BusinessOpeningHourSlot.js +3 -0
- package/dist/cjs/api/types/BusinessPickupSchedule.d.ts +10 -0
- package/dist/cjs/api/types/BusinessPickupSchedule.js +3 -0
- package/dist/cjs/api/types/BusinessPickupWindow.d.ts +11 -0
- package/dist/cjs/api/types/BusinessPickupWindow.js +3 -0
- package/dist/cjs/api/types/BusinessSellerTerms.d.ts +10 -0
- package/dist/cjs/api/types/BusinessSellerTerms.js +3 -0
- package/dist/cjs/api/types/BusinessSelling.d.ts +61 -0
- package/dist/cjs/api/types/BusinessSelling.js +16 -0
- package/dist/cjs/api/types/Cart.d.ts +1 -1
- package/dist/cjs/api/types/CustomerEvent.d.ts +6 -0
- package/dist/cjs/api/types/CustomerEventDetail.d.ts +6 -0
- package/dist/cjs/api/types/CustomerEventTicketType.d.ts +7 -0
- package/dist/cjs/api/types/EventFeedItem.d.ts +6 -0
- package/dist/cjs/api/types/ImageResource.d.ts +7 -0
- package/dist/cjs/api/types/ImageResource.js +3 -0
- package/dist/cjs/api/types/LocationKind.d.ts +12 -0
- package/dist/cjs/api/types/LocationKind.js +15 -0
- package/dist/cjs/api/types/ProductResource.d.ts +41 -0
- package/dist/cjs/api/types/ProductResource.js +18 -0
- package/dist/cjs/api/types/Unit.d.ts +16 -0
- package/dist/cjs/api/types/Unit.js +19 -0
- package/dist/cjs/api/types/UpdateLocationRequest.d.ts +7 -0
- package/dist/cjs/api/types/UpdateLocationRequest.js +3 -0
- package/dist/cjs/api/types/VariantInventoryLevelResource.d.ts +9 -0
- package/dist/cjs/api/types/VariantInventoryLevelResource.js +3 -0
- package/dist/cjs/api/types/VariantResource.d.ts +26 -0
- package/dist/cjs/api/types/VariantResource.js +3 -0
- package/dist/cjs/api/types/VariantStockLocationResource.d.ts +15 -0
- package/dist/cjs/api/types/VariantStockLocationResource.js +11 -0
- package/dist/cjs/api/types/index.d.ts +18 -0
- package/dist/cjs/api/types/index.js +18 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/business/resources/commerce/client/Client.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/commerce/client/Client.mjs +15 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/index.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/index.mjs +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.d.mts +294 -1
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.mjs +894 -2
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.mjs +1 -1
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.mts +52 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.mts +68 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.mjs +35 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.mts +30 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.mts +46 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.mts +52 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.mts +15 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.mjs +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.d.mts +114 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.mjs +364 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.mts +49 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.mts +36 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.mts +44 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.mjs +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.d.mts +104 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.mjs +343 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.mjs +5 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.d.mts +163 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.mjs +500 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.mts +16 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.mts +54 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.mts +46 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.mts +7 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.mjs +6 -0
- package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.d.mts +9 -5
- package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.mjs +9 -5
- package/dist/esm/api/types/BusinessCommerceLocation.d.mts +37 -3
- package/dist/esm/api/types/BusinessEvent.d.mts +2 -0
- package/dist/esm/api/types/BusinessLocation.d.mts +29 -0
- package/dist/esm/api/types/BusinessLocation.mjs +8 -0
- package/dist/esm/api/types/BusinessLocationDetails.d.mts +36 -0
- package/dist/esm/api/types/BusinessLocationDetails.mjs +8 -0
- package/dist/esm/api/types/BusinessLocationHourException.d.mts +14 -0
- package/dist/esm/api/types/BusinessLocationHourException.mjs +2 -0
- package/dist/esm/api/types/BusinessLocationOpeningHours.d.mts +17 -0
- package/dist/esm/api/types/BusinessLocationOpeningHours.mjs +2 -0
- package/dist/esm/api/types/BusinessLocationPickup.d.mts +25 -0
- package/dist/esm/api/types/BusinessLocationPickup.mjs +11 -0
- package/dist/esm/api/types/BusinessOpeningHourSlot.d.mts +10 -0
- package/dist/esm/api/types/BusinessOpeningHourSlot.mjs +2 -0
- package/dist/esm/api/types/BusinessPickupSchedule.d.mts +10 -0
- package/dist/esm/api/types/BusinessPickupSchedule.mjs +2 -0
- package/dist/esm/api/types/BusinessPickupWindow.d.mts +11 -0
- package/dist/esm/api/types/BusinessPickupWindow.mjs +2 -0
- package/dist/esm/api/types/BusinessSellerTerms.d.mts +10 -0
- package/dist/esm/api/types/BusinessSellerTerms.mjs +2 -0
- package/dist/esm/api/types/BusinessSelling.d.mts +61 -0
- package/dist/esm/api/types/BusinessSelling.mjs +13 -0
- package/dist/esm/api/types/Cart.d.mts +1 -1
- package/dist/esm/api/types/CustomerEvent.d.mts +6 -0
- package/dist/esm/api/types/CustomerEventDetail.d.mts +6 -0
- package/dist/esm/api/types/CustomerEventTicketType.d.mts +7 -0
- package/dist/esm/api/types/EventFeedItem.d.mts +6 -0
- package/dist/esm/api/types/ImageResource.d.mts +7 -0
- package/dist/esm/api/types/ImageResource.mjs +2 -0
- package/dist/esm/api/types/LocationKind.d.mts +12 -0
- package/dist/esm/api/types/LocationKind.mjs +12 -0
- package/dist/esm/api/types/ProductResource.d.mts +41 -0
- package/dist/esm/api/types/ProductResource.mjs +15 -0
- package/dist/esm/api/types/Unit.d.mts +16 -0
- package/dist/esm/api/types/Unit.mjs +16 -0
- package/dist/esm/api/types/UpdateLocationRequest.d.mts +7 -0
- package/dist/esm/api/types/UpdateLocationRequest.mjs +2 -0
- package/dist/esm/api/types/VariantInventoryLevelResource.d.mts +9 -0
- package/dist/esm/api/types/VariantInventoryLevelResource.mjs +2 -0
- package/dist/esm/api/types/VariantResource.d.mts +26 -0
- package/dist/esm/api/types/VariantResource.mjs +2 -0
- package/dist/esm/api/types/VariantStockLocationResource.d.mts +15 -0
- package/dist/esm/api/types/VariantStockLocationResource.mjs +8 -0
- package/dist/esm/api/types/index.d.mts +18 -0
- package/dist/esm/api/types/index.mjs +18 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +34 -1
- package/reference.md +2115 -83
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* "Idempotency-Key": "Idempotency-Key",
|
|
6
|
+
* product: "product",
|
|
7
|
+
* name: "name",
|
|
8
|
+
* price: 1.1,
|
|
9
|
+
* unit: "each",
|
|
10
|
+
* quantity_step: 1
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface StoreVariantRequest {
|
|
14
|
+
/** The product ID */
|
|
15
|
+
product: string;
|
|
16
|
+
/** Required, 1–255 characters, new for each option you mean to add: a retry with the same key never adds twice. */
|
|
17
|
+
"Idempotency-Key": string;
|
|
18
|
+
name: string;
|
|
19
|
+
sku?: string | null;
|
|
20
|
+
weight?: number | null;
|
|
21
|
+
weight_unit?: StoreVariantRequest.WeightUnit | null;
|
|
22
|
+
length?: number | null;
|
|
23
|
+
width?: number | null;
|
|
24
|
+
height?: number | null;
|
|
25
|
+
dimension_unit?: StoreVariantRequest.DimensionUnit | null;
|
|
26
|
+
price: number;
|
|
27
|
+
compare_at_price?: number | null;
|
|
28
|
+
unit: FiveOneEat.Unit;
|
|
29
|
+
quantity_step: number;
|
|
30
|
+
tracks_inventory?: boolean;
|
|
31
|
+
allow_backorder?: boolean;
|
|
32
|
+
starting_stock?: StoreVariantRequest.StartingStock.Item[];
|
|
33
|
+
}
|
|
34
|
+
export declare namespace StoreVariantRequest {
|
|
35
|
+
const WeightUnit: {
|
|
36
|
+
readonly Oz: "oz";
|
|
37
|
+
readonly Lb: "lb";
|
|
38
|
+
readonly G: "g";
|
|
39
|
+
readonly Kg: "kg";
|
|
40
|
+
};
|
|
41
|
+
type WeightUnit = (typeof WeightUnit)[keyof typeof WeightUnit];
|
|
42
|
+
const DimensionUnit: {
|
|
43
|
+
readonly In: "in";
|
|
44
|
+
readonly Cm: "cm";
|
|
45
|
+
};
|
|
46
|
+
type DimensionUnit = (typeof DimensionUnit)[keyof typeof DimensionUnit];
|
|
47
|
+
type StartingStock = StartingStock.Item[];
|
|
48
|
+
namespace StartingStock {
|
|
49
|
+
interface Item {
|
|
50
|
+
location_id: string;
|
|
51
|
+
count: number;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.StoreVariantRequest = void 0;
|
|
5
|
+
var StoreVariantRequest;
|
|
6
|
+
(function (StoreVariantRequest) {
|
|
7
|
+
StoreVariantRequest.WeightUnit = {
|
|
8
|
+
Oz: "oz",
|
|
9
|
+
Lb: "lb",
|
|
10
|
+
G: "g",
|
|
11
|
+
Kg: "kg",
|
|
12
|
+
};
|
|
13
|
+
StoreVariantRequest.DimensionUnit = {
|
|
14
|
+
In: "in",
|
|
15
|
+
Cm: "cm",
|
|
16
|
+
};
|
|
17
|
+
})(StoreVariantRequest || (exports.StoreVariantRequest = StoreVariantRequest = {}));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* product: "product",
|
|
6
|
+
* variant: "variant",
|
|
7
|
+
* name: "name",
|
|
8
|
+
* price: 1.1,
|
|
9
|
+
* unit: "each",
|
|
10
|
+
* quantity_step: 1
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface UpdateVariantRequest {
|
|
14
|
+
/** The product ID */
|
|
15
|
+
product: string;
|
|
16
|
+
/** The variant ID */
|
|
17
|
+
variant: string;
|
|
18
|
+
name: string;
|
|
19
|
+
sku?: string | null;
|
|
20
|
+
weight?: number | null;
|
|
21
|
+
weight_unit?: UpdateVariantRequest.WeightUnit | null;
|
|
22
|
+
length?: number | null;
|
|
23
|
+
width?: number | null;
|
|
24
|
+
height?: number | null;
|
|
25
|
+
dimension_unit?: UpdateVariantRequest.DimensionUnit | null;
|
|
26
|
+
price: number;
|
|
27
|
+
compare_at_price?: number | null;
|
|
28
|
+
unit: FiveOneEat.Unit;
|
|
29
|
+
quantity_step: number;
|
|
30
|
+
tracks_inventory?: boolean;
|
|
31
|
+
allow_backorder?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace UpdateVariantRequest {
|
|
34
|
+
const WeightUnit: {
|
|
35
|
+
readonly Oz: "oz";
|
|
36
|
+
readonly Lb: "lb";
|
|
37
|
+
readonly G: "g";
|
|
38
|
+
readonly Kg: "kg";
|
|
39
|
+
};
|
|
40
|
+
type WeightUnit = (typeof WeightUnit)[keyof typeof WeightUnit];
|
|
41
|
+
const DimensionUnit: {
|
|
42
|
+
readonly In: "in";
|
|
43
|
+
readonly Cm: "cm";
|
|
44
|
+
};
|
|
45
|
+
type DimensionUnit = (typeof DimensionUnit)[keyof typeof DimensionUnit];
|
|
46
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UpdateVariantRequest = void 0;
|
|
5
|
+
var UpdateVariantRequest;
|
|
6
|
+
(function (UpdateVariantRequest) {
|
|
7
|
+
UpdateVariantRequest.WeightUnit = {
|
|
8
|
+
Oz: "oz",
|
|
9
|
+
Lb: "lb",
|
|
10
|
+
G: "g",
|
|
11
|
+
Kg: "kg",
|
|
12
|
+
};
|
|
13
|
+
UpdateVariantRequest.DimensionUnit = {
|
|
14
|
+
In: "in",
|
|
15
|
+
Cm: "cm",
|
|
16
|
+
};
|
|
17
|
+
})(UpdateVariantRequest || (exports.UpdateVariantRequest = UpdateVariantRequest = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { ArchiveVariantsRequest } from "./ArchiveVariantsRequest.js";
|
|
2
|
+
export type { DeleteVariantsRequest } from "./DeleteVariantsRequest.js";
|
|
3
|
+
export type { GetVariantsRequest } from "./GetVariantsRequest.js";
|
|
4
|
+
export type { ListVariantsRequest } from "./ListVariantsRequest.js";
|
|
5
|
+
export type { SetVariantPriceRequest } from "./SetVariantPriceRequest.js";
|
|
6
|
+
export { StoreVariantRequest } from "./StoreVariantRequest.js";
|
|
7
|
+
export { UpdateVariantRequest } from "./UpdateVariantRequest.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVariantRequest = exports.StoreVariantRequest = void 0;
|
|
4
|
+
var StoreVariantRequest_js_1 = require("./StoreVariantRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "StoreVariantRequest", { enumerable: true, get: function () { return StoreVariantRequest_js_1.StoreVariantRequest; } });
|
|
6
|
+
var UpdateVariantRequest_js_1 = require("./UpdateVariantRequest.js");
|
|
7
|
+
Object.defineProperty(exports, "UpdateVariantRequest", { enumerable: true, get: function () { return UpdateVariantRequest_js_1.UpdateVariantRequest; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.VariantsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "VariantsClient", { enumerable: true, get: function () { return Client_js_1.VariantsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./ArchiveVariantsResponse.js";
|
|
2
|
+
export * from "./CreateVariantsResponse.js";
|
|
3
|
+
export * from "./GetVariantsResponse.js";
|
|
4
|
+
export * from "./ListVariantsResponse.js";
|
|
5
|
+
export * from "./SetPriceVariantsResponse.js";
|
|
6
|
+
export * from "./UpdateVariantsResponse.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ArchiveVariantsResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./CreateVariantsResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./GetVariantsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./ListVariantsResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./SetPriceVariantsResponse.js"), exports);
|
|
22
|
+
__exportStar(require("./UpdateVariantsResponse.js"), exports);
|
|
@@ -12,11 +12,15 @@ export declare class LinesClient {
|
|
|
12
12
|
constructor(options?: LinesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Puts a variant in the cart, or adds to its line when it's there. The
|
|
15
|
-
* variant has to be the business's
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
15
|
+
* variant has to be the business's and for sale. An in-person cart takes
|
|
16
|
+
* what its stand sells. An online cart takes what any of the business's
|
|
17
|
+
* locations offers for pickup: when the cart's own store doesn't, a cart
|
|
18
|
+
* with items keeps its store and the line comes back with `offered_here`
|
|
19
|
+
* false (the quote blocks it until the buyer removes it or switches to a
|
|
20
|
+
* store that offers it), and a cart with no items drops its store, so
|
|
21
|
+
* `location` is null and the buyer chooses one. The quantity is in the
|
|
22
|
+
* variant's unit, a whole number of its `quantity_step`, from 1 to 1000
|
|
23
|
+
* steps. Answers with the cart.
|
|
20
24
|
*
|
|
21
25
|
* @param {FiveOneEat.commerce.carts.CartLineRequest} request
|
|
22
26
|
* @param {LinesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -68,11 +68,15 @@ class LinesClient {
|
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Puts a variant in the cart, or adds to its line when it's there. The
|
|
71
|
-
* variant has to be the business's
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
71
|
+
* variant has to be the business's and for sale. An in-person cart takes
|
|
72
|
+
* what its stand sells. An online cart takes what any of the business's
|
|
73
|
+
* locations offers for pickup: when the cart's own store doesn't, a cart
|
|
74
|
+
* with items keeps its store and the line comes back with `offered_here`
|
|
75
|
+
* false (the quote blocks it until the buyer removes it or switches to a
|
|
76
|
+
* store that offers it), and a cart with no items drops its store, so
|
|
77
|
+
* `location` is null and the buyer chooses one. The quantity is in the
|
|
78
|
+
* variant's unit, a whole number of its `quantity_step`, from 1 to 1000
|
|
79
|
+
* steps. Answers with the cart.
|
|
76
80
|
*
|
|
77
81
|
* @param {FiveOneEat.commerce.carts.CartLineRequest} request
|
|
78
82
|
* @param {LinesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -2,13 +2,30 @@ export interface BusinessCommerceLocation {
|
|
|
2
2
|
id: string;
|
|
3
3
|
/** `store` or `stand`. */
|
|
4
4
|
kind: BusinessCommerceLocation.Kind;
|
|
5
|
-
name: string;
|
|
6
5
|
/** True for the business's main store only. */
|
|
7
6
|
is_main: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
name: string;
|
|
8
|
+
/** Null for the main store, which reads the business's address. */
|
|
9
|
+
address: string | null;
|
|
10
|
+
city: string | null;
|
|
11
|
+
state: string | null;
|
|
12
|
+
zipcode: string | null;
|
|
13
|
+
/** The address on one line; null for the main store, which shows the business's. */
|
|
14
|
+
address_line: string | null;
|
|
15
|
+
notes: string | null;
|
|
16
|
+
offers_pickup: boolean;
|
|
17
|
+
always_open: boolean;
|
|
10
18
|
/** False when the owner switched it off. */
|
|
11
19
|
is_active: boolean;
|
|
20
|
+
archived_at: string | null;
|
|
21
|
+
/** Null until a stand's flyer job has run. */
|
|
22
|
+
flyer_path: string | null;
|
|
23
|
+
/** Open pickup orders still to come, listed before it's switched off or archived (51EAT-283). */
|
|
24
|
+
affected_orders: BusinessCommerceLocation.AffectedOrders.Item[];
|
|
25
|
+
/** Why it can't sell yet; null when it can, is switched off or is archived. */
|
|
26
|
+
blocker: BusinessCommerceLocation.Blocker | null;
|
|
27
|
+
/** Whether the location keeps stock; only these take a stock count. */
|
|
28
|
+
holds_stock: boolean;
|
|
12
29
|
/** An archived location takes no new orders or stock changes, but its orders stay. */
|
|
13
30
|
archived: boolean;
|
|
14
31
|
}
|
|
@@ -19,4 +36,21 @@ export declare namespace BusinessCommerceLocation {
|
|
|
19
36
|
readonly Stand: "stand";
|
|
20
37
|
};
|
|
21
38
|
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
39
|
+
type AffectedOrders = AffectedOrders.Item[];
|
|
40
|
+
namespace AffectedOrders {
|
|
41
|
+
interface Item {
|
|
42
|
+
id: string;
|
|
43
|
+
number: number | null;
|
|
44
|
+
buyer_name: string | null;
|
|
45
|
+
pickup_at: string;
|
|
46
|
+
url: string;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Why it can't sell yet; null when it can, is switched off or is archived.
|
|
51
|
+
*/
|
|
52
|
+
interface Blocker {
|
|
53
|
+
reason: string;
|
|
54
|
+
message: string;
|
|
55
|
+
}
|
|
22
56
|
}
|
|
@@ -19,6 +19,8 @@ export interface BusinessEvent {
|
|
|
19
19
|
ticket_sales_enabled: boolean;
|
|
20
20
|
is_published: boolean;
|
|
21
21
|
published_at: string | null;
|
|
22
|
+
/** When the organizer cancelled the event; null while it's on. */
|
|
23
|
+
cancelled_at: string | null;
|
|
22
24
|
sort_order: number;
|
|
23
25
|
image?: string | undefined;
|
|
24
26
|
ticket_types?: FiveOneEat.BusinessEventTicketType[] | undefined;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface BusinessLocation {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: BusinessLocation.Kind;
|
|
4
|
+
/** The store at the business's own address. */
|
|
5
|
+
is_main: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
/** Null for the main store, which reads the business's address. */
|
|
8
|
+
address: string | null;
|
|
9
|
+
city: string | null;
|
|
10
|
+
state: string | null;
|
|
11
|
+
zipcode: string | null;
|
|
12
|
+
/** The address on one line; null for the main store, which shows the business's. */
|
|
13
|
+
address_line: string | null;
|
|
14
|
+
notes: string | null;
|
|
15
|
+
offers_pickup: boolean;
|
|
16
|
+
always_open: boolean;
|
|
17
|
+
/** Switched on. */
|
|
18
|
+
is_active: boolean;
|
|
19
|
+
archived_at: string | null;
|
|
20
|
+
/** Null until a stand's flyer job has run. */
|
|
21
|
+
flyer_path: string | null;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace BusinessLocation {
|
|
24
|
+
const Kind: {
|
|
25
|
+
readonly Store: "store";
|
|
26
|
+
readonly Stand: "stand";
|
|
27
|
+
};
|
|
28
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BusinessLocation = void 0;
|
|
5
|
+
var BusinessLocation;
|
|
6
|
+
(function (BusinessLocation) {
|
|
7
|
+
BusinessLocation.Kind = {
|
|
8
|
+
Store: "store",
|
|
9
|
+
Stand: "stand",
|
|
10
|
+
};
|
|
11
|
+
})(BusinessLocation || (exports.BusinessLocation = BusinessLocation = {}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface BusinessLocationDetails {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: BusinessLocationDetails.Kind;
|
|
4
|
+
/** The store at the business's own address. */
|
|
5
|
+
is_main: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
/** Null for the main store, which reads the business's address. */
|
|
8
|
+
address: string | null;
|
|
9
|
+
city: string | null;
|
|
10
|
+
state: string | null;
|
|
11
|
+
zipcode: string | null;
|
|
12
|
+
/** The address on one line; null for the main store, which shows the business's. */
|
|
13
|
+
address_line: string | null;
|
|
14
|
+
notes: string | null;
|
|
15
|
+
offers_pickup: boolean;
|
|
16
|
+
always_open: boolean;
|
|
17
|
+
/** Switched on. */
|
|
18
|
+
is_active: boolean;
|
|
19
|
+
archived_at: string | null;
|
|
20
|
+
/** Null until a stand's flyer job has run. */
|
|
21
|
+
flyer_path: string | null;
|
|
22
|
+
latitude: number | null;
|
|
23
|
+
longitude: number | null;
|
|
24
|
+
country: string | null;
|
|
25
|
+
/** Null for the main store, which reads the business's. */
|
|
26
|
+
phone: string | null;
|
|
27
|
+
/** Null for the main store, which reads the business's. */
|
|
28
|
+
timezone: string | null;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace BusinessLocationDetails {
|
|
31
|
+
const Kind: {
|
|
32
|
+
readonly Store: "store";
|
|
33
|
+
readonly Stand: "stand";
|
|
34
|
+
};
|
|
35
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BusinessLocationDetails = void 0;
|
|
5
|
+
var BusinessLocationDetails;
|
|
6
|
+
(function (BusinessLocationDetails) {
|
|
7
|
+
BusinessLocationDetails.Kind = {
|
|
8
|
+
Store: "store",
|
|
9
|
+
Stand: "stand",
|
|
10
|
+
};
|
|
11
|
+
})(BusinessLocationDetails || (exports.BusinessLocationDetails = BusinessLocationDetails = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface BusinessLocationHourException {
|
|
2
|
+
id: string;
|
|
3
|
+
/** `Y-m-d` */
|
|
4
|
+
starts_on: string;
|
|
5
|
+
/** `Y-m-d` */
|
|
6
|
+
ends_on: string | null;
|
|
7
|
+
is_closed: boolean;
|
|
8
|
+
/** `H:i`, when open */
|
|
9
|
+
opens_at: string | null;
|
|
10
|
+
/** `H:i`, when open */
|
|
11
|
+
closes_at: string | null;
|
|
12
|
+
label: string | null;
|
|
13
|
+
message: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.js";
|
|
2
|
+
export interface BusinessLocationOpeningHours {
|
|
3
|
+
location: BusinessLocationOpeningHours.Location;
|
|
4
|
+
/** The weekly slots, by day and order; send them back as they are, changed. */
|
|
5
|
+
slots: FiveOneEat.BusinessOpeningHourSlot[];
|
|
6
|
+
/** By first day. */
|
|
7
|
+
exceptions: FiveOneEat.BusinessLocationHourException[];
|
|
8
|
+
is_open_now: boolean;
|
|
9
|
+
next_open_at: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace BusinessLocationOpeningHours {
|
|
12
|
+
interface Location {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
timezone: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.js";
|
|
2
|
+
export interface BusinessLocationPickup {
|
|
3
|
+
location: BusinessLocationPickup.Location;
|
|
4
|
+
schedule: FiveOneEat.BusinessPickupSchedule;
|
|
5
|
+
/** A stand's pickup comes with Pro (51EAT-273). */
|
|
6
|
+
can_offer_pickup: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace BusinessLocationPickup {
|
|
9
|
+
interface Location {
|
|
10
|
+
id: string;
|
|
11
|
+
kind: Location.Kind;
|
|
12
|
+
is_main: boolean;
|
|
13
|
+
name: string;
|
|
14
|
+
timezone: string;
|
|
15
|
+
/** `pickup_instructions` is public, so a hidden address must not be typed into it. */
|
|
16
|
+
address_is_private: boolean;
|
|
17
|
+
}
|
|
18
|
+
namespace Location {
|
|
19
|
+
const Kind: {
|
|
20
|
+
readonly Store: "store";
|
|
21
|
+
readonly Stand: "stand";
|
|
22
|
+
};
|
|
23
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BusinessLocationPickup = void 0;
|
|
5
|
+
var BusinessLocationPickup;
|
|
6
|
+
(function (BusinessLocationPickup) {
|
|
7
|
+
let Location;
|
|
8
|
+
(function (Location) {
|
|
9
|
+
Location.Kind = {
|
|
10
|
+
Store: "store",
|
|
11
|
+
Stand: "stand",
|
|
12
|
+
};
|
|
13
|
+
})(Location = BusinessLocationPickup.Location || (BusinessLocationPickup.Location = {}));
|
|
14
|
+
})(BusinessLocationPickup || (exports.BusinessLocationPickup = BusinessLocationPickup = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface BusinessOpeningHourSlot {
|
|
2
|
+
/** 0 is Sunday. */
|
|
3
|
+
day_of_week: number;
|
|
4
|
+
/** `H:i` */
|
|
5
|
+
opens_at: string;
|
|
6
|
+
/** `H:i`, earlier than `opens_at` when it closes after midnight */
|
|
7
|
+
closes_at: string;
|
|
8
|
+
label: string | null;
|
|
9
|
+
sort_order: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.js";
|
|
2
|
+
export interface BusinessPickupSchedule {
|
|
3
|
+
offers_pickup: boolean;
|
|
4
|
+
pickup_instructions: string | null;
|
|
5
|
+
preparation_minutes: number;
|
|
6
|
+
same_day_cutoff: string | null;
|
|
7
|
+
pickup_slot_minutes: number;
|
|
8
|
+
windows: FiveOneEat.BusinessPickupWindow[];
|
|
9
|
+
exceptions: FiveOneEat.BusinessLocationHourException[];
|
|
10
|
+
}
|