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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/App-Y3Ez8Rjf.js +255 -0
  2. package/dist/ApprovalView-BUU1G4Q2.js +141 -0
  3. package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
  4. package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
  5. package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
  6. package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
  10. package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
  11. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
  12. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
  13. package/dist/IngredientGroupView-C3maHTCg.js +610 -0
  14. package/dist/IngredientsView-DCR3IBkR.js +1613 -0
  15. package/dist/IntegrationView-gO4h89Wj.js +1227 -0
  16. package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
  17. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
  18. package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
  20. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
  21. package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
  22. package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
  23. package/dist/RecipeView-C4-a4IEW.js +597 -0
  24. package/dist/Standalone.vue.d.ts +2 -0
  25. package/dist/StockView-Du2txrIP.js +7778 -0
  26. package/dist/SupplierView-D_09FbQh.js +1474 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
  28. package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
  29. package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
  30. package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/bill.d.ts +86 -240
  33. package/dist/api/closing-template.d.ts +6 -4
  34. package/dist/api/inventory.d.ts +281 -88
  35. package/dist/api/netsuite.d.ts +32 -1
  36. package/dist/api/purchase-order-template.d.ts +4 -2
  37. package/dist/api/supplier.d.ts +1 -0
  38. package/dist/app-GUbzqEtW.js +33456 -0
  39. package/dist/app.d.ts +259 -6
  40. package/dist/app.js +8 -7
  41. package/dist/array-hChJVZLE.js +43 -0
  42. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  43. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  44. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  45. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  46. package/dist/components/FmUnitInputRules.d.ts +2 -0
  47. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  48. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  49. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  50. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  51. package/dist/date2-CLE9fB2R.js +117 -0
  52. package/dist/dayjs.min-CY1d38w7.js +282 -0
  53. package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
  54. package/dist/defineDeepModel-l40rX7kr.js +13 -0
  55. package/dist/extensions/array.d.ts +1 -0
  56. package/dist/feature-BXruKUhX.js +78 -0
  57. package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
  58. package/dist/format-unit-display-DEKg8cJm.js +1198 -0
  59. package/dist/fuzzy-CVOV9zJc.js +41 -0
  60. package/dist/googlemap-Dm8ERVai.js +97 -0
  61. package/dist/helper/rules.d.ts +7 -0
  62. package/dist/helper/rules.spec.d.ts +1 -0
  63. package/dist/helper/xlsx.util.d.ts +7 -0
  64. package/dist/index-BX5KZXhI.js +22279 -0
  65. package/dist/index-CVsyOEb1.js +10545 -0
  66. package/dist/index-m9e9nYfl.js +45 -0
  67. package/dist/netsuite-DAKRv7zr.js +146 -0
  68. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  69. package/dist/router/name.d.ts +1 -0
  70. package/dist/rules-DlnN8IP3.js +198 -0
  71. package/dist/stores/integration/foodmarkethub.d.ts +391 -0
  72. package/dist/stores/integration/index.d.ts +7 -0
  73. package/dist/stores/integration/netsuite.d.ts +102 -0
  74. package/dist/stores/inventory.d.ts +295 -9
  75. package/dist/stores/location.d.ts +508 -485
  76. package/dist/stores/supplier.d.ts +124 -4
  77. package/dist/stores/warehouse.d.ts +7 -4
  78. package/dist/style.css +1 -1
  79. package/dist/supplier-B21WlSAM.js +77 -0
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
  82. package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
  83. package/dist/useTabStorage-BkIVScW_.js +25 -0
  84. package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
  85. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  86. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  87. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1002
  89. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
  90. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  91. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  92. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  93. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  94. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  95. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  96. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  97. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  98. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  99. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  100. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  101. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  102. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  103. package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
  104. package/dist/views/integration/NetSuite.vue.d.ts +2 -0
  105. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
  106. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
  107. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  108. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
  109. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1913 -53
  110. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  111. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  112. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  113. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2370 -327
  114. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
  115. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  116. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  117. package/dist/views/stock/components/StockRecordCard.vue.d.ts +43 -120
  118. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
  119. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  120. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  121. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  122. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  123. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  124. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  125. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  126. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  127. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  128. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -82
  129. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
  130. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  131. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  132. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  133. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  134. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1279 -1528
  135. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
  136. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  137. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -251
  138. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  139. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  140. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
  141. package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
  142. package/dist/xlsx.util-BLftcF4q.js +78 -0
  143. package/package.json +7 -4
  144. package/dist/ApprovalView-BPsScR5_.js +0 -129
  145. package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
  146. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
  147. package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
  148. package/dist/IntegrationView-CjGLRM78.js +0 -1141
  149. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
  150. package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
  151. package/dist/RecipeView-sB0Lgmob.js +0 -581
  152. package/dist/StockView-CY2kNohB.js +0 -1892
  153. package/dist/SupplierView-DTqeZPts.js +0 -827
  154. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
  155. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
  156. package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
  157. package/dist/app-BuyAj4kw.js +0 -69068
  158. package/dist/defineDeepModel-DuVmbMwq.js +0 -13
  159. package/dist/id-to-date-CI5Vv0Ji.js +0 -30
  160. package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
  161. package/dist/stores/netsuite.d.ts +0 -49
  162. package/dist/supplier-BQyK2eSZ.js +0 -69
  163. package/dist/xlsx.util-CZ7zYxdP.js +0 -109
@@ -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,103 +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
- attributeSettings?: {
42
- type: "string" | "number" | "boolean" | "date";
43
- key: string;
44
- entity: "restaurant" | "item";
45
- }[] | null | undefined;
46
- pf_agent?: {
47
- clickupId?: string | null | undefined;
48
- members?: {
49
- pf_user?: {
50
- email?: string | null | undefined;
51
- phoneNumber?: string | null | undefined;
52
- birthday?: string | null | undefined;
53
- gender?: "MALE" | "FEMALE" | null | undefined;
54
- addresses?: {
55
- name: string;
56
- address: string;
57
- coordinates: number[];
58
- }[] | null | undefined;
59
- photoURL?: string | null | undefined;
60
- displayName?: string | null | undefined;
61
- imported?: {
62
- raw: Record<string, any>;
63
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
64
- } | null | undefined;
65
- _id: string;
66
- } | null | undefined;
67
- role: "ADMIN";
68
- userId: string;
69
- }[] | null | undefined;
70
- code: string;
71
- name: string;
72
- _id: string;
73
- isReseller: boolean;
74
- } | null | undefined;
75
- thumbnail?: string | null | undefined;
76
- billingInfos?: {
77
- _id?: string | null | undefined;
78
- name: string;
79
- address: {
80
- coordinates?: number[] | null | undefined;
81
- line2?: string | null | undefined;
82
- state: string;
83
- country: string;
84
- line1: string;
85
- city: string;
86
- postcode: string;
87
- };
88
- email: string;
89
- companyName: string;
90
- contact: string;
91
- }[] | null | undefined;
92
- customerDisplayImages?: {
93
- url: string;
94
- restaurantIds: string[];
95
- }[] | null | undefined;
96
- name: string;
97
- _id: string;
98
- ownerId: string;
99
- restaurantQuota: number;
100
- warehouseQuota: number;
101
- menuVersion: string;
102
- } | null | undefined;
103
33
  _id: string;
104
34
  businessId: string;
105
35
  profile: {
106
- email?: string | null | undefined;
107
- phoneNo?: string | null | undefined;
108
- name: string;
109
- address: {
36
+ code?: string | null | undefined;
37
+ _id?: string | null | undefined;
38
+ name?: string | undefined;
39
+ address?: {
110
40
  coordinates?: number[] | null | undefined;
111
41
  line2?: string | null | undefined;
112
42
  state: string;
@@ -114,11 +44,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
114
44
  line1: string;
115
45
  city: string;
116
46
  postcode: string;
117
- };
118
- 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;
119
111
  };
120
112
  };
121
- })[] | null | undefined;
113
+ }[] | null | undefined;
122
114
  updatedBy?: {
123
115
  email?: string | null | undefined;
124
116
  phoneNumber?: string | null | undefined;
@@ -154,7 +146,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
154
146
  precision: number;
155
147
  };
156
148
  } | null | undefined;
157
- type: "RECIPE" | "SKU";
149
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
158
150
  amount: {
159
151
  amount: number;
160
152
  precision: number;
@@ -215,92 +207,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
215
207
  ref?: string | null | undefined;
216
208
  _rev?: string | null | undefined;
217
209
  updatedAt?: Date | null | undefined;
218
- locations?: ({
219
- doc?: any;
220
- type: "restaurant";
221
- name: string;
222
- acceptRequest: boolean;
223
- dbName: string;
224
- } | {
225
- type: "warehouse";
210
+ locations?: {
211
+ type: "restaurant" | "warehouse";
226
212
  name: string;
227
213
  acceptRequest: boolean;
228
214
  dbName: string;
229
215
  doc: {
230
- pf_business?: {
231
- internal?: boolean | null | undefined;
232
- url?: string | null | undefined;
233
- expiredAt?: string | null | undefined;
234
- agentId?: string | null | undefined;
235
- attributeSettings?: {
236
- type: "string" | "number" | "boolean" | "date";
237
- key: string;
238
- entity: "restaurant" | "item";
239
- }[] | null | undefined;
240
- pf_agent?: {
241
- clickupId?: string | null | undefined;
242
- members?: {
243
- pf_user?: {
244
- email?: string | null | undefined;
245
- phoneNumber?: string | null | undefined;
246
- birthday?: string | null | undefined;
247
- gender?: "MALE" | "FEMALE" | null | undefined;
248
- addresses?: {
249
- name: string;
250
- address: string;
251
- coordinates: number[];
252
- }[] | null | undefined;
253
- photoURL?: string | null | undefined;
254
- displayName?: string | null | undefined;
255
- imported?: {
256
- raw: Record<string, any>;
257
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
258
- } | null | undefined;
259
- _id: string;
260
- } | null | undefined;
261
- role: "ADMIN";
262
- userId: string;
263
- }[] | null | undefined;
264
- code: string;
265
- name: string;
266
- _id: string;
267
- isReseller: boolean;
268
- } | null | undefined;
269
- thumbnail?: string | null | undefined;
270
- billingInfos?: {
271
- _id?: string | null | undefined;
272
- name: string;
273
- address: {
274
- coordinates?: number[] | null | undefined;
275
- line2?: string | null | undefined;
276
- state: string;
277
- country: string;
278
- line1: string;
279
- city: string;
280
- postcode: string;
281
- };
282
- email: string;
283
- companyName: string;
284
- contact: string;
285
- }[] | null | undefined;
286
- customerDisplayImages?: {
287
- url: string;
288
- restaurantIds: string[];
289
- }[] | null | undefined;
290
- name: string;
291
- _id: string;
292
- ownerId: string;
293
- restaurantQuota: number;
294
- warehouseQuota: number;
295
- menuVersion: string;
296
- } | null | undefined;
297
216
  _id: string;
298
217
  businessId: string;
299
218
  profile: {
300
- email?: string | null | undefined;
301
- phoneNo?: string | null | undefined;
302
- name: string;
303
- address: {
219
+ code?: string | null | undefined;
220
+ _id?: string | null | undefined;
221
+ name?: string | undefined;
222
+ address?: {
304
223
  coordinates?: number[] | null | undefined;
305
224
  line2?: string | null | undefined;
306
225
  state: string;
@@ -308,11 +227,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
308
227
  line1: string;
309
228
  city: string;
310
229
  postcode: string;
311
- };
312
- 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;
313
294
  };
314
295
  };
315
- })[] | null | undefined;
296
+ }[] | null | undefined;
316
297
  updatedBy?: {
317
298
  email?: string | null | undefined;
318
299
  phoneNumber?: string | null | undefined;
@@ -348,7 +329,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
348
329
  precision: number;
349
330
  };
350
331
  } | null | undefined;
351
- type: "RECIPE" | "SKU";
332
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
352
333
  amount: {
353
334
  amount: number;
354
335
  precision: number;
@@ -409,92 +390,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
409
390
  ref?: string | null | undefined;
410
391
  _rev?: string | null | undefined;
411
392
  updatedAt?: Date | null | undefined;
412
- locations?: ({
413
- doc?: any;
414
- type: "restaurant";
415
- name: string;
416
- acceptRequest: boolean;
417
- dbName: string;
418
- } | {
419
- type: "warehouse";
393
+ locations?: {
394
+ type: "restaurant" | "warehouse";
420
395
  name: string;
421
396
  acceptRequest: boolean;
422
397
  dbName: string;
423
398
  doc: {
424
- pf_business?: {
425
- internal?: boolean | null | undefined;
426
- url?: string | null | undefined;
427
- expiredAt?: string | null | undefined;
428
- agentId?: string | null | undefined;
429
- attributeSettings?: {
430
- type: "string" | "number" | "boolean" | "date";
431
- key: string;
432
- entity: "restaurant" | "item";
433
- }[] | null | undefined;
434
- pf_agent?: {
435
- clickupId?: string | null | undefined;
436
- members?: {
437
- pf_user?: {
438
- email?: string | null | undefined;
439
- phoneNumber?: string | null | undefined;
440
- birthday?: string | null | undefined;
441
- gender?: "MALE" | "FEMALE" | null | undefined;
442
- addresses?: {
443
- name: string;
444
- address: string;
445
- coordinates: number[];
446
- }[] | null | undefined;
447
- photoURL?: string | null | undefined;
448
- displayName?: string | null | undefined;
449
- imported?: {
450
- raw: Record<string, any>;
451
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
452
- } | null | undefined;
453
- _id: string;
454
- } | null | undefined;
455
- role: "ADMIN";
456
- userId: string;
457
- }[] | null | undefined;
458
- code: string;
459
- name: string;
460
- _id: string;
461
- isReseller: boolean;
462
- } | null | undefined;
463
- thumbnail?: string | null | undefined;
464
- billingInfos?: {
465
- _id?: string | null | undefined;
466
- name: string;
467
- address: {
468
- coordinates?: number[] | null | undefined;
469
- line2?: string | null | undefined;
470
- state: string;
471
- country: string;
472
- line1: string;
473
- city: string;
474
- postcode: string;
475
- };
476
- email: string;
477
- companyName: string;
478
- contact: string;
479
- }[] | null | undefined;
480
- customerDisplayImages?: {
481
- url: string;
482
- restaurantIds: string[];
483
- }[] | null | undefined;
484
- name: string;
485
- _id: string;
486
- ownerId: string;
487
- restaurantQuota: number;
488
- warehouseQuota: number;
489
- menuVersion: string;
490
- } | null | undefined;
491
399
  _id: string;
492
400
  businessId: string;
493
401
  profile: {
494
- email?: string | null | undefined;
495
- phoneNo?: string | null | undefined;
496
- name: string;
497
- address: {
402
+ code?: string | null | undefined;
403
+ _id?: string | null | undefined;
404
+ name?: string | undefined;
405
+ address?: {
498
406
  coordinates?: number[] | null | undefined;
499
407
  line2?: string | null | undefined;
500
408
  state: string;
@@ -502,11 +410,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
502
410
  line1: string;
503
411
  city: string;
504
412
  postcode: string;
505
- };
506
- 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;
507
477
  };
508
478
  };
509
- })[] | null | undefined;
479
+ }[] | null | undefined;
510
480
  updatedBy?: {
511
481
  email?: string | null | undefined;
512
482
  phoneNumber?: string | null | undefined;
@@ -542,7 +512,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
542
512
  precision: number;
543
513
  };
544
514
  } | null | undefined;
545
- type: "RECIPE" | "SKU";
515
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
546
516
  amount: {
547
517
  amount: number;
548
518
  precision: number;
@@ -602,92 +572,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
602
572
  ref?: string | null | undefined;
603
573
  _rev?: string | null | undefined;
604
574
  updatedAt?: Date | null | undefined;
605
- locations?: ({
606
- doc?: any;
607
- type: "restaurant";
608
- name: string;
609
- acceptRequest: boolean;
610
- dbName: string;
611
- } | {
612
- type: "warehouse";
575
+ locations?: {
576
+ type: "restaurant" | "warehouse";
613
577
  name: string;
614
578
  acceptRequest: boolean;
615
579
  dbName: string;
616
580
  doc: {
617
- pf_business?: {
618
- internal?: boolean | null | undefined;
619
- url?: string | null | undefined;
620
- expiredAt?: string | null | undefined;
621
- agentId?: string | null | undefined;
622
- attributeSettings?: {
623
- type: "string" | "number" | "boolean" | "date";
624
- key: string;
625
- entity: "restaurant" | "item";
626
- }[] | null | undefined;
627
- pf_agent?: {
628
- clickupId?: string | null | undefined;
629
- members?: {
630
- pf_user?: {
631
- email?: string | null | undefined;
632
- phoneNumber?: string | null | undefined;
633
- birthday?: string | null | undefined;
634
- gender?: "MALE" | "FEMALE" | null | undefined;
635
- addresses?: {
636
- name: string;
637
- address: string;
638
- coordinates: number[];
639
- }[] | null | undefined;
640
- photoURL?: string | null | undefined;
641
- displayName?: string | null | undefined;
642
- imported?: {
643
- raw: Record<string, any>;
644
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
645
- } | null | undefined;
646
- _id: string;
647
- } | null | undefined;
648
- role: "ADMIN";
649
- userId: string;
650
- }[] | null | undefined;
651
- code: string;
652
- name: string;
653
- _id: string;
654
- isReseller: boolean;
655
- } | null | undefined;
656
- thumbnail?: string | null | undefined;
657
- billingInfos?: {
658
- _id?: string | null | undefined;
659
- name: string;
660
- address: {
661
- coordinates?: number[] | null | undefined;
662
- line2?: string | null | undefined;
663
- state: string;
664
- country: string;
665
- line1: string;
666
- city: string;
667
- postcode: string;
668
- };
669
- email: string;
670
- companyName: string;
671
- contact: string;
672
- }[] | null | undefined;
673
- customerDisplayImages?: {
674
- url: string;
675
- restaurantIds: string[];
676
- }[] | null | undefined;
677
- name: string;
678
- _id: string;
679
- ownerId: string;
680
- restaurantQuota: number;
681
- warehouseQuota: number;
682
- menuVersion: string;
683
- } | null | undefined;
684
581
  _id: string;
685
582
  businessId: string;
686
583
  profile: {
687
- email?: string | null | undefined;
688
- phoneNo?: string | null | undefined;
689
- name: string;
690
- address: {
584
+ code?: string | null | undefined;
585
+ _id?: string | null | undefined;
586
+ name?: string | undefined;
587
+ address?: {
691
588
  coordinates?: number[] | null | undefined;
692
589
  line2?: string | null | undefined;
693
590
  state: string;
@@ -695,11 +592,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
695
592
  line1: string;
696
593
  city: string;
697
594
  postcode: string;
698
- };
699
- 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;
700
659
  };
701
660
  };
702
- })[] | null | undefined;
661
+ }[] | null | undefined;
703
662
  updatedBy?: {
704
663
  email?: string | null | undefined;
705
664
  phoneNumber?: string | null | undefined;
@@ -735,7 +694,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
735
694
  precision: number;
736
695
  };
737
696
  } | null | undefined;
738
- type: "RECIPE" | "SKU";
697
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
739
698
  amount: {
740
699
  amount: number;
741
700
  precision: number;
@@ -791,103 +750,32 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
791
750
  'onUpdate:show'?: ((show: boolean) => void) | undefined;
792
751
  'onAction:edit'?: (() => void) | undefined;
793
752
  }>;
794
- }, "templateDialogProps" | "templateDetailsProps">, Pick<{
753
+ }, "templateDialogProps" | "templateDetailsProps">>, Pick<{
795
754
  createTemplate: () => void;
796
755
  viewTemplate: (template: FdoClosingTemplate) => void;
797
756
  updateTemplate: (template: FdoClosingTemplate) => void;
798
- 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;
799
760
  templateDialogProps: Ref<{
800
761
  mode?: FormMode | undefined;
801
762
  modelValue?: {
802
763
  ref?: string | null | undefined;
803
764
  _rev?: string | null | undefined;
804
765
  updatedAt?: Date | null | undefined;
805
- locations?: ({
806
- doc?: any;
807
- type: "restaurant";
808
- name: string;
809
- acceptRequest: boolean;
810
- dbName: string;
811
- } | {
812
- type: "warehouse";
766
+ locations?: {
767
+ type: "restaurant" | "warehouse";
813
768
  name: string;
814
769
  acceptRequest: boolean;
815
770
  dbName: string;
816
771
  doc: {
817
- pf_business?: {
818
- internal?: boolean | null | undefined;
819
- url?: string | null | undefined;
820
- expiredAt?: string | null | undefined;
821
- agentId?: string | null | undefined;
822
- attributeSettings?: {
823
- type: "string" | "number" | "boolean" | "date";
824
- key: string;
825
- entity: "restaurant" | "item";
826
- }[] | null | undefined;
827
- pf_agent?: {
828
- clickupId?: string | null | undefined;
829
- members?: {
830
- pf_user?: {
831
- email?: string | null | undefined;
832
- phoneNumber?: string | null | undefined;
833
- birthday?: string | null | undefined;
834
- gender?: "MALE" | "FEMALE" | null | undefined;
835
- addresses?: {
836
- name: string;
837
- address: string;
838
- coordinates: number[];
839
- }[] | null | undefined;
840
- photoURL?: string | null | undefined;
841
- displayName?: string | null | undefined;
842
- imported?: {
843
- raw: Record<string, any>;
844
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
845
- } | null | undefined;
846
- _id: string;
847
- } | null | undefined;
848
- role: "ADMIN";
849
- userId: string;
850
- }[] | null | undefined;
851
- code: string;
852
- name: string;
853
- _id: string;
854
- isReseller: boolean;
855
- } | null | undefined;
856
- thumbnail?: string | null | undefined;
857
- billingInfos?: {
858
- _id?: string | null | undefined;
859
- name: string;
860
- address: {
861
- coordinates?: number[] | null | undefined;
862
- line2?: string | null | undefined;
863
- state: string;
864
- country: string;
865
- line1: string;
866
- city: string;
867
- postcode: string;
868
- };
869
- email: string;
870
- companyName: string;
871
- contact: string;
872
- }[] | null | undefined;
873
- customerDisplayImages?: {
874
- url: string;
875
- restaurantIds: string[];
876
- }[] | null | undefined;
877
- name: string;
878
- _id: string;
879
- ownerId: string;
880
- restaurantQuota: number;
881
- warehouseQuota: number;
882
- menuVersion: string;
883
- } | null | undefined;
884
772
  _id: string;
885
773
  businessId: string;
886
774
  profile: {
887
- email?: string | null | undefined;
888
- phoneNo?: string | null | undefined;
889
- name: string;
890
- address: {
775
+ code?: string | null | undefined;
776
+ _id?: string | null | undefined;
777
+ name?: string | undefined;
778
+ address?: {
891
779
  coordinates?: number[] | null | undefined;
892
780
  line2?: string | null | undefined;
893
781
  state: string;
@@ -895,11 +783,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
895
783
  line1: string;
896
784
  city: string;
897
785
  postcode: string;
898
- };
899
- 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;
900
850
  };
901
851
  };
902
- })[] | null | undefined;
852
+ }[] | null | undefined;
903
853
  updatedBy?: {
904
854
  email?: string | null | undefined;
905
855
  phoneNumber?: string | null | undefined;
@@ -935,7 +885,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
935
885
  precision: number;
936
886
  };
937
887
  } | null | undefined;
938
- type: "RECIPE" | "SKU";
888
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
939
889
  amount: {
940
890
  amount: number;
941
891
  precision: number;
@@ -996,92 +946,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
996
946
  ref?: string | null | undefined;
997
947
  _rev?: string | null | undefined;
998
948
  updatedAt?: Date | null | undefined;
999
- locations?: ({
1000
- doc?: any;
1001
- type: "restaurant";
1002
- name: string;
1003
- acceptRequest: boolean;
1004
- dbName: string;
1005
- } | {
1006
- type: "warehouse";
949
+ locations?: {
950
+ type: "restaurant" | "warehouse";
1007
951
  name: string;
1008
952
  acceptRequest: boolean;
1009
953
  dbName: string;
1010
954
  doc: {
1011
- pf_business?: {
1012
- internal?: boolean | null | undefined;
1013
- url?: string | null | undefined;
1014
- expiredAt?: string | null | undefined;
1015
- agentId?: string | null | undefined;
1016
- attributeSettings?: {
1017
- type: "string" | "number" | "boolean" | "date";
1018
- key: string;
1019
- entity: "restaurant" | "item";
1020
- }[] | null | undefined;
1021
- pf_agent?: {
1022
- clickupId?: string | null | undefined;
1023
- members?: {
1024
- pf_user?: {
1025
- email?: string | null | undefined;
1026
- phoneNumber?: string | null | undefined;
1027
- birthday?: string | null | undefined;
1028
- gender?: "MALE" | "FEMALE" | null | undefined;
1029
- addresses?: {
1030
- name: string;
1031
- address: string;
1032
- coordinates: number[];
1033
- }[] | null | undefined;
1034
- photoURL?: string | null | undefined;
1035
- displayName?: string | null | undefined;
1036
- imported?: {
1037
- raw: Record<string, any>;
1038
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1039
- } | null | undefined;
1040
- _id: string;
1041
- } | null | undefined;
1042
- role: "ADMIN";
1043
- userId: string;
1044
- }[] | null | undefined;
1045
- code: string;
1046
- name: string;
1047
- _id: string;
1048
- isReseller: boolean;
1049
- } | null | undefined;
1050
- thumbnail?: string | null | undefined;
1051
- billingInfos?: {
1052
- _id?: string | null | undefined;
1053
- name: string;
1054
- address: {
1055
- coordinates?: number[] | null | undefined;
1056
- line2?: string | null | undefined;
1057
- state: string;
1058
- country: string;
1059
- line1: string;
1060
- city: string;
1061
- postcode: string;
1062
- };
1063
- email: string;
1064
- companyName: string;
1065
- contact: string;
1066
- }[] | null | undefined;
1067
- customerDisplayImages?: {
1068
- url: string;
1069
- restaurantIds: string[];
1070
- }[] | null | undefined;
1071
- name: string;
1072
- _id: string;
1073
- ownerId: string;
1074
- restaurantQuota: number;
1075
- warehouseQuota: number;
1076
- menuVersion: string;
1077
- } | null | undefined;
1078
955
  _id: string;
1079
956
  businessId: string;
1080
957
  profile: {
1081
- email?: string | null | undefined;
1082
- phoneNo?: string | null | undefined;
1083
- name: string;
1084
- address: {
958
+ code?: string | null | undefined;
959
+ _id?: string | null | undefined;
960
+ name?: string | undefined;
961
+ address?: {
1085
962
  coordinates?: number[] | null | undefined;
1086
963
  line2?: string | null | undefined;
1087
964
  state: string;
@@ -1089,11 +966,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1089
966
  line1: string;
1090
967
  city: string;
1091
968
  postcode: string;
1092
- };
1093
- 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;
1094
1033
  };
1095
1034
  };
1096
- })[] | null | undefined;
1035
+ }[] | null | undefined;
1097
1036
  updatedBy?: {
1098
1037
  email?: string | null | undefined;
1099
1038
  phoneNumber?: string | null | undefined;
@@ -1129,7 +1068,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1129
1068
  precision: number;
1130
1069
  };
1131
1070
  } | null | undefined;
1132
- type: "RECIPE" | "SKU";
1071
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1133
1072
  amount: {
1134
1073
  amount: number;
1135
1074
  precision: number;
@@ -1190,92 +1129,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1190
1129
  ref?: string | null | undefined;
1191
1130
  _rev?: string | null | undefined;
1192
1131
  updatedAt?: Date | null | undefined;
1193
- locations?: ({
1194
- doc?: any;
1195
- type: "restaurant";
1196
- name: string;
1197
- acceptRequest: boolean;
1198
- dbName: string;
1199
- } | {
1200
- type: "warehouse";
1132
+ locations?: {
1133
+ type: "restaurant" | "warehouse";
1201
1134
  name: string;
1202
1135
  acceptRequest: boolean;
1203
1136
  dbName: string;
1204
1137
  doc: {
1205
- pf_business?: {
1206
- internal?: boolean | null | undefined;
1207
- url?: string | null | undefined;
1208
- expiredAt?: string | null | undefined;
1209
- agentId?: string | null | undefined;
1210
- attributeSettings?: {
1211
- type: "string" | "number" | "boolean" | "date";
1212
- key: string;
1213
- entity: "restaurant" | "item";
1214
- }[] | null | undefined;
1215
- pf_agent?: {
1216
- clickupId?: string | null | undefined;
1217
- members?: {
1218
- pf_user?: {
1219
- email?: string | null | undefined;
1220
- phoneNumber?: string | null | undefined;
1221
- birthday?: string | null | undefined;
1222
- gender?: "MALE" | "FEMALE" | null | undefined;
1223
- addresses?: {
1224
- name: string;
1225
- address: string;
1226
- coordinates: number[];
1227
- }[] | null | undefined;
1228
- photoURL?: string | null | undefined;
1229
- displayName?: string | null | undefined;
1230
- imported?: {
1231
- raw: Record<string, any>;
1232
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1233
- } | null | undefined;
1234
- _id: string;
1235
- } | null | undefined;
1236
- role: "ADMIN";
1237
- userId: string;
1238
- }[] | null | undefined;
1239
- code: string;
1240
- name: string;
1241
- _id: string;
1242
- isReseller: boolean;
1243
- } | null | undefined;
1244
- thumbnail?: string | null | undefined;
1245
- billingInfos?: {
1246
- _id?: string | null | undefined;
1247
- name: string;
1248
- address: {
1249
- coordinates?: number[] | null | undefined;
1250
- line2?: string | null | undefined;
1251
- state: string;
1252
- country: string;
1253
- line1: string;
1254
- city: string;
1255
- postcode: string;
1256
- };
1257
- email: string;
1258
- companyName: string;
1259
- contact: string;
1260
- }[] | null | undefined;
1261
- customerDisplayImages?: {
1262
- url: string;
1263
- restaurantIds: string[];
1264
- }[] | null | undefined;
1265
- name: string;
1266
- _id: string;
1267
- ownerId: string;
1268
- restaurantQuota: number;
1269
- warehouseQuota: number;
1270
- menuVersion: string;
1271
- } | null | undefined;
1272
1138
  _id: string;
1273
1139
  businessId: string;
1274
1140
  profile: {
1275
- email?: string | null | undefined;
1276
- phoneNo?: string | null | undefined;
1277
- name: string;
1278
- address: {
1141
+ code?: string | null | undefined;
1142
+ _id?: string | null | undefined;
1143
+ name?: string | undefined;
1144
+ address?: {
1279
1145
  coordinates?: number[] | null | undefined;
1280
1146
  line2?: string | null | undefined;
1281
1147
  state: string;
@@ -1283,11 +1149,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1283
1149
  line1: string;
1284
1150
  city: string;
1285
1151
  postcode: string;
1286
- };
1287
- 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;
1288
1216
  };
1289
1217
  };
1290
- })[] | null | undefined;
1218
+ }[] | null | undefined;
1291
1219
  updatedBy?: {
1292
1220
  email?: string | null | undefined;
1293
1221
  phoneNumber?: string | null | undefined;
@@ -1323,7 +1251,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1323
1251
  precision: number;
1324
1252
  };
1325
1253
  } | null | undefined;
1326
- type: "RECIPE" | "SKU";
1254
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1327
1255
  amount: {
1328
1256
  amount: number;
1329
1257
  precision: number;
@@ -1383,92 +1311,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1383
1311
  ref?: string | null | undefined;
1384
1312
  _rev?: string | null | undefined;
1385
1313
  updatedAt?: Date | null | undefined;
1386
- locations?: ({
1387
- doc?: any;
1388
- type: "restaurant";
1389
- name: string;
1390
- acceptRequest: boolean;
1391
- dbName: string;
1392
- } | {
1393
- type: "warehouse";
1314
+ locations?: {
1315
+ type: "restaurant" | "warehouse";
1394
1316
  name: string;
1395
1317
  acceptRequest: boolean;
1396
1318
  dbName: string;
1397
1319
  doc: {
1398
- pf_business?: {
1399
- internal?: boolean | null | undefined;
1400
- url?: string | null | undefined;
1401
- expiredAt?: string | null | undefined;
1402
- agentId?: string | null | undefined;
1403
- attributeSettings?: {
1404
- type: "string" | "number" | "boolean" | "date";
1405
- key: string;
1406
- entity: "restaurant" | "item";
1407
- }[] | null | undefined;
1408
- pf_agent?: {
1409
- clickupId?: string | null | undefined;
1410
- members?: {
1411
- pf_user?: {
1412
- email?: string | null | undefined;
1413
- phoneNumber?: string | null | undefined;
1414
- birthday?: string | null | undefined;
1415
- gender?: "MALE" | "FEMALE" | null | undefined;
1416
- addresses?: {
1417
- name: string;
1418
- address: string;
1419
- coordinates: number[];
1420
- }[] | null | undefined;
1421
- photoURL?: string | null | undefined;
1422
- displayName?: string | null | undefined;
1423
- imported?: {
1424
- raw: Record<string, any>;
1425
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1426
- } | null | undefined;
1427
- _id: string;
1428
- } | null | undefined;
1429
- role: "ADMIN";
1430
- userId: string;
1431
- }[] | null | undefined;
1432
- code: string;
1433
- name: string;
1434
- _id: string;
1435
- isReseller: boolean;
1436
- } | null | undefined;
1437
- thumbnail?: string | null | undefined;
1438
- billingInfos?: {
1439
- _id?: string | null | undefined;
1440
- name: string;
1441
- address: {
1442
- coordinates?: number[] | null | undefined;
1443
- line2?: string | null | undefined;
1444
- state: string;
1445
- country: string;
1446
- line1: string;
1447
- city: string;
1448
- postcode: string;
1449
- };
1450
- email: string;
1451
- companyName: string;
1452
- contact: string;
1453
- }[] | null | undefined;
1454
- customerDisplayImages?: {
1455
- url: string;
1456
- restaurantIds: string[];
1457
- }[] | null | undefined;
1458
- name: string;
1459
- _id: string;
1460
- ownerId: string;
1461
- restaurantQuota: number;
1462
- warehouseQuota: number;
1463
- menuVersion: string;
1464
- } | null | undefined;
1465
1320
  _id: string;
1466
1321
  businessId: string;
1467
1322
  profile: {
1468
- email?: string | null | undefined;
1469
- phoneNo?: string | null | undefined;
1470
- name: string;
1471
- address: {
1323
+ code?: string | null | undefined;
1324
+ _id?: string | null | undefined;
1325
+ name?: string | undefined;
1326
+ address?: {
1472
1327
  coordinates?: number[] | null | undefined;
1473
1328
  line2?: string | null | undefined;
1474
1329
  state: string;
@@ -1476,11 +1331,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1476
1331
  line1: string;
1477
1332
  city: string;
1478
1333
  postcode: string;
1479
- };
1480
- 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;
1481
1398
  };
1482
1399
  };
1483
- })[] | null | undefined;
1400
+ }[] | null | undefined;
1484
1401
  updatedBy?: {
1485
1402
  email?: string | null | undefined;
1486
1403
  phoneNumber?: string | null | undefined;
@@ -1516,7 +1433,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1516
1433
  precision: number;
1517
1434
  };
1518
1435
  } | null | undefined;
1519
- type: "RECIPE" | "SKU";
1436
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1520
1437
  amount: {
1521
1438
  amount: number;
1522
1439
  precision: number;
@@ -1576,99 +1493,28 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1576
1493
  createTemplate: () => void;
1577
1494
  viewTemplate: (template: FdoClosingTemplate) => void;
1578
1495
  updateTemplate: (template: FdoClosingTemplate) => void;
1579
- 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;
1580
1499
  templateDialogProps: Ref<{
1581
1500
  mode?: FormMode | undefined;
1582
1501
  modelValue?: {
1583
1502
  ref?: string | null | undefined;
1584
1503
  _rev?: string | null | undefined;
1585
1504
  updatedAt?: Date | null | undefined;
1586
- locations?: ({
1587
- doc?: any;
1588
- type: "restaurant";
1589
- name: string;
1590
- acceptRequest: boolean;
1591
- dbName: string;
1592
- } | {
1593
- type: "warehouse";
1505
+ locations?: {
1506
+ type: "restaurant" | "warehouse";
1594
1507
  name: string;
1595
1508
  acceptRequest: boolean;
1596
1509
  dbName: string;
1597
1510
  doc: {
1598
- pf_business?: {
1599
- internal?: boolean | null | undefined;
1600
- url?: string | null | undefined;
1601
- expiredAt?: string | null | undefined;
1602
- agentId?: string | null | undefined;
1603
- attributeSettings?: {
1604
- type: "string" | "number" | "boolean" | "date";
1605
- key: string;
1606
- entity: "restaurant" | "item";
1607
- }[] | null | undefined;
1608
- pf_agent?: {
1609
- clickupId?: string | null | undefined;
1610
- members?: {
1611
- pf_user?: {
1612
- email?: string | null | undefined;
1613
- phoneNumber?: string | null | undefined;
1614
- birthday?: string | null | undefined;
1615
- gender?: "MALE" | "FEMALE" | null | undefined;
1616
- addresses?: {
1617
- name: string;
1618
- address: string;
1619
- coordinates: number[];
1620
- }[] | null | undefined;
1621
- photoURL?: string | null | undefined;
1622
- displayName?: string | null | undefined;
1623
- imported?: {
1624
- raw: Record<string, any>;
1625
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1626
- } | null | undefined;
1627
- _id: string;
1628
- } | null | undefined;
1629
- role: "ADMIN";
1630
- userId: string;
1631
- }[] | null | undefined;
1632
- code: string;
1633
- name: string;
1634
- _id: string;
1635
- isReseller: boolean;
1636
- } | null | undefined;
1637
- thumbnail?: string | null | undefined;
1638
- billingInfos?: {
1639
- _id?: string | null | undefined;
1640
- name: string;
1641
- address: {
1642
- coordinates?: number[] | null | undefined;
1643
- line2?: string | null | undefined;
1644
- state: string;
1645
- country: string;
1646
- line1: string;
1647
- city: string;
1648
- postcode: string;
1649
- };
1650
- email: string;
1651
- companyName: string;
1652
- contact: string;
1653
- }[] | null | undefined;
1654
- customerDisplayImages?: {
1655
- url: string;
1656
- restaurantIds: string[];
1657
- }[] | null | undefined;
1658
- name: string;
1659
- _id: string;
1660
- ownerId: string;
1661
- restaurantQuota: number;
1662
- warehouseQuota: number;
1663
- menuVersion: string;
1664
- } | null | undefined;
1665
1511
  _id: string;
1666
1512
  businessId: string;
1667
1513
  profile: {
1668
- email?: string | null | undefined;
1669
- phoneNo?: string | null | undefined;
1670
- name: string;
1671
- address: {
1514
+ code?: string | null | undefined;
1515
+ _id?: string | null | undefined;
1516
+ name?: string | undefined;
1517
+ address?: {
1672
1518
  coordinates?: number[] | null | undefined;
1673
1519
  line2?: string | null | undefined;
1674
1520
  state: string;
@@ -1676,11 +1522,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1676
1522
  line1: string;
1677
1523
  city: string;
1678
1524
  postcode: string;
1679
- };
1680
- 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;
1681
1589
  };
1682
1590
  };
1683
- })[] | null | undefined;
1591
+ }[] | null | undefined;
1684
1592
  updatedBy?: {
1685
1593
  email?: string | null | undefined;
1686
1594
  phoneNumber?: string | null | undefined;
@@ -1716,7 +1624,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1716
1624
  precision: number;
1717
1625
  };
1718
1626
  } | null | undefined;
1719
- type: "RECIPE" | "SKU";
1627
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1720
1628
  amount: {
1721
1629
  amount: number;
1722
1630
  precision: number;
@@ -1777,92 +1685,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1777
1685
  ref?: string | null | undefined;
1778
1686
  _rev?: string | null | undefined;
1779
1687
  updatedAt?: Date | null | undefined;
1780
- locations?: ({
1781
- doc?: any;
1782
- type: "restaurant";
1783
- name: string;
1784
- acceptRequest: boolean;
1785
- dbName: string;
1786
- } | {
1787
- type: "warehouse";
1688
+ locations?: {
1689
+ type: "restaurant" | "warehouse";
1788
1690
  name: string;
1789
1691
  acceptRequest: boolean;
1790
1692
  dbName: string;
1791
1693
  doc: {
1792
- pf_business?: {
1793
- internal?: boolean | null | undefined;
1794
- url?: string | null | undefined;
1795
- expiredAt?: string | null | undefined;
1796
- agentId?: string | null | undefined;
1797
- attributeSettings?: {
1798
- type: "string" | "number" | "boolean" | "date";
1799
- key: string;
1800
- entity: "restaurant" | "item";
1801
- }[] | null | undefined;
1802
- pf_agent?: {
1803
- clickupId?: string | null | undefined;
1804
- members?: {
1805
- pf_user?: {
1806
- email?: string | null | undefined;
1807
- phoneNumber?: string | null | undefined;
1808
- birthday?: string | null | undefined;
1809
- gender?: "MALE" | "FEMALE" | null | undefined;
1810
- addresses?: {
1811
- name: string;
1812
- address: string;
1813
- coordinates: number[];
1814
- }[] | null | undefined;
1815
- photoURL?: string | null | undefined;
1816
- displayName?: string | null | undefined;
1817
- imported?: {
1818
- raw: Record<string, any>;
1819
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1820
- } | null | undefined;
1821
- _id: string;
1822
- } | null | undefined;
1823
- role: "ADMIN";
1824
- userId: string;
1825
- }[] | null | undefined;
1826
- code: string;
1827
- name: string;
1828
- _id: string;
1829
- isReseller: boolean;
1830
- } | null | undefined;
1831
- thumbnail?: string | null | undefined;
1832
- billingInfos?: {
1833
- _id?: string | null | undefined;
1834
- name: string;
1835
- address: {
1836
- coordinates?: number[] | null | undefined;
1837
- line2?: string | null | undefined;
1838
- state: string;
1839
- country: string;
1840
- line1: string;
1841
- city: string;
1842
- postcode: string;
1843
- };
1844
- email: string;
1845
- companyName: string;
1846
- contact: string;
1847
- }[] | null | undefined;
1848
- customerDisplayImages?: {
1849
- url: string;
1850
- restaurantIds: string[];
1851
- }[] | null | undefined;
1852
- name: string;
1853
- _id: string;
1854
- ownerId: string;
1855
- restaurantQuota: number;
1856
- warehouseQuota: number;
1857
- menuVersion: string;
1858
- } | null | undefined;
1859
1694
  _id: string;
1860
1695
  businessId: string;
1861
1696
  profile: {
1862
- email?: string | null | undefined;
1863
- phoneNo?: string | null | undefined;
1864
- name: string;
1865
- address: {
1697
+ code?: string | null | undefined;
1698
+ _id?: string | null | undefined;
1699
+ name?: string | undefined;
1700
+ address?: {
1866
1701
  coordinates?: number[] | null | undefined;
1867
1702
  line2?: string | null | undefined;
1868
1703
  state: string;
@@ -1870,11 +1705,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1870
1705
  line1: string;
1871
1706
  city: string;
1872
1707
  postcode: string;
1873
- };
1874
- 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;
1875
1772
  };
1876
1773
  };
1877
- })[] | null | undefined;
1774
+ }[] | null | undefined;
1878
1775
  updatedBy?: {
1879
1776
  email?: string | null | undefined;
1880
1777
  phoneNumber?: string | null | undefined;
@@ -1910,7 +1807,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1910
1807
  precision: number;
1911
1808
  };
1912
1809
  } | null | undefined;
1913
- type: "RECIPE" | "SKU";
1810
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1914
1811
  amount: {
1915
1812
  amount: number;
1916
1813
  precision: number;
@@ -1971,92 +1868,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
1971
1868
  ref?: string | null | undefined;
1972
1869
  _rev?: string | null | undefined;
1973
1870
  updatedAt?: Date | null | undefined;
1974
- locations?: ({
1975
- doc?: any;
1976
- type: "restaurant";
1977
- name: string;
1978
- acceptRequest: boolean;
1979
- dbName: string;
1980
- } | {
1981
- type: "warehouse";
1871
+ locations?: {
1872
+ type: "restaurant" | "warehouse";
1982
1873
  name: string;
1983
1874
  acceptRequest: boolean;
1984
1875
  dbName: string;
1985
1876
  doc: {
1986
- pf_business?: {
1987
- internal?: boolean | null | undefined;
1988
- url?: string | null | undefined;
1989
- expiredAt?: string | null | undefined;
1990
- agentId?: string | null | undefined;
1991
- attributeSettings?: {
1992
- type: "string" | "number" | "boolean" | "date";
1993
- key: string;
1994
- entity: "restaurant" | "item";
1995
- }[] | null | undefined;
1996
- pf_agent?: {
1997
- clickupId?: string | null | undefined;
1998
- members?: {
1999
- pf_user?: {
2000
- email?: string | null | undefined;
2001
- phoneNumber?: string | null | undefined;
2002
- birthday?: string | null | undefined;
2003
- gender?: "MALE" | "FEMALE" | null | undefined;
2004
- addresses?: {
2005
- name: string;
2006
- address: string;
2007
- coordinates: number[];
2008
- }[] | null | undefined;
2009
- photoURL?: string | null | undefined;
2010
- displayName?: string | null | undefined;
2011
- imported?: {
2012
- raw: Record<string, any>;
2013
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2014
- } | null | undefined;
2015
- _id: string;
2016
- } | null | undefined;
2017
- role: "ADMIN";
2018
- userId: string;
2019
- }[] | null | undefined;
2020
- code: string;
2021
- name: string;
2022
- _id: string;
2023
- isReseller: boolean;
2024
- } | null | undefined;
2025
- thumbnail?: string | null | undefined;
2026
- billingInfos?: {
2027
- _id?: string | null | undefined;
2028
- name: string;
2029
- address: {
2030
- coordinates?: number[] | null | undefined;
2031
- line2?: string | null | undefined;
2032
- state: string;
2033
- country: string;
2034
- line1: string;
2035
- city: string;
2036
- postcode: string;
2037
- };
2038
- email: string;
2039
- companyName: string;
2040
- contact: string;
2041
- }[] | null | undefined;
2042
- customerDisplayImages?: {
2043
- url: string;
2044
- restaurantIds: string[];
2045
- }[] | null | undefined;
2046
- name: string;
2047
- _id: string;
2048
- ownerId: string;
2049
- restaurantQuota: number;
2050
- warehouseQuota: number;
2051
- menuVersion: string;
2052
- } | null | undefined;
2053
1877
  _id: string;
2054
1878
  businessId: string;
2055
1879
  profile: {
2056
- email?: string | null | undefined;
2057
- phoneNo?: string | null | undefined;
2058
- name: string;
2059
- address: {
1880
+ code?: string | null | undefined;
1881
+ _id?: string | null | undefined;
1882
+ name?: string | undefined;
1883
+ address?: {
2060
1884
  coordinates?: number[] | null | undefined;
2061
1885
  line2?: string | null | undefined;
2062
1886
  state: string;
@@ -2064,11 +1888,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2064
1888
  line1: string;
2065
1889
  city: string;
2066
1890
  postcode: string;
2067
- };
2068
- 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;
2069
1955
  };
2070
1956
  };
2071
- })[] | null | undefined;
1957
+ }[] | null | undefined;
2072
1958
  updatedBy?: {
2073
1959
  email?: string | null | undefined;
2074
1960
  phoneNumber?: string | null | undefined;
@@ -2104,7 +1990,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2104
1990
  precision: number;
2105
1991
  };
2106
1992
  } | null | undefined;
2107
- type: "RECIPE" | "SKU";
1993
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2108
1994
  amount: {
2109
1995
  amount: number;
2110
1996
  precision: number;
@@ -2164,92 +2050,19 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2164
2050
  ref?: string | null | undefined;
2165
2051
  _rev?: string | null | undefined;
2166
2052
  updatedAt?: Date | null | undefined;
2167
- locations?: ({
2168
- doc?: any;
2169
- type: "restaurant";
2170
- name: string;
2171
- acceptRequest: boolean;
2172
- dbName: string;
2173
- } | {
2174
- type: "warehouse";
2053
+ locations?: {
2054
+ type: "restaurant" | "warehouse";
2175
2055
  name: string;
2176
2056
  acceptRequest: boolean;
2177
2057
  dbName: string;
2178
2058
  doc: {
2179
- pf_business?: {
2180
- internal?: boolean | null | undefined;
2181
- url?: string | null | undefined;
2182
- expiredAt?: string | null | undefined;
2183
- agentId?: string | null | undefined;
2184
- attributeSettings?: {
2185
- type: "string" | "number" | "boolean" | "date";
2186
- key: string;
2187
- entity: "restaurant" | "item";
2188
- }[] | null | undefined;
2189
- pf_agent?: {
2190
- clickupId?: string | null | undefined;
2191
- members?: {
2192
- pf_user?: {
2193
- email?: string | null | undefined;
2194
- phoneNumber?: string | null | undefined;
2195
- birthday?: string | null | undefined;
2196
- gender?: "MALE" | "FEMALE" | null | undefined;
2197
- addresses?: {
2198
- name: string;
2199
- address: string;
2200
- coordinates: number[];
2201
- }[] | null | undefined;
2202
- photoURL?: string | null | undefined;
2203
- displayName?: string | null | undefined;
2204
- imported?: {
2205
- raw: Record<string, any>;
2206
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2207
- } | null | undefined;
2208
- _id: string;
2209
- } | null | undefined;
2210
- role: "ADMIN";
2211
- userId: string;
2212
- }[] | null | undefined;
2213
- code: string;
2214
- name: string;
2215
- _id: string;
2216
- isReseller: boolean;
2217
- } | null | undefined;
2218
- thumbnail?: string | null | undefined;
2219
- billingInfos?: {
2220
- _id?: string | null | undefined;
2221
- name: string;
2222
- address: {
2223
- coordinates?: number[] | null | undefined;
2224
- line2?: string | null | undefined;
2225
- state: string;
2226
- country: string;
2227
- line1: string;
2228
- city: string;
2229
- postcode: string;
2230
- };
2231
- email: string;
2232
- companyName: string;
2233
- contact: string;
2234
- }[] | null | undefined;
2235
- customerDisplayImages?: {
2236
- url: string;
2237
- restaurantIds: string[];
2238
- }[] | null | undefined;
2239
- name: string;
2240
- _id: string;
2241
- ownerId: string;
2242
- restaurantQuota: number;
2243
- warehouseQuota: number;
2244
- menuVersion: string;
2245
- } | null | undefined;
2246
2059
  _id: string;
2247
2060
  businessId: string;
2248
2061
  profile: {
2249
- email?: string | null | undefined;
2250
- phoneNo?: string | null | undefined;
2251
- name: string;
2252
- address: {
2062
+ code?: string | null | undefined;
2063
+ _id?: string | null | undefined;
2064
+ name?: string | undefined;
2065
+ address?: {
2253
2066
  coordinates?: number[] | null | undefined;
2254
2067
  line2?: string | null | undefined;
2255
2068
  state: string;
@@ -2257,11 +2070,73 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2257
2070
  line1: string;
2258
2071
  city: string;
2259
2072
  postcode: string;
2260
- };
2261
- 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;
2262
2137
  };
2263
2138
  };
2264
- })[] | null | undefined;
2139
+ }[] | null | undefined;
2265
2140
  updatedBy?: {
2266
2141
  email?: string | null | undefined;
2267
2142
  phoneNumber?: string | null | undefined;
@@ -2297,7 +2172,7 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2297
2172
  precision: number;
2298
2173
  };
2299
2174
  } | null | undefined;
2300
- type: "RECIPE" | "SKU";
2175
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2301
2176
  amount: {
2302
2177
  amount: number;
2303
2178
  precision: number;
@@ -2353,5 +2228,5 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2353
2228
  'onUpdate:show'?: ((show: boolean) => void) | undefined;
2354
2229
  'onAction:edit'?: (() => void) | undefined;
2355
2230
  }>;
2356
- }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate">>;
2231
+ }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "exportTemplates" | "importTemplates">>;
2357
2232
  export {};