@saritasa/crm-delmar-core-sdk 0.1.161 → 0.1.162
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/README.md +2 -2
- package/api/projects-api.service.d.ts +22 -0
- package/api/projects-api.serviceInterface.d.ts +7 -0
- package/api/users-api.service.d.ts +21 -0
- package/api/users-api.serviceInterface.d.ts +6 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +76 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ import { PaginatedProjectMarginReportListDto } from "../model/paginated-project-
|
|
|
5
5
|
import { PaginatedProjectStatusReportListDto } from "../model/paginated-project-status-report-list.dto";
|
|
6
6
|
import { PaginatedSimpleProjectListDto } from "../model/paginated-simple-project-list.dto";
|
|
7
7
|
import { ProjectDto } from "../model/project.dto";
|
|
8
|
+
import { SimpleProjectDto } from "../model/simple-project.dto";
|
|
8
9
|
import { Configuration } from "../configuration";
|
|
9
10
|
import { BaseService } from "../api.base.service";
|
|
10
11
|
import { ProjectsApiServiceInterface, ProjectsCreateRequestParams, ProjectsListRequestParams, ProjectsMarginReportListRequestParams, ProjectsRetrieveRequestParams, ProjectsStatusReportListRequestParams, ProjectsUpdateRequestParams, ProjectsWorkedOnListRequestParams } from "./projects-api.serviceInterface";
|
|
@@ -100,6 +101,27 @@ export declare class ProjectsApiService extends BaseService implements ProjectsA
|
|
|
100
101
|
context?: HttpContext;
|
|
101
102
|
transferCache?: boolean;
|
|
102
103
|
}): Observable<HttpEvent<ProjectDto>>;
|
|
104
|
+
/**
|
|
105
|
+
* Get minimal projects info for searching.
|
|
106
|
+
* @endpoint get /api/v1/projects/search/
|
|
107
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
108
|
+
* @param reportProgress flag to report request and response progress.
|
|
109
|
+
*/
|
|
110
|
+
projectsSearchRetrieve(observe?: "body", reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: "application/json";
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<SimpleProjectDto>;
|
|
115
|
+
projectsSearchRetrieve(observe?: "response", reportProgress?: boolean, options?: {
|
|
116
|
+
httpHeaderAccept?: "application/json";
|
|
117
|
+
context?: HttpContext;
|
|
118
|
+
transferCache?: boolean;
|
|
119
|
+
}): Observable<HttpResponse<SimpleProjectDto>>;
|
|
120
|
+
projectsSearchRetrieve(observe?: "events", reportProgress?: boolean, options?: {
|
|
121
|
+
httpHeaderAccept?: "application/json";
|
|
122
|
+
context?: HttpContext;
|
|
123
|
+
transferCache?: boolean;
|
|
124
|
+
}): Observable<HttpEvent<SimpleProjectDto>>;
|
|
103
125
|
/**
|
|
104
126
|
* Get status report for projects.
|
|
105
127
|
* @endpoint get /api/v1/projects/status-report/
|
|
@@ -15,6 +15,7 @@ import { PaginatedProjectStatusReportListDto } from "../model/models";
|
|
|
15
15
|
import { PaginatedSimpleProjectListDto } from "../model/models";
|
|
16
16
|
import { ProjectDto } from "../model/models";
|
|
17
17
|
import { ProjectRequestDto } from "../model/models";
|
|
18
|
+
import { SimpleProjectDto } from "../model/models";
|
|
18
19
|
import { Configuration } from "../configuration";
|
|
19
20
|
export interface ProjectsCreateRequestParams {
|
|
20
21
|
projectRequestDto: ProjectRequestDto;
|
|
@@ -149,6 +150,12 @@ export interface ProjectsApiServiceInterface {
|
|
|
149
150
|
* @param requestParameters
|
|
150
151
|
*/
|
|
151
152
|
projectsRetrieve(requestParameters: ProjectsRetrieveRequestParams, extraHttpRequestParams?: any): Observable<ProjectDto>;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* Get minimal projects info for searching.
|
|
156
|
+
* @endpoint get /api/v1/projects/search/
|
|
157
|
+
*/
|
|
158
|
+
projectsSearchRetrieve(extraHttpRequestParams?: any): Observable<SimpleProjectDto>;
|
|
152
159
|
/**
|
|
153
160
|
*
|
|
154
161
|
* Get status report for projects.
|
|
@@ -190,6 +190,27 @@ export declare class UsersApiService extends BaseService implements UsersApiServ
|
|
|
190
190
|
context?: HttpContext;
|
|
191
191
|
transferCache?: boolean;
|
|
192
192
|
}): Observable<HttpEvent<PaginatedUserScoreStatListDto>>;
|
|
193
|
+
/**
|
|
194
|
+
* Get minimal users info for searching.
|
|
195
|
+
* @endpoint get /api/v1/users/search/
|
|
196
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
197
|
+
* @param reportProgress flag to report request and response progress.
|
|
198
|
+
*/
|
|
199
|
+
usersSearchRetrieve(observe?: "body", reportProgress?: boolean, options?: {
|
|
200
|
+
httpHeaderAccept?: "application/json";
|
|
201
|
+
context?: HttpContext;
|
|
202
|
+
transferCache?: boolean;
|
|
203
|
+
}): Observable<SimpleUserDto>;
|
|
204
|
+
usersSearchRetrieve(observe?: "response", reportProgress?: boolean, options?: {
|
|
205
|
+
httpHeaderAccept?: "application/json";
|
|
206
|
+
context?: HttpContext;
|
|
207
|
+
transferCache?: boolean;
|
|
208
|
+
}): Observable<HttpResponse<SimpleUserDto>>;
|
|
209
|
+
usersSearchRetrieve(observe?: "events", reportProgress?: boolean, options?: {
|
|
210
|
+
httpHeaderAccept?: "application/json";
|
|
211
|
+
context?: HttpContext;
|
|
212
|
+
transferCache?: boolean;
|
|
213
|
+
}): Observable<HttpEvent<SimpleUserDto>>;
|
|
193
214
|
/**
|
|
194
215
|
* ViewSet for viewing accounts.
|
|
195
216
|
* @endpoint put /api/v1/users/{id}/
|
|
@@ -197,6 +197,12 @@ export interface UsersApiServiceInterface {
|
|
|
197
197
|
* @param requestParameters
|
|
198
198
|
*/
|
|
199
199
|
usersScoreStatsList(requestParameters: UsersScoreStatsListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedUserScoreStatListDto>;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* Get minimal users info for searching.
|
|
203
|
+
* @endpoint get /api/v1/users/search/
|
|
204
|
+
*/
|
|
205
|
+
usersSearchRetrieve(extraHttpRequestParams?: any): Observable<SimpleUserDto>;
|
|
200
206
|
/**
|
|
201
207
|
*
|
|
202
208
|
* ViewSet for viewing accounts.
|
|
@@ -14375,6 +14375,44 @@ class ProjectsApiService extends BaseService {
|
|
|
14375
14375
|
reportProgress: reportProgress,
|
|
14376
14376
|
});
|
|
14377
14377
|
}
|
|
14378
|
+
projectsSearchRetrieve(observe = "body", reportProgress = false, options) {
|
|
14379
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14380
|
+
// authentication (cookieAuth) required
|
|
14381
|
+
// authentication (jwtAuth) required
|
|
14382
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
14383
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
14384
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
14385
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14386
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
14387
|
+
}
|
|
14388
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
14389
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
14390
|
+
let responseType_ = "json";
|
|
14391
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14392
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
14393
|
+
responseType_ = "text";
|
|
14394
|
+
}
|
|
14395
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14396
|
+
responseType_ = "json";
|
|
14397
|
+
}
|
|
14398
|
+
else {
|
|
14399
|
+
responseType_ = "blob";
|
|
14400
|
+
}
|
|
14401
|
+
}
|
|
14402
|
+
let localVarPath = `/api/v1/projects/search/`;
|
|
14403
|
+
const { basePath, withCredentials } = this.configuration;
|
|
14404
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
14405
|
+
context: localVarHttpContext,
|
|
14406
|
+
responseType: responseType_,
|
|
14407
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
14408
|
+
headers: localVarHeaders,
|
|
14409
|
+
observe: observe,
|
|
14410
|
+
...(localVarTransferCache !== undefined
|
|
14411
|
+
? { transferCache: localVarTransferCache }
|
|
14412
|
+
: {}),
|
|
14413
|
+
reportProgress: reportProgress,
|
|
14414
|
+
});
|
|
14415
|
+
}
|
|
14378
14416
|
projectsStatusReportList(requestParameters, observe = "body", reportProgress = false, options) {
|
|
14379
14417
|
const period = requestParameters?.period;
|
|
14380
14418
|
if (period === null || period === undefined) {
|
|
@@ -18446,6 +18484,44 @@ class UsersApiService extends BaseService {
|
|
|
18446
18484
|
reportProgress: reportProgress,
|
|
18447
18485
|
});
|
|
18448
18486
|
}
|
|
18487
|
+
usersSearchRetrieve(observe = "body", reportProgress = false, options) {
|
|
18488
|
+
let localVarHeaders = this.defaultHeaders;
|
|
18489
|
+
// authentication (cookieAuth) required
|
|
18490
|
+
// authentication (jwtAuth) required
|
|
18491
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
18492
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
18493
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
18494
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
18495
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
18496
|
+
}
|
|
18497
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
18498
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
18499
|
+
let responseType_ = "json";
|
|
18500
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
18501
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
18502
|
+
responseType_ = "text";
|
|
18503
|
+
}
|
|
18504
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
18505
|
+
responseType_ = "json";
|
|
18506
|
+
}
|
|
18507
|
+
else {
|
|
18508
|
+
responseType_ = "blob";
|
|
18509
|
+
}
|
|
18510
|
+
}
|
|
18511
|
+
let localVarPath = `/api/v1/users/search/`;
|
|
18512
|
+
const { basePath, withCredentials } = this.configuration;
|
|
18513
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
18514
|
+
context: localVarHttpContext,
|
|
18515
|
+
responseType: responseType_,
|
|
18516
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
18517
|
+
headers: localVarHeaders,
|
|
18518
|
+
observe: observe,
|
|
18519
|
+
...(localVarTransferCache !== undefined
|
|
18520
|
+
? { transferCache: localVarTransferCache }
|
|
18521
|
+
: {}),
|
|
18522
|
+
reportProgress: reportProgress,
|
|
18523
|
+
});
|
|
18524
|
+
}
|
|
18449
18525
|
usersUpdate(requestParameters, observe = "body", reportProgress = false, options) {
|
|
18450
18526
|
const id = requestParameters?.id;
|
|
18451
18527
|
if (id === null || id === undefined) {
|