@ipetsadmin/contracts 1.0.0 → 1.0.1

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/CHANGELOG.md CHANGED
@@ -19,6 +19,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
 
20
20
  ### Security
21
21
 
22
+ ## [1.0.1] - 2026-04-02
23
+
24
+ ### Fixed
25
+
26
+ - **Error exports from the package entry** (`src/index.ts`): replaced `export * from '@/errors/...'` with explicit
27
+ `export { default as … } from '@/errors/…'` so each error class’s **default** export is re-exported as a **named**
28
+ symbol from `@ipetsadmin/contracts`. `export *` does not re-export `default`, which broke consistent imports for
29
+ consumers.
30
+ - **Public error API**: `ServerError` and `UnauthorizedError` are now exported from the package entry alongside the
31
+ other error classes.
32
+
22
33
  ## [1.0.0] - 2026-04-02
23
34
 
24
35
  ### Added
package/dist/index.d.ts CHANGED
@@ -3,8 +3,10 @@ export * from './interfaces/general/IPaginatedResponse';
3
3
  export * from './interfaces/general/IServerInit';
4
4
  export * from './interfaces/general/IApiResponse';
5
5
  export * from './enums/errors';
6
- export * from './errors/BaseError';
7
- export * from './errors/BusinessError';
8
- export * from './errors/ForbiddenError';
9
- export * from './errors/NotFoundError';
6
+ export { default as BaseError } from './errors/BaseError';
7
+ export { default as BusinessError } from './errors/BusinessError';
8
+ export { default as ForbiddenError } from './errors/ForbiddenError';
9
+ export { default as NotFoundError } from './errors/NotFoundError';
10
+ export { default as ServerError } from './errors/ServerError';
11
+ export { default as UnauthorizedError } from './errors/UnauthorizedError';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,gBAAgB,CAAC;AAG/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
package/dist/index.js CHANGED
@@ -13,14 +13,26 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
16
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.UnauthorizedError = exports.ServerError = exports.NotFoundError = exports.ForbiddenError = exports.BusinessError = exports.BaseError = void 0;
17
21
  __exportStar(require("./interfaces/general/IConfig"), exports);
18
22
  __exportStar(require("./interfaces/general/IPaginatedResponse"), exports);
19
23
  __exportStar(require("./interfaces/general/IServerInit"), exports);
20
24
  __exportStar(require("./interfaces/general/IApiResponse"), exports);
21
25
  __exportStar(require("./enums/errors"), exports);
22
- __exportStar(require("./errors/BaseError"), exports);
23
- __exportStar(require("./errors/BusinessError"), exports);
24
- __exportStar(require("./errors/ForbiddenError"), exports);
25
- __exportStar(require("./errors/NotFoundError"), exports);
26
+ var BaseError_1 = require("./errors/BaseError");
27
+ Object.defineProperty(exports, "BaseError", { enumerable: true, get: function () { return __importDefault(BaseError_1).default; } });
28
+ var BusinessError_1 = require("./errors/BusinessError");
29
+ Object.defineProperty(exports, "BusinessError", { enumerable: true, get: function () { return __importDefault(BusinessError_1).default; } });
30
+ var ForbiddenError_1 = require("./errors/ForbiddenError");
31
+ Object.defineProperty(exports, "ForbiddenError", { enumerable: true, get: function () { return __importDefault(ForbiddenError_1).default; } });
32
+ var NotFoundError_1 = require("./errors/NotFoundError");
33
+ Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return __importDefault(NotFoundError_1).default; } });
34
+ var ServerError_1 = require("./errors/ServerError");
35
+ Object.defineProperty(exports, "ServerError", { enumerable: true, get: function () { return __importDefault(ServerError_1).default; } });
36
+ var UnauthorizedError_1 = require("./errors/UnauthorizedError");
37
+ Object.defineProperty(exports, "UnauthorizedError", { enumerable: true, get: function () { return __importDefault(UnauthorizedError_1).default; } });
26
38
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,+DAA6C;AAC7C,0EAAwD;AACxD,mEAAiD;AACjD,oEAAkD;AAGlD,iDAA+B;AAG/B,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAMA,+DAA6C;AAC7C,0EAAwD;AACxD,mEAAiD;AACjD,oEAAkD;AAGlD,iDAA+B;AAG/B,gDAA0D;AAAjD,uHAAA,OAAO,OAAa;AAC7B,wDAAkE;AAAzD,+HAAA,OAAO,OAAiB;AACjC,0DAAoE;AAA3D,iIAAA,OAAO,OAAkB;AAClC,wDAAkE;AAAzD,+HAAA,OAAO,OAAiB;AACjC,oDAA8D;AAArD,2HAAA,OAAO,OAAe;AAC/B,gEAA0E;AAAjE,uIAAA,OAAO,OAAqB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ipetsadmin/contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared types, enums, and interfaces for Truffa projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",