@shopfront/types 0.0.1-alpha.9 → 0.0.2
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/Database.gen.ts +16 -16
- package/index.ts +2 -1
- package/package.json +10 -3
package/Database.gen.ts
CHANGED
|
@@ -1362,7 +1362,7 @@ export type ProductRepositorySearchOptions = {
|
|
|
1362
1362
|
limit: number;
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
|
-
|
|
1365
|
+
interface ProductSearchDataType {
|
|
1366
1366
|
quantity?: number;
|
|
1367
1367
|
kind?: "product";
|
|
1368
1368
|
searchBarcode?: string;
|
|
@@ -1601,7 +1601,7 @@ export interface LocalDatabaseSaleItemTypeGiftCard {
|
|
|
1601
1601
|
source: string;
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
|
-
|
|
1604
|
+
interface LocalDatabaseSaleItemTypeSurcharge {
|
|
1605
1605
|
type: "Surcharge";
|
|
1606
1606
|
}
|
|
1607
1607
|
|
|
@@ -1827,23 +1827,23 @@ export interface UpdateSaleQueuedDate {
|
|
|
1827
1827
|
internalNote?: string;
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
|
-
|
|
1830
|
+
interface BarcodeQueuedData {
|
|
1831
1831
|
productId: string;
|
|
1832
1832
|
barcode: string;
|
|
1833
1833
|
quantity: number;
|
|
1834
1834
|
}
|
|
1835
1835
|
|
|
1836
|
-
|
|
1836
|
+
interface RegisterOpenQueuedData {
|
|
1837
1837
|
time: string;
|
|
1838
1838
|
id: string;
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
|
-
|
|
1841
|
+
interface UpdateCustomerQueuedData {
|
|
1842
1842
|
customerId: string;
|
|
1843
1843
|
email: string;
|
|
1844
1844
|
}
|
|
1845
1845
|
|
|
1846
|
-
|
|
1846
|
+
interface EmailReceiptQueuedData {
|
|
1847
1847
|
to: string;
|
|
1848
1848
|
register: string | false;
|
|
1849
1849
|
receipt: string;
|
|
@@ -1855,7 +1855,7 @@ export interface EmailReceiptQueuedData {
|
|
|
1855
1855
|
}>;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
|
|
1858
|
+
interface ActionQueuedData {
|
|
1859
1859
|
user: string;
|
|
1860
1860
|
affectingType: string;
|
|
1861
1861
|
affectingId: string;
|
|
@@ -1864,7 +1864,7 @@ export interface ActionQueuedData {
|
|
|
1864
1864
|
createdAt?: string;
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
|
-
|
|
1867
|
+
interface TakingQueuedData extends Omit<LocalDatabaseMovement, "denominations"> {
|
|
1868
1868
|
denominations: {
|
|
1869
1869
|
in?: Array<{
|
|
1870
1870
|
denomination: number;
|
|
@@ -1877,13 +1877,13 @@ export interface TakingQueuedData extends Omit<LocalDatabaseMovement, "denominat
|
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
|
-
|
|
1880
|
+
interface UnparkSaleQueuedData {
|
|
1881
1881
|
id: string;
|
|
1882
1882
|
time: string | null;
|
|
1883
1883
|
register: string | null;
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
|
-
|
|
1886
|
+
interface CustomerPaymentQueuedData {
|
|
1887
1887
|
customer: string;
|
|
1888
1888
|
paymentMethod: string;
|
|
1889
1889
|
paymentMethodSubtype: string | undefined;
|
|
@@ -1898,7 +1898,7 @@ export interface CustomerPaymentQueuedData {
|
|
|
1898
1898
|
}>;
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
1901
|
-
|
|
1901
|
+
interface EmailComponentQueuedData {
|
|
1902
1902
|
to: string | Array<string>;
|
|
1903
1903
|
subject: string;
|
|
1904
1904
|
attachments?: Array<{
|
|
@@ -1912,7 +1912,7 @@ export interface EmailComponentQueuedData {
|
|
|
1912
1912
|
width?: number;
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
|
|
1915
|
+
interface RegisterClosureQueuedData {
|
|
1916
1916
|
user: string;
|
|
1917
1917
|
register: string;
|
|
1918
1918
|
paymentMethods: Array<{
|
|
@@ -1926,17 +1926,17 @@ export interface RegisterClosureQueuedData {
|
|
|
1926
1926
|
note: string;
|
|
1927
1927
|
}
|
|
1928
1928
|
|
|
1929
|
-
|
|
1929
|
+
interface StocktakeCountQueuedData {
|
|
1930
1930
|
stocktake: string;
|
|
1931
1931
|
items: Array<number>;
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
|
-
|
|
1934
|
+
interface ErrorQueuedData {
|
|
1935
1935
|
subject: string;
|
|
1936
1936
|
body: string;
|
|
1937
1937
|
}
|
|
1938
1938
|
|
|
1939
|
-
|
|
1939
|
+
interface SecurityEventQueuedData {
|
|
1940
1940
|
user: string | null;
|
|
1941
1941
|
register: string | null;
|
|
1942
1942
|
outlet: string | null;
|
|
@@ -1945,7 +1945,7 @@ export interface SecurityEventQueuedData {
|
|
|
1945
1945
|
timestamp: string;
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
|
-
|
|
1948
|
+
interface KitchenOrderQueuedData {
|
|
1949
1949
|
version: number;
|
|
1950
1950
|
sale: string;
|
|
1951
1951
|
ready: boolean;
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopfront/types",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./index.ts",
|
|
6
|
+
"types": "./index.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.ts",
|
|
10
|
+
"import": "./index.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
6
13
|
"files": [
|
|
7
14
|
"index.ts",
|
|
8
15
|
"Scopes.gen.ts",
|