@final-commerce/common 2.0.2 → 2.0.4
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.mts +597 -4
- package/dist/index.d.ts +597 -4
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -16
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +300 -5
- package/dist/pos-types/index.d.ts +300 -5
- package/dist/pos-types/index.js +3 -3
- package/package.json +3 -3
- package/dist/interfaces-DIX_ROSP.d.mts +0 -589
- package/dist/interfaces-DIX_ROSP.d.ts +0 -589
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { R as InventorySpecificActionType, H as CustomTableAvailability, v as AttributeType, $ as OwnerType, W as NonRevenueItemType, C as CurrencyCode, a5 as Platform, a9 as ProductStatus, a4 as PaymentTransitionPath, M as FulfillmentTransitionPath, a2 as PathMode, c as CrossAxisRule, T as TransitionConditionSet, S as StatePair, D as DisplayStateRule, u as TransitionBlockedBy, aj as StationStatus, ao as UserTypes, o as PaymentState, p as FulfillmentState, aa as ProductType } from '../interfaces-DIX_ROSP.js';
|
|
2
|
-
|
|
3
1
|
type Enrich<TBase, TEnrichment> = Omit<TBase, keyof TEnrichment> & TEnrichment;
|
|
4
2
|
|
|
5
3
|
interface BaseDocument {
|
|
@@ -215,6 +213,230 @@ interface RefundDiscount {
|
|
|
215
213
|
itemDiscounts?: RefundItemDiscount[];
|
|
216
214
|
}
|
|
217
215
|
|
|
216
|
+
declare enum CurrencyCode {
|
|
217
|
+
USD = "USD",
|
|
218
|
+
EUR = "EUR",
|
|
219
|
+
GBP = "GBP",
|
|
220
|
+
CAD = "CAD",
|
|
221
|
+
AUD = "AUD",
|
|
222
|
+
NZD = "NZD",
|
|
223
|
+
CHF = "CHF",
|
|
224
|
+
CNY = "CNY",
|
|
225
|
+
INR = "INR",
|
|
226
|
+
MXN = "MXN",
|
|
227
|
+
BRL = "BRL",
|
|
228
|
+
ZAR = "ZAR",
|
|
229
|
+
SGD = "SGD",
|
|
230
|
+
HKD = "HKD",
|
|
231
|
+
SEK = "SEK",
|
|
232
|
+
NOK = "NOK",
|
|
233
|
+
DKK = "DKK",
|
|
234
|
+
PLN = "PLN",
|
|
235
|
+
THB = "THB",
|
|
236
|
+
MYR = "MYR",
|
|
237
|
+
PHP = "PHP",
|
|
238
|
+
IDR = "IDR",
|
|
239
|
+
AED = "AED",
|
|
240
|
+
SAR = "SAR",
|
|
241
|
+
ILS = "ILS",
|
|
242
|
+
TRY = "TRY",
|
|
243
|
+
RUB = "RUB",
|
|
244
|
+
HTG = "HTG",
|
|
245
|
+
BND = "BND",
|
|
246
|
+
CRC = "CRC",
|
|
247
|
+
BDT = "BDT",
|
|
248
|
+
UAH = "UAH",
|
|
249
|
+
NGN = "NGN",
|
|
250
|
+
AFN = "AFN",
|
|
251
|
+
ALL = "ALL",
|
|
252
|
+
AMD = "AMD",
|
|
253
|
+
ANG = "ANG",
|
|
254
|
+
AOA = "AOA",
|
|
255
|
+
ARS = "ARS",
|
|
256
|
+
AWG = "AWG",
|
|
257
|
+
AZN = "AZN",
|
|
258
|
+
BAM = "BAM",
|
|
259
|
+
BBD = "BBD",
|
|
260
|
+
BGN = "BGN",
|
|
261
|
+
BMD = "BMD",
|
|
262
|
+
BOB = "BOB",
|
|
263
|
+
BSD = "BSD",
|
|
264
|
+
BTN = "BTN",
|
|
265
|
+
BWP = "BWP",
|
|
266
|
+
BYN = "BYN",
|
|
267
|
+
BZD = "BZD",
|
|
268
|
+
COP = "COP",
|
|
269
|
+
CZK = "CZK",
|
|
270
|
+
DOP = "DOP",
|
|
271
|
+
DZD = "DZD",
|
|
272
|
+
EGP = "EGP",
|
|
273
|
+
ETB = "ETB",
|
|
274
|
+
FJD = "FJD",
|
|
275
|
+
GEL = "GEL",
|
|
276
|
+
GHS = "GHS",
|
|
277
|
+
GTQ = "GTQ",
|
|
278
|
+
GYD = "GYD",
|
|
279
|
+
HNL = "HNL",
|
|
280
|
+
IRR = "IRR",
|
|
281
|
+
JMD = "JMD",
|
|
282
|
+
KES = "KES",
|
|
283
|
+
KGS = "KGS",
|
|
284
|
+
KHR = "KHR",
|
|
285
|
+
KYD = "KYD",
|
|
286
|
+
KZT = "KZT",
|
|
287
|
+
LAK = "LAK",
|
|
288
|
+
LBP = "LBP",
|
|
289
|
+
LKR = "LKR",
|
|
290
|
+
MAD = "MAD",
|
|
291
|
+
MDL = "MDL",
|
|
292
|
+
MKD = "MKD",
|
|
293
|
+
MMK = "MMK",
|
|
294
|
+
MNT = "MNT",
|
|
295
|
+
MOP = "MOP",
|
|
296
|
+
MUR = "MUR",
|
|
297
|
+
MVR = "MVR",
|
|
298
|
+
MZN = "MZN",
|
|
299
|
+
NAD = "NAD",
|
|
300
|
+
NIO = "NIO",
|
|
301
|
+
NPR = "NPR",
|
|
302
|
+
PAB = "PAB",
|
|
303
|
+
PEN = "PEN",
|
|
304
|
+
PGK = "PGK",
|
|
305
|
+
PKR = "PKR",
|
|
306
|
+
QAR = "QAR",
|
|
307
|
+
RON = "RON",
|
|
308
|
+
RSD = "RSD",
|
|
309
|
+
SBD = "SBD",
|
|
310
|
+
SRD = "SRD",
|
|
311
|
+
SYP = "SYP",
|
|
312
|
+
TJS = "TJS",
|
|
313
|
+
TMT = "TMT",
|
|
314
|
+
TOP = "TOP",
|
|
315
|
+
TTD = "TTD",
|
|
316
|
+
TZS = "TZS",
|
|
317
|
+
UYU = "UYU",
|
|
318
|
+
UZS = "UZS",
|
|
319
|
+
VES = "VES",
|
|
320
|
+
WST = "WST",
|
|
321
|
+
XCD = "XCD",
|
|
322
|
+
YER = "YER",
|
|
323
|
+
ZMW = "ZMW",
|
|
324
|
+
CDF = "CDF",
|
|
325
|
+
CUP = "CUP",
|
|
326
|
+
ERN = "ERN",
|
|
327
|
+
FKP = "FKP",
|
|
328
|
+
GIP = "GIP",
|
|
329
|
+
GMD = "GMD",
|
|
330
|
+
KPW = "KPW",
|
|
331
|
+
LRD = "LRD",
|
|
332
|
+
LSL = "LSL",
|
|
333
|
+
MGA = "MGA",
|
|
334
|
+
MWK = "MWK",
|
|
335
|
+
SCR = "SCR",
|
|
336
|
+
SDG = "SDG",
|
|
337
|
+
SHP = "SHP",
|
|
338
|
+
SLE = "SLE",
|
|
339
|
+
SOS = "SOS",
|
|
340
|
+
SSP = "SSP",
|
|
341
|
+
STN = "STN",
|
|
342
|
+
SZL = "SZL",
|
|
343
|
+
VED = "VED",
|
|
344
|
+
XCG = "XCG",
|
|
345
|
+
JPY = "JPY",
|
|
346
|
+
KRW = "KRW",
|
|
347
|
+
VND = "VND",
|
|
348
|
+
CLP = "CLP",
|
|
349
|
+
ISK = "ISK",
|
|
350
|
+
HUF = "HUF",
|
|
351
|
+
TWD = "TWD",
|
|
352
|
+
GNF = "GNF",
|
|
353
|
+
BIF = "BIF",
|
|
354
|
+
DJF = "DJF",
|
|
355
|
+
KMF = "KMF",
|
|
356
|
+
PYG = "PYG",
|
|
357
|
+
RWF = "RWF",
|
|
358
|
+
UGX = "UGX",
|
|
359
|
+
VUV = "VUV",
|
|
360
|
+
XAF = "XAF",
|
|
361
|
+
XOF = "XOF",
|
|
362
|
+
XPF = "XPF",
|
|
363
|
+
KWD = "KWD",
|
|
364
|
+
BHD = "BHD",
|
|
365
|
+
OMR = "OMR",
|
|
366
|
+
JOD = "JOD",
|
|
367
|
+
TND = "TND",
|
|
368
|
+
LYD = "LYD",
|
|
369
|
+
IQD = "IQD"
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare enum CustomTableAvailability {
|
|
373
|
+
PUBLIC = "public",
|
|
374
|
+
ORGANIZATION = "organization"
|
|
375
|
+
}
|
|
376
|
+
declare enum AttributeType {
|
|
377
|
+
STRING = "string",
|
|
378
|
+
NUMBER = "number",
|
|
379
|
+
BOOLEAN = "boolean",
|
|
380
|
+
DATE = "date",
|
|
381
|
+
JSON_STRING = "json-string"
|
|
382
|
+
}
|
|
383
|
+
declare enum Platform {
|
|
384
|
+
WOO_COMMERCE = "woo-commerce",
|
|
385
|
+
SHOPIFY = "shopify",
|
|
386
|
+
OLIVER = "oliver",
|
|
387
|
+
STANDALONE = "standalone"
|
|
388
|
+
}
|
|
389
|
+
declare enum StationStatus {
|
|
390
|
+
IN_USE = "IN_USE",
|
|
391
|
+
AVAILABLE = "AVAILABLE"
|
|
392
|
+
}
|
|
393
|
+
declare enum InventorySpecificActionType {
|
|
394
|
+
STOCK_RECEIVED = "STOCK_RECEIVED",
|
|
395
|
+
INVENTORY_RECOUNT = "INVENTORY_RECOUNT",
|
|
396
|
+
DAMAGE = "DAMAGE",
|
|
397
|
+
THEFT = "THEFT",
|
|
398
|
+
LOSS = "LOSS",
|
|
399
|
+
RESTOCK_RETURN = "RESTOCK_RETURN",
|
|
400
|
+
REFUND_RESTOCK_RETURN = "REFUND_RESTOCK_RETURN",
|
|
401
|
+
REFUND_DAMAGE = "REFUND_DAMAGE",
|
|
402
|
+
SALE = "SALE",
|
|
403
|
+
TRANSFER = "TRANSFER",
|
|
404
|
+
BULK_RECOUNT = "BULK_RECOUNT",
|
|
405
|
+
APPLIED_FROM_WOO = "APPLIED_FROM_WOO"
|
|
406
|
+
}
|
|
407
|
+
declare enum UserTypes {
|
|
408
|
+
COMPANY_OWNER = "owner",
|
|
409
|
+
ORG_USER = "organization_user",
|
|
410
|
+
ORG_OWNER = "organization_owner",
|
|
411
|
+
FINAL_USER = "final_user",
|
|
412
|
+
FINAL_OWNER = "final_owner",
|
|
413
|
+
EMPLOYEE = "employee",
|
|
414
|
+
SUPER_ADMIN = "super_admin",
|
|
415
|
+
MANAGER = "manager",
|
|
416
|
+
ADMIN = "admin",
|
|
417
|
+
ASSISTANT_MANAGER = "assistant",
|
|
418
|
+
CASHIER = "cashier",
|
|
419
|
+
RESELLER = "reseller"
|
|
420
|
+
}
|
|
421
|
+
declare enum OwnerType {
|
|
422
|
+
API_KEY = "api-key",
|
|
423
|
+
ORGANIZATION = "organization",
|
|
424
|
+
COMPANY = "company"
|
|
425
|
+
}
|
|
426
|
+
declare enum NonRevenueItemType {
|
|
427
|
+
GIFT_CARD = "gift-card"
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
declare enum ProductType {
|
|
431
|
+
SIMPLE = "simple",
|
|
432
|
+
VARIABLE = "variable"
|
|
433
|
+
}
|
|
434
|
+
declare enum ProductStatus {
|
|
435
|
+
ACTIVE = "active",
|
|
436
|
+
INACTIVE = "inactive",
|
|
437
|
+
DRAFT = "draft"
|
|
438
|
+
}
|
|
439
|
+
|
|
218
440
|
interface RefundLineItem {
|
|
219
441
|
taxes?: OrderTax[];
|
|
220
442
|
discount?: RefundDiscount;
|
|
@@ -629,6 +851,74 @@ interface Transaction extends BaseEntity {
|
|
|
629
851
|
minorUnits?: number;
|
|
630
852
|
}
|
|
631
853
|
|
|
854
|
+
type PaymentState = 'unpaid' | 'payment_pending' | 'partially_paid' | 'paid' | 'partially_refunded' | 'refunded' | 'voided';
|
|
855
|
+
type FulfillmentState = 'draft' | 'pending' | 'on_hold' | 'in_progress' | 'fulfilled' | 'partially_fulfilled' | 'returned' | 'partially_returned' | 'cancelled';
|
|
856
|
+
interface StatePair {
|
|
857
|
+
payment: PaymentState;
|
|
858
|
+
fulfillment: FulfillmentState;
|
|
859
|
+
}
|
|
860
|
+
type ConditionOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'notIn' | 'isEmpty' | 'isNotEmpty';
|
|
861
|
+
type PathMode = 'strict' | 'permissive';
|
|
862
|
+
|
|
863
|
+
interface PaymentTransitionPath {
|
|
864
|
+
from: PaymentState;
|
|
865
|
+
to: PaymentState;
|
|
866
|
+
conditionSetId?: string;
|
|
867
|
+
_sourceExtensionId?: string;
|
|
868
|
+
}
|
|
869
|
+
interface FulfillmentTransitionPath {
|
|
870
|
+
from: FulfillmentState;
|
|
871
|
+
to: FulfillmentState;
|
|
872
|
+
conditionSetId?: string;
|
|
873
|
+
_sourceExtensionId?: string;
|
|
874
|
+
}
|
|
875
|
+
interface Condition {
|
|
876
|
+
field: string;
|
|
877
|
+
operator: ConditionOperator;
|
|
878
|
+
value: unknown;
|
|
879
|
+
}
|
|
880
|
+
interface ConditionGroup {
|
|
881
|
+
conditions: Condition[];
|
|
882
|
+
}
|
|
883
|
+
interface TransitionConditionSet {
|
|
884
|
+
id: string;
|
|
885
|
+
label: string;
|
|
886
|
+
groups: ConditionGroup[];
|
|
887
|
+
_sourceExtensionId?: string;
|
|
888
|
+
}
|
|
889
|
+
type CrossAxisTrigger = {
|
|
890
|
+
axis: 'payment';
|
|
891
|
+
to: PaymentState | PaymentState[];
|
|
892
|
+
} | {
|
|
893
|
+
axis: 'fulfillment';
|
|
894
|
+
to: FulfillmentState | FulfillmentState[];
|
|
895
|
+
};
|
|
896
|
+
type CrossAxisRequires = {
|
|
897
|
+
axis: 'payment';
|
|
898
|
+
states: PaymentState[];
|
|
899
|
+
} | {
|
|
900
|
+
axis: 'fulfillment';
|
|
901
|
+
states: FulfillmentState[];
|
|
902
|
+
};
|
|
903
|
+
interface CrossAxisRule {
|
|
904
|
+
id: string;
|
|
905
|
+
label: string;
|
|
906
|
+
description?: string;
|
|
907
|
+
enabled: boolean;
|
|
908
|
+
trigger: CrossAxisTrigger;
|
|
909
|
+
requires: CrossAxisRequires;
|
|
910
|
+
_sourceExtensionId?: string;
|
|
911
|
+
}
|
|
912
|
+
interface DisplayStateRule {
|
|
913
|
+
paymentState?: PaymentState | PaymentState[];
|
|
914
|
+
fulfillmentState?: FulfillmentState | FulfillmentState[];
|
|
915
|
+
label: string;
|
|
916
|
+
color?: string;
|
|
917
|
+
icon?: string;
|
|
918
|
+
_sourceExtensionId?: string;
|
|
919
|
+
}
|
|
920
|
+
type TransitionBlockedBy = 'financial_invariant' | 'cross_axis_rule' | 'path' | 'condition';
|
|
921
|
+
|
|
632
922
|
interface OrderStateConfig extends BaseEntity {
|
|
633
923
|
version: number;
|
|
634
924
|
name: string;
|
|
@@ -1718,7 +2008,7 @@ interface ReaderCapabilities {
|
|
|
1718
2008
|
tapToPay: boolean;
|
|
1719
2009
|
terminal: boolean;
|
|
1720
2010
|
}
|
|
1721
|
-
type ServiceChannelMessageType = 'POSBRAIN_READY' | 'HOST_HELLO' | 'SERVICE_INIT' | 'BOOTSTRAP' | 'TOKEN_REFRESH' | 'SELECTION' | 'HOST_SHUTDOWN' | 'READER_CAPABILITIES' | 'RUNTIME_READY' | 'SYNC_PROGRESS' | 'DEVICE_OP_REQUEST' | 'DEVICE_OP_RESPONSE';
|
|
2011
|
+
type ServiceChannelMessageType = 'POSBRAIN_READY' | 'HOST_HELLO' | 'SERVICE_INIT' | 'BOOTSTRAP' | 'TOKEN_REFRESH' | 'SELECTION' | 'HOST_SHUTDOWN' | 'READER_CAPABILITIES' | 'RUNTIME_READY' | 'HOST_NAVIGATE' | 'SYNC_PROGRESS' | 'DEVICE_OP_REQUEST' | 'DEVICE_OP_RESPONSE';
|
|
1722
2012
|
interface PosBrainReadyMessage {
|
|
1723
2013
|
type: 'POSBRAIN_READY';
|
|
1724
2014
|
}
|
|
@@ -1757,6 +2047,11 @@ interface ReaderCapabilitiesMessage {
|
|
|
1757
2047
|
interface RuntimeReadyMessage {
|
|
1758
2048
|
type: 'RUNTIME_READY';
|
|
1759
2049
|
}
|
|
2050
|
+
type HostNavigateTarget = 'station-home';
|
|
2051
|
+
interface HostNavigateMessage {
|
|
2052
|
+
type: 'HOST_NAVIGATE';
|
|
2053
|
+
target: HostNavigateTarget;
|
|
2054
|
+
}
|
|
1760
2055
|
interface SyncProgressMessage {
|
|
1761
2056
|
type: 'SYNC_PROGRESS';
|
|
1762
2057
|
total: number;
|
|
@@ -1777,6 +2072,6 @@ interface DeviceOpResponseMessage {
|
|
|
1777
2072
|
ok: boolean;
|
|
1778
2073
|
error?: string;
|
|
1779
2074
|
}
|
|
1780
|
-
type ServiceChannelMessage = PosBrainReadyMessage | HostHelloMessage | ServiceInitMessage | BootstrapMessage | TokenRefreshMessage | SelectionMessage | HostShutdownMessage | ReaderCapabilitiesMessage | RuntimeReadyMessage | SyncProgressMessage | DeviceOpRequestMessage | DeviceOpResponseMessage;
|
|
2075
|
+
type ServiceChannelMessage = PosBrainReadyMessage | HostHelloMessage | ServiceInitMessage | BootstrapMessage | TokenRefreshMessage | SelectionMessage | HostShutdownMessage | ReaderCapabilitiesMessage | RuntimeReadyMessage | HostNavigateMessage | SyncProgressMessage | DeviceOpRequestMessage | DeviceOpResponseMessage;
|
|
1781
2076
|
|
|
1782
|
-
export { type ActiveCart, type ActiveCartProduct, type ActiveCompany, type ActiveCustomSales, type ActiveCustomer, type ActiveEntityChanges, ActiveEntityType, type ActiveFullProduct, type ActiveOrder, type ActiveOutlet, type ActivePark, type ActiveProduct, type ActiveRefundOrder, type ActiveSession, type ActiveSplitPayment, type ActiveStation, type ActiveTaxDetails, type ActiveTimer, type ActiveUpdatedOrder, type ActiveUser, type ActiveUserRole, type Address, type Attribute, type AttributeEmbedded, type AttributeOption, type BaseDocument, type BaseEntity, type BaseTile, type BootstrapMessage, type CalculatedTaxDetails, type CartDiscountItem, type CartFeeItem, type CartFeeTaxEntry, type CartFeesDetails, type CashPaymentSettings, type CashRoundingIncrement, type Category, type CompanyExtension, type CompanySettingsEavValue, type CompanySettingsEavValueType, type CustomExtension, type CustomFee, type CustomSale, type CustomSaleDetails, type CustomTable, type CustomTableField, type CustomTableMetadata, type CustomTableRow, type CustomTableValue, type Customer, type CustomerNote, type DeviceEnvAttribute, type DeviceEnvCategory, type DeviceEnvValue, type DeviceOpName, type DeviceOpRequestMessage, type DeviceOpResponseMessage, type Discount, type DiscountDetail, type DiscountLineItem, type Enrich, EnvironmentDataKeys, EnvironmentDataSubKeys, type FeeDetail, type FeeLineItem, type Flow, type FlowSettings, type FlowSettingsKey, type FlowWebApp, type FlowWebAppVersion, type FullProduct, type HostHelloMessage, type HostShutdownMessage, type Inventory, type LineItem, type Metadata, type MetadataItem, type NonRevenueItem, type Note, type Order, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderLineItem, type OrderLineItemDiscount, type OrderLineItemFee, type OrderNote, type OrderPaymentMethod, type OrderPosData, type OrderRefund, type OrderRefundSummary, type OrderStateActor, type OrderStateActorType, type OrderStateConfig, type OrderStateEvent, type OrderStateEventTrigger, type OrderStateHistoryEntry, type OrderStateOperation, type OrderStatePair, type OrderSummary, type OrderSummaryPayments, type OrderTax, type OrderTip, type Outlet, type PaymentMethod, type PaymentResponse, type PaymentSetting, PaymentStatus, type PosBrainReadyMessage, type PosDataItem, type PriceModifierDetail, type PrinterDetails, ProcessorType, type ProdDiscountBreakdown, type ProdFeeBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type Reader, type ReaderCapabilities, type ReaderCapabilitiesMessage, type Refund, type RefundCartDiscount, type RefundDiscount, type RefundItem, type RefundItemDiscount, type RefundLineItem, type RefundPayment, type RefundProcessingStatus, type RefundSummary, type RefundTip, type RefundedCustomSale, type RefundedLineItem, type RefundedTipPayment, type Role, type RolePermission, type RuntimeReadyMessage, type SelectionContext, type SelectionFlowContext, type SelectionMessage, type SelectionRoleContext, type ServiceChannelMessage, type ServiceChannelMessageType, type ServiceInitMessage, type Session, type SessionClosingAmounts, type SmartGridSetting, type SmartGridSettings, type SmartGridSettingsData, type Station, type StripeAccount, type Summary, type SummaryPayments, type SyncProgressMessage, type Tax, type TaxRate, type TaxRateValue, type TaxTable, type TaxTableActive, type TaxTableRate, type TileGrid, type Tip, type TipData, type TipPayment, type TipsDetails, type TokenRefreshMessage, type Transaction, type TransactionPaymentData, type User, type UserType, type Variant, type VariantInventory };
|
|
2077
|
+
export { type ActiveCart, type ActiveCartProduct, type ActiveCompany, type ActiveCustomSales, type ActiveCustomer, type ActiveEntityChanges, ActiveEntityType, type ActiveFullProduct, type ActiveOrder, type ActiveOutlet, type ActivePark, type ActiveProduct, type ActiveRefundOrder, type ActiveSession, type ActiveSplitPayment, type ActiveStation, type ActiveTaxDetails, type ActiveTimer, type ActiveUpdatedOrder, type ActiveUser, type ActiveUserRole, type Address, type Attribute, type AttributeEmbedded, type AttributeOption, type BaseDocument, type BaseEntity, type BaseTile, type BootstrapMessage, type CalculatedTaxDetails, type CartDiscountItem, type CartFeeItem, type CartFeeTaxEntry, type CartFeesDetails, type CashPaymentSettings, type CashRoundingIncrement, type Category, type CompanyExtension, type CompanySettingsEavValue, type CompanySettingsEavValueType, type CustomExtension, type CustomFee, type CustomSale, type CustomSaleDetails, type CustomTable, type CustomTableField, type CustomTableMetadata, type CustomTableRow, type CustomTableValue, type Customer, type CustomerNote, type DeviceEnvAttribute, type DeviceEnvCategory, type DeviceEnvValue, type DeviceOpName, type DeviceOpRequestMessage, type DeviceOpResponseMessage, type Discount, type DiscountDetail, type DiscountLineItem, type Enrich, EnvironmentDataKeys, EnvironmentDataSubKeys, type FeeDetail, type FeeLineItem, type Flow, type FlowSettings, type FlowSettingsKey, type FlowWebApp, type FlowWebAppVersion, type FullProduct, type HostHelloMessage, type HostNavigateMessage, type HostNavigateTarget, type HostShutdownMessage, type Inventory, type LineItem, type Metadata, type MetadataItem, type NonRevenueItem, type Note, type Order, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderLineItem, type OrderLineItemDiscount, type OrderLineItemFee, type OrderNote, type OrderPaymentMethod, type OrderPosData, type OrderRefund, type OrderRefundSummary, type OrderStateActor, type OrderStateActorType, type OrderStateConfig, type OrderStateEvent, type OrderStateEventTrigger, type OrderStateHistoryEntry, type OrderStateOperation, type OrderStatePair, type OrderSummary, type OrderSummaryPayments, type OrderTax, type OrderTip, type Outlet, type PaymentMethod, type PaymentResponse, type PaymentSetting, PaymentStatus, type PosBrainReadyMessage, type PosDataItem, type PriceModifierDetail, type PrinterDetails, ProcessorType, type ProdDiscountBreakdown, type ProdFeeBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type Reader, type ReaderCapabilities, type ReaderCapabilitiesMessage, type Refund, type RefundCartDiscount, type RefundDiscount, type RefundItem, type RefundItemDiscount, type RefundLineItem, type RefundPayment, type RefundProcessingStatus, type RefundSummary, type RefundTip, type RefundedCustomSale, type RefundedLineItem, type RefundedTipPayment, type Role, type RolePermission, type RuntimeReadyMessage, type SelectionContext, type SelectionFlowContext, type SelectionMessage, type SelectionRoleContext, type ServiceChannelMessage, type ServiceChannelMessageType, type ServiceInitMessage, type Session, type SessionClosingAmounts, type SmartGridSetting, type SmartGridSettings, type SmartGridSettingsData, type Station, type StripeAccount, type Summary, type SummaryPayments, type SyncProgressMessage, type Tax, type TaxRate, type TaxRateValue, type TaxTable, type TaxTableActive, type TaxTableRate, type TileGrid, type Tip, type TipData, type TipPayment, type TipsDetails, type TokenRefreshMessage, type Transaction, type TransactionPaymentData, type User, type UserType, type Variant, type VariantInventory };
|
package/dist/pos-types/index.js
CHANGED
|
@@ -17,15 +17,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
19
|
// pos-types/index.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
22
|
ActiveEntityType: () => ActiveEntityType,
|
|
23
23
|
EnvironmentDataKeys: () => EnvironmentDataKeys,
|
|
24
24
|
EnvironmentDataSubKeys: () => EnvironmentDataSubKeys,
|
|
25
25
|
PaymentStatus: () => PaymentStatus,
|
|
26
26
|
ProcessorType: () => ProcessorType
|
|
27
27
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
29
|
|
|
30
30
|
// pos-types/active/PaymentStatus.ts
|
|
31
31
|
var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Shared utilities, types, constants, and engineering governance configs for the Final Commerce platform.",
|
|
5
5
|
"homepage": "https://github.com/Final-Commerce/common#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
},
|
|
13
13
|
"author": "Final-Commerce",
|
|
14
14
|
"publishConfig": {
|
|
15
|
-
"registry": "https://us-npm.pkg.dev/final-preproduction/npm/",
|
|
16
15
|
"access": "public"
|
|
17
16
|
},
|
|
18
17
|
"engines": {
|
|
@@ -156,5 +155,6 @@
|
|
|
156
155
|
"eslint-plugin-react-refresh": {
|
|
157
156
|
"optional": true
|
|
158
157
|
}
|
|
159
|
-
}
|
|
158
|
+
},
|
|
159
|
+
"prettier": "@final-commerce/common/prettier"
|
|
160
160
|
}
|