@fire-spark/types 0.42.2 → 0.43.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +55 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3098,6 +3098,11 @@ type OrderFulfillment = {
3098
3098
  webhook_ids?: string[] | undefined;
3099
3099
  callback_ids?: string[] | undefined;
3100
3100
  }[] | undefined;
3101
+ notifications?: {
3102
+ id: string;
3103
+ channel: "EMAIL";
3104
+ template_id: string;
3105
+ }[] | undefined;
3101
3106
  entered_at?: string | undefined;
3102
3107
  ready_at?: string | undefined;
3103
3108
  advance_requested_at?: string | undefined;
@@ -3151,6 +3156,16 @@ type OrderFulfillment = {
3151
3156
  idempotency_key?: string | undefined;
3152
3157
  resent_by?: string | undefined;
3153
3158
  }[] | undefined;
3159
+ email_run?: {
3160
+ status: "failed" | "no_connection" | "offline_skipped" | "opted_out" | "sent";
3161
+ template_id?: string | undefined;
3162
+ locale?: string | undefined;
3163
+ message_id?: string | null | undefined;
3164
+ resend_id?: string | null | undefined;
3165
+ attempts?: number | undefined;
3166
+ short_code?: string | null | undefined;
3167
+ updated_at?: string | undefined;
3168
+ } | undefined;
3154
3169
  manual_advance?: {
3155
3170
  reason: string;
3156
3171
  to_status: string;
@@ -3340,6 +3355,11 @@ type OrderFulfillmentWorkflow = {
3340
3355
  webhook_ids?: string[] | undefined;
3341
3356
  callback_ids?: string[] | undefined;
3342
3357
  }[] | undefined;
3358
+ notifications?: {
3359
+ id: string;
3360
+ channel: "EMAIL";
3361
+ template_id: string;
3362
+ }[] | undefined;
3343
3363
  entered_at?: string | undefined;
3344
3364
  ready_at?: string | undefined;
3345
3365
  advance_requested_at?: string | undefined;
@@ -3393,6 +3413,16 @@ type OrderFulfillmentWorkflow = {
3393
3413
  idempotency_key?: string | undefined;
3394
3414
  resent_by?: string | undefined;
3395
3415
  }[] | undefined;
3416
+ email_run?: {
3417
+ status: "failed" | "no_connection" | "offline_skipped" | "opted_out" | "sent";
3418
+ template_id?: string | undefined;
3419
+ locale?: string | undefined;
3420
+ message_id?: string | null | undefined;
3421
+ resend_id?: string | null | undefined;
3422
+ attempts?: number | undefined;
3423
+ short_code?: string | null | undefined;
3424
+ updated_at?: string | undefined;
3425
+ } | undefined;
3396
3426
  manual_advance?: {
3397
3427
  reason: string;
3398
3428
  to_status: string;
@@ -3539,6 +3569,11 @@ type OrderFulfillmentWorkflowNode = {
3539
3569
  webhook_ids?: string[] | undefined;
3540
3570
  callback_ids?: string[] | undefined;
3541
3571
  }[] | undefined;
3572
+ notifications?: {
3573
+ id: string;
3574
+ channel: "EMAIL";
3575
+ template_id: string;
3576
+ }[] | undefined;
3542
3577
  entered_at?: string | undefined;
3543
3578
  ready_at?: string | undefined;
3544
3579
  advance_requested_at?: string | undefined;
@@ -3592,6 +3627,16 @@ type OrderFulfillmentWorkflowNode = {
3592
3627
  idempotency_key?: string | undefined;
3593
3628
  resent_by?: string | undefined;
3594
3629
  }[] | undefined;
3630
+ email_run?: {
3631
+ status: "failed" | "no_connection" | "offline_skipped" | "opted_out" | "sent";
3632
+ template_id?: string | undefined;
3633
+ locale?: string | undefined;
3634
+ message_id?: string | null | undefined;
3635
+ resend_id?: string | null | undefined;
3636
+ attempts?: number | undefined;
3637
+ short_code?: string | null | undefined;
3638
+ updated_at?: string | undefined;
3639
+ } | undefined;
3595
3640
  manual_advance?: {
3596
3641
  reason: string;
3597
3642
  to_status: string;
@@ -3710,6 +3755,9 @@ type OrderFulfillmentWorkflowEdge = {
3710
3755
  taken_at?: string | undefined;
3711
3756
  } | undefined;
3712
3757
  };
3758
+ type OrderFulfillmentWorkflowNodeNotification = NonNullable<OrderFulfillmentWorkflowNode["data"]["notifications"]>[number];
3759
+ type OrderFulfillmentEmailRun = NonNullable<OrderFulfillmentWorkflowNode["data"]["email_run"]>;
3760
+ type OrderFulfillmentEmailRunStatus = OrderFulfillmentEmailRun["status"];
3713
3761
  //#endregion
3714
3762
  //#region .flat/src/fees.d.ts
3715
3763
  /** Merchant fee (conditions and effects) as returned by the API. */
@@ -4238,8 +4286,8 @@ type StorefrontAvailability = {
4238
4286
  status: "UNAVAILABLE";
4239
4287
  rule: {
4240
4288
  id: string;
4241
- title: string;
4242
- description: string;
4289
+ title: Record<string, string>;
4290
+ description: Record<string, string>;
4243
4291
  schedule: {
4244
4292
  mode: "IMMEDIATE";
4245
4293
  } | {
@@ -4273,8 +4321,8 @@ type StorefrontPreferences = {
4273
4321
  status: "UNAVAILABLE";
4274
4322
  rule: {
4275
4323
  id: string;
4276
- title: string;
4277
- description: string;
4324
+ title: Record<string, string>;
4325
+ description: Record<string, string>;
4278
4326
  schedule: {
4279
4327
  mode: "IMMEDIATE";
4280
4328
  } | {
@@ -4313,8 +4361,8 @@ type StorefrontPreferences = {
4313
4361
  };
4314
4362
  release: {
4315
4363
  min_version: string | null;
4316
- title: string;
4317
- description: string;
4364
+ title: Record<string, string>;
4365
+ description: Record<string, string>;
4318
4366
  ios_store_url: string;
4319
4367
  android_store_url: string;
4320
4368
  };
@@ -5844,4 +5892,4 @@ type WordFilterCheckResult = {
5844
5892
  matches: WordFilterMatch[];
5845
5893
  };
5846
5894
  //#endregion
5847
- export type { AddressInfo, AndConditions, ApplyFeesInput, ApplyFeesOrderScope, BillingInfo, BillingProfile, BundledItem, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, DeviceSecretStorage, DeviceSecretsConfigureOptions, DeviceSecretsPayload, Fee, Fulfillment, FulfillmentEligibilityInput, 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, LocalServerConfig, LocalServerHealthResult, MasivoTotpCode, MasivoTotpCreateInput, MasivoTotpCustomer, MasivoTotpVerification, MasivoTotpVerifyInput, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderAdvanceFulfillmentInput, OrderAdvanceFulfillmentOptions, OrderCancelInput, OrderCancelType, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderFulfillmentWorkflow, OrderFulfillmentWorkflowEdge, OrderFulfillmentWorkflowNode, OrderInsertInput, OrderLine, OrderListInput, OrderRateInput, OrderRating, OrderRecord, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderReportedTender, OrderRouteKind, OrderRouteStatus, OrderRoutes, OrderSetCustomerInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentEligibilityInput, 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, RouteEligibility, RouteEligibilityDetail, RouteEligibilityFlags, RouteEligibilityReason, RouteFailureKind, RouteHealthEvent, RouteHealthListener, 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, SwitchCustomerOptions, SwitchCustomerResult, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup, WordFilterCategory, WordFilterCheckInput, WordFilterCheckResult, WordFilterMatch };
5895
+ export type { AddressInfo, AndConditions, ApplyFeesInput, ApplyFeesOrderScope, BillingInfo, BillingProfile, BundledItem, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, DeviceSecretStorage, DeviceSecretsConfigureOptions, DeviceSecretsPayload, Fee, Fulfillment, FulfillmentEligibilityInput, 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, LocalServerConfig, LocalServerHealthResult, MasivoTotpCode, MasivoTotpCreateInput, MasivoTotpCustomer, MasivoTotpVerification, MasivoTotpVerifyInput, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderAdvanceFulfillmentInput, OrderAdvanceFulfillmentOptions, OrderCancelInput, OrderCancelType, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderFulfillmentEmailRun, OrderFulfillmentEmailRunStatus, OrderFulfillmentWorkflow, OrderFulfillmentWorkflowEdge, OrderFulfillmentWorkflowNode, OrderFulfillmentWorkflowNodeNotification, OrderInsertInput, OrderLine, OrderListInput, OrderRateInput, OrderRating, OrderRecord, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderReportedTender, OrderRouteKind, OrderRouteStatus, OrderRoutes, OrderSetCustomerInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentEligibilityInput, 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, RouteEligibility, RouteEligibilityDetail, RouteEligibilityFlags, RouteEligibilityReason, RouteFailureKind, RouteHealthEvent, RouteHealthListener, 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, SwitchCustomerOptions, SwitchCustomerResult, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup, WordFilterCategory, WordFilterCheckInput, WordFilterCheckResult, WordFilterMatch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fire-spark/types",
3
- "version": "0.42.2",
3
+ "version": "0.43.0",
4
4
  "description": "Fire Spark public TypeScript types",
5
5
  "type": "module",
6
6
  "sideEffects": false,