@saritasa/crm-delmar-core-sdk 0.1.440 → 0.1.442

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 CHANGED
@@ -1,5 +1,5 @@
1
- # @@saritasa/crm-delmar-core-sdk@0.1.440
1
+ # @@saritasa/crm-delmar-core-sdk@0.1.442
2
2
 
3
3
  ```bash
4
- npm install @saritasa/crm-delmar-core-sdk@0.1.440 --save
4
+ npm install @saritasa/crm-delmar-core-sdk@0.1.442 --save
5
5
  ```
@@ -16,7 +16,7 @@ import { ProductionChartDto } from "../model/production-chart.dto";
16
16
  import { UpdateJobDto } from "../model/update-job.dto";
17
17
  import { Configuration } from "../configuration";
18
18
  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";
19
+ import { JobsApiServiceInterface, JobsBillableChartListRequestParams, JobsComponentReportHourlyListRequestParams, JobsDepartmentReportHourlyListRequestParams, JobsDestroyRequestParams, JobsListRequestParams, JobsOverseaChartListRequestParams, JobsProductionChartListRequestParams, JobsReportDepartmentsListRequestParams, JobsReportHourlyListRequestParams, JobsReportUsersListRequestParams, JobsRetrieveRequestParams, JobsSprintReportHourlyListRequestParams, JobsStatsRetrieveRequestParams, JobsTaskReportHourlyListRequestParams, JobsUpdateRequestParams } from "./jobs-api.serviceInterface";
20
20
  import * as i0 from "@angular/core";
21
21
  export declare class JobsApiService extends BaseService implements JobsApiServiceInterface {
22
22
  protected httpClient: HttpClient;
@@ -90,6 +90,29 @@ export declare class JobsApiService extends BaseService implements JobsApiServic
90
90
  context?: HttpContext;
91
91
  transferCache?: boolean;
92
92
  }): Observable<HttpEvent<PaginatedDepartmentHourlyReportListDto>>;
93
+ /**
94
+ * Api viewset for Job model.
95
+ * @endpoint delete /api/v1/jobs/{id}/
96
+ * @param requestParameters
97
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
98
+ * @param reportProgress flag to report request and response progress.
99
+ * @param options additional options
100
+ */
101
+ jobsDestroy(requestParameters: JobsDestroyRequestParams, observe?: "body", reportProgress?: boolean, options?: {
102
+ httpHeaderAccept?: "application/json";
103
+ context?: HttpContext;
104
+ transferCache?: boolean;
105
+ }): Observable<any>;
106
+ jobsDestroy(requestParameters: JobsDestroyRequestParams, observe?: "response", reportProgress?: boolean, options?: {
107
+ httpHeaderAccept?: "application/json";
108
+ context?: HttpContext;
109
+ transferCache?: boolean;
110
+ }): Observable<HttpResponse<any>>;
111
+ jobsDestroy(requestParameters: JobsDestroyRequestParams, observe?: "events", reportProgress?: boolean, options?: {
112
+ httpHeaderAccept?: "application/json";
113
+ context?: HttpContext;
114
+ transferCache?: boolean;
115
+ }): Observable<HttpEvent<any>>;
93
116
  /**
94
117
  * Api viewset for Job model.
95
118
  * @endpoint get /api/v1/jobs/
@@ -116,6 +116,9 @@ export interface JobsDepartmentReportHourlyListRequestParams {
116
116
  updatedByIn?: Array<number>;
117
117
  workTypeIn?: Array<number>;
118
118
  }
119
+ export interface JobsDestroyRequestParams {
120
+ id: number;
121
+ }
119
122
  export interface JobsListRequestParams {
120
123
  billedByIn?: Array<number>;
121
124
  branchIn?: Array<number>;
@@ -421,6 +424,13 @@ export interface JobsApiServiceInterface {
421
424
  * @param requestParameters
422
425
  */
423
426
  jobsDepartmentReportHourlyList(requestParameters: JobsDepartmentReportHourlyListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedDepartmentHourlyReportListDto>;
427
+ /**
428
+ *
429
+ * Api viewset for Job model.
430
+ * @endpoint delete /api/v1/jobs/{id}/
431
+ * @param requestParameters
432
+ */
433
+ jobsDestroy(requestParameters: JobsDestroyRequestParams, extraHttpRequestParams?: any): Observable<{}>;
424
434
  /**
425
435
  *
426
436
  * Api viewset for Job model.
@@ -10574,6 +10574,48 @@ class JobsApiService extends BaseService {
10574
10574
  reportProgress: reportProgress,
10575
10575
  });
10576
10576
  }
10577
+ jobsDestroy(requestParameters, observe = "body", reportProgress = false, options) {
10578
+ const id = requestParameters?.id;
10579
+ if (id === null || id === undefined) {
10580
+ throw new Error("Required parameter id was null or undefined when calling jobsDestroy.");
10581
+ }
10582
+ let localVarHeaders = this.defaultHeaders;
10583
+ // authentication (cookieAuth) required
10584
+ // authentication (jwtAuth) required
10585
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
10586
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
10587
+ this.configuration.selectHeaderAccept(["application/json"]);
10588
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
10589
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
10590
+ }
10591
+ const localVarHttpContext = options?.context ?? new HttpContext();
10592
+ const localVarTransferCache = options?.transferCache ?? true;
10593
+ let responseType_ = "json";
10594
+ if (localVarHttpHeaderAcceptSelected) {
10595
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
10596
+ responseType_ = "text";
10597
+ }
10598
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
10599
+ responseType_ = "json";
10600
+ }
10601
+ else {
10602
+ responseType_ = "blob";
10603
+ }
10604
+ }
10605
+ let localVarPath = `/api/v1/jobs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/`;
10606
+ const { basePath, withCredentials } = this.configuration;
10607
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
10608
+ context: localVarHttpContext,
10609
+ responseType: responseType_,
10610
+ ...(withCredentials ? { withCredentials } : {}),
10611
+ headers: localVarHeaders,
10612
+ observe: observe,
10613
+ ...(localVarTransferCache !== undefined
10614
+ ? { transferCache: localVarTransferCache }
10615
+ : {}),
10616
+ reportProgress: reportProgress,
10617
+ });
10618
+ }
10577
10619
  jobsList(requestParameters, observe = "body", reportProgress = false, options) {
10578
10620
  const billedByIn = requestParameters?.billedByIn;
10579
10621
  const branchIn = requestParameters?.branchIn;