@saritasa/crm-delmar-core-sdk 0.2.129 → 0.2.132

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.2.129
1
+ # @@saritasa/crm-delmar-core-sdk@0.2.132
2
2
 
3
3
  ```bash
4
- npm install @saritasa/crm-delmar-core-sdk@0.2.129 --save
4
+ npm install @saritasa/crm-delmar-core-sdk@0.2.132 --save
5
5
  ```
package/api/api.d.ts CHANGED
@@ -88,6 +88,9 @@ export * from "./export-task-hourly-report-for-project-api.serviceInterface";
88
88
  export * from "./export-tasks-api.service";
89
89
  import { ExportTasksApiService } from "./export-tasks-api.service";
90
90
  export * from "./export-tasks-api.serviceInterface";
91
+ export * from "./export-user-metrics-api.service";
92
+ import { ExportUserMetricsApiService } from "./export-user-metrics-api.service";
93
+ export * from "./export-user-metrics-api.serviceInterface";
91
94
  export * from "./export-user-periods-api.service";
92
95
  import { ExportUserPeriodsApiService } from "./export-user-periods-api.service";
93
96
  export * from "./export-user-periods-api.serviceInterface";
@@ -193,4 +196,4 @@ export * from "./who-am-i-api.serviceInterface";
193
196
  export * from "./work-types-api.service";
194
197
  import { WorkTypesApiService } from "./work-types-api.service";
195
198
  export * from "./work-types-api.serviceInterface";
196
- export declare const APIS: (typeof BranchPeriodsApiService | typeof BranchesApiService | typeof ClientNotesApiService | typeof ClientsApiService | typeof ComponentsApiService | typeof DepartmentsApiService | typeof DismissalReasonsApiService | typeof ExportClientNotesApiService | typeof ExportClientSummaryApiService | typeof ExportClientsApiService | typeof ExportComponentHourlyReportForClientApiService | typeof ExportComponentHourlyReportForProjectApiService | typeof ExportDepartmentHourlyReportForClientApiService | typeof ExportDepartmentHourlyReportForProjectApiService | typeof ExportJobHourlyReportForClientApiService | typeof ExportJobHourlyReportForProjectApiService | typeof ExportJobReportsDepartmentsApiService | typeof ExportJobReportsUsersApiService | typeof ExportJobsApiService | typeof ExportMarginReportApiService | typeof ExportProjectNotesApiService | typeof ExportProjectResourcesApiService | typeof ExportProjectStatusReportsApiService | typeof ExportProjectSummaryApiService | typeof ExportProjectsApiService | typeof ExportSprintHourlyReportForClientApiService | typeof ExportSprintHourlyReportForProjectApiService | typeof ExportTaskHourlyReportForClientApiService | typeof ExportTaskHourlyReportForProjectApiService | typeof ExportTasksApiService | typeof ExportUserPeriodsApiService | typeof ExportUserScoreStatsApiService | typeof ExportUsersApiService | typeof JiraClientApiService | typeof JiraCompareTasksApiService | typeof JiraInstancesApiService | typeof JiraSyncIssuesApiService | typeof JobsApiService | typeof LocationsApiService | typeof MonthClosuresApiService | typeof NotificationsApiService | typeof PermissionDataApiService | typeof ProfileApiService | typeof ProjectNotesApiService | typeof ProjectPrioritiesApiService | typeof ProjectResourcesApiService | typeof ProjectsApiService | typeof RolesApiService | typeof S3ApiService | typeof SearchPeriodsApiService | typeof SprintsApiService | typeof SsoApiService | typeof TasksApiService | typeof TokenApiService | typeof UserCapacitiesApiService | typeof UserLoginsApiService | typeof UserPeriodApproversApiService | typeof UserPeriodsApiService | typeof UserScoresApiService | typeof UserTimezoneSettingApiService | typeof UserTimezonesApiService | typeof UsersApiService | typeof VendorsApiService | typeof WhoAmIApiService | typeof WorkTypesApiService)[];
199
+ export declare const APIS: (typeof BranchPeriodsApiService | typeof BranchesApiService | typeof ClientNotesApiService | typeof ClientsApiService | typeof ComponentsApiService | typeof DepartmentsApiService | typeof DismissalReasonsApiService | typeof ExportClientNotesApiService | typeof ExportClientSummaryApiService | typeof ExportClientsApiService | typeof ExportComponentHourlyReportForClientApiService | typeof ExportComponentHourlyReportForProjectApiService | typeof ExportDepartmentHourlyReportForClientApiService | typeof ExportDepartmentHourlyReportForProjectApiService | typeof ExportJobHourlyReportForClientApiService | typeof ExportJobHourlyReportForProjectApiService | typeof ExportJobReportsDepartmentsApiService | typeof ExportJobReportsUsersApiService | typeof ExportJobsApiService | typeof ExportMarginReportApiService | typeof ExportProjectNotesApiService | typeof ExportProjectResourcesApiService | typeof ExportProjectStatusReportsApiService | typeof ExportProjectSummaryApiService | typeof ExportProjectsApiService | typeof ExportSprintHourlyReportForClientApiService | typeof ExportSprintHourlyReportForProjectApiService | typeof ExportTaskHourlyReportForClientApiService | typeof ExportTaskHourlyReportForProjectApiService | typeof ExportTasksApiService | typeof ExportUserMetricsApiService | typeof ExportUserPeriodsApiService | typeof ExportUserScoreStatsApiService | typeof ExportUsersApiService | typeof JiraClientApiService | typeof JiraCompareTasksApiService | typeof JiraInstancesApiService | typeof JiraSyncIssuesApiService | typeof JobsApiService | typeof LocationsApiService | typeof MonthClosuresApiService | typeof NotificationsApiService | typeof PermissionDataApiService | typeof ProfileApiService | typeof ProjectNotesApiService | typeof ProjectPrioritiesApiService | typeof ProjectResourcesApiService | typeof ProjectsApiService | typeof RolesApiService | typeof S3ApiService | typeof SearchPeriodsApiService | typeof SprintsApiService | typeof SsoApiService | typeof TasksApiService | typeof TokenApiService | typeof UserCapacitiesApiService | typeof UserLoginsApiService | typeof UserPeriodApproversApiService | typeof UserPeriodsApiService | typeof UserScoresApiService | typeof UserTimezoneSettingApiService | typeof UserTimezonesApiService | typeof UsersApiService | typeof VendorsApiService | typeof WhoAmIApiService | typeof WorkTypesApiService)[];
@@ -0,0 +1,102 @@
1
+ import { HttpClient, HttpResponse, HttpEvent, HttpContext } from "@angular/common/http";
2
+ import { Observable } from "rxjs";
3
+ import { ExportJobDto } from "../model/export-job.dto";
4
+ import { PaginatedExportJobListDto } from "../model/paginated-export-job-list.dto";
5
+ import { Configuration } from "../configuration";
6
+ import { BaseService } from "../api.base.service";
7
+ import { ExportUserMetricsApiServiceInterface, ExportUserMetricsCancelCreateRequestParams, ExportUserMetricsListRequestParams, ExportUserMetricsRetrieveRequestParams, ExportUserMetricsStartCreateRequestParams } from "./export-user-metrics-api.serviceInterface";
8
+ import * as i0 from "@angular/core";
9
+ export declare class ExportUserMetricsApiService extends BaseService implements ExportUserMetricsApiServiceInterface {
10
+ protected httpClient: HttpClient;
11
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
12
+ /**
13
+ * Cancel export job that is in progress.
14
+ * @endpoint post /api/v1/export-user-metrics/{id}/cancel/
15
+ * @param requestParameters
16
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
17
+ * @param reportProgress flag to report request and response progress.
18
+ */
19
+ exportUserMetricsCancelCreate(requestParameters: ExportUserMetricsCancelCreateRequestParams, observe?: "body", reportProgress?: boolean, options?: {
20
+ httpHeaderAccept?: "application/json";
21
+ context?: HttpContext;
22
+ transferCache?: boolean;
23
+ }): Observable<ExportJobDto>;
24
+ exportUserMetricsCancelCreate(requestParameters: ExportUserMetricsCancelCreateRequestParams, observe?: "response", reportProgress?: boolean, options?: {
25
+ httpHeaderAccept?: "application/json";
26
+ context?: HttpContext;
27
+ transferCache?: boolean;
28
+ }): Observable<HttpResponse<ExportJobDto>>;
29
+ exportUserMetricsCancelCreate(requestParameters: ExportUserMetricsCancelCreateRequestParams, observe?: "events", reportProgress?: boolean, options?: {
30
+ httpHeaderAccept?: "application/json";
31
+ context?: HttpContext;
32
+ transferCache?: boolean;
33
+ }): Observable<HttpEvent<ExportJobDto>>;
34
+ /**
35
+ * Viewset for exporting users metrics.
36
+ * @endpoint get /api/v1/export-user-metrics/
37
+ * @param requestParameters
38
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
39
+ * @param reportProgress flag to report request and response progress.
40
+ */
41
+ exportUserMetricsList(requestParameters?: ExportUserMetricsListRequestParams, observe?: "body", reportProgress?: boolean, options?: {
42
+ httpHeaderAccept?: "application/json";
43
+ context?: HttpContext;
44
+ transferCache?: boolean;
45
+ }): Observable<PaginatedExportJobListDto>;
46
+ exportUserMetricsList(requestParameters?: ExportUserMetricsListRequestParams, observe?: "response", reportProgress?: boolean, options?: {
47
+ httpHeaderAccept?: "application/json";
48
+ context?: HttpContext;
49
+ transferCache?: boolean;
50
+ }): Observable<HttpResponse<PaginatedExportJobListDto>>;
51
+ exportUserMetricsList(requestParameters?: ExportUserMetricsListRequestParams, observe?: "events", reportProgress?: boolean, options?: {
52
+ httpHeaderAccept?: "application/json";
53
+ context?: HttpContext;
54
+ transferCache?: boolean;
55
+ }): Observable<HttpEvent<PaginatedExportJobListDto>>;
56
+ /**
57
+ * Viewset for exporting users metrics.
58
+ * @endpoint get /api/v1/export-user-metrics/{id}/
59
+ * @param requestParameters
60
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
61
+ * @param reportProgress flag to report request and response progress.
62
+ */
63
+ exportUserMetricsRetrieve(requestParameters: ExportUserMetricsRetrieveRequestParams, observe?: "body", reportProgress?: boolean, options?: {
64
+ httpHeaderAccept?: "application/json";
65
+ context?: HttpContext;
66
+ transferCache?: boolean;
67
+ }): Observable<ExportJobDto>;
68
+ exportUserMetricsRetrieve(requestParameters: ExportUserMetricsRetrieveRequestParams, observe?: "response", reportProgress?: boolean, options?: {
69
+ httpHeaderAccept?: "application/json";
70
+ context?: HttpContext;
71
+ transferCache?: boolean;
72
+ }): Observable<HttpResponse<ExportJobDto>>;
73
+ exportUserMetricsRetrieve(requestParameters: ExportUserMetricsRetrieveRequestParams, observe?: "events", reportProgress?: boolean, options?: {
74
+ httpHeaderAccept?: "application/json";
75
+ context?: HttpContext;
76
+ transferCache?: boolean;
77
+ }): Observable<HttpEvent<ExportJobDto>>;
78
+ /**
79
+ * This endpoint creates export job and starts it. To monitor progress use detail endpoint for jobs to fetch state of job. Once it\&#39;s status is &#x60;EXPORTED&#x60;, you can download file.
80
+ * @endpoint post /api/v1/export-user-metrics/start/
81
+ * @param requestParameters
82
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
83
+ * @param reportProgress flag to report request and response progress.
84
+ */
85
+ exportUserMetricsStartCreate(requestParameters: ExportUserMetricsStartCreateRequestParams, observe?: "body", reportProgress?: boolean, options?: {
86
+ httpHeaderAccept?: "application/json";
87
+ context?: HttpContext;
88
+ transferCache?: boolean;
89
+ }): Observable<ExportJobDto>;
90
+ exportUserMetricsStartCreate(requestParameters: ExportUserMetricsStartCreateRequestParams, observe?: "response", reportProgress?: boolean, options?: {
91
+ httpHeaderAccept?: "application/json";
92
+ context?: HttpContext;
93
+ transferCache?: boolean;
94
+ }): Observable<HttpResponse<ExportJobDto>>;
95
+ exportUserMetricsStartCreate(requestParameters: ExportUserMetricsStartCreateRequestParams, observe?: "events", reportProgress?: boolean, options?: {
96
+ httpHeaderAccept?: "application/json";
97
+ context?: HttpContext;
98
+ transferCache?: boolean;
99
+ }): Observable<HttpEvent<ExportJobDto>>;
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExportUserMetricsApiService, [null, { optional: true; }, { optional: true; }]>;
101
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExportUserMetricsApiService>;
102
+ }
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { HttpHeaders } from "@angular/common/http";
11
+ import { Observable } from "rxjs";
12
+ import { ExportJobDto } from "../model/models";
13
+ import { PaginatedExportJobListDto } from "../model/models";
14
+ import { UserMetricsResourceCreateExportJobRequestDto } from "../model/models";
15
+ import { Configuration } from "../configuration";
16
+ export interface ExportUserMetricsCancelCreateRequestParams {
17
+ id: number;
18
+ }
19
+ export interface ExportUserMetricsListRequestParams {
20
+ limit?: number;
21
+ offset?: number;
22
+ ordering?: string;
23
+ search?: string;
24
+ }
25
+ export interface ExportUserMetricsRetrieveRequestParams {
26
+ id: number;
27
+ }
28
+ export interface ExportUserMetricsStartCreateRequestParams {
29
+ period: string;
30
+ userMetricsResourceCreateExportJobRequestDto: UserMetricsResourceCreateExportJobRequestDto;
31
+ branch?: number;
32
+ branchIn?: Array<number>;
33
+ createdDateGte?: string;
34
+ createdDateLte?: string;
35
+ createdGte?: string;
36
+ createdLte?: string;
37
+ department?: number;
38
+ departmentIn?: Array<number>;
39
+ id?: number;
40
+ idIn?: Array<number>;
41
+ isAccountManager?: boolean;
42
+ isProjectManager?: boolean;
43
+ isStaff?: boolean;
44
+ isStaffIn?: Array<boolean>;
45
+ ordering?: string;
46
+ role?: number;
47
+ roleIn?: Array<number>;
48
+ status?: "active" | "fired" | "vacation";
49
+ statusIn?: Array<string>;
50
+ superviseesIdIn?: Array<number>;
51
+ supervisorsIdIn?: Array<number>;
52
+ workType?: number;
53
+ workTypeIn?: Array<number>;
54
+ }
55
+ export interface ExportUserMetricsApiServiceInterface {
56
+ defaultHeaders: HttpHeaders;
57
+ configuration: Configuration;
58
+ /**
59
+ *
60
+ * Cancel export job that is in progress.
61
+ * @endpoint post /api/v1/export-user-metrics/{id}/cancel/
62
+ * @param requestParameters
63
+ */
64
+ exportUserMetricsCancelCreate(requestParameters: ExportUserMetricsCancelCreateRequestParams, extraHttpRequestParams?: any): Observable<ExportJobDto>;
65
+ /**
66
+ *
67
+ * Viewset for exporting users metrics.
68
+ * @endpoint get /api/v1/export-user-metrics/
69
+ * @param requestParameters
70
+ */
71
+ exportUserMetricsList(requestParameters: ExportUserMetricsListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedExportJobListDto>;
72
+ /**
73
+ *
74
+ * Viewset for exporting users metrics.
75
+ * @endpoint get /api/v1/export-user-metrics/{id}/
76
+ * @param requestParameters
77
+ */
78
+ exportUserMetricsRetrieve(requestParameters: ExportUserMetricsRetrieveRequestParams, extraHttpRequestParams?: any): Observable<ExportJobDto>;
79
+ /**
80
+ *
81
+ * This endpoint creates export job and starts it. To monitor progress use detail endpoint for jobs to fetch state of job. Once it\&#39;s status is &#x60;EXPORTED&#x60;, you can download file.
82
+ * @endpoint post /api/v1/export-user-metrics/start/
83
+ * @param requestParameters
84
+ */
85
+ exportUserMetricsStartCreate(requestParameters: ExportUserMetricsStartCreateRequestParams, extraHttpRequestParams?: any): Observable<ExportJobDto>;
86
+ }
@@ -9149,6 +9149,292 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
9149
9149
  type: Optional
9150
9150
  }] }] });
9151
9151
 
9152
+ /**
9153
+ * Delmar Api
9154
+ *
9155
+ *
9156
+ *
9157
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9158
+ * https://openapi-generator.tech
9159
+ * Do not edit the class manually.
9160
+ */
9161
+ /* tslint:disable:no-unused-variable member-ordering */
9162
+ class ExportUserMetricsApiService extends BaseService {
9163
+ httpClient;
9164
+ constructor(httpClient, basePath, configuration) {
9165
+ super(basePath, configuration);
9166
+ this.httpClient = httpClient;
9167
+ }
9168
+ exportUserMetricsCancelCreate(requestParameters, observe = "body", reportProgress = false, options) {
9169
+ const id = requestParameters?.id;
9170
+ if (id === null || id === undefined) {
9171
+ throw new Error("Required parameter id was null or undefined when calling exportUserMetricsCancelCreate.");
9172
+ }
9173
+ let localVarHeaders = this.defaultHeaders;
9174
+ // authentication (cookieAuth) required
9175
+ // authentication (jwtAuth) required
9176
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
9177
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
9178
+ this.configuration.selectHeaderAccept(["application/json"]);
9179
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
9180
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
9181
+ }
9182
+ const localVarHttpContext = options?.context ?? new HttpContext();
9183
+ const localVarTransferCache = options?.transferCache ?? true;
9184
+ let responseType_ = "json";
9185
+ if (localVarHttpHeaderAcceptSelected) {
9186
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
9187
+ responseType_ = "text";
9188
+ }
9189
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
9190
+ responseType_ = "json";
9191
+ }
9192
+ else {
9193
+ responseType_ = "blob";
9194
+ }
9195
+ }
9196
+ let localVarPath = `/api/v1/export-user-metrics/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/cancel/`;
9197
+ const { basePath, withCredentials } = this.configuration;
9198
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
9199
+ context: localVarHttpContext,
9200
+ responseType: responseType_,
9201
+ ...(withCredentials ? { withCredentials } : {}),
9202
+ headers: localVarHeaders,
9203
+ observe: observe,
9204
+ ...(localVarTransferCache !== undefined
9205
+ ? { transferCache: localVarTransferCache }
9206
+ : {}),
9207
+ reportProgress: reportProgress,
9208
+ });
9209
+ }
9210
+ exportUserMetricsList(requestParameters, observe = "body", reportProgress = false, options) {
9211
+ const limit = requestParameters?.limit;
9212
+ const offset = requestParameters?.offset;
9213
+ const ordering = requestParameters?.ordering;
9214
+ const search = requestParameters?.search;
9215
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
9216
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, "limit");
9217
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, offset, "offset");
9218
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, ordering, "ordering");
9219
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, search, "search");
9220
+ let localVarHeaders = this.defaultHeaders;
9221
+ // authentication (cookieAuth) required
9222
+ // authentication (jwtAuth) required
9223
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
9224
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
9225
+ this.configuration.selectHeaderAccept(["application/json"]);
9226
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
9227
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
9228
+ }
9229
+ const localVarHttpContext = options?.context ?? new HttpContext();
9230
+ const localVarTransferCache = options?.transferCache ?? true;
9231
+ let responseType_ = "json";
9232
+ if (localVarHttpHeaderAcceptSelected) {
9233
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
9234
+ responseType_ = "text";
9235
+ }
9236
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
9237
+ responseType_ = "json";
9238
+ }
9239
+ else {
9240
+ responseType_ = "blob";
9241
+ }
9242
+ }
9243
+ let localVarPath = `/api/v1/export-user-metrics/`;
9244
+ const { basePath, withCredentials } = this.configuration;
9245
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
9246
+ context: localVarHttpContext,
9247
+ params: localVarQueryParameters,
9248
+ responseType: responseType_,
9249
+ ...(withCredentials ? { withCredentials } : {}),
9250
+ headers: localVarHeaders,
9251
+ observe: observe,
9252
+ ...(localVarTransferCache !== undefined
9253
+ ? { transferCache: localVarTransferCache }
9254
+ : {}),
9255
+ reportProgress: reportProgress,
9256
+ });
9257
+ }
9258
+ exportUserMetricsRetrieve(requestParameters, observe = "body", reportProgress = false, options) {
9259
+ const id = requestParameters?.id;
9260
+ if (id === null || id === undefined) {
9261
+ throw new Error("Required parameter id was null or undefined when calling exportUserMetricsRetrieve.");
9262
+ }
9263
+ let localVarHeaders = this.defaultHeaders;
9264
+ // authentication (cookieAuth) required
9265
+ // authentication (jwtAuth) required
9266
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
9267
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
9268
+ this.configuration.selectHeaderAccept(["application/json"]);
9269
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
9270
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
9271
+ }
9272
+ const localVarHttpContext = options?.context ?? new HttpContext();
9273
+ const localVarTransferCache = options?.transferCache ?? true;
9274
+ let responseType_ = "json";
9275
+ if (localVarHttpHeaderAcceptSelected) {
9276
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
9277
+ responseType_ = "text";
9278
+ }
9279
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
9280
+ responseType_ = "json";
9281
+ }
9282
+ else {
9283
+ responseType_ = "blob";
9284
+ }
9285
+ }
9286
+ let localVarPath = `/api/v1/export-user-metrics/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/`;
9287
+ const { basePath, withCredentials } = this.configuration;
9288
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
9289
+ context: localVarHttpContext,
9290
+ responseType: responseType_,
9291
+ ...(withCredentials ? { withCredentials } : {}),
9292
+ headers: localVarHeaders,
9293
+ observe: observe,
9294
+ ...(localVarTransferCache !== undefined
9295
+ ? { transferCache: localVarTransferCache }
9296
+ : {}),
9297
+ reportProgress: reportProgress,
9298
+ });
9299
+ }
9300
+ exportUserMetricsStartCreate(requestParameters, observe = "body", reportProgress = false, options) {
9301
+ const period = requestParameters?.period;
9302
+ if (period === null || period === undefined) {
9303
+ throw new Error("Required parameter period was null or undefined when calling exportUserMetricsStartCreate.");
9304
+ }
9305
+ const userMetricsResourceCreateExportJobRequestDto = requestParameters?.userMetricsResourceCreateExportJobRequestDto;
9306
+ if (userMetricsResourceCreateExportJobRequestDto === null ||
9307
+ userMetricsResourceCreateExportJobRequestDto === undefined) {
9308
+ throw new Error("Required parameter userMetricsResourceCreateExportJobRequestDto was null or undefined when calling exportUserMetricsStartCreate.");
9309
+ }
9310
+ const branch = requestParameters?.branch;
9311
+ const branchIn = requestParameters?.branchIn;
9312
+ const createdDateGte = requestParameters?.createdDateGte;
9313
+ const createdDateLte = requestParameters?.createdDateLte;
9314
+ const createdGte = requestParameters?.createdGte;
9315
+ const createdLte = requestParameters?.createdLte;
9316
+ const department = requestParameters?.department;
9317
+ const departmentIn = requestParameters?.departmentIn;
9318
+ const id = requestParameters?.id;
9319
+ const idIn = requestParameters?.idIn;
9320
+ const isAccountManager = requestParameters?.isAccountManager;
9321
+ const isProjectManager = requestParameters?.isProjectManager;
9322
+ const isStaff = requestParameters?.isStaff;
9323
+ const isStaffIn = requestParameters?.isStaffIn;
9324
+ const ordering = requestParameters?.ordering;
9325
+ const role = requestParameters?.role;
9326
+ const roleIn = requestParameters?.roleIn;
9327
+ const status = requestParameters?.status;
9328
+ const statusIn = requestParameters?.statusIn;
9329
+ const superviseesIdIn = requestParameters?.superviseesIdIn;
9330
+ const supervisorsIdIn = requestParameters?.supervisorsIdIn;
9331
+ const workType = requestParameters?.workType;
9332
+ const workTypeIn = requestParameters?.workTypeIn;
9333
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
9334
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, branch, "branch");
9335
+ if (branchIn) {
9336
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...branchIn].join(COLLECTION_FORMATS["csv"]), "branch__in");
9337
+ }
9338
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdDateGte, "created__date__gte");
9339
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdDateLte, "created__date__lte");
9340
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdGte, "created__gte");
9341
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdLte, "created__lte");
9342
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, department, "department");
9343
+ if (departmentIn) {
9344
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...departmentIn].join(COLLECTION_FORMATS["csv"]), "department__in");
9345
+ }
9346
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, id, "id");
9347
+ if (idIn) {
9348
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...idIn].join(COLLECTION_FORMATS["csv"]), "id__in");
9349
+ }
9350
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isAccountManager, "is_account_manager");
9351
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isProjectManager, "is_project_manager");
9352
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isStaff, "is_staff");
9353
+ if (isStaffIn) {
9354
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...isStaffIn].join(COLLECTION_FORMATS["csv"]), "is_staff__in");
9355
+ }
9356
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, ordering, "ordering");
9357
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, period, "period");
9358
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, role, "role");
9359
+ if (roleIn) {
9360
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...roleIn].join(COLLECTION_FORMATS["csv"]), "role__in");
9361
+ }
9362
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, "status");
9363
+ if (statusIn) {
9364
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...statusIn].join(COLLECTION_FORMATS["csv"]), "status__in");
9365
+ }
9366
+ if (superviseesIdIn) {
9367
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...superviseesIdIn].join(COLLECTION_FORMATS["csv"]), "supervisees__id__in");
9368
+ }
9369
+ if (supervisorsIdIn) {
9370
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...supervisorsIdIn].join(COLLECTION_FORMATS["csv"]), "supervisors__id__in");
9371
+ }
9372
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, workType, "work_type");
9373
+ if (workTypeIn) {
9374
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...workTypeIn].join(COLLECTION_FORMATS["csv"]), "work_type__in");
9375
+ }
9376
+ let localVarHeaders = this.defaultHeaders;
9377
+ // authentication (cookieAuth) required
9378
+ // authentication (jwtAuth) required
9379
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
9380
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
9381
+ this.configuration.selectHeaderAccept(["application/json"]);
9382
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
9383
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
9384
+ }
9385
+ const localVarHttpContext = options?.context ?? new HttpContext();
9386
+ const localVarTransferCache = options?.transferCache ?? true;
9387
+ // to determine the Content-Type header
9388
+ const consumes = ["application/json"];
9389
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
9390
+ if (httpContentTypeSelected !== undefined) {
9391
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
9392
+ }
9393
+ let responseType_ = "json";
9394
+ if (localVarHttpHeaderAcceptSelected) {
9395
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
9396
+ responseType_ = "text";
9397
+ }
9398
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
9399
+ responseType_ = "json";
9400
+ }
9401
+ else {
9402
+ responseType_ = "blob";
9403
+ }
9404
+ }
9405
+ let localVarPath = `/api/v1/export-user-metrics/start/`;
9406
+ const { basePath, withCredentials } = this.configuration;
9407
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
9408
+ context: localVarHttpContext,
9409
+ body: userMetricsResourceCreateExportJobRequestDto,
9410
+ params: localVarQueryParameters,
9411
+ responseType: responseType_,
9412
+ ...(withCredentials ? { withCredentials } : {}),
9413
+ headers: localVarHeaders,
9414
+ observe: observe,
9415
+ ...(localVarTransferCache !== undefined
9416
+ ? { transferCache: localVarTransferCache }
9417
+ : {}),
9418
+ reportProgress: reportProgress,
9419
+ });
9420
+ }
9421
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExportUserMetricsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
9422
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExportUserMetricsApiService, providedIn: "root" });
9423
+ }
9424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExportUserMetricsApiService, decorators: [{
9425
+ type: Injectable,
9426
+ args: [{
9427
+ providedIn: "root",
9428
+ }]
9429
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
9430
+ type: Optional
9431
+ }, {
9432
+ type: Inject,
9433
+ args: [BASE_PATH]
9434
+ }] }, { type: Configuration, decorators: [{
9435
+ type: Optional
9436
+ }] }] });
9437
+
9152
9438
  /**
9153
9439
  * Delmar Api
9154
9440
  *
@@ -19176,6 +19462,7 @@ const APIS = [
19176
19462
  ExportTaskHourlyReportForClientApiService,
19177
19463
  ExportTaskHourlyReportForProjectApiService,
19178
19464
  ExportTasksApiService,
19465
+ ExportUserMetricsApiService,
19179
19466
  ExportUserPeriodsApiService,
19180
19467
  ExportUserScoreStatsApiService,
19181
19468
  ExportUsersApiService,
@@ -20991,5 +21278,5 @@ function provideApi(configOrBasePath) {
20991
21278
  * Generated bundle index. Do not edit.
20992
21279
  */
20993
21280
 
20994
- export { APIS, ApiModule, BASE_PATH, BillingFrequencyEnumDto, BillingMethodEnumDto, BillingTypeEnumDto, BranchPeriodTypeEnumDto, BranchPeriodsApiService, BranchesApiService, COLLECTION_FORMATS, ClientErrorEnumDto, ClientNotesApiService, ClientStatusEnumDto, ClientsApiService, ComponentsApiService, ConfigEnumDto, Configuration, CustomXLSXFileFormatEnumDto, DepartmentsApiService, DismissalReasonsApiService, ErrorCode401EnumDto, ErrorCode403EnumDto, ErrorCode404EnumDto, ErrorCode405EnumDto, ErrorCode406EnumDto, ErrorCode415EnumDto, ErrorCode500EnumDto, ExportClientNotesApiService, ExportClientSummaryApiService, ExportClientsApiService, ExportComponentHourlyReportForClientApiService, ExportComponentHourlyReportForProjectApiService, ExportDepartmentHourlyReportForClientApiService, ExportDepartmentHourlyReportForProjectApiService, ExportJobHourlyReportForClientApiService, ExportJobHourlyReportForProjectApiService, ExportJobReportsDepartmentsApiService, ExportJobReportsUsersApiService, ExportJobsApiService, ExportMarginReportApiService, ExportProgressStateEnumDto, ExportProjectNotesApiService, ExportProjectResourcesApiService, ExportProjectStatusReportsApiService, ExportProjectSummaryApiService, ExportProjectsApiService, ExportSprintHourlyReportForClientApiService, ExportSprintHourlyReportForProjectApiService, ExportStatusEnumDto, ExportTaskHourlyReportForClientApiService, ExportTaskHourlyReportForProjectApiService, ExportTasksApiService, ExportUserPeriodsApiService, ExportUserScoreStatsApiService, ExportUsersApiService, FileFormatEnumDto, HostingFrequencyEnumDto, JiraClientApiService, JiraCompareTaskStatusEnumDto, JiraCompareTasksApiService, JiraInstancesApiService, JiraSyncIssueTypeEnumDto, JiraSyncIssuesApiService, JobTypeEnumDto, JobsApiService, LocationsApiService, MonthClosuresApiService, NotificationTypeEnumDto, NotificationsApiService, PDFFileFormatEnumDto, PeriodModelEnumDto, PeriodTypeEnumDto, PermissionDataApiService, PermissionEnumDto, PermissionGroupEnumDto, PriorityEnumDto, ProfileApiService, ProjectNotesApiService, ProjectPrioritiesApiService, ProjectResourcesApiService, ProjectStatusEnumDto, ProjectsApiService, RolesApiService, S3ApiService, ScopeEnumDto, SearchPeriodsApiService, ServerErrorEnumDto, SprintsApiService, SsoApiService, TaskProgressStateEnumDto, TasksApiService, TokenApiService, UserCapacitiesApiService, UserLoginsApiService, UserPeriodApproversApiService, UserPeriodReviewRequestStatusEnumDto, UserPeriodStatusEnumDto, UserPeriodTypeEnumDto, UserPeriodsApiService, UserScoresApiService, UserStatusEnumDto, UserTimezoneSettingApiService, UserTimezoneSettingOrderingEnumDto, UserTimezonesApiService, UsersApiService, VendorsApiService, WhoAmIApiService, WorkTypesApiService, provideApi };
21281
+ export { APIS, ApiModule, BASE_PATH, BillingFrequencyEnumDto, BillingMethodEnumDto, BillingTypeEnumDto, BranchPeriodTypeEnumDto, BranchPeriodsApiService, BranchesApiService, COLLECTION_FORMATS, ClientErrorEnumDto, ClientNotesApiService, ClientStatusEnumDto, ClientsApiService, ComponentsApiService, ConfigEnumDto, Configuration, CustomXLSXFileFormatEnumDto, DepartmentsApiService, DismissalReasonsApiService, ErrorCode401EnumDto, ErrorCode403EnumDto, ErrorCode404EnumDto, ErrorCode405EnumDto, ErrorCode406EnumDto, ErrorCode415EnumDto, ErrorCode500EnumDto, ExportClientNotesApiService, ExportClientSummaryApiService, ExportClientsApiService, ExportComponentHourlyReportForClientApiService, ExportComponentHourlyReportForProjectApiService, ExportDepartmentHourlyReportForClientApiService, ExportDepartmentHourlyReportForProjectApiService, ExportJobHourlyReportForClientApiService, ExportJobHourlyReportForProjectApiService, ExportJobReportsDepartmentsApiService, ExportJobReportsUsersApiService, ExportJobsApiService, ExportMarginReportApiService, ExportProgressStateEnumDto, ExportProjectNotesApiService, ExportProjectResourcesApiService, ExportProjectStatusReportsApiService, ExportProjectSummaryApiService, ExportProjectsApiService, ExportSprintHourlyReportForClientApiService, ExportSprintHourlyReportForProjectApiService, ExportStatusEnumDto, ExportTaskHourlyReportForClientApiService, ExportTaskHourlyReportForProjectApiService, ExportTasksApiService, ExportUserMetricsApiService, ExportUserPeriodsApiService, ExportUserScoreStatsApiService, ExportUsersApiService, FileFormatEnumDto, HostingFrequencyEnumDto, JiraClientApiService, JiraCompareTaskStatusEnumDto, JiraCompareTasksApiService, JiraInstancesApiService, JiraSyncIssueTypeEnumDto, JiraSyncIssuesApiService, JobTypeEnumDto, JobsApiService, LocationsApiService, MonthClosuresApiService, NotificationTypeEnumDto, NotificationsApiService, PDFFileFormatEnumDto, PeriodModelEnumDto, PeriodTypeEnumDto, PermissionDataApiService, PermissionEnumDto, PermissionGroupEnumDto, PriorityEnumDto, ProfileApiService, ProjectNotesApiService, ProjectPrioritiesApiService, ProjectResourcesApiService, ProjectStatusEnumDto, ProjectsApiService, RolesApiService, S3ApiService, ScopeEnumDto, SearchPeriodsApiService, ServerErrorEnumDto, SprintsApiService, SsoApiService, TaskProgressStateEnumDto, TasksApiService, TokenApiService, UserCapacitiesApiService, UserLoginsApiService, UserPeriodApproversApiService, UserPeriodReviewRequestStatusEnumDto, UserPeriodStatusEnumDto, UserPeriodTypeEnumDto, UserPeriodsApiService, UserScoresApiService, UserStatusEnumDto, UserTimezoneSettingApiService, UserTimezoneSettingOrderingEnumDto, UserTimezonesApiService, UsersApiService, VendorsApiService, WhoAmIApiService, WorkTypesApiService, provideApi };
20995
21282
  //# sourceMappingURL=saritasa-crm-delmar-core-sdk.mjs.map