@saritasa/crm-delmar-core-sdk 0.2.124 → 0.2.127
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.service.d.ts +24 -1
- package/api/jobs-api.serviceInterface.d.ts +16 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +59 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/models.d.ts +1 -0
- package/model/utilization-metrics-chart.dto.d.ts +26 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,9 +14,10 @@ import { PaginatedSprintHourlyReportListDto } from "../model/paginated-sprint-ho
|
|
|
14
14
|
import { PaginatedTaskHourlyReportListDto } from "../model/paginated-task-hourly-report-list.dto";
|
|
15
15
|
import { ProductionChartDto } from "../model/production-chart.dto";
|
|
16
16
|
import { UpdateJobDto } from "../model/update-job.dto";
|
|
17
|
+
import { UtilizationMetricsChartDto } from "../model/utilization-metrics-chart.dto";
|
|
17
18
|
import { Configuration } from "../configuration";
|
|
18
19
|
import { BaseService } from "../api.base.service";
|
|
19
|
-
import { JobsApiServiceInterface, JobsBillableChartListRequestParams, JobsComponentReportHourlyListRequestParams, JobsDepartmentReportHourlyListRequestParams, JobsListRequestParams, JobsOverseaChartListRequestParams, JobsProductionChartListRequestParams, JobsReportDepartmentsListRequestParams, JobsReportHourlyListRequestParams, JobsReportUsersListRequestParams, JobsRetrieveRequestParams, JobsSprintReportHourlyListRequestParams, JobsStatsRetrieveRequestParams, JobsTaskReportHourlyListRequestParams, JobsUpdateRequestParams } from "./jobs-api.serviceInterface";
|
|
20
|
+
import { JobsApiServiceInterface, JobsBillableChartListRequestParams, JobsComponentReportHourlyListRequestParams, JobsDepartmentReportHourlyListRequestParams, JobsListRequestParams, JobsOverseaChartListRequestParams, JobsProductionChartListRequestParams, JobsReportDepartmentsListRequestParams, JobsReportHourlyListRequestParams, JobsReportUsersListRequestParams, JobsRetrieveRequestParams, JobsSprintReportHourlyListRequestParams, JobsStatsRetrieveRequestParams, JobsTaskReportHourlyListRequestParams, JobsUpdateRequestParams, JobsUtilizationMetricsChartListRequestParams } from "./jobs-api.serviceInterface";
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
export declare class JobsApiService extends BaseService implements JobsApiServiceInterface {
|
|
22
23
|
protected httpClient: HttpClient;
|
|
@@ -329,6 +330,28 @@ export declare class JobsApiService extends BaseService implements JobsApiServic
|
|
|
329
330
|
context?: HttpContext;
|
|
330
331
|
transferCache?: boolean;
|
|
331
332
|
}): Observable<HttpEvent<UpdateJobDto>>;
|
|
333
|
+
/**
|
|
334
|
+
* Get utilization metrics chart.
|
|
335
|
+
* @endpoint get /api/v1/jobs/utilization-metrics-chart/
|
|
336
|
+
* @param requestParameters
|
|
337
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
338
|
+
* @param reportProgress flag to report request and response progress.
|
|
339
|
+
*/
|
|
340
|
+
jobsUtilizationMetricsChartList(requestParameters: JobsUtilizationMetricsChartListRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
341
|
+
httpHeaderAccept?: "application/json";
|
|
342
|
+
context?: HttpContext;
|
|
343
|
+
transferCache?: boolean;
|
|
344
|
+
}): Observable<Array<UtilizationMetricsChartDto>>;
|
|
345
|
+
jobsUtilizationMetricsChartList(requestParameters: JobsUtilizationMetricsChartListRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
346
|
+
httpHeaderAccept?: "application/json";
|
|
347
|
+
context?: HttpContext;
|
|
348
|
+
transferCache?: boolean;
|
|
349
|
+
}): Observable<HttpResponse<Array<UtilizationMetricsChartDto>>>;
|
|
350
|
+
jobsUtilizationMetricsChartList(requestParameters: JobsUtilizationMetricsChartListRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
351
|
+
httpHeaderAccept?: "application/json";
|
|
352
|
+
context?: HttpContext;
|
|
353
|
+
transferCache?: boolean;
|
|
354
|
+
}): Observable<HttpEvent<Array<UtilizationMetricsChartDto>>>;
|
|
332
355
|
static ɵfac: i0.ɵɵFactoryDeclaration<JobsApiService, [null, { optional: true; }, { optional: true; }]>;
|
|
333
356
|
static ɵprov: i0.ɵɵInjectableDeclaration<JobsApiService>;
|
|
334
357
|
}
|
|
@@ -24,6 +24,7 @@ import { PaginatedTaskHourlyReportListDto } from "../model/models";
|
|
|
24
24
|
import { ProductionChartDto } from "../model/models";
|
|
25
25
|
import { UpdateJobDto } from "../model/models";
|
|
26
26
|
import { UpdateJobRequestDto } from "../model/models";
|
|
27
|
+
import { UtilizationMetricsChartDto } from "../model/models";
|
|
27
28
|
import { Configuration } from "../configuration";
|
|
28
29
|
export interface JobsBillableChartListRequestParams {
|
|
29
30
|
timeSpan: "day" | "month" | "quarter" | "week";
|
|
@@ -373,6 +374,14 @@ export interface JobsUpdateRequestParams {
|
|
|
373
374
|
id: number;
|
|
374
375
|
updateJobRequestDto: UpdateJobRequestDto;
|
|
375
376
|
}
|
|
377
|
+
export interface JobsUtilizationMetricsChartListRequestParams {
|
|
378
|
+
timeSpan: "day" | "month" | "quarter" | "week" | "year";
|
|
379
|
+
branchIn?: Array<number>;
|
|
380
|
+
dateGte?: string;
|
|
381
|
+
dateLte?: string;
|
|
382
|
+
idIn?: Array<number>;
|
|
383
|
+
search?: string;
|
|
384
|
+
}
|
|
376
385
|
export interface JobsApiServiceInterface {
|
|
377
386
|
defaultHeaders: HttpHeaders;
|
|
378
387
|
configuration: Configuration;
|
|
@@ -474,4 +483,11 @@ export interface JobsApiServiceInterface {
|
|
|
474
483
|
* @param requestParameters
|
|
475
484
|
*/
|
|
476
485
|
jobsUpdate(requestParameters: JobsUpdateRequestParams, extraHttpRequestParams?: any): Observable<UpdateJobDto>;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* Get utilization metrics chart.
|
|
489
|
+
* @endpoint get /api/v1/jobs/utilization-metrics-chart/
|
|
490
|
+
* @param requestParameters
|
|
491
|
+
*/
|
|
492
|
+
jobsUtilizationMetricsChartList(requestParameters: JobsUtilizationMetricsChartListRequestParams, extraHttpRequestParams?: any): Observable<Array<UtilizationMetricsChartDto>>;
|
|
477
493
|
}
|
|
@@ -12125,6 +12125,65 @@ class JobsApiService extends BaseService {
|
|
|
12125
12125
|
reportProgress: reportProgress,
|
|
12126
12126
|
});
|
|
12127
12127
|
}
|
|
12128
|
+
jobsUtilizationMetricsChartList(requestParameters, observe = "body", reportProgress = false, options) {
|
|
12129
|
+
const timeSpan = requestParameters?.timeSpan;
|
|
12130
|
+
if (timeSpan === null || timeSpan === undefined) {
|
|
12131
|
+
throw new Error("Required parameter timeSpan was null or undefined when calling jobsUtilizationMetricsChartList.");
|
|
12132
|
+
}
|
|
12133
|
+
const branchIn = requestParameters?.branchIn;
|
|
12134
|
+
const dateGte = requestParameters?.dateGte;
|
|
12135
|
+
const dateLte = requestParameters?.dateLte;
|
|
12136
|
+
const idIn = requestParameters?.idIn;
|
|
12137
|
+
const search = requestParameters?.search;
|
|
12138
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
12139
|
+
if (branchIn) {
|
|
12140
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...branchIn].join(COLLECTION_FORMATS["csv"]), "branch__in");
|
|
12141
|
+
}
|
|
12142
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, dateGte, "date__gte");
|
|
12143
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, dateLte, "date__lte");
|
|
12144
|
+
if (idIn) {
|
|
12145
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...idIn].join(COLLECTION_FORMATS["csv"]), "id__in");
|
|
12146
|
+
}
|
|
12147
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, search, "search");
|
|
12148
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, timeSpan, "time_span");
|
|
12149
|
+
let localVarHeaders = this.defaultHeaders;
|
|
12150
|
+
// authentication (cookieAuth) required
|
|
12151
|
+
// authentication (jwtAuth) required
|
|
12152
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
12153
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
12154
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
12155
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
12156
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
12157
|
+
}
|
|
12158
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
12159
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
12160
|
+
let responseType_ = "json";
|
|
12161
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
12162
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
12163
|
+
responseType_ = "text";
|
|
12164
|
+
}
|
|
12165
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
12166
|
+
responseType_ = "json";
|
|
12167
|
+
}
|
|
12168
|
+
else {
|
|
12169
|
+
responseType_ = "blob";
|
|
12170
|
+
}
|
|
12171
|
+
}
|
|
12172
|
+
let localVarPath = `/api/v1/jobs/utilization-metrics-chart/`;
|
|
12173
|
+
const { basePath, withCredentials } = this.configuration;
|
|
12174
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
12175
|
+
context: localVarHttpContext,
|
|
12176
|
+
params: localVarQueryParameters,
|
|
12177
|
+
responseType: responseType_,
|
|
12178
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
12179
|
+
headers: localVarHeaders,
|
|
12180
|
+
observe: observe,
|
|
12181
|
+
...(localVarTransferCache !== undefined
|
|
12182
|
+
? { transferCache: localVarTransferCache }
|
|
12183
|
+
: {}),
|
|
12184
|
+
reportProgress: reportProgress,
|
|
12185
|
+
});
|
|
12186
|
+
}
|
|
12128
12187
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: JobsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12129
12188
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: JobsApiService, providedIn: "root" });
|
|
12130
12189
|
}
|