@incomy/platform-sdk 0.4.0-146 → 0.4.0-157

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.
@@ -14,6 +14,7 @@ export type { BucketBalance } from './models/BucketBalance';
14
14
  export type { BucketBreakdown } from './models/BucketBreakdown';
15
15
  export type { BucketEdit } from './models/BucketEdit';
16
16
  export type { BucketInsert } from './models/BucketInsert';
17
+ export type { BucketPaginatedList } from './models/BucketPaginatedList';
17
18
  export type { Icon } from './models/Icon';
18
19
  export type { InputFieldDefinition } from './models/InputFieldDefinition';
19
20
  export type { Label } from './models/Label';
@@ -67,6 +68,7 @@ export type { TemplateInputDefinition } from './models/TemplateInputDefinition';
67
68
  export type { TemplateInsert } from './models/TemplateInsert';
68
69
  export type { TemplateMultiEventDefinition } from './models/TemplateMultiEventDefinition';
69
70
  export type { TemplateOperationDefinition } from './models/TemplateOperationDefinition';
71
+ export type { TemplatePaginatedList } from './models/TemplatePaginatedList';
70
72
  export type { UpdateProfileRequest } from './models/UpdateProfileRequest';
71
73
  export type { User } from './models/User';
72
74
  export type { UserIdentity } from './models/UserIdentity';
@@ -0,0 +1,16 @@
1
+ import type { Bucket } from './Bucket';
2
+ export type BucketPaginatedList = {
3
+ /**
4
+ * Token item to start the next query from; Empty start from the beginning
5
+ */
6
+ next: string;
7
+ /**
8
+ * Estimated total count over all pages. -1 means the total count could not be determined.
9
+ */
10
+ totalCount?: number;
11
+ /**
12
+ * Results for the current query
13
+ */
14
+ items: Array<Bucket>;
15
+ meta?: Record<string, string | null> | null;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -3,4 +3,12 @@ export type Member = {
3
3
  id: string;
4
4
  name: string;
5
5
  balance?: Array<Money> | null;
6
+ /**
7
+ * Whether the member can be deleted. Null when not requested (see includeDeletability query param).
8
+ */
9
+ canDelete?: boolean | null;
10
+ /**
11
+ * Reason code why the member cannot be deleted. Null when it can be deleted or when not requested.
12
+ */
13
+ deleteBlockedReason?: 'hasAccruals' | 'ownsWalletWithEvents' | null;
6
14
  };
@@ -3,5 +3,14 @@ export type ProjectWallet = {
3
3
  id: string;
4
4
  name: string;
5
5
  ownerId?: string | null;
6
+ defaultCurrency?: string | null;
6
7
  balance?: Array<Money> | null;
8
+ /**
9
+ * Whether the wallet can be deleted. Null when not requested (see includeDeletability query param).
10
+ */
11
+ canDelete?: boolean | null;
12
+ /**
13
+ * Reason code why the wallet cannot be deleted. Null when it can be deleted or when not requested.
14
+ */
15
+ deleteBlockedReason?: 'hasAssociatedEvents' | null;
7
16
  };
@@ -1,5 +1,9 @@
1
1
  export type ProjectWalletEdit = {
2
2
  name?: string | null;
3
+ /**
4
+ * Pass empty string in order to clear the default currency.
5
+ */
6
+ defaultCurrency?: string | null;
3
7
  /**
4
8
  * Pass empty string in order to clear the owner.
5
9
  */
@@ -1,4 +1,5 @@
1
1
  export type ProjectWalletInsert = {
2
2
  name: string;
3
+ defaultCurrency?: string | null;
3
4
  ownerId?: string | null;
4
5
  };
@@ -0,0 +1,16 @@
1
+ import type { Template } from './Template';
2
+ export type TemplatePaginatedList = {
3
+ /**
4
+ * Token item to start the next query from; Empty start from the beginning
5
+ */
6
+ next: string;
7
+ /**
8
+ * Estimated total count over all pages. -1 means the total count could not be determined.
9
+ */
10
+ totalCount?: number;
11
+ /**
12
+ * Results for the current query
13
+ */
14
+ items: Array<Template>;
15
+ meta?: Record<string, string | null> | null;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,19 @@
1
1
  import type { Bucket } from '../models/Bucket';
2
2
  import type { BucketEdit } from '../models/BucketEdit';
3
3
  import type { BucketInsert } from '../models/BucketInsert';
4
+ import type { BucketPaginatedList } from '../models/BucketPaginatedList';
4
5
  import type { CancelablePromise } from '../core/CancelablePromise';
5
6
  export declare class BucketsService {
6
7
  /**
7
8
  * @param projectId
8
- * @returns Bucket OK
9
+ * @param query
10
+ * @param orderByName
11
+ * @param limit
12
+ * @param next
13
+ * @returns BucketPaginatedList OK
9
14
  * @throws ApiError
10
15
  */
11
- static getProjectsBuckets(projectId: string): CancelablePromise<Array<Bucket>>;
16
+ static getProjectsBuckets(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<BucketPaginatedList>;
12
17
  /**
13
18
  * @param projectId
14
19
  * @param requestBody
@@ -3,16 +3,26 @@ import { request as __request } from '../core/request';
3
3
  export class BucketsService {
4
4
  /**
5
5
  * @param projectId
6
- * @returns Bucket OK
6
+ * @param query
7
+ * @param orderByName
8
+ * @param limit
9
+ * @param next
10
+ * @returns BucketPaginatedList OK
7
11
  * @throws ApiError
8
12
  */
9
- static getProjectsBuckets(projectId) {
13
+ static getProjectsBuckets(projectId, query, orderByName, limit = 100, next) {
10
14
  return __request(OpenAPI, {
11
15
  method: 'GET',
12
16
  url: '/projects/{projectId}/buckets',
13
17
  path: {
14
18
  'projectId': projectId,
15
19
  },
20
+ query: {
21
+ 'query': query,
22
+ 'orderByName': orderByName,
23
+ 'limit': limit,
24
+ 'next': next,
25
+ },
16
26
  });
17
27
  }
18
28
  /**
@@ -12,10 +12,11 @@ export declare class MembersService {
12
12
  * @param limit
13
13
  * @param next
14
14
  * @param includeBalance
15
+ * @param includeDeletability
15
16
  * @returns MemberPaginatedList OK
16
17
  * @throws ApiError
17
18
  */
18
- static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean): CancelablePromise<MemberPaginatedList>;
19
+ static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean, includeDeletability?: boolean): CancelablePromise<MemberPaginatedList>;
19
20
  /**
20
21
  * @param projectId
21
22
  * @param requestBody
@@ -26,10 +27,11 @@ export declare class MembersService {
26
27
  /**
27
28
  * @param projectId
28
29
  * @param memberId
30
+ * @param includeDeletability
29
31
  * @returns Member OK
30
32
  * @throws ApiError
31
33
  */
32
- static getProjectsMembers1(projectId: string, memberId: string): CancelablePromise<Member>;
34
+ static getProjectsMembers1(projectId: string, memberId: string, includeDeletability?: boolean): CancelablePromise<Member>;
33
35
  /**
34
36
  * @param projectId
35
37
  * @param memberId
@@ -8,10 +8,11 @@ export class MembersService {
8
8
  * @param limit
9
9
  * @param next
10
10
  * @param includeBalance
11
+ * @param includeDeletability
11
12
  * @returns MemberPaginatedList OK
12
13
  * @throws ApiError
13
14
  */
14
- static getProjectsMembers(projectId, query, orderByName, limit = 100, next, includeBalance = false) {
15
+ static getProjectsMembers(projectId, query, orderByName, limit = 100, next, includeBalance = false, includeDeletability = false) {
15
16
  return __request(OpenAPI, {
16
17
  method: 'GET',
17
18
  url: '/projects/{projectId}/members',
@@ -24,6 +25,7 @@ export class MembersService {
24
25
  'limit': limit,
25
26
  'next': next,
26
27
  'includeBalance': includeBalance,
28
+ 'includeDeletability': includeDeletability,
27
29
  },
28
30
  });
29
31
  }
@@ -47,10 +49,11 @@ export class MembersService {
47
49
  /**
48
50
  * @param projectId
49
51
  * @param memberId
52
+ * @param includeDeletability
50
53
  * @returns Member OK
51
54
  * @throws ApiError
52
55
  */
53
- static getProjectsMembers1(projectId, memberId) {
56
+ static getProjectsMembers1(projectId, memberId, includeDeletability = false) {
54
57
  return __request(OpenAPI, {
55
58
  method: 'GET',
56
59
  url: '/projects/{projectId}/members/{memberId}',
@@ -58,6 +61,9 @@ export class MembersService {
58
61
  'projectId': projectId,
59
62
  'memberId': memberId,
60
63
  },
64
+ query: {
65
+ 'includeDeletability': includeDeletability,
66
+ },
61
67
  });
62
68
  }
63
69
  /**
@@ -12,10 +12,11 @@ export declare class ProjectWalletsService {
12
12
  * @param limit
13
13
  * @param next
14
14
  * @param includeBalance
15
+ * @param includeDeletability
15
16
  * @returns ProjectWalletPaginatedList OK
16
17
  * @throws ApiError
17
18
  */
18
- static getProjectsWallets(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean): CancelablePromise<ProjectWalletPaginatedList>;
19
+ static getProjectsWallets(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean, includeDeletability?: boolean): CancelablePromise<ProjectWalletPaginatedList>;
19
20
  /**
20
21
  * @param projectId
21
22
  * @param requestBody
@@ -26,10 +27,11 @@ export declare class ProjectWalletsService {
26
27
  /**
27
28
  * @param projectId
28
29
  * @param walletId
30
+ * @param includeDeletability
29
31
  * @returns ProjectWallet OK
30
32
  * @throws ApiError
31
33
  */
32
- static getProjectsWallets1(projectId: string, walletId: string): CancelablePromise<ProjectWallet>;
34
+ static getProjectsWallets1(projectId: string, walletId: string, includeDeletability?: boolean): CancelablePromise<ProjectWallet>;
33
35
  /**
34
36
  * @param projectId
35
37
  * @param walletId
@@ -8,10 +8,11 @@ export class ProjectWalletsService {
8
8
  * @param limit
9
9
  * @param next
10
10
  * @param includeBalance
11
+ * @param includeDeletability
11
12
  * @returns ProjectWalletPaginatedList OK
12
13
  * @throws ApiError
13
14
  */
14
- static getProjectsWallets(projectId, query, orderByName, limit = 10, next, includeBalance = false) {
15
+ static getProjectsWallets(projectId, query, orderByName, limit = 10, next, includeBalance = false, includeDeletability = false) {
15
16
  return __request(OpenAPI, {
16
17
  method: 'GET',
17
18
  url: '/projects/{projectId}/wallets',
@@ -24,6 +25,7 @@ export class ProjectWalletsService {
24
25
  'limit': limit,
25
26
  'next': next,
26
27
  'includeBalance': includeBalance,
28
+ 'includeDeletability': includeDeletability,
27
29
  },
28
30
  });
29
31
  }
@@ -47,10 +49,11 @@ export class ProjectWalletsService {
47
49
  /**
48
50
  * @param projectId
49
51
  * @param walletId
52
+ * @param includeDeletability
50
53
  * @returns ProjectWallet OK
51
54
  * @throws ApiError
52
55
  */
53
- static getProjectsWallets1(projectId, walletId) {
56
+ static getProjectsWallets1(projectId, walletId, includeDeletability = false) {
54
57
  return __request(OpenAPI, {
55
58
  method: 'GET',
56
59
  url: '/projects/{projectId}/wallets/{walletId}',
@@ -58,6 +61,9 @@ export class ProjectWalletsService {
58
61
  'projectId': projectId,
59
62
  'walletId': walletId,
60
63
  },
64
+ query: {
65
+ 'includeDeletability': includeDeletability,
66
+ },
61
67
  });
62
68
  }
63
69
  /**
@@ -1,14 +1,19 @@
1
1
  import type { Template } from '../models/Template';
2
2
  import type { TemplateEdit } from '../models/TemplateEdit';
3
3
  import type { TemplateInsert } from '../models/TemplateInsert';
4
+ import type { TemplatePaginatedList } from '../models/TemplatePaginatedList';
4
5
  import type { CancelablePromise } from '../core/CancelablePromise';
5
6
  export declare class TemplatesService {
6
7
  /**
7
8
  * @param projectId
8
- * @returns Template OK
9
+ * @param query
10
+ * @param orderByName
11
+ * @param limit
12
+ * @param next
13
+ * @returns TemplatePaginatedList OK
9
14
  * @throws ApiError
10
15
  */
11
- static getProjectsTemplates(projectId: string): CancelablePromise<Array<Template>>;
16
+ static getProjectsTemplates(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<TemplatePaginatedList>;
12
17
  /**
13
18
  * @param projectId
14
19
  * @param requestBody
@@ -3,16 +3,26 @@ import { request as __request } from '../core/request';
3
3
  export class TemplatesService {
4
4
  /**
5
5
  * @param projectId
6
- * @returns Template OK
6
+ * @param query
7
+ * @param orderByName
8
+ * @param limit
9
+ * @param next
10
+ * @returns TemplatePaginatedList OK
7
11
  * @throws ApiError
8
12
  */
9
- static getProjectsTemplates(projectId) {
13
+ static getProjectsTemplates(projectId, query, orderByName, limit = 100, next) {
10
14
  return __request(OpenAPI, {
11
15
  method: 'GET',
12
16
  url: '/projects/{projectId}/templates',
13
17
  path: {
14
18
  'projectId': projectId,
15
19
  },
20
+ query: {
21
+ 'query': query,
22
+ 'orderByName': orderByName,
23
+ 'limit': limit,
24
+ 'next': next,
25
+ },
16
26
  });
17
27
  }
18
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-146",
3
+ "version": "0.4.0-157",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [