@feedmepos/mf-brand-app-builder 0.4.2 → 0.5.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.
@@ -4,7 +4,7 @@ export interface FmCircularProgressProps {
4
4
  color?: string;
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<FmCircularProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FmCircularProgressProps> & Readonly<{}>, {
7
- size: "md" | "lg" | "xl" | "xxl";
7
+ size: "md" | "lg" | "xxl" | "xl";
8
8
  color: string;
9
9
  indeterminate: boolean;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,7 +6,29 @@
6
6
  declare function getGlobalSlug(slug: string): Promise<{
7
7
  [key: string]: string;
8
8
  }>;
9
+ /**
10
+ * Get pwa metadata
11
+ * @param businessId
12
+ * @returns
13
+ */
14
+ declare function getBusinessMetadata(businessId: string): Promise<unknown>;
15
+ /**
16
+ * Set pwa metadata
17
+ * @param businessId
18
+ * @param appName
19
+ */
20
+ declare function setBusinessMetadata(businessId: string, appName: string, country: string): Promise<unknown>;
21
+ declare function updateBusinessProfile(businessId: string, payload: IBusinessProfilePayload): Promise<void>;
9
22
  export declare const BusinessApi: {
10
23
  getGlobalSlug: typeof getGlobalSlug;
24
+ getBusinessMetadata: typeof getBusinessMetadata;
25
+ setBusinessMetadata: typeof setBusinessMetadata;
26
+ updateBusinessProfile: typeof updateBusinessProfile;
11
27
  };
28
+ interface IBusinessProfilePayload {
29
+ name: string;
30
+ thumbnail: string;
31
+ url: string;
32
+ coverPhoto: string;
33
+ }
12
34
  export {};
@@ -5,7 +5,10 @@
5
5
  * @param file
6
6
  * @returns
7
7
  */
8
- declare function uploadImage(businessId: string, path: string, file: File): Promise<unknown>;
8
+ declare function uploadImage(businessId: string, path: string, file: File): Promise<{
9
+ message: string;
10
+ imagePath: string;
11
+ }>;
9
12
  /**
10
13
  * Delete image
11
14
  * @param businessId
@@ -13,8 +16,10 @@ declare function uploadImage(businessId: string, path: string, file: File): Prom
13
16
  * @returns
14
17
  */
15
18
  declare function deleteImage(businessId: string, path: string): Promise<unknown>;
19
+ declare function uploadAppIcon(businessId: string, file: File): Promise<unknown>;
16
20
  export declare const ImageApi: {
17
21
  uploadImage: typeof uploadImage;
18
22
  deleteImage: typeof deleteImage;
23
+ uploadAppIcon: typeof uploadAppIcon;
19
24
  };
20
25
  export {};
@@ -1,12 +1,14 @@
1
1
  import { type AxiosRequestConfig, type AxiosResponse } from 'axios';
2
+ export declare function generatePortalBackendUrl(): void;
2
3
  declare class ApiClient {
3
- private instance;
4
- constructor();
5
- Get<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
6
- Post<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
7
- Put<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
8
- Delete<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
9
- Head<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
4
+ Get<T>(baseUrl: string, url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
5
+ Post<T>(baseUrl: string, url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
6
+ Put<T>(baseUrl: string, url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
7
+ Delete<T>(baseUrl: string, url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
8
+ Head<T>(baseUrl: string, url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
10
9
  }
11
- export declare const Api: ApiClient;
10
+ export declare const getApiConfig: () => {
11
+ PORTAL_V2_BACKEND: string;
12
+ };
13
+ export declare const Http: ApiClient;
12
14
  export {};
@@ -1,2 +1,3 @@
1
1
  export { default as FmApp } from './App.vue';
2
+ export { routes } from "./router/shared";
2
3
  export { FormKitPlugin } from './plugin/formkit';
@@ -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,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
+ import type { RouteRecordRaw } from 'vue-router';
2
+ export declare const routes: Array<RouteRecordRaw>;
@@ -32,7 +32,7 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
32
32
  getAllTemplates: (businessId: string) => Promise<void>;
33
33
  publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
34
34
  getMainTemplateId: (businessId: string) => Promise<void>;
35
- setSelectedTemplate: (template: ITemplateDetails) => void;
35
+ setSelectedTemplate: (templateId: ITemplateDetails['templateId']) => void;
36
36
  saveTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
37
37
  setMainPageTemplate: (businessId: string) => Promise<void>;
38
38
  addNewTemplate: () => void;
@@ -72,7 +72,7 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
72
72
  getAllTemplates: (businessId: string) => Promise<void>;
73
73
  publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
74
74
  getMainTemplateId: (businessId: string) => Promise<void>;
75
- setSelectedTemplate: (template: ITemplateDetails) => void;
75
+ setSelectedTemplate: (templateId: ITemplateDetails['templateId']) => void;
76
76
  saveTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
77
77
  setMainPageTemplate: (businessId: string) => Promise<void>;
78
78
  addNewTemplate: () => void;
@@ -112,7 +112,7 @@ export declare const useTemplateStore: import("pinia").StoreDefinition<"template
112
112
  getAllTemplates: (businessId: string) => Promise<void>;
113
113
  publishTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
114
114
  getMainTemplateId: (businessId: string) => Promise<void>;
115
- setSelectedTemplate: (template: ITemplateDetails) => void;
115
+ setSelectedTemplate: (templateId: ITemplateDetails['templateId']) => void;
116
116
  saveTemplate: (businessId: string, schema: INodeComponent[]) => Promise<void>;
117
117
  setMainPageTemplate: (businessId: string) => Promise<void>;
118
118
  addNewTemplate: () => void;
@@ -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,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;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -32,7 +32,7 @@
32
32
  "deploy:npm:prod": "pnpm run build-only:prod && pnpm publish --no-git-checks ."
33
33
  },
34
34
  "dependencies": {
35
- "@feedmepos/mf-common": "^1.8.5",
35
+ "@feedmepos/mf-common": "^1.8.30",
36
36
  "@feedmepos/ui-library": "^1.2.39",
37
37
  "@formkit/core": "^1.6.5",
38
38
  "@formkit/vue": "^1.6.5",
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .icon-rounded{font-variation-settings:"FILL" 0}.icon-filled{font-variation-settings:"FILL" 1}.ba-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ba-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ba-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.spinner[data-v-3c8691e9]{animation:progress-circular-dash-3c8691e9 2s ease-in-out infinite,progress-circular-rotate-3c8691e9 2s linear infinite;transform-origin:center center}@keyframes progress-circular-dash-3c8691e9{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-48px}}@keyframes progress-circular-rotate-3c8691e9{to{transform:rotate(720deg)}}.fm-stepper-field--input{text-align:end}
1
+ .spinner[data-v-3c8691e9]{animation:progress-circular-dash-3c8691e9 2s ease-in-out infinite,progress-circular-rotate-3c8691e9 2s linear infinite;transform-origin:center center}@keyframes progress-circular-dash-3c8691e9{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-48px}}@keyframes progress-circular-rotate-3c8691e9{to{transform:rotate(720deg)}}.icon-rounded{font-variation-settings:"FILL" 0}.icon-filled{font-variation-settings:"FILL" 1}.ba-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ba-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ba-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.fm-stepper-field--input{text-align:end}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -14,7 +14,7 @@
14
14
  "./style": "./dist/style.css"
15
15
  },
16
16
  "dependencies": {
17
- "@feedmepos/mf-common": "^1.8.5",
17
+ "@feedmepos/mf-common": "^1.8.30",
18
18
  "@feedmepos/ui-library": "^1.2.39",
19
19
  "@formkit/core": "^1.6.5",
20
20
  "@formkit/vue": "^1.6.5",