@saritasa/crm-delmar-core-sdk 0.1.65 → 0.1.67

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.65
1
+ # @@saritasa/crm-delmar-core-sdk@0.1.67
2
2
 
3
3
  ```bash
4
- npm install @saritasa/crm-delmar-core-sdk@0.1.65 --save
4
+ npm install @saritasa/crm-delmar-core-sdk@0.1.67 --save
5
5
  ```
@@ -13,9 +13,10 @@ import { PaginatedJobReportHourlyListDto } from "../model/paginated-job-report-h
13
13
  import { PaginatedSprintHourlyReportListDto } from "../model/paginated-sprint-hourly-report-list.dto";
14
14
  import { PaginatedTaskHourlyReportListDto } from "../model/paginated-task-hourly-report-list.dto";
15
15
  import { ProductionChartDto } from "../model/production-chart.dto";
16
+ import { UpdateJobDto } from "../model/update-job.dto";
16
17
  import { Configuration } from "../configuration";
17
18
  import { BaseService } from "../api.base.service";
18
- import { JobsApiServiceInterface, JobsBillableChartListRequestParams, JobsComponentReportHourlyListRequestParams, JobsDepartmentReportHourlyListRequestParams, JobsListRequestParams, JobsOverseaChartListRequestParams, JobsProductionChartListRequestParams, JobsReportDepartmentsListRequestParams, JobsReportHourlyListRequestParams, JobsReportUsersListRequestParams, JobsRetrieveRequestParams, JobsSprintReportHourlyListRequestParams, JobsStatsRetrieveRequestParams, JobsTaskReportHourlyListRequestParams } from "./jobs-api.serviceInterface";
19
+ import { JobsApiServiceInterface, JobsBillableChartListRequestParams, JobsComponentReportHourlyListRequestParams, JobsDepartmentReportHourlyListRequestParams, JobsListRequestParams, JobsOverseaChartListRequestParams, JobsProductionChartListRequestParams, JobsReportDepartmentsListRequestParams, JobsReportHourlyListRequestParams, JobsReportUsersListRequestParams, JobsRetrieveRequestParams, JobsSprintReportHourlyListRequestParams, JobsStatsRetrieveRequestParams, JobsTaskReportHourlyListRequestParams, JobsUpdateRequestParams } from "./jobs-api.serviceInterface";
19
20
  import * as i0 from "@angular/core";
20
21
  export declare class JobsApiService extends BaseService implements JobsApiServiceInterface {
21
22
  protected httpClient: HttpClient;
@@ -293,6 +294,27 @@ export declare class JobsApiService extends BaseService implements JobsApiServic
293
294
  context?: HttpContext;
294
295
  transferCache?: boolean;
295
296
  }): Observable<HttpEvent<PaginatedTaskHourlyReportListDto>>;
297
+ /**
298
+ * Api viewset for Job model.
299
+ * @param requestParameters
300
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
301
+ * @param reportProgress flag to report request and response progress.
302
+ */
303
+ jobsUpdate(requestParameters: JobsUpdateRequestParams, observe?: "body", reportProgress?: boolean, options?: {
304
+ httpHeaderAccept?: "application/json";
305
+ context?: HttpContext;
306
+ transferCache?: boolean;
307
+ }): Observable<UpdateJobDto>;
308
+ jobsUpdate(requestParameters: JobsUpdateRequestParams, observe?: "response", reportProgress?: boolean, options?: {
309
+ httpHeaderAccept?: "application/json";
310
+ context?: HttpContext;
311
+ transferCache?: boolean;
312
+ }): Observable<HttpResponse<UpdateJobDto>>;
313
+ jobsUpdate(requestParameters: JobsUpdateRequestParams, observe?: "events", reportProgress?: boolean, options?: {
314
+ httpHeaderAccept?: "application/json";
315
+ context?: HttpContext;
316
+ transferCache?: boolean;
317
+ }): Observable<HttpEvent<UpdateJobDto>>;
296
318
  static ɵfac: i0.ɵɵFactoryDeclaration<JobsApiService, [null, { optional: true; }, { optional: true; }]>;
297
319
  static ɵprov: i0.ɵɵInjectableDeclaration<JobsApiService>;
298
320
  }
@@ -22,6 +22,8 @@ import { PaginatedJobReportHourlyListDto } from "../model/models";
22
22
  import { PaginatedSprintHourlyReportListDto } from "../model/models";
23
23
  import { PaginatedTaskHourlyReportListDto } from "../model/models";
24
24
  import { ProductionChartDto } from "../model/models";
25
+ import { UpdateJobDto } from "../model/models";
26
+ import { UpdateJobRequestDto } from "../model/models";
25
27
  import { Configuration } from "../configuration";
26
28
  export interface JobsBillableChartListRequestParams {
27
29
  timeSpan: "day" | "month" | "quarter" | "week";
@@ -364,6 +366,10 @@ export interface JobsTaskReportHourlyListRequestParams {
364
366
  updatedByIn?: Array<number>;
365
367
  workTypeIn?: Array<number>;
366
368
  }
369
+ export interface JobsUpdateRequestParams {
370
+ id: number;
371
+ updateJobRequestDto: UpdateJobRequestDto;
372
+ }
367
373
  export interface JobsApiServiceInterface {
368
374
  defaultHeaders: HttpHeaders;
369
375
  configuration: Configuration;
@@ -445,4 +451,10 @@ export interface JobsApiServiceInterface {
445
451
  * @param requestParameters
446
452
  */
447
453
  jobsTaskReportHourlyList(requestParameters: JobsTaskReportHourlyListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedTaskHourlyReportListDto>;
454
+ /**
455
+ *
456
+ * Api viewset for Job model.
457
+ * @param requestParameters
458
+ */
459
+ jobsUpdate(requestParameters: JobsUpdateRequestParams, extraHttpRequestParams?: any): Observable<UpdateJobDto>;
448
460
  }
@@ -11359,6 +11359,57 @@ class JobsApiService extends BaseService {
11359
11359
  reportProgress: reportProgress,
11360
11360
  });
11361
11361
  }
11362
+ jobsUpdate(requestParameters, observe = "body", reportProgress = false, options) {
11363
+ const id = requestParameters?.id;
11364
+ if (id === null || id === undefined) {
11365
+ throw new Error("Required parameter id was null or undefined when calling jobsUpdate.");
11366
+ }
11367
+ const updateJobRequestDto = requestParameters?.updateJobRequestDto;
11368
+ if (updateJobRequestDto === null || updateJobRequestDto === undefined) {
11369
+ throw new Error("Required parameter updateJobRequestDto was null or undefined when calling jobsUpdate.");
11370
+ }
11371
+ let localVarHeaders = this.defaultHeaders;
11372
+ // authentication (cookieAuth) required
11373
+ // authentication (jwtAuth) required
11374
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
11375
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
11376
+ this.configuration.selectHeaderAccept(["application/json"]);
11377
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
11378
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
11379
+ }
11380
+ const localVarHttpContext = options?.context ?? new HttpContext();
11381
+ const localVarTransferCache = options?.transferCache ?? true;
11382
+ // to determine the Content-Type header
11383
+ const consumes = ["application/json"];
11384
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
11385
+ if (httpContentTypeSelected !== undefined) {
11386
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
11387
+ }
11388
+ let responseType_ = "json";
11389
+ if (localVarHttpHeaderAcceptSelected) {
11390
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
11391
+ responseType_ = "text";
11392
+ }
11393
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
11394
+ responseType_ = "json";
11395
+ }
11396
+ else {
11397
+ responseType_ = "blob";
11398
+ }
11399
+ }
11400
+ let localVarPath = `/api/v1/jobs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/`;
11401
+ const { basePath, withCredentials } = this.configuration;
11402
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
11403
+ context: localVarHttpContext,
11404
+ body: updateJobRequestDto,
11405
+ responseType: responseType_,
11406
+ ...(withCredentials ? { withCredentials } : {}),
11407
+ headers: localVarHeaders,
11408
+ observe: observe,
11409
+ transferCache: localVarTransferCache,
11410
+ reportProgress: reportProgress,
11411
+ });
11412
+ }
11362
11413
  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 });
11363
11414
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: JobsApiService, providedIn: "root" });
11364
11415
  }
@@ -19226,6 +19277,16 @@ var ServerErrorEnumDto;
19226
19277
  * Do not edit the class manually.
19227
19278
  */
19228
19279
 
19280
+ /**
19281
+ * Delmar Api
19282
+ *
19283
+ *
19284
+ *
19285
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19286
+ * https://openapi-generator.tech
19287
+ * Do not edit the class manually.
19288
+ */
19289
+
19229
19290
  /**
19230
19291
  * Delmar Api
19231
19292
  *
@@ -19352,6 +19413,16 @@ var TaskProgressStateEnumDto;
19352
19413
  * Do not edit the class manually.
19353
19414
  */
19354
19415
 
19416
+ /**
19417
+ * Delmar Api
19418
+ *
19419
+ *
19420
+ *
19421
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19422
+ * https://openapi-generator.tech
19423
+ * Do not edit the class manually.
19424
+ */
19425
+
19355
19426
  /**
19356
19427
  * Delmar Api
19357
19428
  *