@incomy/platform-sdk 0.4.0-73 → 0.4.0-83

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.
@@ -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,9 @@
1
+ export type User = {
2
+ id?: string;
3
+ auth0Id: string | null;
4
+ email: string | null;
5
+ firstName?: string | null;
6
+ lastName?: string | null;
7
+ avatar?: string | null;
8
+ readonly name?: string | null;
9
+ };
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-73",
3
+ "version": "0.4.0-83",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [