@fire-spark/storefront 0.10.0 → 0.11.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/index.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthConfigureOptions, CARD_BRANDS, CardBrand, CardBrandSpec, CardCvcError, CardExpiry, CardExpiryError, CardNumberError, CardPreviewSlot, CardholderNameError, CreateOrderOptions, CreateSessionOptions, CustomizationPath, CustomizationSession, DEFAULT_RECOMMENDATION_TYPES, DeunaCallbackUrls, DeunaOrderStatus, ExchangeOptions, FlatMenuCategory, FlatMenuCategory as FlatMenuCategory$1, GenOrderIdOptions, GroupDisplayType, ID_HASH_FORMATS, IdBuilder, IdHashFormat, ListMenusStreamOptions, ListPaymentsOptions, Menu, MenuCategoryNode, MenuCategoryNode as MenuCategoryNode$1, MenuLookup, MilestoneSteps, MilestoneTrackItem, ModifierControlType, ModifierCtx, ModifierGroupCtx, NestedMenuCategory, Order, OrderCustomerSource, OrderDeviceCredential, OrderDraft, OrderIssue, OrderIssueCode, OrderLineDiff, OrderLineIssue, OrderLineIssueCode, OrderPaymentRequiredError, OrderScope, OrderSyncPendingError, OrderSyncRejectedError, OrderValidationError, OrderValidationResult, PayIntentOptions, PayIntentResult, PaymentCardBrand, PaymentProgressEvent, PricingModifier, Product, ProductCtx, QuantitiesByPath, RecommendationType, ReorderOrderOptions, ResetOptions, ScheduleWindow, SelectionStatus, SelectionsByPath, SerializedError, ServiceHttpOptions, Snapshot, StorefrontAccessToken as AccessToken, StorefrontErrorDetails, StorefrontHttpError, TrackWorkflow, ValidateOptions, ValidateOrderAgainstMenuInput, VariantGroupCtx, VariantOptionCtx, VariantSelection, VisitedState, addLines, auth, buildCustomerSnapshot, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, createDeunaWidgetApi, createSession, currentNodes, cvcMaxLength, detectCardBrand, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCvcComplete, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, selectablePayments, serializeError, services, setLineQuantity, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, visitedStates } from "@fire-spark/core";
|
|
1
|
+
import { AuthConfigureOptions, CARD_BRANDS, CardBrand, CardBrandSpec, CardCvcError, CardExpiry, CardExpiryError, CardNumberError, CardPreviewSlot, CardholderNameError, CreateOrderOptions, CreateSessionOptions, CustomizationPath, CustomizationSession, DEFAULT_RECOMMENDATION_TYPES, DeunaCallbackUrls, DeunaOrderStatus, ExchangeOptions, FlatMenuCategory, FlatMenuCategory as FlatMenuCategory$1, GenOrderIdOptions, GroupDisplayType, ID_HASH_FORMATS, IdBuilder, IdHashFormat, ListMenusStreamOptions, ListPaymentsOptions, Menu, MenuCategoryNode, MenuCategoryNode as MenuCategoryNode$1, MenuLookup, MilestoneSteps, MilestoneTrackItem, ModifierControlType, ModifierCtx, ModifierGroupCtx, NestedMenuCategory, Order, OrderCancelInput, OrderCancelOptions, OrderCancelResult, OrderCancelType, OrderCustomerSource, OrderDeviceCredential, OrderDraft, OrderIssue, OrderIssueCode, OrderLineDiff, OrderLineIssue, OrderLineIssueCode, OrderPaymentRequiredError, OrderScope, OrderSyncPendingError, OrderSyncRejectedError, OrderValidationError, OrderValidationResult, PayIntentOptions, PayIntentResult, PaymentCardBrand, PaymentProgressEvent, PricingModifier, Product, ProductCtx, QuantitiesByPath, RecommendationType, ReorderOrderOptions, ResetOptions, ScheduleWindow, SelectionStatus, SelectionsByPath, SerializedError, ServiceHttpOptions, Snapshot, StorefrontAccessToken as AccessToken, StorefrontErrorDetails, StorefrontHttpError, TrackWorkflow, ValidateOptions, ValidateOrderAgainstMenuInput, VariantGroupCtx, VariantOptionCtx, VariantSelection, VisitedState, addLines, auth, buildCustomerSnapshot, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, createDeunaWidgetApi, createSession, currentNodes, cvcMaxLength, detectCardBrand, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCvcComplete, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, selectablePayments, serializeError, services, setLineQuantity, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, visitedStates } from "@fire-spark/core";
|
|
2
2
|
import { AddressInfo, BillingInfo, BillingProfile, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DeliveryAddress, Fulfillment, FulfillmentListInput, KioskAdminGesture, KioskCommandPayload, KioskCommandType, KioskConfigChangedPayload, KioskDeviceConfig, KioskDeviceConfigPayment, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskRealtimeToken, MerchantPayment, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderInsertInput, OrderLine, OrderListInput, OrderReorderInput, OrderTotals, OrderUpdateInput, Payment, PaymentIntent, PaymentIntentInput, PaymentMethod, PaymentProvider, PaymentStatus, PaymentTender, PlaceOrderResult, PosActorKind, PosCashBreakdownItem, PosCatalog, PosDeviceOverrides, PosErrorCode, PosFloor, PosFloorChangedPayload, PosFloorElement, PosFloorLayout, PosFloorOccupancy, PosFloorPlan, PosFloorRealtimeToken, PosFloorTable, PosHealthBatchInput, PosHealthBatchResult, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PosReservationHold, PosReservationHoldStatus, PosStaff, PosTableAttachOrderInput, PosTableCloseInput, PosTableJoinInput, PosTableSeatInput, PosTableSeatReservationInput, PosTableSession, PosTableSessionOrder, PosTableSessionStatus, PosTableSplitInput, SdkLogContext, SdkLogEntry, SdkLogErrorInfo, SdkLogLevel, SdkLogOptions, Store, StoreAvailabilityFilters, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontAvailabilityRule, StorefrontMenu as ServerMenu, StorefrontMenuScope as MenuScope, StorefrontPaymentsListInput, StorefrontPreferences, StorefrontPreferencesInput } from "@fire-spark/types";
|
|
3
3
|
//#region src/menuRows.d.ts
|
|
4
4
|
type MenuListRow<P, C extends MenuCategoryNode$1 = MenuCategoryNode$1> = {
|
|
@@ -31,4 +31,4 @@ declare const menuRowKey: <P>(row: MenuListRow<P>) => string;
|
|
|
31
31
|
declare const menuRowType: <P>(row: MenuListRow<P>) => "empty" | "header" | "product";
|
|
32
32
|
declare const spanMenuRow: <P>(layout: MenuRowSpanLayout, row: MenuListRow<P>, _index: number, maxColumns: number) => void;
|
|
33
33
|
//#endregion
|
|
34
|
-
export { type AccessToken, type AddressInfo, type AuthConfigureOptions, type BillingInfo, type BillingProfile, CARD_BRANDS, type CardBrand, type CardBrandSpec, type CardCvcError, type CardExpiry, type CardExpiryError, type CardNumberError, type CardPreviewSlot, type CardholderNameError, type CheckoutMode, type CheckoutResolved, type CmsBlock, type CmsBlockItem, type CreateOrderOptions, type CreateSessionOptions, type Customer, type CustomerGender, type CustomerIdentifyInput, type CustomerRegisterInput, type CustomerUpdateInput, type CustomizationPath, type CustomizationSession, DEFAULT_RECOMMENDATION_TYPES, type DeliveryAddress, type DeunaCallbackUrls, type DeunaOrderStatus, type ExchangeOptions, type FlatMenuCategory, type Fulfillment, type FulfillmentListInput, type GenOrderIdOptions, type GroupDisplayType, ID_HASH_FORMATS, type IdBuilder, type IdHashFormat, type KioskAdminGesture, type KioskCommandPayload, type KioskCommandType, type KioskConfigChangedPayload, type KioskDeviceConfig, type KioskDeviceConfigPayment, type KioskDeviceOverrides, type KioskDevicePaymentSettings, type KioskHealthBatchInput, type KioskHealthBatchResult, type KioskHealthSample, type KioskHeartbeatHealth, type KioskHeartbeatInput, type KioskHeartbeatResult, type KioskOrderPager, type KioskPagerSide, type KioskPagersOverrides, type KioskPagersSettings, type KioskRealtimeToken, type ListMenusStreamOptions, type ListPaymentsOptions, type Menu, type MenuCategoryNode, type MenuListRow, type MenuLookup, type MenuRowSpanLayout, type MenuScope, type MerchantPayment, type MilestoneSteps, type MilestoneTrackItem, type ModifierControlType, type ModifierCtx, type ModifierGroupCtx, type NestedMenuCategory, Order, type OrderCustomerSource, type OrderDeviceCredential, type OrderDeviceKind, type OrderDeviceListInput, type OrderDeviceListResult, type OrderDraft, type OrderFulfillment, type OrderInsertInput, type OrderIssue, type OrderIssueCode, type OrderLine, type OrderLineDiff, type OrderLineIssue, type OrderLineIssueCode, type OrderListInput, OrderPaymentRequiredError, type OrderReorderInput, type OrderScope, OrderSyncPendingError, OrderSyncRejectedError, type OrderTotals, type OrderUpdateInput, OrderValidationError, type OrderValidationResult, type PayIntentOptions, type PayIntentResult, type Payment, type PaymentCardBrand, type PaymentIntent, type PaymentIntentInput, type PaymentMethod, type PaymentProgressEvent, type PaymentProvider, type PaymentStatus, type PaymentTender, type PlaceOrderResult, type PosActorKind, type PosCashBreakdownItem, type PosCatalog, type PosDeviceOverrides, type PosErrorCode, type PosFloor, type PosFloorChangedPayload, type PosFloorElement, type PosFloorLayout, type PosFloorOccupancy, type PosFloorPlan, type PosFloorRealtimeToken, type PosFloorTable, type PosHealthBatchInput, type PosHealthBatchResult, type PosHeartbeatInput, type PosHeartbeatResult, type PosKioskOrder, type PosKioskSettleInput, type PosKioskSettleResult, type PosOrderInput, type PosOrderResult, type PosReservationHold, type PosReservationHoldStatus, type PosStaff, type PosTableAttachOrderInput, type PosTableCloseInput, type PosTableJoinInput, type PosTableSeatInput, type PosTableSeatReservationInput, type PosTableSession, type PosTableSessionOrder, type PosTableSessionStatus, type PosTableSplitInput, type PricingModifier, type Product, type ProductCtx, type QuantitiesByPath, type RecommendationType, type ReorderOrderOptions, type ResetOptions, type ScheduleWindow, type SdkLogContext, type SdkLogEntry, type SdkLogErrorInfo, type SdkLogLevel, type SdkLogOptions, type SelectionStatus, type SelectionsByPath, type SerializedError, type ServerMenu, type ServiceHttpOptions, type Snapshot, type Store, type StoreAvailabilityFilters, type StoreGetInput, type StoreListInput, type StoreNearbyInput, type StorefrontAvailability, type StorefrontAvailabilityRule, type StorefrontErrorDetails, StorefrontHttpError, type StorefrontPaymentsListInput, type StorefrontPreferences, type StorefrontPreferencesInput, type TrackWorkflow, type ValidateOptions, type ValidateOrderAgainstMenuInput, type VariantGroupCtx, type VariantOptionCtx, type VariantSelection, type VisitedState, addLines, auth, buildCustomerSnapshot, buildMenuRows, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, createDeunaWidgetApi, createSession, currentNodes, cvcMaxLength, detectCardBrand, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCvcComplete, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, menuRowKey, menuRowType, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, selectablePayments, serializeError, services, setLineQuantity, spanMenuRow, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, visitedStates };
|
|
34
|
+
export { type AccessToken, type AddressInfo, type AuthConfigureOptions, type BillingInfo, type BillingProfile, CARD_BRANDS, type CardBrand, type CardBrandSpec, type CardCvcError, type CardExpiry, type CardExpiryError, type CardNumberError, type CardPreviewSlot, type CardholderNameError, type CheckoutMode, type CheckoutResolved, type CmsBlock, type CmsBlockItem, type CreateOrderOptions, type CreateSessionOptions, type Customer, type CustomerGender, type CustomerIdentifyInput, type CustomerRegisterInput, type CustomerUpdateInput, type CustomizationPath, type CustomizationSession, DEFAULT_RECOMMENDATION_TYPES, type DeliveryAddress, type DeunaCallbackUrls, type DeunaOrderStatus, type ExchangeOptions, type FlatMenuCategory, type Fulfillment, type FulfillmentListInput, type GenOrderIdOptions, type GroupDisplayType, ID_HASH_FORMATS, type IdBuilder, type IdHashFormat, type KioskAdminGesture, type KioskCommandPayload, type KioskCommandType, type KioskConfigChangedPayload, type KioskDeviceConfig, type KioskDeviceConfigPayment, type KioskDeviceOverrides, type KioskDevicePaymentSettings, type KioskHealthBatchInput, type KioskHealthBatchResult, type KioskHealthSample, type KioskHeartbeatHealth, type KioskHeartbeatInput, type KioskHeartbeatResult, type KioskOrderPager, type KioskPagerSide, type KioskPagersOverrides, type KioskPagersSettings, type KioskRealtimeToken, type ListMenusStreamOptions, type ListPaymentsOptions, type Menu, type MenuCategoryNode, type MenuListRow, type MenuLookup, type MenuRowSpanLayout, type MenuScope, type MerchantPayment, type MilestoneSteps, type MilestoneTrackItem, type ModifierControlType, type ModifierCtx, type ModifierGroupCtx, type NestedMenuCategory, Order, type OrderCancelInput, type OrderCancelOptions, type OrderCancelResult, type OrderCancelType, type OrderCustomerSource, type OrderDeviceCredential, type OrderDeviceKind, type OrderDeviceListInput, type OrderDeviceListResult, type OrderDraft, type OrderFulfillment, type OrderInsertInput, type OrderIssue, type OrderIssueCode, type OrderLine, type OrderLineDiff, type OrderLineIssue, type OrderLineIssueCode, type OrderListInput, OrderPaymentRequiredError, type OrderReorderInput, type OrderScope, OrderSyncPendingError, OrderSyncRejectedError, type OrderTotals, type OrderUpdateInput, OrderValidationError, type OrderValidationResult, type PayIntentOptions, type PayIntentResult, type Payment, type PaymentCardBrand, type PaymentIntent, type PaymentIntentInput, type PaymentMethod, type PaymentProgressEvent, type PaymentProvider, type PaymentStatus, type PaymentTender, type PlaceOrderResult, type PosActorKind, type PosCashBreakdownItem, type PosCatalog, type PosDeviceOverrides, type PosErrorCode, type PosFloor, type PosFloorChangedPayload, type PosFloorElement, type PosFloorLayout, type PosFloorOccupancy, type PosFloorPlan, type PosFloorRealtimeToken, type PosFloorTable, type PosHealthBatchInput, type PosHealthBatchResult, type PosHeartbeatInput, type PosHeartbeatResult, type PosKioskOrder, type PosKioskSettleInput, type PosKioskSettleResult, type PosOrderInput, type PosOrderResult, type PosReservationHold, type PosReservationHoldStatus, type PosStaff, type PosTableAttachOrderInput, type PosTableCloseInput, type PosTableJoinInput, type PosTableSeatInput, type PosTableSeatReservationInput, type PosTableSession, type PosTableSessionOrder, type PosTableSessionStatus, type PosTableSplitInput, type PricingModifier, type Product, type ProductCtx, type QuantitiesByPath, type RecommendationType, type ReorderOrderOptions, type ResetOptions, type ScheduleWindow, type SdkLogContext, type SdkLogEntry, type SdkLogErrorInfo, type SdkLogLevel, type SdkLogOptions, type SelectionStatus, type SelectionsByPath, type SerializedError, type ServerMenu, type ServiceHttpOptions, type Snapshot, type Store, type StoreAvailabilityFilters, type StoreGetInput, type StoreListInput, type StoreNearbyInput, type StorefrontAvailability, type StorefrontAvailabilityRule, type StorefrontErrorDetails, StorefrontHttpError, type StorefrontPaymentsListInput, type StorefrontPreferences, type StorefrontPreferencesInput, type TrackWorkflow, type ValidateOptions, type ValidateOrderAgainstMenuInput, type VariantGroupCtx, type VariantOptionCtx, type VariantSelection, type VisitedState, addLines, auth, buildCustomerSnapshot, buildMenuRows, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, createDeunaWidgetApi, createSession, currentNodes, cvcMaxLength, detectCardBrand, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCvcComplete, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, menuRowKey, menuRowType, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, selectablePayments, serializeError, services, setLineQuantity, spanMenuRow, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, visitedStates };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fire-spark/storefront",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Fire Spark storefront SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fire-spark/core": "^0.
|
|
21
|
-
"@fire-spark/types": "^0.
|
|
20
|
+
"@fire-spark/core": "^0.11.0",
|
|
21
|
+
"@fire-spark/types": "^0.11.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"tsdown": "^0.22.14",
|