@saritasa/crm-delmar-core-sdk 0.2.158 → 0.2.163
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/projects-api.service.d.ts +22 -0
- package/api/projects-api.serviceInterface.d.ts +7 -0
- package/api/users-api.service.d.ts +21 -0
- package/api/users-api.serviceInterface.d.ts +6 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +76 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/patched-patch-user-request.dto.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ import { PaginatedProjectMarginReportListDto } from "../model/paginated-project-
|
|
|
5
5
|
import { PaginatedProjectStatusReportListDto } from "../model/paginated-project-status-report-list.dto";
|
|
6
6
|
import { PaginatedSimpleProjectListDto } from "../model/paginated-simple-project-list.dto";
|
|
7
7
|
import { ProjectDto } from "../model/project.dto";
|
|
8
|
+
import { SimpleProjectDto } from "../model/simple-project.dto";
|
|
8
9
|
import { Configuration } from "../configuration";
|
|
9
10
|
import { BaseService } from "../api.base.service";
|
|
10
11
|
import { ProjectsApiServiceInterface, ProjectsCreateRequestParams, ProjectsListRequestParams, ProjectsMarginReportListRequestParams, ProjectsRetrieveRequestParams, ProjectsStatusReportListRequestParams, ProjectsUpdateRequestParams, ProjectsWorkedOnListRequestParams } from "./projects-api.serviceInterface";
|
|
@@ -100,6 +101,27 @@ export declare class ProjectsApiService extends BaseService implements ProjectsA
|
|
|
100
101
|
context?: HttpContext;
|
|
101
102
|
transferCache?: boolean;
|
|
102
103
|
}): Observable<HttpEvent<ProjectDto>>;
|
|
104
|
+
/**
|
|
105
|
+
* Get minimal projects info for searching.
|
|
106
|
+
* @endpoint get /api/v1/projects/search/
|
|
107
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
108
|
+
* @param reportProgress flag to report request and response progress.
|
|
109
|
+
*/
|
|
110
|
+
projectsSearchRetrieve(observe?: "body", reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: "application/json";
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<SimpleProjectDto>;
|
|
115
|
+
projectsSearchRetrieve(observe?: "response", reportProgress?: boolean, options?: {
|
|
116
|
+
httpHeaderAccept?: "application/json";
|
|
117
|
+
context?: HttpContext;
|
|
118
|
+
transferCache?: boolean;
|
|
119
|
+
}): Observable<HttpResponse<SimpleProjectDto>>;
|
|
120
|
+
projectsSearchRetrieve(observe?: "events", reportProgress?: boolean, options?: {
|
|
121
|
+
httpHeaderAccept?: "application/json";
|
|
122
|
+
context?: HttpContext;
|
|
123
|
+
transferCache?: boolean;
|
|
124
|
+
}): Observable<HttpEvent<SimpleProjectDto>>;
|
|
103
125
|
/**
|
|
104
126
|
* Get status report for projects.
|
|
105
127
|
* @endpoint get /api/v1/projects/status-report/
|
|
@@ -15,6 +15,7 @@ import { PaginatedProjectStatusReportListDto } from "../model/models";
|
|
|
15
15
|
import { PaginatedSimpleProjectListDto } from "../model/models";
|
|
16
16
|
import { ProjectDto } from "../model/models";
|
|
17
17
|
import { ProjectRequestDto } from "../model/models";
|
|
18
|
+
import { SimpleProjectDto } from "../model/models";
|
|
18
19
|
import { Configuration } from "../configuration";
|
|
19
20
|
export interface ProjectsCreateRequestParams {
|
|
20
21
|
projectRequestDto: ProjectRequestDto;
|
|
@@ -152,6 +153,12 @@ export interface ProjectsApiServiceInterface {
|
|
|
152
153
|
* @param requestParameters
|
|
153
154
|
*/
|
|
154
155
|
projectsRetrieve(requestParameters: ProjectsRetrieveRequestParams, extraHttpRequestParams?: any): Observable<ProjectDto>;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* Get minimal projects info for searching.
|
|
159
|
+
* @endpoint get /api/v1/projects/search/
|
|
160
|
+
*/
|
|
161
|
+
projectsSearchRetrieve(extraHttpRequestParams?: any): Observable<SimpleProjectDto>;
|
|
155
162
|
/**
|
|
156
163
|
*
|
|
157
164
|
* Get status report for projects.
|
|
@@ -213,6 +213,27 @@ export declare class UsersApiService extends BaseService implements UsersApiServ
|
|
|
213
213
|
context?: HttpContext;
|
|
214
214
|
transferCache?: boolean;
|
|
215
215
|
}): Observable<HttpEvent<PaginatedUserScoreStatListDto>>;
|
|
216
|
+
/**
|
|
217
|
+
* Get minimal users info for searching.
|
|
218
|
+
* @endpoint get /api/v1/users/search/
|
|
219
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
220
|
+
* @param reportProgress flag to report request and response progress.
|
|
221
|
+
*/
|
|
222
|
+
usersSearchRetrieve(observe?: "body", reportProgress?: boolean, options?: {
|
|
223
|
+
httpHeaderAccept?: "application/json";
|
|
224
|
+
context?: HttpContext;
|
|
225
|
+
transferCache?: boolean;
|
|
226
|
+
}): Observable<SimpleUserDto>;
|
|
227
|
+
usersSearchRetrieve(observe?: "response", reportProgress?: boolean, options?: {
|
|
228
|
+
httpHeaderAccept?: "application/json";
|
|
229
|
+
context?: HttpContext;
|
|
230
|
+
transferCache?: boolean;
|
|
231
|
+
}): Observable<HttpResponse<SimpleUserDto>>;
|
|
232
|
+
usersSearchRetrieve(observe?: "events", reportProgress?: boolean, options?: {
|
|
233
|
+
httpHeaderAccept?: "application/json";
|
|
234
|
+
context?: HttpContext;
|
|
235
|
+
transferCache?: boolean;
|
|
236
|
+
}): Observable<HttpEvent<SimpleUserDto>>;
|
|
216
237
|
/**
|
|
217
238
|
* ViewSet for viewing accounts.
|
|
218
239
|
* @endpoint put /api/v1/users/{id}/
|
|
@@ -217,6 +217,12 @@ export interface UsersApiServiceInterface {
|
|
|
217
217
|
* @param requestParameters
|
|
218
218
|
*/
|
|
219
219
|
usersScoreStatsList(requestParameters: UsersScoreStatsListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedUserScoreStatListDto>;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* Get minimal users info for searching.
|
|
223
|
+
* @endpoint get /api/v1/users/search/
|
|
224
|
+
*/
|
|
225
|
+
usersSearchRetrieve(extraHttpRequestParams?: any): Observable<SimpleUserDto>;
|
|
220
226
|
/**
|
|
221
227
|
*
|
|
222
228
|
* ViewSet for viewing accounts.
|
|
@@ -14924,6 +14924,44 @@ class ProjectsApiService extends BaseService {
|
|
|
14924
14924
|
reportProgress: reportProgress,
|
|
14925
14925
|
});
|
|
14926
14926
|
}
|
|
14927
|
+
projectsSearchRetrieve(observe = "body", reportProgress = false, options) {
|
|
14928
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14929
|
+
// authentication (cookieAuth) required
|
|
14930
|
+
// authentication (jwtAuth) required
|
|
14931
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
14932
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
14933
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
14934
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14935
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
14936
|
+
}
|
|
14937
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
14938
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
14939
|
+
let responseType_ = "json";
|
|
14940
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14941
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
14942
|
+
responseType_ = "text";
|
|
14943
|
+
}
|
|
14944
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14945
|
+
responseType_ = "json";
|
|
14946
|
+
}
|
|
14947
|
+
else {
|
|
14948
|
+
responseType_ = "blob";
|
|
14949
|
+
}
|
|
14950
|
+
}
|
|
14951
|
+
let localVarPath = `/api/v1/projects/search/`;
|
|
14952
|
+
const { basePath, withCredentials } = this.configuration;
|
|
14953
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
14954
|
+
context: localVarHttpContext,
|
|
14955
|
+
responseType: responseType_,
|
|
14956
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
14957
|
+
headers: localVarHeaders,
|
|
14958
|
+
observe: observe,
|
|
14959
|
+
...(localVarTransferCache !== undefined
|
|
14960
|
+
? { transferCache: localVarTransferCache }
|
|
14961
|
+
: {}),
|
|
14962
|
+
reportProgress: reportProgress,
|
|
14963
|
+
});
|
|
14964
|
+
}
|
|
14927
14965
|
projectsStatusReportList(requestParameters, observe = "body", reportProgress = false, options) {
|
|
14928
14966
|
const period = requestParameters?.period;
|
|
14929
14967
|
if (period === null || period === undefined) {
|
|
@@ -19064,6 +19102,44 @@ class UsersApiService extends BaseService {
|
|
|
19064
19102
|
reportProgress: reportProgress,
|
|
19065
19103
|
});
|
|
19066
19104
|
}
|
|
19105
|
+
usersSearchRetrieve(observe = "body", reportProgress = false, options) {
|
|
19106
|
+
let localVarHeaders = this.defaultHeaders;
|
|
19107
|
+
// authentication (cookieAuth) required
|
|
19108
|
+
// authentication (jwtAuth) required
|
|
19109
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
19110
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
19111
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
19112
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
19113
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
19114
|
+
}
|
|
19115
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
19116
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
19117
|
+
let responseType_ = "json";
|
|
19118
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
19119
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
19120
|
+
responseType_ = "text";
|
|
19121
|
+
}
|
|
19122
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
19123
|
+
responseType_ = "json";
|
|
19124
|
+
}
|
|
19125
|
+
else {
|
|
19126
|
+
responseType_ = "blob";
|
|
19127
|
+
}
|
|
19128
|
+
}
|
|
19129
|
+
let localVarPath = `/api/v1/users/search/`;
|
|
19130
|
+
const { basePath, withCredentials } = this.configuration;
|
|
19131
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
19132
|
+
context: localVarHttpContext,
|
|
19133
|
+
responseType: responseType_,
|
|
19134
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
19135
|
+
headers: localVarHeaders,
|
|
19136
|
+
observe: observe,
|
|
19137
|
+
...(localVarTransferCache !== undefined
|
|
19138
|
+
? { transferCache: localVarTransferCache }
|
|
19139
|
+
: {}),
|
|
19140
|
+
reportProgress: reportProgress,
|
|
19141
|
+
});
|
|
19142
|
+
}
|
|
19067
19143
|
usersUpdate(requestParameters, observe = "body", reportProgress = false, options) {
|
|
19068
19144
|
const id = requestParameters?.id;
|
|
19069
19145
|
if (id === null || id === undefined) {
|