@incomy/platform-sdk 0.4.0-91 → 0.4.0-96

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,7 +64,9 @@ 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 { UpdateProfileRequest } from './models/UpdateProfileRequest';
67
68
  export type { User } from './models/User';
69
+ export type { UserIdentity } from './models/UserIdentity';
68
70
  export type { WalletBalance } from './models/WalletBalance';
69
71
  export type { WalletBalancePaginatedList } from './models/WalletBalancePaginatedList';
70
72
  export { AuthService } from './services/AuthService';
@@ -0,0 +1,4 @@
1
+ export type UpdateProfileRequest = {
2
+ firstName?: string | null;
3
+ lastName?: string | null;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,10 @@
1
+ import type { UserIdentity } from './UserIdentity';
1
2
  export type User = {
2
3
  id?: string;
3
- auth0Id: string | null;
4
4
  email: string | null;
5
5
  firstName?: string | null;
6
6
  lastName?: string | null;
7
7
  avatar?: string | null;
8
+ identities?: Array<UserIdentity> | null;
8
9
  readonly name?: string | null;
9
10
  };
@@ -0,0 +1,10 @@
1
+ export type UserIdentity = {
2
+ auth0Id: string | null;
3
+ isCurrent?: boolean;
4
+ readonly provider?: string | null;
5
+ readonly providerDisplayName?: string | null;
6
+ email?: string | null;
7
+ firstName?: string | null;
8
+ lastName?: string | null;
9
+ avatar?: string | null;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,13 @@
1
+ import type { UpdateProfileRequest } from '../models/UpdateProfileRequest';
1
2
  import type { User } from '../models/User';
2
3
  import type { CancelablePromise } from '../core/CancelablePromise';
3
4
  export declare class AuthService {
5
+ /**
6
+ * @param auth0IdToUnlink
7
+ * @returns any OK
8
+ * @throws ApiError
9
+ */
10
+ static postAuthIdentitiesUnlink(auth0IdToUnlink: string): CancelablePromise<any>;
4
11
  /**
5
12
  * @param returnUrl
6
13
  * @returns any OK
@@ -18,4 +25,10 @@ export declare class AuthService {
18
25
  * @throws ApiError
19
26
  */
20
27
  static getAuthMe(): CancelablePromise<User>;
28
+ /**
29
+ * @param requestBody
30
+ * @returns User OK
31
+ * @throws ApiError
32
+ */
33
+ static postAuthMe(requestBody?: UpdateProfileRequest): CancelablePromise<User>;
21
34
  }
@@ -1,6 +1,20 @@
1
1
  import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
3
  export class AuthService {
4
+ /**
5
+ * @param auth0IdToUnlink
6
+ * @returns any OK
7
+ * @throws ApiError
8
+ */
9
+ static postAuthIdentitiesUnlink(auth0IdToUnlink) {
10
+ return __request(OpenAPI, {
11
+ method: 'POST',
12
+ url: '/auth/identities/{auth0IdToUnlink}/unlink',
13
+ path: {
14
+ 'auth0IdToUnlink': auth0IdToUnlink,
15
+ },
16
+ });
17
+ }
4
18
  /**
5
19
  * @param returnUrl
6
20
  * @returns any OK
@@ -39,4 +53,17 @@ export class AuthService {
39
53
  url: '/auth/me',
40
54
  });
41
55
  }
56
+ /**
57
+ * @param requestBody
58
+ * @returns User OK
59
+ * @throws ApiError
60
+ */
61
+ static postAuthMe(requestBody) {
62
+ return __request(OpenAPI, {
63
+ method: 'POST',
64
+ url: '/auth/me',
65
+ body: requestBody,
66
+ mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
67
+ });
68
+ }
42
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-91",
3
+ "version": "0.4.0-96",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [