@saritasa/crm-delmar-core-sdk 0.1.66 → 0.1.68
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/tasks-api.service.d.ts +23 -1
- package/api/tasks-api.serviceInterface.d.ts +12 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +81 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/models.d.ts +4 -0
- package/model/simple-component-request.dto.d.ts +15 -0
- package/model/simple-sprint-request.dto.d.ts +15 -0
- package/model/task.dto.d.ts +1 -1
- package/model/update-task-request.dto.d.ts +15 -0
- package/model/update-task.dto.d.ts +50 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,9 +4,10 @@ import { PaginatedTaskListDto } from "../model/paginated-task-list.dto";
|
|
|
4
4
|
import { TaskDto } from "../model/task.dto";
|
|
5
5
|
import { TaskStatsDto } from "../model/task-stats.dto";
|
|
6
6
|
import { TaskStatusesDto } from "../model/task-statuses.dto";
|
|
7
|
+
import { UpdateTaskDto } from "../model/update-task.dto";
|
|
7
8
|
import { Configuration } from "../configuration";
|
|
8
9
|
import { BaseService } from "../api.base.service";
|
|
9
|
-
import { TasksApiServiceInterface, TasksListRequestParams, TasksRetrieveRequestParams, TasksStatsRetrieveRequestParams, TasksStatusesRetrieveRequestParams } from "./tasks-api.serviceInterface";
|
|
10
|
+
import { TasksApiServiceInterface, TasksListRequestParams, TasksRetrieveRequestParams, TasksStatsRetrieveRequestParams, TasksStatusesRetrieveRequestParams, TasksUpdateRequestParams } from "./tasks-api.serviceInterface";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class TasksApiService extends BaseService implements TasksApiServiceInterface {
|
|
12
13
|
protected httpClient: HttpClient;
|
|
@@ -95,6 +96,27 @@ export declare class TasksApiService extends BaseService implements TasksApiServ
|
|
|
95
96
|
context?: HttpContext;
|
|
96
97
|
transferCache?: boolean;
|
|
97
98
|
}): Observable<HttpEvent<TaskStatusesDto>>;
|
|
99
|
+
/**
|
|
100
|
+
* Api viewset for Task model.
|
|
101
|
+
* @param requestParameters
|
|
102
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
103
|
+
* @param reportProgress flag to report request and response progress.
|
|
104
|
+
*/
|
|
105
|
+
tasksUpdate(requestParameters: TasksUpdateRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
106
|
+
httpHeaderAccept?: "application/json";
|
|
107
|
+
context?: HttpContext;
|
|
108
|
+
transferCache?: boolean;
|
|
109
|
+
}): Observable<UpdateTaskDto>;
|
|
110
|
+
tasksUpdate(requestParameters: TasksUpdateRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: "application/json";
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<HttpResponse<UpdateTaskDto>>;
|
|
115
|
+
tasksUpdate(requestParameters: TasksUpdateRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
116
|
+
httpHeaderAccept?: "application/json";
|
|
117
|
+
context?: HttpContext;
|
|
118
|
+
transferCache?: boolean;
|
|
119
|
+
}): Observable<HttpEvent<UpdateTaskDto>>;
|
|
98
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<TasksApiService, [null, { optional: true; }, { optional: true; }]>;
|
|
99
121
|
static ɵprov: i0.ɵɵInjectableDeclaration<TasksApiService>;
|
|
100
122
|
}
|
|
@@ -13,6 +13,8 @@ import { PaginatedTaskListDto } from "../model/models";
|
|
|
13
13
|
import { TaskDto } from "../model/models";
|
|
14
14
|
import { TaskStatsDto } from "../model/models";
|
|
15
15
|
import { TaskStatusesDto } from "../model/models";
|
|
16
|
+
import { UpdateTaskDto } from "../model/models";
|
|
17
|
+
import { UpdateTaskRequestDto } from "../model/models";
|
|
16
18
|
import { Configuration } from "../configuration";
|
|
17
19
|
export interface TasksListRequestParams {
|
|
18
20
|
assignee?: number;
|
|
@@ -115,6 +117,10 @@ export interface TasksStatusesRetrieveRequestParams {
|
|
|
115
117
|
updatedBy?: number;
|
|
116
118
|
updatedByIn?: Array<number>;
|
|
117
119
|
}
|
|
120
|
+
export interface TasksUpdateRequestParams {
|
|
121
|
+
id: number;
|
|
122
|
+
updateTaskRequestDto: UpdateTaskRequestDto;
|
|
123
|
+
}
|
|
118
124
|
export interface TasksApiServiceInterface {
|
|
119
125
|
defaultHeaders: HttpHeaders;
|
|
120
126
|
configuration: Configuration;
|
|
@@ -142,4 +148,10 @@ export interface TasksApiServiceInterface {
|
|
|
142
148
|
* @param requestParameters
|
|
143
149
|
*/
|
|
144
150
|
tasksStatusesRetrieve(requestParameters: TasksStatusesRetrieveRequestParams, extraHttpRequestParams?: any): Observable<TaskStatusesDto>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* Api viewset for Task model.
|
|
154
|
+
* @param requestParameters
|
|
155
|
+
*/
|
|
156
|
+
tasksUpdate(requestParameters: TasksUpdateRequestParams, extraHttpRequestParams?: any): Observable<UpdateTaskDto>;
|
|
145
157
|
}
|
|
@@ -15089,6 +15089,57 @@ class TasksApiService extends BaseService {
|
|
|
15089
15089
|
reportProgress: reportProgress,
|
|
15090
15090
|
});
|
|
15091
15091
|
}
|
|
15092
|
+
tasksUpdate(requestParameters, observe = "body", reportProgress = false, options) {
|
|
15093
|
+
const id = requestParameters?.id;
|
|
15094
|
+
if (id === null || id === undefined) {
|
|
15095
|
+
throw new Error("Required parameter id was null or undefined when calling tasksUpdate.");
|
|
15096
|
+
}
|
|
15097
|
+
const updateTaskRequestDto = requestParameters?.updateTaskRequestDto;
|
|
15098
|
+
if (updateTaskRequestDto === null || updateTaskRequestDto === undefined) {
|
|
15099
|
+
throw new Error("Required parameter updateTaskRequestDto was null or undefined when calling tasksUpdate.");
|
|
15100
|
+
}
|
|
15101
|
+
let localVarHeaders = this.defaultHeaders;
|
|
15102
|
+
// authentication (cookieAuth) required
|
|
15103
|
+
// authentication (jwtAuth) required
|
|
15104
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
15105
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
15106
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
15107
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
15108
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
15109
|
+
}
|
|
15110
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
15111
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
15112
|
+
// to determine the Content-Type header
|
|
15113
|
+
const consumes = ["application/json"];
|
|
15114
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
15115
|
+
if (httpContentTypeSelected !== undefined) {
|
|
15116
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
15117
|
+
}
|
|
15118
|
+
let responseType_ = "json";
|
|
15119
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
15120
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
15121
|
+
responseType_ = "text";
|
|
15122
|
+
}
|
|
15123
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
15124
|
+
responseType_ = "json";
|
|
15125
|
+
}
|
|
15126
|
+
else {
|
|
15127
|
+
responseType_ = "blob";
|
|
15128
|
+
}
|
|
15129
|
+
}
|
|
15130
|
+
let localVarPath = `/api/v1/tasks/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/`;
|
|
15131
|
+
const { basePath, withCredentials } = this.configuration;
|
|
15132
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
15133
|
+
context: localVarHttpContext,
|
|
15134
|
+
body: updateTaskRequestDto,
|
|
15135
|
+
responseType: responseType_,
|
|
15136
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
15137
|
+
headers: localVarHeaders,
|
|
15138
|
+
observe: observe,
|
|
15139
|
+
transferCache: localVarTransferCache,
|
|
15140
|
+
reportProgress: reportProgress,
|
|
15141
|
+
});
|
|
15142
|
+
}
|
|
15092
15143
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TasksApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15093
15144
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TasksApiService, providedIn: "root" });
|
|
15094
15145
|
}
|
|
@@ -19287,6 +19338,26 @@ var ServerErrorEnumDto;
|
|
|
19287
19338
|
* Do not edit the class manually.
|
|
19288
19339
|
*/
|
|
19289
19340
|
|
|
19341
|
+
/**
|
|
19342
|
+
* Delmar Api
|
|
19343
|
+
*
|
|
19344
|
+
*
|
|
19345
|
+
*
|
|
19346
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
19347
|
+
* https://openapi-generator.tech
|
|
19348
|
+
* Do not edit the class manually.
|
|
19349
|
+
*/
|
|
19350
|
+
|
|
19351
|
+
/**
|
|
19352
|
+
* Delmar Api
|
|
19353
|
+
*
|
|
19354
|
+
*
|
|
19355
|
+
*
|
|
19356
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
19357
|
+
* https://openapi-generator.tech
|
|
19358
|
+
* Do not edit the class manually.
|
|
19359
|
+
*/
|
|
19360
|
+
|
|
19290
19361
|
/**
|
|
19291
19362
|
* Delmar Api
|
|
19292
19363
|
*
|
|
@@ -19423,6 +19494,16 @@ var TaskProgressStateEnumDto;
|
|
|
19423
19494
|
* Do not edit the class manually.
|
|
19424
19495
|
*/
|
|
19425
19496
|
|
|
19497
|
+
/**
|
|
19498
|
+
* Delmar Api
|
|
19499
|
+
*
|
|
19500
|
+
*
|
|
19501
|
+
*
|
|
19502
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
19503
|
+
* https://openapi-generator.tech
|
|
19504
|
+
* Do not edit the class manually.
|
|
19505
|
+
*/
|
|
19506
|
+
|
|
19426
19507
|
/**
|
|
19427
19508
|
* Delmar Api
|
|
19428
19509
|
*
|