@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-dev.1

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 (163) hide show
  1. package/dist/App-Y3Ez8Rjf.js +255 -0
  2. package/dist/ApprovalView-BUU1G4Q2.js +141 -0
  3. package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
  4. package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
  5. package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
  6. package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
  10. package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
  11. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
  12. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
  13. package/dist/IngredientGroupView-C3maHTCg.js +610 -0
  14. package/dist/IngredientsView-DCR3IBkR.js +1613 -0
  15. package/dist/IntegrationView-gO4h89Wj.js +1227 -0
  16. package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
  17. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
  18. package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
  20. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
  21. package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
  22. package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
  23. package/dist/RecipeView-C4-a4IEW.js +597 -0
  24. package/dist/Standalone.vue.d.ts +2 -0
  25. package/dist/StockView-Du2txrIP.js +7778 -0
  26. package/dist/SupplierView-D_09FbQh.js +1474 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
  28. package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
  29. package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
  30. package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/bill.d.ts +86 -240
  33. package/dist/api/closing-template.d.ts +6 -4
  34. package/dist/api/inventory.d.ts +281 -88
  35. package/dist/api/netsuite.d.ts +32 -1
  36. package/dist/api/purchase-order-template.d.ts +4 -2
  37. package/dist/api/supplier.d.ts +1 -0
  38. package/dist/app-GUbzqEtW.js +33456 -0
  39. package/dist/app.d.ts +259 -6
  40. package/dist/app.js +8 -7
  41. package/dist/array-hChJVZLE.js +43 -0
  42. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  43. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  44. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  45. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  46. package/dist/components/FmUnitInputRules.d.ts +2 -0
  47. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  48. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  49. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  50. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  51. package/dist/date2-CLE9fB2R.js +117 -0
  52. package/dist/dayjs.min-CY1d38w7.js +282 -0
  53. package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
  54. package/dist/defineDeepModel-l40rX7kr.js +13 -0
  55. package/dist/extensions/array.d.ts +1 -0
  56. package/dist/feature-BXruKUhX.js +78 -0
  57. package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
  58. package/dist/format-unit-display-DEKg8cJm.js +1198 -0
  59. package/dist/fuzzy-CVOV9zJc.js +41 -0
  60. package/dist/googlemap-Dm8ERVai.js +97 -0
  61. package/dist/helper/rules.d.ts +7 -0
  62. package/dist/helper/rules.spec.d.ts +1 -0
  63. package/dist/helper/xlsx.util.d.ts +7 -0
  64. package/dist/index-BX5KZXhI.js +22279 -0
  65. package/dist/index-CVsyOEb1.js +10545 -0
  66. package/dist/index-m9e9nYfl.js +45 -0
  67. package/dist/netsuite-DAKRv7zr.js +146 -0
  68. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  69. package/dist/router/name.d.ts +1 -0
  70. package/dist/rules-DlnN8IP3.js +198 -0
  71. package/dist/stores/integration/foodmarkethub.d.ts +391 -0
  72. package/dist/stores/integration/index.d.ts +7 -0
  73. package/dist/stores/integration/netsuite.d.ts +102 -0
  74. package/dist/stores/inventory.d.ts +295 -9
  75. package/dist/stores/location.d.ts +508 -485
  76. package/dist/stores/supplier.d.ts +124 -4
  77. package/dist/stores/warehouse.d.ts +7 -4
  78. package/dist/style.css +1 -1
  79. package/dist/supplier-B21WlSAM.js +77 -0
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
  82. package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
  83. package/dist/useTabStorage-BkIVScW_.js +25 -0
  84. package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
  85. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  86. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  87. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1002
  89. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
  90. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  91. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  92. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  93. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  94. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  95. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  96. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  97. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  98. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  99. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  100. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  101. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  102. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  103. package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
  104. package/dist/views/integration/NetSuite.vue.d.ts +2 -0
  105. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
  106. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
  107. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  108. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
  109. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1913 -53
  110. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  111. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  112. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  113. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2370 -327
  114. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
  115. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  116. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  117. package/dist/views/stock/components/StockRecordCard.vue.d.ts +43 -120
  118. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
  119. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  120. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  121. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  122. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  123. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  124. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  125. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  126. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  127. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  128. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -82
  129. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
  130. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  131. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  132. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  133. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  134. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1279 -1528
  135. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
  136. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  137. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -251
  138. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  139. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  140. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
  141. package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
  142. package/dist/xlsx.util-BLftcF4q.js +78 -0
  143. package/package.json +7 -4
  144. package/dist/ApprovalView-BPsScR5_.js +0 -129
  145. package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
  146. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
  147. package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
  148. package/dist/IntegrationView-CjGLRM78.js +0 -1141
  149. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
  150. package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
  151. package/dist/RecipeView-sB0Lgmob.js +0 -581
  152. package/dist/StockView-CY2kNohB.js +0 -1892
  153. package/dist/SupplierView-DTqeZPts.js +0 -827
  154. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
  155. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
  156. package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
  157. package/dist/app-BuyAj4kw.js +0 -69068
  158. package/dist/defineDeepModel-DuVmbMwq.js +0 -13
  159. package/dist/id-to-date-CI5Vv0Ji.js +0 -30
  160. package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
  161. package/dist/stores/netsuite.d.ts +0 -49
  162. package/dist/supplier-BQyK2eSZ.js +0 -69
  163. package/dist/xlsx.util-CZ7zYxdP.js +0 -109
@@ -8,91 +8,18 @@ export declare const InventoryLocationType: {
8
8
  export type InventoryLocation = FdoInventoryLocation;
9
9
  export declare function useLocationStore(): {
10
10
  _currentLocation: {
11
- doc?: any;
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
- attributeSettings?: {
28
- type: "string" | "number" | "boolean" | "date";
29
- key: string;
30
- entity: "restaurant" | "item";
31
- }[] | null | undefined;
32
- pf_agent?: {
33
- clickupId?: string | null | undefined;
34
- members?: {
35
- pf_user?: {
36
- email?: string | null | undefined;
37
- phoneNumber?: string | null | undefined;
38
- birthday?: string | null | undefined;
39
- gender?: "MALE" | "FEMALE" | null | undefined;
40
- addresses?: {
41
- name: string;
42
- address: string;
43
- coordinates: number[];
44
- }[] | null | undefined;
45
- photoURL?: string | null | undefined;
46
- displayName?: string | null | undefined;
47
- imported?: {
48
- raw: Record<string, any>;
49
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
50
- } | null | undefined;
51
- _id: string;
52
- } | null | undefined;
53
- role: "ADMIN";
54
- userId: string;
55
- }[] | null | undefined;
56
- code: string;
57
- name: string;
58
- _id: string;
59
- isReseller: boolean;
60
- } | null | undefined;
61
- thumbnail?: string | null | undefined;
62
- billingInfos?: {
63
- _id?: string | null | undefined;
64
- name: string;
65
- address: {
66
- coordinates?: number[] | null | undefined;
67
- line2?: string | null | undefined;
68
- state: string;
69
- country: string;
70
- line1: string;
71
- city: string;
72
- postcode: string;
73
- };
74
- email: string;
75
- companyName: string;
76
- contact: string;
77
- }[] | null | undefined;
78
- customerDisplayImages?: {
79
- url: string;
80
- restaurantIds: string[];
81
- }[] | null | undefined;
82
- name: string;
83
- _id: string;
84
- ownerId: string;
85
- restaurantQuota: number;
86
- warehouseQuota: number;
87
- menuVersion: string;
88
- } | null | undefined;
89
16
  _id: string;
90
17
  businessId: string;
91
18
  profile: {
92
- email?: string | null | undefined;
93
- phoneNo?: string | null | undefined;
94
- name: string;
95
- address: {
19
+ code?: string | null | undefined;
20
+ _id?: string | null | undefined;
21
+ name?: string | undefined;
22
+ address?: {
96
23
  coordinates?: number[] | null | undefined;
97
24
  line2?: string | null | undefined;
98
25
  state: string;
@@ -100,97 +27,86 @@ export declare function useLocationStore(): {
100
27
  line1: string;
101
28
  city: string;
102
29
  postcode: string;
103
- };
104
- regNo: string;
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;
105
94
  };
106
95
  };
107
96
  } | null;
108
- _locations: ({
109
- doc?: any;
110
- type: "restaurant";
111
- name: string;
112
- acceptRequest: boolean;
113
- dbName: string;
114
- } | {
115
- type: "warehouse";
97
+ _locations: {
98
+ type: "restaurant" | "warehouse";
116
99
  name: string;
117
100
  acceptRequest: boolean;
118
101
  dbName: string;
119
102
  doc: {
120
- pf_business?: {
121
- internal?: boolean | null | undefined;
122
- url?: string | null | undefined;
123
- expiredAt?: string | null | undefined;
124
- agentId?: string | null | undefined;
125
- attributeSettings?: {
126
- type: "string" | "number" | "boolean" | "date";
127
- key: string;
128
- entity: "restaurant" | "item";
129
- }[] | null | undefined;
130
- pf_agent?: {
131
- clickupId?: string | null | undefined;
132
- members?: {
133
- pf_user?: {
134
- email?: string | null | undefined;
135
- phoneNumber?: string | null | undefined;
136
- birthday?: string | null | undefined;
137
- gender?: "MALE" | "FEMALE" | null | undefined;
138
- addresses?: {
139
- name: string;
140
- address: string;
141
- coordinates: number[];
142
- }[] | null | undefined;
143
- photoURL?: string | null | undefined;
144
- displayName?: string | null | undefined;
145
- imported?: {
146
- raw: Record<string, any>;
147
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
148
- } | null | undefined;
149
- _id: string;
150
- } | null | undefined;
151
- role: "ADMIN";
152
- userId: string;
153
- }[] | null | undefined;
154
- code: string;
155
- name: string;
156
- _id: string;
157
- isReseller: boolean;
158
- } | null | undefined;
159
- thumbnail?: string | null | undefined;
160
- billingInfos?: {
161
- _id?: string | null | undefined;
162
- name: string;
163
- address: {
164
- coordinates?: number[] | null | undefined;
165
- line2?: string | null | undefined;
166
- state: string;
167
- country: string;
168
- line1: string;
169
- city: string;
170
- postcode: string;
171
- };
172
- email: string;
173
- companyName: string;
174
- contact: string;
175
- }[] | null | undefined;
176
- customerDisplayImages?: {
177
- url: string;
178
- restaurantIds: string[];
179
- }[] | null | undefined;
180
- name: string;
181
- _id: string;
182
- ownerId: string;
183
- restaurantQuota: number;
184
- warehouseQuota: number;
185
- menuVersion: string;
186
- } | null | undefined;
187
103
  _id: string;
188
104
  businessId: string;
189
105
  profile: {
190
- email?: string | null | undefined;
191
- phoneNo?: string | null | undefined;
192
- name: string;
193
- address: {
106
+ code?: string | null | undefined;
107
+ _id?: string | null | undefined;
108
+ name?: string | undefined;
109
+ address?: {
194
110
  coordinates?: number[] | null | undefined;
195
111
  line2?: string | null | undefined;
196
112
  state: string;
@@ -198,98 +114,87 @@ export declare function useLocationStore(): {
198
114
  line1: string;
199
115
  city: string;
200
116
  postcode: string;
201
- };
202
- regNo: string;
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;
203
181
  };
204
182
  };
205
- })[] | null;
183
+ }[] | null;
206
184
  readonly state: {
207
185
  _currentLocation: {
208
- doc?: any;
209
- type: "restaurant";
210
- name: string;
211
- acceptRequest: boolean;
212
- dbName: string;
213
- } | {
214
- type: "warehouse";
186
+ type: "restaurant" | "warehouse";
215
187
  name: string;
216
188
  acceptRequest: boolean;
217
189
  dbName: string;
218
190
  doc: {
219
- pf_business?: {
220
- internal?: boolean | null | undefined;
221
- url?: string | null | undefined;
222
- expiredAt?: string | null | undefined;
223
- agentId?: string | null | undefined;
224
- attributeSettings?: {
225
- type: "string" | "number" | "boolean" | "date";
226
- key: string;
227
- entity: "restaurant" | "item";
228
- }[] | null | undefined;
229
- pf_agent?: {
230
- clickupId?: string | null | undefined;
231
- members?: {
232
- pf_user?: {
233
- email?: string | null | undefined;
234
- phoneNumber?: string | null | undefined;
235
- birthday?: string | null | undefined;
236
- gender?: "MALE" | "FEMALE" | null | undefined;
237
- addresses?: {
238
- name: string;
239
- address: string;
240
- coordinates: number[];
241
- }[] | null | undefined;
242
- photoURL?: string | null | undefined;
243
- displayName?: string | null | undefined;
244
- imported?: {
245
- raw: Record<string, any>;
246
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
247
- } | null | undefined;
248
- _id: string;
249
- } | null | undefined;
250
- role: "ADMIN";
251
- userId: string;
252
- }[] | null | undefined;
253
- code: string;
254
- name: string;
255
- _id: string;
256
- isReseller: boolean;
257
- } | null | undefined;
258
- thumbnail?: string | null | undefined;
259
- billingInfos?: {
260
- _id?: string | null | undefined;
261
- name: string;
262
- address: {
263
- coordinates?: number[] | null | undefined;
264
- line2?: string | null | undefined;
265
- state: string;
266
- country: string;
267
- line1: string;
268
- city: string;
269
- postcode: string;
270
- };
271
- email: string;
272
- companyName: string;
273
- contact: string;
274
- }[] | null | undefined;
275
- customerDisplayImages?: {
276
- url: string;
277
- restaurantIds: string[];
278
- }[] | null | undefined;
279
- name: string;
280
- _id: string;
281
- ownerId: string;
282
- restaurantQuota: number;
283
- warehouseQuota: number;
284
- menuVersion: string;
285
- } | null | undefined;
286
191
  _id: string;
287
192
  businessId: string;
288
193
  profile: {
289
- email?: string | null | undefined;
290
- phoneNo?: string | null | undefined;
291
- name: string;
292
- address: {
194
+ code?: string | null | undefined;
195
+ _id?: string | null | undefined;
196
+ name?: string | undefined;
197
+ address?: {
293
198
  coordinates?: number[] | null | undefined;
294
199
  line2?: string | null | undefined;
295
200
  state: string;
@@ -297,97 +202,86 @@ export declare function useLocationStore(): {
297
202
  line1: string;
298
203
  city: string;
299
204
  postcode: string;
300
- };
301
- regNo: string;
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;
302
269
  };
303
270
  };
304
271
  } | null;
305
- _locations: ({
306
- doc?: any;
307
- type: "restaurant";
308
- name: string;
309
- acceptRequest: boolean;
310
- dbName: string;
311
- } | {
312
- type: "warehouse";
272
+ _locations: {
273
+ type: "restaurant" | "warehouse";
313
274
  name: string;
314
275
  acceptRequest: boolean;
315
276
  dbName: string;
316
277
  doc: {
317
- pf_business?: {
318
- internal?: boolean | null | undefined;
319
- url?: string | null | undefined;
320
- expiredAt?: string | null | undefined;
321
- agentId?: string | null | undefined;
322
- attributeSettings?: {
323
- type: "string" | "number" | "boolean" | "date";
324
- key: string;
325
- entity: "restaurant" | "item";
326
- }[] | null | undefined;
327
- pf_agent?: {
328
- clickupId?: string | null | undefined;
329
- members?: {
330
- pf_user?: {
331
- email?: string | null | undefined;
332
- phoneNumber?: string | null | undefined;
333
- birthday?: string | null | undefined;
334
- gender?: "MALE" | "FEMALE" | null | undefined;
335
- addresses?: {
336
- name: string;
337
- address: string;
338
- coordinates: number[];
339
- }[] | null | undefined;
340
- photoURL?: string | null | undefined;
341
- displayName?: string | null | undefined;
342
- imported?: {
343
- raw: Record<string, any>;
344
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
345
- } | null | undefined;
346
- _id: string;
347
- } | null | undefined;
348
- role: "ADMIN";
349
- userId: string;
350
- }[] | null | undefined;
351
- code: string;
352
- name: string;
353
- _id: string;
354
- isReseller: boolean;
355
- } | null | undefined;
356
- thumbnail?: string | null | undefined;
357
- billingInfos?: {
358
- _id?: string | null | undefined;
359
- name: string;
360
- address: {
361
- coordinates?: number[] | null | undefined;
362
- line2?: string | null | undefined;
363
- state: string;
364
- country: string;
365
- line1: string;
366
- city: string;
367
- postcode: string;
368
- };
369
- email: string;
370
- companyName: string;
371
- contact: string;
372
- }[] | null | undefined;
373
- customerDisplayImages?: {
374
- url: string;
375
- restaurantIds: string[];
376
- }[] | null | undefined;
377
- name: string;
378
- _id: string;
379
- ownerId: string;
380
- restaurantQuota: number;
381
- warehouseQuota: number;
382
- menuVersion: string;
383
- } | null | undefined;
384
278
  _id: string;
385
279
  businessId: string;
386
280
  profile: {
387
- email?: string | null | undefined;
388
- phoneNo?: string | null | undefined;
389
- name: string;
390
- address: {
281
+ code?: string | null | undefined;
282
+ _id?: string | null | undefined;
283
+ name?: string | undefined;
284
+ address?: {
391
285
  coordinates?: number[] | null | undefined;
392
286
  line2?: string | null | undefined;
393
287
  state: string;
@@ -395,98 +289,87 @@ export declare function useLocationStore(): {
395
289
  line1: string;
396
290
  city: string;
397
291
  postcode: string;
398
- };
399
- regNo: string;
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;
400
356
  };
401
357
  };
402
- })[] | null;
358
+ }[] | null;
403
359
  };
404
360
  readonly currentLocation: {
405
- doc?: any;
406
- type: "restaurant";
407
- name: string;
408
- acceptRequest: boolean;
409
- dbName: string;
410
- } | {
411
- type: "warehouse";
361
+ type: "restaurant" | "warehouse";
412
362
  name: string;
413
363
  acceptRequest: boolean;
414
364
  dbName: string;
415
365
  doc: {
416
- pf_business?: {
417
- internal?: boolean | null | undefined;
418
- url?: string | null | undefined;
419
- expiredAt?: string | null | undefined;
420
- agentId?: string | null | undefined;
421
- attributeSettings?: {
422
- type: "string" | "number" | "boolean" | "date";
423
- key: string;
424
- entity: "restaurant" | "item";
425
- }[] | null | undefined;
426
- pf_agent?: {
427
- clickupId?: string | null | undefined;
428
- members?: {
429
- pf_user?: {
430
- email?: string | null | undefined;
431
- phoneNumber?: string | null | undefined;
432
- birthday?: string | null | undefined;
433
- gender?: "MALE" | "FEMALE" | null | undefined;
434
- addresses?: {
435
- name: string;
436
- address: string;
437
- coordinates: number[];
438
- }[] | null | undefined;
439
- photoURL?: string | null | undefined;
440
- displayName?: string | null | undefined;
441
- imported?: {
442
- raw: Record<string, any>;
443
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
444
- } | null | undefined;
445
- _id: string;
446
- } | null | undefined;
447
- role: "ADMIN";
448
- userId: string;
449
- }[] | null | undefined;
450
- code: string;
451
- name: string;
452
- _id: string;
453
- isReseller: boolean;
454
- } | null | undefined;
455
- thumbnail?: string | null | undefined;
456
- billingInfos?: {
457
- _id?: string | null | undefined;
458
- name: string;
459
- address: {
460
- coordinates?: number[] | null | undefined;
461
- line2?: string | null | undefined;
462
- state: string;
463
- country: string;
464
- line1: string;
465
- city: string;
466
- postcode: string;
467
- };
468
- email: string;
469
- companyName: string;
470
- contact: string;
471
- }[] | null | undefined;
472
- customerDisplayImages?: {
473
- url: string;
474
- restaurantIds: string[];
475
- }[] | null | undefined;
476
- name: string;
477
- _id: string;
478
- ownerId: string;
479
- restaurantQuota: number;
480
- warehouseQuota: number;
481
- menuVersion: string;
482
- } | null | undefined;
483
366
  _id: string;
484
367
  businessId: string;
485
368
  profile: {
486
- email?: string | null | undefined;
487
- phoneNo?: string | null | undefined;
488
- name: string;
489
- address: {
369
+ code?: string | null | undefined;
370
+ _id?: string | null | undefined;
371
+ name?: string | undefined;
372
+ address?: {
490
373
  coordinates?: number[] | null | undefined;
491
374
  line2?: string | null | undefined;
492
375
  state: string;
@@ -494,100 +377,89 @@ export declare function useLocationStore(): {
494
377
  line1: string;
495
378
  city: string;
496
379
  postcode: string;
497
- };
498
- regNo: string;
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;
499
444
  };
500
445
  };
501
446
  };
502
447
  /** prefixed with restaurant_ or warehouse_ */
503
448
  readonly currentLocationDBName: string;
504
449
  readonly currentLocationId: any;
505
- readonly locations: ({
506
- doc?: any;
507
- type: "restaurant";
508
- name: string;
509
- acceptRequest: boolean;
510
- dbName: string;
511
- } | {
512
- type: "warehouse";
450
+ readonly locations: {
451
+ type: "restaurant" | "warehouse";
513
452
  name: string;
514
453
  acceptRequest: boolean;
515
454
  dbName: string;
516
455
  doc: {
517
- pf_business?: {
518
- internal?: boolean | null | undefined;
519
- url?: string | null | undefined;
520
- expiredAt?: string | null | undefined;
521
- agentId?: string | null | undefined;
522
- attributeSettings?: {
523
- type: "string" | "number" | "boolean" | "date";
524
- key: string;
525
- entity: "restaurant" | "item";
526
- }[] | null | undefined;
527
- pf_agent?: {
528
- clickupId?: string | null | undefined;
529
- members?: {
530
- pf_user?: {
531
- email?: string | null | undefined;
532
- phoneNumber?: string | null | undefined;
533
- birthday?: string | null | undefined;
534
- gender?: "MALE" | "FEMALE" | null | undefined;
535
- addresses?: {
536
- name: string;
537
- address: string;
538
- coordinates: number[];
539
- }[] | null | undefined;
540
- photoURL?: string | null | undefined;
541
- displayName?: string | null | undefined;
542
- imported?: {
543
- raw: Record<string, any>;
544
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
545
- } | null | undefined;
546
- _id: string;
547
- } | null | undefined;
548
- role: "ADMIN";
549
- userId: string;
550
- }[] | null | undefined;
551
- code: string;
552
- name: string;
553
- _id: string;
554
- isReseller: boolean;
555
- } | null | undefined;
556
- thumbnail?: string | null | undefined;
557
- billingInfos?: {
558
- _id?: string | null | undefined;
559
- name: string;
560
- address: {
561
- coordinates?: number[] | null | undefined;
562
- line2?: string | null | undefined;
563
- state: string;
564
- country: string;
565
- line1: string;
566
- city: string;
567
- postcode: string;
568
- };
569
- email: string;
570
- companyName: string;
571
- contact: string;
572
- }[] | null | undefined;
573
- customerDisplayImages?: {
574
- url: string;
575
- restaurantIds: string[];
576
- }[] | null | undefined;
577
- name: string;
578
- _id: string;
579
- ownerId: string;
580
- restaurantQuota: number;
581
- warehouseQuota: number;
582
- menuVersion: string;
583
- } | null | undefined;
584
456
  _id: string;
585
457
  businessId: string;
586
458
  profile: {
587
- email?: string | null | undefined;
588
- phoneNo?: string | null | undefined;
589
- name: string;
590
- address: {
459
+ code?: string | null | undefined;
460
+ _id?: string | null | undefined;
461
+ name?: string | undefined;
462
+ address?: {
591
463
  coordinates?: number[] | null | undefined;
592
464
  line2?: string | null | undefined;
593
465
  state: string;
@@ -595,11 +467,162 @@ export declare function useLocationStore(): {
595
467
  line1: string;
596
468
  city: string;
597
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;
598
622
  };
599
- regNo: string;
600
623
  };
601
624
  };
602
- })[];
625
+ };
603
626
  businessLevel: boolean;
604
627
  watchLocation(callback: (location?: InventoryLocation | null) => Promise<void>): void;
605
628
  readLocations(): Promise<void>;