@feedmepos/mf-financing 0.0.2

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 (54) hide show
  1. package/README.md +11 -0
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/Entry.vue.d.ts +2 -0
  4. package/dist/Financing-6bpYBvrC.js +14 -0
  5. package/dist/Forbidden-Dqw0MqyC.js +37 -0
  6. package/dist/api/index.d.ts +50 -0
  7. package/dist/api/pagination.d.ts +20 -0
  8. package/dist/api/restaurant/index.d.ts +6 -0
  9. package/dist/app.d.ts +13 -0
  10. package/dist/app.js +3687 -0
  11. package/dist/assets/icons/index.d.ts +21 -0
  12. package/dist/components/AdminLayout.vue.d.ts +21 -0
  13. package/dist/components/AsyncButton.vue.d.ts +21 -0
  14. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  15. package/dist/components/CursorTable/FmTableSelection.vue.d.ts +13 -0
  16. package/dist/components/CursorTable/index.vue.d.ts +64 -0
  17. package/dist/components/DateRangePicker.vue.d.ts +13 -0
  18. package/dist/components/ImagePreview.vue.d.ts +13 -0
  19. package/dist/components/Layout.vue.d.ts +21 -0
  20. package/dist/components/Modal.d.ts +3 -0
  21. package/dist/components/PDFViewer.vue.d.ts +25 -0
  22. package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
  23. package/dist/components/PagingTable/index.vue.d.ts +48 -0
  24. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  25. package/dist/components/RouteCell.vue.d.ts +7 -0
  26. package/dist/components/SelectAll.vue.d.ts +57 -0
  27. package/dist/composable/loading/index.d.ts +8 -0
  28. package/dist/composable/query/index.d.ts +2 -0
  29. package/dist/helpers/clipboard.d.ts +1 -0
  30. package/dist/helpers/date.d.ts +22 -0
  31. package/dist/helpers/db.d.ts +2 -0
  32. package/dist/helpers/dinero.d.ts +2 -0
  33. package/dist/helpers/error.d.ts +1 -0
  34. package/dist/helpers/export.d.ts +12 -0
  35. package/dist/helpers/grafana.d.ts +8 -0
  36. package/dist/helpers/idToDate.d.ts +1 -0
  37. package/dist/helpers/iteration.d.ts +15 -0
  38. package/dist/helpers/number.d.ts +22 -0
  39. package/dist/helpers/object.d.ts +1 -0
  40. package/dist/helpers/string.d.ts +12 -0
  41. package/dist/helpers/time.d.ts +7 -0
  42. package/dist/helpers/validator.d.ts +4 -0
  43. package/dist/i18n.d.ts +10 -0
  44. package/dist/main.d.ts +1 -0
  45. package/dist/model/pagination.d.ts +14 -0
  46. package/dist/modules.d.ts +1 -0
  47. package/dist/package.json +101 -0
  48. package/dist/plugins.d.ts +37 -0
  49. package/dist/router/index.d.ts +13 -0
  50. package/dist/stores/iframe.d.ts +14 -0
  51. package/dist/tsconfig.app.tsbuildinfo +1 -0
  52. package/dist/views/Financing.vue.d.ts +2 -0
  53. package/dist/views/Forbidden.vue.d.ts +2 -0
  54. package/package.json +101 -0
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # Payment Portal
2
+
3
+ Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.
4
+
5
+ **Production**: 1.0.0
6
+
7
+ **Development**: 1.0.0-beta.0
8
+
9
+ ## After Completing CI
10
+
11
+ Go to `https://github.com/feedmepos/portal/tree/ci/ci` and update the version.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { openBlock as r, createElementBlock as s } from "vue";
2
+ const a = (t, n) => {
3
+ const e = t.__vccOpts || t;
4
+ for (const [c, o] of n)
5
+ e[c] = o;
6
+ return e;
7
+ }, _ = {};
8
+ function f(t, n) {
9
+ return r(), s("p", null, "just a testing what");
10
+ }
11
+ const i = /* @__PURE__ */ a(_, [["render", f]]);
12
+ export {
13
+ i as default
14
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as i, onMounted as c, resolveComponent as o, openBlock as s, createElementBlock as a, createElementVNode as C, unref as p, createVNode as r } from "vue";
2
+ import { useRouter as n } from "vue-router";
3
+ const d = "data:image/svg+xml,%3csvg%20width='858'%20height='376'%20viewBox='0%200%20858%20376'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1132_89720)'%3e%3cpath%20d='M440%20505.86C651.525%20505.86%20823%20437.839%20823%20353.93C823%20270.021%20651.525%20202%20440%20202C228.475%20202%2057%20270.021%2057%20353.93C57%20437.839%20228.475%20505.86%20440%20505.86Z'%20fill='url(%23paint0_linear_1132_89720)'%20fill-opacity='0.5'/%3e%3cg%20clip-path='url(%23clip1_1132_89720)'%3e%3cpath%20d='M331.443%20106.351C343.852%2058.097%20379.776%2037.6206%20397.221%2030.2477C402.417%2028.0519%20407.88%2026.5702%20413.469%2025.749L424.914%2024.0709C430.503%2023.2497%20436.163%2023.1069%20441.769%2023.7138C460.588%2025.749%20500.887%2035.0321%20526.652%2077.6808C561.416%20135.2%20586.627%20250.954%20457.589%20272.322V272.376C456.91%20272.483%20456.25%20272.555%20455.589%20272.644C454.928%20272.751%20454.268%20272.858%20453.589%20272.965V272.912C323.854%20289.55%20314.695%20171.458%20331.443%20106.351Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M429.807%20275.839C396.221%20275.839%20370.046%20265.414%20351.762%20244.705C319.016%20207.644%20319.641%20146.84%20330.14%20106.03C342.406%2058.3112%20377.099%2037.2993%20396.686%2029.0337C401.899%2026.8379%20407.47%2025.2848%20413.273%2024.4457L424.718%2022.7676C430.521%2021.9107%20436.306%2021.7858%20441.912%2022.3928C463.053%2024.6778%20502.316%2034.8178%20527.795%2076.9845C549.596%20113.046%20567.701%20171.119%20547.007%20216.035C532.973%20246.508%20503.387%20265.824%20459.089%20273.429V273.465L457.786%20273.715C457.375%20273.768%20456.982%20273.822%20456.589%20273.876L454.982%20274.108C454.59%20274.179%20454.197%20274.233%20453.786%20274.304L452.447%20274.5L452.429%20274.411C444.573%20275.357%20437.02%20275.839%20429.807%20275.839ZM332.747%20106.69C322.408%20146.876%20321.712%20206.662%20353.762%20242.956C375.563%20267.645%20409.095%20277.285%20453.429%20271.591L454.75%20271.43V271.448L456.268%20271.233C456.375%20271.216%20456.5%20271.198%20456.607%20271.198L457.375%20271.037C501.477%20263.736%20530.813%20244.866%20544.597%20214.946C564.845%20170.976%20546.972%20113.921%20525.528%2078.3949C500.638%2037.1743%20462.285%2027.2842%20441.645%2025.0349C436.252%2024.4457%20430.699%2024.5707%20425.129%2025.3919L413.684%2027.07C408.113%2027.8912%20402.756%2029.3729%20397.757%2031.4795C378.598%2039.5665%20344.727%2060.0964%20332.747%20106.69Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M360.457%20129.166L360.493%20111.814C362.475%2083.3041%20397.685%2072.0216%20409.041%2068.3083C417.504%2065.5413%20428.467%2063.6489%20432.359%2063.042V63.0241C432.359%2063.0241%20432.609%2062.9884%20433.074%2062.917C433.538%2062.8456%20433.788%2062.8099%20433.788%2062.8099V62.8277C437.68%2062.31%20448.732%2060.9533%20457.642%2061.1675C469.569%2061.471%20506.547%2062.1315%20516.653%2088.874L521.67%20105.476C527.045%20124.114%20518.974%20141.324%20501.566%20143.876L390.757%20160.175C373.348%20162.728%20360.671%20148.571%20360.457%20129.166Z'%20fill='white'/%3e%3cpath%20d='M490.656%20119.473C482.675%20120.651%20473.997%20114.76%20473.158%20106.458C472.319%2098.1393%20477.622%2090.213%20486.175%2088.9633C494.156%2087.7851%20502.833%2093.6763%20503.673%20101.978C504.512%20110.297%20499.209%20118.223%20490.656%20119.473Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M488.585%20120.972C484.836%20120.972%20481.068%20119.651%20477.944%20117.223C474.426%20114.474%20472.248%20110.707%20471.837%20106.601C470.891%2097.2824%20477.105%2088.9455%20485.996%2087.6423C490.442%2086.9818%20495.156%2088.285%20498.923%2091.2306C502.441%2093.9798%20504.619%2097.7466%20505.03%20101.853C505.976%20111.171%20499.763%20119.508%20490.871%20120.812C490.103%20120.919%20489.335%20120.972%20488.585%20120.972ZM488.21%2090.1594C487.586%2090.1594%20486.978%2090.1952%20486.371%2090.2844C478.908%2091.3734%20473.694%2098.425%20474.498%20106.316C474.837%20109.69%20476.64%20112.796%20479.586%20115.099C482.729%20117.545%20486.8%20118.687%20490.478%20118.152C497.941%20117.063%20503.155%20110.011%20502.352%20102.12C502.012%2098.7463%20500.209%2095.6222%20497.263%2093.3371C494.62%2091.2841%20491.353%2090.1594%20488.21%2090.1594Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M411.309%20131.13C403.327%20132.308%20394.65%20126.417%20393.811%20118.116C392.971%20109.797%20398.274%20101.87%20406.827%20100.621C414.808%2099.4426%20423.486%20105.334%20424.325%20113.635C425.182%20121.954%20419.861%20129.88%20411.309%20131.13Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M409.238%20132.63C405.488%20132.63%20401.721%20131.309%20398.596%20128.881C395.079%20126.131%20392.9%20122.365%20392.49%20118.259C391.543%20108.94%20397.757%20100.603%20406.649%2099.2997C411.095%2098.6392%20415.808%2099.9603%20419.576%20102.888C423.093%20105.637%20425.272%20109.404%20425.682%20113.51C426.629%20122.829%20420.415%20131.166%20411.523%20132.469C410.755%20132.576%20409.988%20132.63%20409.238%20132.63ZM408.863%20101.817C408.238%20101.817%20407.631%20101.853%20407.024%20101.942C399.56%20103.031%20394.347%20110.082%20395.15%20117.973C395.489%20121.347%20397.293%20124.453%20400.239%20126.756C403.381%20129.202%20407.452%20130.345%20411.13%20129.809C418.594%20128.72%20423.807%20121.668%20423.004%20113.778C422.665%20110.404%20420.861%20107.28%20417.915%20104.995C415.291%20102.942%20412.005%20101.817%20408.863%20101.817Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M567.791%20147.286C576.968%20161.747%20586.699%20171.994%20597.698%20165.031C608.679%20158.069%20610.161%20140.699%20600.983%20126.239C591.806%20111.778%20575.468%20105.709%20564.47%20112.671C553.471%20119.633%20558.613%20132.826%20567.791%20147.286Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M317.962%20176.582C318.141%20176.546%20318.319%20176.546%20318.498%20176.51C318.569%20177.242%20318.623%20177.992%20318.712%20178.724C320.962%20200.039%20326.747%20219.07%20335.674%20234.905C334.121%20236.101%20332.193%20236.975%20329.836%20237.44C317.069%20239.921%20304.053%20228.317%20300.786%20211.518C297.518%20194.719%20305.178%20179.081%20317.962%20176.582Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M547.167%20216.088C549.917%20210.143%20552.006%20203.734%20553.506%20196.969C550.417%20185.579%20546.542%20174.671%20541.686%20165.852C539.775%20162.371%20535.883%20160.479%20531.955%20161.032L526.045%20161.871C519.849%20162.746%20516.153%20169.226%20518.546%20175.028C520.01%20178.599%20521.224%20180.241%20522.17%20183.454C523.831%20189.096%20520.081%20194.88%20514.243%20195.665L413.415%20209.179C408.059%20209.893%20403.095%20206.073%20402.559%20200.682C402.059%20195.737%20401.309%20192.88%20400.595%20188.953C399.685%20183.883%20394.917%20180.455%20389.829%20181.187L375.116%20183.276C369.902%20184.008%20366.242%20188.828%20366.974%20194.041C368.849%20207.751%20371.241%20234.101%20366.188%20256.952C366.117%20257.255%20366.099%20257.559%20366.063%20257.862C382.865%20269.93%20404.184%20276.018%20429.824%20276.018C437.002%20276.018%20444.501%20275.536%20452.339%20274.59L452.357%20274.679L453.857%20274.465C454.268%20274.411%20454.66%20274.34%20455.071%20274.268L456.678%20274.036C457.071%20273.983%20457.464%20273.929%20457.856%20273.875L459.32%20273.608V273.572C503.565%20265.913%20533.133%20246.58%20547.167%20216.088Z'%20fill='white'/%3e%3cpath%20d='M476.069%20249.668C484.727%20249.668%20491.746%20242.651%20491.746%20233.994C491.746%20225.337%20484.727%20218.32%20476.069%20218.32C467.411%20218.32%20460.393%20225.337%20460.393%20233.994C460.393%20242.651%20467.411%20249.668%20476.069%20249.668Z'%20fill='white'/%3e%3cpath%20d='M484.854%20240.617C485.032%20242.135%20485.318%20244.562%20485.55%20246.473C489.978%20243.116%20492.478%20237.511%20491.603%20231.62C490.443%20223.836%20483.765%20218.248%20476.141%20218.213C476.158%20218.552%20476.176%20218.855%20476.176%20218.909C476.212%20219.712%20476.248%20220.498%20476.266%20221.301C476.337%20223.497%20477.176%20224.657%20479.23%20225.461C479.783%20225.675%20480.337%20225.961%20480.836%20226.3C482.604%20227.496%20483.425%20229.263%20483.729%20231.298C483.997%20233.083%20484.175%20234.887%20484.39%20236.69C484.568%20238.011%20484.693%20239.314%20484.854%20240.617Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M460.499%20236.261C461.356%20242.045%20465.266%20246.615%20470.355%20248.597C470.319%20248.365%20470.302%20248.204%20470.284%20248.186C470.07%20246.812%20469.855%20245.437%20469.623%20244.063C469.016%20240.331%20468.373%20236.6%20467.802%20232.851C467.481%20230.816%20468.07%20229.031%20469.552%20227.567C470.105%20227.014%20470.694%20226.496%20471.248%20225.925C472.194%20224.961%20472.48%20223.854%20472.105%20222.497C471.623%20220.569%20471.784%20221.212%20471.623%20220.569C471.551%20220.284%20471.355%20219.569%20471.212%20218.962C464.017%20221.301%20459.356%20228.549%20460.499%20236.261Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M480.925%20235.797C480.89%20235.511%20480.818%20235.208%20480.729%20234.922C480.515%20234.19%20479.783%20233.762%20479.051%20233.94C478.336%20234.101%20477.872%20234.797%20477.979%20235.547C478.604%20239.725%20479.372%20244.919%20480.015%20249.168C480.979%20248.918%20481.907%20248.579%20482.782%20248.169C482.229%20244.473%20481.443%20239.225%20480.925%20235.797Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M472.855%20234.976C471.98%20235.261%20471.623%20235.833%20471.766%20236.779C472.266%20240.224%20473.069%20245.598%20473.641%20249.472C474.587%20249.615%20475.569%20249.686%20476.551%20249.65C476.373%20248.258%20476.087%20246.258%20475.944%20245.259C475.498%20242.152%20475.033%20239.046%20474.569%20235.958C474.444%20235.226%20473.587%20234.744%20472.855%20234.976Z'%20fill='%23A7A9AC'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1132_89720'%20x1='440.003'%20y1='133.148'%20x2='440.003'%20y2='371.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A5A5A5'/%3e%3cstop%20offset='0.4764'%20stop-color='%23E0E0E0'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1132_89720'%3e%3crect%20width='858'%20height='376'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1132_89720'%3e%3crect%20width='307'%20height='254'%20fill='white'%20transform='translate(300%2022)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", h = { class: "flex items-center justify-center min-h-[80vh]" }, f = { class: "hidden mr-6 lg:block lg:w-1/6" }, m = ["src"], _ = { class: "w-full max-w-lg text-left" }, A = { class: "flex items-center mb-2 mt-1" }, Z = /* @__PURE__ */ i({
4
+ __name: "Forbidden",
5
+ setup(u) {
6
+ const t = n();
7
+ return c(() => {
8
+ setTimeout(() => {
9
+ t.push("/");
10
+ }, 5e3);
11
+ }), (g, e) => {
12
+ const l = o("FmCircularProgress");
13
+ return s(), a("div", h, [
14
+ C("div", f, [
15
+ C("img", {
16
+ src: p(d),
17
+ alt: "mascot",
18
+ class: "w-full h-auto"
19
+ }, null, 8, m)
20
+ ]),
21
+ C("div", _, [
22
+ e[1] || (e[1] = C("h1", { class: "text-2xl font-bold mb-2" }, " Oops! It looks like you have no permission to access this page. ", -1)),
23
+ C("div", A, [
24
+ e[0] || (e[0] = C("p", null, " You'll be redirected to the homepage in 5 seconds. ", -1)),
25
+ r(l, {
26
+ class: "ml-6",
27
+ size: "lg"
28
+ })
29
+ ])
30
+ ])
31
+ ]);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ Z as default
37
+ };
@@ -0,0 +1,50 @@
1
+ import { type PaginatedResult } from "@/model/pagination";
2
+ import { type AxiosInstance, type AxiosResponse } from "axios";
3
+ import type { WorkBook } from "xlsx";
4
+ type ApiVariant = "portal" | "auth";
5
+ interface ApiUrl {
6
+ portalBackendUrl: string;
7
+ accountBackendUrl: string;
8
+ }
9
+ export declare const SvcConfig: {
10
+ getIdToken(): string | null;
11
+ getBusinessId(): string | undefined;
12
+ getRestaurantId(): string | undefined;
13
+ getBackendUrl(): ApiUrl;
14
+ };
15
+ declare class ApiError extends Error {
16
+ constructor(message?: string);
17
+ }
18
+ export declare class SvcCompanyApiError extends ApiError {
19
+ constructor(message: string);
20
+ }
21
+ export declare const baseClientInstance: (path?: string, variant?: ApiVariant, config?: {
22
+ noIdRequired?: boolean;
23
+ url?: string;
24
+ customIdToken?: string;
25
+ }) => AxiosInstance;
26
+ export declare const authInstance: (config?: {
27
+ noIdRequired?: boolean;
28
+ url?: string;
29
+ customIdToken?: string;
30
+ }) => AxiosInstance;
31
+ export declare const businessClientInstance: () => AxiosInstance;
32
+ export declare const restaurantClientInstance: (prefix?: string) => AxiosInstance;
33
+ type TransformFunction<T> = (value: T) => any;
34
+ type TransformFunctions<T> = {
35
+ [K in keyof T | string]?: TransformFunction<T[K | any]>;
36
+ };
37
+ export declare function flattenObject(obj: Record<string, any>, parentKey?: string): Record<string, any>;
38
+ export declare function localWorkbookAndDownload<T extends Object>(data: T[], options?: {
39
+ transformers?: TransformFunctions<T>;
40
+ exclude?: (keyof T | string)[];
41
+ include?: (keyof T | string)[];
42
+ rename?: Partial<Record<keyof T | string, string>>;
43
+ filename?: string;
44
+ }): void;
45
+ export declare function getWorkbookAndDownload(response: AxiosResponse<WorkBook>, filename: string): void;
46
+ export declare function openWith(blob: Blob, filename: string): void;
47
+ export declare function downloadAs(blob: Blob, filename: string): void;
48
+ export declare function getData<T>(response: AxiosResponse<T>): T;
49
+ export declare function getPaginatedResult<T>(response: AxiosResponse<PaginatedResult<T>>): PaginatedResult<T>;
50
+ export {};
@@ -0,0 +1,20 @@
1
+ export interface PaginationRequest {
2
+ skip: number;
3
+ limit: number;
4
+ sortBy: string;
5
+ descending?: boolean;
6
+ search?: string;
7
+ }
8
+ export interface PaginatedResponse<T> {
9
+ resources: T[];
10
+ meta: PaginatedMeta;
11
+ }
12
+ export interface PaginatedMeta {
13
+ skip: number;
14
+ limit: number;
15
+ sortBy: string;
16
+ descending?: boolean;
17
+ search?: string;
18
+ totalPages: number | null;
19
+ totalResources: number | null;
20
+ }
@@ -0,0 +1,6 @@
1
+ import { FdoRestaurant } from "@feedmepos/core/entity";
2
+ import type { PaginatedResponse, PaginationRequest } from "../pagination";
3
+ export declare const restaurantApi: {
4
+ readRestaurantById(id: string): Promise<FdoRestaurant>;
5
+ readRestaurantWithPagination(pagination: PaginationRequest): Promise<PaginatedResponse<FdoRestaurant>>;
6
+ };
package/dist/app.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import enUS from "./assets/locales/en-US.json";
2
+ export type AppMessagesSchema = typeof enUS;
3
+ export declare const i18nMessages: {
4
+ "en-US": {
5
+ financing: {};
6
+ };
7
+ "zh-CN": {
8
+ financing: {};
9
+ };
10
+ };
11
+ declare const routers: import("vue-router").Router;
12
+ export { routers };
13
+ export { default as FmApp } from "./App.vue";