@fire-spark/types 0.11.1 → 0.12.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 +28 -26
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -614,7 +614,7 @@ type Store = {
|
|
|
614
614
|
};
|
|
615
615
|
channel_ids: string[];
|
|
616
616
|
fulfillment_ids: string[];
|
|
617
|
-
tags: Record<string, string | number | boolean>;
|
|
617
|
+
tags: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
618
618
|
cms_template_id?: string | null | undefined;
|
|
619
619
|
status: string;
|
|
620
620
|
coverage_zones: {
|
|
@@ -643,7 +643,7 @@ type Store = {
|
|
|
643
643
|
}[];
|
|
644
644
|
}[] | null;
|
|
645
645
|
labels: string[];
|
|
646
|
-
tags: Record<string, string | number | boolean>;
|
|
646
|
+
tags: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
647
647
|
status: string;
|
|
648
648
|
}[];
|
|
649
649
|
cms?: {
|
|
@@ -798,9 +798,9 @@ type OrderFulfillment = {
|
|
|
798
798
|
brand_id: string;
|
|
799
799
|
primitive: "string";
|
|
800
800
|
type: "Failure message" | "Order includes product with tag" | "Request path";
|
|
801
|
-
operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
|
|
801
|
+
operator: "contains" | "ends with" | "equal to" | "is all of" | "is any of" | "is none of" | "not equal to" | "starts with";
|
|
802
802
|
caseInsensitive?: boolean | undefined;
|
|
803
|
-
value: string;
|
|
803
|
+
value: string | string[];
|
|
804
804
|
invalidMessage?: string | undefined;
|
|
805
805
|
} | {
|
|
806
806
|
interpretation?: "both" | "client" | "server" | undefined;
|
|
@@ -812,8 +812,8 @@ type OrderFulfillment = {
|
|
|
812
812
|
brand_id: string;
|
|
813
813
|
primitive: "number";
|
|
814
814
|
type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
|
|
815
|
-
operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
|
|
816
|
-
value: number;
|
|
815
|
+
operator: "equal to" | "greater than" | "greater than or equal to" | "is all of" | "is any of" | "is none of" | "less than" | "less than or equal to" | "not equal to";
|
|
816
|
+
value: number | number[];
|
|
817
817
|
include_modifiers?: boolean | undefined;
|
|
818
818
|
window_minutes?: number | undefined;
|
|
819
819
|
invalidMessage?: string | undefined;
|
|
@@ -956,9 +956,9 @@ type MerchantPayment = {
|
|
|
956
956
|
brand_id: string;
|
|
957
957
|
primitive: "string";
|
|
958
958
|
type: "Failure message" | "Order includes product with tag" | "Request path";
|
|
959
|
-
operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
|
|
959
|
+
operator: "contains" | "ends with" | "equal to" | "is all of" | "is any of" | "is none of" | "not equal to" | "starts with";
|
|
960
960
|
caseInsensitive?: boolean | undefined;
|
|
961
|
-
value: string;
|
|
961
|
+
value: string | string[];
|
|
962
962
|
invalidMessage?: string | undefined;
|
|
963
963
|
} | {
|
|
964
964
|
interpretation?: "both" | "client" | "server" | undefined;
|
|
@@ -970,8 +970,8 @@ type MerchantPayment = {
|
|
|
970
970
|
brand_id: string;
|
|
971
971
|
primitive: "number";
|
|
972
972
|
type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
|
|
973
|
-
operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
|
|
974
|
-
value: number;
|
|
973
|
+
operator: "equal to" | "greater than" | "greater than or equal to" | "is all of" | "is any of" | "is none of" | "less than" | "less than or equal to" | "not equal to";
|
|
974
|
+
value: number | number[];
|
|
975
975
|
include_modifiers?: boolean | undefined;
|
|
976
976
|
window_minutes?: number | undefined;
|
|
977
977
|
invalidMessage?: string | undefined;
|
|
@@ -1420,7 +1420,7 @@ type StorefrontMenu = {
|
|
|
1420
1420
|
};
|
|
1421
1421
|
image_origin_url?: string | null | undefined;
|
|
1422
1422
|
labels: string[];
|
|
1423
|
-
tags: Record<string, string | number | boolean>;
|
|
1423
|
+
tags: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
1424
1424
|
metadata: Record<string, unknown>;
|
|
1425
1425
|
}[];
|
|
1426
1426
|
categories: {
|
|
@@ -1471,7 +1471,7 @@ type StorefrontMenu = {
|
|
|
1471
1471
|
image_url: string | null;
|
|
1472
1472
|
image_origin_url?: string | null | undefined;
|
|
1473
1473
|
labels: string[];
|
|
1474
|
-
tags: Record<string, string | number | boolean>;
|
|
1474
|
+
tags: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
1475
1475
|
metadata: Record<string, unknown>;
|
|
1476
1476
|
}[];
|
|
1477
1477
|
modifier_groups: {
|
|
@@ -4132,9 +4132,9 @@ type Condition = {
|
|
|
4132
4132
|
brand_id: string;
|
|
4133
4133
|
primitive: "string";
|
|
4134
4134
|
type: "Failure message" | "Order includes product with tag" | "Request path";
|
|
4135
|
-
operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
|
|
4135
|
+
operator: "contains" | "ends with" | "equal to" | "is all of" | "is any of" | "is none of" | "not equal to" | "starts with";
|
|
4136
4136
|
caseInsensitive?: boolean | undefined;
|
|
4137
|
-
value: string;
|
|
4137
|
+
value: string | string[];
|
|
4138
4138
|
invalidMessage?: string | undefined;
|
|
4139
4139
|
} | {
|
|
4140
4140
|
interpretation?: "both" | "client" | "server" | undefined;
|
|
@@ -4146,8 +4146,8 @@ type Condition = {
|
|
|
4146
4146
|
brand_id: string;
|
|
4147
4147
|
primitive: "number";
|
|
4148
4148
|
type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
|
|
4149
|
-
operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
|
|
4150
|
-
value: number;
|
|
4149
|
+
operator: "equal to" | "greater than" | "greater than or equal to" | "is all of" | "is any of" | "is none of" | "less than" | "less than or equal to" | "not equal to";
|
|
4150
|
+
value: number | number[];
|
|
4151
4151
|
include_modifiers?: boolean | undefined;
|
|
4152
4152
|
window_minutes?: number | undefined;
|
|
4153
4153
|
invalidMessage?: string | undefined;
|
|
@@ -4228,9 +4228,9 @@ type AndConditions = ({
|
|
|
4228
4228
|
brand_id: string;
|
|
4229
4229
|
primitive: "string";
|
|
4230
4230
|
type: "Failure message" | "Order includes product with tag" | "Request path";
|
|
4231
|
-
operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
|
|
4231
|
+
operator: "contains" | "ends with" | "equal to" | "is all of" | "is any of" | "is none of" | "not equal to" | "starts with";
|
|
4232
4232
|
caseInsensitive?: boolean | undefined;
|
|
4233
|
-
value: string;
|
|
4233
|
+
value: string | string[];
|
|
4234
4234
|
invalidMessage?: string | undefined;
|
|
4235
4235
|
} | {
|
|
4236
4236
|
interpretation?: "both" | "client" | "server" | undefined;
|
|
@@ -4242,8 +4242,8 @@ type AndConditions = ({
|
|
|
4242
4242
|
brand_id: string;
|
|
4243
4243
|
primitive: "number";
|
|
4244
4244
|
type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
|
|
4245
|
-
operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
|
|
4246
|
-
value: number;
|
|
4245
|
+
operator: "equal to" | "greater than" | "greater than or equal to" | "is all of" | "is any of" | "is none of" | "less than" | "less than or equal to" | "not equal to";
|
|
4246
|
+
value: number | number[];
|
|
4247
4247
|
include_modifiers?: boolean | undefined;
|
|
4248
4248
|
window_minutes?: number | undefined;
|
|
4249
4249
|
invalidMessage?: string | undefined;
|
|
@@ -4324,9 +4324,9 @@ type OrConditions = ({
|
|
|
4324
4324
|
brand_id: string;
|
|
4325
4325
|
primitive: "string";
|
|
4326
4326
|
type: "Failure message" | "Order includes product with tag" | "Request path";
|
|
4327
|
-
operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
|
|
4327
|
+
operator: "contains" | "ends with" | "equal to" | "is all of" | "is any of" | "is none of" | "not equal to" | "starts with";
|
|
4328
4328
|
caseInsensitive?: boolean | undefined;
|
|
4329
|
-
value: string;
|
|
4329
|
+
value: string | string[];
|
|
4330
4330
|
invalidMessage?: string | undefined;
|
|
4331
4331
|
} | {
|
|
4332
4332
|
interpretation?: "both" | "client" | "server" | undefined;
|
|
@@ -4338,8 +4338,8 @@ type OrConditions = ({
|
|
|
4338
4338
|
brand_id: string;
|
|
4339
4339
|
primitive: "number";
|
|
4340
4340
|
type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
|
|
4341
|
-
operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
|
|
4342
|
-
value: number;
|
|
4341
|
+
operator: "equal to" | "greater than" | "greater than or equal to" | "is all of" | "is any of" | "is none of" | "less than" | "less than or equal to" | "not equal to";
|
|
4342
|
+
value: number | number[];
|
|
4343
4343
|
include_modifiers?: boolean | undefined;
|
|
4344
4344
|
window_minutes?: number | undefined;
|
|
4345
4345
|
invalidMessage?: string | undefined;
|
|
@@ -4415,12 +4415,14 @@ type RulesEngineRuntime = "client" | "server";
|
|
|
4415
4415
|
interface StringMatchCaseOptions {
|
|
4416
4416
|
caseInsensitive?: boolean;
|
|
4417
4417
|
}
|
|
4418
|
+
type RulesEngineTagValue = boolean | string | number;
|
|
4418
4419
|
interface RulesEngineOrderLine {
|
|
4419
4420
|
id: string;
|
|
4420
4421
|
quantity: number;
|
|
4421
4422
|
parent_uid?: string | null;
|
|
4422
4423
|
type?: string;
|
|
4423
|
-
|
|
4424
|
+
/** A tag holds one value or a list of values (see the tag condition docs). */
|
|
4425
|
+
tags?: Record<string, RulesEngineTagValue | RulesEngineTagValue[]>;
|
|
4424
4426
|
}
|
|
4425
4427
|
interface MatchableRule {
|
|
4426
4428
|
conditions?: OrConditions | null;
|
|
@@ -4502,4 +4504,4 @@ interface CheckoutResolved {
|
|
|
4502
4504
|
billingFields: Record<string, CheckoutMode>;
|
|
4503
4505
|
}
|
|
4504
4506
|
//#endregion
|
|
4505
|
-
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, 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, 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 };
|
|
4507
|
+
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, 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, 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, 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, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup };
|