@feedmepos/mf-common 0.0.10 → 0.26.0

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 (121) hide show
  1. package/README.md +18 -31
  2. package/dist/App.vue.d.ts +19 -5
  3. package/dist/App.vue.d.ts.map +1 -0
  4. package/dist/CustomAttributesForm-84d67123.js +96 -0
  5. package/dist/Entry.vue.d.ts +3 -0
  6. package/dist/Entry.vue.d.ts.map +1 -0
  7. package/dist/ItemSelector-0ef7086f.js +24797 -0
  8. package/dist/RestaurantSelector-065f80f3.js +218 -0
  9. package/dist/api/index.d.ts +54 -3
  10. package/dist/api/index.d.ts.map +1 -0
  11. package/dist/api/menu.d.ts +7 -0
  12. package/dist/api/menu.d.ts.map +1 -0
  13. package/dist/app-7518a4c8.js +41042 -0
  14. package/dist/app-9575c6c7.js +7846 -0
  15. package/dist/app.d.ts +703 -1326
  16. package/dist/app.d.ts.map +1 -0
  17. package/dist/app.js +37 -16301
  18. package/dist/components/AllBusinessDialog.vue.d.ts +17 -0
  19. package/dist/components/AllBusinessDialog.vue.d.ts.map +1 -0
  20. package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts +3 -0
  21. package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts.map +1 -0
  22. package/dist/components/ChangePassword/NewPassword.vue.d.ts +3 -0
  23. package/dist/components/ChangePassword/NewPassword.vue.d.ts.map +1 -0
  24. package/dist/components/ChangePassword/PasswordField.vue.d.ts +15 -0
  25. package/dist/components/ChangePassword/PasswordField.vue.d.ts.map +1 -0
  26. package/dist/components/DebugUserDialog.vue.d.ts +3 -0
  27. package/dist/components/DebugUserDialog.vue.d.ts.map +1 -0
  28. package/dist/components/FeedmeLogo.vue.d.ts +3 -0
  29. package/dist/components/FeedmeLogo.vue.d.ts.map +1 -0
  30. package/dist/components/ItemSelector.vue.d.ts +46 -0
  31. package/dist/components/ItemSelector.vue.d.ts.map +1 -0
  32. package/dist/components/ManageAccountDialog.vue.d.ts +15 -0
  33. package/dist/components/ManageAccountDialog.vue.d.ts.map +1 -0
  34. package/dist/components/MyBusinessDialog.vue.d.ts +15 -0
  35. package/dist/components/MyBusinessDialog.vue.d.ts.map +1 -0
  36. package/dist/components/NoPermission.vue.d.ts +3 -0
  37. package/dist/components/NoPermission.vue.d.ts.map +1 -0
  38. package/dist/components/PermissionWrapper.vue.d.ts +10 -0
  39. package/dist/components/PermissionWrapper.vue.d.ts.map +1 -0
  40. package/dist/components/Portal/Ads.vue.d.ts +16 -0
  41. package/dist/components/Portal/Ads.vue.d.ts.map +1 -0
  42. package/dist/components/Portal/BusinessDialogMobile.vue.d.ts +17 -0
  43. package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -0
  44. package/dist/components/Portal/PortalDesktop.vue.d.ts +34 -0
  45. package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -0
  46. package/dist/components/Portal/PortalMobile.vue.d.ts +34 -0
  47. package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -0
  48. package/dist/components/Portal/PortalSidebar.vue.d.ts +3 -0
  49. package/dist/components/Portal/PortalSidebar.vue.d.ts.map +1 -0
  50. package/dist/components/Portal/PortalTablet.vue.d.ts +33 -0
  51. package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -0
  52. package/dist/components/Portal/index.d.ts +28 -0
  53. package/dist/components/Portal/index.d.ts.map +1 -0
  54. package/dist/components/Portal/index.vue.d.ts +40 -0
  55. package/dist/components/Portal/index.vue.d.ts.map +1 -0
  56. package/dist/components/RestaurantSelector.vue.d.ts +48 -0
  57. package/dist/components/RestaurantSelector.vue.d.ts.map +1 -0
  58. package/dist/components/SelectCountryDialog.vue.d.ts +93 -0
  59. package/dist/components/SelectCountryDialog.vue.d.ts.map +1 -0
  60. package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts +25 -0
  61. package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts.map +1 -0
  62. package/dist/components/UserInfo/index.vue.d.ts +72 -0
  63. package/dist/components/UserInfo/index.vue.d.ts.map +1 -0
  64. package/dist/components/attribute/CustomAttributesForm.vue.d.ts +25 -0
  65. package/dist/components/attribute/CustomAttributesForm.vue.d.ts.map +1 -0
  66. package/dist/components/attribute/MongoQueryBuilder.vue.d.ts +22 -0
  67. package/dist/components/attribute/MongoQueryBuilder.vue.d.ts.map +1 -0
  68. package/dist/components/attribute/OptionChip.vue.d.ts +16 -0
  69. package/dist/components/attribute/OptionChip.vue.d.ts.map +1 -0
  70. package/dist/composables/filterSelector.d.ts +13 -0
  71. package/dist/composables/filterSelector.d.ts.map +1 -0
  72. package/dist/composables/search.d.ts +6 -0
  73. package/dist/composables/search.d.ts.map +1 -0
  74. package/dist/composables/useDebugUser.d.ts +6 -0
  75. package/dist/composables/useDebugUser.d.ts.map +1 -0
  76. package/dist/composables/useLocale.d.ts +27 -0
  77. package/dist/composables/useLocale.d.ts.map +1 -0
  78. package/dist/composables/usePaginatedBusinesses.d.ts +145 -0
  79. package/dist/composables/usePaginatedBusinesses.d.ts.map +1 -0
  80. package/dist/favicon.ico +0 -0
  81. package/dist/locales/en-US.json +33 -0
  82. package/dist/locales/th-TH.json +33 -0
  83. package/dist/locales/types.d.ts +104 -0
  84. package/dist/locales/zh-CN.json +33 -0
  85. package/dist/logo.svg +15 -0
  86. package/dist/main.d.ts +2 -1
  87. package/dist/main.d.ts.map +1 -0
  88. package/dist/object-27ce045b.js +16 -0
  89. package/dist/permission/permission.d.ts +107 -0
  90. package/dist/permission/permission.d.ts.map +1 -0
  91. package/dist/plugin/loading.d.ts +18 -0
  92. package/dist/plugin/loading.d.ts.map +1 -0
  93. package/dist/router/index.d.ts +3 -0
  94. package/dist/router/index.d.ts.map +1 -0
  95. package/dist/router/query.d.ts +3 -0
  96. package/dist/router/query.d.ts.map +1 -0
  97. package/dist/store.d.ts +13951 -301
  98. package/dist/store.d.ts.map +1 -0
  99. package/dist/stores/menu.d.ts +7231 -0
  100. package/dist/stores/menu.d.ts.map +1 -0
  101. package/dist/style.css +1 -1
  102. package/dist/tsconfig.app.tsbuildinfo +1 -1
  103. package/dist/utils/businessStorage.d.ts +12 -0
  104. package/dist/utils/businessStorage.d.ts.map +1 -0
  105. package/dist/utils/clipboard.d.ts +2 -0
  106. package/dist/utils/clipboard.d.ts.map +1 -0
  107. package/dist/utils/country.d.ts +11 -0
  108. package/dist/utils/country.d.ts.map +1 -0
  109. package/dist/utils/object.d.ts +2 -0
  110. package/dist/utils/object.d.ts.map +1 -0
  111. package/dist/utils/postMessageMethodCall.d.ts +16 -0
  112. package/dist/utils/postMessageMethodCall.d.ts.map +1 -0
  113. package/dist/utils/storage.d.ts +6 -0
  114. package/dist/utils/storage.d.ts.map +1 -0
  115. package/dist/vite-preset.d.ts +12 -2
  116. package/dist/vite-preset.d.ts.map +1 -0
  117. package/dist/vite-preset.js +89 -47
  118. package/package.json +27 -13
  119. package/dist/FeedmeLogo.vue.d.ts +0 -2
  120. package/dist/UserInfo.vue.d.ts +0 -268
  121. package/dist/auth.d.ts +0 -106
@@ -0,0 +1,218 @@
1
+ import { ref as C, computed as i, defineComponent as J, mergeModels as X, useModel as Y, watch as Z, resolveComponent as S, openBlock as v, createElementBlock as b, createElementVNode as k, createVNode as m, withCtx as O, normalizeClass as ee, toDisplayString as le, createCommentVNode as B, withModifiers as E, unref as y, Fragment as z, renderList as $, createBlock as D, renderSlot as te, nextTick as ae } from "vue";
2
+ import { storeToRefs as ne } from "pinia";
3
+ import { _ as L, h as re } from "./app-9575c6c7.js";
4
+ import { n as ue, u as oe } from "./app-7518a4c8.js";
5
+ import "@feedmepos/ui-library";
6
+ import "vue-router";
7
+ function se(p, t) {
8
+ const r = C(!0), n = i(() => {
9
+ var u, a;
10
+ return !r.value && (!t.value || ((u = t.value) == null ? void 0 : u.length) === ((a = p.value) == null ? void 0 : a.length));
11
+ }), g = i(() => {
12
+ var u, a, f, h;
13
+ return !!((u = t.value) != null && u.length && ((a = t.value) == null ? void 0 : a.length) > 0 && ((f = t.value) == null ? void 0 : f.length) < ((h = p.value) == null ? void 0 : h.length));
14
+ });
15
+ return { allCleared: r, allSelected: n, indeterminate: g, toggleAll: () => {
16
+ t.value = void 0, r.value = !r.value;
17
+ }, toggleOption: (u) => {
18
+ var f, h, w;
19
+ let a;
20
+ t.value === void 0 && r.value ? a = [u] : t.value === void 0 && !r.value ? a = (f = p.value.map((c) => c.value)) == null ? void 0 : f.filter((c) => c !== u) : (h = t.value) != null && h.includes(u) ? a = (w = t.value) == null ? void 0 : w.filter((c) => c !== u) : a = [...t.value || [], u], a.length === 0 ? (t.value = void 0, r.value = !0) : a.length === p.value.length ? (t.value = void 0, r.value = !1) : t.value = a;
21
+ } };
22
+ }
23
+ const ie = { class: "w-full flex flex-col gap-8" }, ce = { class: "flex items-center gap-8" }, de = { class: "inline-flex items-center" }, ve = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, fe = { class: "flex gap-4 px-[6px]" }, me = { class: "flex-1" }, pe = { class: "flex-1 overflow-y-auto min-h-0" }, ge = { key: 0 }, Fe = /* @__PURE__ */ J({
24
+ __name: "RestaurantSelector",
25
+ props: /* @__PURE__ */ X({
26
+ multiple: { type: Boolean, default: !1 },
27
+ excludeRestaurants: {},
28
+ managableOnly: { type: Boolean, default: !0 },
29
+ disabled: { type: Boolean, default: !1 }
30
+ }, {
31
+ modelValue: {},
32
+ modelModifiers: {}
33
+ }),
34
+ emits: ["update:modelValue"],
35
+ setup(p) {
36
+ const t = p, { t: r } = ue(), n = Y(p, "modelValue"), { restaurants: g, restaurantAttributeSettings: A } = ne(oe());
37
+ function I(e) {
38
+ const l = g.value.map((_) => {
39
+ var F;
40
+ return (F = _.customAttributes) == null ? void 0 : F[e];
41
+ }).filter((_) => typeof _ == "string" && !!_);
42
+ return [...new Set(l)];
43
+ }
44
+ const u = i(() => A.value.map((e) => {
45
+ const l = I(e.key);
46
+ return {
47
+ ...e,
48
+ values: l
49
+ };
50
+ })), a = C(""), f = C(null);
51
+ function h(e) {
52
+ var l;
53
+ if (t.multiple)
54
+ throw new Error("Single selection is not supported for multiple selection");
55
+ n.value = e, (l = f.value) == null || l.toggleMenu(!1);
56
+ }
57
+ const w = i(() => g.value.map((e) => ({
58
+ label: e.profile.name,
59
+ value: e._id
60
+ }))), c = i(
61
+ () => g.value.filter((e) => t.managableOnly ? e.managable : !0).filter((e) => a.value ? e.profile.name.toLowerCase().includes(a.value.toLowerCase()) : !0).filter((e) => t.multiple ? !0 : L(e.customAttributes || {}, d.value)).map((e) => ({
62
+ label: e.profile.name,
63
+ value: e._id
64
+ })).filter((e) => {
65
+ var l;
66
+ return !((l = t.excludeRestaurants) != null && l.includes(e.value));
67
+ })
68
+ ), T = i(() => {
69
+ var e;
70
+ return n.value ? n.value.length === 1 ? (e = w.value.find((l) => {
71
+ var o;
72
+ return l.value === ((o = n.value) == null ? void 0 : o[0]);
73
+ })) == null ? void 0 : e.label : r("portalshell.components.restaurantSelector.restaurantCount", {
74
+ count: n.value.length
75
+ }) : r("portalshell.components.restaurantSelector.allRestaurants");
76
+ }), U = i(() => {
77
+ var e;
78
+ return n.value ? ((e = w.value.find((l) => l.value === n.value)) == null ? void 0 : e.label) || r("portalshell.components.restaurantSelector.unknownRestaurant") : r("portalshell.components.restaurantSelector.selectRestaurant");
79
+ }), N = i(() => t.multiple ? T.value : U.value), { allCleared: he, allSelected: Q, toggleAll: j, toggleOption: K, indeterminate: P } = se(
80
+ c,
81
+ n
82
+ ), x = C(!1), W = i(() => A.value.length > 0), V = C(null);
83
+ async function q() {
84
+ t.disabled || (x.value ? x.value = !1 : (x.value = !0, await ae(), V.value && V.value.toggleProperty(!0)));
85
+ }
86
+ const d = C((() => ({
87
+ logic: "AND",
88
+ rules: []
89
+ }))()), G = i(() => {
90
+ var e, l;
91
+ return ((l = (e = d.value) == null ? void 0 : e.rules) == null ? void 0 : l.length) || 0;
92
+ });
93
+ return Z(d, () => {
94
+ var e;
95
+ if (t.multiple) {
96
+ if (!d.value || d.value.rules.length === 0) {
97
+ n.value = null;
98
+ return;
99
+ }
100
+ const l = g.value.filter((o) => L(o.customAttributes || {}, d.value));
101
+ n.value = l.map((o) => o._id);
102
+ } else {
103
+ const l = g.value.filter((o) => L(o.customAttributes || {}, d.value));
104
+ l.length === 0 ? n.value = null : n.value = (e = l[0]) == null ? void 0 : e._id;
105
+ }
106
+ }), (e, l) => {
107
+ const o = S("FmIcon"), _ = S("FmChip"), F = S("FmSearch"), R = S("FmMenuItem"), H = S("FmMenu");
108
+ return v(), b("div", ie, [
109
+ k("div", ce, [
110
+ m(H, {
111
+ "close-on-click": !1,
112
+ disabled: t.disabled,
113
+ ref_key: "menuRef",
114
+ ref: f,
115
+ "z-index": 50,
116
+ "selector-for-dismiss-away-event-exclusion": ".fm-dialog, .fm-select__menu__wrapper"
117
+ }, {
118
+ "menu-button": O(() => [
119
+ k("div", de, [
120
+ m(_, {
121
+ disabled: t.disabled
122
+ }, {
123
+ default: O(() => [
124
+ m(o, {
125
+ color: e.disabled ? "neutral-gray-200" : "neutral-gray-400",
126
+ name: "storefront",
127
+ outline: "",
128
+ size: "sm"
129
+ }, null, 8, ["color"]),
130
+ N.value ? (v(), b("div", {
131
+ key: 0,
132
+ class: ee([
133
+ "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
134
+ e.disabled ? "text-fm-color-neutral-gray-200" : "text-fm-color-neutral-gray-400"
135
+ ])
136
+ }, le(N.value), 3)) : B("", !0),
137
+ m(o, {
138
+ color: e.disabled ? "neutral-gray-200" : "neutral-gray-400",
139
+ name: "keyboard_arrow_down",
140
+ size: "sm"
141
+ }, null, 8, ["color"]),
142
+ W.value ? (v(), b("div", {
143
+ key: 1,
144
+ class: "pl-8 flex items-center justify-center border-l border-fm-color-neutral-gray-200",
145
+ onClick: E(q, ["stop"])
146
+ }, [
147
+ m(o, {
148
+ name: "filter_alt",
149
+ size: "sm",
150
+ outline: G.value === 0,
151
+ color: e.disabled ? "neutral-gray-200" : "neutral-gray-400",
152
+ onClick: l[0] || (l[0] = E(() => {
153
+ }, ["prevent"]))
154
+ }, null, 8, ["outline", "color"])
155
+ ])) : B("", !0)
156
+ ]),
157
+ _: 1
158
+ }, 8, ["disabled"])
159
+ ])
160
+ ]),
161
+ default: O(() => [
162
+ k("div", ve, [
163
+ k("div", fe, [
164
+ k("div", me, [
165
+ m(F, {
166
+ modelValue: a.value,
167
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => a.value = s),
168
+ placeholder: y(r)("common.search")
169
+ }, null, 8, ["modelValue", "placeholder"])
170
+ ])
171
+ ]),
172
+ k("div", pe, [
173
+ e.multiple ? (v(), b(z, { key: 0 }, [
174
+ m(R, {
175
+ label: "All",
176
+ "has-checkbox": "",
177
+ "model-value": y(Q),
178
+ indeterminate: y(P),
179
+ onClick: y(j)
180
+ }, null, 8, ["model-value", "indeterminate", "onClick"]),
181
+ (v(!0), b(z, null, $(c.value, (s) => {
182
+ var M;
183
+ return v(), D(R, {
184
+ key: s.value,
185
+ label: s.label,
186
+ "has-checkbox": "",
187
+ "model-value": y(Q) || ((M = n.value) == null ? void 0 : M.includes(s.value)),
188
+ onClick: (ye) => y(K)(s.value)
189
+ }, null, 8, ["label", "model-value", "onClick"]);
190
+ }), 128))
191
+ ], 64)) : (v(!0), b(z, { key: 1 }, $(c.value, (s) => (v(), D(R, {
192
+ key: s.value,
193
+ label: s.label,
194
+ onClick: (M) => h(s.value)
195
+ }, null, 8, ["label", "onClick"]))), 128))
196
+ ])
197
+ ])
198
+ ]),
199
+ _: 1
200
+ }, 8, ["disabled"]),
201
+ te(e.$slots, "append-right")
202
+ ]),
203
+ x.value ? (v(), b("div", ge, [
204
+ m(y(re), {
205
+ ref_key: "filterRef",
206
+ ref: V,
207
+ attributes: u.value,
208
+ modelValue: d.value,
209
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => d.value = s)
210
+ }, null, 8, ["attributes", "modelValue"])
211
+ ])) : B("", !0)
212
+ ]);
213
+ };
214
+ }
215
+ });
216
+ export {
217
+ Fe as default
218
+ };
@@ -1,6 +1,57 @@
1
- import { FdoBusiness } from '@feedmepos/core/entity';
2
- import { type AxiosInstance, type AxiosResponse } from 'axios';
1
+ import { type AxiosInstance, type AxiosResponse } from "axios";
2
+ import { FdoAgent, FdoBusiness, FdoPermissionRule, FdoRestaurant, FdoRestaurantSetting, type FdoUser, type FdoPublicSetting } from "@feedmepos/core/entity";
3
+ export interface PaginatedBusinessesResponse {
4
+ meta: {
5
+ skip: number;
6
+ limit: number;
7
+ sortBy: string;
8
+ search: string;
9
+ descending: boolean;
10
+ totalResources: number;
11
+ totalPages: number;
12
+ };
13
+ resources: FdoBusiness[];
14
+ }
15
+ export declare function readUserAdminPermission(): Promise<FdoPermissionRule[]>;
16
+ export declare function readUserBusinessPermission(businessId: string): Promise<FdoPermissionRule[]>;
3
17
  export declare function readManagableBusinesses(): Promise<FdoBusiness[]>;
18
+ export declare function readPaginatedBusinesses(skip: number, limit: number, search?: string): Promise<PaginatedBusinessesResponse>;
19
+ export declare function readBusiness(businessId: string): Promise<FdoBusiness>;
20
+ export declare function readRestaurantSetting(restaurantId: string): Promise<FdoRestaurantSetting>;
21
+ export declare function readBusinessRestaurants(businessId: string): Promise<FdoRestaurant[]>;
22
+ export declare function readBusinessRestaurant(restaurantId: string): Promise<FdoRestaurant>;
23
+ export declare function readAvailableAgents(): Promise<FdoAgent[]>;
24
+ export declare function debugUser(phoneNumber: string): Promise<string>;
25
+ export declare function stopDebugUser(): Promise<string>;
26
+ export type PublicSettingApi = FdoPublicSetting & {
27
+ aiSettings: {
28
+ remy: {
29
+ enable: boolean;
30
+ };
31
+ };
32
+ };
33
+ export declare function getPublicSetting(): Promise<PublicSettingApi>;
4
34
  export declare const baseClientInstance: (url: string) => AxiosInstance;
5
- export declare function generatePortalBackendUrl(): any;
6
35
  export declare function extractAxiosData<T>(response: AxiosResponse<T>): T;
36
+ export declare const accountService: {
37
+ updateUserProfile(profile: {
38
+ displayName: string;
39
+ email: string;
40
+ }): Promise<{
41
+ accessToken: string;
42
+ }>;
43
+ readUserProfile(): Promise<FdoUser>;
44
+ loginByPhonePassword({ phoneNumber, password }: {
45
+ phoneNumber: string;
46
+ password: string;
47
+ }): Promise<{
48
+ accessToken: string;
49
+ }>;
50
+ resetPassword({ customToken, password }: {
51
+ customToken: string;
52
+ password: string;
53
+ }): Promise<{
54
+ accessToken: string;
55
+ }>;
56
+ };
57
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAc,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAGjF,OAAO,EAEL,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAA;AAI/B,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,EAAE,OAAO,CAAA;QACnB,cAAc,EAAE,MAAM,CAAA;QACtB,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,SAAS,EAAE,WAAW,EAAE,CAAA;CACzB;AAED,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAE5E;AAED,wBAAsB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAOjG;AAED,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAEtE;AAED,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,2BAA2B,CAAC,CAUtC;AAED,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAE3E;AAED,wBAAsB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAI/F;AAED,wBAAsB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAI1F;AAED,wBAAsB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAEzF;AAED,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAE/D;AAED,wBAAsB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEpE;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAErD;AAED,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE,OAAO,CAAA;SAChB,CAAA;KACF,CAAA;CACF,CAAA;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAElE;AA2BD,eAAO,MAAM,kBAAkB,QAAS,MAAM,KAAG,aAGhD,CAAA;AASD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAEjE;AA+BD,eAAO,MAAM,cAAc;+BACQ;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,QAAQ;QAChF,WAAW,EAAE,MAAM,CAAA;KACpB,CAAC;uBAIuB,QAAQ,OAAO,CAAC;;qBAQ1B,MAAM;kBACT,MAAM;QACd,QAAQ;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;;qBAUrB,MAAM;kBACT,MAAM;QACd,QAAQ;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CAKrC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { FdoMenuV4 } from "@feedmepos/menu/entity";
2
+ export interface CustomApiConfig {
3
+ businessId?: string;
4
+ userToken?: string;
5
+ }
6
+ export declare function queryMenu(custom?: CustomApiConfig): Promise<FdoMenuV4>;
7
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/api/menu.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAMvD,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AASD,wBAAsB,SAAS,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC,CAE5E"}