@incomy/platform-sdk 0.0.0-406f4e34 → 0.0.0-421ff638

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.
Files changed (29) hide show
  1. package/dist/services/core/index.d.ts +8 -8
  2. package/dist/services/core/index.js +2 -2
  3. package/dist/services/core/models/InputFieldDefinition.d.ts +1 -1
  4. package/dist/services/core/models/{Group.d.ts → Project.d.ts} +1 -1
  5. package/dist/services/core/models/{GroupEdit.d.ts → ProjectEdit.d.ts} +1 -1
  6. package/dist/services/core/models/ProjectInsert.d.ts +3 -0
  7. package/dist/services/core/models/{GroupWallet.d.ts → ProjectWallet.d.ts} +1 -1
  8. package/dist/services/core/models/{GroupWalletEdit.d.ts → ProjectWalletEdit.d.ts} +1 -1
  9. package/dist/services/core/models/{GroupWalletInsert.d.ts → ProjectWalletInsert.d.ts} +1 -1
  10. package/dist/services/core/services/BucketsService.d.ts +10 -10
  11. package/dist/services/core/services/BucketsService.js +20 -20
  12. package/dist/services/core/services/EntriesService.d.ts +10 -10
  13. package/dist/services/core/services/EntriesService.js +20 -20
  14. package/dist/services/core/services/ProjectWalletsService.d.ts +49 -0
  15. package/dist/services/core/services/{GroupWalletsService.js → ProjectWalletsService.js} +29 -29
  16. package/dist/services/core/services/ProjectsService.d.ts +89 -0
  17. package/dist/services/core/services/{GroupsService.js → ProjectsService.js} +49 -49
  18. package/dist/services/core/services/TemplatesService.d.ts +10 -10
  19. package/dist/services/core/services/TemplatesService.js +20 -20
  20. package/package.json +1 -1
  21. package/dist/services/core/models/GroupInsert.d.ts +0 -3
  22. package/dist/services/core/services/GroupWalletsService.d.ts +0 -49
  23. package/dist/services/core/services/GroupsService.d.ts +0 -89
  24. /package/dist/services/core/models/{Group.js → Project.js} +0 -0
  25. /package/dist/services/core/models/{GroupEdit.js → ProjectEdit.js} +0 -0
  26. /package/dist/services/core/models/{GroupInsert.js → ProjectInsert.js} +0 -0
  27. /package/dist/services/core/models/{GroupWallet.js → ProjectWallet.js} +0 -0
  28. /package/dist/services/core/models/{GroupWalletEdit.js → ProjectWalletEdit.js} +0 -0
  29. /package/dist/services/core/models/{GroupWalletInsert.js → ProjectWalletInsert.js} +0 -0
@@ -13,12 +13,6 @@ export type { BucketInsert } from './models/BucketInsert';
13
13
  export type { Entry } from './models/Entry';
14
14
  export type { EntryEdit } from './models/EntryEdit';
15
15
  export type { EntryInsert } from './models/EntryInsert';
16
- export type { Group } from './models/Group';
17
- export type { GroupEdit } from './models/GroupEdit';
18
- export type { GroupInsert } from './models/GroupInsert';
19
- export type { GroupWallet } from './models/GroupWallet';
20
- export type { GroupWalletEdit } from './models/GroupWalletEdit';
21
- export type { GroupWalletInsert } from './models/GroupWalletInsert';
22
16
  export type { InputFieldDefinition } from './models/InputFieldDefinition';
23
17
  export type { Member } from './models/Member';
24
18
  export type { MemberBalanceReport } from './models/MemberBalanceReport';
@@ -29,6 +23,12 @@ export type { MoneyExpression } from './models/MoneyExpression';
29
23
  export type { Operation } from './models/Operation';
30
24
  export type { OperationEdit } from './models/OperationEdit';
31
25
  export type { OperationInsert } from './models/OperationInsert';
26
+ export type { Project } from './models/Project';
27
+ export type { ProjectEdit } from './models/ProjectEdit';
28
+ export type { ProjectInsert } from './models/ProjectInsert';
29
+ export type { ProjectWallet } from './models/ProjectWallet';
30
+ export type { ProjectWalletEdit } from './models/ProjectWalletEdit';
31
+ export type { ProjectWalletInsert } from './models/ProjectWalletInsert';
32
32
  export type { Settlement } from './models/Settlement';
33
33
  export type { SettlementEdit } from './models/SettlementEdit';
34
34
  export type { SettlementInsert } from './models/SettlementInsert';
@@ -47,6 +47,6 @@ export type { TemplateSettlementDefinition } from './models/TemplateSettlementDe
47
47
  export type { WalletBalance } from './models/WalletBalance';
48
48
  export { BucketsService } from './services/BucketsService';
49
49
  export { EntriesService } from './services/EntriesService';
50
- export { GroupsService } from './services/GroupsService';
51
- export { GroupWalletsService } from './services/GroupWalletsService';
50
+ export { ProjectsService } from './services/ProjectsService';
51
+ export { ProjectWalletsService } from './services/ProjectWalletsService';
52
52
  export { TemplatesService } from './services/TemplatesService';
@@ -7,6 +7,6 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
8
  export { BucketsService } from './services/BucketsService';
9
9
  export { EntriesService } from './services/EntriesService';
10
- export { GroupsService } from './services/GroupsService';
11
- export { GroupWalletsService } from './services/GroupWalletsService';
10
+ export { ProjectsService } from './services/ProjectsService';
11
+ export { ProjectWalletsService } from './services/ProjectWalletsService';
12
12
  export { TemplatesService } from './services/TemplatesService';
@@ -1,6 +1,6 @@
1
1
  export type InputFieldDefinition = {
2
2
  id: string;
3
3
  name: string;
4
- type: 'string' | 'number' | 'boolean';
4
+ type: 'string' | 'number' | 'boolean' | 'member' | 'bucket' | 'wallet' | 'currency';
5
5
  defaultValue?: string | null;
6
6
  };
@@ -1,4 +1,4 @@
1
- export type Group = {
1
+ export type Project = {
2
2
  id: string;
3
3
  name: string;
4
4
  };
@@ -1,3 +1,3 @@
1
- export type GroupEdit = {
1
+ export type ProjectEdit = {
2
2
  name?: string | null;
3
3
  };
@@ -0,0 +1,3 @@
1
+ export type ProjectInsert = {
2
+ name: string;
3
+ };
@@ -1,4 +1,4 @@
1
- export type GroupWallet = {
1
+ export type ProjectWallet = {
2
2
  id: string;
3
3
  name: string;
4
4
  ownerId?: string | null;
@@ -1,4 +1,4 @@
1
- export type GroupWalletEdit = {
1
+ export type ProjectWalletEdit = {
2
2
  name?: string | null;
3
3
  /**
4
4
  * Pass empty string in order to clear the owner.
@@ -1,4 +1,4 @@
1
- export type GroupWalletInsert = {
1
+ export type ProjectWalletInsert = {
2
2
  name: string;
3
3
  ownerId?: string | null;
4
4
  };
@@ -4,38 +4,38 @@ import type { BucketInsert } from '../models/BucketInsert';
4
4
  import type { CancelablePromise } from '../core/CancelablePromise';
5
5
  export declare class BucketsService {
6
6
  /**
7
- * @param groupId
7
+ * @param projectId
8
8
  * @returns Bucket OK
9
9
  * @throws ApiError
10
10
  */
11
- static getGroupsBuckets(groupId: string): CancelablePromise<Array<Bucket>>;
11
+ static getProjectsBuckets(projectId: string): CancelablePromise<Array<Bucket>>;
12
12
  /**
13
- * @param groupId
13
+ * @param projectId
14
14
  * @param requestBody
15
15
  * @returns Bucket OK
16
16
  * @throws ApiError
17
17
  */
18
- static postGroupsBuckets(groupId: string, requestBody?: BucketInsert): CancelablePromise<Bucket>;
18
+ static postProjectsBuckets(projectId: string, requestBody?: BucketInsert): CancelablePromise<Bucket>;
19
19
  /**
20
- * @param groupId
20
+ * @param projectId
21
21
  * @param bucketId
22
22
  * @returns Bucket OK
23
23
  * @throws ApiError
24
24
  */
25
- static getGroupsBuckets1(groupId: string, bucketId: string): CancelablePromise<Bucket>;
25
+ static getProjectsBuckets1(projectId: string, bucketId: string): CancelablePromise<Bucket>;
26
26
  /**
27
- * @param groupId
27
+ * @param projectId
28
28
  * @param bucketId
29
29
  * @param requestBody
30
30
  * @returns Bucket OK
31
31
  * @throws ApiError
32
32
  */
33
- static patchGroupsBuckets(groupId: string, bucketId: string, requestBody?: BucketEdit): CancelablePromise<Bucket>;
33
+ static patchProjectsBuckets(projectId: string, bucketId: string, requestBody?: BucketEdit): CancelablePromise<Bucket>;
34
34
  /**
35
- * @param groupId
35
+ * @param projectId
36
36
  * @param bucketId
37
37
  * @returns any OK
38
38
  * @throws ApiError
39
39
  */
40
- static deleteGroupsBuckets(groupId: string, bucketId: string): CancelablePromise<any>;
40
+ static deleteProjectsBuckets(projectId: string, bucketId: string): CancelablePromise<any>;
41
41
  }
@@ -2,65 +2,65 @@ import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
3
  export class BucketsService {
4
4
  /**
5
- * @param groupId
5
+ * @param projectId
6
6
  * @returns Bucket OK
7
7
  * @throws ApiError
8
8
  */
9
- static getGroupsBuckets(groupId) {
9
+ static getProjectsBuckets(projectId) {
10
10
  return __request(OpenAPI, {
11
11
  method: 'GET',
12
- url: '/groups/{groupId}/buckets',
12
+ url: '/projects/{projectId}/buckets',
13
13
  path: {
14
- 'groupId': groupId,
14
+ 'projectId': projectId,
15
15
  },
16
16
  });
17
17
  }
18
18
  /**
19
- * @param groupId
19
+ * @param projectId
20
20
  * @param requestBody
21
21
  * @returns Bucket OK
22
22
  * @throws ApiError
23
23
  */
24
- static postGroupsBuckets(groupId, requestBody) {
24
+ static postProjectsBuckets(projectId, requestBody) {
25
25
  return __request(OpenAPI, {
26
26
  method: 'POST',
27
- url: '/groups/{groupId}/buckets',
27
+ url: '/projects/{projectId}/buckets',
28
28
  path: {
29
- 'groupId': groupId,
29
+ 'projectId': projectId,
30
30
  },
31
31
  body: requestBody,
32
32
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
33
33
  });
34
34
  }
35
35
  /**
36
- * @param groupId
36
+ * @param projectId
37
37
  * @param bucketId
38
38
  * @returns Bucket OK
39
39
  * @throws ApiError
40
40
  */
41
- static getGroupsBuckets1(groupId, bucketId) {
41
+ static getProjectsBuckets1(projectId, bucketId) {
42
42
  return __request(OpenAPI, {
43
43
  method: 'GET',
44
- url: '/groups/{groupId}/buckets/{bucketId}',
44
+ url: '/projects/{projectId}/buckets/{bucketId}',
45
45
  path: {
46
- 'groupId': groupId,
46
+ 'projectId': projectId,
47
47
  'bucketId': bucketId,
48
48
  },
49
49
  });
50
50
  }
51
51
  /**
52
- * @param groupId
52
+ * @param projectId
53
53
  * @param bucketId
54
54
  * @param requestBody
55
55
  * @returns Bucket OK
56
56
  * @throws ApiError
57
57
  */
58
- static patchGroupsBuckets(groupId, bucketId, requestBody) {
58
+ static patchProjectsBuckets(projectId, bucketId, requestBody) {
59
59
  return __request(OpenAPI, {
60
60
  method: 'PATCH',
61
- url: '/groups/{groupId}/buckets/{bucketId}',
61
+ url: '/projects/{projectId}/buckets/{bucketId}',
62
62
  path: {
63
- 'groupId': groupId,
63
+ 'projectId': projectId,
64
64
  'bucketId': bucketId,
65
65
  },
66
66
  body: requestBody,
@@ -68,17 +68,17 @@ export class BucketsService {
68
68
  });
69
69
  }
70
70
  /**
71
- * @param groupId
71
+ * @param projectId
72
72
  * @param bucketId
73
73
  * @returns any OK
74
74
  * @throws ApiError
75
75
  */
76
- static deleteGroupsBuckets(groupId, bucketId) {
76
+ static deleteProjectsBuckets(projectId, bucketId) {
77
77
  return __request(OpenAPI, {
78
78
  method: 'DELETE',
79
- url: '/groups/{groupId}/buckets/{bucketId}',
79
+ url: '/projects/{projectId}/buckets/{bucketId}',
80
80
  path: {
81
- 'groupId': groupId,
81
+ 'projectId': projectId,
82
82
  'bucketId': bucketId,
83
83
  },
84
84
  });
@@ -4,41 +4,41 @@ import type { EntryInsert } from '../models/EntryInsert';
4
4
  import type { CancelablePromise } from '../core/CancelablePromise';
5
5
  export declare class EntriesService {
6
6
  /**
7
- * @param groupId
7
+ * @param projectId
8
8
  * @param templateId
9
9
  * @param includeBalance
10
10
  * @returns Entry OK
11
11
  * @throws ApiError
12
12
  */
13
- static getGroupsEntries(groupId: string, templateId?: string, includeBalance?: boolean): CancelablePromise<Array<Entry>>;
13
+ static getProjectsEntries(projectId: string, templateId?: string, includeBalance?: boolean): CancelablePromise<Array<Entry>>;
14
14
  /**
15
- * @param groupId
15
+ * @param projectId
16
16
  * @param requestBody
17
17
  * @returns Entry OK
18
18
  * @throws ApiError
19
19
  */
20
- static postGroupsEntries(groupId: string, requestBody?: EntryInsert): CancelablePromise<Entry>;
20
+ static postProjectsEntries(projectId: string, requestBody?: EntryInsert): CancelablePromise<Entry>;
21
21
  /**
22
- * @param groupId
22
+ * @param projectId
23
23
  * @param entryId
24
24
  * @param includeBalance
25
25
  * @returns Entry OK
26
26
  * @throws ApiError
27
27
  */
28
- static getGroupsEntries1(groupId: string, entryId: string, includeBalance?: boolean): CancelablePromise<Entry>;
28
+ static getProjectsEntries1(projectId: string, entryId: string, includeBalance?: boolean): CancelablePromise<Entry>;
29
29
  /**
30
- * @param groupId
30
+ * @param projectId
31
31
  * @param entryId
32
32
  * @param requestBody
33
33
  * @returns Entry OK
34
34
  * @throws ApiError
35
35
  */
36
- static patchGroupsEntries(groupId: string, entryId: string, requestBody?: EntryEdit): CancelablePromise<Entry>;
36
+ static patchProjectsEntries(projectId: string, entryId: string, requestBody?: EntryEdit): CancelablePromise<Entry>;
37
37
  /**
38
- * @param groupId
38
+ * @param projectId
39
39
  * @param entryId
40
40
  * @returns any OK
41
41
  * @throws ApiError
42
42
  */
43
- static deleteGroupsEntries(groupId: string, entryId: string): CancelablePromise<any>;
43
+ static deleteProjectsEntries(projectId: string, entryId: string): CancelablePromise<any>;
44
44
  }
@@ -2,18 +2,18 @@ import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
3
  export class EntriesService {
4
4
  /**
5
- * @param groupId
5
+ * @param projectId
6
6
  * @param templateId
7
7
  * @param includeBalance
8
8
  * @returns Entry OK
9
9
  * @throws ApiError
10
10
  */
11
- static getGroupsEntries(groupId, templateId, includeBalance = false) {
11
+ static getProjectsEntries(projectId, templateId, includeBalance = false) {
12
12
  return __request(OpenAPI, {
13
13
  method: 'GET',
14
- url: '/groups/{groupId}/entries',
14
+ url: '/projects/{projectId}/entries',
15
15
  path: {
16
- 'groupId': groupId,
16
+ 'projectId': projectId,
17
17
  },
18
18
  query: {
19
19
  'templateId': templateId,
@@ -22,35 +22,35 @@ export class EntriesService {
22
22
  });
23
23
  }
24
24
  /**
25
- * @param groupId
25
+ * @param projectId
26
26
  * @param requestBody
27
27
  * @returns Entry OK
28
28
  * @throws ApiError
29
29
  */
30
- static postGroupsEntries(groupId, requestBody) {
30
+ static postProjectsEntries(projectId, requestBody) {
31
31
  return __request(OpenAPI, {
32
32
  method: 'POST',
33
- url: '/groups/{groupId}/entries',
33
+ url: '/projects/{projectId}/entries',
34
34
  path: {
35
- 'groupId': groupId,
35
+ 'projectId': projectId,
36
36
  },
37
37
  body: requestBody,
38
38
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
39
39
  });
40
40
  }
41
41
  /**
42
- * @param groupId
42
+ * @param projectId
43
43
  * @param entryId
44
44
  * @param includeBalance
45
45
  * @returns Entry OK
46
46
  * @throws ApiError
47
47
  */
48
- static getGroupsEntries1(groupId, entryId, includeBalance = false) {
48
+ static getProjectsEntries1(projectId, entryId, includeBalance = false) {
49
49
  return __request(OpenAPI, {
50
50
  method: 'GET',
51
- url: '/groups/{groupId}/entries/{entryId}',
51
+ url: '/projects/{projectId}/entries/{entryId}',
52
52
  path: {
53
- 'groupId': groupId,
53
+ 'projectId': projectId,
54
54
  'entryId': entryId,
55
55
  },
56
56
  query: {
@@ -59,18 +59,18 @@ export class EntriesService {
59
59
  });
60
60
  }
61
61
  /**
62
- * @param groupId
62
+ * @param projectId
63
63
  * @param entryId
64
64
  * @param requestBody
65
65
  * @returns Entry OK
66
66
  * @throws ApiError
67
67
  */
68
- static patchGroupsEntries(groupId, entryId, requestBody) {
68
+ static patchProjectsEntries(projectId, entryId, requestBody) {
69
69
  return __request(OpenAPI, {
70
70
  method: 'PATCH',
71
- url: '/groups/{groupId}/entries/{entryId}',
71
+ url: '/projects/{projectId}/entries/{entryId}',
72
72
  path: {
73
- 'groupId': groupId,
73
+ 'projectId': projectId,
74
74
  'entryId': entryId,
75
75
  },
76
76
  body: requestBody,
@@ -78,17 +78,17 @@ export class EntriesService {
78
78
  });
79
79
  }
80
80
  /**
81
- * @param groupId
81
+ * @param projectId
82
82
  * @param entryId
83
83
  * @returns any OK
84
84
  * @throws ApiError
85
85
  */
86
- static deleteGroupsEntries(groupId, entryId) {
86
+ static deleteProjectsEntries(projectId, entryId) {
87
87
  return __request(OpenAPI, {
88
88
  method: 'DELETE',
89
- url: '/groups/{groupId}/entries/{entryId}',
89
+ url: '/projects/{projectId}/entries/{entryId}',
90
90
  path: {
91
- 'groupId': groupId,
91
+ 'projectId': projectId,
92
92
  'entryId': entryId,
93
93
  },
94
94
  });
@@ -0,0 +1,49 @@
1
+ import type { Balance } from '../models/Balance';
2
+ import type { ProjectWallet } from '../models/ProjectWallet';
3
+ import type { ProjectWalletEdit } from '../models/ProjectWalletEdit';
4
+ import type { ProjectWalletInsert } from '../models/ProjectWalletInsert';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class ProjectWalletsService {
7
+ /**
8
+ * @param projectId
9
+ * @returns ProjectWallet OK
10
+ * @throws ApiError
11
+ */
12
+ static getProjectsWallets(projectId: string): CancelablePromise<Array<ProjectWallet>>;
13
+ /**
14
+ * @param projectId
15
+ * @param requestBody
16
+ * @returns ProjectWallet OK
17
+ * @throws ApiError
18
+ */
19
+ static postProjectsWallets(projectId: string, requestBody?: ProjectWalletInsert): CancelablePromise<ProjectWallet>;
20
+ /**
21
+ * @param projectId
22
+ * @param walletId
23
+ * @returns ProjectWallet OK
24
+ * @throws ApiError
25
+ */
26
+ static getProjectsWallets1(projectId: string, walletId: string): CancelablePromise<ProjectWallet>;
27
+ /**
28
+ * @param projectId
29
+ * @param walletId
30
+ * @param requestBody
31
+ * @returns ProjectWallet OK
32
+ * @throws ApiError
33
+ */
34
+ static patchProjectsWallets(projectId: string, walletId: string, requestBody?: ProjectWalletEdit): CancelablePromise<ProjectWallet>;
35
+ /**
36
+ * @param projectId
37
+ * @param walletId
38
+ * @returns any OK
39
+ * @throws ApiError
40
+ */
41
+ static deleteProjectsWallets(projectId: string, walletId: string): CancelablePromise<any>;
42
+ /**
43
+ * @param projectId
44
+ * @param walletId
45
+ * @returns Balance OK
46
+ * @throws ApiError
47
+ */
48
+ static getProjectsWalletsBalance(projectId: string, walletId: string): CancelablePromise<Balance>;
49
+ }
@@ -1,66 +1,66 @@
1
1
  import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
- export class GroupWalletsService {
3
+ export class ProjectWalletsService {
4
4
  /**
5
- * @param groupId
6
- * @returns GroupWallet OK
5
+ * @param projectId
6
+ * @returns ProjectWallet OK
7
7
  * @throws ApiError
8
8
  */
9
- static getGroupsWallets(groupId) {
9
+ static getProjectsWallets(projectId) {
10
10
  return __request(OpenAPI, {
11
11
  method: 'GET',
12
- url: '/groups/{groupId}/wallets',
12
+ url: '/projects/{projectId}/wallets',
13
13
  path: {
14
- 'groupId': groupId,
14
+ 'projectId': projectId,
15
15
  },
16
16
  });
17
17
  }
18
18
  /**
19
- * @param groupId
19
+ * @param projectId
20
20
  * @param requestBody
21
- * @returns GroupWallet OK
21
+ * @returns ProjectWallet OK
22
22
  * @throws ApiError
23
23
  */
24
- static postGroupsWallets(groupId, requestBody) {
24
+ static postProjectsWallets(projectId, requestBody) {
25
25
  return __request(OpenAPI, {
26
26
  method: 'POST',
27
- url: '/groups/{groupId}/wallets',
27
+ url: '/projects/{projectId}/wallets',
28
28
  path: {
29
- 'groupId': groupId,
29
+ 'projectId': projectId,
30
30
  },
31
31
  body: requestBody,
32
32
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
33
33
  });
34
34
  }
35
35
  /**
36
- * @param groupId
36
+ * @param projectId
37
37
  * @param walletId
38
- * @returns GroupWallet OK
38
+ * @returns ProjectWallet OK
39
39
  * @throws ApiError
40
40
  */
41
- static getGroupsWallets1(groupId, walletId) {
41
+ static getProjectsWallets1(projectId, walletId) {
42
42
  return __request(OpenAPI, {
43
43
  method: 'GET',
44
- url: '/groups/{groupId}/wallets/{walletId}',
44
+ url: '/projects/{projectId}/wallets/{walletId}',
45
45
  path: {
46
- 'groupId': groupId,
46
+ 'projectId': projectId,
47
47
  'walletId': walletId,
48
48
  },
49
49
  });
50
50
  }
51
51
  /**
52
- * @param groupId
52
+ * @param projectId
53
53
  * @param walletId
54
54
  * @param requestBody
55
- * @returns GroupWallet OK
55
+ * @returns ProjectWallet OK
56
56
  * @throws ApiError
57
57
  */
58
- static patchGroupsWallets(groupId, walletId, requestBody) {
58
+ static patchProjectsWallets(projectId, walletId, requestBody) {
59
59
  return __request(OpenAPI, {
60
60
  method: 'PATCH',
61
- url: '/groups/{groupId}/wallets/{walletId}',
61
+ url: '/projects/{projectId}/wallets/{walletId}',
62
62
  path: {
63
- 'groupId': groupId,
63
+ 'projectId': projectId,
64
64
  'walletId': walletId,
65
65
  },
66
66
  body: requestBody,
@@ -68,33 +68,33 @@ export class GroupWalletsService {
68
68
  });
69
69
  }
70
70
  /**
71
- * @param groupId
71
+ * @param projectId
72
72
  * @param walletId
73
73
  * @returns any OK
74
74
  * @throws ApiError
75
75
  */
76
- static deleteGroupsWallets(groupId, walletId) {
76
+ static deleteProjectsWallets(projectId, walletId) {
77
77
  return __request(OpenAPI, {
78
78
  method: 'DELETE',
79
- url: '/groups/{groupId}/wallets/{walletId}',
79
+ url: '/projects/{projectId}/wallets/{walletId}',
80
80
  path: {
81
- 'groupId': groupId,
81
+ 'projectId': projectId,
82
82
  'walletId': walletId,
83
83
  },
84
84
  });
85
85
  }
86
86
  /**
87
- * @param groupId
87
+ * @param projectId
88
88
  * @param walletId
89
89
  * @returns Balance OK
90
90
  * @throws ApiError
91
91
  */
92
- static getGroupsWalletsBalance(groupId, walletId) {
92
+ static getProjectsWalletsBalance(projectId, walletId) {
93
93
  return __request(OpenAPI, {
94
94
  method: 'GET',
95
- url: '/groups/{groupId}/wallets/{walletId}/balance',
95
+ url: '/projects/{projectId}/wallets/{walletId}/balance',
96
96
  path: {
97
- 'groupId': groupId,
97
+ 'projectId': projectId,
98
98
  'walletId': walletId,
99
99
  },
100
100
  });
@@ -0,0 +1,89 @@
1
+ import type { BalanceReport } from '../models/BalanceReport';
2
+ import type { Member } from '../models/Member';
3
+ import type { MemberBalanceReport } from '../models/MemberBalanceReport';
4
+ import type { MemberEdit } from '../models/MemberEdit';
5
+ import type { MemberInsert } from '../models/MemberInsert';
6
+ import type { Project } from '../models/Project';
7
+ import type { ProjectEdit } from '../models/ProjectEdit';
8
+ import type { ProjectInsert } from '../models/ProjectInsert';
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
10
+ export declare class ProjectsService {
11
+ /**
12
+ * @returns Project OK
13
+ * @throws ApiError
14
+ */
15
+ static getProjects(): CancelablePromise<Array<Project>>;
16
+ /**
17
+ * @param requestBody
18
+ * @returns Project OK
19
+ * @throws ApiError
20
+ */
21
+ static postProjects(requestBody?: ProjectInsert): CancelablePromise<Project>;
22
+ /**
23
+ * @param projectId
24
+ * @returns Project OK
25
+ * @throws ApiError
26
+ */
27
+ static getProjects1(projectId: string): CancelablePromise<Project>;
28
+ /**
29
+ * @param projectId
30
+ * @param requestBody
31
+ * @returns Project OK
32
+ * @throws ApiError
33
+ */
34
+ static patchProjects(projectId: string, requestBody?: ProjectEdit): CancelablePromise<Project>;
35
+ /**
36
+ * @param projectId
37
+ * @returns any OK
38
+ * @throws ApiError
39
+ */
40
+ static deleteProjects(projectId: string): CancelablePromise<any>;
41
+ /**
42
+ * @param projectId
43
+ * @returns BalanceReport OK
44
+ * @throws ApiError
45
+ */
46
+ static getProjectsBalance(projectId: string): CancelablePromise<BalanceReport>;
47
+ /**
48
+ * @param projectId
49
+ * @returns Member OK
50
+ * @throws ApiError
51
+ */
52
+ static getProjectsMembers(projectId: string): CancelablePromise<Array<Member>>;
53
+ /**
54
+ * @param projectId
55
+ * @param requestBody
56
+ * @returns Member OK
57
+ * @throws ApiError
58
+ */
59
+ static postProjectsMembers(projectId: string, requestBody?: MemberInsert): CancelablePromise<Member>;
60
+ /**
61
+ * @param projectId
62
+ * @param memberId
63
+ * @returns Member OK
64
+ * @throws ApiError
65
+ */
66
+ static getProjectsMembers1(projectId: string, memberId: string): CancelablePromise<Member>;
67
+ /**
68
+ * @param projectId
69
+ * @param memberId
70
+ * @param requestBody
71
+ * @returns Member OK
72
+ * @throws ApiError
73
+ */
74
+ static patchProjectsMembers(projectId: string, memberId: string, requestBody?: MemberEdit): CancelablePromise<Member>;
75
+ /**
76
+ * @param projectId
77
+ * @param memberId
78
+ * @returns any OK
79
+ * @throws ApiError
80
+ */
81
+ static deleteProjectsMembers(projectId: string, memberId: string): CancelablePromise<any>;
82
+ /**
83
+ * @param projectId
84
+ * @param memberId
85
+ * @returns MemberBalanceReport OK
86
+ * @throws ApiError
87
+ */
88
+ static getProjectsMembersBalance(projectId: string, memberId: string): CancelablePromise<MemberBalanceReport>;
89
+ }
@@ -1,148 +1,148 @@
1
1
  import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
- export class GroupsService {
3
+ export class ProjectsService {
4
4
  /**
5
- * @returns Group OK
5
+ * @returns Project OK
6
6
  * @throws ApiError
7
7
  */
8
- static getGroups() {
8
+ static getProjects() {
9
9
  return __request(OpenAPI, {
10
10
  method: 'GET',
11
- url: '/groups',
11
+ url: '/projects',
12
12
  });
13
13
  }
14
14
  /**
15
15
  * @param requestBody
16
- * @returns Group OK
16
+ * @returns Project OK
17
17
  * @throws ApiError
18
18
  */
19
- static postGroups(requestBody) {
19
+ static postProjects(requestBody) {
20
20
  return __request(OpenAPI, {
21
21
  method: 'POST',
22
- url: '/groups',
22
+ url: '/projects',
23
23
  body: requestBody,
24
24
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
25
25
  });
26
26
  }
27
27
  /**
28
- * @param groupId
29
- * @returns Group OK
28
+ * @param projectId
29
+ * @returns Project OK
30
30
  * @throws ApiError
31
31
  */
32
- static getGroups1(groupId) {
32
+ static getProjects1(projectId) {
33
33
  return __request(OpenAPI, {
34
34
  method: 'GET',
35
- url: '/groups/{groupId}',
35
+ url: '/projects/{projectId}',
36
36
  path: {
37
- 'groupId': groupId,
37
+ 'projectId': projectId,
38
38
  },
39
39
  });
40
40
  }
41
41
  /**
42
- * @param groupId
42
+ * @param projectId
43
43
  * @param requestBody
44
- * @returns Group OK
44
+ * @returns Project OK
45
45
  * @throws ApiError
46
46
  */
47
- static patchGroups(groupId, requestBody) {
47
+ static patchProjects(projectId, requestBody) {
48
48
  return __request(OpenAPI, {
49
49
  method: 'PATCH',
50
- url: '/groups/{groupId}',
50
+ url: '/projects/{projectId}',
51
51
  path: {
52
- 'groupId': groupId,
52
+ 'projectId': projectId,
53
53
  },
54
54
  body: requestBody,
55
55
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
56
56
  });
57
57
  }
58
58
  /**
59
- * @param groupId
59
+ * @param projectId
60
60
  * @returns any OK
61
61
  * @throws ApiError
62
62
  */
63
- static deleteGroups(groupId) {
63
+ static deleteProjects(projectId) {
64
64
  return __request(OpenAPI, {
65
65
  method: 'DELETE',
66
- url: '/groups/{groupId}',
66
+ url: '/projects/{projectId}',
67
67
  path: {
68
- 'groupId': groupId,
68
+ 'projectId': projectId,
69
69
  },
70
70
  });
71
71
  }
72
72
  /**
73
- * @param groupId
73
+ * @param projectId
74
74
  * @returns BalanceReport OK
75
75
  * @throws ApiError
76
76
  */
77
- static getGroupsBalance(groupId) {
77
+ static getProjectsBalance(projectId) {
78
78
  return __request(OpenAPI, {
79
79
  method: 'GET',
80
- url: '/groups/{groupId}/balance',
80
+ url: '/projects/{projectId}/balance',
81
81
  path: {
82
- 'groupId': groupId,
82
+ 'projectId': projectId,
83
83
  },
84
84
  });
85
85
  }
86
86
  /**
87
- * @param groupId
87
+ * @param projectId
88
88
  * @returns Member OK
89
89
  * @throws ApiError
90
90
  */
91
- static getGroupsMembers(groupId) {
91
+ static getProjectsMembers(projectId) {
92
92
  return __request(OpenAPI, {
93
93
  method: 'GET',
94
- url: '/groups/{groupId}/members',
94
+ url: '/projects/{projectId}/members',
95
95
  path: {
96
- 'groupId': groupId,
96
+ 'projectId': projectId,
97
97
  },
98
98
  });
99
99
  }
100
100
  /**
101
- * @param groupId
101
+ * @param projectId
102
102
  * @param requestBody
103
103
  * @returns Member OK
104
104
  * @throws ApiError
105
105
  */
106
- static postGroupsMembers(groupId, requestBody) {
106
+ static postProjectsMembers(projectId, requestBody) {
107
107
  return __request(OpenAPI, {
108
108
  method: 'POST',
109
- url: '/groups/{groupId}/members',
109
+ url: '/projects/{projectId}/members',
110
110
  path: {
111
- 'groupId': groupId,
111
+ 'projectId': projectId,
112
112
  },
113
113
  body: requestBody,
114
114
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
115
115
  });
116
116
  }
117
117
  /**
118
- * @param groupId
118
+ * @param projectId
119
119
  * @param memberId
120
120
  * @returns Member OK
121
121
  * @throws ApiError
122
122
  */
123
- static getGroupsMembers1(groupId, memberId) {
123
+ static getProjectsMembers1(projectId, memberId) {
124
124
  return __request(OpenAPI, {
125
125
  method: 'GET',
126
- url: '/groups/{groupId}/members/{memberId}',
126
+ url: '/projects/{projectId}/members/{memberId}',
127
127
  path: {
128
- 'groupId': groupId,
128
+ 'projectId': projectId,
129
129
  'memberId': memberId,
130
130
  },
131
131
  });
132
132
  }
133
133
  /**
134
- * @param groupId
134
+ * @param projectId
135
135
  * @param memberId
136
136
  * @param requestBody
137
137
  * @returns Member OK
138
138
  * @throws ApiError
139
139
  */
140
- static patchGroupsMembers(groupId, memberId, requestBody) {
140
+ static patchProjectsMembers(projectId, memberId, requestBody) {
141
141
  return __request(OpenAPI, {
142
142
  method: 'PATCH',
143
- url: '/groups/{groupId}/members/{memberId}',
143
+ url: '/projects/{projectId}/members/{memberId}',
144
144
  path: {
145
- 'groupId': groupId,
145
+ 'projectId': projectId,
146
146
  'memberId': memberId,
147
147
  },
148
148
  body: requestBody,
@@ -150,33 +150,33 @@ export class GroupsService {
150
150
  });
151
151
  }
152
152
  /**
153
- * @param groupId
153
+ * @param projectId
154
154
  * @param memberId
155
155
  * @returns any OK
156
156
  * @throws ApiError
157
157
  */
158
- static deleteGroupsMembers(groupId, memberId) {
158
+ static deleteProjectsMembers(projectId, memberId) {
159
159
  return __request(OpenAPI, {
160
160
  method: 'DELETE',
161
- url: '/groups/{groupId}/members/{memberId}',
161
+ url: '/projects/{projectId}/members/{memberId}',
162
162
  path: {
163
- 'groupId': groupId,
163
+ 'projectId': projectId,
164
164
  'memberId': memberId,
165
165
  },
166
166
  });
167
167
  }
168
168
  /**
169
- * @param groupId
169
+ * @param projectId
170
170
  * @param memberId
171
171
  * @returns MemberBalanceReport OK
172
172
  * @throws ApiError
173
173
  */
174
- static getGroupsMembersBalance(groupId, memberId) {
174
+ static getProjectsMembersBalance(projectId, memberId) {
175
175
  return __request(OpenAPI, {
176
176
  method: 'GET',
177
- url: '/groups/{groupId}/members/{memberId}/balance',
177
+ url: '/projects/{projectId}/members/{memberId}/balance',
178
178
  path: {
179
- 'groupId': groupId,
179
+ 'projectId': projectId,
180
180
  'memberId': memberId,
181
181
  },
182
182
  });
@@ -4,38 +4,38 @@ import type { TemplateInsert } from '../models/TemplateInsert';
4
4
  import type { CancelablePromise } from '../core/CancelablePromise';
5
5
  export declare class TemplatesService {
6
6
  /**
7
- * @param groupId
7
+ * @param projectId
8
8
  * @returns Template OK
9
9
  * @throws ApiError
10
10
  */
11
- static getGroupsTemplates(groupId: string): CancelablePromise<Array<Template>>;
11
+ static getProjectsTemplates(projectId: string): CancelablePromise<Array<Template>>;
12
12
  /**
13
- * @param groupId
13
+ * @param projectId
14
14
  * @param requestBody
15
15
  * @returns Template OK
16
16
  * @throws ApiError
17
17
  */
18
- static postGroupsTemplates(groupId: string, requestBody?: TemplateInsert): CancelablePromise<Template>;
18
+ static postProjectsTemplates(projectId: string, requestBody?: TemplateInsert): CancelablePromise<Template>;
19
19
  /**
20
- * @param groupId
20
+ * @param projectId
21
21
  * @param templateId
22
22
  * @returns Template OK
23
23
  * @throws ApiError
24
24
  */
25
- static getGroupsTemplates1(groupId: string, templateId: string): CancelablePromise<Template>;
25
+ static getProjectsTemplates1(projectId: string, templateId: string): CancelablePromise<Template>;
26
26
  /**
27
- * @param groupId
27
+ * @param projectId
28
28
  * @param templateId
29
29
  * @param requestBody
30
30
  * @returns Template OK
31
31
  * @throws ApiError
32
32
  */
33
- static patchGroupsTemplates(groupId: string, templateId: string, requestBody?: TemplateEdit): CancelablePromise<Template>;
33
+ static patchProjectsTemplates(projectId: string, templateId: string, requestBody?: TemplateEdit): CancelablePromise<Template>;
34
34
  /**
35
- * @param groupId
35
+ * @param projectId
36
36
  * @param templateId
37
37
  * @returns any OK
38
38
  * @throws ApiError
39
39
  */
40
- static deleteGroupsTemplates(groupId: string, templateId: string): CancelablePromise<any>;
40
+ static deleteProjectsTemplates(projectId: string, templateId: string): CancelablePromise<any>;
41
41
  }
@@ -2,65 +2,65 @@ import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
3
  export class TemplatesService {
4
4
  /**
5
- * @param groupId
5
+ * @param projectId
6
6
  * @returns Template OK
7
7
  * @throws ApiError
8
8
  */
9
- static getGroupsTemplates(groupId) {
9
+ static getProjectsTemplates(projectId) {
10
10
  return __request(OpenAPI, {
11
11
  method: 'GET',
12
- url: '/groups/{groupId}/templates',
12
+ url: '/projects/{projectId}/templates',
13
13
  path: {
14
- 'groupId': groupId,
14
+ 'projectId': projectId,
15
15
  },
16
16
  });
17
17
  }
18
18
  /**
19
- * @param groupId
19
+ * @param projectId
20
20
  * @param requestBody
21
21
  * @returns Template OK
22
22
  * @throws ApiError
23
23
  */
24
- static postGroupsTemplates(groupId, requestBody) {
24
+ static postProjectsTemplates(projectId, requestBody) {
25
25
  return __request(OpenAPI, {
26
26
  method: 'POST',
27
- url: '/groups/{groupId}/templates',
27
+ url: '/projects/{projectId}/templates',
28
28
  path: {
29
- 'groupId': groupId,
29
+ 'projectId': projectId,
30
30
  },
31
31
  body: requestBody,
32
32
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
33
33
  });
34
34
  }
35
35
  /**
36
- * @param groupId
36
+ * @param projectId
37
37
  * @param templateId
38
38
  * @returns Template OK
39
39
  * @throws ApiError
40
40
  */
41
- static getGroupsTemplates1(groupId, templateId) {
41
+ static getProjectsTemplates1(projectId, templateId) {
42
42
  return __request(OpenAPI, {
43
43
  method: 'GET',
44
- url: '/groups/{groupId}/templates/{templateId}',
44
+ url: '/projects/{projectId}/templates/{templateId}',
45
45
  path: {
46
- 'groupId': groupId,
46
+ 'projectId': projectId,
47
47
  'templateId': templateId,
48
48
  },
49
49
  });
50
50
  }
51
51
  /**
52
- * @param groupId
52
+ * @param projectId
53
53
  * @param templateId
54
54
  * @param requestBody
55
55
  * @returns Template OK
56
56
  * @throws ApiError
57
57
  */
58
- static patchGroupsTemplates(groupId, templateId, requestBody) {
58
+ static patchProjectsTemplates(projectId, templateId, requestBody) {
59
59
  return __request(OpenAPI, {
60
60
  method: 'PATCH',
61
- url: '/groups/{groupId}/templates/{templateId}',
61
+ url: '/projects/{projectId}/templates/{templateId}',
62
62
  path: {
63
- 'groupId': groupId,
63
+ 'projectId': projectId,
64
64
  'templateId': templateId,
65
65
  },
66
66
  body: requestBody,
@@ -68,17 +68,17 @@ export class TemplatesService {
68
68
  });
69
69
  }
70
70
  /**
71
- * @param groupId
71
+ * @param projectId
72
72
  * @param templateId
73
73
  * @returns any OK
74
74
  * @throws ApiError
75
75
  */
76
- static deleteGroupsTemplates(groupId, templateId) {
76
+ static deleteProjectsTemplates(projectId, templateId) {
77
77
  return __request(OpenAPI, {
78
78
  method: 'DELETE',
79
- url: '/groups/{groupId}/templates/{templateId}',
79
+ url: '/projects/{projectId}/templates/{templateId}',
80
80
  path: {
81
- 'groupId': groupId,
81
+ 'projectId': projectId,
82
82
  'templateId': templateId,
83
83
  },
84
84
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.0.0-406f4e34",
3
+ "version": "0.0.0-421ff638",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- export type GroupInsert = {
2
- name: string;
3
- };
@@ -1,49 +0,0 @@
1
- import type { Balance } from '../models/Balance';
2
- import type { GroupWallet } from '../models/GroupWallet';
3
- import type { GroupWalletEdit } from '../models/GroupWalletEdit';
4
- import type { GroupWalletInsert } from '../models/GroupWalletInsert';
5
- import type { CancelablePromise } from '../core/CancelablePromise';
6
- export declare class GroupWalletsService {
7
- /**
8
- * @param groupId
9
- * @returns GroupWallet OK
10
- * @throws ApiError
11
- */
12
- static getGroupsWallets(groupId: string): CancelablePromise<Array<GroupWallet>>;
13
- /**
14
- * @param groupId
15
- * @param requestBody
16
- * @returns GroupWallet OK
17
- * @throws ApiError
18
- */
19
- static postGroupsWallets(groupId: string, requestBody?: GroupWalletInsert): CancelablePromise<GroupWallet>;
20
- /**
21
- * @param groupId
22
- * @param walletId
23
- * @returns GroupWallet OK
24
- * @throws ApiError
25
- */
26
- static getGroupsWallets1(groupId: string, walletId: string): CancelablePromise<GroupWallet>;
27
- /**
28
- * @param groupId
29
- * @param walletId
30
- * @param requestBody
31
- * @returns GroupWallet OK
32
- * @throws ApiError
33
- */
34
- static patchGroupsWallets(groupId: string, walletId: string, requestBody?: GroupWalletEdit): CancelablePromise<GroupWallet>;
35
- /**
36
- * @param groupId
37
- * @param walletId
38
- * @returns any OK
39
- * @throws ApiError
40
- */
41
- static deleteGroupsWallets(groupId: string, walletId: string): CancelablePromise<any>;
42
- /**
43
- * @param groupId
44
- * @param walletId
45
- * @returns Balance OK
46
- * @throws ApiError
47
- */
48
- static getGroupsWalletsBalance(groupId: string, walletId: string): CancelablePromise<Balance>;
49
- }
@@ -1,89 +0,0 @@
1
- import type { BalanceReport } from '../models/BalanceReport';
2
- import type { Group } from '../models/Group';
3
- import type { GroupEdit } from '../models/GroupEdit';
4
- import type { GroupInsert } from '../models/GroupInsert';
5
- import type { Member } from '../models/Member';
6
- import type { MemberBalanceReport } from '../models/MemberBalanceReport';
7
- import type { MemberEdit } from '../models/MemberEdit';
8
- import type { MemberInsert } from '../models/MemberInsert';
9
- import type { CancelablePromise } from '../core/CancelablePromise';
10
- export declare class GroupsService {
11
- /**
12
- * @returns Group OK
13
- * @throws ApiError
14
- */
15
- static getGroups(): CancelablePromise<Array<Group>>;
16
- /**
17
- * @param requestBody
18
- * @returns Group OK
19
- * @throws ApiError
20
- */
21
- static postGroups(requestBody?: GroupInsert): CancelablePromise<Group>;
22
- /**
23
- * @param groupId
24
- * @returns Group OK
25
- * @throws ApiError
26
- */
27
- static getGroups1(groupId: string): CancelablePromise<Group>;
28
- /**
29
- * @param groupId
30
- * @param requestBody
31
- * @returns Group OK
32
- * @throws ApiError
33
- */
34
- static patchGroups(groupId: string, requestBody?: GroupEdit): CancelablePromise<Group>;
35
- /**
36
- * @param groupId
37
- * @returns any OK
38
- * @throws ApiError
39
- */
40
- static deleteGroups(groupId: string): CancelablePromise<any>;
41
- /**
42
- * @param groupId
43
- * @returns BalanceReport OK
44
- * @throws ApiError
45
- */
46
- static getGroupsBalance(groupId: string): CancelablePromise<BalanceReport>;
47
- /**
48
- * @param groupId
49
- * @returns Member OK
50
- * @throws ApiError
51
- */
52
- static getGroupsMembers(groupId: string): CancelablePromise<Array<Member>>;
53
- /**
54
- * @param groupId
55
- * @param requestBody
56
- * @returns Member OK
57
- * @throws ApiError
58
- */
59
- static postGroupsMembers(groupId: string, requestBody?: MemberInsert): CancelablePromise<Member>;
60
- /**
61
- * @param groupId
62
- * @param memberId
63
- * @returns Member OK
64
- * @throws ApiError
65
- */
66
- static getGroupsMembers1(groupId: string, memberId: string): CancelablePromise<Member>;
67
- /**
68
- * @param groupId
69
- * @param memberId
70
- * @param requestBody
71
- * @returns Member OK
72
- * @throws ApiError
73
- */
74
- static patchGroupsMembers(groupId: string, memberId: string, requestBody?: MemberEdit): CancelablePromise<Member>;
75
- /**
76
- * @param groupId
77
- * @param memberId
78
- * @returns any OK
79
- * @throws ApiError
80
- */
81
- static deleteGroupsMembers(groupId: string, memberId: string): CancelablePromise<any>;
82
- /**
83
- * @param groupId
84
- * @param memberId
85
- * @returns MemberBalanceReport OK
86
- * @throws ApiError
87
- */
88
- static getGroupsMembersBalance(groupId: string, memberId: string): CancelablePromise<MemberBalanceReport>;
89
- }