@saritasa/crm-delmar-core-sdk 0.0.99 → 0.0.101
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/export-users-api.serviceInterface.d.ts +2 -0
- package/api/notifications-api.service.d.ts +22 -1
- package/api/notifications-api.serviceInterface.d.ts +9 -0
- package/esm2022/api/export-users-api.service.mjs +9 -1
- package/esm2022/api/export-users-api.serviceInterface.mjs +1 -1
- package/esm2022/api/notifications-api.service.mjs +58 -1
- package/esm2022/api/notifications-api.serviceInterface.mjs +1 -1
- package/esm2022/model/models.mjs +3 -1
- package/esm2022/model/notification.dto.mjs +1 -1
- package/esm2022/model/notifications-destroy-error-response400.dto.mjs +2 -0
- package/esm2022/model/notify-data-department.dto.mjs +11 -0
- package/esm2022/model/notify-data-notification-payload.dto.mjs +1 -1
- package/esm2022/model/notify-data-user-period-payload.dto.mjs +1 -1
- package/esm2022/model/notify-data-user-period.dto.mjs +1 -1
- package/esm2022/model/notify-data-user.dto.mjs +1 -10
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +65 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/models.d.ts +2 -0
- package/model/notification.dto.d.ts +1 -0
- package/model/notifications-destroy-error-response400.dto.d.ts +15 -0
- package/model/notify-data-department.dto.d.ts +19 -0
- package/model/notify-data-notification-payload.dto.d.ts +1 -0
- package/model/notify-data-user-period-payload.dto.d.ts +1 -0
- package/model/notify-data-user-period.dto.d.ts +1 -1
- package/model/notify-data-user.dto.d.ts +2 -0
- package/package.json +2 -2
|
@@ -2297,8 +2297,10 @@ class ExportUsersApiService {
|
|
|
2297
2297
|
const departmentIn = requestParameters?.departmentIn;
|
|
2298
2298
|
const id = requestParameters?.id;
|
|
2299
2299
|
const idIn = requestParameters?.idIn;
|
|
2300
|
+
const ordering = requestParameters?.ordering;
|
|
2300
2301
|
const role = requestParameters?.role;
|
|
2301
2302
|
const roleIn = requestParameters?.roleIn;
|
|
2303
|
+
const search = requestParameters?.search;
|
|
2302
2304
|
const status = requestParameters?.status;
|
|
2303
2305
|
const statusIn = requestParameters?.statusIn;
|
|
2304
2306
|
const superviseesIdIn = requestParameters?.superviseesIdIn;
|
|
@@ -2324,12 +2326,18 @@ class ExportUsersApiService {
|
|
|
2324
2326
|
if (idIn) {
|
|
2325
2327
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...idIn].join(COLLECTION_FORMATS["csv"]), "id__in");
|
|
2326
2328
|
}
|
|
2329
|
+
if (ordering !== undefined && ordering !== null) {
|
|
2330
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, ordering, "ordering");
|
|
2331
|
+
}
|
|
2327
2332
|
if (role !== undefined && role !== null) {
|
|
2328
2333
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, role, "role");
|
|
2329
2334
|
}
|
|
2330
2335
|
if (roleIn) {
|
|
2331
2336
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, [...roleIn].join(COLLECTION_FORMATS["csv"]), "role__in");
|
|
2332
2337
|
}
|
|
2338
|
+
if (search !== undefined && search !== null) {
|
|
2339
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, search, "search");
|
|
2340
|
+
}
|
|
2333
2341
|
if (status !== undefined && status !== null) {
|
|
2334
2342
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, "status");
|
|
2335
2343
|
}
|
|
@@ -3987,6 +3995,63 @@ class NotificationsApiService {
|
|
|
3987
3995
|
reportProgress: reportProgress,
|
|
3988
3996
|
});
|
|
3989
3997
|
}
|
|
3998
|
+
notificationsDestroy(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3999
|
+
const id = requestParameters?.id;
|
|
4000
|
+
if (id === null || id === undefined) {
|
|
4001
|
+
throw new Error("Required parameter id was null or undefined when calling notificationsDestroy.");
|
|
4002
|
+
}
|
|
4003
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4004
|
+
let localVarCredential;
|
|
4005
|
+
// authentication (cookieAuth) required
|
|
4006
|
+
localVarCredential = this.configuration.lookupCredential("cookieAuth");
|
|
4007
|
+
if (localVarCredential) {
|
|
4008
|
+
}
|
|
4009
|
+
// authentication (jwtAuth) required
|
|
4010
|
+
localVarCredential = this.configuration.lookupCredential("jwtAuth");
|
|
4011
|
+
if (localVarCredential) {
|
|
4012
|
+
localVarHeaders = localVarHeaders.set("Authorization", "Bearer " + localVarCredential);
|
|
4013
|
+
}
|
|
4014
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
4015
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
4016
|
+
// to determine the Accept header
|
|
4017
|
+
const httpHeaderAccepts = ["application/json"];
|
|
4018
|
+
localVarHttpHeaderAcceptSelected =
|
|
4019
|
+
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
4020
|
+
}
|
|
4021
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4022
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4023
|
+
}
|
|
4024
|
+
let localVarHttpContext = options && options.context;
|
|
4025
|
+
if (localVarHttpContext === undefined) {
|
|
4026
|
+
localVarHttpContext = new HttpContext();
|
|
4027
|
+
}
|
|
4028
|
+
let localVarTransferCache = options && options.transferCache;
|
|
4029
|
+
if (localVarTransferCache === undefined) {
|
|
4030
|
+
localVarTransferCache = true;
|
|
4031
|
+
}
|
|
4032
|
+
let responseType_ = "json";
|
|
4033
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4034
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4035
|
+
responseType_ = "text";
|
|
4036
|
+
}
|
|
4037
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4038
|
+
responseType_ = "json";
|
|
4039
|
+
}
|
|
4040
|
+
else {
|
|
4041
|
+
responseType_ = "blob";
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
let localVarPath = `/api/v1/notifications/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/`;
|
|
4045
|
+
return this.httpClient.request("delete", `${this.configuration.basePath}${localVarPath}`, {
|
|
4046
|
+
context: localVarHttpContext,
|
|
4047
|
+
responseType: responseType_,
|
|
4048
|
+
withCredentials: this.configuration.withCredentials,
|
|
4049
|
+
headers: localVarHeaders,
|
|
4050
|
+
observe: observe,
|
|
4051
|
+
transferCache: localVarTransferCache,
|
|
4052
|
+
reportProgress: reportProgress,
|
|
4053
|
+
});
|
|
4054
|
+
}
|
|
3990
4055
|
notificationsList(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3991
4056
|
const createdGt = requestParameters?.createdGt;
|
|
3992
4057
|
const createdGte = requestParameters?.createdGte;
|