@fire-spark/types 0.20.1 → 0.21.1
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 +81 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2485,12 +2485,30 @@ type CmsBlock = {
|
|
|
2485
2485
|
title?: string | null | undefined;
|
|
2486
2486
|
mime_type?: string | null | undefined;
|
|
2487
2487
|
size_bytes?: number | null | undefined;
|
|
2488
|
+
} | {
|
|
2489
|
+
type: "BANNER";
|
|
2490
|
+
media: {
|
|
2491
|
+
kind: "IMAGE";
|
|
2492
|
+
url: string;
|
|
2493
|
+
mime_type?: string | null | undefined;
|
|
2494
|
+
size_bytes?: number | null | undefined;
|
|
2495
|
+
} | {
|
|
2496
|
+
kind: "VIDEO";
|
|
2497
|
+
url: string;
|
|
2498
|
+
mime_type?: string | null | undefined;
|
|
2499
|
+
size_bytes?: number | null | undefined;
|
|
2500
|
+
};
|
|
2501
|
+
alt: string;
|
|
2502
|
+
href?: string | null | undefined;
|
|
2503
|
+
id: string;
|
|
2504
|
+
key: string;
|
|
2505
|
+
label?: string | null | undefined;
|
|
2488
2506
|
} | {
|
|
2489
2507
|
id: string;
|
|
2490
2508
|
key: string;
|
|
2491
2509
|
label?: string | null | undefined;
|
|
2492
2510
|
type: "LIST";
|
|
2493
|
-
item_type: "DOCUMENT" | "IMAGE" | "TEXT" | "VIDEO";
|
|
2511
|
+
item_type: "BANNER" | "DOCUMENT" | "IMAGE" | "TEXT" | "VIDEO";
|
|
2494
2512
|
items: ({
|
|
2495
2513
|
id: string;
|
|
2496
2514
|
type: "TEXT";
|
|
@@ -2516,6 +2534,22 @@ type CmsBlock = {
|
|
|
2516
2534
|
title?: string | null | undefined;
|
|
2517
2535
|
mime_type?: string | null | undefined;
|
|
2518
2536
|
size_bytes?: number | null | undefined;
|
|
2537
|
+
} | {
|
|
2538
|
+
type: "BANNER";
|
|
2539
|
+
media: {
|
|
2540
|
+
kind: "IMAGE";
|
|
2541
|
+
url: string;
|
|
2542
|
+
mime_type?: string | null | undefined;
|
|
2543
|
+
size_bytes?: number | null | undefined;
|
|
2544
|
+
} | {
|
|
2545
|
+
kind: "VIDEO";
|
|
2546
|
+
url: string;
|
|
2547
|
+
mime_type?: string | null | undefined;
|
|
2548
|
+
size_bytes?: number | null | undefined;
|
|
2549
|
+
};
|
|
2550
|
+
alt: string;
|
|
2551
|
+
href?: string | null | undefined;
|
|
2552
|
+
id: string;
|
|
2519
2553
|
})[];
|
|
2520
2554
|
})[];
|
|
2521
2555
|
status: string;
|
|
@@ -4613,6 +4647,8 @@ interface RulesEngineParams {
|
|
|
4613
4647
|
};
|
|
4614
4648
|
monitoring?: RulesEngineMonitoring;
|
|
4615
4649
|
referenceDate?: string;
|
|
4650
|
+
/** IANA zone for Current date. Omitted keeps the process-local reads. */
|
|
4651
|
+
timezone?: string;
|
|
4616
4652
|
runtime?: RulesEngineRuntime;
|
|
4617
4653
|
}
|
|
4618
4654
|
type MatchResult<T> = {
|
|
@@ -4633,6 +4669,31 @@ interface RecurringDateCronResult extends RecurringDateCronValues {
|
|
|
4633
4669
|
expression: RecurringDateCronExpression;
|
|
4634
4670
|
description: string;
|
|
4635
4671
|
}
|
|
4672
|
+
/** Calendar fields of a recurring date bound, read in the cron's timezone. */
|
|
4673
|
+
interface RecurringDateCronDateParts {
|
|
4674
|
+
year: number;
|
|
4675
|
+
/** 1-12 */
|
|
4676
|
+
month: number;
|
|
4677
|
+
/** 1-31 */
|
|
4678
|
+
day: number;
|
|
4679
|
+
/** 0 (Sunday) - 6 (Saturday) */
|
|
4680
|
+
weekday: number;
|
|
4681
|
+
hour: number;
|
|
4682
|
+
minute: number;
|
|
4683
|
+
}
|
|
4684
|
+
/** Locale-free facts a formatter needs to write a recurring date sentence. */
|
|
4685
|
+
interface RecurringDateCronSummary {
|
|
4686
|
+
repeat: RecurringDateCronRepeat;
|
|
4687
|
+
start: RecurringDateCronDateParts;
|
|
4688
|
+
end: RecurringDateCronDateParts;
|
|
4689
|
+
/** Start and end fall on the same calendar day. */
|
|
4690
|
+
sameDay: boolean;
|
|
4691
|
+
/** Same day, from 00:00 to 23:59; times are omitted from the sentence. */
|
|
4692
|
+
allDay: boolean;
|
|
4693
|
+
/** 1-5, week of the month of the start date (`WEEK_OF_MONTH`). */
|
|
4694
|
+
weekOfMonth: number;
|
|
4695
|
+
}
|
|
4696
|
+
type RecurringDateCronFormatter = (summary: RecurringDateCronSummary) => string;
|
|
4636
4697
|
type CheckoutMode = "required" | "optional" | "hidden";
|
|
4637
4698
|
interface CheckoutResolved {
|
|
4638
4699
|
shipping: CheckoutMode;
|
|
@@ -4646,4 +4707,22 @@ interface CheckoutResolved {
|
|
|
4646
4707
|
customerFields: Record<string, CheckoutMode>;
|
|
4647
4708
|
}
|
|
4648
4709
|
//#endregion
|
|
4649
|
-
|
|
4710
|
+
//#region .flat/src/word-filter.d.ts
|
|
4711
|
+
type WordFilterCategory = "profanity" | "political_figure" | "political_party" | "competitor" | "other";
|
|
4712
|
+
type WordFilterMatch = {
|
|
4713
|
+
source: "merchant" | "dictionary";
|
|
4714
|
+
category: WordFilterCategory;
|
|
4715
|
+
mode: "exact" | "contains";
|
|
4716
|
+
start: number;
|
|
4717
|
+
end: number;
|
|
4718
|
+
};
|
|
4719
|
+
type WordFilterCheckInput = {
|
|
4720
|
+
text: string;
|
|
4721
|
+
};
|
|
4722
|
+
/** `POST /api/storefront/v1/word-filter/check` `data`. */
|
|
4723
|
+
type WordFilterCheckResult = {
|
|
4724
|
+
pass: boolean;
|
|
4725
|
+
matches: WordFilterMatch[];
|
|
4726
|
+
};
|
|
4727
|
+
//#endregion
|
|
4728
|
+
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, KioskDeviceConfigInput, KioskDeviceConfigPayment, KioskDeviceConfigScope, KioskDeviceConfigSettings, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerMode, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskPickupNameRules, KioskRealtimeToken, MasivoTotpCode, MasivoTotpCreateInput, MasivoTotpCustomer, MasivoTotpVerification, MasivoTotpVerifyInput, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderCancelInput, OrderCancelType, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderInsertInput, OrderLine, OrderListInput, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderReportedTender, OrderSetCustomerInput, 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, RecurringDateCronDateParts, RecurringDateCronExpression, RecurringDateCronFormatter, RecurringDateCronRepeat, RecurringDateCronResult, RecurringDateCronSummary, RecurringDateCronValues, RuleInterpretation, RulesEngineMonitoring, RulesEngineOrder, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, RulesEngineTagValue, 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, SwitchCustomerArg, SwitchCustomerIdToken, SwitchCustomerResult, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup, WordFilterCategory, WordFilterCheckInput, WordFilterCheckResult, WordFilterMatch };
|