@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.
Files changed (144) hide show
  1. package/dist/ApprovalView-CyIOcyG5.js +140 -0
  2. package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
  3. package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
  4. package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
  5. package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
  6. package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
  7. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
  8. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
  9. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
  10. package/dist/IngredientGroupView-C0hPeD41.js +608 -0
  11. package/dist/IngredientsView-CpwVIGXd.js +1608 -0
  12. package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
  13. 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
  14. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
  15. package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
  16. package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
  17. package/dist/RecipeView-D0WsMfKm.js +594 -0
  18. package/dist/Standalone.vue.d.ts +2 -0
  19. package/dist/StockView-sxI0L6MP.js +7770 -0
  20. package/dist/SupplierView-clAkARuW.js +1468 -0
  21. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
  22. package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
  23. package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
  24. package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
  25. package/dist/api/bill.d.ts +84 -238
  26. package/dist/api/closing-template.d.ts +6 -4
  27. package/dist/api/inventory.d.ts +282 -91
  28. package/dist/api/netsuite.d.ts +71 -0
  29. package/dist/api/purchase-order-template.d.ts +4 -6
  30. package/dist/api/supplier.d.ts +1 -0
  31. package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
  32. package/dist/app.d.ts +88 -3
  33. package/dist/app.js +3 -3
  34. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  35. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  36. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  37. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  38. package/dist/components/FmUnitInputRules.d.ts +2 -0
  39. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  40. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  41. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  42. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  43. package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
  44. package/dist/defineDeepModel-BXP1vLGf.js +13 -0
  45. package/dist/extensions/array.d.ts +1 -0
  46. package/dist/format-time-from-id-DgW7OJL_.js +15 -0
  47. package/dist/format-unit-display-BP4O0Pym.js +1195 -0
  48. package/dist/helper/rules.d.ts +7 -0
  49. package/dist/helper/rules.spec.d.ts +1 -0
  50. package/dist/helper/xlsx.util.d.ts +7 -0
  51. package/dist/router/name.d.ts +1 -0
  52. package/dist/stores/api.d.ts +1 -0
  53. package/dist/stores/feature.d.ts +0 -1
  54. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  55. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  56. package/dist/stores/integration/foodmarkethub.d.ts +391 -0
  57. package/dist/stores/integration/index.d.ts +7 -0
  58. package/dist/stores/integration/netsuite.d.ts +102 -0
  59. package/dist/stores/inventory.d.ts +294 -9
  60. package/dist/stores/location.d.ts +508 -503
  61. package/dist/stores/supplier.d.ts +124 -4
  62. package/dist/style.css +1 -1
  63. package/dist/supplier-D-8XhuF_.js +77 -0
  64. package/dist/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
  66. package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
  67. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  68. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  69. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  70. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1038
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
  72. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  73. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  74. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  75. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  76. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  77. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  78. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  79. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  80. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  81. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  82. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  83. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  84. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  85. package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
  86. package/dist/views/integration/NetSuite.vue.d.ts +2 -0
  87. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
  88. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
  89. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  90. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
  91. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
  92. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  93. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  94. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  95. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
  96. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
  97. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  98. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  99. package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
  100. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
  101. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  102. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  103. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  104. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  105. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  106. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  107. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  108. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  109. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  110. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
  111. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
  112. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  113. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  114. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  115. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  116. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1277 -1478
  117. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
  118. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  119. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -247
  120. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  121. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  122. package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
  123. package/dist/xlsx.util-CxGmvsp9.js +78 -0
  124. package/package.json +10 -7
  125. package/dist/ApprovalView-BdaNwUBc.js +0 -129
  126. package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
  127. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
  128. package/dist/IngredientsView-GqrkpCm5.js +0 -1758
  129. package/dist/IntegrationView-7c3MpUzS.js +0 -1141
  130. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
  131. package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
  132. package/dist/RecipeView-C6tZPQ-K.js +0 -581
  133. package/dist/StockView-4uXHYz4E.js +0 -1892
  134. package/dist/SupplierView-CuWvKCWY.js +0 -827
  135. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
  136. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
  137. package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
  138. package/dist/defineDeepModel-BKAs9qN6.js +0 -13
  139. package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
  140. package/dist/id-to-date-D1lOqIir.js +0 -30
  141. package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
  142. package/dist/supplier-BIDBk5S6.js +0 -69
  143. package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
  144. package/dist/xlsx.util-BKFiH-ig.js +0 -109
@@ -2,6 +2,7 @@ import type { ClosingTemplateDialogProps } from '../components/closing-template-
2
2
  import { FormMode } from '@/components/form/form-mode.enum';
3
3
  import { type Ref } from 'vue';
4
4
  import type { ClosingTemplateDetailsProps } from '../components/closing-template-details/ClosingTemplateDetailsProps';
5
+ import type { RevisionIdMeta } from '@feedmepos/inventory-core';
5
6
  type ClosingTemplateDialogPropsWithEventBinding = ClosingTemplateDialogProps & {
6
7
  'onUpdate:show'?(show: boolean): void;
7
8
  'onSubmitted'?(): void;
@@ -10,106 +11,32 @@ type ClosingTemplateDetailsPropsWithEventBinding = ClosingTemplateDetailsProps &
10
11
  'onUpdate:show'?(show: boolean): void;
11
12
  'onAction:edit'?(): void;
12
13
  };
13
- export declare const useClosingTemplateActions: import("pinia").StoreDefinition<"closingTemplateActions", Pick<{
14
+ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<"closingTemplateActions", import("pinia")._UnwrapAll<Pick<{
14
15
  createTemplate: () => void;
15
16
  viewTemplate: (template: FdoClosingTemplate) => void;
16
17
  updateTemplate: (template: FdoClosingTemplate) => void;
17
- deleteTemplate: (template: FdoClosingTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
18
+ deleteTemplate: (template: FdoClosingTemplate & RevisionIdMeta, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
19
+ exportTemplates: () => void;
20
+ importTemplates: () => void;
18
21
  templateDialogProps: Ref<{
19
22
  mode?: FormMode | undefined;
20
23
  modelValue?: {
21
24
  ref?: string | null | undefined;
22
25
  _rev?: string | null | undefined;
23
26
  updatedAt?: Date | null | undefined;
24
- locations?: ({
25
- doc?: any;
26
- type: "restaurant";
27
- name: string;
28
- acceptRequest: boolean;
29
- dbName: string;
30
- } | {
31
- type: "warehouse";
27
+ locations?: {
28
+ type: "restaurant" | "warehouse";
32
29
  name: string;
33
30
  acceptRequest: boolean;
34
31
  dbName: string;
35
32
  doc: {
36
- pf_business?: {
37
- internal?: boolean | null | undefined;
38
- url?: string | null | undefined;
39
- expiredAt?: string | null | undefined;
40
- agentId?: string | null | undefined;
41
- restaurantTagGroups?: {
42
- name: string;
43
- id: string;
44
- tags: {
45
- name: string;
46
- id: string;
47
- }[];
48
- }[] | null | undefined;
49
- pf_agent?: {
50
- clickupId?: string | null | undefined;
51
- members?: {
52
- pf_user?: {
53
- email?: string | null | undefined;
54
- phoneNumber?: string | null | undefined;
55
- birthday?: string | null | undefined;
56
- gender?: "MALE" | "FEMALE" | null | undefined;
57
- addresses?: {
58
- name: string;
59
- address: string;
60
- coordinates: number[];
61
- }[] | null | undefined;
62
- photoURL?: string | null | undefined;
63
- displayName?: string | null | undefined;
64
- imported?: {
65
- raw: Record<string, any>;
66
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
67
- } | null | undefined;
68
- _id: string;
69
- } | null | undefined;
70
- role: "ADMIN";
71
- userId: string;
72
- }[] | null | undefined;
73
- code: string;
74
- name: string;
75
- _id: string;
76
- isReseller: boolean;
77
- } | null | undefined;
78
- thumbnail?: string | null | undefined;
79
- billingInfos?: {
80
- _id?: string | null | undefined;
81
- name: string;
82
- address: {
83
- coordinates?: number[] | null | undefined;
84
- line2?: string | null | undefined;
85
- state: string;
86
- country: string;
87
- line1: string;
88
- city: string;
89
- postcode: string;
90
- };
91
- email: string;
92
- companyName: string;
93
- contact: string;
94
- }[] | null | undefined;
95
- customerDisplayImages?: {
96
- url: string;
97
- restaurantIds: string[];
98
- }[] | null | undefined;
99
- name: string;
100
- _id: string;
101
- ownerId: string;
102
- restaurantQuota: number;
103
- warehouseQuota: number;
104
- menuVersion: string;
105
- } | null | undefined;
106
33
  _id: string;
107
34
  businessId: string;
108
35
  profile: {
109
- email?: string | null | undefined;
110
- phoneNo?: string | null | undefined;
111
- name: string;
112
- address: {
36
+ code?: string | null | undefined;
37
+ _id?: string | null | undefined;
38
+ name?: string | undefined;
39
+ address?: {
113
40
  coordinates?: number[] | null | undefined;
114
41
  line2?: string | null | undefined;
115
42
  state: string;
@@ -117,11 +44,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
117
44
  line1: string;
118
45
  city: string;
119
46
  postcode: string;
120
- };
121
- regNo: string;
47
+ } | undefined;
48
+ email?: string | undefined;
49
+ regNo?: string | undefined;
50
+ sstRegNo?: string | null | undefined;
51
+ phoneNo?: string | undefined;
52
+ legalName?: string | null | undefined;
53
+ discovery?: boolean | null | undefined;
54
+ coverPhoto?: string | null | undefined;
55
+ thumbnailPhoto?: string | null | undefined;
56
+ description?: string | null | undefined;
57
+ photos?: string[] | null | undefined;
58
+ operatingHours?: {
59
+ 0: {
60
+ hours: {
61
+ end: string;
62
+ start: string;
63
+ }[];
64
+ enable: boolean;
65
+ };
66
+ 2: {
67
+ hours: {
68
+ end: string;
69
+ start: string;
70
+ }[];
71
+ enable: boolean;
72
+ };
73
+ 1: {
74
+ hours: {
75
+ end: string;
76
+ start: string;
77
+ }[];
78
+ enable: boolean;
79
+ };
80
+ 3: {
81
+ hours: {
82
+ end: string;
83
+ start: string;
84
+ }[];
85
+ enable: boolean;
86
+ };
87
+ 4: {
88
+ hours: {
89
+ end: string;
90
+ start: string;
91
+ }[];
92
+ enable: boolean;
93
+ };
94
+ 5: {
95
+ hours: {
96
+ end: string;
97
+ start: string;
98
+ }[];
99
+ enable: boolean;
100
+ };
101
+ 6: {
102
+ hours: {
103
+ end: string;
104
+ start: string;
105
+ }[];
106
+ enable: boolean;
107
+ };
108
+ } | null | undefined;
109
+ tags?: string[] | null | undefined;
110
+ url?: string | null | undefined;
122
111
  };
123
112
  };
124
- })[] | null | undefined;
113
+ }[] | null | undefined;
125
114
  updatedBy?: {
126
115
  email?: string | null | undefined;
127
116
  phoneNumber?: string | null | undefined;
@@ -157,7 +146,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
157
146
  precision: number;
158
147
  };
159
148
  } | null | undefined;
160
- type: "RECIPE" | "SKU";
149
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
161
150
  amount: {
162
151
  amount: number;
163
152
  precision: number;
@@ -218,95 +207,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
218
207
  ref?: string | null | undefined;
219
208
  _rev?: string | null | undefined;
220
209
  updatedAt?: Date | null | undefined;
221
- locations?: ({
222
- doc?: any;
223
- type: "restaurant";
224
- name: string;
225
- acceptRequest: boolean;
226
- dbName: string;
227
- } | {
228
- type: "warehouse";
210
+ locations?: {
211
+ type: "restaurant" | "warehouse";
229
212
  name: string;
230
213
  acceptRequest: boolean;
231
214
  dbName: string;
232
215
  doc: {
233
- pf_business?: {
234
- internal?: boolean | null | undefined;
235
- url?: string | null | undefined;
236
- expiredAt?: string | null | undefined;
237
- agentId?: string | null | undefined;
238
- restaurantTagGroups?: {
239
- name: string;
240
- id: string;
241
- tags: {
242
- name: string;
243
- id: string;
244
- }[];
245
- }[] | null | undefined;
246
- pf_agent?: {
247
- clickupId?: string | null | undefined;
248
- members?: {
249
- pf_user?: {
250
- email?: string | null | undefined;
251
- phoneNumber?: string | null | undefined;
252
- birthday?: string | null | undefined;
253
- gender?: "MALE" | "FEMALE" | null | undefined;
254
- addresses?: {
255
- name: string;
256
- address: string;
257
- coordinates: number[];
258
- }[] | null | undefined;
259
- photoURL?: string | null | undefined;
260
- displayName?: string | null | undefined;
261
- imported?: {
262
- raw: Record<string, any>;
263
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
264
- } | null | undefined;
265
- _id: string;
266
- } | null | undefined;
267
- role: "ADMIN";
268
- userId: string;
269
- }[] | null | undefined;
270
- code: string;
271
- name: string;
272
- _id: string;
273
- isReseller: boolean;
274
- } | null | undefined;
275
- thumbnail?: string | null | undefined;
276
- billingInfos?: {
277
- _id?: string | null | undefined;
278
- name: string;
279
- address: {
280
- coordinates?: number[] | null | undefined;
281
- line2?: string | null | undefined;
282
- state: string;
283
- country: string;
284
- line1: string;
285
- city: string;
286
- postcode: string;
287
- };
288
- email: string;
289
- companyName: string;
290
- contact: string;
291
- }[] | null | undefined;
292
- customerDisplayImages?: {
293
- url: string;
294
- restaurantIds: string[];
295
- }[] | null | undefined;
296
- name: string;
297
- _id: string;
298
- ownerId: string;
299
- restaurantQuota: number;
300
- warehouseQuota: number;
301
- menuVersion: string;
302
- } | null | undefined;
303
216
  _id: string;
304
217
  businessId: string;
305
218
  profile: {
306
- email?: string | null | undefined;
307
- phoneNo?: string | null | undefined;
308
- name: string;
309
- address: {
219
+ code?: string | null | undefined;
220
+ _id?: string | null | undefined;
221
+ name?: string | undefined;
222
+ address?: {
310
223
  coordinates?: number[] | null | undefined;
311
224
  line2?: string | null | undefined;
312
225
  state: string;
@@ -314,11 +227,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
314
227
  line1: string;
315
228
  city: string;
316
229
  postcode: string;
317
- };
318
- regNo: string;
230
+ } | undefined;
231
+ email?: string | undefined;
232
+ regNo?: string | undefined;
233
+ sstRegNo?: string | null | undefined;
234
+ phoneNo?: string | undefined;
235
+ legalName?: string | null | undefined;
236
+ discovery?: boolean | null | undefined;
237
+ coverPhoto?: string | null | undefined;
238
+ thumbnailPhoto?: string | null | undefined;
239
+ description?: string | null | undefined;
240
+ photos?: string[] | null | undefined;
241
+ operatingHours?: {
242
+ 0: {
243
+ hours: {
244
+ end: string;
245
+ start: string;
246
+ }[];
247
+ enable: boolean;
248
+ };
249
+ 2: {
250
+ hours: {
251
+ end: string;
252
+ start: string;
253
+ }[];
254
+ enable: boolean;
255
+ };
256
+ 1: {
257
+ hours: {
258
+ end: string;
259
+ start: string;
260
+ }[];
261
+ enable: boolean;
262
+ };
263
+ 3: {
264
+ hours: {
265
+ end: string;
266
+ start: string;
267
+ }[];
268
+ enable: boolean;
269
+ };
270
+ 4: {
271
+ hours: {
272
+ end: string;
273
+ start: string;
274
+ }[];
275
+ enable: boolean;
276
+ };
277
+ 5: {
278
+ hours: {
279
+ end: string;
280
+ start: string;
281
+ }[];
282
+ enable: boolean;
283
+ };
284
+ 6: {
285
+ hours: {
286
+ end: string;
287
+ start: string;
288
+ }[];
289
+ enable: boolean;
290
+ };
291
+ } | null | undefined;
292
+ tags?: string[] | null | undefined;
293
+ url?: string | null | undefined;
319
294
  };
320
295
  };
321
- })[] | null | undefined;
296
+ }[] | null | undefined;
322
297
  updatedBy?: {
323
298
  email?: string | null | undefined;
324
299
  phoneNumber?: string | null | undefined;
@@ -354,7 +329,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
354
329
  precision: number;
355
330
  };
356
331
  } | null | undefined;
357
- type: "RECIPE" | "SKU";
332
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
358
333
  amount: {
359
334
  amount: number;
360
335
  precision: number;
@@ -415,95 +390,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
415
390
  ref?: string | null | undefined;
416
391
  _rev?: string | null | undefined;
417
392
  updatedAt?: Date | null | undefined;
418
- locations?: ({
419
- doc?: any;
420
- type: "restaurant";
421
- name: string;
422
- acceptRequest: boolean;
423
- dbName: string;
424
- } | {
425
- type: "warehouse";
393
+ locations?: {
394
+ type: "restaurant" | "warehouse";
426
395
  name: string;
427
396
  acceptRequest: boolean;
428
397
  dbName: string;
429
398
  doc: {
430
- pf_business?: {
431
- internal?: boolean | null | undefined;
432
- url?: string | null | undefined;
433
- expiredAt?: string | null | undefined;
434
- agentId?: string | null | undefined;
435
- restaurantTagGroups?: {
436
- name: string;
437
- id: string;
438
- tags: {
439
- name: string;
440
- id: string;
441
- }[];
442
- }[] | null | undefined;
443
- pf_agent?: {
444
- clickupId?: string | null | undefined;
445
- members?: {
446
- pf_user?: {
447
- email?: string | null | undefined;
448
- phoneNumber?: string | null | undefined;
449
- birthday?: string | null | undefined;
450
- gender?: "MALE" | "FEMALE" | null | undefined;
451
- addresses?: {
452
- name: string;
453
- address: string;
454
- coordinates: number[];
455
- }[] | null | undefined;
456
- photoURL?: string | null | undefined;
457
- displayName?: string | null | undefined;
458
- imported?: {
459
- raw: Record<string, any>;
460
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
461
- } | null | undefined;
462
- _id: string;
463
- } | null | undefined;
464
- role: "ADMIN";
465
- userId: string;
466
- }[] | null | undefined;
467
- code: string;
468
- name: string;
469
- _id: string;
470
- isReseller: boolean;
471
- } | null | undefined;
472
- thumbnail?: string | null | undefined;
473
- billingInfos?: {
474
- _id?: string | null | undefined;
475
- name: string;
476
- address: {
477
- coordinates?: number[] | null | undefined;
478
- line2?: string | null | undefined;
479
- state: string;
480
- country: string;
481
- line1: string;
482
- city: string;
483
- postcode: string;
484
- };
485
- email: string;
486
- companyName: string;
487
- contact: string;
488
- }[] | null | undefined;
489
- customerDisplayImages?: {
490
- url: string;
491
- restaurantIds: string[];
492
- }[] | null | undefined;
493
- name: string;
494
- _id: string;
495
- ownerId: string;
496
- restaurantQuota: number;
497
- warehouseQuota: number;
498
- menuVersion: string;
499
- } | null | undefined;
500
399
  _id: string;
501
400
  businessId: string;
502
401
  profile: {
503
- email?: string | null | undefined;
504
- phoneNo?: string | null | undefined;
505
- name: string;
506
- address: {
402
+ code?: string | null | undefined;
403
+ _id?: string | null | undefined;
404
+ name?: string | undefined;
405
+ address?: {
507
406
  coordinates?: number[] | null | undefined;
508
407
  line2?: string | null | undefined;
509
408
  state: string;
@@ -511,11 +410,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
511
410
  line1: string;
512
411
  city: string;
513
412
  postcode: string;
514
- };
515
- regNo: string;
413
+ } | undefined;
414
+ email?: string | undefined;
415
+ regNo?: string | undefined;
416
+ sstRegNo?: string | null | undefined;
417
+ phoneNo?: string | undefined;
418
+ legalName?: string | null | undefined;
419
+ discovery?: boolean | null | undefined;
420
+ coverPhoto?: string | null | undefined;
421
+ thumbnailPhoto?: string | null | undefined;
422
+ description?: string | null | undefined;
423
+ photos?: string[] | null | undefined;
424
+ operatingHours?: {
425
+ 0: {
426
+ hours: {
427
+ end: string;
428
+ start: string;
429
+ }[];
430
+ enable: boolean;
431
+ };
432
+ 2: {
433
+ hours: {
434
+ end: string;
435
+ start: string;
436
+ }[];
437
+ enable: boolean;
438
+ };
439
+ 1: {
440
+ hours: {
441
+ end: string;
442
+ start: string;
443
+ }[];
444
+ enable: boolean;
445
+ };
446
+ 3: {
447
+ hours: {
448
+ end: string;
449
+ start: string;
450
+ }[];
451
+ enable: boolean;
452
+ };
453
+ 4: {
454
+ hours: {
455
+ end: string;
456
+ start: string;
457
+ }[];
458
+ enable: boolean;
459
+ };
460
+ 5: {
461
+ hours: {
462
+ end: string;
463
+ start: string;
464
+ }[];
465
+ enable: boolean;
466
+ };
467
+ 6: {
468
+ hours: {
469
+ end: string;
470
+ start: string;
471
+ }[];
472
+ enable: boolean;
473
+ };
474
+ } | null | undefined;
475
+ tags?: string[] | null | undefined;
476
+ url?: string | null | undefined;
516
477
  };
517
478
  };
518
- })[] | null | undefined;
479
+ }[] | null | undefined;
519
480
  updatedBy?: {
520
481
  email?: string | null | undefined;
521
482
  phoneNumber?: string | null | undefined;
@@ -551,7 +512,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
551
512
  precision: number;
552
513
  };
553
514
  } | null | undefined;
554
- type: "RECIPE" | "SKU";
515
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
555
516
  amount: {
556
517
  amount: number;
557
518
  precision: number;
@@ -611,95 +572,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
611
572
  ref?: string | null | undefined;
612
573
  _rev?: string | null | undefined;
613
574
  updatedAt?: Date | null | undefined;
614
- locations?: ({
615
- doc?: any;
616
- type: "restaurant";
617
- name: string;
618
- acceptRequest: boolean;
619
- dbName: string;
620
- } | {
621
- type: "warehouse";
575
+ locations?: {
576
+ type: "restaurant" | "warehouse";
622
577
  name: string;
623
578
  acceptRequest: boolean;
624
579
  dbName: string;
625
580
  doc: {
626
- pf_business?: {
627
- internal?: boolean | null | undefined;
628
- url?: string | null | undefined;
629
- expiredAt?: string | null | undefined;
630
- agentId?: string | null | undefined;
631
- restaurantTagGroups?: {
632
- name: string;
633
- id: string;
634
- tags: {
635
- name: string;
636
- id: string;
637
- }[];
638
- }[] | null | undefined;
639
- pf_agent?: {
640
- clickupId?: string | null | undefined;
641
- members?: {
642
- pf_user?: {
643
- email?: string | null | undefined;
644
- phoneNumber?: string | null | undefined;
645
- birthday?: string | null | undefined;
646
- gender?: "MALE" | "FEMALE" | null | undefined;
647
- addresses?: {
648
- name: string;
649
- address: string;
650
- coordinates: number[];
651
- }[] | null | undefined;
652
- photoURL?: string | null | undefined;
653
- displayName?: string | null | undefined;
654
- imported?: {
655
- raw: Record<string, any>;
656
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
657
- } | null | undefined;
658
- _id: string;
659
- } | null | undefined;
660
- role: "ADMIN";
661
- userId: string;
662
- }[] | null | undefined;
663
- code: string;
664
- name: string;
665
- _id: string;
666
- isReseller: boolean;
667
- } | null | undefined;
668
- thumbnail?: string | null | undefined;
669
- billingInfos?: {
670
- _id?: string | null | undefined;
671
- name: string;
672
- address: {
673
- coordinates?: number[] | null | undefined;
674
- line2?: string | null | undefined;
675
- state: string;
676
- country: string;
677
- line1: string;
678
- city: string;
679
- postcode: string;
680
- };
681
- email: string;
682
- companyName: string;
683
- contact: string;
684
- }[] | null | undefined;
685
- customerDisplayImages?: {
686
- url: string;
687
- restaurantIds: string[];
688
- }[] | null | undefined;
689
- name: string;
690
- _id: string;
691
- ownerId: string;
692
- restaurantQuota: number;
693
- warehouseQuota: number;
694
- menuVersion: string;
695
- } | null | undefined;
696
581
  _id: string;
697
582
  businessId: string;
698
583
  profile: {
699
- email?: string | null | undefined;
700
- phoneNo?: string | null | undefined;
701
- name: string;
702
- address: {
584
+ code?: string | null | undefined;
585
+ _id?: string | null | undefined;
586
+ name?: string | undefined;
587
+ address?: {
703
588
  coordinates?: number[] | null | undefined;
704
589
  line2?: string | null | undefined;
705
590
  state: string;
@@ -707,11 +592,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
707
592
  line1: string;
708
593
  city: string;
709
594
  postcode: string;
710
- };
711
- regNo: string;
595
+ } | undefined;
596
+ email?: string | undefined;
597
+ regNo?: string | undefined;
598
+ sstRegNo?: string | null | undefined;
599
+ phoneNo?: string | undefined;
600
+ legalName?: string | null | undefined;
601
+ discovery?: boolean | null | undefined;
602
+ coverPhoto?: string | null | undefined;
603
+ thumbnailPhoto?: string | null | undefined;
604
+ description?: string | null | undefined;
605
+ photos?: string[] | null | undefined;
606
+ operatingHours?: {
607
+ 0: {
608
+ hours: {
609
+ end: string;
610
+ start: string;
611
+ }[];
612
+ enable: boolean;
613
+ };
614
+ 2: {
615
+ hours: {
616
+ end: string;
617
+ start: string;
618
+ }[];
619
+ enable: boolean;
620
+ };
621
+ 1: {
622
+ hours: {
623
+ end: string;
624
+ start: string;
625
+ }[];
626
+ enable: boolean;
627
+ };
628
+ 3: {
629
+ hours: {
630
+ end: string;
631
+ start: string;
632
+ }[];
633
+ enable: boolean;
634
+ };
635
+ 4: {
636
+ hours: {
637
+ end: string;
638
+ start: string;
639
+ }[];
640
+ enable: boolean;
641
+ };
642
+ 5: {
643
+ hours: {
644
+ end: string;
645
+ start: string;
646
+ }[];
647
+ enable: boolean;
648
+ };
649
+ 6: {
650
+ hours: {
651
+ end: string;
652
+ start: string;
653
+ }[];
654
+ enable: boolean;
655
+ };
656
+ } | null | undefined;
657
+ tags?: string[] | null | undefined;
658
+ url?: string | null | undefined;
712
659
  };
713
660
  };
714
- })[] | null | undefined;
661
+ }[] | null | undefined;
715
662
  updatedBy?: {
716
663
  email?: string | null | undefined;
717
664
  phoneNumber?: string | null | undefined;
@@ -747,7 +694,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
747
694
  precision: number;
748
695
  };
749
696
  } | null | undefined;
750
- type: "RECIPE" | "SKU";
697
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
751
698
  amount: {
752
699
  amount: number;
753
700
  precision: number;
@@ -803,106 +750,32 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
803
750
  'onUpdate:show'?: ((show: boolean) => void) | undefined;
804
751
  'onAction:edit'?: (() => void) | undefined;
805
752
  }>;
806
- }, "templateDialogProps" | "templateDetailsProps">, Pick<{
753
+ }, "templateDialogProps" | "templateDetailsProps">>, Pick<{
807
754
  createTemplate: () => void;
808
755
  viewTemplate: (template: FdoClosingTemplate) => void;
809
756
  updateTemplate: (template: FdoClosingTemplate) => void;
810
- deleteTemplate: (template: FdoClosingTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
757
+ deleteTemplate: (template: FdoClosingTemplate & RevisionIdMeta, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
758
+ exportTemplates: () => void;
759
+ importTemplates: () => void;
811
760
  templateDialogProps: Ref<{
812
761
  mode?: FormMode | undefined;
813
762
  modelValue?: {
814
763
  ref?: string | null | undefined;
815
764
  _rev?: string | null | undefined;
816
765
  updatedAt?: Date | null | undefined;
817
- locations?: ({
818
- doc?: any;
819
- type: "restaurant";
820
- name: string;
821
- acceptRequest: boolean;
822
- dbName: string;
823
- } | {
824
- type: "warehouse";
766
+ locations?: {
767
+ type: "restaurant" | "warehouse";
825
768
  name: string;
826
769
  acceptRequest: boolean;
827
770
  dbName: string;
828
771
  doc: {
829
- pf_business?: {
830
- internal?: boolean | null | undefined;
831
- url?: string | null | undefined;
832
- expiredAt?: string | null | undefined;
833
- agentId?: string | null | undefined;
834
- restaurantTagGroups?: {
835
- name: string;
836
- id: string;
837
- tags: {
838
- name: string;
839
- id: string;
840
- }[];
841
- }[] | null | undefined;
842
- pf_agent?: {
843
- clickupId?: string | null | undefined;
844
- members?: {
845
- pf_user?: {
846
- email?: string | null | undefined;
847
- phoneNumber?: string | null | undefined;
848
- birthday?: string | null | undefined;
849
- gender?: "MALE" | "FEMALE" | null | undefined;
850
- addresses?: {
851
- name: string;
852
- address: string;
853
- coordinates: number[];
854
- }[] | null | undefined;
855
- photoURL?: string | null | undefined;
856
- displayName?: string | null | undefined;
857
- imported?: {
858
- raw: Record<string, any>;
859
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
860
- } | null | undefined;
861
- _id: string;
862
- } | null | undefined;
863
- role: "ADMIN";
864
- userId: string;
865
- }[] | null | undefined;
866
- code: string;
867
- name: string;
868
- _id: string;
869
- isReseller: boolean;
870
- } | null | undefined;
871
- thumbnail?: string | null | undefined;
872
- billingInfos?: {
873
- _id?: string | null | undefined;
874
- name: string;
875
- address: {
876
- coordinates?: number[] | null | undefined;
877
- line2?: string | null | undefined;
878
- state: string;
879
- country: string;
880
- line1: string;
881
- city: string;
882
- postcode: string;
883
- };
884
- email: string;
885
- companyName: string;
886
- contact: string;
887
- }[] | null | undefined;
888
- customerDisplayImages?: {
889
- url: string;
890
- restaurantIds: string[];
891
- }[] | null | undefined;
892
- name: string;
893
- _id: string;
894
- ownerId: string;
895
- restaurantQuota: number;
896
- warehouseQuota: number;
897
- menuVersion: string;
898
- } | null | undefined;
899
772
  _id: string;
900
773
  businessId: string;
901
774
  profile: {
902
- email?: string | null | undefined;
903
- phoneNo?: string | null | undefined;
904
- name: string;
905
- address: {
775
+ code?: string | null | undefined;
776
+ _id?: string | null | undefined;
777
+ name?: string | undefined;
778
+ address?: {
906
779
  coordinates?: number[] | null | undefined;
907
780
  line2?: string | null | undefined;
908
781
  state: string;
@@ -910,11 +783,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
910
783
  line1: string;
911
784
  city: string;
912
785
  postcode: string;
913
- };
914
- regNo: string;
786
+ } | undefined;
787
+ email?: string | undefined;
788
+ regNo?: string | undefined;
789
+ sstRegNo?: string | null | undefined;
790
+ phoneNo?: string | undefined;
791
+ legalName?: string | null | undefined;
792
+ discovery?: boolean | null | undefined;
793
+ coverPhoto?: string | null | undefined;
794
+ thumbnailPhoto?: string | null | undefined;
795
+ description?: string | null | undefined;
796
+ photos?: string[] | null | undefined;
797
+ operatingHours?: {
798
+ 0: {
799
+ hours: {
800
+ end: string;
801
+ start: string;
802
+ }[];
803
+ enable: boolean;
804
+ };
805
+ 2: {
806
+ hours: {
807
+ end: string;
808
+ start: string;
809
+ }[];
810
+ enable: boolean;
811
+ };
812
+ 1: {
813
+ hours: {
814
+ end: string;
815
+ start: string;
816
+ }[];
817
+ enable: boolean;
818
+ };
819
+ 3: {
820
+ hours: {
821
+ end: string;
822
+ start: string;
823
+ }[];
824
+ enable: boolean;
825
+ };
826
+ 4: {
827
+ hours: {
828
+ end: string;
829
+ start: string;
830
+ }[];
831
+ enable: boolean;
832
+ };
833
+ 5: {
834
+ hours: {
835
+ end: string;
836
+ start: string;
837
+ }[];
838
+ enable: boolean;
839
+ };
840
+ 6: {
841
+ hours: {
842
+ end: string;
843
+ start: string;
844
+ }[];
845
+ enable: boolean;
846
+ };
847
+ } | null | undefined;
848
+ tags?: string[] | null | undefined;
849
+ url?: string | null | undefined;
915
850
  };
916
851
  };
917
- })[] | null | undefined;
852
+ }[] | null | undefined;
918
853
  updatedBy?: {
919
854
  email?: string | null | undefined;
920
855
  phoneNumber?: string | null | undefined;
@@ -950,7 +885,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
950
885
  precision: number;
951
886
  };
952
887
  } | null | undefined;
953
- type: "RECIPE" | "SKU";
888
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
954
889
  amount: {
955
890
  amount: number;
956
891
  precision: number;
@@ -1011,95 +946,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1011
946
  ref?: string | null | undefined;
1012
947
  _rev?: string | null | undefined;
1013
948
  updatedAt?: Date | null | undefined;
1014
- locations?: ({
1015
- doc?: any;
1016
- type: "restaurant";
1017
- name: string;
1018
- acceptRequest: boolean;
1019
- dbName: string;
1020
- } | {
1021
- type: "warehouse";
949
+ locations?: {
950
+ type: "restaurant" | "warehouse";
1022
951
  name: string;
1023
952
  acceptRequest: boolean;
1024
953
  dbName: string;
1025
954
  doc: {
1026
- pf_business?: {
1027
- internal?: boolean | null | undefined;
1028
- url?: string | null | undefined;
1029
- expiredAt?: string | null | undefined;
1030
- agentId?: string | null | undefined;
1031
- restaurantTagGroups?: {
1032
- name: string;
1033
- id: string;
1034
- tags: {
1035
- name: string;
1036
- id: string;
1037
- }[];
1038
- }[] | null | undefined;
1039
- pf_agent?: {
1040
- clickupId?: string | null | undefined;
1041
- members?: {
1042
- pf_user?: {
1043
- email?: string | null | undefined;
1044
- phoneNumber?: string | null | undefined;
1045
- birthday?: string | null | undefined;
1046
- gender?: "MALE" | "FEMALE" | null | undefined;
1047
- addresses?: {
1048
- name: string;
1049
- address: string;
1050
- coordinates: number[];
1051
- }[] | null | undefined;
1052
- photoURL?: string | null | undefined;
1053
- displayName?: string | null | undefined;
1054
- imported?: {
1055
- raw: Record<string, any>;
1056
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1057
- } | null | undefined;
1058
- _id: string;
1059
- } | null | undefined;
1060
- role: "ADMIN";
1061
- userId: string;
1062
- }[] | null | undefined;
1063
- code: string;
1064
- name: string;
1065
- _id: string;
1066
- isReseller: boolean;
1067
- } | null | undefined;
1068
- thumbnail?: string | null | undefined;
1069
- billingInfos?: {
1070
- _id?: string | null | undefined;
1071
- name: string;
1072
- address: {
1073
- coordinates?: number[] | null | undefined;
1074
- line2?: string | null | undefined;
1075
- state: string;
1076
- country: string;
1077
- line1: string;
1078
- city: string;
1079
- postcode: string;
1080
- };
1081
- email: string;
1082
- companyName: string;
1083
- contact: string;
1084
- }[] | null | undefined;
1085
- customerDisplayImages?: {
1086
- url: string;
1087
- restaurantIds: string[];
1088
- }[] | null | undefined;
1089
- name: string;
1090
- _id: string;
1091
- ownerId: string;
1092
- restaurantQuota: number;
1093
- warehouseQuota: number;
1094
- menuVersion: string;
1095
- } | null | undefined;
1096
955
  _id: string;
1097
956
  businessId: string;
1098
957
  profile: {
1099
- email?: string | null | undefined;
1100
- phoneNo?: string | null | undefined;
1101
- name: string;
1102
- address: {
958
+ code?: string | null | undefined;
959
+ _id?: string | null | undefined;
960
+ name?: string | undefined;
961
+ address?: {
1103
962
  coordinates?: number[] | null | undefined;
1104
963
  line2?: string | null | undefined;
1105
964
  state: string;
@@ -1107,11 +966,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1107
966
  line1: string;
1108
967
  city: string;
1109
968
  postcode: string;
1110
- };
1111
- regNo: string;
969
+ } | undefined;
970
+ email?: string | undefined;
971
+ regNo?: string | undefined;
972
+ sstRegNo?: string | null | undefined;
973
+ phoneNo?: string | undefined;
974
+ legalName?: string | null | undefined;
975
+ discovery?: boolean | null | undefined;
976
+ coverPhoto?: string | null | undefined;
977
+ thumbnailPhoto?: string | null | undefined;
978
+ description?: string | null | undefined;
979
+ photos?: string[] | null | undefined;
980
+ operatingHours?: {
981
+ 0: {
982
+ hours: {
983
+ end: string;
984
+ start: string;
985
+ }[];
986
+ enable: boolean;
987
+ };
988
+ 2: {
989
+ hours: {
990
+ end: string;
991
+ start: string;
992
+ }[];
993
+ enable: boolean;
994
+ };
995
+ 1: {
996
+ hours: {
997
+ end: string;
998
+ start: string;
999
+ }[];
1000
+ enable: boolean;
1001
+ };
1002
+ 3: {
1003
+ hours: {
1004
+ end: string;
1005
+ start: string;
1006
+ }[];
1007
+ enable: boolean;
1008
+ };
1009
+ 4: {
1010
+ hours: {
1011
+ end: string;
1012
+ start: string;
1013
+ }[];
1014
+ enable: boolean;
1015
+ };
1016
+ 5: {
1017
+ hours: {
1018
+ end: string;
1019
+ start: string;
1020
+ }[];
1021
+ enable: boolean;
1022
+ };
1023
+ 6: {
1024
+ hours: {
1025
+ end: string;
1026
+ start: string;
1027
+ }[];
1028
+ enable: boolean;
1029
+ };
1030
+ } | null | undefined;
1031
+ tags?: string[] | null | undefined;
1032
+ url?: string | null | undefined;
1112
1033
  };
1113
1034
  };
1114
- })[] | null | undefined;
1035
+ }[] | null | undefined;
1115
1036
  updatedBy?: {
1116
1037
  email?: string | null | undefined;
1117
1038
  phoneNumber?: string | null | undefined;
@@ -1147,7 +1068,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1147
1068
  precision: number;
1148
1069
  };
1149
1070
  } | null | undefined;
1150
- type: "RECIPE" | "SKU";
1071
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1151
1072
  amount: {
1152
1073
  amount: number;
1153
1074
  precision: number;
@@ -1208,95 +1129,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1208
1129
  ref?: string | null | undefined;
1209
1130
  _rev?: string | null | undefined;
1210
1131
  updatedAt?: Date | null | undefined;
1211
- locations?: ({
1212
- doc?: any;
1213
- type: "restaurant";
1214
- name: string;
1215
- acceptRequest: boolean;
1216
- dbName: string;
1217
- } | {
1218
- type: "warehouse";
1132
+ locations?: {
1133
+ type: "restaurant" | "warehouse";
1219
1134
  name: string;
1220
1135
  acceptRequest: boolean;
1221
1136
  dbName: string;
1222
1137
  doc: {
1223
- pf_business?: {
1224
- internal?: boolean | null | undefined;
1225
- url?: string | null | undefined;
1226
- expiredAt?: string | null | undefined;
1227
- agentId?: string | null | undefined;
1228
- restaurantTagGroups?: {
1229
- name: string;
1230
- id: string;
1231
- tags: {
1232
- name: string;
1233
- id: string;
1234
- }[];
1235
- }[] | null | undefined;
1236
- pf_agent?: {
1237
- clickupId?: string | null | undefined;
1238
- members?: {
1239
- pf_user?: {
1240
- email?: string | null | undefined;
1241
- phoneNumber?: string | null | undefined;
1242
- birthday?: string | null | undefined;
1243
- gender?: "MALE" | "FEMALE" | null | undefined;
1244
- addresses?: {
1245
- name: string;
1246
- address: string;
1247
- coordinates: number[];
1248
- }[] | null | undefined;
1249
- photoURL?: string | null | undefined;
1250
- displayName?: string | null | undefined;
1251
- imported?: {
1252
- raw: Record<string, any>;
1253
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1254
- } | null | undefined;
1255
- _id: string;
1256
- } | null | undefined;
1257
- role: "ADMIN";
1258
- userId: string;
1259
- }[] | null | undefined;
1260
- code: string;
1261
- name: string;
1262
- _id: string;
1263
- isReseller: boolean;
1264
- } | null | undefined;
1265
- thumbnail?: string | null | undefined;
1266
- billingInfos?: {
1267
- _id?: string | null | undefined;
1268
- name: string;
1269
- address: {
1270
- coordinates?: number[] | null | undefined;
1271
- line2?: string | null | undefined;
1272
- state: string;
1273
- country: string;
1274
- line1: string;
1275
- city: string;
1276
- postcode: string;
1277
- };
1278
- email: string;
1279
- companyName: string;
1280
- contact: string;
1281
- }[] | null | undefined;
1282
- customerDisplayImages?: {
1283
- url: string;
1284
- restaurantIds: string[];
1285
- }[] | null | undefined;
1286
- name: string;
1287
- _id: string;
1288
- ownerId: string;
1289
- restaurantQuota: number;
1290
- warehouseQuota: number;
1291
- menuVersion: string;
1292
- } | null | undefined;
1293
1138
  _id: string;
1294
1139
  businessId: string;
1295
1140
  profile: {
1296
- email?: string | null | undefined;
1297
- phoneNo?: string | null | undefined;
1298
- name: string;
1299
- address: {
1141
+ code?: string | null | undefined;
1142
+ _id?: string | null | undefined;
1143
+ name?: string | undefined;
1144
+ address?: {
1300
1145
  coordinates?: number[] | null | undefined;
1301
1146
  line2?: string | null | undefined;
1302
1147
  state: string;
@@ -1304,11 +1149,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1304
1149
  line1: string;
1305
1150
  city: string;
1306
1151
  postcode: string;
1307
- };
1308
- regNo: string;
1152
+ } | undefined;
1153
+ email?: string | undefined;
1154
+ regNo?: string | undefined;
1155
+ sstRegNo?: string | null | undefined;
1156
+ phoneNo?: string | undefined;
1157
+ legalName?: string | null | undefined;
1158
+ discovery?: boolean | null | undefined;
1159
+ coverPhoto?: string | null | undefined;
1160
+ thumbnailPhoto?: string | null | undefined;
1161
+ description?: string | null | undefined;
1162
+ photos?: string[] | null | undefined;
1163
+ operatingHours?: {
1164
+ 0: {
1165
+ hours: {
1166
+ end: string;
1167
+ start: string;
1168
+ }[];
1169
+ enable: boolean;
1170
+ };
1171
+ 2: {
1172
+ hours: {
1173
+ end: string;
1174
+ start: string;
1175
+ }[];
1176
+ enable: boolean;
1177
+ };
1178
+ 1: {
1179
+ hours: {
1180
+ end: string;
1181
+ start: string;
1182
+ }[];
1183
+ enable: boolean;
1184
+ };
1185
+ 3: {
1186
+ hours: {
1187
+ end: string;
1188
+ start: string;
1189
+ }[];
1190
+ enable: boolean;
1191
+ };
1192
+ 4: {
1193
+ hours: {
1194
+ end: string;
1195
+ start: string;
1196
+ }[];
1197
+ enable: boolean;
1198
+ };
1199
+ 5: {
1200
+ hours: {
1201
+ end: string;
1202
+ start: string;
1203
+ }[];
1204
+ enable: boolean;
1205
+ };
1206
+ 6: {
1207
+ hours: {
1208
+ end: string;
1209
+ start: string;
1210
+ }[];
1211
+ enable: boolean;
1212
+ };
1213
+ } | null | undefined;
1214
+ tags?: string[] | null | undefined;
1215
+ url?: string | null | undefined;
1309
1216
  };
1310
1217
  };
1311
- })[] | null | undefined;
1218
+ }[] | null | undefined;
1312
1219
  updatedBy?: {
1313
1220
  email?: string | null | undefined;
1314
1221
  phoneNumber?: string | null | undefined;
@@ -1344,7 +1251,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1344
1251
  precision: number;
1345
1252
  };
1346
1253
  } | null | undefined;
1347
- type: "RECIPE" | "SKU";
1254
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1348
1255
  amount: {
1349
1256
  amount: number;
1350
1257
  precision: number;
@@ -1404,95 +1311,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1404
1311
  ref?: string | null | undefined;
1405
1312
  _rev?: string | null | undefined;
1406
1313
  updatedAt?: Date | null | undefined;
1407
- locations?: ({
1408
- doc?: any;
1409
- type: "restaurant";
1410
- name: string;
1411
- acceptRequest: boolean;
1412
- dbName: string;
1413
- } | {
1414
- type: "warehouse";
1314
+ locations?: {
1315
+ type: "restaurant" | "warehouse";
1415
1316
  name: string;
1416
1317
  acceptRequest: boolean;
1417
1318
  dbName: string;
1418
1319
  doc: {
1419
- pf_business?: {
1420
- internal?: boolean | null | undefined;
1421
- url?: string | null | undefined;
1422
- expiredAt?: string | null | undefined;
1423
- agentId?: string | null | undefined;
1424
- restaurantTagGroups?: {
1425
- name: string;
1426
- id: string;
1427
- tags: {
1428
- name: string;
1429
- id: string;
1430
- }[];
1431
- }[] | null | undefined;
1432
- pf_agent?: {
1433
- clickupId?: string | null | undefined;
1434
- members?: {
1435
- pf_user?: {
1436
- email?: string | null | undefined;
1437
- phoneNumber?: string | null | undefined;
1438
- birthday?: string | null | undefined;
1439
- gender?: "MALE" | "FEMALE" | null | undefined;
1440
- addresses?: {
1441
- name: string;
1442
- address: string;
1443
- coordinates: number[];
1444
- }[] | null | undefined;
1445
- photoURL?: string | null | undefined;
1446
- displayName?: string | null | undefined;
1447
- imported?: {
1448
- raw: Record<string, any>;
1449
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1450
- } | null | undefined;
1451
- _id: string;
1452
- } | null | undefined;
1453
- role: "ADMIN";
1454
- userId: string;
1455
- }[] | null | undefined;
1456
- code: string;
1457
- name: string;
1458
- _id: string;
1459
- isReseller: boolean;
1460
- } | null | undefined;
1461
- thumbnail?: string | null | undefined;
1462
- billingInfos?: {
1463
- _id?: string | null | undefined;
1464
- name: string;
1465
- address: {
1466
- coordinates?: number[] | null | undefined;
1467
- line2?: string | null | undefined;
1468
- state: string;
1469
- country: string;
1470
- line1: string;
1471
- city: string;
1472
- postcode: string;
1473
- };
1474
- email: string;
1475
- companyName: string;
1476
- contact: string;
1477
- }[] | null | undefined;
1478
- customerDisplayImages?: {
1479
- url: string;
1480
- restaurantIds: string[];
1481
- }[] | null | undefined;
1482
- name: string;
1483
- _id: string;
1484
- ownerId: string;
1485
- restaurantQuota: number;
1486
- warehouseQuota: number;
1487
- menuVersion: string;
1488
- } | null | undefined;
1489
1320
  _id: string;
1490
1321
  businessId: string;
1491
1322
  profile: {
1492
- email?: string | null | undefined;
1493
- phoneNo?: string | null | undefined;
1494
- name: string;
1495
- address: {
1323
+ code?: string | null | undefined;
1324
+ _id?: string | null | undefined;
1325
+ name?: string | undefined;
1326
+ address?: {
1496
1327
  coordinates?: number[] | null | undefined;
1497
1328
  line2?: string | null | undefined;
1498
1329
  state: string;
@@ -1500,11 +1331,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1500
1331
  line1: string;
1501
1332
  city: string;
1502
1333
  postcode: string;
1503
- };
1504
- regNo: string;
1334
+ } | undefined;
1335
+ email?: string | undefined;
1336
+ regNo?: string | undefined;
1337
+ sstRegNo?: string | null | undefined;
1338
+ phoneNo?: string | undefined;
1339
+ legalName?: string | null | undefined;
1340
+ discovery?: boolean | null | undefined;
1341
+ coverPhoto?: string | null | undefined;
1342
+ thumbnailPhoto?: string | null | undefined;
1343
+ description?: string | null | undefined;
1344
+ photos?: string[] | null | undefined;
1345
+ operatingHours?: {
1346
+ 0: {
1347
+ hours: {
1348
+ end: string;
1349
+ start: string;
1350
+ }[];
1351
+ enable: boolean;
1352
+ };
1353
+ 2: {
1354
+ hours: {
1355
+ end: string;
1356
+ start: string;
1357
+ }[];
1358
+ enable: boolean;
1359
+ };
1360
+ 1: {
1361
+ hours: {
1362
+ end: string;
1363
+ start: string;
1364
+ }[];
1365
+ enable: boolean;
1366
+ };
1367
+ 3: {
1368
+ hours: {
1369
+ end: string;
1370
+ start: string;
1371
+ }[];
1372
+ enable: boolean;
1373
+ };
1374
+ 4: {
1375
+ hours: {
1376
+ end: string;
1377
+ start: string;
1378
+ }[];
1379
+ enable: boolean;
1380
+ };
1381
+ 5: {
1382
+ hours: {
1383
+ end: string;
1384
+ start: string;
1385
+ }[];
1386
+ enable: boolean;
1387
+ };
1388
+ 6: {
1389
+ hours: {
1390
+ end: string;
1391
+ start: string;
1392
+ }[];
1393
+ enable: boolean;
1394
+ };
1395
+ } | null | undefined;
1396
+ tags?: string[] | null | undefined;
1397
+ url?: string | null | undefined;
1505
1398
  };
1506
1399
  };
1507
- })[] | null | undefined;
1400
+ }[] | null | undefined;
1508
1401
  updatedBy?: {
1509
1402
  email?: string | null | undefined;
1510
1403
  phoneNumber?: string | null | undefined;
@@ -1540,7 +1433,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1540
1433
  precision: number;
1541
1434
  };
1542
1435
  } | null | undefined;
1543
- type: "RECIPE" | "SKU";
1436
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1544
1437
  amount: {
1545
1438
  amount: number;
1546
1439
  precision: number;
@@ -1600,102 +1493,28 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1600
1493
  createTemplate: () => void;
1601
1494
  viewTemplate: (template: FdoClosingTemplate) => void;
1602
1495
  updateTemplate: (template: FdoClosingTemplate) => void;
1603
- deleteTemplate: (template: FdoClosingTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
1496
+ deleteTemplate: (template: FdoClosingTemplate & RevisionIdMeta, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
1497
+ exportTemplates: () => void;
1498
+ importTemplates: () => void;
1604
1499
  templateDialogProps: Ref<{
1605
1500
  mode?: FormMode | undefined;
1606
1501
  modelValue?: {
1607
1502
  ref?: string | null | undefined;
1608
1503
  _rev?: string | null | undefined;
1609
1504
  updatedAt?: Date | null | undefined;
1610
- locations?: ({
1611
- doc?: any;
1612
- type: "restaurant";
1613
- name: string;
1614
- acceptRequest: boolean;
1615
- dbName: string;
1616
- } | {
1617
- type: "warehouse";
1505
+ locations?: {
1506
+ type: "restaurant" | "warehouse";
1618
1507
  name: string;
1619
1508
  acceptRequest: boolean;
1620
1509
  dbName: string;
1621
1510
  doc: {
1622
- pf_business?: {
1623
- internal?: boolean | null | undefined;
1624
- url?: string | null | undefined;
1625
- expiredAt?: string | null | undefined;
1626
- agentId?: string | null | undefined;
1627
- restaurantTagGroups?: {
1628
- name: string;
1629
- id: string;
1630
- tags: {
1631
- name: string;
1632
- id: string;
1633
- }[];
1634
- }[] | null | undefined;
1635
- pf_agent?: {
1636
- clickupId?: string | null | undefined;
1637
- members?: {
1638
- pf_user?: {
1639
- email?: string | null | undefined;
1640
- phoneNumber?: string | null | undefined;
1641
- birthday?: string | null | undefined;
1642
- gender?: "MALE" | "FEMALE" | null | undefined;
1643
- addresses?: {
1644
- name: string;
1645
- address: string;
1646
- coordinates: number[];
1647
- }[] | null | undefined;
1648
- photoURL?: string | null | undefined;
1649
- displayName?: string | null | undefined;
1650
- imported?: {
1651
- raw: Record<string, any>;
1652
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1653
- } | null | undefined;
1654
- _id: string;
1655
- } | null | undefined;
1656
- role: "ADMIN";
1657
- userId: string;
1658
- }[] | null | undefined;
1659
- code: string;
1660
- name: string;
1661
- _id: string;
1662
- isReseller: boolean;
1663
- } | null | undefined;
1664
- thumbnail?: string | null | undefined;
1665
- billingInfos?: {
1666
- _id?: string | null | undefined;
1667
- name: string;
1668
- address: {
1669
- coordinates?: number[] | null | undefined;
1670
- line2?: string | null | undefined;
1671
- state: string;
1672
- country: string;
1673
- line1: string;
1674
- city: string;
1675
- postcode: string;
1676
- };
1677
- email: string;
1678
- companyName: string;
1679
- contact: string;
1680
- }[] | null | undefined;
1681
- customerDisplayImages?: {
1682
- url: string;
1683
- restaurantIds: string[];
1684
- }[] | null | undefined;
1685
- name: string;
1686
- _id: string;
1687
- ownerId: string;
1688
- restaurantQuota: number;
1689
- warehouseQuota: number;
1690
- menuVersion: string;
1691
- } | null | undefined;
1692
1511
  _id: string;
1693
1512
  businessId: string;
1694
1513
  profile: {
1695
- email?: string | null | undefined;
1696
- phoneNo?: string | null | undefined;
1697
- name: string;
1698
- address: {
1514
+ code?: string | null | undefined;
1515
+ _id?: string | null | undefined;
1516
+ name?: string | undefined;
1517
+ address?: {
1699
1518
  coordinates?: number[] | null | undefined;
1700
1519
  line2?: string | null | undefined;
1701
1520
  state: string;
@@ -1703,11 +1522,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1703
1522
  line1: string;
1704
1523
  city: string;
1705
1524
  postcode: string;
1706
- };
1707
- regNo: string;
1525
+ } | undefined;
1526
+ email?: string | undefined;
1527
+ regNo?: string | undefined;
1528
+ sstRegNo?: string | null | undefined;
1529
+ phoneNo?: string | undefined;
1530
+ legalName?: string | null | undefined;
1531
+ discovery?: boolean | null | undefined;
1532
+ coverPhoto?: string | null | undefined;
1533
+ thumbnailPhoto?: string | null | undefined;
1534
+ description?: string | null | undefined;
1535
+ photos?: string[] | null | undefined;
1536
+ operatingHours?: {
1537
+ 0: {
1538
+ hours: {
1539
+ end: string;
1540
+ start: string;
1541
+ }[];
1542
+ enable: boolean;
1543
+ };
1544
+ 2: {
1545
+ hours: {
1546
+ end: string;
1547
+ start: string;
1548
+ }[];
1549
+ enable: boolean;
1550
+ };
1551
+ 1: {
1552
+ hours: {
1553
+ end: string;
1554
+ start: string;
1555
+ }[];
1556
+ enable: boolean;
1557
+ };
1558
+ 3: {
1559
+ hours: {
1560
+ end: string;
1561
+ start: string;
1562
+ }[];
1563
+ enable: boolean;
1564
+ };
1565
+ 4: {
1566
+ hours: {
1567
+ end: string;
1568
+ start: string;
1569
+ }[];
1570
+ enable: boolean;
1571
+ };
1572
+ 5: {
1573
+ hours: {
1574
+ end: string;
1575
+ start: string;
1576
+ }[];
1577
+ enable: boolean;
1578
+ };
1579
+ 6: {
1580
+ hours: {
1581
+ end: string;
1582
+ start: string;
1583
+ }[];
1584
+ enable: boolean;
1585
+ };
1586
+ } | null | undefined;
1587
+ tags?: string[] | null | undefined;
1588
+ url?: string | null | undefined;
1708
1589
  };
1709
1590
  };
1710
- })[] | null | undefined;
1591
+ }[] | null | undefined;
1711
1592
  updatedBy?: {
1712
1593
  email?: string | null | undefined;
1713
1594
  phoneNumber?: string | null | undefined;
@@ -1743,7 +1624,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1743
1624
  precision: number;
1744
1625
  };
1745
1626
  } | null | undefined;
1746
- type: "RECIPE" | "SKU";
1627
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1747
1628
  amount: {
1748
1629
  amount: number;
1749
1630
  precision: number;
@@ -1804,95 +1685,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1804
1685
  ref?: string | null | undefined;
1805
1686
  _rev?: string | null | undefined;
1806
1687
  updatedAt?: Date | null | undefined;
1807
- locations?: ({
1808
- doc?: any;
1809
- type: "restaurant";
1810
- name: string;
1811
- acceptRequest: boolean;
1812
- dbName: string;
1813
- } | {
1814
- type: "warehouse";
1688
+ locations?: {
1689
+ type: "restaurant" | "warehouse";
1815
1690
  name: string;
1816
1691
  acceptRequest: boolean;
1817
1692
  dbName: string;
1818
1693
  doc: {
1819
- pf_business?: {
1820
- internal?: boolean | null | undefined;
1821
- url?: string | null | undefined;
1822
- expiredAt?: string | null | undefined;
1823
- agentId?: string | null | undefined;
1824
- restaurantTagGroups?: {
1825
- name: string;
1826
- id: string;
1827
- tags: {
1828
- name: string;
1829
- id: string;
1830
- }[];
1831
- }[] | null | undefined;
1832
- pf_agent?: {
1833
- clickupId?: string | null | undefined;
1834
- members?: {
1835
- pf_user?: {
1836
- email?: string | null | undefined;
1837
- phoneNumber?: string | null | undefined;
1838
- birthday?: string | null | undefined;
1839
- gender?: "MALE" | "FEMALE" | null | undefined;
1840
- addresses?: {
1841
- name: string;
1842
- address: string;
1843
- coordinates: number[];
1844
- }[] | null | undefined;
1845
- photoURL?: string | null | undefined;
1846
- displayName?: string | null | undefined;
1847
- imported?: {
1848
- raw: Record<string, any>;
1849
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1850
- } | null | undefined;
1851
- _id: string;
1852
- } | null | undefined;
1853
- role: "ADMIN";
1854
- userId: string;
1855
- }[] | null | undefined;
1856
- code: string;
1857
- name: string;
1858
- _id: string;
1859
- isReseller: boolean;
1860
- } | null | undefined;
1861
- thumbnail?: string | null | undefined;
1862
- billingInfos?: {
1863
- _id?: string | null | undefined;
1864
- name: string;
1865
- address: {
1866
- coordinates?: number[] | null | undefined;
1867
- line2?: string | null | undefined;
1868
- state: string;
1869
- country: string;
1870
- line1: string;
1871
- city: string;
1872
- postcode: string;
1873
- };
1874
- email: string;
1875
- companyName: string;
1876
- contact: string;
1877
- }[] | null | undefined;
1878
- customerDisplayImages?: {
1879
- url: string;
1880
- restaurantIds: string[];
1881
- }[] | null | undefined;
1882
- name: string;
1883
- _id: string;
1884
- ownerId: string;
1885
- restaurantQuota: number;
1886
- warehouseQuota: number;
1887
- menuVersion: string;
1888
- } | null | undefined;
1889
1694
  _id: string;
1890
1695
  businessId: string;
1891
1696
  profile: {
1892
- email?: string | null | undefined;
1893
- phoneNo?: string | null | undefined;
1894
- name: string;
1895
- address: {
1697
+ code?: string | null | undefined;
1698
+ _id?: string | null | undefined;
1699
+ name?: string | undefined;
1700
+ address?: {
1896
1701
  coordinates?: number[] | null | undefined;
1897
1702
  line2?: string | null | undefined;
1898
1703
  state: string;
@@ -1900,11 +1705,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1900
1705
  line1: string;
1901
1706
  city: string;
1902
1707
  postcode: string;
1903
- };
1904
- regNo: string;
1708
+ } | undefined;
1709
+ email?: string | undefined;
1710
+ regNo?: string | undefined;
1711
+ sstRegNo?: string | null | undefined;
1712
+ phoneNo?: string | undefined;
1713
+ legalName?: string | null | undefined;
1714
+ discovery?: boolean | null | undefined;
1715
+ coverPhoto?: string | null | undefined;
1716
+ thumbnailPhoto?: string | null | undefined;
1717
+ description?: string | null | undefined;
1718
+ photos?: string[] | null | undefined;
1719
+ operatingHours?: {
1720
+ 0: {
1721
+ hours: {
1722
+ end: string;
1723
+ start: string;
1724
+ }[];
1725
+ enable: boolean;
1726
+ };
1727
+ 2: {
1728
+ hours: {
1729
+ end: string;
1730
+ start: string;
1731
+ }[];
1732
+ enable: boolean;
1733
+ };
1734
+ 1: {
1735
+ hours: {
1736
+ end: string;
1737
+ start: string;
1738
+ }[];
1739
+ enable: boolean;
1740
+ };
1741
+ 3: {
1742
+ hours: {
1743
+ end: string;
1744
+ start: string;
1745
+ }[];
1746
+ enable: boolean;
1747
+ };
1748
+ 4: {
1749
+ hours: {
1750
+ end: string;
1751
+ start: string;
1752
+ }[];
1753
+ enable: boolean;
1754
+ };
1755
+ 5: {
1756
+ hours: {
1757
+ end: string;
1758
+ start: string;
1759
+ }[];
1760
+ enable: boolean;
1761
+ };
1762
+ 6: {
1763
+ hours: {
1764
+ end: string;
1765
+ start: string;
1766
+ }[];
1767
+ enable: boolean;
1768
+ };
1769
+ } | null | undefined;
1770
+ tags?: string[] | null | undefined;
1771
+ url?: string | null | undefined;
1905
1772
  };
1906
1773
  };
1907
- })[] | null | undefined;
1774
+ }[] | null | undefined;
1908
1775
  updatedBy?: {
1909
1776
  email?: string | null | undefined;
1910
1777
  phoneNumber?: string | null | undefined;
@@ -1940,7 +1807,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1940
1807
  precision: number;
1941
1808
  };
1942
1809
  } | null | undefined;
1943
- type: "RECIPE" | "SKU";
1810
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1944
1811
  amount: {
1945
1812
  amount: number;
1946
1813
  precision: number;
@@ -2001,95 +1868,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2001
1868
  ref?: string | null | undefined;
2002
1869
  _rev?: string | null | undefined;
2003
1870
  updatedAt?: Date | null | undefined;
2004
- locations?: ({
2005
- doc?: any;
2006
- type: "restaurant";
2007
- name: string;
2008
- acceptRequest: boolean;
2009
- dbName: string;
2010
- } | {
2011
- type: "warehouse";
1871
+ locations?: {
1872
+ type: "restaurant" | "warehouse";
2012
1873
  name: string;
2013
1874
  acceptRequest: boolean;
2014
1875
  dbName: string;
2015
1876
  doc: {
2016
- pf_business?: {
2017
- internal?: boolean | null | undefined;
2018
- url?: string | null | undefined;
2019
- expiredAt?: string | null | undefined;
2020
- agentId?: string | null | undefined;
2021
- restaurantTagGroups?: {
2022
- name: string;
2023
- id: string;
2024
- tags: {
2025
- name: string;
2026
- id: string;
2027
- }[];
2028
- }[] | null | undefined;
2029
- pf_agent?: {
2030
- clickupId?: string | null | undefined;
2031
- members?: {
2032
- pf_user?: {
2033
- email?: string | null | undefined;
2034
- phoneNumber?: string | null | undefined;
2035
- birthday?: string | null | undefined;
2036
- gender?: "MALE" | "FEMALE" | null | undefined;
2037
- addresses?: {
2038
- name: string;
2039
- address: string;
2040
- coordinates: number[];
2041
- }[] | null | undefined;
2042
- photoURL?: string | null | undefined;
2043
- displayName?: string | null | undefined;
2044
- imported?: {
2045
- raw: Record<string, any>;
2046
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2047
- } | null | undefined;
2048
- _id: string;
2049
- } | null | undefined;
2050
- role: "ADMIN";
2051
- userId: string;
2052
- }[] | null | undefined;
2053
- code: string;
2054
- name: string;
2055
- _id: string;
2056
- isReseller: boolean;
2057
- } | null | undefined;
2058
- thumbnail?: string | null | undefined;
2059
- billingInfos?: {
2060
- _id?: string | null | undefined;
2061
- name: string;
2062
- address: {
2063
- coordinates?: number[] | null | undefined;
2064
- line2?: string | null | undefined;
2065
- state: string;
2066
- country: string;
2067
- line1: string;
2068
- city: string;
2069
- postcode: string;
2070
- };
2071
- email: string;
2072
- companyName: string;
2073
- contact: string;
2074
- }[] | null | undefined;
2075
- customerDisplayImages?: {
2076
- url: string;
2077
- restaurantIds: string[];
2078
- }[] | null | undefined;
2079
- name: string;
2080
- _id: string;
2081
- ownerId: string;
2082
- restaurantQuota: number;
2083
- warehouseQuota: number;
2084
- menuVersion: string;
2085
- } | null | undefined;
2086
1877
  _id: string;
2087
1878
  businessId: string;
2088
1879
  profile: {
2089
- email?: string | null | undefined;
2090
- phoneNo?: string | null | undefined;
2091
- name: string;
2092
- address: {
1880
+ code?: string | null | undefined;
1881
+ _id?: string | null | undefined;
1882
+ name?: string | undefined;
1883
+ address?: {
2093
1884
  coordinates?: number[] | null | undefined;
2094
1885
  line2?: string | null | undefined;
2095
1886
  state: string;
@@ -2097,11 +1888,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2097
1888
  line1: string;
2098
1889
  city: string;
2099
1890
  postcode: string;
2100
- };
2101
- regNo: string;
1891
+ } | undefined;
1892
+ email?: string | undefined;
1893
+ regNo?: string | undefined;
1894
+ sstRegNo?: string | null | undefined;
1895
+ phoneNo?: string | undefined;
1896
+ legalName?: string | null | undefined;
1897
+ discovery?: boolean | null | undefined;
1898
+ coverPhoto?: string | null | undefined;
1899
+ thumbnailPhoto?: string | null | undefined;
1900
+ description?: string | null | undefined;
1901
+ photos?: string[] | null | undefined;
1902
+ operatingHours?: {
1903
+ 0: {
1904
+ hours: {
1905
+ end: string;
1906
+ start: string;
1907
+ }[];
1908
+ enable: boolean;
1909
+ };
1910
+ 2: {
1911
+ hours: {
1912
+ end: string;
1913
+ start: string;
1914
+ }[];
1915
+ enable: boolean;
1916
+ };
1917
+ 1: {
1918
+ hours: {
1919
+ end: string;
1920
+ start: string;
1921
+ }[];
1922
+ enable: boolean;
1923
+ };
1924
+ 3: {
1925
+ hours: {
1926
+ end: string;
1927
+ start: string;
1928
+ }[];
1929
+ enable: boolean;
1930
+ };
1931
+ 4: {
1932
+ hours: {
1933
+ end: string;
1934
+ start: string;
1935
+ }[];
1936
+ enable: boolean;
1937
+ };
1938
+ 5: {
1939
+ hours: {
1940
+ end: string;
1941
+ start: string;
1942
+ }[];
1943
+ enable: boolean;
1944
+ };
1945
+ 6: {
1946
+ hours: {
1947
+ end: string;
1948
+ start: string;
1949
+ }[];
1950
+ enable: boolean;
1951
+ };
1952
+ } | null | undefined;
1953
+ tags?: string[] | null | undefined;
1954
+ url?: string | null | undefined;
2102
1955
  };
2103
1956
  };
2104
- })[] | null | undefined;
1957
+ }[] | null | undefined;
2105
1958
  updatedBy?: {
2106
1959
  email?: string | null | undefined;
2107
1960
  phoneNumber?: string | null | undefined;
@@ -2137,7 +1990,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2137
1990
  precision: number;
2138
1991
  };
2139
1992
  } | null | undefined;
2140
- type: "RECIPE" | "SKU";
1993
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2141
1994
  amount: {
2142
1995
  amount: number;
2143
1996
  precision: number;
@@ -2197,95 +2050,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2197
2050
  ref?: string | null | undefined;
2198
2051
  _rev?: string | null | undefined;
2199
2052
  updatedAt?: Date | null | undefined;
2200
- locations?: ({
2201
- doc?: any;
2202
- type: "restaurant";
2203
- name: string;
2204
- acceptRequest: boolean;
2205
- dbName: string;
2206
- } | {
2207
- type: "warehouse";
2053
+ locations?: {
2054
+ type: "restaurant" | "warehouse";
2208
2055
  name: string;
2209
2056
  acceptRequest: boolean;
2210
2057
  dbName: string;
2211
2058
  doc: {
2212
- pf_business?: {
2213
- internal?: boolean | null | undefined;
2214
- url?: string | null | undefined;
2215
- expiredAt?: string | null | undefined;
2216
- agentId?: string | null | undefined;
2217
- restaurantTagGroups?: {
2218
- name: string;
2219
- id: string;
2220
- tags: {
2221
- name: string;
2222
- id: string;
2223
- }[];
2224
- }[] | null | undefined;
2225
- pf_agent?: {
2226
- clickupId?: string | null | undefined;
2227
- members?: {
2228
- pf_user?: {
2229
- email?: string | null | undefined;
2230
- phoneNumber?: string | null | undefined;
2231
- birthday?: string | null | undefined;
2232
- gender?: "MALE" | "FEMALE" | null | undefined;
2233
- addresses?: {
2234
- name: string;
2235
- address: string;
2236
- coordinates: number[];
2237
- }[] | null | undefined;
2238
- photoURL?: string | null | undefined;
2239
- displayName?: string | null | undefined;
2240
- imported?: {
2241
- raw: Record<string, any>;
2242
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2243
- } | null | undefined;
2244
- _id: string;
2245
- } | null | undefined;
2246
- role: "ADMIN";
2247
- userId: string;
2248
- }[] | null | undefined;
2249
- code: string;
2250
- name: string;
2251
- _id: string;
2252
- isReseller: boolean;
2253
- } | null | undefined;
2254
- thumbnail?: string | null | undefined;
2255
- billingInfos?: {
2256
- _id?: string | null | undefined;
2257
- name: string;
2258
- address: {
2259
- coordinates?: number[] | null | undefined;
2260
- line2?: string | null | undefined;
2261
- state: string;
2262
- country: string;
2263
- line1: string;
2264
- city: string;
2265
- postcode: string;
2266
- };
2267
- email: string;
2268
- companyName: string;
2269
- contact: string;
2270
- }[] | null | undefined;
2271
- customerDisplayImages?: {
2272
- url: string;
2273
- restaurantIds: string[];
2274
- }[] | null | undefined;
2275
- name: string;
2276
- _id: string;
2277
- ownerId: string;
2278
- restaurantQuota: number;
2279
- warehouseQuota: number;
2280
- menuVersion: string;
2281
- } | null | undefined;
2282
2059
  _id: string;
2283
2060
  businessId: string;
2284
2061
  profile: {
2285
- email?: string | null | undefined;
2286
- phoneNo?: string | null | undefined;
2287
- name: string;
2288
- address: {
2062
+ code?: string | null | undefined;
2063
+ _id?: string | null | undefined;
2064
+ name?: string | undefined;
2065
+ address?: {
2289
2066
  coordinates?: number[] | null | undefined;
2290
2067
  line2?: string | null | undefined;
2291
2068
  state: string;
@@ -2293,11 +2070,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2293
2070
  line1: string;
2294
2071
  city: string;
2295
2072
  postcode: string;
2296
- };
2297
- regNo: string;
2073
+ } | undefined;
2074
+ email?: string | undefined;
2075
+ regNo?: string | undefined;
2076
+ sstRegNo?: string | null | undefined;
2077
+ phoneNo?: string | undefined;
2078
+ legalName?: string | null | undefined;
2079
+ discovery?: boolean | null | undefined;
2080
+ coverPhoto?: string | null | undefined;
2081
+ thumbnailPhoto?: string | null | undefined;
2082
+ description?: string | null | undefined;
2083
+ photos?: string[] | null | undefined;
2084
+ operatingHours?: {
2085
+ 0: {
2086
+ hours: {
2087
+ end: string;
2088
+ start: string;
2089
+ }[];
2090
+ enable: boolean;
2091
+ };
2092
+ 2: {
2093
+ hours: {
2094
+ end: string;
2095
+ start: string;
2096
+ }[];
2097
+ enable: boolean;
2098
+ };
2099
+ 1: {
2100
+ hours: {
2101
+ end: string;
2102
+ start: string;
2103
+ }[];
2104
+ enable: boolean;
2105
+ };
2106
+ 3: {
2107
+ hours: {
2108
+ end: string;
2109
+ start: string;
2110
+ }[];
2111
+ enable: boolean;
2112
+ };
2113
+ 4: {
2114
+ hours: {
2115
+ end: string;
2116
+ start: string;
2117
+ }[];
2118
+ enable: boolean;
2119
+ };
2120
+ 5: {
2121
+ hours: {
2122
+ end: string;
2123
+ start: string;
2124
+ }[];
2125
+ enable: boolean;
2126
+ };
2127
+ 6: {
2128
+ hours: {
2129
+ end: string;
2130
+ start: string;
2131
+ }[];
2132
+ enable: boolean;
2133
+ };
2134
+ } | null | undefined;
2135
+ tags?: string[] | null | undefined;
2136
+ url?: string | null | undefined;
2298
2137
  };
2299
2138
  };
2300
- })[] | null | undefined;
2139
+ }[] | null | undefined;
2301
2140
  updatedBy?: {
2302
2141
  email?: string | null | undefined;
2303
2142
  phoneNumber?: string | null | undefined;
@@ -2333,7 +2172,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2333
2172
  precision: number;
2334
2173
  };
2335
2174
  } | null | undefined;
2336
- type: "RECIPE" | "SKU";
2175
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2337
2176
  amount: {
2338
2177
  amount: number;
2339
2178
  precision: number;
@@ -2389,5 +2228,5 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2389
2228
  'onUpdate:show'?: ((show: boolean) => void) | undefined;
2390
2229
  'onAction:edit'?: (() => void) | undefined;
2391
2230
  }>;
2392
- }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate">>;
2231
+ }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "exportTemplates" | "importTemplates">>;
2393
2232
  export {};