@adtrackify/at-service-common 1.0.24 → 1.0.26
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.
- package/dist/index.d.ts +13 -15
- package/dist/index.js +91 -16
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/clients/internal-api/accounts-client.ts +7 -7
- package/src/clients/internal-api/destinations-client.ts +10 -11
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -7,6 +7,12 @@ import { axiosHttpService } from '../generic/http-client';
|
|
|
7
7
|
//const SERVICE_API_ROOT_URL = `${BASE_API_URL}/accounts`;
|
|
8
8
|
//const ACCOUNTS_API_KEY = process.env.ACCOUNTS_API_KEY;
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
export interface IsAuthorizedUserResponseData {
|
|
12
|
+
isAccountUser: boolean;
|
|
13
|
+
[ key: string ]: any;
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
export class AccountsClient {
|
|
11
17
|
public BASE_API_URL: string;
|
|
12
18
|
public ACCOUNTS_API_KEY: string;
|
|
@@ -41,10 +47,4 @@ export class AccountsClient {
|
|
|
41
47
|
log.info('checkUserAuthorization', { response });
|
|
42
48
|
return response as ApiResponse<IsAuthorizedUserResponseData>;
|
|
43
49
|
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface IsAuthorizedUserResponseData {
|
|
47
|
-
isAccountUser: boolean;
|
|
48
|
-
[ key: string ]: any;
|
|
49
|
-
}
|
|
50
|
-
export default AccountsClient;
|
|
50
|
+
}
|
|
@@ -5,6 +5,16 @@ import { Destination } from '../../types/db/destination';
|
|
|
5
5
|
//const BASE_API_URL = process.env.BASE_API_URL;
|
|
6
6
|
//const DESTINATIONS_API_KEY = process.env.DESTINATIONS_API_KEY;
|
|
7
7
|
|
|
8
|
+
export interface GetDestinationsResponseData {
|
|
9
|
+
destinations: Destination[];
|
|
10
|
+
[ key: string ]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface CreateDestinationResponseData {
|
|
13
|
+
destination: Destination;
|
|
14
|
+
[ key: string ]: any;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
8
18
|
export class DestinationsClient {
|
|
9
19
|
|
|
10
20
|
public BASE_API_URL: string;
|
|
@@ -45,14 +55,3 @@ export class DestinationsClient {
|
|
|
45
55
|
return response as ApiResponse<GetDestinationsResponseData>;
|
|
46
56
|
};
|
|
47
57
|
}
|
|
48
|
-
|
|
49
|
-
export interface GetDestinationsResponseData {
|
|
50
|
-
destinations: Destination[];
|
|
51
|
-
[ key: string ]: any;
|
|
52
|
-
}
|
|
53
|
-
export interface CreateDestinationResponseData {
|
|
54
|
-
destination: Destination;
|
|
55
|
-
[ key: string ]: any;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export default DestinationsClient;
|
package/src/index.ts
CHANGED