@deallony/shared 1.1.84 → 1.1.85

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.
@@ -1,19 +1,3 @@
1
- export declare abstract class ClassService<TItem = unknown, TId = number> {
2
- findOne?(options?: any): Promise<TItem | null>;
3
- findAll?(options?: any): Promise<TItem[]>;
4
- findById?(id: TId): Promise<TItem | null>;
5
- findPaginated?(): Promise<{
6
- values: TItem[];
7
- total: number;
8
- page: number;
9
- limit: number;
10
- totalPages?: number;
11
- [x: string]: any;
12
- }>;
13
- save?(item: Partial<TItem>): Promise<TItem>;
14
- delete?(id: TId): Promise<void>;
15
- deleteBulk?(ids: TId[]): Promise<void>;
16
- }
17
1
  export type IObjectService<TItem = unknown> = {
18
2
  findOne: (id: number) => Promise<TItem | null>;
19
3
  [key: string]: any;
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
+ // export abstract class ClassService<TItem = unknown, TId = number> {
3
+ // findOne?(options?: any): Promise<TItem | null>;
4
+ // findAll?(options?: any): Promise<TItem[]>;
5
+ // findById?(id: TId): Promise<TItem | null>;
6
+ // findPaginated?(): Promise<{ values: TItem[]; total: number; page: number; limit: number, totalPages?: number, [x: string]: any }>;
7
+ // save?(item: Partial<TItem>): Promise<TItem>;
8
+ // delete?(id: TId): Promise<void>;
9
+ // deleteBulk?(ids: TId[]): Promise<void>;
10
+ // }
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClassService = void 0;
4
- class ClassService {
5
- }
6
- exports.ClassService = ClassService;
@@ -3,6 +3,6 @@ export * as CONSTANTS from './constants/index';
3
3
  export * as DTO from './dto/index';
4
4
  export * as SCHEMA from './schema/index';
5
5
  export * as ABSTRACT from './abstract';
6
- export { ClassService, IObjectService } from './abstract/baseService';
6
+ export { IObjectService } from './abstract/baseService';
7
7
  export * as UTILS from './utils';
8
8
  export type { FilterParams } from './types/common/FilterParams';
package/dist/cjs/index.js CHANGED
@@ -39,7 +39,7 @@ var __importStar = (this && this.__importStar) || (function () {
39
39
  };
40
40
  })();
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.UTILS = exports.ClassService = exports.ABSTRACT = exports.SCHEMA = exports.DTO = exports.CONSTANTS = exports.TYPES = void 0;
42
+ exports.UTILS = exports.ABSTRACT = exports.SCHEMA = exports.DTO = exports.CONSTANTS = exports.TYPES = void 0;
43
43
  exports.TYPES = __importStar(require("./types/index"));
44
44
  // CONSTANTS
45
45
  // Contains static values that never change at runtime.
@@ -75,8 +75,6 @@ exports.SCHEMA = __importStar(require("./schema/index"));
75
75
  // abstract findById(id: number): Promise<any>;
76
76
  // }
77
77
  exports.ABSTRACT = __importStar(require("./abstract"));
78
- var baseService_1 = require("./abstract/baseService");
79
- Object.defineProperty(exports, "ClassService", { enumerable: true, get: function () { return baseService_1.ClassService; } });
80
78
  // UTILS
81
79
  // Contains pure helper functions with no side effects.
82
80
  // Reusable logic across the application.
@@ -1,2 +1,10 @@
1
- export class ClassService {
2
- }
1
+ // export abstract class ClassService<TItem = unknown, TId = number> {
2
+ // findOne?(options?: any): Promise<TItem | null>;
3
+ // findAll?(options?: any): Promise<TItem[]>;
4
+ // findById?(id: TId): Promise<TItem | null>;
5
+ // findPaginated?(): Promise<{ values: TItem[]; total: number; page: number; limit: number, totalPages?: number, [x: string]: any }>;
6
+ // save?(item: Partial<TItem>): Promise<TItem>;
7
+ // delete?(id: TId): Promise<void>;
8
+ // deleteBulk?(ids: TId[]): Promise<void>;
9
+ // }
10
+ export {};
package/dist/esm/index.js CHANGED
@@ -39,7 +39,6 @@ export * as SCHEMA from './schema/index.js';
39
39
  // abstract findById(id: number): Promise<any>;
40
40
  // }
41
41
  export * as ABSTRACT from './abstract/index.js';
42
- export { ClassService } from './abstract/baseService.js';
43
42
  // UTILS
44
43
  // Contains pure helper functions with no side effects.
45
44
  // Reusable logic across the application.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.1.84",
3
+ "version": "1.1.85",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",