@saritasa/crm-delmar-core-sdk 0.2.146 → 0.2.147
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/users-api.service.d.ts +24 -1
- package/api/users-api.serviceInterface.d.ts +21 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +81 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/models.d.ts +3 -0
- package/model/project-duration-data.dto.d.ts +21 -0
- package/model/user-company-jobs-report.dto.d.ts +19 -0
- package/model/user-duration-data.dto.d.ts +36 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,17 +4,40 @@ import { PaginatedUserListDto } from "../model/paginated-user-list.dto";
|
|
|
4
4
|
import { PaginatedUserScoreStatListDto } from "../model/paginated-user-score-stat-list.dto";
|
|
5
5
|
import { S3FileDto } from "../model/s3-file.dto";
|
|
6
6
|
import { SimpleUserDto } from "../model/simple-user.dto";
|
|
7
|
+
import { UserCompanyJobsReportDto } from "../model/user-company-jobs-report.dto";
|
|
7
8
|
import { UserDailyTabularReportDto } from "../model/user-daily-tabular-report.dto";
|
|
8
9
|
import { UserDto } from "../model/user.dto";
|
|
9
10
|
import { UserUtilizationReportDto } from "../model/user-utilization-report.dto";
|
|
10
11
|
import { UtilizationChartPointDto } from "../model/utilization-chart-point.dto";
|
|
11
12
|
import { Configuration } from "../configuration";
|
|
12
13
|
import { BaseService } from "../api.base.service";
|
|
13
|
-
import { UsersApiServiceInterface, UsersCreateRequestParams, UsersDailyTabularReportListRequestParams, UsersExpectedPeriodsApproversListRequestParams, UsersListRequestParams, UsersPartialUpdateRequestParams, UsersRetrieveRequestParams, UsersScoreStatsListRequestParams, UsersUpdateRequestParams, UsersUtilizationChartListRequestParams, UsersUtilizationReportListRequestParams } from "./users-api.serviceInterface";
|
|
14
|
+
import { UsersApiServiceInterface, UsersCompanyJobsReportRetrieveRequestParams, UsersCreateRequestParams, UsersDailyTabularReportListRequestParams, UsersExpectedPeriodsApproversListRequestParams, UsersListRequestParams, UsersPartialUpdateRequestParams, UsersRetrieveRequestParams, UsersScoreStatsListRequestParams, UsersUpdateRequestParams, UsersUtilizationChartListRequestParams, UsersUtilizationReportListRequestParams } from "./users-api.serviceInterface";
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare class UsersApiService extends BaseService implements UsersApiServiceInterface {
|
|
16
17
|
protected httpClient: HttpClient;
|
|
17
18
|
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
19
|
+
/**
|
|
20
|
+
* Get company jobs report.
|
|
21
|
+
* @endpoint get /api/v1/users/company-jobs-report/
|
|
22
|
+
* @param requestParameters
|
|
23
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
24
|
+
* @param reportProgress flag to report request and response progress.
|
|
25
|
+
*/
|
|
26
|
+
usersCompanyJobsReportRetrieve(requestParameters: UsersCompanyJobsReportRetrieveRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: "application/json";
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
transferCache?: boolean;
|
|
30
|
+
}): Observable<UserCompanyJobsReportDto>;
|
|
31
|
+
usersCompanyJobsReportRetrieve(requestParameters: UsersCompanyJobsReportRetrieveRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
32
|
+
httpHeaderAccept?: "application/json";
|
|
33
|
+
context?: HttpContext;
|
|
34
|
+
transferCache?: boolean;
|
|
35
|
+
}): Observable<HttpResponse<UserCompanyJobsReportDto>>;
|
|
36
|
+
usersCompanyJobsReportRetrieve(requestParameters: UsersCompanyJobsReportRetrieveRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
37
|
+
httpHeaderAccept?: "application/json";
|
|
38
|
+
context?: HttpContext;
|
|
39
|
+
transferCache?: boolean;
|
|
40
|
+
}): Observable<HttpEvent<UserCompanyJobsReportDto>>;
|
|
18
41
|
/**
|
|
19
42
|
* ViewSet for viewing accounts.
|
|
20
43
|
* @endpoint post /api/v1/users/
|
|
@@ -14,12 +14,26 @@ import { PaginatedUserScoreStatListDto } from "../model/models";
|
|
|
14
14
|
import { PatchedPatchUserRequestDto } from "../model/models";
|
|
15
15
|
import { S3FileDto } from "../model/models";
|
|
16
16
|
import { SimpleUserDto } from "../model/models";
|
|
17
|
+
import { UserCompanyJobsReportDto } from "../model/models";
|
|
17
18
|
import { UserDailyTabularReportDto } from "../model/models";
|
|
18
19
|
import { UserDto } from "../model/models";
|
|
19
20
|
import { UserRequestDto } from "../model/models";
|
|
20
21
|
import { UserUtilizationReportDto } from "../model/models";
|
|
21
22
|
import { UtilizationChartPointDto } from "../model/models";
|
|
22
23
|
import { Configuration } from "../configuration";
|
|
24
|
+
export interface UsersCompanyJobsReportRetrieveRequestParams {
|
|
25
|
+
period: string;
|
|
26
|
+
branch?: number;
|
|
27
|
+
branchIn?: Array<number>;
|
|
28
|
+
id?: number;
|
|
29
|
+
idIn?: Array<number>;
|
|
30
|
+
ordering?: string;
|
|
31
|
+
reportType?: "admin" | "billable" | "in_house" | "over_budget" | "unbillable" | "unutilized";
|
|
32
|
+
showSupervised?: boolean;
|
|
33
|
+
showUtilized?: boolean;
|
|
34
|
+
workType?: number;
|
|
35
|
+
workTypeIn?: Array<number>;
|
|
36
|
+
}
|
|
23
37
|
export interface UsersCreateRequestParams {
|
|
24
38
|
userRequestDto: UserRequestDto;
|
|
25
39
|
}
|
|
@@ -142,6 +156,13 @@ export interface UsersUtilizationReportListRequestParams {
|
|
|
142
156
|
export interface UsersApiServiceInterface {
|
|
143
157
|
defaultHeaders: HttpHeaders;
|
|
144
158
|
configuration: Configuration;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* Get company jobs report.
|
|
162
|
+
* @endpoint get /api/v1/users/company-jobs-report/
|
|
163
|
+
* @param requestParameters
|
|
164
|
+
*/
|
|
165
|
+
usersCompanyJobsReportRetrieve(requestParameters: UsersCompanyJobsReportRetrieveRequestParams, extraHttpRequestParams?: any): Observable<UserCompanyJobsReportDto>;
|
|
145
166
|
/**
|
|
146
167
|
*
|
|
147
168
|
* ViewSet for viewing accounts.
|
|
@@ -18401,6 +18401,77 @@ class UsersApiService extends BaseService {
|
|
|
18401
18401
|
super(basePath, configuration);
|
|
18402
18402
|
this.httpClient = httpClient;
|
|
18403
18403
|
}
|
|
18404
|
+
usersCompanyJobsReportRetrieve(requestParameters, observe = "body", reportProgress = false, options) {
|
|
18405
|
+
const period = requestParameters?.period;
|
|
18406
|
+
if (period === null || period === undefined) {
|
|
18407
|
+
throw new Error("Required parameter period was null or undefined when calling usersCompanyJobsReportRetrieve.");
|
|
18408
|
+
}
|
|
18409
|
+
const branch = requestParameters?.branch;
|
|
18410
|
+
const branchIn = requestParameters?.branchIn;
|
|
18411
|
+
const id = requestParameters?.id;
|
|
18412
|
+
const idIn = requestParameters?.idIn;
|
|
18413
|
+
const ordering = requestParameters?.ordering;
|
|
18414
|
+
const reportType = requestParameters?.reportType;
|
|
18415
|
+
const showSupervised = requestParameters?.showSupervised;
|
|
18416
|
+
const showUtilized = requestParameters?.showUtilized;
|
|
18417
|
+
const workType = requestParameters?.workType;
|
|
18418
|
+
const workTypeIn = requestParameters?.workTypeIn;
|
|
18419
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
18420
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, branch, "branch");
|
|
18421
|
+
if (branchIn) {
|
|
18422
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...branchIn].join(COLLECTION_FORMATS["csv"]), "branch__in");
|
|
18423
|
+
}
|
|
18424
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, id, "id");
|
|
18425
|
+
if (idIn) {
|
|
18426
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...idIn].join(COLLECTION_FORMATS["csv"]), "id__in");
|
|
18427
|
+
}
|
|
18428
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, ordering, "ordering");
|
|
18429
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, period, "period");
|
|
18430
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, reportType, "report_type");
|
|
18431
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, showSupervised, "show_supervised");
|
|
18432
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, showUtilized, "show_utilized");
|
|
18433
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, workType, "work_type");
|
|
18434
|
+
if (workTypeIn) {
|
|
18435
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...workTypeIn].join(COLLECTION_FORMATS["csv"]), "work_type__in");
|
|
18436
|
+
}
|
|
18437
|
+
let localVarHeaders = this.defaultHeaders;
|
|
18438
|
+
// authentication (cookieAuth) required
|
|
18439
|
+
// authentication (jwtAuth) required
|
|
18440
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
18441
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
18442
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
18443
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
18444
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
18445
|
+
}
|
|
18446
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
18447
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
18448
|
+
let responseType_ = "json";
|
|
18449
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
18450
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
18451
|
+
responseType_ = "text";
|
|
18452
|
+
}
|
|
18453
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
18454
|
+
responseType_ = "json";
|
|
18455
|
+
}
|
|
18456
|
+
else {
|
|
18457
|
+
responseType_ = "blob";
|
|
18458
|
+
}
|
|
18459
|
+
}
|
|
18460
|
+
let localVarPath = `/api/v1/users/company-jobs-report/`;
|
|
18461
|
+
const { basePath, withCredentials } = this.configuration;
|
|
18462
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
18463
|
+
context: localVarHttpContext,
|
|
18464
|
+
params: localVarQueryParameters,
|
|
18465
|
+
responseType: responseType_,
|
|
18466
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
18467
|
+
headers: localVarHeaders,
|
|
18468
|
+
observe: observe,
|
|
18469
|
+
...(localVarTransferCache !== undefined
|
|
18470
|
+
? { transferCache: localVarTransferCache }
|
|
18471
|
+
: {}),
|
|
18472
|
+
reportProgress: reportProgress,
|
|
18473
|
+
});
|
|
18474
|
+
}
|
|
18404
18475
|
usersCreate(requestParameters, observe = "body", reportProgress = false, options) {
|
|
18405
18476
|
const userRequestDto = requestParameters?.userRequestDto;
|
|
18406
18477
|
if (userRequestDto === null || userRequestDto === undefined) {
|
|
@@ -20913,6 +20984,16 @@ var PriorityEnumDto;
|
|
|
20913
20984
|
* Do not edit the class manually.
|
|
20914
20985
|
*/
|
|
20915
20986
|
|
|
20987
|
+
/**
|
|
20988
|
+
* Delmar Api
|
|
20989
|
+
*
|
|
20990
|
+
*
|
|
20991
|
+
*
|
|
20992
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20993
|
+
* https://openapi-generator.tech
|
|
20994
|
+
* Do not edit the class manually.
|
|
20995
|
+
*/
|
|
20996
|
+
|
|
20916
20997
|
/**
|
|
20917
20998
|
* Delmar Api
|
|
20918
20999
|
*
|