@deallony/shared 1.0.90 → 1.0.91

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,3 +1,4 @@
1
1
  export { ClassService, IObjectService } from './abstract/baseService';
2
2
  export { Converter, Converter as con } from './utils/converter';
3
+ export type { FilterParams } from './types/common/FilterParams';
3
4
  export * as TYPES from './types/index';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Base pagination/filter params shared across all paginated list services.
3
+ *
4
+ * The generic `TExtra` parameter allows each entity service to extend
5
+ * the base with domain-specific filter fields without losing type safety.
6
+ *
7
+ * @example
8
+ * // Basic usage (no domain-specific fields)
9
+ * type AdFilterParams = FilterParams;
10
+ *
11
+ * @example
12
+ * // With domain-specific extra fields
13
+ * type MotorFilterParams = FilterParams<{ make?: string; model?: string }>;
14
+ */
15
+ export type FilterParams<TExtra extends Record<string, unknown> = Record<string, never>> = {
16
+ search?: string;
17
+ id?: number;
18
+ status_id?: number;
19
+ page?: number;
20
+ limit?: number;
21
+ sort_field?: string;
22
+ sort_order?: 'asc' | 'desc';
23
+ bulk_status_id?: number;
24
+ bulk_ids?: number[];
25
+ } & TExtra;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ export * as Subject from "./common/Subject";
4
4
  export * as Status from "./common/Status";
5
5
  export * as AccessType from "./service/AccessType";
6
6
  export * as Config from "./common/Config";
7
+ export * as FilterParams from "./common/FilterParams";
7
8
  export * as Ad from "./ad/Ad";
8
9
  export * as AdLocation from "./ad/AdLocation";
9
10
  export * as AdPromotion from "./ad/AdPromotion";
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.SocialMediaPlatform = exports.Image = exports.Media = exports.NotificationToken = exports.MessageTemplate = exports.Device = exports.Chat = exports.AppStartScreen = exports.PotentialUser = exports.Wallet = exports.Permission = exports.Role = exports.User = exports.District = exports.City = exports.AdminBoundary = exports.WorkType = exports.UsedProductCondition = exports.UsedProductAge = exports.Unit = exports.Transmission = exports.RegionalSpec = exports.PublisherType = exports.PropertyStatus = exports.PriceType = exports.OfferType = exports.LicenseType = exports.FuelType = exports.Feature = exports.Facility = exports.Currency = exports.Color = exports.CategoryWorkType = exports.Category = exports.CarBody = exports.UsedProduct = exports.Service = exports.PropertySubType = exports.Property = exports.MotorTrim = exports.Motor = exports.AdPromotion = exports.AdLocation = exports.Ad = exports.Config = exports.AccessType = exports.Status = exports.Subject = exports.Response = exports.LocalizedName = void 0;
37
- exports.Analysis = exports.Google = exports.SocialMediaProfile = void 0;
36
+ exports.Image = exports.Media = exports.NotificationToken = exports.MessageTemplate = exports.Device = exports.Chat = exports.AppStartScreen = exports.PotentialUser = exports.Wallet = exports.Permission = exports.Role = exports.User = exports.District = exports.City = exports.AdminBoundary = exports.WorkType = exports.UsedProductCondition = exports.UsedProductAge = exports.Unit = exports.Transmission = exports.RegionalSpec = exports.PublisherType = exports.PropertyStatus = exports.PriceType = exports.OfferType = exports.LicenseType = exports.FuelType = exports.Feature = exports.Facility = exports.Currency = exports.Color = exports.CategoryWorkType = exports.Category = exports.CarBody = exports.UsedProduct = exports.Service = exports.PropertySubType = exports.Property = exports.MotorTrim = exports.Motor = exports.AdPromotion = exports.AdLocation = exports.Ad = exports.FilterParams = exports.Config = exports.AccessType = exports.Status = exports.Subject = exports.Response = exports.LocalizedName = void 0;
37
+ exports.Analysis = exports.Google = exports.SocialMediaProfile = exports.SocialMediaPlatform = void 0;
38
38
  // common
39
39
  exports.LocalizedName = __importStar(require("./common/LocalizedName"));
40
40
  exports.Response = __importStar(require("./common/Response"));
@@ -42,6 +42,7 @@ exports.Subject = __importStar(require("./common/Subject"));
42
42
  exports.Status = __importStar(require("./common/Status"));
43
43
  exports.AccessType = __importStar(require("./service/AccessType"));
44
44
  exports.Config = __importStar(require("./common/Config"));
45
+ exports.FilterParams = __importStar(require("./common/FilterParams"));
45
46
  // listings
46
47
  exports.Ad = __importStar(require("./ad/Ad"));
47
48
  exports.AdLocation = __importStar(require("./ad/AdLocation"));
@@ -0,0 +1 @@
1
+ export {};
@@ -5,6 +5,7 @@ export * as Subject from "./common/Subject";
5
5
  export * as Status from "./common/Status";
6
6
  export * as AccessType from "./service/AccessType";
7
7
  export * as Config from "./common/Config";
8
+ export * as FilterParams from "./common/FilterParams";
8
9
  // listings
9
10
  export * as Ad from "./ad/Ad";
10
11
  export * as AdLocation from "./ad/AdLocation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",