@saritasa/crm-delmar-core-sdk 0.0.291 → 0.0.293
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/s3-api.service.d.ts +43 -1
- package/api/s3-api.serviceInterface.d.ts +15 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +86 -20
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/models.d.ts +1 -0
- package/model/s3-config.dto.d.ts +20 -0
- package/model/simple-client-request.dto.d.ts +2 -0
- package/model/simple-client-status-report.dto.d.ts +2 -0
- package/model/simple-client.dto.d.ts +2 -0
- package/model/user-period-total-stats.dto.d.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
package/api/s3-api.service.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from "@angular/common/http";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
+
import { S3ConfigDto } from "../model/s3-config.dto";
|
|
3
4
|
import { S3UploadDto } from "../model/s3-upload.dto";
|
|
4
5
|
import { Configuration } from "../configuration";
|
|
5
6
|
import { BaseService } from "../api.base.service";
|
|
6
|
-
import { S3ApiServiceInterface, S3GetParamsCreateRequestParams } from "./s3-api.serviceInterface";
|
|
7
|
+
import { S3ApiServiceInterface, S3GetParamsCreateRequestParams, S3RetrieveConfigRetrieveRequestParams } from "./s3-api.serviceInterface";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class S3ApiService extends BaseService implements S3ApiServiceInterface {
|
|
9
10
|
protected httpClient: HttpClient;
|
|
@@ -29,6 +30,47 @@ export declare class S3ApiService extends BaseService implements S3ApiServiceInt
|
|
|
29
30
|
context?: HttpContext;
|
|
30
31
|
transferCache?: boolean;
|
|
31
32
|
}): Observable<HttpEvent<S3UploadDto>>;
|
|
33
|
+
/**
|
|
34
|
+
* List all configs for s3 upload.
|
|
35
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
36
|
+
* @param reportProgress flag to report request and response progress.
|
|
37
|
+
*/
|
|
38
|
+
s3ListConfigsList(observe?: "body", reportProgress?: boolean, options?: {
|
|
39
|
+
httpHeaderAccept?: "application/json";
|
|
40
|
+
context?: HttpContext;
|
|
41
|
+
transferCache?: boolean;
|
|
42
|
+
}): Observable<Array<S3ConfigDto>>;
|
|
43
|
+
s3ListConfigsList(observe?: "response", reportProgress?: boolean, options?: {
|
|
44
|
+
httpHeaderAccept?: "application/json";
|
|
45
|
+
context?: HttpContext;
|
|
46
|
+
transferCache?: boolean;
|
|
47
|
+
}): Observable<HttpResponse<Array<S3ConfigDto>>>;
|
|
48
|
+
s3ListConfigsList(observe?: "events", reportProgress?: boolean, options?: {
|
|
49
|
+
httpHeaderAccept?: "application/json";
|
|
50
|
+
context?: HttpContext;
|
|
51
|
+
transferCache?: boolean;
|
|
52
|
+
}): Observable<HttpEvent<Array<S3ConfigDto>>>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve config for s3 upload.
|
|
55
|
+
* @param requestParameters
|
|
56
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
57
|
+
* @param reportProgress flag to report request and response progress.
|
|
58
|
+
*/
|
|
59
|
+
s3RetrieveConfigRetrieve(requestParameters: S3RetrieveConfigRetrieveRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
60
|
+
httpHeaderAccept?: "application/json";
|
|
61
|
+
context?: HttpContext;
|
|
62
|
+
transferCache?: boolean;
|
|
63
|
+
}): Observable<S3ConfigDto>;
|
|
64
|
+
s3RetrieveConfigRetrieve(requestParameters: S3RetrieveConfigRetrieveRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
65
|
+
httpHeaderAccept?: "application/json";
|
|
66
|
+
context?: HttpContext;
|
|
67
|
+
transferCache?: boolean;
|
|
68
|
+
}): Observable<HttpResponse<S3ConfigDto>>;
|
|
69
|
+
s3RetrieveConfigRetrieve(requestParameters: S3RetrieveConfigRetrieveRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
70
|
+
httpHeaderAccept?: "application/json";
|
|
71
|
+
context?: HttpContext;
|
|
72
|
+
transferCache?: boolean;
|
|
73
|
+
}): Observable<HttpEvent<S3ConfigDto>>;
|
|
32
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<S3ApiService, [null, { optional: true; }, { optional: true; }]>;
|
|
33
75
|
static ɵprov: i0.ɵɵInjectableDeclaration<S3ApiService>;
|
|
34
76
|
}
|
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { HttpHeaders } from "@angular/common/http";
|
|
11
11
|
import { Observable } from "rxjs";
|
|
12
|
+
import { S3ConfigDto } from "../model/models";
|
|
12
13
|
import { S3RequestParamsRequestDto } from "../model/models";
|
|
13
14
|
import { S3UploadDto } from "../model/models";
|
|
14
15
|
import { Configuration } from "../configuration";
|
|
15
16
|
export interface S3GetParamsCreateRequestParams {
|
|
16
17
|
s3RequestParamsRequestDto: S3RequestParamsRequestDto;
|
|
17
18
|
}
|
|
19
|
+
export interface S3RetrieveConfigRetrieveRequestParams {
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
18
22
|
export interface S3ApiServiceInterface {
|
|
19
23
|
defaultHeaders: HttpHeaders;
|
|
20
24
|
configuration: Configuration;
|
|
@@ -24,4 +28,15 @@ export interface S3ApiServiceInterface {
|
|
|
24
28
|
* @param requestParameters
|
|
25
29
|
*/
|
|
26
30
|
s3GetParamsCreate(requestParameters: S3GetParamsCreateRequestParams, extraHttpRequestParams?: any): Observable<S3UploadDto>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* List all configs for s3 upload.
|
|
34
|
+
*/
|
|
35
|
+
s3ListConfigsList(extraHttpRequestParams?: any): Observable<Array<S3ConfigDto>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* Retrieve config for s3 upload.
|
|
39
|
+
* @param requestParameters
|
|
40
|
+
*/
|
|
41
|
+
s3RetrieveConfigRetrieve(requestParameters: S3RetrieveConfigRetrieveRequestParams, extraHttpRequestParams?: any): Observable<S3ConfigDto>;
|
|
27
42
|
}
|
|
@@ -9791,6 +9791,82 @@ class S3ApiService extends BaseService {
|
|
|
9791
9791
|
reportProgress: reportProgress,
|
|
9792
9792
|
});
|
|
9793
9793
|
}
|
|
9794
|
+
s3ListConfigsList(observe = "body", reportProgress = false, options) {
|
|
9795
|
+
let localVarHeaders = this.defaultHeaders;
|
|
9796
|
+
// authentication (cookieAuth) required
|
|
9797
|
+
// authentication (jwtAuth) required
|
|
9798
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
9799
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
9800
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
9801
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
9802
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
9803
|
+
}
|
|
9804
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
9805
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
9806
|
+
let responseType_ = "json";
|
|
9807
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
9808
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
9809
|
+
responseType_ = "text";
|
|
9810
|
+
}
|
|
9811
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
9812
|
+
responseType_ = "json";
|
|
9813
|
+
}
|
|
9814
|
+
else {
|
|
9815
|
+
responseType_ = "blob";
|
|
9816
|
+
}
|
|
9817
|
+
}
|
|
9818
|
+
let localVarPath = `/api/v1/s3/list-configs/`;
|
|
9819
|
+
const { basePath, withCredentials } = this.configuration;
|
|
9820
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
9821
|
+
context: localVarHttpContext,
|
|
9822
|
+
responseType: responseType_,
|
|
9823
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
9824
|
+
headers: localVarHeaders,
|
|
9825
|
+
observe: observe,
|
|
9826
|
+
transferCache: localVarTransferCache,
|
|
9827
|
+
reportProgress: reportProgress,
|
|
9828
|
+
});
|
|
9829
|
+
}
|
|
9830
|
+
s3RetrieveConfigRetrieve(requestParameters, observe = "body", reportProgress = false, options) {
|
|
9831
|
+
const name = requestParameters?.name;
|
|
9832
|
+
if (name === null || name === undefined) {
|
|
9833
|
+
throw new Error("Required parameter name was null or undefined when calling s3RetrieveConfigRetrieve.");
|
|
9834
|
+
}
|
|
9835
|
+
let localVarHeaders = this.defaultHeaders;
|
|
9836
|
+
// authentication (cookieAuth) required
|
|
9837
|
+
// authentication (jwtAuth) required
|
|
9838
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
9839
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
9840
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
9841
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
9842
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
9843
|
+
}
|
|
9844
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
9845
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
9846
|
+
let responseType_ = "json";
|
|
9847
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
9848
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
9849
|
+
responseType_ = "text";
|
|
9850
|
+
}
|
|
9851
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
9852
|
+
responseType_ = "json";
|
|
9853
|
+
}
|
|
9854
|
+
else {
|
|
9855
|
+
responseType_ = "blob";
|
|
9856
|
+
}
|
|
9857
|
+
}
|
|
9858
|
+
let localVarPath = `/api/v1/s3/retrieve-config/${this.configuration.encodeParam({ name: "name", value: name, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
|
|
9859
|
+
const { basePath, withCredentials } = this.configuration;
|
|
9860
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
9861
|
+
context: localVarHttpContext,
|
|
9862
|
+
responseType: responseType_,
|
|
9863
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
9864
|
+
headers: localVarHeaders,
|
|
9865
|
+
observe: observe,
|
|
9866
|
+
transferCache: localVarTransferCache,
|
|
9867
|
+
reportProgress: reportProgress,
|
|
9868
|
+
});
|
|
9869
|
+
}
|
|
9794
9870
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: S3ApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9795
9871
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: S3ApiService, providedIn: "root" });
|
|
9796
9872
|
}
|
|
@@ -31197,6 +31273,16 @@ var RolesUpdatePermissionsNonFieldErrorsErrorComponentDtoCodeEnum;
|
|
|
31197
31273
|
RolesUpdatePermissionsNonFieldErrorsErrorComponentDtoCodeEnum["Required"] = "required";
|
|
31198
31274
|
})(RolesUpdatePermissionsNonFieldErrorsErrorComponentDtoCodeEnum || (RolesUpdatePermissionsNonFieldErrorsErrorComponentDtoCodeEnum = {}));
|
|
31199
31275
|
|
|
31276
|
+
/**
|
|
31277
|
+
* Delmar Api
|
|
31278
|
+
*
|
|
31279
|
+
*
|
|
31280
|
+
*
|
|
31281
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
31282
|
+
* https://openapi-generator.tech
|
|
31283
|
+
* Do not edit the class manually.
|
|
31284
|
+
*/
|
|
31285
|
+
|
|
31200
31286
|
/**
|
|
31201
31287
|
* Delmar Api
|
|
31202
31288
|
*
|
|
@@ -31801,26 +31887,6 @@ var ServerErrorEnumDto;
|
|
|
31801
31887
|
* Do not edit the class manually.
|
|
31802
31888
|
*/
|
|
31803
31889
|
|
|
31804
|
-
/**
|
|
31805
|
-
* Delmar Api
|
|
31806
|
-
*
|
|
31807
|
-
*
|
|
31808
|
-
*
|
|
31809
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
31810
|
-
* https://openapi-generator.tech
|
|
31811
|
-
* Do not edit the class manually.
|
|
31812
|
-
*/
|
|
31813
|
-
|
|
31814
|
-
/**
|
|
31815
|
-
* Delmar Api
|
|
31816
|
-
*
|
|
31817
|
-
*
|
|
31818
|
-
*
|
|
31819
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
31820
|
-
* https://openapi-generator.tech
|
|
31821
|
-
* Do not edit the class manually.
|
|
31822
|
-
*/
|
|
31823
|
-
|
|
31824
31890
|
/**
|
|
31825
31891
|
* Delmar Api
|
|
31826
31892
|
*
|