@saritasa/crm-delmar-core-sdk 0.2.85 → 0.2.86

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.85
1
+ # @@saritasa/crm-delmar-core-sdk@0.2.86
2
2
 
3
3
  ```bash
4
- npm install @saritasa/crm-delmar-core-sdk@0.2.85 --save
4
+ npm install @saritasa/crm-delmar-core-sdk@0.2.86 --save
5
5
  ```
@@ -1,12 +1,13 @@
1
1
  import { HttpClient, HttpResponse, HttpEvent, HttpContext } from "@angular/common/http";
2
2
  import { Observable } from "rxjs";
3
3
  import { ClientDto } from "../model/client.dto";
4
+ import { ClientHostingReportDto } from "../model/client-hosting-report.dto";
4
5
  import { ClientMarginReportDto } from "../model/client-margin-report.dto";
5
6
  import { PaginatedClientListDto } from "../model/paginated-client-list.dto";
6
7
  import { PaginatedSimpleClientListDto } from "../model/paginated-simple-client-list.dto";
7
8
  import { Configuration } from "../configuration";
8
9
  import { BaseService } from "../api.base.service";
9
- import { ClientsApiServiceInterface, ClientsCreateRequestParams, ClientsListRequestParams, ClientsMarginReportRetrieveRequestParams, ClientsRetrieveRequestParams, ClientsSearchListRequestParams, ClientsUpdateRequestParams } from "./clients-api.serviceInterface";
10
+ import { ClientsApiServiceInterface, ClientsCreateRequestParams, ClientsHostingReportListRequestParams, ClientsListRequestParams, ClientsMarginReportRetrieveRequestParams, ClientsRetrieveRequestParams, ClientsSearchListRequestParams, ClientsUpdateRequestParams } from "./clients-api.serviceInterface";
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class ClientsApiService extends BaseService implements ClientsApiServiceInterface {
12
13
  protected httpClient: HttpClient;
@@ -32,6 +33,27 @@ export declare class ClientsApiService extends BaseService implements ClientsApi
32
33
  context?: HttpContext;
33
34
  transferCache?: boolean;
34
35
  }): Observable<HttpEvent<ClientDto>>;
36
+ /**
37
+ * Get hosting report.
38
+ * @param requestParameters
39
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
40
+ * @param reportProgress flag to report request and response progress.
41
+ */
42
+ clientsHostingReportList(requestParameters?: ClientsHostingReportListRequestParams, observe?: "body", reportProgress?: boolean, options?: {
43
+ httpHeaderAccept?: "application/json";
44
+ context?: HttpContext;
45
+ transferCache?: boolean;
46
+ }): Observable<Array<ClientHostingReportDto>>;
47
+ clientsHostingReportList(requestParameters?: ClientsHostingReportListRequestParams, observe?: "response", reportProgress?: boolean, options?: {
48
+ httpHeaderAccept?: "application/json";
49
+ context?: HttpContext;
50
+ transferCache?: boolean;
51
+ }): Observable<HttpResponse<Array<ClientHostingReportDto>>>;
52
+ clientsHostingReportList(requestParameters?: ClientsHostingReportListRequestParams, observe?: "events", reportProgress?: boolean, options?: {
53
+ httpHeaderAccept?: "application/json";
54
+ context?: HttpContext;
55
+ transferCache?: boolean;
56
+ }): Observable<HttpEvent<Array<ClientHostingReportDto>>>;
35
57
  /**
36
58
  * View set API for Client model.
37
59
  * @param requestParameters
@@ -10,6 +10,7 @@
10
10
  import { HttpHeaders } from "@angular/common/http";
11
11
  import { Observable } from "rxjs";
12
12
  import { ClientDto } from "../model/models";
13
+ import { ClientHostingReportDto } from "../model/models";
13
14
  import { ClientMarginReportDto } from "../model/models";
14
15
  import { ClientRequestDto } from "../model/models";
15
16
  import { PaginatedClientListDto } from "../model/models";
@@ -18,6 +19,10 @@ import { Configuration } from "../configuration";
18
19
  export interface ClientsCreateRequestParams {
19
20
  clientRequestDto: ClientRequestDto;
20
21
  }
22
+ export interface ClientsHostingReportListRequestParams {
23
+ id?: number;
24
+ idIn?: Array<number>;
25
+ }
21
26
  export interface ClientsListRequestParams {
22
27
  accountManager?: number;
23
28
  accountManagerIn?: Array<number>;
@@ -177,6 +182,12 @@ export interface ClientsApiServiceInterface {
177
182
  * @param requestParameters
178
183
  */
179
184
  clientsCreate(requestParameters: ClientsCreateRequestParams, extraHttpRequestParams?: any): Observable<ClientDto>;
185
+ /**
186
+ *
187
+ * Get hosting report.
188
+ * @param requestParameters
189
+ */
190
+ clientsHostingReportList(requestParameters: ClientsHostingReportListRequestParams, extraHttpRequestParams?: any): Observable<Array<ClientHostingReportDto>>;
180
191
  /**
181
192
  *
182
193
  * View set API for Client model.
@@ -1270,6 +1270,50 @@ class ClientsApiService extends BaseService {
1270
1270
  reportProgress: reportProgress,
1271
1271
  });
1272
1272
  }
1273
+ clientsHostingReportList(requestParameters, observe = "body", reportProgress = false, options) {
1274
+ const id = requestParameters?.id;
1275
+ const idIn = requestParameters?.idIn;
1276
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1277
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, id, "id");
1278
+ if (idIn) {
1279
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...idIn].join(COLLECTION_FORMATS["csv"]), "id__in");
1280
+ }
1281
+ let localVarHeaders = this.defaultHeaders;
1282
+ // authentication (cookieAuth) required
1283
+ // authentication (jwtAuth) required
1284
+ localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
1285
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1286
+ this.configuration.selectHeaderAccept(["application/json"]);
1287
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1288
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1289
+ }
1290
+ const localVarHttpContext = options?.context ?? new HttpContext();
1291
+ const localVarTransferCache = options?.transferCache ?? true;
1292
+ let responseType_ = "json";
1293
+ if (localVarHttpHeaderAcceptSelected) {
1294
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1295
+ responseType_ = "text";
1296
+ }
1297
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1298
+ responseType_ = "json";
1299
+ }
1300
+ else {
1301
+ responseType_ = "blob";
1302
+ }
1303
+ }
1304
+ let localVarPath = `/api/v1/clients/hosting-report/`;
1305
+ const { basePath, withCredentials } = this.configuration;
1306
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1307
+ context: localVarHttpContext,
1308
+ params: localVarQueryParameters,
1309
+ responseType: responseType_,
1310
+ ...(withCredentials ? { withCredentials } : {}),
1311
+ headers: localVarHeaders,
1312
+ observe: observe,
1313
+ transferCache: localVarTransferCache,
1314
+ reportProgress: reportProgress,
1315
+ });
1316
+ }
1273
1317
  clientsList(requestParameters, observe = "body", reportProgress = false, options) {
1274
1318
  const accountManager = requestParameters?.accountManager;
1275
1319
  const accountManagerIn = requestParameters?.accountManagerIn;