@saritasa/crm-delmar-core-sdk 0.2.146 → 0.2.148
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/jobs-api.serviceInterface.d.ts +3 -0
- 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 +87 -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
|
@@ -136,6 +136,7 @@ export interface JobsListRequestParams {
|
|
|
136
136
|
offset?: number;
|
|
137
137
|
ordering?: string;
|
|
138
138
|
projectIn?: Array<number>;
|
|
139
|
+
reportType?: "admin" | "billable" | "in_house" | "over_budget" | "unbillable" | "unutilized";
|
|
139
140
|
roundDuration?: boolean;
|
|
140
141
|
search?: string;
|
|
141
142
|
taskComponentIn?: Array<number>;
|
|
@@ -256,6 +257,7 @@ export interface JobsReportHourlyListRequestParams {
|
|
|
256
257
|
offset?: number;
|
|
257
258
|
ordering?: string;
|
|
258
259
|
projectIn?: Array<number>;
|
|
260
|
+
reportType?: "admin" | "billable" | "in_house" | "over_budget" | "unbillable" | "unutilized";
|
|
259
261
|
roundDuration?: boolean;
|
|
260
262
|
search?: string;
|
|
261
263
|
taskComponentIn?: Array<number>;
|
|
@@ -350,6 +352,7 @@ export interface JobsStatsRetrieveRequestParams {
|
|
|
350
352
|
isBillable?: boolean;
|
|
351
353
|
ordering?: string;
|
|
352
354
|
projectIn?: Array<number>;
|
|
355
|
+
reportType?: "admin" | "billable" | "in_house" | "over_budget" | "unbillable" | "unutilized";
|
|
353
356
|
roundDuration?: boolean;
|
|
354
357
|
search?: string;
|
|
355
358
|
taskComponentIn?: Array<number>;
|
|
@@ -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.
|
|
@@ -11472,6 +11472,7 @@ class JobsApiService extends BaseService {
|
|
|
11472
11472
|
const offset = requestParameters?.offset;
|
|
11473
11473
|
const ordering = requestParameters?.ordering;
|
|
11474
11474
|
const projectIn = requestParameters?.projectIn;
|
|
11475
|
+
const reportType = requestParameters?.reportType;
|
|
11475
11476
|
const roundDuration = requestParameters?.roundDuration;
|
|
11476
11477
|
const search = requestParameters?.search;
|
|
11477
11478
|
const taskComponentIn = requestParameters?.taskComponentIn;
|
|
@@ -11517,6 +11518,7 @@ class JobsApiService extends BaseService {
|
|
|
11517
11518
|
if (projectIn) {
|
|
11518
11519
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...projectIn].join(COLLECTION_FORMATS["csv"]), "project__in");
|
|
11519
11520
|
}
|
|
11521
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, reportType, "report_type");
|
|
11520
11522
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, roundDuration, "round_duration");
|
|
11521
11523
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, search, "search");
|
|
11522
11524
|
if (taskComponentIn) {
|
|
@@ -11966,6 +11968,7 @@ class JobsApiService extends BaseService {
|
|
|
11966
11968
|
const offset = requestParameters?.offset;
|
|
11967
11969
|
const ordering = requestParameters?.ordering;
|
|
11968
11970
|
const projectIn = requestParameters?.projectIn;
|
|
11971
|
+
const reportType = requestParameters?.reportType;
|
|
11969
11972
|
const roundDuration = requestParameters?.roundDuration;
|
|
11970
11973
|
const search = requestParameters?.search;
|
|
11971
11974
|
const taskComponentIn = requestParameters?.taskComponentIn;
|
|
@@ -12011,6 +12014,7 @@ class JobsApiService extends BaseService {
|
|
|
12011
12014
|
if (projectIn) {
|
|
12012
12015
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...projectIn].join(COLLECTION_FORMATS["csv"]), "project__in");
|
|
12013
12016
|
}
|
|
12017
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, reportType, "report_type");
|
|
12014
12018
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, roundDuration, "round_duration");
|
|
12015
12019
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, search, "search");
|
|
12016
12020
|
if (taskComponentIn) {
|
|
@@ -12378,6 +12382,7 @@ class JobsApiService extends BaseService {
|
|
|
12378
12382
|
const isBillable = requestParameters?.isBillable;
|
|
12379
12383
|
const ordering = requestParameters?.ordering;
|
|
12380
12384
|
const projectIn = requestParameters?.projectIn;
|
|
12385
|
+
const reportType = requestParameters?.reportType;
|
|
12381
12386
|
const roundDuration = requestParameters?.roundDuration;
|
|
12382
12387
|
const search = requestParameters?.search;
|
|
12383
12388
|
const taskComponentIn = requestParameters?.taskComponentIn;
|
|
@@ -12421,6 +12426,7 @@ class JobsApiService extends BaseService {
|
|
|
12421
12426
|
if (projectIn) {
|
|
12422
12427
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...projectIn].join(COLLECTION_FORMATS["csv"]), "project__in");
|
|
12423
12428
|
}
|
|
12429
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, reportType, "report_type");
|
|
12424
12430
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, roundDuration, "round_duration");
|
|
12425
12431
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, search, "search");
|
|
12426
12432
|
if (taskComponentIn) {
|
|
@@ -18401,6 +18407,77 @@ class UsersApiService extends BaseService {
|
|
|
18401
18407
|
super(basePath, configuration);
|
|
18402
18408
|
this.httpClient = httpClient;
|
|
18403
18409
|
}
|
|
18410
|
+
usersCompanyJobsReportRetrieve(requestParameters, observe = "body", reportProgress = false, options) {
|
|
18411
|
+
const period = requestParameters?.period;
|
|
18412
|
+
if (period === null || period === undefined) {
|
|
18413
|
+
throw new Error("Required parameter period was null or undefined when calling usersCompanyJobsReportRetrieve.");
|
|
18414
|
+
}
|
|
18415
|
+
const branch = requestParameters?.branch;
|
|
18416
|
+
const branchIn = requestParameters?.branchIn;
|
|
18417
|
+
const id = requestParameters?.id;
|
|
18418
|
+
const idIn = requestParameters?.idIn;
|
|
18419
|
+
const ordering = requestParameters?.ordering;
|
|
18420
|
+
const reportType = requestParameters?.reportType;
|
|
18421
|
+
const showSupervised = requestParameters?.showSupervised;
|
|
18422
|
+
const showUtilized = requestParameters?.showUtilized;
|
|
18423
|
+
const workType = requestParameters?.workType;
|
|
18424
|
+
const workTypeIn = requestParameters?.workTypeIn;
|
|
18425
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
18426
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, branch, "branch");
|
|
18427
|
+
if (branchIn) {
|
|
18428
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...branchIn].join(COLLECTION_FORMATS["csv"]), "branch__in");
|
|
18429
|
+
}
|
|
18430
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, id, "id");
|
|
18431
|
+
if (idIn) {
|
|
18432
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...idIn].join(COLLECTION_FORMATS["csv"]), "id__in");
|
|
18433
|
+
}
|
|
18434
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, ordering, "ordering");
|
|
18435
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, period, "period");
|
|
18436
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, reportType, "report_type");
|
|
18437
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, showSupervised, "show_supervised");
|
|
18438
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, showUtilized, "show_utilized");
|
|
18439
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, workType, "work_type");
|
|
18440
|
+
if (workTypeIn) {
|
|
18441
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...workTypeIn].join(COLLECTION_FORMATS["csv"]), "work_type__in");
|
|
18442
|
+
}
|
|
18443
|
+
let localVarHeaders = this.defaultHeaders;
|
|
18444
|
+
// authentication (cookieAuth) required
|
|
18445
|
+
// authentication (jwtAuth) required
|
|
18446
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
18447
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
18448
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
18449
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
18450
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
18451
|
+
}
|
|
18452
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
18453
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
18454
|
+
let responseType_ = "json";
|
|
18455
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
18456
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
18457
|
+
responseType_ = "text";
|
|
18458
|
+
}
|
|
18459
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
18460
|
+
responseType_ = "json";
|
|
18461
|
+
}
|
|
18462
|
+
else {
|
|
18463
|
+
responseType_ = "blob";
|
|
18464
|
+
}
|
|
18465
|
+
}
|
|
18466
|
+
let localVarPath = `/api/v1/users/company-jobs-report/`;
|
|
18467
|
+
const { basePath, withCredentials } = this.configuration;
|
|
18468
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
18469
|
+
context: localVarHttpContext,
|
|
18470
|
+
params: localVarQueryParameters,
|
|
18471
|
+
responseType: responseType_,
|
|
18472
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
18473
|
+
headers: localVarHeaders,
|
|
18474
|
+
observe: observe,
|
|
18475
|
+
...(localVarTransferCache !== undefined
|
|
18476
|
+
? { transferCache: localVarTransferCache }
|
|
18477
|
+
: {}),
|
|
18478
|
+
reportProgress: reportProgress,
|
|
18479
|
+
});
|
|
18480
|
+
}
|
|
18404
18481
|
usersCreate(requestParameters, observe = "body", reportProgress = false, options) {
|
|
18405
18482
|
const userRequestDto = requestParameters?.userRequestDto;
|
|
18406
18483
|
if (userRequestDto === null || userRequestDto === undefined) {
|
|
@@ -20913,6 +20990,16 @@ var PriorityEnumDto;
|
|
|
20913
20990
|
* Do not edit the class manually.
|
|
20914
20991
|
*/
|
|
20915
20992
|
|
|
20993
|
+
/**
|
|
20994
|
+
* Delmar Api
|
|
20995
|
+
*
|
|
20996
|
+
*
|
|
20997
|
+
*
|
|
20998
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20999
|
+
* https://openapi-generator.tech
|
|
21000
|
+
* Do not edit the class manually.
|
|
21001
|
+
*/
|
|
21002
|
+
|
|
20916
21003
|
/**
|
|
20917
21004
|
* Delmar Api
|
|
20918
21005
|
*
|