@saritasa/crm-delmar-core-sdk 0.0.378 → 0.0.395

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.0.378
1
+ # @@saritasa/crm-delmar-core-sdk@0.0.395
2
2
 
3
3
  ```bash
4
- npm install @saritasa/crm-delmar-core-sdk@0.0.378 --save
4
+ npm install @saritasa/crm-delmar-core-sdk@0.0.395 --save
5
5
  ```
@@ -21,7 +21,7 @@ export interface ClientNotesDestroyRequestParams {
21
21
  id: number;
22
22
  }
23
23
  export interface ClientNotesListRequestParams {
24
- clientIn?: Array<number>;
24
+ clientIn?: Array<string>;
25
25
  createdDateGte?: string;
26
26
  createdDateLte?: string;
27
27
  createdGte?: string;
@@ -27,7 +27,7 @@ export interface ExportClientNotesRetrieveRequestParams {
27
27
  }
28
28
  export interface ExportClientNotesStartCreateRequestParams {
29
29
  clientNoteResourceCreateExportJobRequestDto: ClientNoteResourceCreateExportJobRequestDto;
30
- clientIn?: Array<number>;
30
+ clientIn?: Array<string>;
31
31
  createdDateGte?: string;
32
32
  createdDateLte?: string;
33
33
  createdGte?: string;
@@ -2,15 +2,39 @@ import { HttpClient, HttpResponse, HttpEvent, HttpContext } from "@angular/commo
2
2
  import { Observable } from "rxjs";
3
3
  import { PaginatedUserListDto } from "../model/paginated-user-list.dto";
4
4
  import { SimpleUserDto } from "../model/simple-user.dto";
5
+ import { UserCalendarDto } from "../model/user-calendar.dto";
5
6
  import { UserDto } from "../model/user.dto";
6
7
  import { UtilizationChartPointDto } from "../model/utilization-chart-point.dto";
7
8
  import { Configuration } from "../configuration";
8
9
  import { BaseService } from "../api.base.service";
9
- import { UsersApiServiceInterface, UsersCreateRequestParams, UsersExpectedPeriodsApproversListRequestParams, UsersListRequestParams, UsersPartialUpdateRequestParams, UsersRetrieveRequestParams, UsersUpdateRequestParams, UsersUtilizationChartListRequestParams } from "./users-api.serviceInterface";
10
+ import { UsersApiServiceInterface, UsersCalendarListRequestParams, UsersCreateRequestParams, UsersExpectedPeriodsApproversListRequestParams, UsersListRequestParams, UsersPartialUpdateRequestParams, UsersRetrieveRequestParams, UsersUpdateRequestParams, UsersUtilizationChartListRequestParams } from "./users-api.serviceInterface";
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class UsersApiService extends BaseService implements UsersApiServiceInterface {
12
13
  protected httpClient: HttpClient;
13
14
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
15
+ /**
16
+ * Get calendar. It will return user with user_periods matching filters.
17
+ * @endpoint get /api/v1/users/calendar/
18
+ * @param requestParameters
19
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
20
+ * @param reportProgress flag to report request and response progress.
21
+ * @param options additional options
22
+ */
23
+ usersCalendarList(requestParameters: UsersCalendarListRequestParams, observe?: "body", reportProgress?: boolean, options?: {
24
+ httpHeaderAccept?: "application/json";
25
+ context?: HttpContext;
26
+ transferCache?: boolean;
27
+ }): Observable<Array<UserCalendarDto>>;
28
+ usersCalendarList(requestParameters: UsersCalendarListRequestParams, observe?: "response", reportProgress?: boolean, options?: {
29
+ httpHeaderAccept?: "application/json";
30
+ context?: HttpContext;
31
+ transferCache?: boolean;
32
+ }): Observable<HttpResponse<Array<UserCalendarDto>>>;
33
+ usersCalendarList(requestParameters: UsersCalendarListRequestParams, observe?: "events", reportProgress?: boolean, options?: {
34
+ httpHeaderAccept?: "application/json";
35
+ context?: HttpContext;
36
+ transferCache?: boolean;
37
+ }): Observable<HttpEvent<Array<UserCalendarDto>>>;
14
38
  /**
15
39
  * ViewSet for viewing accounts.
16
40
  * @endpoint post /api/v1/users/
@@ -12,10 +12,24 @@ import { Observable } from "rxjs";
12
12
  import { PaginatedUserListDto } from "../model/models";
13
13
  import { PatchedPatchUserRequestDto } from "../model/models";
14
14
  import { SimpleUserDto } from "../model/models";
15
+ import { UserCalendarDto } from "../model/models";
15
16
  import { UserDto } from "../model/models";
16
17
  import { UserRequestDto } from "../model/models";
17
18
  import { UtilizationChartPointDto } from "../model/models";
18
19
  import { Configuration } from "../configuration";
20
+ export interface UsersCalendarListRequestParams {
21
+ period: string;
22
+ branchIn?: Array<number>;
23
+ departmentIn?: Array<number>;
24
+ idIn?: Array<number>;
25
+ ordering?: string;
26
+ periodsTypeIn?: Array<string>;
27
+ projectIn?: Array<number>;
28
+ projectManagerIn?: Array<number>;
29
+ search?: string;
30
+ statusIn?: Array<string>;
31
+ techManagerIn?: Array<number>;
32
+ }
19
33
  export interface UsersCreateRequestParams {
20
34
  userRequestDto: UserRequestDto;
21
35
  }
@@ -89,6 +103,13 @@ export interface UsersUtilizationChartListRequestParams {
89
103
  export interface UsersApiServiceInterface {
90
104
  defaultHeaders: HttpHeaders;
91
105
  configuration: Configuration;
106
+ /**
107
+ *
108
+ * Get calendar. It will return user with user_periods matching filters.
109
+ * @endpoint get /api/v1/users/calendar/
110
+ * @param requestParameters
111
+ */
112
+ usersCalendarList(requestParameters: UsersCalendarListRequestParams, extraHttpRequestParams?: any): Observable<Array<UserCalendarDto>>;
92
113
  /**
93
114
  *
94
115
  * ViewSet for viewing accounts.
@@ -15161,6 +15161,71 @@ class UsersApiService extends BaseService {
15161
15161
  super(basePath, configuration);
15162
15162
  this.httpClient = httpClient;
15163
15163
  }
15164
+ usersCalendarList(requestParameters, observe = "body", reportProgress = false, options) {
15165
+ const period = requestParameters?.period;
15166
+ if (period === null || period === undefined) {
15167
+ throw new Error("Required parameter period was null or undefined when calling usersCalendarList.");
15168
+ }
15169
+ const branchIn = requestParameters?.branchIn;
15170
+ const departmentIn = requestParameters?.departmentIn;
15171
+ const idIn = requestParameters?.idIn;
15172
+ const ordering = requestParameters?.ordering;
15173
+ const periodsTypeIn = requestParameters?.periodsTypeIn;
15174
+ const projectIn = requestParameters?.projectIn;
15175
+ const projectManagerIn = requestParameters?.projectManagerIn;
15176
+ const search = requestParameters?.search;
15177
+ const statusIn = requestParameters?.statusIn;
15178
+ const techManagerIn = requestParameters?.techManagerIn;
15179
+ let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
15180
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "branch__in", branchIn, QueryParamStyle.Form, false);
15181
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "department__in", departmentIn, QueryParamStyle.Form, false);
15182
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "id__in", idIn, QueryParamStyle.Form, false);
15183
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "ordering", ordering, QueryParamStyle.Form, true);
15184
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "period", period, QueryParamStyle.Form, true);
15185
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "periods__type__in", periodsTypeIn, QueryParamStyle.Form, false);
15186
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "project__in", projectIn, QueryParamStyle.Form, false);
15187
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "project_manager__in", projectManagerIn, QueryParamStyle.Form, false);
15188
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "search", search, QueryParamStyle.Form, true);
15189
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "status__in", statusIn, QueryParamStyle.Form, false);
15190
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, "tech_manager__in", techManagerIn, QueryParamStyle.Form, false);
15191
+ let localVarHeaders = this.defaultHeaders;
15192
+ // authentication (cookieAuth) required
15193
+ // authentication (jwtAuth) required
15194
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
15195
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
15196
+ this.configuration.selectHeaderAccept(["application/json"]);
15197
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
15198
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
15199
+ }
15200
+ const localVarHttpContext = options?.context ?? new HttpContext();
15201
+ const localVarTransferCache = options?.transferCache ?? true;
15202
+ let responseType_ = "json";
15203
+ if (localVarHttpHeaderAcceptSelected) {
15204
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
15205
+ responseType_ = "text";
15206
+ }
15207
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
15208
+ responseType_ = "json";
15209
+ }
15210
+ else {
15211
+ responseType_ = "blob";
15212
+ }
15213
+ }
15214
+ let localVarPath = `/api/v1/users/calendar/`;
15215
+ const { basePath, withCredentials } = this.configuration;
15216
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
15217
+ context: localVarHttpContext,
15218
+ params: localVarQueryParameters.toHttpParams(),
15219
+ responseType: responseType_,
15220
+ ...(withCredentials ? { withCredentials } : {}),
15221
+ headers: localVarHeaders,
15222
+ observe: observe,
15223
+ ...(localVarTransferCache !== undefined
15224
+ ? { transferCache: localVarTransferCache }
15225
+ : {}),
15226
+ reportProgress: reportProgress,
15227
+ });
15228
+ }
15164
15229
  usersCreate(requestParameters, observe = "body", reportProgress = false, options) {
15165
15230
  const userRequestDto = requestParameters?.userRequestDto;
15166
15231
  if (userRequestDto === null || userRequestDto === undefined) {
@@ -16531,15 +16596,15 @@ var ClientStatusEnumDto;
16531
16596
  * Do not edit the class manually.
16532
16597
  */
16533
16598
  /**
16534
- * * `branch-icon` - branch-icon * `location-icon` - location-icon * `user-avatar` - user-avatar * `client-project-note-files` - client-project-note-files * `user-period-file` - user-period-file
16599
+ * * `client-project-note-files` - client-project-note-files * `user-period-file` - user-period-file * `branch-icon` - branch-icon * `location-icon` - location-icon * `user-avatar` - user-avatar
16535
16600
  */
16536
16601
  var ConfigEnumDto;
16537
16602
  (function (ConfigEnumDto) {
16603
+ ConfigEnumDto["ClientProjectNoteFiles"] = "client-project-note-files";
16604
+ ConfigEnumDto["UserPeriodFile"] = "user-period-file";
16538
16605
  ConfigEnumDto["BranchIcon"] = "branch-icon";
16539
16606
  ConfigEnumDto["LocationIcon"] = "location-icon";
16540
16607
  ConfigEnumDto["UserAvatar"] = "user-avatar";
16541
- ConfigEnumDto["ClientProjectNoteFiles"] = "client-project-note-files";
16542
- ConfigEnumDto["UserPeriodFile"] = "user-period-file";
16543
16608
  })(ConfigEnumDto || (ConfigEnumDto = {}));
16544
16609
 
16545
16610
  /**