@feedmepos/mf-settings 0.0.15 → 0.0.18

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.
@@ -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;
@@ -4,6 +4,25 @@ export interface UpdateBusinessProfile {
4
4
  url?: string;
5
5
  thumbnail?: string;
6
6
  }
7
+ export interface IAgent {
8
+ id: string;
9
+ name: string;
10
+ /**
11
+ * For tracking lead in clickup
12
+ */
13
+ clickupId?: string | null;
14
+ /**
15
+ * Agent sales code, for customer to fill in when create business
16
+ */
17
+ code: string;
18
+ /**
19
+ * Reseller of feedme, the business cannot directly purchase from FeedMe
20
+ */
21
+ isReseller: boolean;
22
+ }
7
23
  export declare const businessApi: {
8
24
  updateBusinessProfile(id: string, data: UpdateBusinessProfile): Promise<FdoBusiness>;
25
+ readAgentByCode(code: string): Promise<IAgent | null>;
26
+ createBusiness(data: Partial<FdoBusiness>, country: string): Promise<FdoBusiness>;
27
+ readBusinesses(country: string): Promise<FdoBusiness[]>;
9
28
  };
@@ -1,5 +1,5 @@
1
1
  import { type AxiosInstance, type AxiosResponse } from "axios";
2
- export declare const baseClientInstance: (url?: string) => AxiosInstance;
2
+ export declare const baseClientInstance: (url?: string, country?: string | undefined) => AxiosInstance;
3
3
  export declare const menuClientInstance: (url: string) => AxiosInstance;
4
4
  export declare const businessClientInstance: () => AxiosInstance;
5
5
  export declare const restaurantClientInstance: (restaurantId: any, prefix?: string) => AxiosInstance;
@@ -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;