@incomy/platform-sdk 0.4.0-137 → 0.4.0-141

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 (32) hide show
  1. package/dist/services/hub/index.d.ts +8 -8
  2. package/dist/services/hub/index.js +1 -1
  3. package/dist/services/hub/models/Accrual.d.ts +25 -0
  4. package/dist/services/hub/models/{SettlementEdit.d.ts → AccrualEdit.d.ts} +11 -4
  5. package/dist/services/hub/models/{SettlementInsert.d.ts → AccrualInsert.d.ts} +12 -5
  6. package/dist/services/hub/models/{SettlementPaginatedList.d.ts → AccrualPaginatedList.d.ts} +3 -3
  7. package/dist/services/hub/models/BucketableBalance.d.ts +1 -0
  8. package/dist/services/hub/models/Entry.d.ts +2 -2
  9. package/dist/services/hub/models/EntryAccruals.d.ts +6 -0
  10. package/dist/services/hub/models/EntryEdit.d.ts +2 -2
  11. package/dist/services/hub/models/EntryInsert.d.ts +2 -2
  12. package/dist/services/hub/models/LogAccrual.d.ts +27 -0
  13. package/dist/services/hub/models/LogItem.d.ts +3 -3
  14. package/dist/services/hub/models/OperationInsert.d.ts +1 -1
  15. package/dist/services/hub/models/TemplateAccrualDefinition.d.ts +10 -0
  16. package/dist/services/hub/models/TemplateDefinition.d.ts +2 -2
  17. package/dist/services/hub/models/TemplateOperationDefinition.d.ts +1 -1
  18. package/dist/services/hub/services/AccrualsService.d.ts +49 -0
  19. package/dist/services/hub/services/{SettlementsService.js → AccrualsService.js} +21 -21
  20. package/package.json +1 -1
  21. package/dist/services/hub/models/EntrySettlements.d.ts +0 -6
  22. package/dist/services/hub/models/LogSettlement.d.ts +0 -20
  23. package/dist/services/hub/models/Settlement.d.ts +0 -18
  24. package/dist/services/hub/models/TemplateSettlementDefinition.d.ts +0 -9
  25. package/dist/services/hub/services/SettlementsService.d.ts +0 -49
  26. /package/dist/services/hub/models/{EntrySettlements.js → Accrual.js} +0 -0
  27. /package/dist/services/hub/models/{LogSettlement.js → AccrualEdit.js} +0 -0
  28. /package/dist/services/hub/models/{Settlement.js → AccrualInsert.js} +0 -0
  29. /package/dist/services/hub/models/{SettlementEdit.js → AccrualPaginatedList.js} +0 -0
  30. /package/dist/services/hub/models/{SettlementInsert.js → EntryAccruals.js} +0 -0
  31. /package/dist/services/hub/models/{SettlementPaginatedList.js → LogAccrual.js} +0 -0
  32. /package/dist/services/hub/models/{TemplateSettlementDefinition.js → TemplateAccrualDefinition.js} +0 -0
@@ -2,6 +2,10 @@ export { ApiError } from './core/ApiError';
2
2
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
3
3
  export { OpenAPI } from './core/OpenAPI';
4
4
  export type { OpenAPIConfig } from './core/OpenAPI';
5
+ export type { Accrual } from './models/Accrual';
6
+ export type { AccrualEdit } from './models/AccrualEdit';
7
+ export type { AccrualInsert } from './models/AccrualInsert';
8
+ export type { AccrualPaginatedList } from './models/AccrualPaginatedList';
5
9
  export type { Balance } from './models/Balance';
6
10
  export type { BalanceReport } from './models/BalanceReport';
7
11
  export type { Bucket } from './models/Bucket';
@@ -11,21 +15,21 @@ export type { BucketBreakdown } from './models/BucketBreakdown';
11
15
  export type { BucketEdit } from './models/BucketEdit';
12
16
  export type { BucketInsert } from './models/BucketInsert';
13
17
  export type { Entry } from './models/Entry';
18
+ export type { EntryAccruals } from './models/EntryAccruals';
14
19
  export type { EntryEdit } from './models/EntryEdit';
15
20
  export type { EntryInsert } from './models/EntryInsert';
16
21
  export type { EntryOperations } from './models/EntryOperations';
17
22
  export type { EntryPaginatedList } from './models/EntryPaginatedList';
18
- export type { EntrySettlements } from './models/EntrySettlements';
19
23
  export type { Icon } from './models/Icon';
20
24
  export type { InputFieldDefinition } from './models/InputFieldDefinition';
21
25
  export type { Label } from './models/Label';
22
26
  export type { LabelEdit } from './models/LabelEdit';
23
27
  export type { LabelInsert } from './models/LabelInsert';
24
28
  export type { LabelPaginatedList } from './models/LabelPaginatedList';
29
+ export type { LogAccrual } from './models/LogAccrual';
25
30
  export type { LogItem } from './models/LogItem';
26
31
  export type { LogItemPaginatedList } from './models/LogItemPaginatedList';
27
32
  export type { LogOperation } from './models/LogOperation';
28
- export type { LogSettlement } from './models/LogSettlement';
29
33
  export type { Member } from './models/Member';
30
34
  export type { MemberBalance } from './models/MemberBalance';
31
35
  export type { MemberBalancePaginatedList } from './models/MemberBalancePaginatedList';
@@ -49,12 +53,9 @@ export type { ProjectWallet } from './models/ProjectWallet';
49
53
  export type { ProjectWalletEdit } from './models/ProjectWalletEdit';
50
54
  export type { ProjectWalletInsert } from './models/ProjectWalletInsert';
51
55
  export type { ProjectWalletPaginatedList } from './models/ProjectWalletPaginatedList';
52
- export type { Settlement } from './models/Settlement';
53
- export type { SettlementEdit } from './models/SettlementEdit';
54
- export type { SettlementInsert } from './models/SettlementInsert';
55
- export type { SettlementPaginatedList } from './models/SettlementPaginatedList';
56
56
  export type { StringStringValueTuple } from './models/StringStringValueTuple';
57
57
  export type { Template } from './models/Template';
58
+ export type { TemplateAccrualDefinition } from './models/TemplateAccrualDefinition';
58
59
  export type { TemplateBucketBreakdownDefinition } from './models/TemplateBucketBreakdownDefinition';
59
60
  export type { TemplateData } from './models/TemplateData';
60
61
  export type { TemplateDefinition } from './models/TemplateDefinition';
@@ -65,12 +66,12 @@ export type { TemplateInput } from './models/TemplateInput';
65
66
  export type { TemplateInputDefinition } from './models/TemplateInputDefinition';
66
67
  export type { TemplateInsert } from './models/TemplateInsert';
67
68
  export type { TemplateOperationDefinition } from './models/TemplateOperationDefinition';
68
- export type { TemplateSettlementDefinition } from './models/TemplateSettlementDefinition';
69
69
  export type { UpdateProfileRequest } from './models/UpdateProfileRequest';
70
70
  export type { User } from './models/User';
71
71
  export type { UserIdentity } from './models/UserIdentity';
72
72
  export type { WalletBalance } from './models/WalletBalance';
73
73
  export type { WalletBalancePaginatedList } from './models/WalletBalancePaginatedList';
74
+ export { AccrualsService } from './services/AccrualsService';
74
75
  export { AuthService } from './services/AuthService';
75
76
  export { BucketsService } from './services/BucketsService';
76
77
  export { EntriesService } from './services/EntriesService';
@@ -79,5 +80,4 @@ export { MembersService } from './services/MembersService';
79
80
  export { OperationsService } from './services/OperationsService';
80
81
  export { ProjectsService } from './services/ProjectsService';
81
82
  export { ProjectWalletsService } from './services/ProjectWalletsService';
82
- export { SettlementsService } from './services/SettlementsService';
83
83
  export { TemplatesService } from './services/TemplatesService';
@@ -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 { AccrualsService } from './services/AccrualsService';
8
9
  export { AuthService } from './services/AuthService';
9
10
  export { BucketsService } from './services/BucketsService';
10
11
  export { EntriesService } from './services/EntriesService';
@@ -13,5 +14,4 @@ export { MembersService } from './services/MembersService';
13
14
  export { OperationsService } from './services/OperationsService';
14
15
  export { ProjectsService } from './services/ProjectsService';
15
16
  export { ProjectWalletsService } from './services/ProjectWalletsService';
16
- export { SettlementsService } from './services/SettlementsService';
17
17
  export { TemplatesService } from './services/TemplatesService';
@@ -0,0 +1,25 @@
1
+ import type { BucketBreakdown } from './BucketBreakdown';
2
+ import type { Money } from './Money';
3
+ export type Accrual = {
4
+ id: string;
5
+ name: string;
6
+ description?: string | null;
7
+ /**
8
+ * If null, the source is the project itself.
9
+ */
10
+ fromMemberId?: string | null;
11
+ /**
12
+ * If null, the target is the project itself.
13
+ */
14
+ toMemberId?: string | null;
15
+ type: 'settlement' | 'receivable';
16
+ money: Money;
17
+ bucketBreakdown?: Array<BucketBreakdown> | null;
18
+ occurredAt: string;
19
+ entryId?: string | null;
20
+ /**
21
+ * If set, record will be deleted when unlined from an entry or when linked entry is deleted.
22
+ */
23
+ deleteWithEntryRemoval?: boolean;
24
+ labelIds: Array<string>;
25
+ };
@@ -1,16 +1,23 @@
1
1
  import type { BucketBreakdown } from './BucketBreakdown';
2
2
  import type { Money } from './Money';
3
- export type SettlementEdit = {
3
+ export type AccrualEdit = {
4
4
  name?: string | null;
5
5
  description?: string | null;
6
- memberId?: string | null;
6
+ /**
7
+ * If null, the source is the Project itself.
8
+ */
9
+ fromMemberId?: string | null;
10
+ /**
11
+ * If null, the target is the Project itself.
12
+ */
13
+ toMemberId?: string | null;
14
+ type?: 'settlement' | 'receivable' | null;
7
15
  money?: Money;
8
16
  bucketBreakdown?: Array<BucketBreakdown> | null;
9
- compensation?: boolean | null;
10
17
  occurredAt?: string | null;
11
18
  entryId?: string | null;
12
19
  /**
13
- * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
20
+ * If set, record will be deleted when unlined from an entry or when linked entry is deleted.
14
21
  */
15
22
  deleteWithEntryRemoval?: boolean | null;
16
23
  labelIds?: Array<string> | null;
@@ -1,19 +1,26 @@
1
1
  import type { BucketBreakdown } from './BucketBreakdown';
2
2
  import type { Money } from './Money';
3
- export type SettlementInsert = {
3
+ export type AccrualInsert = {
4
4
  name: string;
5
5
  description?: string | null;
6
- memberId: string;
6
+ /**
7
+ * If null, the source is the project itself.
8
+ */
9
+ fromMemberId?: string | null;
10
+ /**
11
+ * If null, the target is the project itself.
12
+ */
13
+ toMemberId?: string | null;
14
+ type: 'settlement' | 'receivable';
7
15
  money: Money;
8
- bucketBreakdown: Array<BucketBreakdown>;
9
- compensation: boolean;
16
+ bucketBreakdown?: Array<BucketBreakdown> | null;
10
17
  /**
11
18
  * When left empty: if is linked to an entry its time will be used, otherwise server time at creation
12
19
  */
13
20
  occurredAt?: string | null;
14
21
  entryId?: string | null;
15
22
  /**
16
- * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
23
+ * If set, record will be deleted when unlined from an entry or when linked entry is deleted.
17
24
  */
18
25
  deleteWithEntryRemoval?: boolean;
19
26
  labelIds?: Array<string> | null;
@@ -1,5 +1,5 @@
1
- import type { Settlement } from './Settlement';
2
- export type SettlementPaginatedList = {
1
+ import type { Accrual } from './Accrual';
2
+ export type AccrualPaginatedList = {
3
3
  /**
4
4
  * Token item to start the next query from; Empty start from the beginning
5
5
  */
@@ -11,6 +11,6 @@ export type SettlementPaginatedList = {
11
11
  /**
12
12
  * Results for the current query
13
13
  */
14
- items: Array<Settlement>;
14
+ items: Array<Accrual>;
15
15
  meta?: Record<string, string | null> | null;
16
16
  };
@@ -3,4 +3,5 @@ import type { Money } from './Money';
3
3
  export type BucketableBalance = {
4
4
  total: Array<Money>;
5
5
  perBucketBreakdown: Array<BucketBalance>;
6
+ unassigned: Array<Money>;
6
7
  };
@@ -1,13 +1,13 @@
1
+ import type { Accrual } from './Accrual';
1
2
  import type { BalanceReport } from './BalanceReport';
2
3
  import type { Operation } from './Operation';
3
- import type { Settlement } from './Settlement';
4
4
  import type { TemplateInfo } from './TemplateInfo';
5
5
  export type Entry = {
6
6
  id: string;
7
7
  name: string;
8
8
  occurredAt: string;
9
9
  operations: Array<Operation>;
10
- settlements: Array<Settlement>;
10
+ accruals: Array<Accrual>;
11
11
  template?: TemplateInfo;
12
12
  balance?: BalanceReport;
13
13
  };
@@ -0,0 +1,6 @@
1
+ import type { AccrualEdit } from './AccrualEdit';
2
+ import type { AccrualInsert } from './AccrualInsert';
3
+ export type EntryAccruals = {
4
+ create?: Array<AccrualInsert> | null;
5
+ update?: Record<string, AccrualEdit> | null;
6
+ };
@@ -1,10 +1,10 @@
1
+ import type { EntryAccruals } from './EntryAccruals';
1
2
  import type { EntryOperations } from './EntryOperations';
2
- import type { EntrySettlements } from './EntrySettlements';
3
3
  import type { TemplateInfo } from './TemplateInfo';
4
4
  export type EntryEdit = {
5
5
  name?: string | null;
6
6
  occurredAt?: string | null;
7
7
  operations?: EntryOperations;
8
- settlements?: EntrySettlements;
8
+ accruals?: EntryAccruals;
9
9
  template?: TemplateInfo;
10
10
  };
@@ -1,5 +1,5 @@
1
+ import type { EntryAccruals } from './EntryAccruals';
1
2
  import type { EntryOperations } from './EntryOperations';
2
- import type { EntrySettlements } from './EntrySettlements';
3
3
  import type { TemplateInfo } from './TemplateInfo';
4
4
  export type EntryInsert = {
5
5
  name?: string | null;
@@ -8,6 +8,6 @@ export type EntryInsert = {
8
8
  */
9
9
  occurredAt?: string | null;
10
10
  operations?: EntryOperations;
11
- settlements?: EntrySettlements;
11
+ accruals?: EntryAccruals;
12
12
  template?: TemplateInfo;
13
13
  };
@@ -0,0 +1,27 @@
1
+ import type { BalanceReport } from './BalanceReport';
2
+ import type { BucketBreakdown } from './BucketBreakdown';
3
+ import type { Money } from './Money';
4
+ export type LogAccrual = {
5
+ id: string;
6
+ name: string;
7
+ description?: string | null;
8
+ /**
9
+ * If null, the source is the project itself.
10
+ */
11
+ fromMemberId?: string | null;
12
+ /**
13
+ * If null, the target is the project itself.
14
+ */
15
+ toMemberId?: string | null;
16
+ type: 'settlement' | 'receivable';
17
+ money: Money;
18
+ bucketBreakdown?: Array<BucketBreakdown> | null;
19
+ occurredAt: string;
20
+ entryId?: string | null;
21
+ /**
22
+ * If set, record will be deleted when unlined from an entry or when linked entry is deleted.
23
+ */
24
+ deleteWithEntryRemoval?: boolean;
25
+ labelIds: Array<string>;
26
+ balance?: BalanceReport;
27
+ };
@@ -1,9 +1,9 @@
1
1
  import type { Entry } from './Entry';
2
+ import type { LogAccrual } from './LogAccrual';
2
3
  import type { LogOperation } from './LogOperation';
3
- import type { LogSettlement } from './LogSettlement';
4
4
  export type LogItem = {
5
- type?: 'OPERATION' | 'SETTLEMENT' | 'ENTRY';
5
+ type?: 'OPERATION' | 'ACCRUAL' | 'ENTRY';
6
6
  operation?: LogOperation;
7
- settlement?: LogSettlement;
7
+ accrual?: LogAccrual;
8
8
  entry?: Entry;
9
9
  };
@@ -10,7 +10,7 @@ export type OperationInsert = {
10
10
  targetWalletId?: string | null;
11
11
  type: 'in' | 'out' | 'transfer';
12
12
  money: Money;
13
- bucketBreakdown: Array<BucketBreakdown>;
13
+ bucketBreakdown?: Array<BucketBreakdown> | null;
14
14
  entryId?: string | null;
15
15
  /**
16
16
  * If set, operation will be deleted when unlined from an entry or when linked entry is deleted.
@@ -0,0 +1,10 @@
1
+ import type { MoneyExpression } from './MoneyExpression';
2
+ import type { TemplateBucketBreakdownDefinition } from './TemplateBucketBreakdownDefinition';
3
+ export type TemplateAccrualDefinition = {
4
+ fromMemberIdExpression?: string | null;
5
+ toMemberIdExpression?: string | null;
6
+ nameExpression: string;
7
+ money: MoneyExpression;
8
+ bucketBreakdownDefinitions?: Array<TemplateBucketBreakdownDefinition> | null;
9
+ typeExpression: string;
10
+ };
@@ -1,10 +1,10 @@
1
+ import type { TemplateAccrualDefinition } from './TemplateAccrualDefinition';
1
2
  import type { TemplateEntryDefinition } from './TemplateEntryDefinition';
2
3
  import type { TemplateInputDefinition } from './TemplateInputDefinition';
3
4
  import type { TemplateOperationDefinition } from './TemplateOperationDefinition';
4
- import type { TemplateSettlementDefinition } from './TemplateSettlementDefinition';
5
5
  export type TemplateDefinition = {
6
6
  inputDefinition: TemplateInputDefinition;
7
- settlementDefinitions: Array<TemplateSettlementDefinition>;
7
+ accrualDefinitions: Array<TemplateAccrualDefinition>;
8
8
  operationDefinitions: Array<TemplateOperationDefinition>;
9
9
  entryDefinition: TemplateEntryDefinition;
10
10
  };
@@ -7,5 +7,5 @@ export type TemplateOperationDefinition = {
7
7
  targetWalletIdExpression?: string | null;
8
8
  typeExpression: string;
9
9
  money: MoneyExpression;
10
- bucketBreakdownDefinitions: Array<TemplateBucketBreakdownDefinition>;
10
+ bucketBreakdownDefinitions?: Array<TemplateBucketBreakdownDefinition> | null;
11
11
  };
@@ -0,0 +1,49 @@
1
+ import type { Accrual } from '../models/Accrual';
2
+ import type { AccrualEdit } from '../models/AccrualEdit';
3
+ import type { AccrualInsert } from '../models/AccrualInsert';
4
+ import type { AccrualPaginatedList } from '../models/AccrualPaginatedList';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class AccrualsService {
7
+ /**
8
+ * @param projectId
9
+ * @param memberId
10
+ * @param query
11
+ * @param standaloneOnly
12
+ * @param orderByName
13
+ * @param orderByTime
14
+ * @param limit
15
+ * @param next
16
+ * @returns AccrualPaginatedList OK
17
+ * @throws ApiError
18
+ */
19
+ static getProjectsAccruals(projectId: string, memberId?: string, query?: string, standaloneOnly?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<AccrualPaginatedList>;
20
+ /**
21
+ * @param projectId
22
+ * @param requestBody
23
+ * @returns Accrual OK
24
+ * @throws ApiError
25
+ */
26
+ static postProjectsAccruals(projectId: string, requestBody?: AccrualInsert): CancelablePromise<Accrual>;
27
+ /**
28
+ * @param projectId
29
+ * @param accrualId
30
+ * @returns Accrual OK
31
+ * @throws ApiError
32
+ */
33
+ static getProjectsAccruals1(projectId: string, accrualId: string): CancelablePromise<Accrual>;
34
+ /**
35
+ * @param projectId
36
+ * @param accrualId
37
+ * @param requestBody
38
+ * @returns Accrual OK
39
+ * @throws ApiError
40
+ */
41
+ static patchProjectsAccruals(projectId: string, accrualId: string, requestBody?: AccrualEdit): CancelablePromise<Accrual>;
42
+ /**
43
+ * @param projectId
44
+ * @param accrualId
45
+ * @returns any OK
46
+ * @throws ApiError
47
+ */
48
+ static deleteProjectsAccruals(projectId: string, accrualId: string): CancelablePromise<any>;
49
+ }
@@ -1,6 +1,6 @@
1
1
  import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
- export class SettlementsService {
3
+ export class AccrualsService {
4
4
  /**
5
5
  * @param projectId
6
6
  * @param memberId
@@ -10,13 +10,13 @@ export class SettlementsService {
10
10
  * @param orderByTime
11
11
  * @param limit
12
12
  * @param next
13
- * @returns SettlementPaginatedList OK
13
+ * @returns AccrualPaginatedList OK
14
14
  * @throws ApiError
15
15
  */
16
- static getProjectsSettlements(projectId, memberId, query, standaloneOnly = false, orderByName, orderByTime, limit = 100, next) {
16
+ static getProjectsAccruals(projectId, memberId, query, standaloneOnly = false, orderByName, orderByTime, limit = 100, next) {
17
17
  return __request(OpenAPI, {
18
18
  method: 'GET',
19
- url: '/projects/{projectId}/settlements',
19
+ url: '/projects/{projectId}/accruals',
20
20
  path: {
21
21
  'projectId': projectId,
22
22
  },
@@ -34,13 +34,13 @@ export class SettlementsService {
34
34
  /**
35
35
  * @param projectId
36
36
  * @param requestBody
37
- * @returns Settlement OK
37
+ * @returns Accrual OK
38
38
  * @throws ApiError
39
39
  */
40
- static postProjectsSettlements(projectId, requestBody) {
40
+ static postProjectsAccruals(projectId, requestBody) {
41
41
  return __request(OpenAPI, {
42
42
  method: 'POST',
43
- url: '/projects/{projectId}/settlements',
43
+ url: '/projects/{projectId}/accruals',
44
44
  path: {
45
45
  'projectId': projectId,
46
46
  },
@@ -50,34 +50,34 @@ export class SettlementsService {
50
50
  }
51
51
  /**
52
52
  * @param projectId
53
- * @param settlementId
54
- * @returns Settlement OK
53
+ * @param accrualId
54
+ * @returns Accrual OK
55
55
  * @throws ApiError
56
56
  */
57
- static getProjectsSettlements1(projectId, settlementId) {
57
+ static getProjectsAccruals1(projectId, accrualId) {
58
58
  return __request(OpenAPI, {
59
59
  method: 'GET',
60
- url: '/projects/{projectId}/settlements/{settlementId}',
60
+ url: '/projects/{projectId}/accruals/{accrualId}',
61
61
  path: {
62
62
  'projectId': projectId,
63
- 'settlementId': settlementId,
63
+ 'accrualId': accrualId,
64
64
  },
65
65
  });
66
66
  }
67
67
  /**
68
68
  * @param projectId
69
- * @param settlementId
69
+ * @param accrualId
70
70
  * @param requestBody
71
- * @returns Settlement OK
71
+ * @returns Accrual OK
72
72
  * @throws ApiError
73
73
  */
74
- static patchProjectsSettlements(projectId, settlementId, requestBody) {
74
+ static patchProjectsAccruals(projectId, accrualId, requestBody) {
75
75
  return __request(OpenAPI, {
76
76
  method: 'PATCH',
77
- url: '/projects/{projectId}/settlements/{settlementId}',
77
+ url: '/projects/{projectId}/accruals/{accrualId}',
78
78
  path: {
79
79
  'projectId': projectId,
80
- 'settlementId': settlementId,
80
+ 'accrualId': accrualId,
81
81
  },
82
82
  body: requestBody,
83
83
  mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
@@ -85,17 +85,17 @@ export class SettlementsService {
85
85
  }
86
86
  /**
87
87
  * @param projectId
88
- * @param settlementId
88
+ * @param accrualId
89
89
  * @returns any OK
90
90
  * @throws ApiError
91
91
  */
92
- static deleteProjectsSettlements(projectId, settlementId) {
92
+ static deleteProjectsAccruals(projectId, accrualId) {
93
93
  return __request(OpenAPI, {
94
94
  method: 'DELETE',
95
- url: '/projects/{projectId}/settlements/{settlementId}',
95
+ url: '/projects/{projectId}/accruals/{accrualId}',
96
96
  path: {
97
97
  'projectId': projectId,
98
- 'settlementId': settlementId,
98
+ 'accrualId': accrualId,
99
99
  },
100
100
  });
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-137",
3
+ "version": "0.4.0-141",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,6 +0,0 @@
1
- import type { SettlementEdit } from './SettlementEdit';
2
- import type { SettlementInsert } from './SettlementInsert';
3
- export type EntrySettlements = {
4
- create?: Array<SettlementInsert> | null;
5
- update?: Record<string, SettlementEdit> | null;
6
- };
@@ -1,20 +0,0 @@
1
- import type { BalanceReport } from './BalanceReport';
2
- import type { BucketBreakdown } from './BucketBreakdown';
3
- import type { Money } from './Money';
4
- export type LogSettlement = {
5
- id: string;
6
- name: string;
7
- description?: string | null;
8
- memberId: string;
9
- money: Money;
10
- bucketBreakdown: Array<BucketBreakdown>;
11
- compensation: boolean;
12
- occurredAt: string;
13
- entryId?: string | null;
14
- /**
15
- * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
16
- */
17
- deleteWithEntryRemoval?: boolean;
18
- labelIds: Array<string>;
19
- balance?: BalanceReport;
20
- };
@@ -1,18 +0,0 @@
1
- import type { BucketBreakdown } from './BucketBreakdown';
2
- import type { Money } from './Money';
3
- export type Settlement = {
4
- id: string;
5
- name: string;
6
- description?: string | null;
7
- memberId: string;
8
- money: Money;
9
- bucketBreakdown: Array<BucketBreakdown>;
10
- compensation: boolean;
11
- occurredAt: string;
12
- entryId?: string | null;
13
- /**
14
- * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
15
- */
16
- deleteWithEntryRemoval?: boolean;
17
- labelIds: Array<string>;
18
- };
@@ -1,9 +0,0 @@
1
- import type { MoneyExpression } from './MoneyExpression';
2
- import type { TemplateBucketBreakdownDefinition } from './TemplateBucketBreakdownDefinition';
3
- export type TemplateSettlementDefinition = {
4
- memberIdExpression: string;
5
- nameExpression: string;
6
- money: MoneyExpression;
7
- bucketBreakdownDefinitions: Array<TemplateBucketBreakdownDefinition>;
8
- compensationExpression: string;
9
- };
@@ -1,49 +0,0 @@
1
- import type { Settlement } from '../models/Settlement';
2
- import type { SettlementEdit } from '../models/SettlementEdit';
3
- import type { SettlementInsert } from '../models/SettlementInsert';
4
- import type { SettlementPaginatedList } from '../models/SettlementPaginatedList';
5
- import type { CancelablePromise } from '../core/CancelablePromise';
6
- export declare class SettlementsService {
7
- /**
8
- * @param projectId
9
- * @param memberId
10
- * @param query
11
- * @param standaloneOnly
12
- * @param orderByName
13
- * @param orderByTime
14
- * @param limit
15
- * @param next
16
- * @returns SettlementPaginatedList OK
17
- * @throws ApiError
18
- */
19
- static getProjectsSettlements(projectId: string, memberId?: string, query?: string, standaloneOnly?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<SettlementPaginatedList>;
20
- /**
21
- * @param projectId
22
- * @param requestBody
23
- * @returns Settlement OK
24
- * @throws ApiError
25
- */
26
- static postProjectsSettlements(projectId: string, requestBody?: SettlementInsert): CancelablePromise<Settlement>;
27
- /**
28
- * @param projectId
29
- * @param settlementId
30
- * @returns Settlement OK
31
- * @throws ApiError
32
- */
33
- static getProjectsSettlements1(projectId: string, settlementId: string): CancelablePromise<Settlement>;
34
- /**
35
- * @param projectId
36
- * @param settlementId
37
- * @param requestBody
38
- * @returns Settlement OK
39
- * @throws ApiError
40
- */
41
- static patchProjectsSettlements(projectId: string, settlementId: string, requestBody?: SettlementEdit): CancelablePromise<Settlement>;
42
- /**
43
- * @param projectId
44
- * @param settlementId
45
- * @returns any OK
46
- * @throws ApiError
47
- */
48
- static deleteProjectsSettlements(projectId: string, settlementId: string): CancelablePromise<any>;
49
- }