@incomy/platform-sdk 0.4.0-71 → 0.4.0-82
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/services/hub/index.d.ts +2 -0
- package/dist/services/hub/index.js +1 -0
- package/dist/services/hub/models/User.d.ts +9 -0
- package/dist/services/hub/models/User.js +1 -0
- package/dist/services/hub/services/AuthService.d.ts +21 -0
- package/dist/services/hub/services/AuthService.js +42 -0
- package/package.json +1 -1
|
@@ -64,8 +64,10 @@ export type { TemplateInputDefinition } from './models/TemplateInputDefinition';
|
|
|
64
64
|
export type { TemplateInsert } from './models/TemplateInsert';
|
|
65
65
|
export type { TemplateOperationDefinition } from './models/TemplateOperationDefinition';
|
|
66
66
|
export type { TemplateSettlementDefinition } from './models/TemplateSettlementDefinition';
|
|
67
|
+
export type { User } from './models/User';
|
|
67
68
|
export type { WalletBalance } from './models/WalletBalance';
|
|
68
69
|
export type { WalletBalancePaginatedList } from './models/WalletBalancePaginatedList';
|
|
70
|
+
export { AuthService } from './services/AuthService';
|
|
69
71
|
export { BucketsService } from './services/BucketsService';
|
|
70
72
|
export { EntriesService } from './services/EntriesService';
|
|
71
73
|
export { LabelsService } from './services/LabelsService';
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export { ApiError } from './core/ApiError';
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
+
export { AuthService } from './services/AuthService';
|
|
8
9
|
export { BucketsService } from './services/BucketsService';
|
|
9
10
|
export { EntriesService } from './services/EntriesService';
|
|
10
11
|
export { LabelsService } from './services/LabelsService';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { User } from '../models/User';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class AuthService {
|
|
4
|
+
/**
|
|
5
|
+
* @param returnUrl
|
|
6
|
+
* @returns any OK
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static getAuthLogin(returnUrl?: string): CancelablePromise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* @param returnUrl
|
|
12
|
+
* @returns any OK
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static getAuthLogout(returnUrl?: string): CancelablePromise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* @returns User OK
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static getAuthMe(): CancelablePromise<User>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class AuthService {
|
|
4
|
+
/**
|
|
5
|
+
* @param returnUrl
|
|
6
|
+
* @returns any OK
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static getAuthLogin(returnUrl = '/') {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'GET',
|
|
12
|
+
url: '/auth/login',
|
|
13
|
+
query: {
|
|
14
|
+
'returnUrl': returnUrl,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @param returnUrl
|
|
20
|
+
* @returns any OK
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static getAuthLogout(returnUrl = '/') {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'GET',
|
|
26
|
+
url: '/auth/logout',
|
|
27
|
+
query: {
|
|
28
|
+
'returnUrl': returnUrl,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @returns User OK
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static getAuthMe() {
|
|
37
|
+
return __request(OpenAPI, {
|
|
38
|
+
method: 'GET',
|
|
39
|
+
url: '/auth/me',
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|