@saritasa/crm-delmar-core-sdk 0.1.33 → 0.1.34
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
|
@@ -30,6 +30,26 @@ export declare class MonthClosuresApiService extends BaseService implements Mont
|
|
|
30
30
|
context?: HttpContext;
|
|
31
31
|
transferCache?: boolean;
|
|
32
32
|
}): Observable<HttpEvent<MonthClosureDto>>;
|
|
33
|
+
/**
|
|
34
|
+
* Get latest closed month.
|
|
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
|
+
monthClosuresLatestRetrieve(observe?: "body", reportProgress?: boolean, options?: {
|
|
39
|
+
httpHeaderAccept?: "application/json";
|
|
40
|
+
context?: HttpContext;
|
|
41
|
+
transferCache?: boolean;
|
|
42
|
+
}): Observable<MonthClosureDto>;
|
|
43
|
+
monthClosuresLatestRetrieve(observe?: "response", reportProgress?: boolean, options?: {
|
|
44
|
+
httpHeaderAccept?: "application/json";
|
|
45
|
+
context?: HttpContext;
|
|
46
|
+
transferCache?: boolean;
|
|
47
|
+
}): Observable<HttpResponse<MonthClosureDto>>;
|
|
48
|
+
monthClosuresLatestRetrieve(observe?: "events", reportProgress?: boolean, options?: {
|
|
49
|
+
httpHeaderAccept?: "application/json";
|
|
50
|
+
context?: HttpContext;
|
|
51
|
+
transferCache?: boolean;
|
|
52
|
+
}): Observable<HttpEvent<MonthClosureDto>>;
|
|
33
53
|
/**
|
|
34
54
|
* View set api for `MonthClosure` model.
|
|
35
55
|
* @param requestParameters
|
|
@@ -40,6 +40,11 @@ export interface MonthClosuresApiServiceInterface {
|
|
|
40
40
|
* @param requestParameters
|
|
41
41
|
*/
|
|
42
42
|
monthClosuresCreate(requestParameters: MonthClosuresCreateRequestParams, extraHttpRequestParams?: any): Observable<MonthClosureDto>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* Get latest closed month.
|
|
46
|
+
*/
|
|
47
|
+
monthClosuresLatestRetrieve(extraHttpRequestParams?: any): Observable<MonthClosureDto>;
|
|
43
48
|
/**
|
|
44
49
|
*
|
|
45
50
|
* View set api for `MonthClosure` model.
|
|
@@ -10171,6 +10171,42 @@ class MonthClosuresApiService extends BaseService {
|
|
|
10171
10171
|
reportProgress: reportProgress,
|
|
10172
10172
|
});
|
|
10173
10173
|
}
|
|
10174
|
+
monthClosuresLatestRetrieve(observe = "body", reportProgress = false, options) {
|
|
10175
|
+
let localVarHeaders = this.defaultHeaders;
|
|
10176
|
+
// authentication (cookieAuth) required
|
|
10177
|
+
// authentication (jwtAuth) required
|
|
10178
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("jwtAuth", "Authorization", localVarHeaders, "Bearer ");
|
|
10179
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
10180
|
+
this.configuration.selectHeaderAccept(["application/json"]);
|
|
10181
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
10182
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
10183
|
+
}
|
|
10184
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
10185
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
10186
|
+
let responseType_ = "json";
|
|
10187
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
10188
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
10189
|
+
responseType_ = "text";
|
|
10190
|
+
}
|
|
10191
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
10192
|
+
responseType_ = "json";
|
|
10193
|
+
}
|
|
10194
|
+
else {
|
|
10195
|
+
responseType_ = "blob";
|
|
10196
|
+
}
|
|
10197
|
+
}
|
|
10198
|
+
let localVarPath = `/api/v1/month-closures/latest/`;
|
|
10199
|
+
const { basePath, withCredentials } = this.configuration;
|
|
10200
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
10201
|
+
context: localVarHttpContext,
|
|
10202
|
+
responseType: responseType_,
|
|
10203
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
10204
|
+
headers: localVarHeaders,
|
|
10205
|
+
observe: observe,
|
|
10206
|
+
transferCache: localVarTransferCache,
|
|
10207
|
+
reportProgress: reportProgress,
|
|
10208
|
+
});
|
|
10209
|
+
}
|
|
10174
10210
|
monthClosuresList(requestParameters, observe = "body", reportProgress = false, options) {
|
|
10175
10211
|
const id = requestParameters?.id;
|
|
10176
10212
|
const idIn = requestParameters?.idIn;
|