@saritasa/crm-delmar-core-sdk 0.1.392 → 0.1.394
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/users-api.service.d.ts +25 -1
- package/api/users-api.serviceInterface.d.ts +21 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +67 -2
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/config-enum.dto.d.ts +3 -3
- package/model/models.d.ts +2 -0
- package/model/user-calendar.dto.d.ts +35 -0
- package/model/user-period-user-calendar.dto.d.ts +38 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,17 +5,41 @@ import { PaginatedUserListDto } from "../model/paginated-user-list.dto";
|
|
|
5
5
|
import { PaginatedUserScoreStatListDto } from "../model/paginated-user-score-stat-list.dto";
|
|
6
6
|
import { S3FileDto } from "../model/s3-file.dto";
|
|
7
7
|
import { SimpleUserDto } from "../model/simple-user.dto";
|
|
8
|
+
import { UserCalendarDto } from "../model/user-calendar.dto";
|
|
8
9
|
import { UserDailyTabularReportDto } from "../model/user-daily-tabular-report.dto";
|
|
9
10
|
import { UserDto } from "../model/user.dto";
|
|
10
11
|
import { UserUtilizationReportDto } from "../model/user-utilization-report.dto";
|
|
11
12
|
import { UtilizationChartPointDto } from "../model/utilization-chart-point.dto";
|
|
12
13
|
import { Configuration } from "../configuration";
|
|
13
14
|
import { BaseService } from "../api.base.service";
|
|
14
|
-
import { UsersApiServiceInterface, UsersCreateRequestParams, UsersDailyTabularReportListRequestParams, UsersExpectedPeriodsApproversListRequestParams, UsersListRequestParams, UsersPartialUpdateRequestParams, UsersRetrieveRequestParams, UsersScoreStatsListRequestParams, UsersSearchListRequestParams, UsersUpdateRequestParams, UsersUtilizationChartListRequestParams, UsersUtilizationReportListRequestParams } from "./users-api.serviceInterface";
|
|
15
|
+
import { UsersApiServiceInterface, UsersCalendarListRequestParams, UsersCreateRequestParams, UsersDailyTabularReportListRequestParams, UsersExpectedPeriodsApproversListRequestParams, UsersListRequestParams, UsersPartialUpdateRequestParams, UsersRetrieveRequestParams, UsersScoreStatsListRequestParams, UsersSearchListRequestParams, UsersUpdateRequestParams, UsersUtilizationChartListRequestParams, UsersUtilizationReportListRequestParams } from "./users-api.serviceInterface";
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
export declare class UsersApiService extends BaseService implements UsersApiServiceInterface {
|
|
17
18
|
protected httpClient: HttpClient;
|
|
18
19
|
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
20
|
+
/**
|
|
21
|
+
* Get calendar. It will return user with user_periods matching filters.
|
|
22
|
+
* @endpoint get /api/v1/users/calendar/
|
|
23
|
+
* @param requestParameters
|
|
24
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
25
|
+
* @param reportProgress flag to report request and response progress.
|
|
26
|
+
* @param options additional options
|
|
27
|
+
*/
|
|
28
|
+
usersCalendarList(requestParameters: UsersCalendarListRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
29
|
+
httpHeaderAccept?: "application/json";
|
|
30
|
+
context?: HttpContext;
|
|
31
|
+
transferCache?: boolean;
|
|
32
|
+
}): Observable<Array<UserCalendarDto>>;
|
|
33
|
+
usersCalendarList(requestParameters: UsersCalendarListRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
34
|
+
httpHeaderAccept?: "application/json";
|
|
35
|
+
context?: HttpContext;
|
|
36
|
+
transferCache?: boolean;
|
|
37
|
+
}): Observable<HttpResponse<Array<UserCalendarDto>>>;
|
|
38
|
+
usersCalendarList(requestParameters: UsersCalendarListRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
39
|
+
httpHeaderAccept?: "application/json";
|
|
40
|
+
context?: HttpContext;
|
|
41
|
+
transferCache?: boolean;
|
|
42
|
+
}): Observable<HttpEvent<Array<UserCalendarDto>>>;
|
|
19
43
|
/**
|
|
20
44
|
* ViewSet for viewing accounts.
|
|
21
45
|
* @endpoint post /api/v1/users/
|
|
@@ -15,12 +15,26 @@ import { PaginatedUserScoreStatListDto } from "../model/models";
|
|
|
15
15
|
import { PatchedPatchUserRequestDto } from "../model/models";
|
|
16
16
|
import { S3FileDto } from "../model/models";
|
|
17
17
|
import { SimpleUserDto } from "../model/models";
|
|
18
|
+
import { UserCalendarDto } from "../model/models";
|
|
18
19
|
import { UserDailyTabularReportDto } from "../model/models";
|
|
19
20
|
import { UserDto } from "../model/models";
|
|
20
21
|
import { UserRequestDto } from "../model/models";
|
|
21
22
|
import { UserUtilizationReportDto } from "../model/models";
|
|
22
23
|
import { UtilizationChartPointDto } from "../model/models";
|
|
23
24
|
import { Configuration } from "../configuration";
|
|
25
|
+
export interface UsersCalendarListRequestParams {
|
|
26
|
+
period: string;
|
|
27
|
+
branchIn?: Array<number>;
|
|
28
|
+
departmentIn?: Array<number>;
|
|
29
|
+
idIn?: Array<number>;
|
|
30
|
+
ordering?: string;
|
|
31
|
+
periodsTypeIn?: Array<string>;
|
|
32
|
+
projectIn?: Array<number>;
|
|
33
|
+
projectManagerIn?: Array<number>;
|
|
34
|
+
search?: string;
|
|
35
|
+
statusIn?: Array<string>;
|
|
36
|
+
techManagerIn?: Array<number>;
|
|
37
|
+
}
|
|
24
38
|
export interface UsersCreateRequestParams {
|
|
25
39
|
userRequestDto: UserRequestDto;
|
|
26
40
|
}
|
|
@@ -167,6 +181,13 @@ export interface UsersUtilizationReportListRequestParams {
|
|
|
167
181
|
export interface UsersApiServiceInterface {
|
|
168
182
|
defaultHeaders: HttpHeaders;
|
|
169
183
|
configuration: Configuration;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* Get calendar. It will return user with user_periods matching filters.
|
|
187
|
+
* @endpoint get /api/v1/users/calendar/
|
|
188
|
+
* @param requestParameters
|
|
189
|
+
*/
|
|
190
|
+
usersCalendarList(requestParameters: UsersCalendarListRequestParams, extraHttpRequestParams?: any): Observable<Array<UserCalendarDto>>;
|
|
170
191
|
/**
|
|
171
192
|
*
|
|
172
193
|
* ViewSet for viewing accounts.
|
|
@@ -17252,6 +17252,71 @@ class UsersApiService extends BaseService {
|
|
|
17252
17252
|
super(basePath, configuration);
|
|
17253
17253
|
this.httpClient = httpClient;
|
|
17254
17254
|
}
|
|
17255
|
+
usersCalendarList(requestParameters, observe = "body", reportProgress = false, options) {
|
|
17256
|
+
const period = requestParameters?.period;
|
|
17257
|
+
if (period === null || period === undefined) {
|
|
17258
|
+
throw new Error("Required parameter period was null or undefined when calling usersCalendarList.");
|
|
17259
|
+
}
|
|
17260
|
+
const branchIn = requestParameters?.branchIn;
|
|
17261
|
+
const departmentIn = requestParameters?.departmentIn;
|
|
17262
|
+
const idIn = requestParameters?.idIn;
|
|
17263
|
+
const ordering = requestParameters?.ordering;
|
|
17264
|
+
const periodsTypeIn = requestParameters?.periodsTypeIn;
|
|
17265
|
+
const projectIn = requestParameters?.projectIn;
|
|
17266
|
+
const projectManagerIn = requestParameters?.projectManagerIn;
|
|
17267
|
+
const search = requestParameters?.search;
|
|
17268
|
+
const statusIn = requestParameters?.statusIn;
|
|
17269
|
+
const techManagerIn = requestParameters?.techManagerIn;
|
|
17270
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
17271
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "branch__in", branchIn, QueryParamStyle.Form, false);
|
|
17272
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "department__in", departmentIn, QueryParamStyle.Form, false);
|
|
17273
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "id__in", idIn, QueryParamStyle.Form, false);
|
|
17274
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "ordering", ordering, QueryParamStyle.Form, true);
|
|
17275
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "period", period, QueryParamStyle.Form, true);
|
|
17276
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "periods__type__in", periodsTypeIn, QueryParamStyle.Form, false);
|
|
17277
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "project__in", projectIn, QueryParamStyle.Form, false);
|
|
17278
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "project_manager__in", projectManagerIn, QueryParamStyle.Form, false);
|
|
17279
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "search", search, QueryParamStyle.Form, true);
|
|
17280
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "status__in", statusIn, QueryParamStyle.Form, false);
|
|
17281
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "tech_manager__in", techManagerIn, QueryParamStyle.Form, false);
|
|
17282
|
+
let localVarHeaders = this.defaultHeaders;
|
|
17283
|
+
// authentication (cookieAuth) required
|
|
17284
|
+
// authentication (jwtAuth) required
|
|
17285
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
17286
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
17287
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
17288
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
17289
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
17290
|
+
}
|
|
17291
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
17292
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
17293
|
+
let responseType_ = "json";
|
|
17294
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
17295
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
17296
|
+
responseType_ = "text";
|
|
17297
|
+
}
|
|
17298
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
17299
|
+
responseType_ = "json";
|
|
17300
|
+
}
|
|
17301
|
+
else {
|
|
17302
|
+
responseType_ = "blob";
|
|
17303
|
+
}
|
|
17304
|
+
}
|
|
17305
|
+
let localVarPath = `/api/v1/users/calendar/`;
|
|
17306
|
+
const { basePath, withCredentials } = this.configuration;
|
|
17307
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
17308
|
+
context: localVarHttpContext,
|
|
17309
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
17310
|
+
responseType: responseType_,
|
|
17311
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
17312
|
+
headers: localVarHeaders,
|
|
17313
|
+
observe: observe,
|
|
17314
|
+
...(localVarTransferCache !== undefined
|
|
17315
|
+
? { transferCache: localVarTransferCache }
|
|
17316
|
+
: {}),
|
|
17317
|
+
reportProgress: reportProgress,
|
|
17318
|
+
});
|
|
17319
|
+
}
|
|
17255
17320
|
usersCreate(requestParameters, observe = "body", reportProgress = false, options) {
|
|
17256
17321
|
const userRequestDto = requestParameters?.userRequestDto;
|
|
17257
17322
|
if (userRequestDto === null || userRequestDto === undefined) {
|
|
@@ -19006,15 +19071,15 @@ var CompareTaskProgressStateEnumDto;
|
|
|
19006
19071
|
* Do not edit the class manually.
|
|
19007
19072
|
*/
|
|
19008
19073
|
/**
|
|
19009
|
-
* * `user-period-file` - user-period-file * `branch-icon` - branch-icon * `location-icon` - location-icon * `user-avatar` - user-avatar
|
|
19074
|
+
* * `user-period-file` - user-period-file * `client-project-note-files` - client-project-note-files * `branch-icon` - branch-icon * `location-icon` - location-icon * `user-avatar` - user-avatar
|
|
19010
19075
|
*/
|
|
19011
19076
|
var ConfigEnumDto;
|
|
19012
19077
|
(function (ConfigEnumDto) {
|
|
19013
19078
|
ConfigEnumDto["UserPeriodFile"] = "user-period-file";
|
|
19079
|
+
ConfigEnumDto["ClientProjectNoteFiles"] = "client-project-note-files";
|
|
19014
19080
|
ConfigEnumDto["BranchIcon"] = "branch-icon";
|
|
19015
19081
|
ConfigEnumDto["LocationIcon"] = "location-icon";
|
|
19016
19082
|
ConfigEnumDto["UserAvatar"] = "user-avatar";
|
|
19017
|
-
ConfigEnumDto["ClientProjectNoteFiles"] = "client-project-note-files";
|
|
19018
19083
|
})(ConfigEnumDto || (ConfigEnumDto = {}));
|
|
19019
19084
|
|
|
19020
19085
|
/**
|