@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
@@ -12,105 +12,31 @@ type TransferTemplateDetailsPropsWithEventBinding = TransferTemplateDetailsProps
12
12
  'onAction:use'?(locationId: string): void;
13
13
  'onAction:edit'?(): void;
14
14
  };
15
- export declare const useTransferTemplateActions: import("pinia").StoreDefinition<"transferTemplateActions", Pick<{
15
+ export declare const useTransferTemplateActions: import("pinia").StoreDefinition<"transferTemplateActions", import("pinia")._UnwrapAll<Pick<{
16
16
  createTemplate: () => void;
17
17
  viewTemplate: (template: POTemplate) => void;
18
18
  updateTemplate: (template: POTemplate) => void;
19
19
  deleteTemplate: (template: POTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
20
- useTemplate: (template: POTemplate) => void;
20
+ getTemplateId: () => Promise<string | undefined>;
21
+ importTemplates: () => void;
22
+ exportTemplates: () => void;
21
23
  templateDialogProps: Ref<{
22
24
  mode?: FormMode | undefined;
23
25
  modelValue?: {
24
26
  _rev?: string | null | undefined;
25
- locations?: ({
26
- doc?: any;
27
- type: "restaurant";
28
- name: string;
29
- acceptRequest: boolean;
30
- dbName: string;
31
- } | {
32
- type: "warehouse";
27
+ locations?: {
28
+ type: "restaurant" | "warehouse";
33
29
  name: string;
34
30
  acceptRequest: boolean;
35
31
  dbName: string;
36
32
  doc: {
37
- pf_business?: {
38
- internal?: boolean | null | undefined;
39
- url?: string | null | undefined;
40
- expiredAt?: string | null | undefined;
41
- agentId?: string | null | undefined;
42
- restaurantTagGroups?: {
43
- name: string;
44
- id: string;
45
- tags: {
46
- name: string;
47
- id: string;
48
- }[];
49
- }[] | null | undefined;
50
- pf_agent?: {
51
- clickupId?: string | null | undefined;
52
- members?: {
53
- pf_user?: {
54
- email?: string | null | undefined;
55
- phoneNumber?: string | null | undefined;
56
- birthday?: string | null | undefined;
57
- gender?: "MALE" | "FEMALE" | null | undefined;
58
- addresses?: {
59
- name: string;
60
- address: string;
61
- coordinates: number[];
62
- }[] | null | undefined;
63
- photoURL?: string | null | undefined;
64
- displayName?: string | null | undefined;
65
- imported?: {
66
- raw: Record<string, any>;
67
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
68
- } | null | undefined;
69
- _id: string;
70
- } | null | undefined;
71
- role: "ADMIN";
72
- userId: string;
73
- }[] | null | undefined;
74
- code: string;
75
- name: string;
76
- _id: string;
77
- isReseller: boolean;
78
- } | null | undefined;
79
- thumbnail?: string | null | undefined;
80
- billingInfos?: {
81
- _id?: string | null | undefined;
82
- name: string;
83
- address: {
84
- coordinates?: number[] | null | undefined;
85
- line2?: string | null | undefined;
86
- state: string;
87
- country: string;
88
- line1: string;
89
- city: string;
90
- postcode: string;
91
- };
92
- email: string;
93
- companyName: string;
94
- contact: string;
95
- }[] | null | undefined;
96
- customerDisplayImages?: {
97
- url: string;
98
- restaurantIds: string[];
99
- }[] | null | undefined;
100
- name: string;
101
- _id: string;
102
- ownerId: string;
103
- restaurantQuota: number;
104
- warehouseQuota: number;
105
- menuVersion: string;
106
- } | null | undefined;
107
33
  _id: string;
108
34
  businessId: string;
109
35
  profile: {
110
- email?: string | null | undefined;
111
- phoneNo?: string | null | undefined;
112
- name: string;
113
- address: {
36
+ code?: string | null | undefined;
37
+ _id?: string | null | undefined;
38
+ name?: string | undefined;
39
+ address?: {
114
40
  coordinates?: number[] | null | undefined;
115
41
  line2?: string | null | undefined;
116
42
  state: string;
@@ -118,56 +44,78 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
118
44
  line1: string;
119
45
  city: string;
120
46
  postcode: string;
121
- };
122
- 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;
123
111
  };
124
112
  };
125
- })[] | null | undefined;
113
+ }[] | null | undefined;
126
114
  _id: string;
127
115
  name: string;
128
116
  purchaseOrder: {
129
117
  remark?: string | null | undefined;
130
118
  ref?: string | null | undefined;
131
- supplier?: {
132
- phoneNumber?: string | null | undefined;
133
- email?: string | null | undefined;
134
- _rev?: string | null | undefined;
135
- internal?: "restaurant" | "warehouse" | null | undefined;
136
- contactName?: string | null | undefined;
137
- registrationNumber?: string | undefined;
138
- supplyItems?: {
139
- defaultCost: {
140
- measurement?: {
141
- id: string;
142
- name: string;
143
- abbrev: string;
144
- conversion: {
145
- amount: number;
146
- precision: number;
147
- };
148
- } | null | undefined;
149
- costPerUnit: {
150
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
151
- amount: number;
152
- precision: number;
153
- };
154
- };
155
- skuId: string;
156
- }[] | null | undefined;
157
- _id: string;
158
- name: string;
159
- address: {
160
- line2?: string | null | undefined;
161
- line1: string;
162
- state: string;
163
- city: string;
164
- postcode: string;
165
- country: string;
166
- };
167
- } | undefined;
168
- template?: string | null | undefined;
169
- stockSnapshotId?: string | null | undefined;
170
- effectiveAt?: string | null | undefined;
171
119
  items: {
172
120
  measurement?: {
173
121
  id: string;
@@ -197,7 +145,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
197
145
  precision: number;
198
146
  };
199
147
  } | null | undefined;
200
- type: "RECIPE" | "SKU";
148
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
201
149
  amount: {
202
150
  amount: number;
203
151
  precision: number;
@@ -265,122 +213,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
265
213
  precision: number;
266
214
  };
267
215
  }[];
268
- };
269
- } | undefined;
270
- show?: boolean | undefined;
271
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
272
- onSubmitted?: (() => void) | undefined;
273
- }, TransferTemplateDialogPropsWithEventBinding | {
274
- mode?: FormMode | undefined;
275
- modelValue?: {
276
- _rev?: string | null | undefined;
277
- locations?: ({
278
- doc?: any;
279
- type: "restaurant";
280
- name: string;
281
- acceptRequest: boolean;
282
- dbName: string;
283
- } | {
284
- type: "warehouse";
285
- name: string;
286
- acceptRequest: boolean;
287
- dbName: string;
288
- doc: {
289
- pf_business?: {
290
- internal?: boolean | null | undefined;
291
- url?: string | null | undefined;
292
- expiredAt?: string | null | undefined;
293
- agentId?: string | null | undefined;
294
- restaurantTagGroups?: {
295
- name: string;
296
- id: string;
297
- tags: {
298
- name: string;
299
- id: string;
300
- }[];
301
- }[] | null | undefined;
302
- pf_agent?: {
303
- clickupId?: string | null | undefined;
304
- members?: {
305
- pf_user?: {
306
- email?: string | null | undefined;
307
- phoneNumber?: string | null | undefined;
308
- birthday?: string | null | undefined;
309
- gender?: "MALE" | "FEMALE" | null | undefined;
310
- addresses?: {
311
- name: string;
312
- address: string;
313
- coordinates: number[];
314
- }[] | null | undefined;
315
- photoURL?: string | null | undefined;
316
- displayName?: string | null | undefined;
317
- imported?: {
318
- raw: Record<string, any>;
319
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
320
- } | null | undefined;
321
- _id: string;
322
- } | null | undefined;
323
- role: "ADMIN";
324
- userId: string;
325
- }[] | null | undefined;
326
- code: string;
327
- name: string;
328
- _id: string;
329
- isReseller: boolean;
330
- } | null | undefined;
331
- thumbnail?: string | null | undefined;
332
- billingInfos?: {
333
- _id?: string | null | undefined;
334
- name: string;
335
- address: {
336
- coordinates?: number[] | null | undefined;
337
- line2?: string | null | undefined;
338
- state: string;
339
- country: string;
340
- line1: string;
341
- city: string;
342
- postcode: string;
343
- };
344
- email: string;
345
- companyName: string;
346
- contact: string;
347
- }[] | null | undefined;
348
- customerDisplayImages?: {
349
- url: string;
350
- restaurantIds: string[];
351
- }[] | null | undefined;
352
- name: string;
353
- _id: string;
354
- ownerId: string;
355
- restaurantQuota: number;
356
- warehouseQuota: number;
357
- menuVersion: string;
358
- } | null | undefined;
359
- _id: string;
360
- businessId: string;
361
- profile: {
362
- email?: string | null | undefined;
363
- phoneNo?: string | null | undefined;
364
- name: string;
365
- address: {
366
- coordinates?: number[] | null | undefined;
367
- line2?: string | null | undefined;
368
- state: string;
369
- country: string;
370
- line1: string;
371
- city: string;
372
- postcode: string;
373
- };
374
- regNo: string;
375
- };
376
- };
377
- })[] | null | undefined;
378
- _id: string;
379
- name: string;
380
- purchaseOrder: {
381
- remark?: string | null | undefined;
382
- ref?: string | null | undefined;
383
- supplier?: {
216
+ supplier: {
384
217
  phoneNumber?: string | null | undefined;
385
218
  email?: string | null | undefined;
386
219
  _rev?: string | null | undefined;
@@ -416,10 +249,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
416
249
  postcode: string;
417
250
  country: string;
418
251
  };
419
- } | undefined;
420
- template?: string | null | undefined;
421
- stockSnapshotId?: string | null | undefined;
422
- effectiveAt?: string | null | undefined;
252
+ };
253
+ };
254
+ } | undefined;
255
+ show?: boolean | undefined;
256
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
257
+ onSubmitted?: (() => void) | undefined;
258
+ }, TransferTemplateDialogPropsWithEventBinding | {
259
+ mode?: FormMode | undefined;
260
+ modelValue?: {
261
+ _rev?: string | null | undefined;
262
+ locations?: {
263
+ type: "restaurant" | "warehouse";
264
+ name: string;
265
+ acceptRequest: boolean;
266
+ dbName: string;
267
+ doc: {
268
+ _id: string;
269
+ businessId: string;
270
+ profile: {
271
+ code?: string | null | undefined;
272
+ _id?: string | null | undefined;
273
+ name?: string | undefined;
274
+ address?: {
275
+ coordinates?: number[] | null | undefined;
276
+ line2?: string | null | undefined;
277
+ state: string;
278
+ country: string;
279
+ line1: string;
280
+ city: string;
281
+ postcode: string;
282
+ } | undefined;
283
+ email?: string | undefined;
284
+ regNo?: string | undefined;
285
+ sstRegNo?: string | null | undefined;
286
+ phoneNo?: string | undefined;
287
+ legalName?: string | null | undefined;
288
+ discovery?: boolean | null | undefined;
289
+ coverPhoto?: string | null | undefined;
290
+ thumbnailPhoto?: string | null | undefined;
291
+ description?: string | null | undefined;
292
+ photos?: string[] | null | undefined;
293
+ operatingHours?: {
294
+ 0: {
295
+ hours: {
296
+ end: string;
297
+ start: string;
298
+ }[];
299
+ enable: boolean;
300
+ };
301
+ 2: {
302
+ hours: {
303
+ end: string;
304
+ start: string;
305
+ }[];
306
+ enable: boolean;
307
+ };
308
+ 1: {
309
+ hours: {
310
+ end: string;
311
+ start: string;
312
+ }[];
313
+ enable: boolean;
314
+ };
315
+ 3: {
316
+ hours: {
317
+ end: string;
318
+ start: string;
319
+ }[];
320
+ enable: boolean;
321
+ };
322
+ 4: {
323
+ hours: {
324
+ end: string;
325
+ start: string;
326
+ }[];
327
+ enable: boolean;
328
+ };
329
+ 5: {
330
+ hours: {
331
+ end: string;
332
+ start: string;
333
+ }[];
334
+ enable: boolean;
335
+ };
336
+ 6: {
337
+ hours: {
338
+ end: string;
339
+ start: string;
340
+ }[];
341
+ enable: boolean;
342
+ };
343
+ } | null | undefined;
344
+ tags?: string[] | null | undefined;
345
+ url?: string | null | undefined;
346
+ };
347
+ };
348
+ }[] | null | undefined;
349
+ _id: string;
350
+ name: string;
351
+ purchaseOrder: {
352
+ remark?: string | null | undefined;
353
+ ref?: string | null | undefined;
423
354
  items: {
424
355
  measurement?: {
425
356
  id: string;
@@ -449,7 +380,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
449
380
  precision: number;
450
381
  };
451
382
  } | null | undefined;
452
- type: "RECIPE" | "SKU";
383
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
453
384
  amount: {
454
385
  amount: number;
455
386
  precision: number;
@@ -517,122 +448,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
517
448
  precision: number;
518
449
  };
519
450
  }[];
520
- };
521
- } | undefined;
522
- show?: boolean | undefined;
523
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
524
- onSubmitted?: (() => void) | undefined;
525
- }>;
526
- templateDetailsProps: Ref<{
527
- template?: {
528
- _rev?: string | null | undefined;
529
- locations?: ({
530
- doc?: any;
531
- type: "restaurant";
532
- name: string;
533
- acceptRequest: boolean;
534
- dbName: string;
535
- } | {
536
- type: "warehouse";
537
- name: string;
538
- acceptRequest: boolean;
539
- dbName: string;
540
- doc: {
541
- pf_business?: {
542
- internal?: boolean | null | undefined;
543
- url?: string | null | undefined;
544
- expiredAt?: string | null | undefined;
545
- agentId?: string | null | undefined;
546
- restaurantTagGroups?: {
547
- name: string;
548
- id: string;
549
- tags: {
550
- name: string;
551
- id: string;
552
- }[];
553
- }[] | null | undefined;
554
- pf_agent?: {
555
- clickupId?: string | null | undefined;
556
- members?: {
557
- pf_user?: {
558
- email?: string | null | undefined;
559
- phoneNumber?: string | null | undefined;
560
- birthday?: string | null | undefined;
561
- gender?: "MALE" | "FEMALE" | null | undefined;
562
- addresses?: {
563
- name: string;
564
- address: string;
565
- coordinates: number[];
566
- }[] | null | undefined;
567
- photoURL?: string | null | undefined;
568
- displayName?: string | null | undefined;
569
- imported?: {
570
- raw: Record<string, any>;
571
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
572
- } | null | undefined;
573
- _id: string;
574
- } | null | undefined;
575
- role: "ADMIN";
576
- userId: string;
577
- }[] | null | undefined;
578
- code: string;
579
- name: string;
580
- _id: string;
581
- isReseller: boolean;
582
- } | null | undefined;
583
- thumbnail?: string | null | undefined;
584
- billingInfos?: {
585
- _id?: string | null | undefined;
586
- name: string;
587
- address: {
588
- coordinates?: number[] | null | undefined;
589
- line2?: string | null | undefined;
590
- state: string;
591
- country: string;
592
- line1: string;
593
- city: string;
594
- postcode: string;
595
- };
596
- email: string;
597
- companyName: string;
598
- contact: string;
599
- }[] | null | undefined;
600
- customerDisplayImages?: {
601
- url: string;
602
- restaurantIds: string[];
603
- }[] | null | undefined;
604
- name: string;
605
- _id: string;
606
- ownerId: string;
607
- restaurantQuota: number;
608
- warehouseQuota: number;
609
- menuVersion: string;
610
- } | null | undefined;
611
- _id: string;
612
- businessId: string;
613
- profile: {
614
- email?: string | null | undefined;
615
- phoneNo?: string | null | undefined;
616
- name: string;
617
- address: {
618
- coordinates?: number[] | null | undefined;
619
- line2?: string | null | undefined;
620
- state: string;
621
- country: string;
622
- line1: string;
623
- city: string;
624
- postcode: string;
625
- };
626
- regNo: string;
627
- };
628
- };
629
- })[] | null | undefined;
630
- _id: string;
631
- name: string;
632
- purchaseOrder: {
633
- remark?: string | null | undefined;
634
- ref?: string | null | undefined;
635
- supplier?: {
451
+ supplier: {
636
452
  phoneNumber?: string | null | undefined;
637
453
  email?: string | null | undefined;
638
454
  _rev?: string | null | undefined;
@@ -668,10 +484,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
668
484
  postcode: string;
669
485
  country: string;
670
486
  };
671
- } | undefined;
672
- template?: string | null | undefined;
673
- stockSnapshotId?: string | null | undefined;
674
- effectiveAt?: string | null | undefined;
487
+ };
488
+ };
489
+ } | undefined;
490
+ show?: boolean | undefined;
491
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
492
+ onSubmitted?: (() => void) | undefined;
493
+ }>;
494
+ templateDetailsProps: Ref<{
495
+ template?: {
496
+ _rev?: string | null | undefined;
497
+ locations?: {
498
+ type: "restaurant" | "warehouse";
499
+ name: string;
500
+ acceptRequest: boolean;
501
+ dbName: string;
502
+ doc: {
503
+ _id: string;
504
+ businessId: string;
505
+ profile: {
506
+ code?: string | null | undefined;
507
+ _id?: string | null | undefined;
508
+ name?: string | undefined;
509
+ address?: {
510
+ coordinates?: number[] | null | undefined;
511
+ line2?: string | null | undefined;
512
+ state: string;
513
+ country: string;
514
+ line1: string;
515
+ city: string;
516
+ postcode: string;
517
+ } | undefined;
518
+ email?: string | undefined;
519
+ regNo?: string | undefined;
520
+ sstRegNo?: string | null | undefined;
521
+ phoneNo?: string | undefined;
522
+ legalName?: string | null | undefined;
523
+ discovery?: boolean | null | undefined;
524
+ coverPhoto?: string | null | undefined;
525
+ thumbnailPhoto?: string | null | undefined;
526
+ description?: string | null | undefined;
527
+ photos?: string[] | null | undefined;
528
+ operatingHours?: {
529
+ 0: {
530
+ hours: {
531
+ end: string;
532
+ start: string;
533
+ }[];
534
+ enable: boolean;
535
+ };
536
+ 2: {
537
+ hours: {
538
+ end: string;
539
+ start: string;
540
+ }[];
541
+ enable: boolean;
542
+ };
543
+ 1: {
544
+ hours: {
545
+ end: string;
546
+ start: string;
547
+ }[];
548
+ enable: boolean;
549
+ };
550
+ 3: {
551
+ hours: {
552
+ end: string;
553
+ start: string;
554
+ }[];
555
+ enable: boolean;
556
+ };
557
+ 4: {
558
+ hours: {
559
+ end: string;
560
+ start: string;
561
+ }[];
562
+ enable: boolean;
563
+ };
564
+ 5: {
565
+ hours: {
566
+ end: string;
567
+ start: string;
568
+ }[];
569
+ enable: boolean;
570
+ };
571
+ 6: {
572
+ hours: {
573
+ end: string;
574
+ start: string;
575
+ }[];
576
+ enable: boolean;
577
+ };
578
+ } | null | undefined;
579
+ tags?: string[] | null | undefined;
580
+ url?: string | null | undefined;
581
+ };
582
+ };
583
+ }[] | null | undefined;
584
+ _id: string;
585
+ name: string;
586
+ purchaseOrder: {
587
+ remark?: string | null | undefined;
588
+ ref?: string | null | undefined;
675
589
  items: {
676
590
  measurement?: {
677
591
  id: string;
@@ -701,7 +615,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
701
615
  precision: number;
702
616
  };
703
617
  } | null | undefined;
704
- type: "RECIPE" | "SKU";
618
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
705
619
  amount: {
706
620
  amount: number;
707
621
  precision: number;
@@ -769,122 +683,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
769
683
  precision: number;
770
684
  };
771
685
  }[];
772
- };
773
- } | undefined;
774
- show?: boolean | undefined;
775
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
776
- 'onAction:use'?: ((locationId: string) => void) | undefined;
777
- 'onAction:edit'?: (() => void) | undefined;
778
- }, TransferTemplateDetailsPropsWithEventBinding | {
779
- template?: {
780
- _rev?: string | null | undefined;
781
- locations?: ({
782
- doc?: any;
783
- type: "restaurant";
784
- name: string;
785
- acceptRequest: boolean;
786
- dbName: string;
787
- } | {
788
- type: "warehouse";
789
- name: string;
790
- acceptRequest: boolean;
791
- dbName: string;
792
- doc: {
793
- pf_business?: {
794
- internal?: boolean | null | undefined;
795
- url?: string | null | undefined;
796
- expiredAt?: string | null | undefined;
797
- agentId?: string | null | undefined;
798
- restaurantTagGroups?: {
799
- name: string;
800
- id: string;
801
- tags: {
802
- name: string;
803
- id: string;
804
- }[];
805
- }[] | null | undefined;
806
- pf_agent?: {
807
- clickupId?: string | null | undefined;
808
- members?: {
809
- pf_user?: {
810
- email?: string | null | undefined;
811
- phoneNumber?: string | null | undefined;
812
- birthday?: string | null | undefined;
813
- gender?: "MALE" | "FEMALE" | null | undefined;
814
- addresses?: {
815
- name: string;
816
- address: string;
817
- coordinates: number[];
818
- }[] | null | undefined;
819
- photoURL?: string | null | undefined;
820
- displayName?: string | null | undefined;
821
- imported?: {
822
- raw: Record<string, any>;
823
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
824
- } | null | undefined;
825
- _id: string;
826
- } | null | undefined;
827
- role: "ADMIN";
828
- userId: string;
829
- }[] | null | undefined;
830
- code: string;
831
- name: string;
832
- _id: string;
833
- isReseller: boolean;
834
- } | null | undefined;
835
- thumbnail?: string | null | undefined;
836
- billingInfos?: {
837
- _id?: string | null | undefined;
838
- name: string;
839
- address: {
840
- coordinates?: number[] | null | undefined;
841
- line2?: string | null | undefined;
842
- state: string;
843
- country: string;
844
- line1: string;
845
- city: string;
846
- postcode: string;
847
- };
848
- email: string;
849
- companyName: string;
850
- contact: string;
851
- }[] | null | undefined;
852
- customerDisplayImages?: {
853
- url: string;
854
- restaurantIds: string[];
855
- }[] | null | undefined;
856
- name: string;
857
- _id: string;
858
- ownerId: string;
859
- restaurantQuota: number;
860
- warehouseQuota: number;
861
- menuVersion: string;
862
- } | null | undefined;
863
- _id: string;
864
- businessId: string;
865
- profile: {
866
- email?: string | null | undefined;
867
- phoneNo?: string | null | undefined;
868
- name: string;
869
- address: {
870
- coordinates?: number[] | null | undefined;
871
- line2?: string | null | undefined;
872
- state: string;
873
- country: string;
874
- line1: string;
875
- city: string;
876
- postcode: string;
877
- };
878
- regNo: string;
879
- };
880
- };
881
- })[] | null | undefined;
882
- _id: string;
883
- name: string;
884
- purchaseOrder: {
885
- remark?: string | null | undefined;
886
- ref?: string | null | undefined;
887
- supplier?: {
686
+ supplier: {
888
687
  phoneNumber?: string | null | undefined;
889
688
  email?: string | null | undefined;
890
689
  _rev?: string | null | undefined;
@@ -920,10 +719,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
920
719
  postcode: string;
921
720
  country: string;
922
721
  };
923
- } | undefined;
924
- template?: string | null | undefined;
925
- stockSnapshotId?: string | null | undefined;
926
- effectiveAt?: string | null | undefined;
722
+ };
723
+ };
724
+ } | undefined;
725
+ show?: boolean | undefined;
726
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
727
+ 'onAction:use'?: ((locationId: string) => void) | undefined;
728
+ 'onAction:edit'?: (() => void) | undefined;
729
+ }, TransferTemplateDetailsPropsWithEventBinding | {
730
+ template?: {
731
+ _rev?: string | null | undefined;
732
+ locations?: {
733
+ type: "restaurant" | "warehouse";
734
+ name: string;
735
+ acceptRequest: boolean;
736
+ dbName: string;
737
+ doc: {
738
+ _id: string;
739
+ businessId: string;
740
+ profile: {
741
+ code?: string | null | undefined;
742
+ _id?: string | null | undefined;
743
+ name?: string | undefined;
744
+ address?: {
745
+ coordinates?: number[] | null | undefined;
746
+ line2?: string | null | undefined;
747
+ state: string;
748
+ country: string;
749
+ line1: string;
750
+ city: string;
751
+ postcode: string;
752
+ } | undefined;
753
+ email?: string | undefined;
754
+ regNo?: string | undefined;
755
+ sstRegNo?: string | null | undefined;
756
+ phoneNo?: string | undefined;
757
+ legalName?: string | null | undefined;
758
+ discovery?: boolean | null | undefined;
759
+ coverPhoto?: string | null | undefined;
760
+ thumbnailPhoto?: string | null | undefined;
761
+ description?: string | null | undefined;
762
+ photos?: string[] | null | undefined;
763
+ operatingHours?: {
764
+ 0: {
765
+ hours: {
766
+ end: string;
767
+ start: string;
768
+ }[];
769
+ enable: boolean;
770
+ };
771
+ 2: {
772
+ hours: {
773
+ end: string;
774
+ start: string;
775
+ }[];
776
+ enable: boolean;
777
+ };
778
+ 1: {
779
+ hours: {
780
+ end: string;
781
+ start: string;
782
+ }[];
783
+ enable: boolean;
784
+ };
785
+ 3: {
786
+ hours: {
787
+ end: string;
788
+ start: string;
789
+ }[];
790
+ enable: boolean;
791
+ };
792
+ 4: {
793
+ hours: {
794
+ end: string;
795
+ start: string;
796
+ }[];
797
+ enable: boolean;
798
+ };
799
+ 5: {
800
+ hours: {
801
+ end: string;
802
+ start: string;
803
+ }[];
804
+ enable: boolean;
805
+ };
806
+ 6: {
807
+ hours: {
808
+ end: string;
809
+ start: string;
810
+ }[];
811
+ enable: boolean;
812
+ };
813
+ } | null | undefined;
814
+ tags?: string[] | null | undefined;
815
+ url?: string | null | undefined;
816
+ };
817
+ };
818
+ }[] | null | undefined;
819
+ _id: string;
820
+ name: string;
821
+ purchaseOrder: {
822
+ remark?: string | null | undefined;
823
+ ref?: string | null | undefined;
927
824
  items: {
928
825
  measurement?: {
929
826
  id: string;
@@ -953,7 +850,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
953
850
  precision: number;
954
851
  };
955
852
  } | null | undefined;
956
- type: "RECIPE" | "SKU";
853
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
957
854
  amount: {
958
855
  amount: number;
959
856
  precision: number;
@@ -1021,6 +918,43 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1021
918
  precision: number;
1022
919
  };
1023
920
  }[];
921
+ supplier: {
922
+ phoneNumber?: string | null | undefined;
923
+ email?: string | null | undefined;
924
+ _rev?: string | null | undefined;
925
+ internal?: "restaurant" | "warehouse" | null | undefined;
926
+ contactName?: string | null | undefined;
927
+ registrationNumber?: string | undefined;
928
+ supplyItems?: {
929
+ defaultCost: {
930
+ measurement?: {
931
+ id: string;
932
+ name: string;
933
+ abbrev: string;
934
+ conversion: {
935
+ amount: number;
936
+ precision: number;
937
+ };
938
+ } | null | undefined;
939
+ costPerUnit: {
940
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
941
+ amount: number;
942
+ precision: number;
943
+ };
944
+ };
945
+ skuId: string;
946
+ }[] | null | undefined;
947
+ _id: string;
948
+ name: string;
949
+ address: {
950
+ line2?: string | null | undefined;
951
+ line1: string;
952
+ state: string;
953
+ city: string;
954
+ postcode: string;
955
+ country: string;
956
+ };
957
+ };
1024
958
  };
1025
959
  } | undefined;
1026
960
  show?: boolean | undefined;
@@ -1028,106 +962,31 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1028
962
  'onAction:use'?: ((locationId: string) => void) | undefined;
1029
963
  'onAction:edit'?: (() => void) | undefined;
1030
964
  }>;
1031
- transferFormDialogProps: Ref<import("../../receive-request/components/transfer-dialog/TransferDialogProps").TransferDialogProps | undefined, import("../../receive-request/components/transfer-dialog/TransferDialogProps").TransferDialogProps | undefined>;
1032
- }, "templateDialogProps" | "templateDetailsProps" | "transferFormDialogProps">, Pick<{
965
+ }, "templateDialogProps" | "templateDetailsProps">>, Pick<{
1033
966
  createTemplate: () => void;
1034
967
  viewTemplate: (template: POTemplate) => void;
1035
968
  updateTemplate: (template: POTemplate) => void;
1036
969
  deleteTemplate: (template: POTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
1037
- useTemplate: (template: POTemplate) => void;
970
+ getTemplateId: () => Promise<string | undefined>;
971
+ importTemplates: () => void;
972
+ exportTemplates: () => void;
1038
973
  templateDialogProps: Ref<{
1039
974
  mode?: FormMode | undefined;
1040
975
  modelValue?: {
1041
976
  _rev?: string | null | undefined;
1042
- locations?: ({
1043
- doc?: any;
1044
- type: "restaurant";
1045
- name: string;
1046
- acceptRequest: boolean;
1047
- dbName: string;
1048
- } | {
1049
- type: "warehouse";
977
+ locations?: {
978
+ type: "restaurant" | "warehouse";
1050
979
  name: string;
1051
980
  acceptRequest: boolean;
1052
981
  dbName: string;
1053
982
  doc: {
1054
- pf_business?: {
1055
- internal?: boolean | null | undefined;
1056
- url?: string | null | undefined;
1057
- expiredAt?: string | null | undefined;
1058
- agentId?: string | null | undefined;
1059
- restaurantTagGroups?: {
1060
- name: string;
1061
- id: string;
1062
- tags: {
1063
- name: string;
1064
- id: string;
1065
- }[];
1066
- }[] | null | undefined;
1067
- pf_agent?: {
1068
- clickupId?: string | null | undefined;
1069
- members?: {
1070
- pf_user?: {
1071
- email?: string | null | undefined;
1072
- phoneNumber?: string | null | undefined;
1073
- birthday?: string | null | undefined;
1074
- gender?: "MALE" | "FEMALE" | null | undefined;
1075
- addresses?: {
1076
- name: string;
1077
- address: string;
1078
- coordinates: number[];
1079
- }[] | null | undefined;
1080
- photoURL?: string | null | undefined;
1081
- displayName?: string | null | undefined;
1082
- imported?: {
1083
- raw: Record<string, any>;
1084
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1085
- } | null | undefined;
1086
- _id: string;
1087
- } | null | undefined;
1088
- role: "ADMIN";
1089
- userId: string;
1090
- }[] | null | undefined;
1091
- code: string;
1092
- name: string;
1093
- _id: string;
1094
- isReseller: boolean;
1095
- } | null | undefined;
1096
- thumbnail?: string | null | undefined;
1097
- billingInfos?: {
1098
- _id?: string | null | undefined;
1099
- name: string;
1100
- address: {
1101
- coordinates?: number[] | null | undefined;
1102
- line2?: string | null | undefined;
1103
- state: string;
1104
- country: string;
1105
- line1: string;
1106
- city: string;
1107
- postcode: string;
1108
- };
1109
- email: string;
1110
- companyName: string;
1111
- contact: string;
1112
- }[] | null | undefined;
1113
- customerDisplayImages?: {
1114
- url: string;
1115
- restaurantIds: string[];
1116
- }[] | null | undefined;
1117
- name: string;
1118
- _id: string;
1119
- ownerId: string;
1120
- restaurantQuota: number;
1121
- warehouseQuota: number;
1122
- menuVersion: string;
1123
- } | null | undefined;
1124
983
  _id: string;
1125
984
  businessId: string;
1126
985
  profile: {
1127
- email?: string | null | undefined;
1128
- phoneNo?: string | null | undefined;
1129
- name: string;
1130
- address: {
986
+ code?: string | null | undefined;
987
+ _id?: string | null | undefined;
988
+ name?: string | undefined;
989
+ address?: {
1131
990
  coordinates?: number[] | null | undefined;
1132
991
  line2?: string | null | undefined;
1133
992
  state: string;
@@ -1135,56 +994,78 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1135
994
  line1: string;
1136
995
  city: string;
1137
996
  postcode: string;
1138
- };
1139
- regNo: string;
997
+ } | undefined;
998
+ email?: string | undefined;
999
+ regNo?: string | undefined;
1000
+ sstRegNo?: string | null | undefined;
1001
+ phoneNo?: string | undefined;
1002
+ legalName?: string | null | undefined;
1003
+ discovery?: boolean | null | undefined;
1004
+ coverPhoto?: string | null | undefined;
1005
+ thumbnailPhoto?: string | null | undefined;
1006
+ description?: string | null | undefined;
1007
+ photos?: string[] | null | undefined;
1008
+ operatingHours?: {
1009
+ 0: {
1010
+ hours: {
1011
+ end: string;
1012
+ start: string;
1013
+ }[];
1014
+ enable: boolean;
1015
+ };
1016
+ 2: {
1017
+ hours: {
1018
+ end: string;
1019
+ start: string;
1020
+ }[];
1021
+ enable: boolean;
1022
+ };
1023
+ 1: {
1024
+ hours: {
1025
+ end: string;
1026
+ start: string;
1027
+ }[];
1028
+ enable: boolean;
1029
+ };
1030
+ 3: {
1031
+ hours: {
1032
+ end: string;
1033
+ start: string;
1034
+ }[];
1035
+ enable: boolean;
1036
+ };
1037
+ 4: {
1038
+ hours: {
1039
+ end: string;
1040
+ start: string;
1041
+ }[];
1042
+ enable: boolean;
1043
+ };
1044
+ 5: {
1045
+ hours: {
1046
+ end: string;
1047
+ start: string;
1048
+ }[];
1049
+ enable: boolean;
1050
+ };
1051
+ 6: {
1052
+ hours: {
1053
+ end: string;
1054
+ start: string;
1055
+ }[];
1056
+ enable: boolean;
1057
+ };
1058
+ } | null | undefined;
1059
+ tags?: string[] | null | undefined;
1060
+ url?: string | null | undefined;
1140
1061
  };
1141
1062
  };
1142
- })[] | null | undefined;
1063
+ }[] | null | undefined;
1143
1064
  _id: string;
1144
1065
  name: string;
1145
1066
  purchaseOrder: {
1146
1067
  remark?: string | null | undefined;
1147
1068
  ref?: string | null | undefined;
1148
- supplier?: {
1149
- phoneNumber?: string | null | undefined;
1150
- email?: string | null | undefined;
1151
- _rev?: string | null | undefined;
1152
- internal?: "restaurant" | "warehouse" | null | undefined;
1153
- contactName?: string | null | undefined;
1154
- registrationNumber?: string | undefined;
1155
- supplyItems?: {
1156
- defaultCost: {
1157
- measurement?: {
1158
- id: string;
1159
- name: string;
1160
- abbrev: string;
1161
- conversion: {
1162
- amount: number;
1163
- precision: number;
1164
- };
1165
- } | null | undefined;
1166
- costPerUnit: {
1167
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1168
- amount: number;
1169
- precision: number;
1170
- };
1171
- };
1172
- skuId: string;
1173
- }[] | null | undefined;
1174
- _id: string;
1175
- name: string;
1176
- address: {
1177
- line2?: string | null | undefined;
1178
- line1: string;
1179
- state: string;
1180
- city: string;
1181
- postcode: string;
1182
- country: string;
1183
- };
1184
- } | undefined;
1185
- template?: string | null | undefined;
1186
- stockSnapshotId?: string | null | undefined;
1187
- effectiveAt?: string | null | undefined;
1188
1069
  items: {
1189
1070
  measurement?: {
1190
1071
  id: string;
@@ -1214,7 +1095,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1214
1095
  precision: number;
1215
1096
  };
1216
1097
  } | null | undefined;
1217
- type: "RECIPE" | "SKU";
1098
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1218
1099
  amount: {
1219
1100
  amount: number;
1220
1101
  precision: number;
@@ -1282,122 +1163,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1282
1163
  precision: number;
1283
1164
  };
1284
1165
  }[];
1285
- };
1286
- } | undefined;
1287
- show?: boolean | undefined;
1288
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1289
- onSubmitted?: (() => void) | undefined;
1290
- }, TransferTemplateDialogPropsWithEventBinding | {
1291
- mode?: FormMode | undefined;
1292
- modelValue?: {
1293
- _rev?: string | null | undefined;
1294
- locations?: ({
1295
- doc?: any;
1296
- type: "restaurant";
1297
- name: string;
1298
- acceptRequest: boolean;
1299
- dbName: string;
1300
- } | {
1301
- type: "warehouse";
1302
- name: string;
1303
- acceptRequest: boolean;
1304
- dbName: string;
1305
- doc: {
1306
- pf_business?: {
1307
- internal?: boolean | null | undefined;
1308
- url?: string | null | undefined;
1309
- expiredAt?: string | null | undefined;
1310
- agentId?: string | null | undefined;
1311
- restaurantTagGroups?: {
1312
- name: string;
1313
- id: string;
1314
- tags: {
1315
- name: string;
1316
- id: string;
1317
- }[];
1318
- }[] | null | undefined;
1319
- pf_agent?: {
1320
- clickupId?: string | null | undefined;
1321
- members?: {
1322
- pf_user?: {
1323
- email?: string | null | undefined;
1324
- phoneNumber?: string | null | undefined;
1325
- birthday?: string | null | undefined;
1326
- gender?: "MALE" | "FEMALE" | null | undefined;
1327
- addresses?: {
1328
- name: string;
1329
- address: string;
1330
- coordinates: number[];
1331
- }[] | null | undefined;
1332
- photoURL?: string | null | undefined;
1333
- displayName?: string | null | undefined;
1334
- imported?: {
1335
- raw: Record<string, any>;
1336
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1337
- } | null | undefined;
1338
- _id: string;
1339
- } | null | undefined;
1340
- role: "ADMIN";
1341
- userId: string;
1342
- }[] | null | undefined;
1343
- code: string;
1344
- name: string;
1345
- _id: string;
1346
- isReseller: boolean;
1347
- } | null | undefined;
1348
- thumbnail?: string | null | undefined;
1349
- billingInfos?: {
1350
- _id?: string | null | undefined;
1351
- name: string;
1352
- address: {
1353
- coordinates?: number[] | null | undefined;
1354
- line2?: string | null | undefined;
1355
- state: string;
1356
- country: string;
1357
- line1: string;
1358
- city: string;
1359
- postcode: string;
1360
- };
1361
- email: string;
1362
- companyName: string;
1363
- contact: string;
1364
- }[] | null | undefined;
1365
- customerDisplayImages?: {
1366
- url: string;
1367
- restaurantIds: string[];
1368
- }[] | null | undefined;
1369
- name: string;
1370
- _id: string;
1371
- ownerId: string;
1372
- restaurantQuota: number;
1373
- warehouseQuota: number;
1374
- menuVersion: string;
1375
- } | null | undefined;
1376
- _id: string;
1377
- businessId: string;
1378
- profile: {
1379
- email?: string | null | undefined;
1380
- phoneNo?: string | null | undefined;
1381
- name: string;
1382
- address: {
1383
- coordinates?: number[] | null | undefined;
1384
- line2?: string | null | undefined;
1385
- state: string;
1386
- country: string;
1387
- line1: string;
1388
- city: string;
1389
- postcode: string;
1390
- };
1391
- regNo: string;
1392
- };
1393
- };
1394
- })[] | null | undefined;
1395
- _id: string;
1396
- name: string;
1397
- purchaseOrder: {
1398
- remark?: string | null | undefined;
1399
- ref?: string | null | undefined;
1400
- supplier?: {
1166
+ supplier: {
1401
1167
  phoneNumber?: string | null | undefined;
1402
1168
  email?: string | null | undefined;
1403
1169
  _rev?: string | null | undefined;
@@ -1433,10 +1199,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1433
1199
  postcode: string;
1434
1200
  country: string;
1435
1201
  };
1436
- } | undefined;
1437
- template?: string | null | undefined;
1438
- stockSnapshotId?: string | null | undefined;
1439
- effectiveAt?: string | null | undefined;
1202
+ };
1203
+ };
1204
+ } | undefined;
1205
+ show?: boolean | undefined;
1206
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1207
+ onSubmitted?: (() => void) | undefined;
1208
+ }, TransferTemplateDialogPropsWithEventBinding | {
1209
+ mode?: FormMode | undefined;
1210
+ modelValue?: {
1211
+ _rev?: string | null | undefined;
1212
+ locations?: {
1213
+ type: "restaurant" | "warehouse";
1214
+ name: string;
1215
+ acceptRequest: boolean;
1216
+ dbName: string;
1217
+ doc: {
1218
+ _id: string;
1219
+ businessId: string;
1220
+ profile: {
1221
+ code?: string | null | undefined;
1222
+ _id?: string | null | undefined;
1223
+ name?: string | undefined;
1224
+ address?: {
1225
+ coordinates?: number[] | null | undefined;
1226
+ line2?: string | null | undefined;
1227
+ state: string;
1228
+ country: string;
1229
+ line1: string;
1230
+ city: string;
1231
+ postcode: string;
1232
+ } | undefined;
1233
+ email?: string | undefined;
1234
+ regNo?: string | undefined;
1235
+ sstRegNo?: string | null | undefined;
1236
+ phoneNo?: string | undefined;
1237
+ legalName?: string | null | undefined;
1238
+ discovery?: boolean | null | undefined;
1239
+ coverPhoto?: string | null | undefined;
1240
+ thumbnailPhoto?: string | null | undefined;
1241
+ description?: string | null | undefined;
1242
+ photos?: string[] | null | undefined;
1243
+ operatingHours?: {
1244
+ 0: {
1245
+ hours: {
1246
+ end: string;
1247
+ start: string;
1248
+ }[];
1249
+ enable: boolean;
1250
+ };
1251
+ 2: {
1252
+ hours: {
1253
+ end: string;
1254
+ start: string;
1255
+ }[];
1256
+ enable: boolean;
1257
+ };
1258
+ 1: {
1259
+ hours: {
1260
+ end: string;
1261
+ start: string;
1262
+ }[];
1263
+ enable: boolean;
1264
+ };
1265
+ 3: {
1266
+ hours: {
1267
+ end: string;
1268
+ start: string;
1269
+ }[];
1270
+ enable: boolean;
1271
+ };
1272
+ 4: {
1273
+ hours: {
1274
+ end: string;
1275
+ start: string;
1276
+ }[];
1277
+ enable: boolean;
1278
+ };
1279
+ 5: {
1280
+ hours: {
1281
+ end: string;
1282
+ start: string;
1283
+ }[];
1284
+ enable: boolean;
1285
+ };
1286
+ 6: {
1287
+ hours: {
1288
+ end: string;
1289
+ start: string;
1290
+ }[];
1291
+ enable: boolean;
1292
+ };
1293
+ } | null | undefined;
1294
+ tags?: string[] | null | undefined;
1295
+ url?: string | null | undefined;
1296
+ };
1297
+ };
1298
+ }[] | null | undefined;
1299
+ _id: string;
1300
+ name: string;
1301
+ purchaseOrder: {
1302
+ remark?: string | null | undefined;
1303
+ ref?: string | null | undefined;
1440
1304
  items: {
1441
1305
  measurement?: {
1442
1306
  id: string;
@@ -1466,7 +1330,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1466
1330
  precision: number;
1467
1331
  };
1468
1332
  } | null | undefined;
1469
- type: "RECIPE" | "SKU";
1333
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1470
1334
  amount: {
1471
1335
  amount: number;
1472
1336
  precision: number;
@@ -1534,122 +1398,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1534
1398
  precision: number;
1535
1399
  };
1536
1400
  }[];
1537
- };
1538
- } | undefined;
1539
- show?: boolean | undefined;
1540
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1541
- onSubmitted?: (() => void) | undefined;
1542
- }>;
1543
- templateDetailsProps: Ref<{
1544
- template?: {
1545
- _rev?: string | null | undefined;
1546
- locations?: ({
1547
- doc?: any;
1548
- type: "restaurant";
1549
- name: string;
1550
- acceptRequest: boolean;
1551
- dbName: string;
1552
- } | {
1553
- type: "warehouse";
1554
- name: string;
1555
- acceptRequest: boolean;
1556
- dbName: string;
1557
- doc: {
1558
- pf_business?: {
1559
- internal?: boolean | null | undefined;
1560
- url?: string | null | undefined;
1561
- expiredAt?: string | null | undefined;
1562
- agentId?: string | null | undefined;
1563
- restaurantTagGroups?: {
1564
- name: string;
1565
- id: string;
1566
- tags: {
1567
- name: string;
1568
- id: string;
1569
- }[];
1570
- }[] | null | undefined;
1571
- pf_agent?: {
1572
- clickupId?: string | null | undefined;
1573
- members?: {
1574
- pf_user?: {
1575
- email?: string | null | undefined;
1576
- phoneNumber?: string | null | undefined;
1577
- birthday?: string | null | undefined;
1578
- gender?: "MALE" | "FEMALE" | null | undefined;
1579
- addresses?: {
1580
- name: string;
1581
- address: string;
1582
- coordinates: number[];
1583
- }[] | null | undefined;
1584
- photoURL?: string | null | undefined;
1585
- displayName?: string | null | undefined;
1586
- imported?: {
1587
- raw: Record<string, any>;
1588
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1589
- } | null | undefined;
1590
- _id: string;
1591
- } | null | undefined;
1592
- role: "ADMIN";
1593
- userId: string;
1594
- }[] | null | undefined;
1595
- code: string;
1596
- name: string;
1597
- _id: string;
1598
- isReseller: boolean;
1599
- } | null | undefined;
1600
- thumbnail?: string | null | undefined;
1601
- billingInfos?: {
1602
- _id?: string | null | undefined;
1603
- name: string;
1604
- address: {
1605
- coordinates?: number[] | null | undefined;
1606
- line2?: string | null | undefined;
1607
- state: string;
1608
- country: string;
1609
- line1: string;
1610
- city: string;
1611
- postcode: string;
1612
- };
1613
- email: string;
1614
- companyName: string;
1615
- contact: string;
1616
- }[] | null | undefined;
1617
- customerDisplayImages?: {
1618
- url: string;
1619
- restaurantIds: string[];
1620
- }[] | null | undefined;
1621
- name: string;
1622
- _id: string;
1623
- ownerId: string;
1624
- restaurantQuota: number;
1625
- warehouseQuota: number;
1626
- menuVersion: string;
1627
- } | null | undefined;
1628
- _id: string;
1629
- businessId: string;
1630
- profile: {
1631
- email?: string | null | undefined;
1632
- phoneNo?: string | null | undefined;
1633
- name: string;
1634
- address: {
1635
- coordinates?: number[] | null | undefined;
1636
- line2?: string | null | undefined;
1637
- state: string;
1638
- country: string;
1639
- line1: string;
1640
- city: string;
1641
- postcode: string;
1642
- };
1643
- regNo: string;
1644
- };
1645
- };
1646
- })[] | null | undefined;
1647
- _id: string;
1648
- name: string;
1649
- purchaseOrder: {
1650
- remark?: string | null | undefined;
1651
- ref?: string | null | undefined;
1652
- supplier?: {
1401
+ supplier: {
1653
1402
  phoneNumber?: string | null | undefined;
1654
1403
  email?: string | null | undefined;
1655
1404
  _rev?: string | null | undefined;
@@ -1685,10 +1434,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1685
1434
  postcode: string;
1686
1435
  country: string;
1687
1436
  };
1688
- } | undefined;
1689
- template?: string | null | undefined;
1690
- stockSnapshotId?: string | null | undefined;
1691
- effectiveAt?: string | null | undefined;
1437
+ };
1438
+ };
1439
+ } | undefined;
1440
+ show?: boolean | undefined;
1441
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1442
+ onSubmitted?: (() => void) | undefined;
1443
+ }>;
1444
+ templateDetailsProps: Ref<{
1445
+ template?: {
1446
+ _rev?: string | null | undefined;
1447
+ locations?: {
1448
+ type: "restaurant" | "warehouse";
1449
+ name: string;
1450
+ acceptRequest: boolean;
1451
+ dbName: string;
1452
+ doc: {
1453
+ _id: string;
1454
+ businessId: string;
1455
+ profile: {
1456
+ code?: string | null | undefined;
1457
+ _id?: string | null | undefined;
1458
+ name?: string | undefined;
1459
+ address?: {
1460
+ coordinates?: number[] | null | undefined;
1461
+ line2?: string | null | undefined;
1462
+ state: string;
1463
+ country: string;
1464
+ line1: string;
1465
+ city: string;
1466
+ postcode: string;
1467
+ } | undefined;
1468
+ email?: string | undefined;
1469
+ regNo?: string | undefined;
1470
+ sstRegNo?: string | null | undefined;
1471
+ phoneNo?: string | undefined;
1472
+ legalName?: string | null | undefined;
1473
+ discovery?: boolean | null | undefined;
1474
+ coverPhoto?: string | null | undefined;
1475
+ thumbnailPhoto?: string | null | undefined;
1476
+ description?: string | null | undefined;
1477
+ photos?: string[] | null | undefined;
1478
+ operatingHours?: {
1479
+ 0: {
1480
+ hours: {
1481
+ end: string;
1482
+ start: string;
1483
+ }[];
1484
+ enable: boolean;
1485
+ };
1486
+ 2: {
1487
+ hours: {
1488
+ end: string;
1489
+ start: string;
1490
+ }[];
1491
+ enable: boolean;
1492
+ };
1493
+ 1: {
1494
+ hours: {
1495
+ end: string;
1496
+ start: string;
1497
+ }[];
1498
+ enable: boolean;
1499
+ };
1500
+ 3: {
1501
+ hours: {
1502
+ end: string;
1503
+ start: string;
1504
+ }[];
1505
+ enable: boolean;
1506
+ };
1507
+ 4: {
1508
+ hours: {
1509
+ end: string;
1510
+ start: string;
1511
+ }[];
1512
+ enable: boolean;
1513
+ };
1514
+ 5: {
1515
+ hours: {
1516
+ end: string;
1517
+ start: string;
1518
+ }[];
1519
+ enable: boolean;
1520
+ };
1521
+ 6: {
1522
+ hours: {
1523
+ end: string;
1524
+ start: string;
1525
+ }[];
1526
+ enable: boolean;
1527
+ };
1528
+ } | null | undefined;
1529
+ tags?: string[] | null | undefined;
1530
+ url?: string | null | undefined;
1531
+ };
1532
+ };
1533
+ }[] | null | undefined;
1534
+ _id: string;
1535
+ name: string;
1536
+ purchaseOrder: {
1537
+ remark?: string | null | undefined;
1538
+ ref?: string | null | undefined;
1692
1539
  items: {
1693
1540
  measurement?: {
1694
1541
  id: string;
@@ -1718,7 +1565,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1718
1565
  precision: number;
1719
1566
  };
1720
1567
  } | null | undefined;
1721
- type: "RECIPE" | "SKU";
1568
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1722
1569
  amount: {
1723
1570
  amount: number;
1724
1571
  precision: number;
@@ -1786,122 +1633,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1786
1633
  precision: number;
1787
1634
  };
1788
1635
  }[];
1789
- };
1790
- } | undefined;
1791
- show?: boolean | undefined;
1792
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1793
- 'onAction:use'?: ((locationId: string) => void) | undefined;
1794
- 'onAction:edit'?: (() => void) | undefined;
1795
- }, TransferTemplateDetailsPropsWithEventBinding | {
1796
- template?: {
1797
- _rev?: string | null | undefined;
1798
- locations?: ({
1799
- doc?: any;
1800
- type: "restaurant";
1801
- name: string;
1802
- acceptRequest: boolean;
1803
- dbName: string;
1804
- } | {
1805
- type: "warehouse";
1806
- name: string;
1807
- acceptRequest: boolean;
1808
- dbName: string;
1809
- doc: {
1810
- pf_business?: {
1811
- internal?: boolean | null | undefined;
1812
- url?: string | null | undefined;
1813
- expiredAt?: string | null | undefined;
1814
- agentId?: string | null | undefined;
1815
- restaurantTagGroups?: {
1816
- name: string;
1817
- id: string;
1818
- tags: {
1819
- name: string;
1820
- id: string;
1821
- }[];
1822
- }[] | null | undefined;
1823
- pf_agent?: {
1824
- clickupId?: string | null | undefined;
1825
- members?: {
1826
- pf_user?: {
1827
- email?: string | null | undefined;
1828
- phoneNumber?: string | null | undefined;
1829
- birthday?: string | null | undefined;
1830
- gender?: "MALE" | "FEMALE" | null | undefined;
1831
- addresses?: {
1832
- name: string;
1833
- address: string;
1834
- coordinates: number[];
1835
- }[] | null | undefined;
1836
- photoURL?: string | null | undefined;
1837
- displayName?: string | null | undefined;
1838
- imported?: {
1839
- raw: Record<string, any>;
1840
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1841
- } | null | undefined;
1842
- _id: string;
1843
- } | null | undefined;
1844
- role: "ADMIN";
1845
- userId: string;
1846
- }[] | null | undefined;
1847
- code: string;
1848
- name: string;
1849
- _id: string;
1850
- isReseller: boolean;
1851
- } | null | undefined;
1852
- thumbnail?: string | null | undefined;
1853
- billingInfos?: {
1854
- _id?: string | null | undefined;
1855
- name: string;
1856
- address: {
1857
- coordinates?: number[] | null | undefined;
1858
- line2?: string | null | undefined;
1859
- state: string;
1860
- country: string;
1861
- line1: string;
1862
- city: string;
1863
- postcode: string;
1864
- };
1865
- email: string;
1866
- companyName: string;
1867
- contact: string;
1868
- }[] | null | undefined;
1869
- customerDisplayImages?: {
1870
- url: string;
1871
- restaurantIds: string[];
1872
- }[] | null | undefined;
1873
- name: string;
1874
- _id: string;
1875
- ownerId: string;
1876
- restaurantQuota: number;
1877
- warehouseQuota: number;
1878
- menuVersion: string;
1879
- } | null | undefined;
1880
- _id: string;
1881
- businessId: string;
1882
- profile: {
1883
- email?: string | null | undefined;
1884
- phoneNo?: string | null | undefined;
1885
- name: string;
1886
- address: {
1887
- coordinates?: number[] | null | undefined;
1888
- line2?: string | null | undefined;
1889
- state: string;
1890
- country: string;
1891
- line1: string;
1892
- city: string;
1893
- postcode: string;
1894
- };
1895
- regNo: string;
1896
- };
1897
- };
1898
- })[] | null | undefined;
1899
- _id: string;
1900
- name: string;
1901
- purchaseOrder: {
1902
- remark?: string | null | undefined;
1903
- ref?: string | null | undefined;
1904
- supplier?: {
1636
+ supplier: {
1905
1637
  phoneNumber?: string | null | undefined;
1906
1638
  email?: string | null | undefined;
1907
1639
  _rev?: string | null | undefined;
@@ -1937,10 +1669,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1937
1669
  postcode: string;
1938
1670
  country: string;
1939
1671
  };
1940
- } | undefined;
1941
- template?: string | null | undefined;
1942
- stockSnapshotId?: string | null | undefined;
1943
- effectiveAt?: string | null | undefined;
1672
+ };
1673
+ };
1674
+ } | undefined;
1675
+ show?: boolean | undefined;
1676
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1677
+ 'onAction:use'?: ((locationId: string) => void) | undefined;
1678
+ 'onAction:edit'?: (() => void) | undefined;
1679
+ }, TransferTemplateDetailsPropsWithEventBinding | {
1680
+ template?: {
1681
+ _rev?: string | null | undefined;
1682
+ locations?: {
1683
+ type: "restaurant" | "warehouse";
1684
+ name: string;
1685
+ acceptRequest: boolean;
1686
+ dbName: string;
1687
+ doc: {
1688
+ _id: string;
1689
+ businessId: string;
1690
+ profile: {
1691
+ code?: string | null | undefined;
1692
+ _id?: string | null | undefined;
1693
+ name?: string | undefined;
1694
+ address?: {
1695
+ coordinates?: number[] | null | undefined;
1696
+ line2?: string | null | undefined;
1697
+ state: string;
1698
+ country: string;
1699
+ line1: string;
1700
+ city: string;
1701
+ postcode: string;
1702
+ } | undefined;
1703
+ email?: string | undefined;
1704
+ regNo?: string | undefined;
1705
+ sstRegNo?: string | null | undefined;
1706
+ phoneNo?: string | undefined;
1707
+ legalName?: string | null | undefined;
1708
+ discovery?: boolean | null | undefined;
1709
+ coverPhoto?: string | null | undefined;
1710
+ thumbnailPhoto?: string | null | undefined;
1711
+ description?: string | null | undefined;
1712
+ photos?: string[] | null | undefined;
1713
+ operatingHours?: {
1714
+ 0: {
1715
+ hours: {
1716
+ end: string;
1717
+ start: string;
1718
+ }[];
1719
+ enable: boolean;
1720
+ };
1721
+ 2: {
1722
+ hours: {
1723
+ end: string;
1724
+ start: string;
1725
+ }[];
1726
+ enable: boolean;
1727
+ };
1728
+ 1: {
1729
+ hours: {
1730
+ end: string;
1731
+ start: string;
1732
+ }[];
1733
+ enable: boolean;
1734
+ };
1735
+ 3: {
1736
+ hours: {
1737
+ end: string;
1738
+ start: string;
1739
+ }[];
1740
+ enable: boolean;
1741
+ };
1742
+ 4: {
1743
+ hours: {
1744
+ end: string;
1745
+ start: string;
1746
+ }[];
1747
+ enable: boolean;
1748
+ };
1749
+ 5: {
1750
+ hours: {
1751
+ end: string;
1752
+ start: string;
1753
+ }[];
1754
+ enable: boolean;
1755
+ };
1756
+ 6: {
1757
+ hours: {
1758
+ end: string;
1759
+ start: string;
1760
+ }[];
1761
+ enable: boolean;
1762
+ };
1763
+ } | null | undefined;
1764
+ tags?: string[] | null | undefined;
1765
+ url?: string | null | undefined;
1766
+ };
1767
+ };
1768
+ }[] | null | undefined;
1769
+ _id: string;
1770
+ name: string;
1771
+ purchaseOrder: {
1772
+ remark?: string | null | undefined;
1773
+ ref?: string | null | undefined;
1944
1774
  items: {
1945
1775
  measurement?: {
1946
1776
  id: string;
@@ -1970,7 +1800,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1970
1800
  precision: number;
1971
1801
  };
1972
1802
  } | null | undefined;
1973
- type: "RECIPE" | "SKU";
1803
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1974
1804
  amount: {
1975
1805
  amount: number;
1976
1806
  precision: number;
@@ -2038,6 +1868,43 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2038
1868
  precision: number;
2039
1869
  };
2040
1870
  }[];
1871
+ supplier: {
1872
+ phoneNumber?: string | null | undefined;
1873
+ email?: string | null | undefined;
1874
+ _rev?: string | null | undefined;
1875
+ internal?: "restaurant" | "warehouse" | null | undefined;
1876
+ contactName?: string | null | undefined;
1877
+ registrationNumber?: string | undefined;
1878
+ supplyItems?: {
1879
+ defaultCost: {
1880
+ measurement?: {
1881
+ id: string;
1882
+ name: string;
1883
+ abbrev: string;
1884
+ conversion: {
1885
+ amount: number;
1886
+ precision: number;
1887
+ };
1888
+ } | null | undefined;
1889
+ costPerUnit: {
1890
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1891
+ amount: number;
1892
+ precision: number;
1893
+ };
1894
+ };
1895
+ skuId: string;
1896
+ }[] | null | undefined;
1897
+ _id: string;
1898
+ name: string;
1899
+ address: {
1900
+ line2?: string | null | undefined;
1901
+ line1: string;
1902
+ state: string;
1903
+ city: string;
1904
+ postcode: string;
1905
+ country: string;
1906
+ };
1907
+ };
2041
1908
  };
2042
1909
  } | undefined;
2043
1910
  show?: boolean | undefined;
@@ -2045,106 +1912,31 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2045
1912
  'onAction:use'?: ((locationId: string) => void) | undefined;
2046
1913
  'onAction:edit'?: (() => void) | undefined;
2047
1914
  }>;
2048
- transferFormDialogProps: Ref<import("../../receive-request/components/transfer-dialog/TransferDialogProps").TransferDialogProps | undefined, import("../../receive-request/components/transfer-dialog/TransferDialogProps").TransferDialogProps | undefined>;
2049
1915
  }, never>, Pick<{
2050
1916
  createTemplate: () => void;
2051
1917
  viewTemplate: (template: POTemplate) => void;
2052
1918
  updateTemplate: (template: POTemplate) => void;
2053
1919
  deleteTemplate: (template: POTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
2054
- useTemplate: (template: POTemplate) => void;
1920
+ getTemplateId: () => Promise<string | undefined>;
1921
+ importTemplates: () => void;
1922
+ exportTemplates: () => void;
2055
1923
  templateDialogProps: Ref<{
2056
1924
  mode?: FormMode | undefined;
2057
1925
  modelValue?: {
2058
1926
  _rev?: string | null | undefined;
2059
- locations?: ({
2060
- doc?: any;
2061
- type: "restaurant";
2062
- name: string;
2063
- acceptRequest: boolean;
2064
- dbName: string;
2065
- } | {
2066
- type: "warehouse";
1927
+ locations?: {
1928
+ type: "restaurant" | "warehouse";
2067
1929
  name: string;
2068
1930
  acceptRequest: boolean;
2069
1931
  dbName: string;
2070
1932
  doc: {
2071
- pf_business?: {
2072
- internal?: boolean | null | undefined;
2073
- url?: string | null | undefined;
2074
- expiredAt?: string | null | undefined;
2075
- agentId?: string | null | undefined;
2076
- restaurantTagGroups?: {
2077
- name: string;
2078
- id: string;
2079
- tags: {
2080
- name: string;
2081
- id: string;
2082
- }[];
2083
- }[] | null | undefined;
2084
- pf_agent?: {
2085
- clickupId?: string | null | undefined;
2086
- members?: {
2087
- pf_user?: {
2088
- email?: string | null | undefined;
2089
- phoneNumber?: string | null | undefined;
2090
- birthday?: string | null | undefined;
2091
- gender?: "MALE" | "FEMALE" | null | undefined;
2092
- addresses?: {
2093
- name: string;
2094
- address: string;
2095
- coordinates: number[];
2096
- }[] | null | undefined;
2097
- photoURL?: string | null | undefined;
2098
- displayName?: string | null | undefined;
2099
- imported?: {
2100
- raw: Record<string, any>;
2101
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2102
- } | null | undefined;
2103
- _id: string;
2104
- } | null | undefined;
2105
- role: "ADMIN";
2106
- userId: string;
2107
- }[] | null | undefined;
2108
- code: string;
2109
- name: string;
2110
- _id: string;
2111
- isReseller: boolean;
2112
- } | null | undefined;
2113
- thumbnail?: string | null | undefined;
2114
- billingInfos?: {
2115
- _id?: string | null | undefined;
2116
- name: string;
2117
- address: {
2118
- coordinates?: number[] | null | undefined;
2119
- line2?: string | null | undefined;
2120
- state: string;
2121
- country: string;
2122
- line1: string;
2123
- city: string;
2124
- postcode: string;
2125
- };
2126
- email: string;
2127
- companyName: string;
2128
- contact: string;
2129
- }[] | null | undefined;
2130
- customerDisplayImages?: {
2131
- url: string;
2132
- restaurantIds: string[];
2133
- }[] | null | undefined;
2134
- name: string;
2135
- _id: string;
2136
- ownerId: string;
2137
- restaurantQuota: number;
2138
- warehouseQuota: number;
2139
- menuVersion: string;
2140
- } | null | undefined;
2141
1933
  _id: string;
2142
1934
  businessId: string;
2143
1935
  profile: {
2144
- email?: string | null | undefined;
2145
- phoneNo?: string | null | undefined;
2146
- name: string;
2147
- address: {
1936
+ code?: string | null | undefined;
1937
+ _id?: string | null | undefined;
1938
+ name?: string | undefined;
1939
+ address?: {
2148
1940
  coordinates?: number[] | null | undefined;
2149
1941
  line2?: string | null | undefined;
2150
1942
  state: string;
@@ -2152,56 +1944,78 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2152
1944
  line1: string;
2153
1945
  city: string;
2154
1946
  postcode: string;
2155
- };
2156
- regNo: string;
1947
+ } | undefined;
1948
+ email?: string | undefined;
1949
+ regNo?: string | undefined;
1950
+ sstRegNo?: string | null | undefined;
1951
+ phoneNo?: string | undefined;
1952
+ legalName?: string | null | undefined;
1953
+ discovery?: boolean | null | undefined;
1954
+ coverPhoto?: string | null | undefined;
1955
+ thumbnailPhoto?: string | null | undefined;
1956
+ description?: string | null | undefined;
1957
+ photos?: string[] | null | undefined;
1958
+ operatingHours?: {
1959
+ 0: {
1960
+ hours: {
1961
+ end: string;
1962
+ start: string;
1963
+ }[];
1964
+ enable: boolean;
1965
+ };
1966
+ 2: {
1967
+ hours: {
1968
+ end: string;
1969
+ start: string;
1970
+ }[];
1971
+ enable: boolean;
1972
+ };
1973
+ 1: {
1974
+ hours: {
1975
+ end: string;
1976
+ start: string;
1977
+ }[];
1978
+ enable: boolean;
1979
+ };
1980
+ 3: {
1981
+ hours: {
1982
+ end: string;
1983
+ start: string;
1984
+ }[];
1985
+ enable: boolean;
1986
+ };
1987
+ 4: {
1988
+ hours: {
1989
+ end: string;
1990
+ start: string;
1991
+ }[];
1992
+ enable: boolean;
1993
+ };
1994
+ 5: {
1995
+ hours: {
1996
+ end: string;
1997
+ start: string;
1998
+ }[];
1999
+ enable: boolean;
2000
+ };
2001
+ 6: {
2002
+ hours: {
2003
+ end: string;
2004
+ start: string;
2005
+ }[];
2006
+ enable: boolean;
2007
+ };
2008
+ } | null | undefined;
2009
+ tags?: string[] | null | undefined;
2010
+ url?: string | null | undefined;
2157
2011
  };
2158
2012
  };
2159
- })[] | null | undefined;
2013
+ }[] | null | undefined;
2160
2014
  _id: string;
2161
2015
  name: string;
2162
2016
  purchaseOrder: {
2163
2017
  remark?: string | null | undefined;
2164
2018
  ref?: string | null | undefined;
2165
- supplier?: {
2166
- phoneNumber?: string | null | undefined;
2167
- email?: string | null | undefined;
2168
- _rev?: string | null | undefined;
2169
- internal?: "restaurant" | "warehouse" | null | undefined;
2170
- contactName?: string | null | undefined;
2171
- registrationNumber?: string | undefined;
2172
- supplyItems?: {
2173
- defaultCost: {
2174
- measurement?: {
2175
- id: string;
2176
- name: string;
2177
- abbrev: string;
2178
- conversion: {
2179
- amount: number;
2180
- precision: number;
2181
- };
2182
- } | null | undefined;
2183
- costPerUnit: {
2184
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2185
- amount: number;
2186
- precision: number;
2187
- };
2188
- };
2189
- skuId: string;
2190
- }[] | null | undefined;
2191
- _id: string;
2192
- name: string;
2193
- address: {
2194
- line2?: string | null | undefined;
2195
- line1: string;
2196
- state: string;
2197
- city: string;
2198
- postcode: string;
2199
- country: string;
2200
- };
2201
- } | undefined;
2202
- template?: string | null | undefined;
2203
- stockSnapshotId?: string | null | undefined;
2204
- effectiveAt?: string | null | undefined;
2205
2019
  items: {
2206
2020
  measurement?: {
2207
2021
  id: string;
@@ -2231,7 +2045,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2231
2045
  precision: number;
2232
2046
  };
2233
2047
  } | null | undefined;
2234
- type: "RECIPE" | "SKU";
2048
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2235
2049
  amount: {
2236
2050
  amount: number;
2237
2051
  precision: number;
@@ -2297,124 +2111,9 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2297
2111
  maximumQuantity: {
2298
2112
  amount: number;
2299
2113
  precision: number;
2300
- };
2301
- }[];
2302
- };
2303
- } | undefined;
2304
- show?: boolean | undefined;
2305
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
2306
- onSubmitted?: (() => void) | undefined;
2307
- }, TransferTemplateDialogPropsWithEventBinding | {
2308
- mode?: FormMode | undefined;
2309
- modelValue?: {
2310
- _rev?: string | null | undefined;
2311
- locations?: ({
2312
- doc?: any;
2313
- type: "restaurant";
2314
- name: string;
2315
- acceptRequest: boolean;
2316
- dbName: string;
2317
- } | {
2318
- type: "warehouse";
2319
- name: string;
2320
- acceptRequest: boolean;
2321
- dbName: string;
2322
- doc: {
2323
- pf_business?: {
2324
- internal?: boolean | null | undefined;
2325
- url?: string | null | undefined;
2326
- expiredAt?: string | null | undefined;
2327
- agentId?: string | null | undefined;
2328
- restaurantTagGroups?: {
2329
- name: string;
2330
- id: string;
2331
- tags: {
2332
- name: string;
2333
- id: string;
2334
- }[];
2335
- }[] | null | undefined;
2336
- pf_agent?: {
2337
- clickupId?: string | null | undefined;
2338
- members?: {
2339
- pf_user?: {
2340
- email?: string | null | undefined;
2341
- phoneNumber?: string | null | undefined;
2342
- birthday?: string | null | undefined;
2343
- gender?: "MALE" | "FEMALE" | null | undefined;
2344
- addresses?: {
2345
- name: string;
2346
- address: string;
2347
- coordinates: number[];
2348
- }[] | null | undefined;
2349
- photoURL?: string | null | undefined;
2350
- displayName?: string | null | undefined;
2351
- imported?: {
2352
- raw: Record<string, any>;
2353
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2354
- } | null | undefined;
2355
- _id: string;
2356
- } | null | undefined;
2357
- role: "ADMIN";
2358
- userId: string;
2359
- }[] | null | undefined;
2360
- code: string;
2361
- name: string;
2362
- _id: string;
2363
- isReseller: boolean;
2364
- } | null | undefined;
2365
- thumbnail?: string | null | undefined;
2366
- billingInfos?: {
2367
- _id?: string | null | undefined;
2368
- name: string;
2369
- address: {
2370
- coordinates?: number[] | null | undefined;
2371
- line2?: string | null | undefined;
2372
- state: string;
2373
- country: string;
2374
- line1: string;
2375
- city: string;
2376
- postcode: string;
2377
- };
2378
- email: string;
2379
- companyName: string;
2380
- contact: string;
2381
- }[] | null | undefined;
2382
- customerDisplayImages?: {
2383
- url: string;
2384
- restaurantIds: string[];
2385
- }[] | null | undefined;
2386
- name: string;
2387
- _id: string;
2388
- ownerId: string;
2389
- restaurantQuota: number;
2390
- warehouseQuota: number;
2391
- menuVersion: string;
2392
- } | null | undefined;
2393
- _id: string;
2394
- businessId: string;
2395
- profile: {
2396
- email?: string | null | undefined;
2397
- phoneNo?: string | null | undefined;
2398
- name: string;
2399
- address: {
2400
- coordinates?: number[] | null | undefined;
2401
- line2?: string | null | undefined;
2402
- state: string;
2403
- country: string;
2404
- line1: string;
2405
- city: string;
2406
- postcode: string;
2407
- };
2408
- regNo: string;
2409
- };
2410
- };
2411
- })[] | null | undefined;
2412
- _id: string;
2413
- name: string;
2414
- purchaseOrder: {
2415
- remark?: string | null | undefined;
2416
- ref?: string | null | undefined;
2417
- supplier?: {
2114
+ };
2115
+ }[];
2116
+ supplier: {
2418
2117
  phoneNumber?: string | null | undefined;
2419
2118
  email?: string | null | undefined;
2420
2119
  _rev?: string | null | undefined;
@@ -2450,10 +2149,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2450
2149
  postcode: string;
2451
2150
  country: string;
2452
2151
  };
2453
- } | undefined;
2454
- template?: string | null | undefined;
2455
- stockSnapshotId?: string | null | undefined;
2456
- effectiveAt?: string | null | undefined;
2152
+ };
2153
+ };
2154
+ } | undefined;
2155
+ show?: boolean | undefined;
2156
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
2157
+ onSubmitted?: (() => void) | undefined;
2158
+ }, TransferTemplateDialogPropsWithEventBinding | {
2159
+ mode?: FormMode | undefined;
2160
+ modelValue?: {
2161
+ _rev?: string | null | undefined;
2162
+ locations?: {
2163
+ type: "restaurant" | "warehouse";
2164
+ name: string;
2165
+ acceptRequest: boolean;
2166
+ dbName: string;
2167
+ doc: {
2168
+ _id: string;
2169
+ businessId: string;
2170
+ profile: {
2171
+ code?: string | null | undefined;
2172
+ _id?: string | null | undefined;
2173
+ name?: string | undefined;
2174
+ address?: {
2175
+ coordinates?: number[] | null | undefined;
2176
+ line2?: string | null | undefined;
2177
+ state: string;
2178
+ country: string;
2179
+ line1: string;
2180
+ city: string;
2181
+ postcode: string;
2182
+ } | undefined;
2183
+ email?: string | undefined;
2184
+ regNo?: string | undefined;
2185
+ sstRegNo?: string | null | undefined;
2186
+ phoneNo?: string | undefined;
2187
+ legalName?: string | null | undefined;
2188
+ discovery?: boolean | null | undefined;
2189
+ coverPhoto?: string | null | undefined;
2190
+ thumbnailPhoto?: string | null | undefined;
2191
+ description?: string | null | undefined;
2192
+ photos?: string[] | null | undefined;
2193
+ operatingHours?: {
2194
+ 0: {
2195
+ hours: {
2196
+ end: string;
2197
+ start: string;
2198
+ }[];
2199
+ enable: boolean;
2200
+ };
2201
+ 2: {
2202
+ hours: {
2203
+ end: string;
2204
+ start: string;
2205
+ }[];
2206
+ enable: boolean;
2207
+ };
2208
+ 1: {
2209
+ hours: {
2210
+ end: string;
2211
+ start: string;
2212
+ }[];
2213
+ enable: boolean;
2214
+ };
2215
+ 3: {
2216
+ hours: {
2217
+ end: string;
2218
+ start: string;
2219
+ }[];
2220
+ enable: boolean;
2221
+ };
2222
+ 4: {
2223
+ hours: {
2224
+ end: string;
2225
+ start: string;
2226
+ }[];
2227
+ enable: boolean;
2228
+ };
2229
+ 5: {
2230
+ hours: {
2231
+ end: string;
2232
+ start: string;
2233
+ }[];
2234
+ enable: boolean;
2235
+ };
2236
+ 6: {
2237
+ hours: {
2238
+ end: string;
2239
+ start: string;
2240
+ }[];
2241
+ enable: boolean;
2242
+ };
2243
+ } | null | undefined;
2244
+ tags?: string[] | null | undefined;
2245
+ url?: string | null | undefined;
2246
+ };
2247
+ };
2248
+ }[] | null | undefined;
2249
+ _id: string;
2250
+ name: string;
2251
+ purchaseOrder: {
2252
+ remark?: string | null | undefined;
2253
+ ref?: string | null | undefined;
2457
2254
  items: {
2458
2255
  measurement?: {
2459
2256
  id: string;
@@ -2483,7 +2280,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2483
2280
  precision: number;
2484
2281
  };
2485
2282
  } | null | undefined;
2486
- type: "RECIPE" | "SKU";
2283
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2487
2284
  amount: {
2488
2285
  amount: number;
2489
2286
  precision: number;
@@ -2551,122 +2348,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2551
2348
  precision: number;
2552
2349
  };
2553
2350
  }[];
2554
- };
2555
- } | undefined;
2556
- show?: boolean | undefined;
2557
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
2558
- onSubmitted?: (() => void) | undefined;
2559
- }>;
2560
- templateDetailsProps: Ref<{
2561
- template?: {
2562
- _rev?: string | null | undefined;
2563
- locations?: ({
2564
- doc?: any;
2565
- type: "restaurant";
2566
- name: string;
2567
- acceptRequest: boolean;
2568
- dbName: string;
2569
- } | {
2570
- type: "warehouse";
2571
- name: string;
2572
- acceptRequest: boolean;
2573
- dbName: string;
2574
- doc: {
2575
- pf_business?: {
2576
- internal?: boolean | null | undefined;
2577
- url?: string | null | undefined;
2578
- expiredAt?: string | null | undefined;
2579
- agentId?: string | null | undefined;
2580
- restaurantTagGroups?: {
2581
- name: string;
2582
- id: string;
2583
- tags: {
2584
- name: string;
2585
- id: string;
2586
- }[];
2587
- }[] | null | undefined;
2588
- pf_agent?: {
2589
- clickupId?: string | null | undefined;
2590
- members?: {
2591
- pf_user?: {
2592
- email?: string | null | undefined;
2593
- phoneNumber?: string | null | undefined;
2594
- birthday?: string | null | undefined;
2595
- gender?: "MALE" | "FEMALE" | null | undefined;
2596
- addresses?: {
2597
- name: string;
2598
- address: string;
2599
- coordinates: number[];
2600
- }[] | null | undefined;
2601
- photoURL?: string | null | undefined;
2602
- displayName?: string | null | undefined;
2603
- imported?: {
2604
- raw: Record<string, any>;
2605
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2606
- } | null | undefined;
2607
- _id: string;
2608
- } | null | undefined;
2609
- role: "ADMIN";
2610
- userId: string;
2611
- }[] | null | undefined;
2612
- code: string;
2613
- name: string;
2614
- _id: string;
2615
- isReseller: boolean;
2616
- } | null | undefined;
2617
- thumbnail?: string | null | undefined;
2618
- billingInfos?: {
2619
- _id?: string | null | undefined;
2620
- name: string;
2621
- address: {
2622
- coordinates?: number[] | null | undefined;
2623
- line2?: string | null | undefined;
2624
- state: string;
2625
- country: string;
2626
- line1: string;
2627
- city: string;
2628
- postcode: string;
2629
- };
2630
- email: string;
2631
- companyName: string;
2632
- contact: string;
2633
- }[] | null | undefined;
2634
- customerDisplayImages?: {
2635
- url: string;
2636
- restaurantIds: string[];
2637
- }[] | null | undefined;
2638
- name: string;
2639
- _id: string;
2640
- ownerId: string;
2641
- restaurantQuota: number;
2642
- warehouseQuota: number;
2643
- menuVersion: string;
2644
- } | null | undefined;
2645
- _id: string;
2646
- businessId: string;
2647
- profile: {
2648
- email?: string | null | undefined;
2649
- phoneNo?: string | null | undefined;
2650
- name: string;
2651
- address: {
2652
- coordinates?: number[] | null | undefined;
2653
- line2?: string | null | undefined;
2654
- state: string;
2655
- country: string;
2656
- line1: string;
2657
- city: string;
2658
- postcode: string;
2659
- };
2660
- regNo: string;
2661
- };
2662
- };
2663
- })[] | null | undefined;
2664
- _id: string;
2665
- name: string;
2666
- purchaseOrder: {
2667
- remark?: string | null | undefined;
2668
- ref?: string | null | undefined;
2669
- supplier?: {
2351
+ supplier: {
2670
2352
  phoneNumber?: string | null | undefined;
2671
2353
  email?: string | null | undefined;
2672
2354
  _rev?: string | null | undefined;
@@ -2702,10 +2384,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2702
2384
  postcode: string;
2703
2385
  country: string;
2704
2386
  };
2705
- } | undefined;
2706
- template?: string | null | undefined;
2707
- stockSnapshotId?: string | null | undefined;
2708
- effectiveAt?: string | null | undefined;
2387
+ };
2388
+ };
2389
+ } | undefined;
2390
+ show?: boolean | undefined;
2391
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
2392
+ onSubmitted?: (() => void) | undefined;
2393
+ }>;
2394
+ templateDetailsProps: Ref<{
2395
+ template?: {
2396
+ _rev?: string | null | undefined;
2397
+ locations?: {
2398
+ type: "restaurant" | "warehouse";
2399
+ name: string;
2400
+ acceptRequest: boolean;
2401
+ dbName: string;
2402
+ doc: {
2403
+ _id: string;
2404
+ businessId: string;
2405
+ profile: {
2406
+ code?: string | null | undefined;
2407
+ _id?: string | null | undefined;
2408
+ name?: string | undefined;
2409
+ address?: {
2410
+ coordinates?: number[] | null | undefined;
2411
+ line2?: string | null | undefined;
2412
+ state: string;
2413
+ country: string;
2414
+ line1: string;
2415
+ city: string;
2416
+ postcode: string;
2417
+ } | undefined;
2418
+ email?: string | undefined;
2419
+ regNo?: string | undefined;
2420
+ sstRegNo?: string | null | undefined;
2421
+ phoneNo?: string | undefined;
2422
+ legalName?: string | null | undefined;
2423
+ discovery?: boolean | null | undefined;
2424
+ coverPhoto?: string | null | undefined;
2425
+ thumbnailPhoto?: string | null | undefined;
2426
+ description?: string | null | undefined;
2427
+ photos?: string[] | null | undefined;
2428
+ operatingHours?: {
2429
+ 0: {
2430
+ hours: {
2431
+ end: string;
2432
+ start: string;
2433
+ }[];
2434
+ enable: boolean;
2435
+ };
2436
+ 2: {
2437
+ hours: {
2438
+ end: string;
2439
+ start: string;
2440
+ }[];
2441
+ enable: boolean;
2442
+ };
2443
+ 1: {
2444
+ hours: {
2445
+ end: string;
2446
+ start: string;
2447
+ }[];
2448
+ enable: boolean;
2449
+ };
2450
+ 3: {
2451
+ hours: {
2452
+ end: string;
2453
+ start: string;
2454
+ }[];
2455
+ enable: boolean;
2456
+ };
2457
+ 4: {
2458
+ hours: {
2459
+ end: string;
2460
+ start: string;
2461
+ }[];
2462
+ enable: boolean;
2463
+ };
2464
+ 5: {
2465
+ hours: {
2466
+ end: string;
2467
+ start: string;
2468
+ }[];
2469
+ enable: boolean;
2470
+ };
2471
+ 6: {
2472
+ hours: {
2473
+ end: string;
2474
+ start: string;
2475
+ }[];
2476
+ enable: boolean;
2477
+ };
2478
+ } | null | undefined;
2479
+ tags?: string[] | null | undefined;
2480
+ url?: string | null | undefined;
2481
+ };
2482
+ };
2483
+ }[] | null | undefined;
2484
+ _id: string;
2485
+ name: string;
2486
+ purchaseOrder: {
2487
+ remark?: string | null | undefined;
2488
+ ref?: string | null | undefined;
2709
2489
  items: {
2710
2490
  measurement?: {
2711
2491
  id: string;
@@ -2735,7 +2515,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2735
2515
  precision: number;
2736
2516
  };
2737
2517
  } | null | undefined;
2738
- type: "RECIPE" | "SKU";
2518
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2739
2519
  amount: {
2740
2520
  amount: number;
2741
2521
  precision: number;
@@ -2803,122 +2583,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2803
2583
  precision: number;
2804
2584
  };
2805
2585
  }[];
2806
- };
2807
- } | undefined;
2808
- show?: boolean | undefined;
2809
- 'onUpdate:show'?: ((show: boolean) => void) | undefined;
2810
- 'onAction:use'?: ((locationId: string) => void) | undefined;
2811
- 'onAction:edit'?: (() => void) | undefined;
2812
- }, TransferTemplateDetailsPropsWithEventBinding | {
2813
- template?: {
2814
- _rev?: string | null | undefined;
2815
- locations?: ({
2816
- doc?: any;
2817
- type: "restaurant";
2818
- name: string;
2819
- acceptRequest: boolean;
2820
- dbName: string;
2821
- } | {
2822
- type: "warehouse";
2823
- name: string;
2824
- acceptRequest: boolean;
2825
- dbName: string;
2826
- doc: {
2827
- pf_business?: {
2828
- internal?: boolean | null | undefined;
2829
- url?: string | null | undefined;
2830
- expiredAt?: string | null | undefined;
2831
- agentId?: string | null | undefined;
2832
- restaurantTagGroups?: {
2833
- name: string;
2834
- id: string;
2835
- tags: {
2836
- name: string;
2837
- id: string;
2838
- }[];
2839
- }[] | null | undefined;
2840
- pf_agent?: {
2841
- clickupId?: string | null | undefined;
2842
- members?: {
2843
- pf_user?: {
2844
- email?: string | null | undefined;
2845
- phoneNumber?: string | null | undefined;
2846
- birthday?: string | null | undefined;
2847
- gender?: "MALE" | "FEMALE" | null | undefined;
2848
- addresses?: {
2849
- name: string;
2850
- address: string;
2851
- coordinates: number[];
2852
- }[] | null | undefined;
2853
- photoURL?: string | null | undefined;
2854
- displayName?: string | null | undefined;
2855
- imported?: {
2856
- raw: Record<string, any>;
2857
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2858
- } | null | undefined;
2859
- _id: string;
2860
- } | null | undefined;
2861
- role: "ADMIN";
2862
- userId: string;
2863
- }[] | null | undefined;
2864
- code: string;
2865
- name: string;
2866
- _id: string;
2867
- isReseller: boolean;
2868
- } | null | undefined;
2869
- thumbnail?: string | null | undefined;
2870
- billingInfos?: {
2871
- _id?: string | null | undefined;
2872
- name: string;
2873
- address: {
2874
- coordinates?: number[] | null | undefined;
2875
- line2?: string | null | undefined;
2876
- state: string;
2877
- country: string;
2878
- line1: string;
2879
- city: string;
2880
- postcode: string;
2881
- };
2882
- email: string;
2883
- companyName: string;
2884
- contact: string;
2885
- }[] | null | undefined;
2886
- customerDisplayImages?: {
2887
- url: string;
2888
- restaurantIds: string[];
2889
- }[] | null | undefined;
2890
- name: string;
2891
- _id: string;
2892
- ownerId: string;
2893
- restaurantQuota: number;
2894
- warehouseQuota: number;
2895
- menuVersion: string;
2896
- } | null | undefined;
2897
- _id: string;
2898
- businessId: string;
2899
- profile: {
2900
- email?: string | null | undefined;
2901
- phoneNo?: string | null | undefined;
2902
- name: string;
2903
- address: {
2904
- coordinates?: number[] | null | undefined;
2905
- line2?: string | null | undefined;
2906
- state: string;
2907
- country: string;
2908
- line1: string;
2909
- city: string;
2910
- postcode: string;
2911
- };
2912
- regNo: string;
2913
- };
2914
- };
2915
- })[] | null | undefined;
2916
- _id: string;
2917
- name: string;
2918
- purchaseOrder: {
2919
- remark?: string | null | undefined;
2920
- ref?: string | null | undefined;
2921
- supplier?: {
2586
+ supplier: {
2922
2587
  phoneNumber?: string | null | undefined;
2923
2588
  email?: string | null | undefined;
2924
2589
  _rev?: string | null | undefined;
@@ -2954,10 +2619,108 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2954
2619
  postcode: string;
2955
2620
  country: string;
2956
2621
  };
2957
- } | undefined;
2958
- template?: string | null | undefined;
2959
- stockSnapshotId?: string | null | undefined;
2960
- effectiveAt?: string | null | undefined;
2622
+ };
2623
+ };
2624
+ } | undefined;
2625
+ show?: boolean | undefined;
2626
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
2627
+ 'onAction:use'?: ((locationId: string) => void) | undefined;
2628
+ 'onAction:edit'?: (() => void) | undefined;
2629
+ }, TransferTemplateDetailsPropsWithEventBinding | {
2630
+ template?: {
2631
+ _rev?: string | null | undefined;
2632
+ locations?: {
2633
+ type: "restaurant" | "warehouse";
2634
+ name: string;
2635
+ acceptRequest: boolean;
2636
+ dbName: string;
2637
+ doc: {
2638
+ _id: string;
2639
+ businessId: string;
2640
+ profile: {
2641
+ code?: string | null | undefined;
2642
+ _id?: string | null | undefined;
2643
+ name?: string | undefined;
2644
+ address?: {
2645
+ coordinates?: number[] | null | undefined;
2646
+ line2?: string | null | undefined;
2647
+ state: string;
2648
+ country: string;
2649
+ line1: string;
2650
+ city: string;
2651
+ postcode: string;
2652
+ } | undefined;
2653
+ email?: string | undefined;
2654
+ regNo?: string | undefined;
2655
+ sstRegNo?: string | null | undefined;
2656
+ phoneNo?: string | undefined;
2657
+ legalName?: string | null | undefined;
2658
+ discovery?: boolean | null | undefined;
2659
+ coverPhoto?: string | null | undefined;
2660
+ thumbnailPhoto?: string | null | undefined;
2661
+ description?: string | null | undefined;
2662
+ photos?: string[] | null | undefined;
2663
+ operatingHours?: {
2664
+ 0: {
2665
+ hours: {
2666
+ end: string;
2667
+ start: string;
2668
+ }[];
2669
+ enable: boolean;
2670
+ };
2671
+ 2: {
2672
+ hours: {
2673
+ end: string;
2674
+ start: string;
2675
+ }[];
2676
+ enable: boolean;
2677
+ };
2678
+ 1: {
2679
+ hours: {
2680
+ end: string;
2681
+ start: string;
2682
+ }[];
2683
+ enable: boolean;
2684
+ };
2685
+ 3: {
2686
+ hours: {
2687
+ end: string;
2688
+ start: string;
2689
+ }[];
2690
+ enable: boolean;
2691
+ };
2692
+ 4: {
2693
+ hours: {
2694
+ end: string;
2695
+ start: string;
2696
+ }[];
2697
+ enable: boolean;
2698
+ };
2699
+ 5: {
2700
+ hours: {
2701
+ end: string;
2702
+ start: string;
2703
+ }[];
2704
+ enable: boolean;
2705
+ };
2706
+ 6: {
2707
+ hours: {
2708
+ end: string;
2709
+ start: string;
2710
+ }[];
2711
+ enable: boolean;
2712
+ };
2713
+ } | null | undefined;
2714
+ tags?: string[] | null | undefined;
2715
+ url?: string | null | undefined;
2716
+ };
2717
+ };
2718
+ }[] | null | undefined;
2719
+ _id: string;
2720
+ name: string;
2721
+ purchaseOrder: {
2722
+ remark?: string | null | undefined;
2723
+ ref?: string | null | undefined;
2961
2724
  items: {
2962
2725
  measurement?: {
2963
2726
  id: string;
@@ -2987,7 +2750,7 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2987
2750
  precision: number;
2988
2751
  };
2989
2752
  } | null | undefined;
2990
- type: "RECIPE" | "SKU";
2753
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2991
2754
  amount: {
2992
2755
  amount: number;
2993
2756
  precision: number;
@@ -3055,6 +2818,43 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
3055
2818
  precision: number;
3056
2819
  };
3057
2820
  }[];
2821
+ supplier: {
2822
+ phoneNumber?: string | null | undefined;
2823
+ email?: string | null | undefined;
2824
+ _rev?: string | null | undefined;
2825
+ internal?: "restaurant" | "warehouse" | null | undefined;
2826
+ contactName?: string | null | undefined;
2827
+ registrationNumber?: string | undefined;
2828
+ supplyItems?: {
2829
+ defaultCost: {
2830
+ measurement?: {
2831
+ id: string;
2832
+ name: string;
2833
+ abbrev: string;
2834
+ conversion: {
2835
+ amount: number;
2836
+ precision: number;
2837
+ };
2838
+ } | null | undefined;
2839
+ costPerUnit: {
2840
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2841
+ amount: number;
2842
+ precision: number;
2843
+ };
2844
+ };
2845
+ skuId: string;
2846
+ }[] | null | undefined;
2847
+ _id: string;
2848
+ name: string;
2849
+ address: {
2850
+ line2?: string | null | undefined;
2851
+ line1: string;
2852
+ state: string;
2853
+ city: string;
2854
+ postcode: string;
2855
+ country: string;
2856
+ };
2857
+ };
3058
2858
  };
3059
2859
  } | undefined;
3060
2860
  show?: boolean | undefined;
@@ -3062,6 +2862,5 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
3062
2862
  'onAction:use'?: ((locationId: string) => void) | undefined;
3063
2863
  'onAction:edit'?: (() => void) | undefined;
3064
2864
  }>;
3065
- transferFormDialogProps: Ref<import("../../receive-request/components/transfer-dialog/TransferDialogProps").TransferDialogProps | undefined, import("../../receive-request/components/transfer-dialog/TransferDialogProps").TransferDialogProps | undefined>;
3066
- }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "useTemplate">>;
2865
+ }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "exportTemplates" | "importTemplates" | "getTemplateId">>;
3067
2866
  export {};