@incomy/platform-sdk 0.6.0 → 0.6.1
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.
- package/dist/services/hub/index.d.ts +8 -0
- package/dist/services/hub/index.js +2 -0
- package/dist/services/hub/models/Accrual.d.ts +10 -0
- package/dist/services/hub/models/AccrualEdit.d.ts +4 -0
- package/dist/services/hub/models/AccrualInsert.d.ts +10 -0
- package/dist/services/hub/models/BalanceTimeline.d.ts +17 -0
- package/dist/services/hub/models/BalanceTimeline.js +1 -0
- package/dist/services/hub/models/BalanceTimelinePoint.d.ts +19 -0
- package/dist/services/hub/models/BalanceTimelinePoint.js +1 -0
- package/dist/services/hub/models/Document.d.ts +30 -0
- package/dist/services/hub/models/Document.js +1 -0
- package/dist/services/hub/models/DocumentLinkRequest.d.ts +7 -0
- package/dist/services/hub/models/DocumentLinkRequest.js +1 -0
- package/dist/services/hub/models/DocumentUploadRequest.d.ts +8 -0
- package/dist/services/hub/models/DocumentUploadRequest.js +1 -0
- package/dist/services/hub/models/DocumentUploadTicket.d.ts +22 -0
- package/dist/services/hub/models/DocumentUploadTicket.js +1 -0
- package/dist/services/hub/models/LogAccrual.d.ts +10 -0
- package/dist/services/hub/models/LogOperation.d.ts +10 -0
- package/dist/services/hub/models/Operation.d.ts +10 -0
- package/dist/services/hub/models/OperationEdit.d.ts +4 -0
- package/dist/services/hub/models/OperationInsert.d.ts +10 -0
- package/dist/services/hub/models/TrashItem.d.ts +1 -1
- package/dist/services/hub/services/AccrualsService.d.ts +27 -22
- package/dist/services/hub/services/AccrualsService.js +5 -22
- package/dist/services/hub/services/AuthService.d.ts +12 -8
- package/dist/services/hub/services/AuthService.js +4 -8
- package/dist/services/hub/services/BucketsService.d.ts +24 -19
- package/dist/services/hub/services/BucketsService.js +5 -19
- package/dist/services/hub/services/CompaniesService.d.ts +24 -19
- package/dist/services/hub/services/CompaniesService.js +5 -19
- package/dist/services/hub/services/DeletedProjectsService.d.ts +10 -7
- package/dist/services/hub/services/DeletedProjectsService.js +3 -7
- package/dist/services/hub/services/LabelsService.d.ts +24 -19
- package/dist/services/hub/services/LabelsService.js +5 -19
- package/dist/services/hub/services/MembersService.d.ts +37 -25
- package/dist/services/hub/services/MembersService.js +12 -25
- package/dist/services/hub/services/MockStorageService.d.ts +17 -0
- package/dist/services/hub/services/MockStorageService.js +30 -0
- package/dist/services/hub/services/MultiEventsService.d.ts +28 -23
- package/dist/services/hub/services/MultiEventsService.js +5 -23
- package/dist/services/hub/services/OperationsService.d.ts +32 -27
- package/dist/services/hub/services/OperationsService.js +5 -27
- package/dist/services/hub/services/ProjectDocumentsService.d.ts +71 -0
- package/dist/services/hub/services/ProjectDocumentsService.js +116 -0
- package/dist/services/hub/services/ProjectWalletsService.d.ts +37 -25
- package/dist/services/hub/services/ProjectWalletsService.js +12 -25
- package/dist/services/hub/services/ProjectsService.d.ts +83 -43
- package/dist/services/hub/services/ProjectsService.js +49 -43
- package/dist/services/hub/services/TemplatesService.d.ts +24 -19
- package/dist/services/hub/services/TemplatesService.js +5 -19
- package/dist/services/hub/services/TrashService.d.ts +24 -17
- package/dist/services/hub/services/TrashService.js +4 -17
- package/dist/services/hub/services/UserSettingsService.d.ts +3 -2
- package/dist/services/hub/services/UserSettingsService.js +1 -2
- package/meta.json +5 -5
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ export type { AccrualInsert } from './models/AccrualInsert';
|
|
|
8
8
|
export type { AccrualPaginatedList } from './models/AccrualPaginatedList';
|
|
9
9
|
export type { Balance } from './models/Balance';
|
|
10
10
|
export type { BalanceReport } from './models/BalanceReport';
|
|
11
|
+
export type { BalanceTimeline } from './models/BalanceTimeline';
|
|
12
|
+
export type { BalanceTimelinePoint } from './models/BalanceTimelinePoint';
|
|
11
13
|
export type { Bucket } from './models/Bucket';
|
|
12
14
|
export type { BucketableBalance } from './models/BucketableBalance';
|
|
13
15
|
export type { BucketBalance } from './models/BucketBalance';
|
|
@@ -20,6 +22,10 @@ export type { CompanyEdit } from './models/CompanyEdit';
|
|
|
20
22
|
export type { CompanyInsert } from './models/CompanyInsert';
|
|
21
23
|
export type { CompanyPaginatedList } from './models/CompanyPaginatedList';
|
|
22
24
|
export type { CurrencyInfo } from './models/CurrencyInfo';
|
|
25
|
+
export type { Document } from './models/Document';
|
|
26
|
+
export type { DocumentLinkRequest } from './models/DocumentLinkRequest';
|
|
27
|
+
export type { DocumentUploadRequest } from './models/DocumentUploadRequest';
|
|
28
|
+
export type { DocumentUploadTicket } from './models/DocumentUploadTicket';
|
|
23
29
|
export type { Icon } from './models/Icon';
|
|
24
30
|
export type { InputFieldDefinition } from './models/InputFieldDefinition';
|
|
25
31
|
export type { Label } from './models/Label';
|
|
@@ -94,8 +100,10 @@ export { CurrenciesService } from './services/CurrenciesService';
|
|
|
94
100
|
export { DeletedProjectsService } from './services/DeletedProjectsService';
|
|
95
101
|
export { LabelsService } from './services/LabelsService';
|
|
96
102
|
export { MembersService } from './services/MembersService';
|
|
103
|
+
export { MockStorageService } from './services/MockStorageService';
|
|
97
104
|
export { MultiEventsService } from './services/MultiEventsService';
|
|
98
105
|
export { OperationsService } from './services/OperationsService';
|
|
106
|
+
export { ProjectDocumentsService } from './services/ProjectDocumentsService';
|
|
99
107
|
export { ProjectsService } from './services/ProjectsService';
|
|
100
108
|
export { ProjectWalletsService } from './services/ProjectWalletsService';
|
|
101
109
|
export { TemplatesService } from './services/TemplatesService';
|
|
@@ -13,8 +13,10 @@ export { CurrenciesService } from './services/CurrenciesService';
|
|
|
13
13
|
export { DeletedProjectsService } from './services/DeletedProjectsService';
|
|
14
14
|
export { LabelsService } from './services/LabelsService';
|
|
15
15
|
export { MembersService } from './services/MembersService';
|
|
16
|
+
export { MockStorageService } from './services/MockStorageService';
|
|
16
17
|
export { MultiEventsService } from './services/MultiEventsService';
|
|
17
18
|
export { OperationsService } from './services/OperationsService';
|
|
19
|
+
export { ProjectDocumentsService } from './services/ProjectDocumentsService';
|
|
18
20
|
export { ProjectsService } from './services/ProjectsService';
|
|
19
21
|
export { ProjectWalletsService } from './services/ProjectWalletsService';
|
|
20
22
|
export { TemplatesService } from './services/TemplatesService';
|
|
@@ -17,6 +17,16 @@ export type Accrual = {
|
|
|
17
17
|
*/
|
|
18
18
|
deleteWithMultiEventRemoval?: boolean;
|
|
19
19
|
description?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Number of documents attached to this accrual (live, Ready only); 0 when none. Read-only,
|
|
22
|
+
* server-populated on read — see the document-attachments roadmap.
|
|
23
|
+
*/
|
|
24
|
+
documentCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* If true, this accrual is expected to have at least one attached document. Advisory only — the UI warns
|
|
27
|
+
* when none is attached and never blocks saving. The UI auto-sets it when a company is selected.
|
|
28
|
+
*/
|
|
29
|
+
documentRequired?: boolean;
|
|
20
30
|
/**
|
|
21
31
|
* If null, the source is the project itself.
|
|
22
32
|
*/
|
|
@@ -11,6 +11,10 @@ export type AccrualEdit = {
|
|
|
11
11
|
*/
|
|
12
12
|
deleteWithMultiEventRemoval?: boolean | null;
|
|
13
13
|
description?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* If provided, sets whether this accrual is expected to have an attached document (advisory). Null leaves it unchanged.
|
|
16
|
+
*/
|
|
17
|
+
documentRequired?: boolean | null;
|
|
14
18
|
/**
|
|
15
19
|
* If null, the source is the Project itself.
|
|
16
20
|
*/
|
|
@@ -8,6 +8,16 @@ export type AccrualInsert = {
|
|
|
8
8
|
*/
|
|
9
9
|
deleteWithMultiEventRemoval?: boolean;
|
|
10
10
|
description?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Ids of already-uploaded, still-unlinked project documents to attach to this accrual on create — the
|
|
13
|
+
* upload-first-then-link flow, so a new accrual's documents upload (with real progress) before the accrual
|
|
14
|
+
* exists and are linked here. Each must belong to the project and be unlinked; the per-item document limit applies.
|
|
15
|
+
*/
|
|
16
|
+
documentIds?: Array<string> | null;
|
|
17
|
+
/**
|
|
18
|
+
* If true, this accrual is expected to have at least one attached document (advisory). Defaults to false.
|
|
19
|
+
*/
|
|
20
|
+
documentRequired?: boolean;
|
|
11
21
|
/**
|
|
12
22
|
* If null, the source is the project itself.
|
|
13
23
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BalanceTimelinePoint } from './BalanceTimelinePoint';
|
|
2
|
+
/**
|
|
3
|
+
* A balance-over-time series for a project, sampled at a fixed Incomy.Platform.Hub.Models.BalanceTimeline.Interval. Each point carries two
|
|
4
|
+
* per-currency figures: Incomy.Platform.Hub.Models.BalanceTimelinePoint.Actual (wallet state derived from operations —
|
|
5
|
+
* historical only, so it is empty for points after Incomy.Platform.Hub.Models.BalanceTimeline.Now) and
|
|
6
|
+
* Incomy.Platform.Hub.Models.BalanceTimelinePoint.Effective (actual combined with accruals — it may extend past
|
|
7
|
+
* Incomy.Platform.Hub.Models.BalanceTimeline.Now as a prediction driven by future-dated accruals). No FX conversion is applied: every
|
|
8
|
+
* figure is a list with one entry per currency.
|
|
9
|
+
*/
|
|
10
|
+
export type BalanceTimeline = {
|
|
11
|
+
interval: 'day' | 'week' | 'month';
|
|
12
|
+
/**
|
|
13
|
+
* Server "now": the boundary between realized history and prediction. Points dated after this are projections.
|
|
14
|
+
*/
|
|
15
|
+
now: string;
|
|
16
|
+
points: Array<BalanceTimelinePoint>;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Money } from './Money';
|
|
2
|
+
export type BalanceTimelinePoint = {
|
|
3
|
+
/**
|
|
4
|
+
* Wallet state from operations, per currency. Empty for projection points (dated after Incomy.Platform.Hub.Models.BalanceTimeline.Now).
|
|
5
|
+
*/
|
|
6
|
+
actual: Array<Money>;
|
|
7
|
+
/**
|
|
8
|
+
* Bucket start, aligned to Incomy.Platform.Hub.Models.BalanceTimeline.Interval. The values are the closing balance of the bucket.
|
|
9
|
+
*/
|
|
10
|
+
date: string;
|
|
11
|
+
/**
|
|
12
|
+
* Actual balance combined with accruals, per currency. Spans the whole horizon, including the prediction tail.
|
|
13
|
+
*/
|
|
14
|
+
effective: Array<Money>;
|
|
15
|
+
/**
|
|
16
|
+
* True when Incomy.Platform.Hub.Models.BalanceTimelinePoint.Date is after Incomy.Platform.Hub.Models.BalanceTimeline.Now — a predicted point rather than realized history.
|
|
17
|
+
*/
|
|
18
|
+
isProjection: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A document (file) attached to a project and linked to any number of money items — operations and/or accruals
|
|
3
|
+
* (many-to-many; never a multievent directly). The binary lives in object storage; this is the metadata plus a
|
|
4
|
+
* freshly-minted, short-lived presigned Incomy.Platform.Hub.Models.Document.DownloadUrl (populated per read, never persisted).
|
|
5
|
+
* See docs/roadmap/document-attachments-and-object-storage.md.
|
|
6
|
+
*/
|
|
7
|
+
export type Document = {
|
|
8
|
+
contentType: string;
|
|
9
|
+
/**
|
|
10
|
+
* Server-assigned creation time. Read-only.
|
|
11
|
+
*/
|
|
12
|
+
dateCreated: string;
|
|
13
|
+
/**
|
|
14
|
+
* A freshly-generated, short-lived presigned URL to download the binary directly from object storage.
|
|
15
|
+
* Populated on read; null on a document that is still Incomy.Platform.Hub.Models.DocumentStatus.Pending.
|
|
16
|
+
*/
|
|
17
|
+
downloadUrl?: string | null;
|
|
18
|
+
fileName: string;
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Size of the binary in bytes.
|
|
22
|
+
*/
|
|
23
|
+
sizeBytes?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Lifecycle of a document's binary in object storage. A document row is created Incomy.Platform.Hub.Models.DocumentStatus.Pending when an
|
|
26
|
+
* upload is initiated (the presigned URL is handed out); it flips to Incomy.Platform.Hub.Models.DocumentStatus.Ready once the client confirms
|
|
27
|
+
* the direct upload completed. See docs/roadmap/document-attachments-and-object-storage.md.
|
|
28
|
+
*/
|
|
29
|
+
status: 'pending' | 'ready';
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Document } from './Document';
|
|
2
|
+
/**
|
|
3
|
+
* The result of initiating an upload: the created (Incomy.Platform.Hub.Models.DocumentStatus.Pending) document plus a
|
|
4
|
+
* presigned Incomy.Platform.Hub.Models.DocumentUploadTicket.UploadUrl the client PUTs the file to directly. After the direct upload succeeds the
|
|
5
|
+
* client calls the complete endpoint to flip the document to Incomy.Platform.Hub.Models.DocumentStatus.Ready.
|
|
6
|
+
*/
|
|
7
|
+
export type DocumentUploadTicket = {
|
|
8
|
+
document: Document;
|
|
9
|
+
/**
|
|
10
|
+
* When the presigned Incomy.Platform.Hub.Models.DocumentUploadTicket.UploadUrl expires.
|
|
11
|
+
*/
|
|
12
|
+
expiresAt: string;
|
|
13
|
+
/**
|
|
14
|
+
* Headers the client must send with the direct upload (e.g. Content-Type).
|
|
15
|
+
*/
|
|
16
|
+
headers?: Record<string, string | null> | null;
|
|
17
|
+
/**
|
|
18
|
+
* HTTP method to use for the direct upload (e.g. "PUT").
|
|
19
|
+
*/
|
|
20
|
+
method: string;
|
|
21
|
+
uploadUrl: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,6 +19,16 @@ export type LogAccrual = {
|
|
|
19
19
|
*/
|
|
20
20
|
deleteWithMultiEventRemoval?: boolean;
|
|
21
21
|
description?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Number of documents attached to this accrual (live, Ready only); 0 when none. Read-only,
|
|
24
|
+
* server-populated on read — see the document-attachments roadmap.
|
|
25
|
+
*/
|
|
26
|
+
documentCount?: number;
|
|
27
|
+
/**
|
|
28
|
+
* If true, this accrual is expected to have at least one attached document. Advisory only — the UI warns
|
|
29
|
+
* when none is attached and never blocks saving. The UI auto-sets it when a company is selected.
|
|
30
|
+
*/
|
|
31
|
+
documentRequired?: boolean;
|
|
22
32
|
/**
|
|
23
33
|
* If null, the source is the project itself.
|
|
24
34
|
*/
|
|
@@ -17,6 +17,16 @@ export type LogOperation = {
|
|
|
17
17
|
* If set, operation will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
18
18
|
*/
|
|
19
19
|
deleteWithMultiEventRemoval?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Number of documents attached to this operation (live, Ready only); 0 when none. Read-only,
|
|
22
|
+
* server-populated on read — see the document-attachments roadmap.
|
|
23
|
+
*/
|
|
24
|
+
documentCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* If true, this operation is expected to have at least one attached document. Advisory only — the UI warns
|
|
27
|
+
* when none is attached and never blocks saving. The UI auto-sets it when a company is selected.
|
|
28
|
+
*/
|
|
29
|
+
documentRequired?: boolean;
|
|
20
30
|
id: string;
|
|
21
31
|
labelIds: Array<string>;
|
|
22
32
|
money: Money;
|
|
@@ -15,6 +15,16 @@ export type Operation = {
|
|
|
15
15
|
* If set, operation will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
16
16
|
*/
|
|
17
17
|
deleteWithMultiEventRemoval?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Number of documents attached to this operation (live, Ready only); 0 when none. Read-only,
|
|
20
|
+
* server-populated on read — see the document-attachments roadmap.
|
|
21
|
+
*/
|
|
22
|
+
documentCount?: number;
|
|
23
|
+
/**
|
|
24
|
+
* If true, this operation is expected to have at least one attached document. Advisory only — the UI warns
|
|
25
|
+
* when none is attached and never blocks saving. The UI auto-sets it when a company is selected.
|
|
26
|
+
*/
|
|
27
|
+
documentRequired?: boolean;
|
|
18
28
|
id: string;
|
|
19
29
|
labelIds: Array<string>;
|
|
20
30
|
money: Money;
|
|
@@ -6,6 +6,10 @@ export type OperationEdit = {
|
|
|
6
6
|
* If set, operation will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
7
7
|
*/
|
|
8
8
|
deleteWithMultiEventRemoval?: boolean | null;
|
|
9
|
+
/**
|
|
10
|
+
* If provided, sets whether this operation is expected to have an attached document (advisory). Null leaves it unchanged.
|
|
11
|
+
*/
|
|
12
|
+
documentRequired?: boolean | null;
|
|
9
13
|
labelIds?: Array<string> | null;
|
|
10
14
|
money?: Money;
|
|
11
15
|
/**
|
|
@@ -6,6 +6,16 @@ export type OperationInsert = {
|
|
|
6
6
|
* If set, operation will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
7
7
|
*/
|
|
8
8
|
deleteWithMultiEventRemoval?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Ids of already-uploaded, still-unlinked project documents to attach to this operation on create — the
|
|
11
|
+
* upload-first-then-link flow, so a new operation's documents upload (with real progress) before the operation
|
|
12
|
+
* exists and are linked here. Each must belong to the project and be unlinked; the per-item document limit applies.
|
|
13
|
+
*/
|
|
14
|
+
documentIds?: Array<string> | null;
|
|
15
|
+
/**
|
|
16
|
+
* If true, this operation is expected to have at least one attached document (advisory). Defaults to false.
|
|
17
|
+
*/
|
|
18
|
+
documentRequired?: boolean;
|
|
9
19
|
labelIds?: Array<string> | null;
|
|
10
20
|
money: Money;
|
|
11
21
|
multiEventId?: string | null;
|
|
@@ -26,5 +26,5 @@ export type TrashItem = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Entity type of the trashed item.
|
|
28
28
|
*/
|
|
29
|
-
type?: 'Project' | 'MultiEvent' | 'Operation' | 'Accrual' | 'Wallet' | 'Member' | 'Bucket' | 'Company' | 'Template' | 'Label';
|
|
29
|
+
type?: 'Project' | 'MultiEvent' | 'Operation' | 'Accrual' | 'Wallet' | 'Member' | 'Bucket' | 'Company' | 'Template' | 'Label' | 'Document';
|
|
30
30
|
};
|
|
@@ -5,45 +5,50 @@ import type { AccrualPaginatedList } from '../models/AccrualPaginatedList';
|
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
6
|
export declare class AccrualsService {
|
|
7
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
8
|
* @returns AccrualPaginatedList OK
|
|
17
9
|
* @throws ApiError
|
|
18
10
|
*/
|
|
19
|
-
static getProjectsAccruals(projectId
|
|
11
|
+
static getProjectsAccruals({ projectId, memberId, query, standaloneOnly, orderByName, orderByTime, limit, next, }: {
|
|
12
|
+
projectId: string;
|
|
13
|
+
memberId?: string;
|
|
14
|
+
query?: string;
|
|
15
|
+
standaloneOnly?: boolean;
|
|
16
|
+
orderByName?: 'Desc' | 'Asc';
|
|
17
|
+
orderByTime?: 'Desc' | 'Asc';
|
|
18
|
+
limit?: number;
|
|
19
|
+
next?: string;
|
|
20
|
+
}): CancelablePromise<AccrualPaginatedList>;
|
|
20
21
|
/**
|
|
21
|
-
* @param projectId
|
|
22
|
-
* @param requestBody
|
|
23
22
|
* @returns Accrual OK
|
|
24
23
|
* @throws ApiError
|
|
25
24
|
*/
|
|
26
|
-
static postProjectsAccruals(projectId
|
|
25
|
+
static postProjectsAccruals({ projectId, requestBody, }: {
|
|
26
|
+
projectId: string;
|
|
27
|
+
requestBody?: AccrualInsert;
|
|
28
|
+
}): CancelablePromise<Accrual>;
|
|
27
29
|
/**
|
|
28
|
-
* @param projectId
|
|
29
|
-
* @param accrualId
|
|
30
30
|
* @returns any OK
|
|
31
31
|
* @throws ApiError
|
|
32
32
|
*/
|
|
33
|
-
static deleteProjectsAccruals(projectId
|
|
33
|
+
static deleteProjectsAccruals({ projectId, accrualId, }: {
|
|
34
|
+
projectId: string;
|
|
35
|
+
accrualId: string;
|
|
36
|
+
}): CancelablePromise<any>;
|
|
34
37
|
/**
|
|
35
|
-
* @param projectId
|
|
36
|
-
* @param accrualId
|
|
37
38
|
* @returns Accrual OK
|
|
38
39
|
* @throws ApiError
|
|
39
40
|
*/
|
|
40
|
-
static getProjectsAccruals1(projectId
|
|
41
|
+
static getProjectsAccruals1({ projectId, accrualId, }: {
|
|
42
|
+
projectId: string;
|
|
43
|
+
accrualId: string;
|
|
44
|
+
}): CancelablePromise<Accrual>;
|
|
41
45
|
/**
|
|
42
|
-
* @param projectId
|
|
43
|
-
* @param accrualId
|
|
44
|
-
* @param requestBody
|
|
45
46
|
* @returns Accrual OK
|
|
46
47
|
* @throws ApiError
|
|
47
48
|
*/
|
|
48
|
-
static patchProjectsAccruals(projectId
|
|
49
|
+
static patchProjectsAccruals({ projectId, accrualId, requestBody, }: {
|
|
50
|
+
projectId: string;
|
|
51
|
+
accrualId: string;
|
|
52
|
+
requestBody?: AccrualEdit;
|
|
53
|
+
}): CancelablePromise<Accrual>;
|
|
49
54
|
}
|
|
@@ -2,18 +2,10 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class AccrualsService {
|
|
4
4
|
/**
|
|
5
|
-
* @param projectId
|
|
6
|
-
* @param memberId
|
|
7
|
-
* @param query
|
|
8
|
-
* @param standaloneOnly
|
|
9
|
-
* @param orderByName
|
|
10
|
-
* @param orderByTime
|
|
11
|
-
* @param limit
|
|
12
|
-
* @param next
|
|
13
5
|
* @returns AccrualPaginatedList OK
|
|
14
6
|
* @throws ApiError
|
|
15
7
|
*/
|
|
16
|
-
static getProjectsAccruals(projectId, memberId, query, standaloneOnly = false, orderByName, orderByTime, limit = 100, next) {
|
|
8
|
+
static getProjectsAccruals({ projectId, memberId, query, standaloneOnly = false, orderByName, orderByTime, limit = 100, next, }) {
|
|
17
9
|
return __request(OpenAPI, {
|
|
18
10
|
method: 'GET',
|
|
19
11
|
url: '/projects/{projectId}/accruals',
|
|
@@ -32,12 +24,10 @@ export class AccrualsService {
|
|
|
32
24
|
});
|
|
33
25
|
}
|
|
34
26
|
/**
|
|
35
|
-
* @param projectId
|
|
36
|
-
* @param requestBody
|
|
37
27
|
* @returns Accrual OK
|
|
38
28
|
* @throws ApiError
|
|
39
29
|
*/
|
|
40
|
-
static postProjectsAccruals(projectId, requestBody) {
|
|
30
|
+
static postProjectsAccruals({ projectId, requestBody, }) {
|
|
41
31
|
return __request(OpenAPI, {
|
|
42
32
|
method: 'POST',
|
|
43
33
|
url: '/projects/{projectId}/accruals',
|
|
@@ -49,12 +39,10 @@ export class AccrualsService {
|
|
|
49
39
|
});
|
|
50
40
|
}
|
|
51
41
|
/**
|
|
52
|
-
* @param projectId
|
|
53
|
-
* @param accrualId
|
|
54
42
|
* @returns any OK
|
|
55
43
|
* @throws ApiError
|
|
56
44
|
*/
|
|
57
|
-
static deleteProjectsAccruals(projectId, accrualId) {
|
|
45
|
+
static deleteProjectsAccruals({ projectId, accrualId, }) {
|
|
58
46
|
return __request(OpenAPI, {
|
|
59
47
|
method: 'DELETE',
|
|
60
48
|
url: '/projects/{projectId}/accruals/{accrualId}',
|
|
@@ -65,12 +53,10 @@ export class AccrualsService {
|
|
|
65
53
|
});
|
|
66
54
|
}
|
|
67
55
|
/**
|
|
68
|
-
* @param projectId
|
|
69
|
-
* @param accrualId
|
|
70
56
|
* @returns Accrual OK
|
|
71
57
|
* @throws ApiError
|
|
72
58
|
*/
|
|
73
|
-
static getProjectsAccruals1(projectId, accrualId) {
|
|
59
|
+
static getProjectsAccruals1({ projectId, accrualId, }) {
|
|
74
60
|
return __request(OpenAPI, {
|
|
75
61
|
method: 'GET',
|
|
76
62
|
url: '/projects/{projectId}/accruals/{accrualId}',
|
|
@@ -81,13 +67,10 @@ export class AccrualsService {
|
|
|
81
67
|
});
|
|
82
68
|
}
|
|
83
69
|
/**
|
|
84
|
-
* @param projectId
|
|
85
|
-
* @param accrualId
|
|
86
|
-
* @param requestBody
|
|
87
70
|
* @returns Accrual OK
|
|
88
71
|
* @throws ApiError
|
|
89
72
|
*/
|
|
90
|
-
static patchProjectsAccruals(projectId, accrualId, requestBody) {
|
|
73
|
+
static patchProjectsAccruals({ projectId, accrualId, requestBody, }) {
|
|
91
74
|
return __request(OpenAPI, {
|
|
92
75
|
method: 'PATCH',
|
|
93
76
|
url: '/projects/{projectId}/accruals/{accrualId}',
|
|
@@ -3,23 +3,26 @@ import type { User } from '../models/User';
|
|
|
3
3
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
4
|
export declare class AuthService {
|
|
5
5
|
/**
|
|
6
|
-
* @param identityId
|
|
7
6
|
* @returns any OK
|
|
8
7
|
* @throws ApiError
|
|
9
8
|
*/
|
|
10
|
-
static postAuthIdentitiesUnlink(identityId
|
|
9
|
+
static postAuthIdentitiesUnlink({ identityId, }: {
|
|
10
|
+
identityId: string;
|
|
11
|
+
}): CancelablePromise<any>;
|
|
11
12
|
/**
|
|
12
|
-
* @param returnUrl
|
|
13
13
|
* @returns any OK
|
|
14
14
|
* @throws ApiError
|
|
15
15
|
*/
|
|
16
|
-
static getAuthLogin(returnUrl
|
|
16
|
+
static getAuthLogin({ returnUrl, }: {
|
|
17
|
+
returnUrl?: string;
|
|
18
|
+
}): CancelablePromise<any>;
|
|
17
19
|
/**
|
|
18
|
-
* @param returnUrl
|
|
19
20
|
* @returns any OK
|
|
20
21
|
* @throws ApiError
|
|
21
22
|
*/
|
|
22
|
-
static getAuthLogout(returnUrl
|
|
23
|
+
static getAuthLogout({ returnUrl, }: {
|
|
24
|
+
returnUrl?: string;
|
|
25
|
+
}): CancelablePromise<any>;
|
|
23
26
|
/**
|
|
24
27
|
* @returns any OK
|
|
25
28
|
* @throws ApiError
|
|
@@ -31,9 +34,10 @@ export declare class AuthService {
|
|
|
31
34
|
*/
|
|
32
35
|
static getAuthMe(): CancelablePromise<User>;
|
|
33
36
|
/**
|
|
34
|
-
* @param requestBody
|
|
35
37
|
* @returns User OK
|
|
36
38
|
* @throws ApiError
|
|
37
39
|
*/
|
|
38
|
-
static postAuthMe(requestBody
|
|
40
|
+
static postAuthMe({ requestBody, }: {
|
|
41
|
+
requestBody?: UpdateProfileRequest;
|
|
42
|
+
}): CancelablePromise<User>;
|
|
39
43
|
}
|
|
@@ -2,11 +2,10 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class AuthService {
|
|
4
4
|
/**
|
|
5
|
-
* @param identityId
|
|
6
5
|
* @returns any OK
|
|
7
6
|
* @throws ApiError
|
|
8
7
|
*/
|
|
9
|
-
static postAuthIdentitiesUnlink(identityId) {
|
|
8
|
+
static postAuthIdentitiesUnlink({ identityId, }) {
|
|
10
9
|
return __request(OpenAPI, {
|
|
11
10
|
method: 'POST',
|
|
12
11
|
url: '/auth/identities/{identityId}/unlink',
|
|
@@ -16,11 +15,10 @@ export class AuthService {
|
|
|
16
15
|
});
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
|
-
* @param returnUrl
|
|
20
18
|
* @returns any OK
|
|
21
19
|
* @throws ApiError
|
|
22
20
|
*/
|
|
23
|
-
static getAuthLogin(returnUrl = '/') {
|
|
21
|
+
static getAuthLogin({ returnUrl = '/', }) {
|
|
24
22
|
return __request(OpenAPI, {
|
|
25
23
|
method: 'GET',
|
|
26
24
|
url: '/auth/login',
|
|
@@ -30,11 +28,10 @@ export class AuthService {
|
|
|
30
28
|
});
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
|
-
* @param returnUrl
|
|
34
31
|
* @returns any OK
|
|
35
32
|
* @throws ApiError
|
|
36
33
|
*/
|
|
37
|
-
static getAuthLogout(returnUrl = '/') {
|
|
34
|
+
static getAuthLogout({ returnUrl = '/', }) {
|
|
38
35
|
return __request(OpenAPI, {
|
|
39
36
|
method: 'GET',
|
|
40
37
|
url: '/auth/logout',
|
|
@@ -64,11 +61,10 @@ export class AuthService {
|
|
|
64
61
|
});
|
|
65
62
|
}
|
|
66
63
|
/**
|
|
67
|
-
* @param requestBody
|
|
68
64
|
* @returns User OK
|
|
69
65
|
* @throws ApiError
|
|
70
66
|
*/
|
|
71
|
-
static postAuthMe(requestBody) {
|
|
67
|
+
static postAuthMe({ requestBody, }) {
|
|
72
68
|
return __request(OpenAPI, {
|
|
73
69
|
method: 'POST',
|
|
74
70
|
url: '/auth/me',
|
|
@@ -5,42 +5,47 @@ import type { BucketPaginatedList } from '../models/BucketPaginatedList';
|
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
6
|
export declare class BucketsService {
|
|
7
7
|
/**
|
|
8
|
-
* @param projectId
|
|
9
|
-
* @param query
|
|
10
|
-
* @param orderByName
|
|
11
|
-
* @param limit
|
|
12
|
-
* @param next
|
|
13
8
|
* @returns BucketPaginatedList OK
|
|
14
9
|
* @throws ApiError
|
|
15
10
|
*/
|
|
16
|
-
static getProjectsBuckets(projectId
|
|
11
|
+
static getProjectsBuckets({ projectId, query, orderByName, limit, next, }: {
|
|
12
|
+
projectId: string;
|
|
13
|
+
query?: string;
|
|
14
|
+
orderByName?: 'Desc' | 'Asc';
|
|
15
|
+
limit?: number;
|
|
16
|
+
next?: string;
|
|
17
|
+
}): CancelablePromise<BucketPaginatedList>;
|
|
17
18
|
/**
|
|
18
|
-
* @param projectId
|
|
19
|
-
* @param requestBody
|
|
20
19
|
* @returns Bucket OK
|
|
21
20
|
* @throws ApiError
|
|
22
21
|
*/
|
|
23
|
-
static postProjectsBuckets(projectId
|
|
22
|
+
static postProjectsBuckets({ projectId, requestBody, }: {
|
|
23
|
+
projectId: string;
|
|
24
|
+
requestBody?: BucketInsert;
|
|
25
|
+
}): CancelablePromise<Bucket>;
|
|
24
26
|
/**
|
|
25
|
-
* @param projectId
|
|
26
|
-
* @param bucketId
|
|
27
27
|
* @returns any OK
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
|
-
static deleteProjectsBuckets(projectId
|
|
30
|
+
static deleteProjectsBuckets({ projectId, bucketId, }: {
|
|
31
|
+
projectId: string;
|
|
32
|
+
bucketId: string;
|
|
33
|
+
}): CancelablePromise<any>;
|
|
31
34
|
/**
|
|
32
|
-
* @param projectId
|
|
33
|
-
* @param bucketId
|
|
34
35
|
* @returns Bucket OK
|
|
35
36
|
* @throws ApiError
|
|
36
37
|
*/
|
|
37
|
-
static getProjectsBuckets1(projectId
|
|
38
|
+
static getProjectsBuckets1({ projectId, bucketId, }: {
|
|
39
|
+
projectId: string;
|
|
40
|
+
bucketId: string;
|
|
41
|
+
}): CancelablePromise<Bucket>;
|
|
38
42
|
/**
|
|
39
|
-
* @param projectId
|
|
40
|
-
* @param bucketId
|
|
41
|
-
* @param requestBody
|
|
42
43
|
* @returns Bucket OK
|
|
43
44
|
* @throws ApiError
|
|
44
45
|
*/
|
|
45
|
-
static patchProjectsBuckets(projectId
|
|
46
|
+
static patchProjectsBuckets({ projectId, bucketId, requestBody, }: {
|
|
47
|
+
projectId: string;
|
|
48
|
+
bucketId: string;
|
|
49
|
+
requestBody?: BucketEdit;
|
|
50
|
+
}): CancelablePromise<Bucket>;
|
|
46
51
|
}
|