@fire-spark/types 0.15.1 → 0.15.3
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 +38 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ type Customer = {
|
|
|
128
128
|
zip?: string | undefined;
|
|
129
129
|
country?: string | undefined;
|
|
130
130
|
tax_id: string;
|
|
131
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
131
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
132
132
|
preferred: boolean;
|
|
133
133
|
metadata: Record<string, unknown> | null;
|
|
134
134
|
}[];
|
|
@@ -216,7 +216,7 @@ type BillingProfile = {
|
|
|
216
216
|
zip?: string | undefined;
|
|
217
217
|
country?: string | undefined;
|
|
218
218
|
tax_id: string;
|
|
219
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
219
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
220
220
|
preferred: boolean;
|
|
221
221
|
metadata: Record<string, unknown> | null;
|
|
222
222
|
};
|
|
@@ -301,7 +301,7 @@ type CustomerRegisterInput = {
|
|
|
301
301
|
zip?: string | undefined;
|
|
302
302
|
country?: string | undefined;
|
|
303
303
|
tax_id: string;
|
|
304
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
304
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
305
305
|
preferred?: boolean | undefined;
|
|
306
306
|
metadata: Record<string, unknown> | null;
|
|
307
307
|
}[] | undefined;
|
|
@@ -415,7 +415,7 @@ type CustomerUpdateInput = {
|
|
|
415
415
|
zip?: string | undefined;
|
|
416
416
|
country?: string | undefined;
|
|
417
417
|
tax_id: string;
|
|
418
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
418
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
419
419
|
preferred?: boolean | undefined;
|
|
420
420
|
metadata: Record<string, unknown> | null;
|
|
421
421
|
}[] | undefined;
|
|
@@ -570,6 +570,33 @@ interface FulfillmentListInput {
|
|
|
570
570
|
channel_id?: string;
|
|
571
571
|
}
|
|
572
572
|
//#endregion
|
|
573
|
+
//#region .flat/src/masivo.d.ts
|
|
574
|
+
/** `GET /storefront/v1/masivo/totp/verify` query. */
|
|
575
|
+
interface MasivoTotpVerifyInput {
|
|
576
|
+
code: string;
|
|
577
|
+
}
|
|
578
|
+
/** Masivo customer returned by TOTP verify. Extra Masivo fields pass through. */
|
|
579
|
+
interface MasivoTotpCustomer {
|
|
580
|
+
id: string;
|
|
581
|
+
[key: string]: unknown;
|
|
582
|
+
}
|
|
583
|
+
/** `GET /storefront/v1/masivo/totp/verify` `data`. */
|
|
584
|
+
interface MasivoTotpVerification {
|
|
585
|
+
customer: MasivoTotpCustomer;
|
|
586
|
+
wallet: unknown;
|
|
587
|
+
metadata: unknown;
|
|
588
|
+
}
|
|
589
|
+
/** `POST /storefront/v1/masivo/totp` body. Only `customer_id` is sent. */
|
|
590
|
+
interface MasivoTotpCreateInput {
|
|
591
|
+
customer_id: string;
|
|
592
|
+
}
|
|
593
|
+
/** `POST /storefront/v1/masivo/totp` `data`. */
|
|
594
|
+
interface MasivoTotpCode {
|
|
595
|
+
code: string;
|
|
596
|
+
expired_at: string;
|
|
597
|
+
seconds_left: number;
|
|
598
|
+
}
|
|
599
|
+
//#endregion
|
|
573
600
|
//#region .flat/src/store.d.ts
|
|
574
601
|
/** Storefront store (`GET /storefront/v1/stores` `data[]`). */
|
|
575
602
|
type Store = {
|
|
@@ -2101,7 +2128,7 @@ type Order = {
|
|
|
2101
2128
|
zip?: string | undefined;
|
|
2102
2129
|
country?: string | undefined;
|
|
2103
2130
|
tax_id: string;
|
|
2104
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
2131
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
2105
2132
|
metadata: Record<string, unknown> | null;
|
|
2106
2133
|
} | null | undefined;
|
|
2107
2134
|
};
|
|
@@ -2270,7 +2297,7 @@ type BillingInfo = {
|
|
|
2270
2297
|
zip?: string | undefined;
|
|
2271
2298
|
country?: string | undefined;
|
|
2272
2299
|
tax_id: string;
|
|
2273
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
2300
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
2274
2301
|
metadata: Record<string, unknown> | null;
|
|
2275
2302
|
};
|
|
2276
2303
|
/** Payment method enum on order payment intents. */
|
|
@@ -2945,7 +2972,7 @@ type OrderInsertInput = {
|
|
|
2945
2972
|
zip?: string | undefined;
|
|
2946
2973
|
country?: string | undefined;
|
|
2947
2974
|
tax_id: string;
|
|
2948
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
2975
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
2949
2976
|
metadata: Record<string, unknown> | null;
|
|
2950
2977
|
} | null | undefined;
|
|
2951
2978
|
};
|
|
@@ -3095,7 +3122,7 @@ type OrderUpdateInput = {
|
|
|
3095
3122
|
zip?: string | undefined;
|
|
3096
3123
|
country?: string | undefined;
|
|
3097
3124
|
tax_id: string;
|
|
3098
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
3125
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
3099
3126
|
metadata: Record<string, unknown> | null;
|
|
3100
3127
|
} | null | undefined;
|
|
3101
3128
|
} | undefined;
|
|
@@ -3360,7 +3387,7 @@ type OrderDeviceListResult = {
|
|
|
3360
3387
|
zip?: string | undefined;
|
|
3361
3388
|
country?: string | undefined;
|
|
3362
3389
|
tax_id: string;
|
|
3363
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
3390
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
3364
3391
|
metadata: Record<string, unknown> | null;
|
|
3365
3392
|
} | null | undefined;
|
|
3366
3393
|
};
|
|
@@ -3835,7 +3862,7 @@ type PosOrderInput = {
|
|
|
3835
3862
|
zip?: string | undefined;
|
|
3836
3863
|
country?: string | undefined;
|
|
3837
3864
|
tax_id: string;
|
|
3838
|
-
tax_id_type: "CI" | "CNPJ" | "
|
|
3865
|
+
tax_id_type: "CI" | "CNPJ" | "CPF" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
|
|
3839
3866
|
metadata: Record<string, unknown> | null;
|
|
3840
3867
|
} | null | undefined;
|
|
3841
3868
|
} | undefined;
|
|
@@ -4534,4 +4561,4 @@ interface CheckoutResolved {
|
|
|
4534
4561
|
customerFields: Record<string, CheckoutMode>;
|
|
4535
4562
|
}
|
|
4536
4563
|
//#endregion
|
|
4537
|
-
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 };
|
|
4564
|
+
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, 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, 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 };
|