@feedmepos/mf-inventory-portal 0.0.22-dev.3 → 0.0.22-dev.31

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 (79) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/{ApprovalView-BnkFRJgX.js → ApprovalView-DURCoP6_.js} +26 -26
  3. package/dist/{BindingsDialog-BDzmf8Wr.js → BindingsDialog-Cgf5MuLY.js} +1 -1
  4. package/dist/{BindingsPicker-CRGFd-d8.js → BindingsPicker-DvcjRma9.js} +8 -8
  5. package/dist/{BindingsTable-BnHju77G.js → BindingsTable-BPrs04hn.js} +1 -1
  6. package/dist/ClosingTemplateView-DU_OX_KS.js +1072 -0
  7. package/dist/Entry.vue.d.ts +0 -2
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BRV9dZhu.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BNhYJdT-.js} +8 -8
  9. package/dist/IngredientsView-BGB-So1n.js +1817 -0
  10. package/dist/{IntegrationView-UySDEAnh.js → IntegrationView-tOw9GGXr.js} +120 -120
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cxy6vo9D.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CWz2vOzD.js} +1 -1
  12. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ChrCZc0C.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Qqp3wJ2n.js} +1 -1
  13. package/dist/{PurchaseOrderPrintPreview-CGxMILW0.js → PurchaseOrderPrintPreview-PnIeMMrq.js} +1 -1
  14. package/dist/{ReceiveRequestView-BHOC-ZLV.js → ReceiveRequestView-WjoI68r_.js} +20 -21
  15. package/dist/RecipeView-B2KynG4H.js +590 -0
  16. package/dist/{StockView-BcXcQZpl.js → StockView-DsutlmVn.js} +602 -585
  17. package/dist/{SupplierView-Bl13ZM-9.js → SupplierView-BuyFY-tF.js} +108 -108
  18. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BoGGbhJi.js +858 -0
  19. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-8yMFTCo1.js +1678 -0
  20. package/dist/TransferTemplateView-BSn-HKWr.js +1232 -0
  21. package/dist/{UnitView-DG8PGv5Y.js → UnitView-Bx-dS9Nv.js} +6 -6
  22. package/dist/{WarehouseView-CeS8jrgw.js → WarehouseView-DpMvmi_A.js} +17 -17
  23. package/dist/api/inventory.d.ts +72 -85
  24. package/dist/api/netsuite.d.ts +47 -0
  25. package/dist/api/purchase-order-template.d.ts +0 -4
  26. package/dist/{app-DYhspC_r.js → app-B6CTWYqZ.js} +21877 -20978
  27. package/dist/app.d.ts +7 -0
  28. package/dist/app.js +3 -3
  29. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  30. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  31. package/dist/components/FmUnitInputRules.d.ts +2 -0
  32. package/dist/{decimal-DwEh3AcZ.js → decimal-DDNJiEl8.js} +1 -1
  33. package/dist/{defineDeepModel-htf7zxRR.js → defineDeepModel-CjoZrLbV.js} +3 -3
  34. package/dist/{format-time-from-id-1BxShIsX.js → format-time-from-id-CNRJtPZY.js} +3 -3
  35. package/dist/helper/rules.d.ts +7 -0
  36. package/dist/helper/rules.spec.d.ts +1 -0
  37. package/dist/{id-to-date-CzSDsYm2.js → id-to-date-DJcRYNGy.js} +1 -1
  38. package/dist/purchase-order-transaction-type-Cew6w60I.js +678 -0
  39. package/dist/stores/api.d.ts +1 -0
  40. package/dist/stores/feature.d.ts +0 -1
  41. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  42. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  43. package/dist/stores/inventory.d.ts +22 -0
  44. package/dist/stores/location.d.ts +420 -504
  45. package/dist/stores/netsuite.d.ts +68 -0
  46. package/dist/stores/route.d.ts +0 -5
  47. package/dist/stores/warehouse.d.ts +4 -7
  48. package/dist/style.css +1 -1
  49. package/dist/{supplier-DegAxD_n.js → supplier-bvsRMnxk.js} +1 -1
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/use-template-enabled-locations-2-DSlNJ-VP.js +85 -0
  52. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1080 -1020
  53. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1080 -1020
  54. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  55. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1854 -0
  56. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  57. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2329 -286
  58. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2213 -170
  59. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  60. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
  61. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
  62. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1253 -1457
  63. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +420 -1474
  64. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +230 -0
  65. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
  66. package/dist/{xlsx-CSS2klUs.js → xlsx-CnMhXCRI.js} +1 -1
  67. package/dist/{xlsx.util-CeY18XxV.js → xlsx.util-CV-IkG_3.js} +2 -2
  68. package/package.json +7 -7
  69. package/dist/ClosingTemplateView-D2EIa9YG.js +0 -1030
  70. package/dist/IngredientsView-CiUpjKmC.js +0 -1759
  71. package/dist/RecipeView-lgrm1J9x.js +0 -581
  72. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-SXFiNrtm.js +0 -740
  73. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DSBEn-Mt.js +0 -1409
  74. package/dist/TransferTemplateView-C_eqQ9a8.js +0 -1230
  75. package/dist/array-ClJzD_Lt.js +0 -30
  76. package/dist/layout/InventoryLayout.vue.d.ts +0 -2
  77. package/dist/layout/layout-routes.d.ts +0 -6
  78. package/dist/purchase-order-transaction-type-lwIoC03T.js +0 -712
  79. package/dist/use-template-enabled-locations-B2ZtZAoX.js +0 -57
@@ -8,94 +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
- 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
- email?: string | null | undefined;
96
- phoneNo?: string | null | undefined;
97
- name: string;
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
- 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;
108
94
  };
109
95
  };
110
96
  } | null;
111
- _locations: ({
112
- doc?: any;
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
- email?: string | null | undefined;
197
- phoneNo?: string | null | undefined;
198
- name: string;
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
- 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;
209
181
  };
210
182
  };
211
- })[] | null;
183
+ }[] | null;
212
184
  readonly state: {
213
185
  _currentLocation: {
214
- doc?: any;
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
- email?: string | null | undefined;
299
- phoneNo?: string | null | undefined;
300
- name: string;
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
- 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;
311
269
  };
312
270
  };
313
271
  } | null;
314
- _locations: ({
315
- doc?: any;
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
- email?: string | null | undefined;
400
- phoneNo?: string | null | undefined;
401
- name: string;
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
- 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;
412
356
  };
413
357
  };
414
- })[] | null;
358
+ }[] | null;
415
359
  };
416
360
  readonly currentLocation: {
417
- doc?: any;
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
- email?: string | null | undefined;
502
- phoneNo?: string | null | undefined;
503
- name: string;
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
- 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;
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
- doc?: any;
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
- email?: string | null | undefined;
606
- phoneNo?: string | null | undefined;
607
- name: string;
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,73 @@ export declare function useLocationStore(): {
613
467
  line1: string;
614
468
  city: string;
615
469
  postcode: string;
616
- };
617
- regNo: 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;
618
534
  };
619
535
  };
620
- })[];
536
+ }[];
621
537
  businessLevel: boolean;
622
538
  watchLocation(callback: (location?: InventoryLocation | null) => Promise<void>): void;
623
539
  readLocations(): Promise<void>;