@evergis/api 3.0.201 → 3.0.203

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.
@@ -1 +1,3 @@
1
1
  export declare const API_USER_INFO_KEY = "@evergis/user-info";
2
+ export declare const STORAGE_TOKEN_KEY = "evergis-jwt-token";
3
+ export declare const STORAGE_REFRESH_TOKEN_KEY = "evergis-refresh-token";
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- export * from './Api';
2
- export * from './ApiEvent';
3
- export * from './SpatialProcessor';
4
- export * from './services';
5
- export * from './layers';
6
- export * from './types';
7
- export * from './utils';
8
- export * from './__generated__/HttpClient';
9
- export * from './__generated__/data-contracts';
1
+ export * from "./Api";
2
+ export * from "./ApiEvent";
3
+ export * from "./SpatialProcessor";
4
+ export * from "./services";
5
+ export * from "./layers";
6
+ export * from "./types";
7
+ export * from "./utils";
8
+ export * from "./__generated__/HttpClient";
9
+ export * from "./__generated__/data-contracts";
10
+ export { STORAGE_TOKEN_KEY, STORAGE_REFRESH_TOKEN_KEY } from "./constants";
@@ -25,7 +25,7 @@ export declare type UserInfoWithPhoto = UserInfoDc & {
25
25
  };
26
26
  export declare class Account extends AccountService {
27
27
  private userInfo?;
28
- login(params?: LoginDc, authParams?: AuthenticateParams): void;
28
+ login(params?: LoginDc, authParams?: AuthenticateParams): Promise<void>;
29
29
  fetchCurrentUser(): Promise<Partial<UserInfoWithPhoto>>;
30
30
  get username(): string;
31
31
  logout(): Promise<void>;
@@ -1,8 +1,8 @@
1
1
  import { StatisticService } from '../__generated__/StatisticService';
2
- import { ClassifyDc, ClassifyParams7, GetClassifyDc, GetStatisticsDc, StatisticsDbParams, StatisticsDc } from "../__generated__/data-contracts";
2
+ import { ClassifyDc, ClassifyParams5, GetClassifyDc, GetStatisticsDc, StatisticsDbParams, StatisticsDc } from "../__generated__/data-contracts";
3
3
  export declare class Statistic extends StatisticService {
4
4
  getStatistic(params: StatisticsDbParams): Promise<StatisticsDc>;
5
5
  postStatistic(params: GetStatisticsDc): Promise<StatisticsDc>;
6
- getClassify(params: ClassifyParams7): Promise<ClassifyDc>;
6
+ getClassify(params: ClassifyParams5): Promise<ClassifyDc>;
7
7
  postClassify(params: GetClassifyDc): Promise<ClassifyDc>;
8
8
  }
@@ -1,9 +1,10 @@
1
- export * from './errorHandler';
2
- export * from './formDataFromFile';
3
- export * from './guards';
4
- export * from './isString';
5
- export * from './location';
6
- export * from './promiseAllIgnoreErrors';
7
- export * from './unique';
8
- export * from './generateId';
9
- export * from './stripUselessSlashes';
1
+ export * from "./errorHandler";
2
+ export * from "./formDataFromFile";
3
+ export * from "./guards";
4
+ export * from "./isString";
5
+ export * from "./location";
6
+ export * from "./parseJwt";
7
+ export * from "./promiseAllIgnoreErrors";
8
+ export * from "./unique";
9
+ export * from "./generateId";
10
+ export * from "./stripUselessSlashes";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.201",
2
+ "version": "3.0.203",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -45,5 +45,5 @@
45
45
  "devDependencies": {
46
46
  "@evergis/sgis": "^0.5.0-alpha.68"
47
47
  },
48
- "gitHead": "7e00ef6063908dfd051e2beebf2e068e23b549a5"
48
+ "gitHead": "187b15529b2b80e92137845f1810b8d6c145a5fc"
49
49
  }
@@ -1,2 +0,0 @@
1
- export declare const STORAGE_TOKEN_KEY = "evergis-jwt-token";
2
- export declare const STORAGE_REFRESH_TOKEN_KEY = "evergis-refresh-token";