@provis/provis-common-be-module 3.0.6 → 3.0.7

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 (44) hide show
  1. package/dist/class/main.repository.js +4 -4
  2. package/dist/constants/claim/general.js +1 -1
  3. package/dist/constants/claim/kalog.js +1 -1
  4. package/dist/constants/claim/life.d.ts +2 -2
  5. package/dist/constants/claim/life.js +1 -1
  6. package/dist/constants/claim/loket.js +40 -40
  7. package/dist/constants/claim/motorVehicle.js +1 -1
  8. package/dist/constants/claim/travel.js +1 -1
  9. package/dist/constants/config.js +2 -2
  10. package/dist/constants/invoice/coa.js +5 -5
  11. package/dist/constants/product.js +14 -14
  12. package/dist/constants/source.js +1 -1
  13. package/dist/helpers/alphaNumericCleansing.js +1 -1
  14. package/dist/helpers/amountDescription.js +1 -1
  15. package/dist/helpers/axiosGet.js +1 -1
  16. package/dist/helpers/axiosPost.js +1 -1
  17. package/dist/helpers/axiosPut.js +1 -1
  18. package/dist/helpers/calculateByType.js +1 -1
  19. package/dist/helpers/calculateForNullable.js +6 -6
  20. package/dist/helpers/decimalAmount.js +4 -4
  21. package/dist/helpers/errorNotifier.js +2 -3
  22. package/dist/helpers/getHeaderUser.js +4 -4
  23. package/dist/helpers/index.d.ts +1 -2
  24. package/dist/helpers/index.js +1 -3
  25. package/dist/helpers/invoicePeriod.d.ts +11 -0
  26. package/dist/helpers/invoicePeriod.js +66 -0
  27. package/dist/helpers/loop.js +2 -2
  28. package/dist/helpers/loopBackward.js +2 -2
  29. package/dist/helpers/readExcel.d.ts +0 -2
  30. package/dist/interface/pub.interface.d.ts +8 -0
  31. package/dist/interface/pub.interface.js +2 -0
  32. package/package.json +1 -1
  33. package/dist/constants/bankAccount.d.ts +0 -8
  34. package/dist/constants/bankAccount.js +0 -54
  35. package/dist/constants/product/cargo.d.ts +0 -39
  36. package/dist/constants/product/cargo.js +0 -41
  37. package/dist/constants/product/coretax.d.ts +0 -12
  38. package/dist/constants/product/coretax.js +0 -14
  39. package/dist/constants/product/mv.d.ts +0 -30
  40. package/dist/constants/product/mv.js +0 -158
  41. package/dist/constants/product/property/occupation.d.ts +0 -5
  42. package/dist/constants/product/property/occupation.js +0 -1725
  43. package/dist/helpers/toHttpException.d.ts +0 -2
  44. package/dist/helpers/toHttpException.js +0 -12
@@ -1,2 +0,0 @@
1
- declare const _default: (err: any) => Error;
2
- export default _default;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const common_1 = require("@nestjs/common");
4
- // Error DB dilempar apa adanya supaya exception filter membalas 500 dan memanggil notifyError.
5
- // Cek pakai name (bukan instanceof) karena typeorm bisa ada lebih dari satu copy di node_modules.
6
- // UnauthorizedException (mis. token invalid) tetap 401.
7
- // Error lain tetap dijadikan 400 seperti sebelumnya.
8
- exports.default = (err) => {
9
- if ((err === null || err === void 0 ? void 0 : err.name) === "QueryFailedError" || err instanceof common_1.UnauthorizedException)
10
- return err;
11
- return new common_1.BadRequestException(err === null || err === void 0 ? void 0 : err.message);
12
- };