@saritasa/crm-delmar-core-sdk 0.0.98 → 0.0.100

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.
Files changed (29) hide show
  1. package/README.md +2 -2
  2. package/api/export-users-api.serviceInterface.d.ts +2 -0
  3. package/api/notifications-api.service.d.ts +22 -1
  4. package/api/notifications-api.serviceInterface.d.ts +9 -0
  5. package/esm2022/api/export-users-api.service.mjs +9 -1
  6. package/esm2022/api/export-users-api.serviceInterface.mjs +1 -1
  7. package/esm2022/api/notifications-api.service.mjs +58 -1
  8. package/esm2022/api/notifications-api.serviceInterface.mjs +1 -1
  9. package/esm2022/model/file-format-enum.dto.mjs +3 -2
  10. package/esm2022/model/models.mjs +3 -1
  11. package/esm2022/model/notification.dto.mjs +1 -1
  12. package/esm2022/model/notifications-destroy-error-response400.dto.mjs +2 -0
  13. package/esm2022/model/notify-data-department.dto.mjs +11 -0
  14. package/esm2022/model/notify-data-notification-payload.dto.mjs +1 -1
  15. package/esm2022/model/notify-data-user-period-payload.dto.mjs +1 -1
  16. package/esm2022/model/notify-data-user-period.dto.mjs +1 -1
  17. package/esm2022/model/notify-data-user.dto.mjs +1 -10
  18. package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +67 -1
  19. package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
  20. package/model/file-format-enum.dto.d.ts +2 -1
  21. package/model/models.d.ts +2 -0
  22. package/model/notification.dto.d.ts +1 -0
  23. package/model/notifications-destroy-error-response400.dto.d.ts +15 -0
  24. package/model/notify-data-department.dto.d.ts +19 -0
  25. package/model/notify-data-notification-payload.dto.d.ts +1 -0
  26. package/model/notify-data-user-period-payload.dto.d.ts +1 -0
  27. package/model/notify-data-user-period.dto.d.ts +1 -1
  28. package/model/notify-data-user.dto.d.ts +2 -0
  29. 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;
@@ -12644,11 +12709,12 @@ var ExportUsersStartCreateNonFieldErrorsErrorComponentDtoCodeEnum;
12644
12709
  * Do not edit the class manually.
12645
12710
  */
12646
12711
  /**
12647
- * * `csv` - csv * `xlsx` - xlsx
12712
+ * * `csv` - csv * `xls` - xls * `xlsx` - xlsx
12648
12713
  */
12649
12714
  var FileFormatEnumDto;
12650
12715
  (function (FileFormatEnumDto) {
12651
12716
  FileFormatEnumDto["Csv"] = "csv";
12717
+ FileFormatEnumDto["Xls"] = "xls";
12652
12718
  FileFormatEnumDto["Xlsx"] = "xlsx";
12653
12719
  })(FileFormatEnumDto || (FileFormatEnumDto = {}));
12654
12720