ad2app-lib 1.0.6 → 1.0.8

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.
@@ -18,13 +18,13 @@ type FetchCallArgs<Q> = {
18
18
  export declare function fetchCall<T, Q>(args: FetchCallArgs<Q>): Promise<T>;
19
19
  type MethodCallArgs<Q> = [
20
20
  path: string,
21
- options: Omit<FetchCallArgs<Q>, "path" | "method">
21
+ options?: Omit<FetchCallArgs<Q>, "path" | "method">
22
22
  ];
23
23
  export declare function apiDriver(baseUrl?: string): {
24
- get: <T, Q>(path: string, options: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
25
- post: <T, Q>(path: string, options: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
26
- put: <T, Q>(path: string, options: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
27
- patch: <T, Q>(path: string, options: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
28
- delete: <T, Q>(path: string, options: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
24
+ get: <T, Q>(path: string, options?: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
25
+ post: <T, Q>(path: string, options?: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
26
+ put: <T, Q>(path: string, options?: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
27
+ patch: <T, Q>(path: string, options?: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
28
+ delete: <T, Q>(path: string, options?: Omit<FetchCallArgs<Q>, "path" | "method">) => Promise<T>;
29
29
  };
30
30
  export {};
@@ -4,6 +4,7 @@ export declare class I_User {
4
4
  email?: string;
5
5
  password?: string;
6
6
  role: UserRoles;
7
+ has_connected_platforms?: boolean;
7
8
  influencer?: I_Influencer;
8
9
  }
9
10
  export declare class I_SignedUser extends I_User {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ad2app-lib",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -76,7 +76,7 @@ export async function fetchCall<T, Q>(args: FetchCallArgs<Q>): Promise<T> {
76
76
 
77
77
  type MethodCallArgs<Q> = [
78
78
  path: string,
79
- options: Omit<FetchCallArgs<Q>, "path" | "method">
79
+ options?: Omit<FetchCallArgs<Q>, "path" | "method">
80
80
  ];
81
81
 
82
82
  export function apiDriver(baseUrl?: string) {
@@ -6,6 +6,7 @@ export class I_User {
6
6
  email?: string;
7
7
  password?: string;
8
8
  role: UserRoles;
9
+ has_connected_platforms?: boolean;
9
10
  influencer?: I_Influencer;
10
11
  }
11
12