@fire-spark/types 0.8.3 → 0.9.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 +31 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -912,6 +912,15 @@ type OrderFulfillment = {
|
|
|
912
912
|
status?: string | undefined;
|
|
913
913
|
message: string;
|
|
914
914
|
} | null;
|
|
915
|
+
device_reversal: {
|
|
916
|
+
pending: {
|
|
917
|
+
tender_id: string;
|
|
918
|
+
payment_id: string;
|
|
919
|
+
attempt_reference: string;
|
|
920
|
+
amount: number;
|
|
921
|
+
currency: string;
|
|
922
|
+
}[];
|
|
923
|
+
} | null;
|
|
915
924
|
customer_id: string;
|
|
916
925
|
payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
917
926
|
fulfillment_status: string;
|
|
@@ -1617,6 +1626,21 @@ interface OrderChangedError {
|
|
|
1617
1626
|
status?: string;
|
|
1618
1627
|
message: string;
|
|
1619
1628
|
}
|
|
1629
|
+
/** A tender the charging device must void (CliSiTef pinpad and the like). */
|
|
1630
|
+
interface OrderChangedDeviceReversalTender {
|
|
1631
|
+
tender_id: string;
|
|
1632
|
+
payment_id: string;
|
|
1633
|
+
attempt_reference: string;
|
|
1634
|
+
amount: number;
|
|
1635
|
+
currency: string;
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Tenders the device must still void after a failed checkout; `pending`
|
|
1639
|
+
* empties once the server recorded every void.
|
|
1640
|
+
*/
|
|
1641
|
+
interface OrderChangedDeviceReversal {
|
|
1642
|
+
pending: OrderChangedDeviceReversalTender[];
|
|
1643
|
+
}
|
|
1620
1644
|
/** Broadcast payload for `order.changed` (and snapshot mapped to this shape). */
|
|
1621
1645
|
interface OrderChangedPayload {
|
|
1622
1646
|
order_id: string;
|
|
@@ -1630,6 +1654,8 @@ interface OrderChangedPayload {
|
|
|
1630
1654
|
entered_node_ids: string[];
|
|
1631
1655
|
callbacks: OrderChangedCallback[];
|
|
1632
1656
|
error: OrderChangedError | null;
|
|
1657
|
+
/** `null` unless checkout failed; absent from servers that predate it. */
|
|
1658
|
+
device_reversal?: OrderChangedDeviceReversal | null;
|
|
1633
1659
|
emitted_at: string;
|
|
1634
1660
|
}
|
|
1635
1661
|
//#endregion
|
|
@@ -2198,7 +2224,7 @@ type Order = {
|
|
|
2198
2224
|
metadata: Record<string, unknown>;
|
|
2199
2225
|
payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
2200
2226
|
fulfillment_status: string;
|
|
2201
|
-
status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
|
|
2227
|
+
status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSAL_PENDING" | "REVERSED" | "VOIDED";
|
|
2202
2228
|
issued_at?: string | null | undefined;
|
|
2203
2229
|
resolved_at?: string | null | undefined;
|
|
2204
2230
|
device_id?: string | null | undefined;
|
|
@@ -3160,14 +3186,14 @@ type OrderListInput = {
|
|
|
3160
3186
|
channel_id?: string | undefined;
|
|
3161
3187
|
fulfillment_id?: string | undefined;
|
|
3162
3188
|
brand_id?: string | undefined;
|
|
3163
|
-
status?: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED" | undefined;
|
|
3189
|
+
status?: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSAL_PENDING" | "REVERSED" | "VOIDED" | undefined;
|
|
3164
3190
|
cursor?: string | undefined;
|
|
3165
3191
|
};
|
|
3166
3192
|
/** `POST .../devices/me/orders` body (kiosk or POS). */
|
|
3167
3193
|
type OrderDeviceListInput = {
|
|
3168
3194
|
device_uid: string;
|
|
3169
3195
|
device_secret: string;
|
|
3170
|
-
status?: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED" | undefined;
|
|
3196
|
+
status?: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSAL_PENDING" | "REVERSED" | "VOIDED" | undefined;
|
|
3171
3197
|
payment_status?: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED" | undefined;
|
|
3172
3198
|
from?: string | undefined;
|
|
3173
3199
|
to?: string | undefined;
|
|
@@ -3451,7 +3477,7 @@ type OrderDeviceListResult = {
|
|
|
3451
3477
|
metadata: Record<string, unknown>;
|
|
3452
3478
|
payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
3453
3479
|
fulfillment_status: string;
|
|
3454
|
-
status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
|
|
3480
|
+
status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSAL_PENDING" | "REVERSED" | "VOIDED";
|
|
3455
3481
|
issued_at?: string | null | undefined;
|
|
3456
3482
|
resolved_at?: string | null | undefined;
|
|
3457
3483
|
device_id?: string | null | undefined;
|
|
@@ -4448,4 +4474,4 @@ interface CheckoutResolved {
|
|
|
4448
4474
|
billingFields: Record<string, CheckoutMode>;
|
|
4449
4475
|
}
|
|
4450
4476
|
//#endregion
|
|
4451
|
-
export type { AddressInfo, AndConditions, BillingInfo, BillingProfile, BundledItem, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, Fulfillment, FulfillmentListInput, GroupDisplayType, KioskAdminGesture, KioskAppState, KioskCommandPayload, KioskCommandType, KioskConfigChangedPayload, KioskDeviceConfig, KioskDeviceConfigDevice, KioskDeviceConfigPayment, KioskDeviceConfigScope, KioskDeviceConfigSettings, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskRealtimeToken, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderInsertInput, OrderLine, OrderListInput, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentErrorCode, PaymentIntent, PaymentIntentInput, PaymentIntentPutInput, PaymentIntentStatus, PaymentMethod, PaymentProvider, PaymentScope, PaymentStatus, PaymentTender, PaymentTenderInput, PlaceOrderResult, PosActorKind, PosCashBreakdownItem, PosCatalog, PosDenominationKind, PosDeviceConfigDevice, PosDeviceConfigScope, PosDeviceOverrides, PosErrorCode, PosFloor, PosFloorChangedPayload, PosFloorElement, PosFloorInput, PosFloorLayout, PosFloorOccupancy, PosFloorPlan, PosFloorRealtimeToken, PosFloorTable, PosHealthBatchInput, PosHealthBatchResult, PosHealthSample, PosHeartbeatHealth, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PosReservationHold, PosReservationHoldStatus, PosStaff, PosTableAttachOrderInput, PosTableCloseInput, PosTableJoinInput, PosTableSeatInput, PosTableSeatReservationInput, PosTableSession, PosTableSessionOrder, PosTableSessionStatus, PosTableSplitInput, PricingModifier, PricingVariant, Product, ProductAvailability, ProductPricing, ProductRecommendationLink, Recommendation, RecurringDateCronExpression, RecurringDateCronRepeat, RecurringDateCronResult, RecurringDateCronValues, RuleInterpretation, RulesEngineMonitoring, RulesEngineOrder, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, Schedule, ScheduleDay, SchedulePeriod, SdkLogContext, SdkLogEntry, SdkLogErrorInfo, SdkLogIngestResult, SdkLogLevel, SdkLogOptions, Store, StoreAvailabilityFilters, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontAvailabilityChangedPayload, StorefrontAvailabilityInput, StorefrontAvailabilityRule, StorefrontCmsChangedPayload, StorefrontMenu, StorefrontMenuChangedPayload, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, StorefrontPreferences, StorefrontPreferencesInput, StorefrontRealtimeToken, StorefrontRealtimeTokenInput, StorefrontWorkspaceChangedPayload, StringMatchCaseOptions, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup };
|
|
4477
|
+
export type { AddressInfo, AndConditions, BillingInfo, BillingProfile, BundledItem, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, Fulfillment, FulfillmentListInput, GroupDisplayType, KioskAdminGesture, KioskAppState, KioskCommandPayload, KioskCommandType, KioskConfigChangedPayload, KioskDeviceConfig, KioskDeviceConfigDevice, KioskDeviceConfigPayment, KioskDeviceConfigScope, KioskDeviceConfigSettings, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskRealtimeToken, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderInsertInput, OrderLine, OrderListInput, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentErrorCode, PaymentIntent, PaymentIntentInput, PaymentIntentPutInput, PaymentIntentStatus, PaymentMethod, PaymentProvider, PaymentScope, PaymentStatus, PaymentTender, PaymentTenderInput, PlaceOrderResult, PosActorKind, PosCashBreakdownItem, PosCatalog, PosDenominationKind, PosDeviceConfigDevice, PosDeviceConfigScope, PosDeviceOverrides, PosErrorCode, PosFloor, PosFloorChangedPayload, PosFloorElement, PosFloorInput, PosFloorLayout, PosFloorOccupancy, PosFloorPlan, PosFloorRealtimeToken, PosFloorTable, PosHealthBatchInput, PosHealthBatchResult, PosHealthSample, PosHeartbeatHealth, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PosReservationHold, PosReservationHoldStatus, PosStaff, PosTableAttachOrderInput, PosTableCloseInput, PosTableJoinInput, PosTableSeatInput, PosTableSeatReservationInput, PosTableSession, PosTableSessionOrder, PosTableSessionStatus, PosTableSplitInput, PricingModifier, PricingVariant, Product, ProductAvailability, ProductPricing, ProductRecommendationLink, Recommendation, RecurringDateCronExpression, RecurringDateCronRepeat, RecurringDateCronResult, RecurringDateCronValues, RuleInterpretation, RulesEngineMonitoring, RulesEngineOrder, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, Schedule, ScheduleDay, SchedulePeriod, SdkLogContext, SdkLogEntry, SdkLogErrorInfo, SdkLogIngestResult, SdkLogLevel, SdkLogOptions, Store, StoreAvailabilityFilters, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontAvailabilityChangedPayload, StorefrontAvailabilityInput, StorefrontAvailabilityRule, StorefrontCmsChangedPayload, StorefrontMenu, StorefrontMenuChangedPayload, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, StorefrontPreferences, StorefrontPreferencesInput, StorefrontRealtimeToken, StorefrontRealtimeTokenInput, StorefrontWorkspaceChangedPayload, StringMatchCaseOptions, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup };
|