@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50
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/ApprovalView-CyIOcyG5.js +140 -0
- package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
- package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
- package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
- package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
- package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
- package/dist/IngredientGroupView-C0hPeD41.js +608 -0
- package/dist/IngredientsView-CpwVIGXd.js +1608 -0
- package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
- package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
- package/dist/RecipeView-D0WsMfKm.js +594 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-sxI0L6MP.js +7770 -0
- package/dist/SupplierView-clAkARuW.js +1468 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
- package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
- package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
- package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +282 -91
- package/dist/api/netsuite.d.ts +71 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
- package/dist/app.d.ts +88 -3
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
- package/dist/defineDeepModel-BXP1vLGf.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/format-time-from-id-DgW7OJL_.js +15 -0
- package/dist/format-unit-display-BP4O0Pym.js +1195 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +294 -9
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/style.css +1 -1
- package/dist/supplier-D-8XhuF_.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1038
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1277 -1478
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -247
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
- package/dist/xlsx.util-CxGmvsp9.js +78 -0
- package/package.json +10 -7
- package/dist/ApprovalView-BdaNwUBc.js +0 -129
- package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
- package/dist/IngredientsView-GqrkpCm5.js +0 -1758
- package/dist/IntegrationView-7c3MpUzS.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
- package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
- package/dist/RecipeView-C6tZPQ-K.js +0 -581
- package/dist/StockView-4uXHYz4E.js +0 -1892
- package/dist/SupplierView-CuWvKCWY.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
- package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
- package/dist/defineDeepModel-BKAs9qN6.js +0 -13
- package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
- package/dist/id-to-date-D1lOqIir.js +0 -30
- package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
- package/dist/supplier-BIDBk5S6.js +0 -69
- package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
- package/dist/xlsx.util-BKFiH-ig.js +0 -109
|
@@ -8,94 +8,18 @@ export declare const InventoryLocationType: {
|
|
|
8
8
|
export type InventoryLocation = FdoInventoryLocation;
|
|
9
9
|
export declare function useLocationStore(): {
|
|
10
10
|
_currentLocation: {
|
|
11
|
-
|
|
12
|
-
type: "restaurant";
|
|
13
|
-
name: string;
|
|
14
|
-
acceptRequest: boolean;
|
|
15
|
-
dbName: string;
|
|
16
|
-
} | {
|
|
17
|
-
type: "warehouse";
|
|
11
|
+
type: "restaurant" | "warehouse";
|
|
18
12
|
name: string;
|
|
19
13
|
acceptRequest: boolean;
|
|
20
14
|
dbName: string;
|
|
21
15
|
doc: {
|
|
22
|
-
pf_business?: {
|
|
23
|
-
internal?: boolean | null | undefined;
|
|
24
|
-
url?: string | null | undefined;
|
|
25
|
-
expiredAt?: string | null | undefined;
|
|
26
|
-
agentId?: string | null | undefined;
|
|
27
|
-
restaurantTagGroups?: {
|
|
28
|
-
name: string;
|
|
29
|
-
id: string;
|
|
30
|
-
tags: {
|
|
31
|
-
name: string;
|
|
32
|
-
id: string;
|
|
33
|
-
}[];
|
|
34
|
-
}[] | null | undefined;
|
|
35
|
-
pf_agent?: {
|
|
36
|
-
clickupId?: string | null | undefined;
|
|
37
|
-
members?: {
|
|
38
|
-
pf_user?: {
|
|
39
|
-
email?: string | null | undefined;
|
|
40
|
-
phoneNumber?: string | null | undefined;
|
|
41
|
-
birthday?: string | null | undefined;
|
|
42
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
43
|
-
addresses?: {
|
|
44
|
-
name: string;
|
|
45
|
-
address: string;
|
|
46
|
-
coordinates: number[];
|
|
47
|
-
}[] | null | undefined;
|
|
48
|
-
photoURL?: string | null | undefined;
|
|
49
|
-
displayName?: string | null | undefined;
|
|
50
|
-
imported?: {
|
|
51
|
-
raw: Record<string, any>;
|
|
52
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
53
|
-
} | null | undefined;
|
|
54
|
-
_id: string;
|
|
55
|
-
} | null | undefined;
|
|
56
|
-
role: "ADMIN";
|
|
57
|
-
userId: string;
|
|
58
|
-
}[] | null | undefined;
|
|
59
|
-
code: string;
|
|
60
|
-
name: string;
|
|
61
|
-
_id: string;
|
|
62
|
-
isReseller: boolean;
|
|
63
|
-
} | null | undefined;
|
|
64
|
-
thumbnail?: string | null | undefined;
|
|
65
|
-
billingInfos?: {
|
|
66
|
-
_id?: string | null | undefined;
|
|
67
|
-
name: string;
|
|
68
|
-
address: {
|
|
69
|
-
coordinates?: number[] | null | undefined;
|
|
70
|
-
line2?: string | null | undefined;
|
|
71
|
-
state: string;
|
|
72
|
-
country: string;
|
|
73
|
-
line1: string;
|
|
74
|
-
city: string;
|
|
75
|
-
postcode: string;
|
|
76
|
-
};
|
|
77
|
-
email: string;
|
|
78
|
-
companyName: string;
|
|
79
|
-
contact: string;
|
|
80
|
-
}[] | null | undefined;
|
|
81
|
-
customerDisplayImages?: {
|
|
82
|
-
url: string;
|
|
83
|
-
restaurantIds: string[];
|
|
84
|
-
}[] | null | undefined;
|
|
85
|
-
name: string;
|
|
86
|
-
_id: string;
|
|
87
|
-
ownerId: string;
|
|
88
|
-
restaurantQuota: number;
|
|
89
|
-
warehouseQuota: number;
|
|
90
|
-
menuVersion: string;
|
|
91
|
-
} | null | undefined;
|
|
92
16
|
_id: string;
|
|
93
17
|
businessId: string;
|
|
94
18
|
profile: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
name
|
|
98
|
-
address
|
|
19
|
+
code?: string | null | undefined;
|
|
20
|
+
_id?: string | null | undefined;
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
address?: {
|
|
99
23
|
coordinates?: number[] | null | undefined;
|
|
100
24
|
line2?: string | null | undefined;
|
|
101
25
|
state: string;
|
|
@@ -103,100 +27,86 @@ export declare function useLocationStore(): {
|
|
|
103
27
|
line1: string;
|
|
104
28
|
city: string;
|
|
105
29
|
postcode: string;
|
|
106
|
-
};
|
|
107
|
-
|
|
30
|
+
} | undefined;
|
|
31
|
+
email?: string | undefined;
|
|
32
|
+
regNo?: string | undefined;
|
|
33
|
+
sstRegNo?: string | null | undefined;
|
|
34
|
+
phoneNo?: string | undefined;
|
|
35
|
+
legalName?: string | null | undefined;
|
|
36
|
+
discovery?: boolean | null | undefined;
|
|
37
|
+
coverPhoto?: string | null | undefined;
|
|
38
|
+
thumbnailPhoto?: string | null | undefined;
|
|
39
|
+
description?: string | null | undefined;
|
|
40
|
+
photos?: string[] | null | undefined;
|
|
41
|
+
operatingHours?: {
|
|
42
|
+
0: {
|
|
43
|
+
hours: {
|
|
44
|
+
end: string;
|
|
45
|
+
start: string;
|
|
46
|
+
}[];
|
|
47
|
+
enable: boolean;
|
|
48
|
+
};
|
|
49
|
+
2: {
|
|
50
|
+
hours: {
|
|
51
|
+
end: string;
|
|
52
|
+
start: string;
|
|
53
|
+
}[];
|
|
54
|
+
enable: boolean;
|
|
55
|
+
};
|
|
56
|
+
1: {
|
|
57
|
+
hours: {
|
|
58
|
+
end: string;
|
|
59
|
+
start: string;
|
|
60
|
+
}[];
|
|
61
|
+
enable: boolean;
|
|
62
|
+
};
|
|
63
|
+
3: {
|
|
64
|
+
hours: {
|
|
65
|
+
end: string;
|
|
66
|
+
start: string;
|
|
67
|
+
}[];
|
|
68
|
+
enable: boolean;
|
|
69
|
+
};
|
|
70
|
+
4: {
|
|
71
|
+
hours: {
|
|
72
|
+
end: string;
|
|
73
|
+
start: string;
|
|
74
|
+
}[];
|
|
75
|
+
enable: boolean;
|
|
76
|
+
};
|
|
77
|
+
5: {
|
|
78
|
+
hours: {
|
|
79
|
+
end: string;
|
|
80
|
+
start: string;
|
|
81
|
+
}[];
|
|
82
|
+
enable: boolean;
|
|
83
|
+
};
|
|
84
|
+
6: {
|
|
85
|
+
hours: {
|
|
86
|
+
end: string;
|
|
87
|
+
start: string;
|
|
88
|
+
}[];
|
|
89
|
+
enable: boolean;
|
|
90
|
+
};
|
|
91
|
+
} | null | undefined;
|
|
92
|
+
tags?: string[] | null | undefined;
|
|
93
|
+
url?: string | null | undefined;
|
|
108
94
|
};
|
|
109
95
|
};
|
|
110
96
|
} | null;
|
|
111
|
-
_locations:
|
|
112
|
-
|
|
113
|
-
type: "restaurant";
|
|
114
|
-
name: string;
|
|
115
|
-
acceptRequest: boolean;
|
|
116
|
-
dbName: string;
|
|
117
|
-
} | {
|
|
118
|
-
type: "warehouse";
|
|
97
|
+
_locations: {
|
|
98
|
+
type: "restaurant" | "warehouse";
|
|
119
99
|
name: string;
|
|
120
100
|
acceptRequest: boolean;
|
|
121
101
|
dbName: string;
|
|
122
102
|
doc: {
|
|
123
|
-
pf_business?: {
|
|
124
|
-
internal?: boolean | null | undefined;
|
|
125
|
-
url?: string | null | undefined;
|
|
126
|
-
expiredAt?: string | null | undefined;
|
|
127
|
-
agentId?: string | null | undefined;
|
|
128
|
-
restaurantTagGroups?: {
|
|
129
|
-
name: string;
|
|
130
|
-
id: string;
|
|
131
|
-
tags: {
|
|
132
|
-
name: string;
|
|
133
|
-
id: string;
|
|
134
|
-
}[];
|
|
135
|
-
}[] | null | undefined;
|
|
136
|
-
pf_agent?: {
|
|
137
|
-
clickupId?: string | null | undefined;
|
|
138
|
-
members?: {
|
|
139
|
-
pf_user?: {
|
|
140
|
-
email?: string | null | undefined;
|
|
141
|
-
phoneNumber?: string | null | undefined;
|
|
142
|
-
birthday?: string | null | undefined;
|
|
143
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
144
|
-
addresses?: {
|
|
145
|
-
name: string;
|
|
146
|
-
address: string;
|
|
147
|
-
coordinates: number[];
|
|
148
|
-
}[] | null | undefined;
|
|
149
|
-
photoURL?: string | null | undefined;
|
|
150
|
-
displayName?: string | null | undefined;
|
|
151
|
-
imported?: {
|
|
152
|
-
raw: Record<string, any>;
|
|
153
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
154
|
-
} | null | undefined;
|
|
155
|
-
_id: string;
|
|
156
|
-
} | null | undefined;
|
|
157
|
-
role: "ADMIN";
|
|
158
|
-
userId: string;
|
|
159
|
-
}[] | null | undefined;
|
|
160
|
-
code: string;
|
|
161
|
-
name: string;
|
|
162
|
-
_id: string;
|
|
163
|
-
isReseller: boolean;
|
|
164
|
-
} | null | undefined;
|
|
165
|
-
thumbnail?: string | null | undefined;
|
|
166
|
-
billingInfos?: {
|
|
167
|
-
_id?: string | null | undefined;
|
|
168
|
-
name: string;
|
|
169
|
-
address: {
|
|
170
|
-
coordinates?: number[] | null | undefined;
|
|
171
|
-
line2?: string | null | undefined;
|
|
172
|
-
state: string;
|
|
173
|
-
country: string;
|
|
174
|
-
line1: string;
|
|
175
|
-
city: string;
|
|
176
|
-
postcode: string;
|
|
177
|
-
};
|
|
178
|
-
email: string;
|
|
179
|
-
companyName: string;
|
|
180
|
-
contact: string;
|
|
181
|
-
}[] | null | undefined;
|
|
182
|
-
customerDisplayImages?: {
|
|
183
|
-
url: string;
|
|
184
|
-
restaurantIds: string[];
|
|
185
|
-
}[] | null | undefined;
|
|
186
|
-
name: string;
|
|
187
|
-
_id: string;
|
|
188
|
-
ownerId: string;
|
|
189
|
-
restaurantQuota: number;
|
|
190
|
-
warehouseQuota: number;
|
|
191
|
-
menuVersion: string;
|
|
192
|
-
} | null | undefined;
|
|
193
103
|
_id: string;
|
|
194
104
|
businessId: string;
|
|
195
105
|
profile: {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
name
|
|
199
|
-
address
|
|
106
|
+
code?: string | null | undefined;
|
|
107
|
+
_id?: string | null | undefined;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
address?: {
|
|
200
110
|
coordinates?: number[] | null | undefined;
|
|
201
111
|
line2?: string | null | undefined;
|
|
202
112
|
state: string;
|
|
@@ -204,101 +114,87 @@ export declare function useLocationStore(): {
|
|
|
204
114
|
line1: string;
|
|
205
115
|
city: string;
|
|
206
116
|
postcode: string;
|
|
207
|
-
};
|
|
208
|
-
|
|
117
|
+
} | undefined;
|
|
118
|
+
email?: string | undefined;
|
|
119
|
+
regNo?: string | undefined;
|
|
120
|
+
sstRegNo?: string | null | undefined;
|
|
121
|
+
phoneNo?: string | undefined;
|
|
122
|
+
legalName?: string | null | undefined;
|
|
123
|
+
discovery?: boolean | null | undefined;
|
|
124
|
+
coverPhoto?: string | null | undefined;
|
|
125
|
+
thumbnailPhoto?: string | null | undefined;
|
|
126
|
+
description?: string | null | undefined;
|
|
127
|
+
photos?: string[] | null | undefined;
|
|
128
|
+
operatingHours?: {
|
|
129
|
+
0: {
|
|
130
|
+
hours: {
|
|
131
|
+
end: string;
|
|
132
|
+
start: string;
|
|
133
|
+
}[];
|
|
134
|
+
enable: boolean;
|
|
135
|
+
};
|
|
136
|
+
2: {
|
|
137
|
+
hours: {
|
|
138
|
+
end: string;
|
|
139
|
+
start: string;
|
|
140
|
+
}[];
|
|
141
|
+
enable: boolean;
|
|
142
|
+
};
|
|
143
|
+
1: {
|
|
144
|
+
hours: {
|
|
145
|
+
end: string;
|
|
146
|
+
start: string;
|
|
147
|
+
}[];
|
|
148
|
+
enable: boolean;
|
|
149
|
+
};
|
|
150
|
+
3: {
|
|
151
|
+
hours: {
|
|
152
|
+
end: string;
|
|
153
|
+
start: string;
|
|
154
|
+
}[];
|
|
155
|
+
enable: boolean;
|
|
156
|
+
};
|
|
157
|
+
4: {
|
|
158
|
+
hours: {
|
|
159
|
+
end: string;
|
|
160
|
+
start: string;
|
|
161
|
+
}[];
|
|
162
|
+
enable: boolean;
|
|
163
|
+
};
|
|
164
|
+
5: {
|
|
165
|
+
hours: {
|
|
166
|
+
end: string;
|
|
167
|
+
start: string;
|
|
168
|
+
}[];
|
|
169
|
+
enable: boolean;
|
|
170
|
+
};
|
|
171
|
+
6: {
|
|
172
|
+
hours: {
|
|
173
|
+
end: string;
|
|
174
|
+
start: string;
|
|
175
|
+
}[];
|
|
176
|
+
enable: boolean;
|
|
177
|
+
};
|
|
178
|
+
} | null | undefined;
|
|
179
|
+
tags?: string[] | null | undefined;
|
|
180
|
+
url?: string | null | undefined;
|
|
209
181
|
};
|
|
210
182
|
};
|
|
211
|
-
}
|
|
183
|
+
}[] | null;
|
|
212
184
|
readonly state: {
|
|
213
185
|
_currentLocation: {
|
|
214
|
-
|
|
215
|
-
type: "restaurant";
|
|
216
|
-
name: string;
|
|
217
|
-
acceptRequest: boolean;
|
|
218
|
-
dbName: string;
|
|
219
|
-
} | {
|
|
220
|
-
type: "warehouse";
|
|
186
|
+
type: "restaurant" | "warehouse";
|
|
221
187
|
name: string;
|
|
222
188
|
acceptRequest: boolean;
|
|
223
189
|
dbName: string;
|
|
224
190
|
doc: {
|
|
225
|
-
pf_business?: {
|
|
226
|
-
internal?: boolean | null | undefined;
|
|
227
|
-
url?: string | null | undefined;
|
|
228
|
-
expiredAt?: string | null | undefined;
|
|
229
|
-
agentId?: string | null | undefined;
|
|
230
|
-
restaurantTagGroups?: {
|
|
231
|
-
name: string;
|
|
232
|
-
id: string;
|
|
233
|
-
tags: {
|
|
234
|
-
name: string;
|
|
235
|
-
id: string;
|
|
236
|
-
}[];
|
|
237
|
-
}[] | null | undefined;
|
|
238
|
-
pf_agent?: {
|
|
239
|
-
clickupId?: string | null | undefined;
|
|
240
|
-
members?: {
|
|
241
|
-
pf_user?: {
|
|
242
|
-
email?: string | null | undefined;
|
|
243
|
-
phoneNumber?: string | null | undefined;
|
|
244
|
-
birthday?: string | null | undefined;
|
|
245
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
246
|
-
addresses?: {
|
|
247
|
-
name: string;
|
|
248
|
-
address: string;
|
|
249
|
-
coordinates: number[];
|
|
250
|
-
}[] | null | undefined;
|
|
251
|
-
photoURL?: string | null | undefined;
|
|
252
|
-
displayName?: string | null | undefined;
|
|
253
|
-
imported?: {
|
|
254
|
-
raw: Record<string, any>;
|
|
255
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
256
|
-
} | null | undefined;
|
|
257
|
-
_id: string;
|
|
258
|
-
} | null | undefined;
|
|
259
|
-
role: "ADMIN";
|
|
260
|
-
userId: string;
|
|
261
|
-
}[] | null | undefined;
|
|
262
|
-
code: string;
|
|
263
|
-
name: string;
|
|
264
|
-
_id: string;
|
|
265
|
-
isReseller: boolean;
|
|
266
|
-
} | null | undefined;
|
|
267
|
-
thumbnail?: string | null | undefined;
|
|
268
|
-
billingInfos?: {
|
|
269
|
-
_id?: string | null | undefined;
|
|
270
|
-
name: string;
|
|
271
|
-
address: {
|
|
272
|
-
coordinates?: number[] | null | undefined;
|
|
273
|
-
line2?: string | null | undefined;
|
|
274
|
-
state: string;
|
|
275
|
-
country: string;
|
|
276
|
-
line1: string;
|
|
277
|
-
city: string;
|
|
278
|
-
postcode: string;
|
|
279
|
-
};
|
|
280
|
-
email: string;
|
|
281
|
-
companyName: string;
|
|
282
|
-
contact: string;
|
|
283
|
-
}[] | null | undefined;
|
|
284
|
-
customerDisplayImages?: {
|
|
285
|
-
url: string;
|
|
286
|
-
restaurantIds: string[];
|
|
287
|
-
}[] | null | undefined;
|
|
288
|
-
name: string;
|
|
289
|
-
_id: string;
|
|
290
|
-
ownerId: string;
|
|
291
|
-
restaurantQuota: number;
|
|
292
|
-
warehouseQuota: number;
|
|
293
|
-
menuVersion: string;
|
|
294
|
-
} | null | undefined;
|
|
295
191
|
_id: string;
|
|
296
192
|
businessId: string;
|
|
297
193
|
profile: {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
name
|
|
301
|
-
address
|
|
194
|
+
code?: string | null | undefined;
|
|
195
|
+
_id?: string | null | undefined;
|
|
196
|
+
name?: string | undefined;
|
|
197
|
+
address?: {
|
|
302
198
|
coordinates?: number[] | null | undefined;
|
|
303
199
|
line2?: string | null | undefined;
|
|
304
200
|
state: string;
|
|
@@ -306,100 +202,86 @@ export declare function useLocationStore(): {
|
|
|
306
202
|
line1: string;
|
|
307
203
|
city: string;
|
|
308
204
|
postcode: string;
|
|
309
|
-
};
|
|
310
|
-
|
|
205
|
+
} | undefined;
|
|
206
|
+
email?: string | undefined;
|
|
207
|
+
regNo?: string | undefined;
|
|
208
|
+
sstRegNo?: string | null | undefined;
|
|
209
|
+
phoneNo?: string | undefined;
|
|
210
|
+
legalName?: string | null | undefined;
|
|
211
|
+
discovery?: boolean | null | undefined;
|
|
212
|
+
coverPhoto?: string | null | undefined;
|
|
213
|
+
thumbnailPhoto?: string | null | undefined;
|
|
214
|
+
description?: string | null | undefined;
|
|
215
|
+
photos?: string[] | null | undefined;
|
|
216
|
+
operatingHours?: {
|
|
217
|
+
0: {
|
|
218
|
+
hours: {
|
|
219
|
+
end: string;
|
|
220
|
+
start: string;
|
|
221
|
+
}[];
|
|
222
|
+
enable: boolean;
|
|
223
|
+
};
|
|
224
|
+
2: {
|
|
225
|
+
hours: {
|
|
226
|
+
end: string;
|
|
227
|
+
start: string;
|
|
228
|
+
}[];
|
|
229
|
+
enable: boolean;
|
|
230
|
+
};
|
|
231
|
+
1: {
|
|
232
|
+
hours: {
|
|
233
|
+
end: string;
|
|
234
|
+
start: string;
|
|
235
|
+
}[];
|
|
236
|
+
enable: boolean;
|
|
237
|
+
};
|
|
238
|
+
3: {
|
|
239
|
+
hours: {
|
|
240
|
+
end: string;
|
|
241
|
+
start: string;
|
|
242
|
+
}[];
|
|
243
|
+
enable: boolean;
|
|
244
|
+
};
|
|
245
|
+
4: {
|
|
246
|
+
hours: {
|
|
247
|
+
end: string;
|
|
248
|
+
start: string;
|
|
249
|
+
}[];
|
|
250
|
+
enable: boolean;
|
|
251
|
+
};
|
|
252
|
+
5: {
|
|
253
|
+
hours: {
|
|
254
|
+
end: string;
|
|
255
|
+
start: string;
|
|
256
|
+
}[];
|
|
257
|
+
enable: boolean;
|
|
258
|
+
};
|
|
259
|
+
6: {
|
|
260
|
+
hours: {
|
|
261
|
+
end: string;
|
|
262
|
+
start: string;
|
|
263
|
+
}[];
|
|
264
|
+
enable: boolean;
|
|
265
|
+
};
|
|
266
|
+
} | null | undefined;
|
|
267
|
+
tags?: string[] | null | undefined;
|
|
268
|
+
url?: string | null | undefined;
|
|
311
269
|
};
|
|
312
270
|
};
|
|
313
271
|
} | null;
|
|
314
|
-
_locations:
|
|
315
|
-
|
|
316
|
-
type: "restaurant";
|
|
317
|
-
name: string;
|
|
318
|
-
acceptRequest: boolean;
|
|
319
|
-
dbName: string;
|
|
320
|
-
} | {
|
|
321
|
-
type: "warehouse";
|
|
272
|
+
_locations: {
|
|
273
|
+
type: "restaurant" | "warehouse";
|
|
322
274
|
name: string;
|
|
323
275
|
acceptRequest: boolean;
|
|
324
276
|
dbName: string;
|
|
325
277
|
doc: {
|
|
326
|
-
pf_business?: {
|
|
327
|
-
internal?: boolean | null | undefined;
|
|
328
|
-
url?: string | null | undefined;
|
|
329
|
-
expiredAt?: string | null | undefined;
|
|
330
|
-
agentId?: string | null | undefined;
|
|
331
|
-
restaurantTagGroups?: {
|
|
332
|
-
name: string;
|
|
333
|
-
id: string;
|
|
334
|
-
tags: {
|
|
335
|
-
name: string;
|
|
336
|
-
id: string;
|
|
337
|
-
}[];
|
|
338
|
-
}[] | null | undefined;
|
|
339
|
-
pf_agent?: {
|
|
340
|
-
clickupId?: string | null | undefined;
|
|
341
|
-
members?: {
|
|
342
|
-
pf_user?: {
|
|
343
|
-
email?: string | null | undefined;
|
|
344
|
-
phoneNumber?: string | null | undefined;
|
|
345
|
-
birthday?: string | null | undefined;
|
|
346
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
347
|
-
addresses?: {
|
|
348
|
-
name: string;
|
|
349
|
-
address: string;
|
|
350
|
-
coordinates: number[];
|
|
351
|
-
}[] | null | undefined;
|
|
352
|
-
photoURL?: string | null | undefined;
|
|
353
|
-
displayName?: string | null | undefined;
|
|
354
|
-
imported?: {
|
|
355
|
-
raw: Record<string, any>;
|
|
356
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
357
|
-
} | null | undefined;
|
|
358
|
-
_id: string;
|
|
359
|
-
} | null | undefined;
|
|
360
|
-
role: "ADMIN";
|
|
361
|
-
userId: string;
|
|
362
|
-
}[] | null | undefined;
|
|
363
|
-
code: string;
|
|
364
|
-
name: string;
|
|
365
|
-
_id: string;
|
|
366
|
-
isReseller: boolean;
|
|
367
|
-
} | null | undefined;
|
|
368
|
-
thumbnail?: string | null | undefined;
|
|
369
|
-
billingInfos?: {
|
|
370
|
-
_id?: string | null | undefined;
|
|
371
|
-
name: string;
|
|
372
|
-
address: {
|
|
373
|
-
coordinates?: number[] | null | undefined;
|
|
374
|
-
line2?: string | null | undefined;
|
|
375
|
-
state: string;
|
|
376
|
-
country: string;
|
|
377
|
-
line1: string;
|
|
378
|
-
city: string;
|
|
379
|
-
postcode: string;
|
|
380
|
-
};
|
|
381
|
-
email: string;
|
|
382
|
-
companyName: string;
|
|
383
|
-
contact: string;
|
|
384
|
-
}[] | null | undefined;
|
|
385
|
-
customerDisplayImages?: {
|
|
386
|
-
url: string;
|
|
387
|
-
restaurantIds: string[];
|
|
388
|
-
}[] | null | undefined;
|
|
389
|
-
name: string;
|
|
390
|
-
_id: string;
|
|
391
|
-
ownerId: string;
|
|
392
|
-
restaurantQuota: number;
|
|
393
|
-
warehouseQuota: number;
|
|
394
|
-
menuVersion: string;
|
|
395
|
-
} | null | undefined;
|
|
396
278
|
_id: string;
|
|
397
279
|
businessId: string;
|
|
398
280
|
profile: {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
name
|
|
402
|
-
address
|
|
281
|
+
code?: string | null | undefined;
|
|
282
|
+
_id?: string | null | undefined;
|
|
283
|
+
name?: string | undefined;
|
|
284
|
+
address?: {
|
|
403
285
|
coordinates?: number[] | null | undefined;
|
|
404
286
|
line2?: string | null | undefined;
|
|
405
287
|
state: string;
|
|
@@ -407,101 +289,87 @@ export declare function useLocationStore(): {
|
|
|
407
289
|
line1: string;
|
|
408
290
|
city: string;
|
|
409
291
|
postcode: string;
|
|
410
|
-
};
|
|
411
|
-
|
|
292
|
+
} | undefined;
|
|
293
|
+
email?: string | undefined;
|
|
294
|
+
regNo?: string | undefined;
|
|
295
|
+
sstRegNo?: string | null | undefined;
|
|
296
|
+
phoneNo?: string | undefined;
|
|
297
|
+
legalName?: string | null | undefined;
|
|
298
|
+
discovery?: boolean | null | undefined;
|
|
299
|
+
coverPhoto?: string | null | undefined;
|
|
300
|
+
thumbnailPhoto?: string | null | undefined;
|
|
301
|
+
description?: string | null | undefined;
|
|
302
|
+
photos?: string[] | null | undefined;
|
|
303
|
+
operatingHours?: {
|
|
304
|
+
0: {
|
|
305
|
+
hours: {
|
|
306
|
+
end: string;
|
|
307
|
+
start: string;
|
|
308
|
+
}[];
|
|
309
|
+
enable: boolean;
|
|
310
|
+
};
|
|
311
|
+
2: {
|
|
312
|
+
hours: {
|
|
313
|
+
end: string;
|
|
314
|
+
start: string;
|
|
315
|
+
}[];
|
|
316
|
+
enable: boolean;
|
|
317
|
+
};
|
|
318
|
+
1: {
|
|
319
|
+
hours: {
|
|
320
|
+
end: string;
|
|
321
|
+
start: string;
|
|
322
|
+
}[];
|
|
323
|
+
enable: boolean;
|
|
324
|
+
};
|
|
325
|
+
3: {
|
|
326
|
+
hours: {
|
|
327
|
+
end: string;
|
|
328
|
+
start: string;
|
|
329
|
+
}[];
|
|
330
|
+
enable: boolean;
|
|
331
|
+
};
|
|
332
|
+
4: {
|
|
333
|
+
hours: {
|
|
334
|
+
end: string;
|
|
335
|
+
start: string;
|
|
336
|
+
}[];
|
|
337
|
+
enable: boolean;
|
|
338
|
+
};
|
|
339
|
+
5: {
|
|
340
|
+
hours: {
|
|
341
|
+
end: string;
|
|
342
|
+
start: string;
|
|
343
|
+
}[];
|
|
344
|
+
enable: boolean;
|
|
345
|
+
};
|
|
346
|
+
6: {
|
|
347
|
+
hours: {
|
|
348
|
+
end: string;
|
|
349
|
+
start: string;
|
|
350
|
+
}[];
|
|
351
|
+
enable: boolean;
|
|
352
|
+
};
|
|
353
|
+
} | null | undefined;
|
|
354
|
+
tags?: string[] | null | undefined;
|
|
355
|
+
url?: string | null | undefined;
|
|
412
356
|
};
|
|
413
357
|
};
|
|
414
|
-
}
|
|
358
|
+
}[] | null;
|
|
415
359
|
};
|
|
416
360
|
readonly currentLocation: {
|
|
417
|
-
|
|
418
|
-
type: "restaurant";
|
|
419
|
-
name: string;
|
|
420
|
-
acceptRequest: boolean;
|
|
421
|
-
dbName: string;
|
|
422
|
-
} | {
|
|
423
|
-
type: "warehouse";
|
|
361
|
+
type: "restaurant" | "warehouse";
|
|
424
362
|
name: string;
|
|
425
363
|
acceptRequest: boolean;
|
|
426
364
|
dbName: string;
|
|
427
365
|
doc: {
|
|
428
|
-
pf_business?: {
|
|
429
|
-
internal?: boolean | null | undefined;
|
|
430
|
-
url?: string | null | undefined;
|
|
431
|
-
expiredAt?: string | null | undefined;
|
|
432
|
-
agentId?: string | null | undefined;
|
|
433
|
-
restaurantTagGroups?: {
|
|
434
|
-
name: string;
|
|
435
|
-
id: string;
|
|
436
|
-
tags: {
|
|
437
|
-
name: string;
|
|
438
|
-
id: string;
|
|
439
|
-
}[];
|
|
440
|
-
}[] | null | undefined;
|
|
441
|
-
pf_agent?: {
|
|
442
|
-
clickupId?: string | null | undefined;
|
|
443
|
-
members?: {
|
|
444
|
-
pf_user?: {
|
|
445
|
-
email?: string | null | undefined;
|
|
446
|
-
phoneNumber?: string | null | undefined;
|
|
447
|
-
birthday?: string | null | undefined;
|
|
448
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
449
|
-
addresses?: {
|
|
450
|
-
name: string;
|
|
451
|
-
address: string;
|
|
452
|
-
coordinates: number[];
|
|
453
|
-
}[] | null | undefined;
|
|
454
|
-
photoURL?: string | null | undefined;
|
|
455
|
-
displayName?: string | null | undefined;
|
|
456
|
-
imported?: {
|
|
457
|
-
raw: Record<string, any>;
|
|
458
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
459
|
-
} | null | undefined;
|
|
460
|
-
_id: string;
|
|
461
|
-
} | null | undefined;
|
|
462
|
-
role: "ADMIN";
|
|
463
|
-
userId: string;
|
|
464
|
-
}[] | null | undefined;
|
|
465
|
-
code: string;
|
|
466
|
-
name: string;
|
|
467
|
-
_id: string;
|
|
468
|
-
isReseller: boolean;
|
|
469
|
-
} | null | undefined;
|
|
470
|
-
thumbnail?: string | null | undefined;
|
|
471
|
-
billingInfos?: {
|
|
472
|
-
_id?: string | null | undefined;
|
|
473
|
-
name: string;
|
|
474
|
-
address: {
|
|
475
|
-
coordinates?: number[] | null | undefined;
|
|
476
|
-
line2?: string | null | undefined;
|
|
477
|
-
state: string;
|
|
478
|
-
country: string;
|
|
479
|
-
line1: string;
|
|
480
|
-
city: string;
|
|
481
|
-
postcode: string;
|
|
482
|
-
};
|
|
483
|
-
email: string;
|
|
484
|
-
companyName: string;
|
|
485
|
-
contact: string;
|
|
486
|
-
}[] | null | undefined;
|
|
487
|
-
customerDisplayImages?: {
|
|
488
|
-
url: string;
|
|
489
|
-
restaurantIds: string[];
|
|
490
|
-
}[] | null | undefined;
|
|
491
|
-
name: string;
|
|
492
|
-
_id: string;
|
|
493
|
-
ownerId: string;
|
|
494
|
-
restaurantQuota: number;
|
|
495
|
-
warehouseQuota: number;
|
|
496
|
-
menuVersion: string;
|
|
497
|
-
} | null | undefined;
|
|
498
366
|
_id: string;
|
|
499
367
|
businessId: string;
|
|
500
368
|
profile: {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
name
|
|
504
|
-
address
|
|
369
|
+
code?: string | null | undefined;
|
|
370
|
+
_id?: string | null | undefined;
|
|
371
|
+
name?: string | undefined;
|
|
372
|
+
address?: {
|
|
505
373
|
coordinates?: number[] | null | undefined;
|
|
506
374
|
line2?: string | null | undefined;
|
|
507
375
|
state: string;
|
|
@@ -509,103 +377,89 @@ export declare function useLocationStore(): {
|
|
|
509
377
|
line1: string;
|
|
510
378
|
city: string;
|
|
511
379
|
postcode: string;
|
|
512
|
-
};
|
|
513
|
-
|
|
380
|
+
} | undefined;
|
|
381
|
+
email?: string | undefined;
|
|
382
|
+
regNo?: string | undefined;
|
|
383
|
+
sstRegNo?: string | null | undefined;
|
|
384
|
+
phoneNo?: string | undefined;
|
|
385
|
+
legalName?: string | null | undefined;
|
|
386
|
+
discovery?: boolean | null | undefined;
|
|
387
|
+
coverPhoto?: string | null | undefined;
|
|
388
|
+
thumbnailPhoto?: string | null | undefined;
|
|
389
|
+
description?: string | null | undefined;
|
|
390
|
+
photos?: string[] | null | undefined;
|
|
391
|
+
operatingHours?: {
|
|
392
|
+
0: {
|
|
393
|
+
hours: {
|
|
394
|
+
end: string;
|
|
395
|
+
start: string;
|
|
396
|
+
}[];
|
|
397
|
+
enable: boolean;
|
|
398
|
+
};
|
|
399
|
+
2: {
|
|
400
|
+
hours: {
|
|
401
|
+
end: string;
|
|
402
|
+
start: string;
|
|
403
|
+
}[];
|
|
404
|
+
enable: boolean;
|
|
405
|
+
};
|
|
406
|
+
1: {
|
|
407
|
+
hours: {
|
|
408
|
+
end: string;
|
|
409
|
+
start: string;
|
|
410
|
+
}[];
|
|
411
|
+
enable: boolean;
|
|
412
|
+
};
|
|
413
|
+
3: {
|
|
414
|
+
hours: {
|
|
415
|
+
end: string;
|
|
416
|
+
start: string;
|
|
417
|
+
}[];
|
|
418
|
+
enable: boolean;
|
|
419
|
+
};
|
|
420
|
+
4: {
|
|
421
|
+
hours: {
|
|
422
|
+
end: string;
|
|
423
|
+
start: string;
|
|
424
|
+
}[];
|
|
425
|
+
enable: boolean;
|
|
426
|
+
};
|
|
427
|
+
5: {
|
|
428
|
+
hours: {
|
|
429
|
+
end: string;
|
|
430
|
+
start: string;
|
|
431
|
+
}[];
|
|
432
|
+
enable: boolean;
|
|
433
|
+
};
|
|
434
|
+
6: {
|
|
435
|
+
hours: {
|
|
436
|
+
end: string;
|
|
437
|
+
start: string;
|
|
438
|
+
}[];
|
|
439
|
+
enable: boolean;
|
|
440
|
+
};
|
|
441
|
+
} | null | undefined;
|
|
442
|
+
tags?: string[] | null | undefined;
|
|
443
|
+
url?: string | null | undefined;
|
|
514
444
|
};
|
|
515
445
|
};
|
|
516
446
|
};
|
|
517
447
|
/** prefixed with restaurant_ or warehouse_ */
|
|
518
448
|
readonly currentLocationDBName: string;
|
|
519
449
|
readonly currentLocationId: any;
|
|
520
|
-
readonly locations:
|
|
521
|
-
|
|
522
|
-
type: "restaurant";
|
|
523
|
-
name: string;
|
|
524
|
-
acceptRequest: boolean;
|
|
525
|
-
dbName: string;
|
|
526
|
-
} | {
|
|
527
|
-
type: "warehouse";
|
|
450
|
+
readonly locations: {
|
|
451
|
+
type: "restaurant" | "warehouse";
|
|
528
452
|
name: string;
|
|
529
453
|
acceptRequest: boolean;
|
|
530
454
|
dbName: string;
|
|
531
455
|
doc: {
|
|
532
|
-
pf_business?: {
|
|
533
|
-
internal?: boolean | null | undefined;
|
|
534
|
-
url?: string | null | undefined;
|
|
535
|
-
expiredAt?: string | null | undefined;
|
|
536
|
-
agentId?: string | null | undefined;
|
|
537
|
-
restaurantTagGroups?: {
|
|
538
|
-
name: string;
|
|
539
|
-
id: string;
|
|
540
|
-
tags: {
|
|
541
|
-
name: string;
|
|
542
|
-
id: string;
|
|
543
|
-
}[];
|
|
544
|
-
}[] | null | undefined;
|
|
545
|
-
pf_agent?: {
|
|
546
|
-
clickupId?: string | null | undefined;
|
|
547
|
-
members?: {
|
|
548
|
-
pf_user?: {
|
|
549
|
-
email?: string | null | undefined;
|
|
550
|
-
phoneNumber?: string | null | undefined;
|
|
551
|
-
birthday?: string | null | undefined;
|
|
552
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
553
|
-
addresses?: {
|
|
554
|
-
name: string;
|
|
555
|
-
address: string;
|
|
556
|
-
coordinates: number[];
|
|
557
|
-
}[] | null | undefined;
|
|
558
|
-
photoURL?: string | null | undefined;
|
|
559
|
-
displayName?: string | null | undefined;
|
|
560
|
-
imported?: {
|
|
561
|
-
raw: Record<string, any>;
|
|
562
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
563
|
-
} | null | undefined;
|
|
564
|
-
_id: string;
|
|
565
|
-
} | null | undefined;
|
|
566
|
-
role: "ADMIN";
|
|
567
|
-
userId: string;
|
|
568
|
-
}[] | null | undefined;
|
|
569
|
-
code: string;
|
|
570
|
-
name: string;
|
|
571
|
-
_id: string;
|
|
572
|
-
isReseller: boolean;
|
|
573
|
-
} | null | undefined;
|
|
574
|
-
thumbnail?: string | null | undefined;
|
|
575
|
-
billingInfos?: {
|
|
576
|
-
_id?: string | null | undefined;
|
|
577
|
-
name: string;
|
|
578
|
-
address: {
|
|
579
|
-
coordinates?: number[] | null | undefined;
|
|
580
|
-
line2?: string | null | undefined;
|
|
581
|
-
state: string;
|
|
582
|
-
country: string;
|
|
583
|
-
line1: string;
|
|
584
|
-
city: string;
|
|
585
|
-
postcode: string;
|
|
586
|
-
};
|
|
587
|
-
email: string;
|
|
588
|
-
companyName: string;
|
|
589
|
-
contact: string;
|
|
590
|
-
}[] | null | undefined;
|
|
591
|
-
customerDisplayImages?: {
|
|
592
|
-
url: string;
|
|
593
|
-
restaurantIds: string[];
|
|
594
|
-
}[] | null | undefined;
|
|
595
|
-
name: string;
|
|
596
|
-
_id: string;
|
|
597
|
-
ownerId: string;
|
|
598
|
-
restaurantQuota: number;
|
|
599
|
-
warehouseQuota: number;
|
|
600
|
-
menuVersion: string;
|
|
601
|
-
} | null | undefined;
|
|
602
456
|
_id: string;
|
|
603
457
|
businessId: string;
|
|
604
458
|
profile: {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
name
|
|
608
|
-
address
|
|
459
|
+
code?: string | null | undefined;
|
|
460
|
+
_id?: string | null | undefined;
|
|
461
|
+
name?: string | undefined;
|
|
462
|
+
address?: {
|
|
609
463
|
coordinates?: number[] | null | undefined;
|
|
610
464
|
line2?: string | null | undefined;
|
|
611
465
|
state: string;
|
|
@@ -613,11 +467,162 @@ export declare function useLocationStore(): {
|
|
|
613
467
|
line1: string;
|
|
614
468
|
city: string;
|
|
615
469
|
postcode: string;
|
|
470
|
+
} | undefined;
|
|
471
|
+
email?: string | undefined;
|
|
472
|
+
regNo?: string | undefined;
|
|
473
|
+
sstRegNo?: string | null | undefined;
|
|
474
|
+
phoneNo?: string | undefined;
|
|
475
|
+
legalName?: string | null | undefined;
|
|
476
|
+
discovery?: boolean | null | undefined;
|
|
477
|
+
coverPhoto?: string | null | undefined;
|
|
478
|
+
thumbnailPhoto?: string | null | undefined;
|
|
479
|
+
description?: string | null | undefined;
|
|
480
|
+
photos?: string[] | null | undefined;
|
|
481
|
+
operatingHours?: {
|
|
482
|
+
0: {
|
|
483
|
+
hours: {
|
|
484
|
+
end: string;
|
|
485
|
+
start: string;
|
|
486
|
+
}[];
|
|
487
|
+
enable: boolean;
|
|
488
|
+
};
|
|
489
|
+
2: {
|
|
490
|
+
hours: {
|
|
491
|
+
end: string;
|
|
492
|
+
start: string;
|
|
493
|
+
}[];
|
|
494
|
+
enable: boolean;
|
|
495
|
+
};
|
|
496
|
+
1: {
|
|
497
|
+
hours: {
|
|
498
|
+
end: string;
|
|
499
|
+
start: string;
|
|
500
|
+
}[];
|
|
501
|
+
enable: boolean;
|
|
502
|
+
};
|
|
503
|
+
3: {
|
|
504
|
+
hours: {
|
|
505
|
+
end: string;
|
|
506
|
+
start: string;
|
|
507
|
+
}[];
|
|
508
|
+
enable: boolean;
|
|
509
|
+
};
|
|
510
|
+
4: {
|
|
511
|
+
hours: {
|
|
512
|
+
end: string;
|
|
513
|
+
start: string;
|
|
514
|
+
}[];
|
|
515
|
+
enable: boolean;
|
|
516
|
+
};
|
|
517
|
+
5: {
|
|
518
|
+
hours: {
|
|
519
|
+
end: string;
|
|
520
|
+
start: string;
|
|
521
|
+
}[];
|
|
522
|
+
enable: boolean;
|
|
523
|
+
};
|
|
524
|
+
6: {
|
|
525
|
+
hours: {
|
|
526
|
+
end: string;
|
|
527
|
+
start: string;
|
|
528
|
+
}[];
|
|
529
|
+
enable: boolean;
|
|
530
|
+
};
|
|
531
|
+
} | null | undefined;
|
|
532
|
+
tags?: string[] | null | undefined;
|
|
533
|
+
url?: string | null | undefined;
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
}[];
|
|
537
|
+
readonly locationByDbName: {
|
|
538
|
+
[key: string]: {
|
|
539
|
+
type: "restaurant" | "warehouse";
|
|
540
|
+
name: string;
|
|
541
|
+
acceptRequest: boolean;
|
|
542
|
+
dbName: string;
|
|
543
|
+
doc: {
|
|
544
|
+
_id: string;
|
|
545
|
+
businessId: string;
|
|
546
|
+
profile: {
|
|
547
|
+
code?: string | null | undefined;
|
|
548
|
+
_id?: string | null | undefined;
|
|
549
|
+
name?: string | undefined;
|
|
550
|
+
address?: {
|
|
551
|
+
coordinates?: number[] | null | undefined;
|
|
552
|
+
line2?: string | null | undefined;
|
|
553
|
+
state: string;
|
|
554
|
+
country: string;
|
|
555
|
+
line1: string;
|
|
556
|
+
city: string;
|
|
557
|
+
postcode: string;
|
|
558
|
+
} | undefined;
|
|
559
|
+
email?: string | undefined;
|
|
560
|
+
regNo?: string | undefined;
|
|
561
|
+
sstRegNo?: string | null | undefined;
|
|
562
|
+
phoneNo?: string | undefined;
|
|
563
|
+
legalName?: string | null | undefined;
|
|
564
|
+
discovery?: boolean | null | undefined;
|
|
565
|
+
coverPhoto?: string | null | undefined;
|
|
566
|
+
thumbnailPhoto?: string | null | undefined;
|
|
567
|
+
description?: string | null | undefined;
|
|
568
|
+
photos?: string[] | null | undefined;
|
|
569
|
+
operatingHours?: {
|
|
570
|
+
0: {
|
|
571
|
+
hours: {
|
|
572
|
+
end: string;
|
|
573
|
+
start: string;
|
|
574
|
+
}[];
|
|
575
|
+
enable: boolean;
|
|
576
|
+
};
|
|
577
|
+
2: {
|
|
578
|
+
hours: {
|
|
579
|
+
end: string;
|
|
580
|
+
start: string;
|
|
581
|
+
}[];
|
|
582
|
+
enable: boolean;
|
|
583
|
+
};
|
|
584
|
+
1: {
|
|
585
|
+
hours: {
|
|
586
|
+
end: string;
|
|
587
|
+
start: string;
|
|
588
|
+
}[];
|
|
589
|
+
enable: boolean;
|
|
590
|
+
};
|
|
591
|
+
3: {
|
|
592
|
+
hours: {
|
|
593
|
+
end: string;
|
|
594
|
+
start: string;
|
|
595
|
+
}[];
|
|
596
|
+
enable: boolean;
|
|
597
|
+
};
|
|
598
|
+
4: {
|
|
599
|
+
hours: {
|
|
600
|
+
end: string;
|
|
601
|
+
start: string;
|
|
602
|
+
}[];
|
|
603
|
+
enable: boolean;
|
|
604
|
+
};
|
|
605
|
+
5: {
|
|
606
|
+
hours: {
|
|
607
|
+
end: string;
|
|
608
|
+
start: string;
|
|
609
|
+
}[];
|
|
610
|
+
enable: boolean;
|
|
611
|
+
};
|
|
612
|
+
6: {
|
|
613
|
+
hours: {
|
|
614
|
+
end: string;
|
|
615
|
+
start: string;
|
|
616
|
+
}[];
|
|
617
|
+
enable: boolean;
|
|
618
|
+
};
|
|
619
|
+
} | null | undefined;
|
|
620
|
+
tags?: string[] | null | undefined;
|
|
621
|
+
url?: string | null | undefined;
|
|
616
622
|
};
|
|
617
|
-
regNo: string;
|
|
618
623
|
};
|
|
619
624
|
};
|
|
620
|
-
}
|
|
625
|
+
};
|
|
621
626
|
businessLevel: boolean;
|
|
622
627
|
watchLocation(callback: (location?: InventoryLocation | null) => Promise<void>): void;
|
|
623
628
|
readLocations(): Promise<void>;
|