@incomy/platform-sdk 0.4.0-beta.2001 → 0.5.0-beta.2075

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.
@@ -77,6 +77,8 @@ export type { TemplatePaginatedList } from './models/TemplatePaginatedList';
77
77
  export type { UpdateProfileRequest } from './models/UpdateProfileRequest';
78
78
  export type { User } from './models/User';
79
79
  export type { UserIdentity } from './models/UserIdentity';
80
+ export type { UserSettings } from './models/UserSettings';
81
+ export type { UserSettingsEdit } from './models/UserSettingsEdit';
80
82
  export type { WalletBalance } from './models/WalletBalance';
81
83
  export type { WalletBalancePaginatedList } from './models/WalletBalancePaginatedList';
82
84
  export { AccrualsService } from './services/AccrualsService';
@@ -91,3 +93,4 @@ export { OperationsService } from './services/OperationsService';
91
93
  export { ProjectsService } from './services/ProjectsService';
92
94
  export { ProjectWalletsService } from './services/ProjectWalletsService';
93
95
  export { TemplatesService } from './services/TemplatesService';
96
+ export { UserSettingsService } from './services/UserSettingsService';
@@ -17,3 +17,4 @@ export { OperationsService } from './services/OperationsService';
17
17
  export { ProjectsService } from './services/ProjectsService';
18
18
  export { ProjectWalletsService } from './services/ProjectWalletsService';
19
19
  export { TemplatesService } from './services/TemplatesService';
20
+ export { UserSettingsService } from './services/UserSettingsService';
@@ -2,6 +2,7 @@ import type { BucketBreakdown } from './BucketBreakdown';
2
2
  import type { Money } from './Money';
3
3
  export type Accrual = {
4
4
  bucketBreakdown?: Array<BucketBreakdown> | null;
5
+ companyId?: string | null;
5
6
  /**
6
7
  * If set, record will be deleted when unlined from a multievent or when linked multievent is deleted.
7
8
  */
@@ -2,6 +2,10 @@ import type { BucketBreakdown } from './BucketBreakdown';
2
2
  import type { Money } from './Money';
3
3
  export type AccrualEdit = {
4
4
  bucketBreakdown?: Array<BucketBreakdown> | null;
5
+ /**
6
+ * Set to "" in order to clear.
7
+ */
8
+ companyId?: string | null;
5
9
  /**
6
10
  * If set, record will be deleted when unlined from a multievent or when linked multievent is deleted.
7
11
  */
@@ -2,6 +2,7 @@ import type { BucketBreakdown } from './BucketBreakdown';
2
2
  import type { Money } from './Money';
3
3
  export type AccrualInsert = {
4
4
  bucketBreakdown?: Array<BucketBreakdown> | null;
5
+ companyId?: string | null;
5
6
  /**
6
7
  * If set, record will be deleted when unlined from a multievent or when linked multievent is deleted.
7
8
  */
@@ -4,6 +4,7 @@ import type { Money } from './Money';
4
4
  export type LogAccrual = {
5
5
  balance?: BalanceReport;
6
6
  bucketBreakdown?: Array<BucketBreakdown> | null;
7
+ companyId?: string | null;
7
8
  /**
8
9
  * If set, record will be deleted when unlined from a multievent or when linked multievent is deleted.
9
10
  */
@@ -13,7 +13,9 @@ export type LogOperation = {
13
13
  money: Money;
14
14
  multiEventId?: string | null;
15
15
  name: string;
16
+ originCompanyId?: string | null;
16
17
  originWalletId?: string | null;
18
+ targetCompanyId?: string | null;
17
19
  targetWalletId?: string | null;
18
20
  time: string;
19
21
  type: 'in' | 'out' | 'transfer';
@@ -11,7 +11,9 @@ export type Operation = {
11
11
  money: Money;
12
12
  multiEventId?: string | null;
13
13
  name: string;
14
+ originCompanyId?: string | null;
14
15
  originWalletId?: string | null;
16
+ targetCompanyId?: string | null;
15
17
  targetWalletId?: string | null;
16
18
  time: string;
17
19
  type: 'in' | 'out' | 'transfer';
@@ -13,10 +13,18 @@ export type OperationEdit = {
13
13
  */
14
14
  multiEventId?: string | null;
15
15
  name?: string | null;
16
+ /**
17
+ * Set to "" in order to clear.
18
+ */
19
+ originCompanyId?: string | null;
16
20
  /**
17
21
  * Set to "" in order to clear.
18
22
  */
19
23
  originWalletId?: string | null;
24
+ /**
25
+ * Set to "" in order to clear.
26
+ */
27
+ targetCompanyId?: string | null;
20
28
  /**
21
29
  * Set to "" in order to clear.
22
30
  */
@@ -10,7 +10,9 @@ export type OperationInsert = {
10
10
  money: Money;
11
11
  multiEventId?: string | null;
12
12
  name: string;
13
+ originCompanyId?: string | null;
13
14
  originWalletId?: string | null;
15
+ targetCompanyId?: string | null;
14
16
  targetWalletId?: string | null;
15
17
  /**
16
18
  * MultiEvent time will be used if left empty
@@ -1,8 +1,4 @@
1
1
  export type UpdateProfileRequest = {
2
2
  firstName?: string | null;
3
- /**
4
- * Preferred UI language as a lowercase ISO 639-1 code. Only the supported locales are accepted.
5
- */
6
- language?: string | null;
7
3
  lastName?: string | null;
8
4
  };
@@ -5,11 +5,6 @@ export type User = {
5
5
  firstName?: string | null;
6
6
  id?: string;
7
7
  identities?: Array<UserIdentity> | null;
8
- /**
9
- * Preferred UI language as a lowercase ISO 639-1 code (e.g. "en", "pl").
10
- * Null means the user has not chosen one; the client falls back to the browser language.
11
- */
12
- language?: string | null;
13
8
  lastName?: string | null;
14
9
  readonly name?: string | null;
15
10
  };
@@ -1,10 +1,14 @@
1
1
  export type UserIdentity = {
2
- auth0Id: string | null;
3
2
  avatar?: string | null;
4
3
  email?: string | null;
5
4
  firstName?: string | null;
5
+ /**
6
+ * Surrogate identifier of this identity link. Stable across logins and used to address the
7
+ * identity (e.g. when unlinking). The raw external subject is intentionally not exposed.
8
+ */
9
+ id?: string;
6
10
  isCurrent?: boolean;
7
11
  lastName?: string | null;
8
- readonly provider?: string | null;
12
+ provider: string | null;
9
13
  readonly providerDisplayName?: string | null;
10
14
  };
@@ -0,0 +1,4 @@
1
+ export type UserSettings = {
2
+ language?: string | null;
3
+ timezone?: string | null;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type UserSettingsEdit = {
2
+ language?: string | null;
3
+ timezone?: string | null;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -3,11 +3,11 @@ import type { User } from '../models/User';
3
3
  import type { CancelablePromise } from '../core/CancelablePromise';
4
4
  export declare class AuthService {
5
5
  /**
6
- * @param auth0IdToUnlink
6
+ * @param identityId
7
7
  * @returns any OK
8
8
  * @throws ApiError
9
9
  */
10
- static postAuthIdentitiesUnlink(auth0IdToUnlink: string): CancelablePromise<any>;
10
+ static postAuthIdentitiesUnlink(identityId: string): CancelablePromise<any>;
11
11
  /**
12
12
  * @param returnUrl
13
13
  * @returns any OK
@@ -2,16 +2,16 @@ import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
3
  export class AuthService {
4
4
  /**
5
- * @param auth0IdToUnlink
5
+ * @param identityId
6
6
  * @returns any OK
7
7
  * @throws ApiError
8
8
  */
9
- static postAuthIdentitiesUnlink(auth0IdToUnlink) {
9
+ static postAuthIdentitiesUnlink(identityId) {
10
10
  return __request(OpenAPI, {
11
11
  method: 'POST',
12
- url: '/auth/identities/{auth0IdToUnlink}/unlink',
12
+ url: '/auth/identities/{identityId}/unlink',
13
13
  path: {
14
- 'auth0IdToUnlink': auth0IdToUnlink,
14
+ 'identityId': identityId,
15
15
  },
16
16
  });
17
17
  }
@@ -0,0 +1,16 @@
1
+ import type { UserSettings } from '../models/UserSettings';
2
+ import type { UserSettingsEdit } from '../models/UserSettingsEdit';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class UserSettingsService {
5
+ /**
6
+ * @returns UserSettings OK
7
+ * @throws ApiError
8
+ */
9
+ static getUsersMeSettings(): CancelablePromise<UserSettings>;
10
+ /**
11
+ * @param requestBody
12
+ * @returns UserSettings OK
13
+ * @throws ApiError
14
+ */
15
+ static patchUsersMeSettings(requestBody?: UserSettingsEdit): CancelablePromise<UserSettings>;
16
+ }
@@ -0,0 +1,27 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class UserSettingsService {
4
+ /**
5
+ * @returns UserSettings OK
6
+ * @throws ApiError
7
+ */
8
+ static getUsersMeSettings() {
9
+ return __request(OpenAPI, {
10
+ method: 'GET',
11
+ url: '/users/me/settings',
12
+ });
13
+ }
14
+ /**
15
+ * @param requestBody
16
+ * @returns UserSettings OK
17
+ * @throws ApiError
18
+ */
19
+ static patchUsersMeSettings(requestBody) {
20
+ return __request(OpenAPI, {
21
+ method: 'PATCH',
22
+ url: '/users/me/settings',
23
+ body: requestBody,
24
+ mediaType: 'application/json',
25
+ });
26
+ }
27
+ }
package/meta.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
- "sdkVersion": "0.4.0-beta.2001",
3
- "generatedAt": "2026-06-26T21:06:05.155Z",
4
- "apiCommit": "4f2a29d7",
5
- "pipelineUrl": "https://gitlab.com/incomy/platform/-/pipelines/2632900221",
2
+ "sdkVersion": "0.5.0-beta.2075",
3
+ "generatedAt": "2026-06-28T14:57:47.783Z",
4
+ "apiCommit": "ff9810a6",
5
+ "pipelineUrl": "https://gitlab.com/incomy/platform/-/pipelines/2635127130",
6
6
  "sources": {
7
7
  "hub": {
8
- "sha256": "db56e9ea7e70f27b4681ff0437208f90663024ce412985e3edf06463f46eea70"
8
+ "sha256": "f34d7a263e1fadb8f8b8caad8fed7d6edf3d69e27767e4e737f8b9bee71055b5"
9
9
  }
10
10
  }
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-beta.2001",
3
+ "version": "0.5.0-beta.2075",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [