@saritasa/crm-delmar-core-sdk 0.2.446 → 0.2.447
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 +10 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +42 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/project-request.dto.d.ts +5 -5
- package/model/project-status-report.dto.d.ts +5 -5
- package/model/project.dto.d.ts +5 -5
- package/model/user-period-user-calendar.dto.d.ts +0 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ import { UpdateJobDto } from "../model/update-job.dto";
|
|
|
18
18
|
import { UtilizationMetricsChartDto } from "../model/utilization-metrics-chart.dto";
|
|
19
19
|
import { Configuration } from "../configuration";
|
|
20
20
|
import { BaseService } from "../api.base.service";
|
|
21
|
-
import { JobsApiServiceInterface, JobsBillableChartListRequestParams, JobsComponentReportHourlyListRequestParams, JobsDepartmentReportHourlyListRequestParams, JobsExtendedUtilizationMetricsChartListRequestParams, JobsListRequestParams, JobsOverseaChartListRequestParams, JobsProductionChartListRequestParams, JobsReportDepartmentsListRequestParams, JobsReportHourlyListRequestParams, JobsReportUsersListRequestParams, JobsRetrieveRequestParams, JobsSprintReportHourlyListRequestParams, JobsStatsRetrieveRequestParams, JobsTaskReportHourlyListRequestParams, JobsUpdateRequestParams, JobsUtilizationMetricsChartListRequestParams } from "./jobs-api.serviceInterface";
|
|
21
|
+
import { JobsApiServiceInterface, JobsBillableChartListRequestParams, JobsComponentReportHourlyListRequestParams, JobsDepartmentReportHourlyListRequestParams, JobsDestroyRequestParams, JobsExtendedUtilizationMetricsChartListRequestParams, JobsListRequestParams, JobsOverseaChartListRequestParams, JobsProductionChartListRequestParams, JobsReportDepartmentsListRequestParams, JobsReportHourlyListRequestParams, JobsReportUsersListRequestParams, JobsRetrieveRequestParams, JobsSprintReportHourlyListRequestParams, JobsStatsRetrieveRequestParams, JobsTaskReportHourlyListRequestParams, JobsUpdateRequestParams, JobsUtilizationMetricsChartListRequestParams } from "./jobs-api.serviceInterface";
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
23
23
|
export declare class JobsApiService extends BaseService implements JobsApiServiceInterface {
|
|
24
24
|
protected httpClient: HttpClient;
|
|
@@ -92,6 +92,29 @@ export declare class JobsApiService extends BaseService implements JobsApiServic
|
|
|
92
92
|
context?: HttpContext;
|
|
93
93
|
transferCache?: boolean;
|
|
94
94
|
}): Observable<HttpEvent<PaginatedDepartmentHourlyReportListDto>>;
|
|
95
|
+
/**
|
|
96
|
+
* Api viewset for Job model.
|
|
97
|
+
* @endpoint delete /api/v1/jobs/{id}/
|
|
98
|
+
* @param requestParameters
|
|
99
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
100
|
+
* @param reportProgress flag to report request and response progress.
|
|
101
|
+
* @param options additional options
|
|
102
|
+
*/
|
|
103
|
+
jobsDestroy(requestParameters: JobsDestroyRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
104
|
+
httpHeaderAccept?: "application/json";
|
|
105
|
+
context?: HttpContext;
|
|
106
|
+
transferCache?: boolean;
|
|
107
|
+
}): Observable<any>;
|
|
108
|
+
jobsDestroy(requestParameters: JobsDestroyRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
109
|
+
httpHeaderAccept?: "application/json";
|
|
110
|
+
context?: HttpContext;
|
|
111
|
+
transferCache?: boolean;
|
|
112
|
+
}): Observable<HttpResponse<any>>;
|
|
113
|
+
jobsDestroy(requestParameters: JobsDestroyRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
114
|
+
httpHeaderAccept?: "application/json";
|
|
115
|
+
context?: HttpContext;
|
|
116
|
+
transferCache?: boolean;
|
|
117
|
+
}): Observable<HttpEvent<any>>;
|
|
95
118
|
/**
|
|
96
119
|
* Get extended utilization metrics chart.
|
|
97
120
|
* @endpoint get /api/v1/jobs/extended-utilization-metrics-chart/
|
|
@@ -118,6 +118,9 @@ export interface JobsDepartmentReportHourlyListRequestParams {
|
|
|
118
118
|
updatedByIn?: Array<number>;
|
|
119
119
|
workTypeIn?: Array<number>;
|
|
120
120
|
}
|
|
121
|
+
export interface JobsDestroyRequestParams {
|
|
122
|
+
id: number;
|
|
123
|
+
}
|
|
121
124
|
export interface JobsExtendedUtilizationMetricsChartListRequestParams {
|
|
122
125
|
timeSpan: "day" | "month" | "quarter" | "week";
|
|
123
126
|
billedByIn?: Array<number>;
|
|
@@ -463,6 +466,13 @@ export interface JobsApiServiceInterface {
|
|
|
463
466
|
* @param requestParameters
|
|
464
467
|
*/
|
|
465
468
|
jobsDepartmentReportHourlyList(requestParameters: JobsDepartmentReportHourlyListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedDepartmentHourlyReportListDto>;
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* Api viewset for Job model.
|
|
472
|
+
* @endpoint delete /api/v1/jobs/{id}/
|
|
473
|
+
* @param requestParameters
|
|
474
|
+
*/
|
|
475
|
+
jobsDestroy(requestParameters: JobsDestroyRequestParams, extraHttpRequestParams?: any): Observable<{}>;
|
|
466
476
|
/**
|
|
467
477
|
*
|
|
468
478
|
* Get extended utilization metrics chart.
|
|
@@ -11014,6 +11014,48 @@ class JobsApiService extends BaseService {
|
|
|
11014
11014
|
reportProgress: reportProgress,
|
|
11015
11015
|
});
|
|
11016
11016
|
}
|
|
11017
|
+
jobsDestroy(requestParameters, observe = "body", reportProgress = false, options) {
|
|
11018
|
+
const id = requestParameters?.id;
|
|
11019
|
+
if (id === null || id === undefined) {
|
|
11020
|
+
throw new Error("Required parameter id was null or undefined when calling jobsDestroy.");
|
|
11021
|
+
}
|
|
11022
|
+
let localVarHeaders = this.defaultHeaders;
|
|
11023
|
+
// authentication (cookieAuth) required
|
|
11024
|
+
// authentication (jwtAuth) required
|
|
11025
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
11026
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
11027
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
11028
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
11029
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
11030
|
+
}
|
|
11031
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
11032
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
11033
|
+
let responseType_ = "json";
|
|
11034
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
11035
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
11036
|
+
responseType_ = "text";
|
|
11037
|
+
}
|
|
11038
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
11039
|
+
responseType_ = "json";
|
|
11040
|
+
}
|
|
11041
|
+
else {
|
|
11042
|
+
responseType_ = "blob";
|
|
11043
|
+
}
|
|
11044
|
+
}
|
|
11045
|
+
let localVarPath = `/api/v1/jobs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/`;
|
|
11046
|
+
const { basePath, withCredentials } = this.configuration;
|
|
11047
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
11048
|
+
context: localVarHttpContext,
|
|
11049
|
+
responseType: responseType_,
|
|
11050
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
11051
|
+
headers: localVarHeaders,
|
|
11052
|
+
observe: observe,
|
|
11053
|
+
...(localVarTransferCache !== undefined
|
|
11054
|
+
? { transferCache: localVarTransferCache }
|
|
11055
|
+
: {}),
|
|
11056
|
+
reportProgress: reportProgress,
|
|
11057
|
+
});
|
|
11058
|
+
}
|
|
11017
11059
|
jobsExtendedUtilizationMetricsChartList(requestParameters, observe = "body", reportProgress = false, options) {
|
|
11018
11060
|
const timeSpan = requestParameters?.timeSpan;
|
|
11019
11061
|
if (timeSpan === null || timeSpan === undefined) {
|