@mrxsys/mrx-core 2.11.0-1-and-280-20251103 → 2.11.0-1-and-283-20251112

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.
@@ -82,7 +82,7 @@ export declare class MSSQL extends TypedEventEmitter<MssqlEventMap> {
82
82
  * @returns The {@link Repository} for the specified table.
83
83
  */
84
84
  getRepository<TModel, TRepo extends Repository<TModel>>(tableName: string, customRepository: new (knex: Knex, table: Table) => TRepo): TRepo;
85
- getRepository<TModel = unknown>(tableName: string): Repository<TModel>;
85
+ getRepository<TModel = Record<string, unknown>>(tableName: string): Repository<TModel>;
86
86
  /**
87
87
  * Retrieves a table by name.
88
88
  *
@@ -352,7 +352,7 @@ export declare const find: <const TDatabase extends Omit<MSSQLDatabaseOptions, "
352
352
  response: {
353
353
  200: {
354
354
  message: "mrx-core.crud.success.find_response";
355
- content: unknown[];
355
+ content: Record<string, unknown>[];
356
356
  };
357
357
  };
358
358
  };
@@ -364,7 +364,7 @@ export declare const find: <const TDatabase extends Omit<MSSQLDatabaseOptions, "
364
364
  response: {
365
365
  200: {
366
366
  message: "mrx-core.crud.success.find_response";
367
- content: unknown[];
367
+ content: Record<string, unknown>[];
368
368
  };
369
369
  };
370
370
  };
@@ -376,7 +376,7 @@ export declare const find: <const TDatabase extends Omit<MSSQLDatabaseOptions, "
376
376
  response: {
377
377
  200: {
378
378
  message: "mrx-core.crud.success.find_response";
379
- content: unknown[];
379
+ content: Record<string, unknown>[];
380
380
  };
381
381
  };
382
382
  };
@@ -388,7 +388,7 @@ export declare const find: <const TDatabase extends Omit<MSSQLDatabaseOptions, "
388
388
  response: {
389
389
  200: {
390
390
  message: "mrx-core.crud.success.find_response";
391
- content: unknown[];
391
+ content: Record<string, unknown>[];
392
392
  };
393
393
  };
394
394
  };
@@ -400,7 +400,7 @@ export declare const find: <const TDatabase extends Omit<MSSQLDatabaseOptions, "
400
400
  response: {
401
401
  200: {
402
402
  message: "mrx-core.crud.success.find_response";
403
- content: unknown[];
403
+ content: Record<string, unknown>[];
404
404
  };
405
405
  };
406
406
  };
@@ -352,7 +352,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
352
352
  response: {
353
353
  200: {
354
354
  message: "mrx-core.crud.success.find_one_response";
355
- content: unknown[];
355
+ content: Record<string, unknown>[];
356
356
  };
357
357
  };
358
358
  };
@@ -364,7 +364,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
364
364
  response: {
365
365
  200: {
366
366
  message: "mrx-core.crud.success.find_one_response";
367
- content: unknown[];
367
+ content: Record<string, unknown>[];
368
368
  };
369
369
  };
370
370
  };
@@ -376,7 +376,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
376
376
  response: {
377
377
  200: {
378
378
  message: "mrx-core.crud.success.find_one_response";
379
- content: unknown[];
379
+ content: Record<string, unknown>[];
380
380
  };
381
381
  };
382
382
  };
@@ -388,7 +388,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
388
388
  response: {
389
389
  200: {
390
390
  message: "mrx-core.crud.success.find_one_response";
391
- content: unknown[];
391
+ content: Record<string, unknown>[];
392
392
  };
393
393
  };
394
394
  };
@@ -400,7 +400,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
400
400
  response: {
401
401
  200: {
402
402
  message: "mrx-core.crud.success.find_one_response";
403
- content: unknown[];
403
+ content: Record<string, unknown>[];
404
404
  };
405
405
  };
406
406
  };
@@ -352,9 +352,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
352
352
  response: {
353
353
  200: {
354
354
  message: "mrx-core.crud.success.update_response";
355
- content: {
356
- [x: string]: /*elided*/ any;
357
- }[];
355
+ content: Record<string, unknown>[];
358
356
  };
359
357
  };
360
358
  };
@@ -366,9 +364,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
366
364
  response: {
367
365
  200: {
368
366
  message: "mrx-core.crud.success.update_response";
369
- content: {
370
- [x: string]: /*elided*/ any;
371
- }[];
367
+ content: Record<string, unknown>[];
372
368
  };
373
369
  };
374
370
  };
@@ -380,9 +376,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
380
376
  response: {
381
377
  200: {
382
378
  message: "mrx-core.crud.success.update_response";
383
- content: {
384
- [x: string]: /*elided*/ any;
385
- }[];
379
+ content: Record<string, unknown>[];
386
380
  };
387
381
  };
388
382
  };
@@ -394,9 +388,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
394
388
  response: {
395
389
  200: {
396
390
  message: "mrx-core.crud.success.update_response";
397
- content: {
398
- [x: string]: /*elided*/ any;
399
- }[];
391
+ content: Record<string, unknown>[];
400
392
  };
401
393
  };
402
394
  };
@@ -408,9 +400,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
408
400
  response: {
409
401
  200: {
410
402
  message: "mrx-core.crud.success.update_response";
411
- content: {
412
- [x: string]: /*elided*/ any;
413
- }[];
403
+ content: Record<string, unknown>[];
414
404
  };
415
405
  };
416
406
  };
@@ -352,9 +352,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
352
352
  response: {
353
353
  200: {
354
354
  message: "mrx-core.crud.success.update_one_response";
355
- content: {
356
- [x: string]: /*elided*/ any;
357
- }[];
355
+ content: Record<string, unknown>[];
358
356
  };
359
357
  };
360
358
  };
@@ -366,9 +364,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
366
364
  response: {
367
365
  200: {
368
366
  message: "mrx-core.crud.success.update_one_response";
369
- content: {
370
- [x: string]: /*elided*/ any;
371
- }[];
367
+ content: Record<string, unknown>[];
372
368
  };
373
369
  };
374
370
  };
@@ -380,9 +376,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
380
376
  response: {
381
377
  200: {
382
378
  message: "mrx-core.crud.success.update_one_response";
383
- content: {
384
- [x: string]: /*elided*/ any;
385
- }[];
379
+ content: Record<string, unknown>[];
386
380
  };
387
381
  };
388
382
  };
@@ -394,9 +388,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
394
388
  response: {
395
389
  200: {
396
390
  message: "mrx-core.crud.success.update_one_response";
397
- content: {
398
- [x: string]: /*elided*/ any;
399
- }[];
391
+ content: Record<string, unknown>[];
400
392
  };
401
393
  };
402
394
  };
@@ -408,9 +400,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
408
400
  response: {
409
401
  200: {
410
402
  message: "mrx-core.crud.success.update_one_response";
411
- content: {
412
- [x: string]: /*elided*/ any;
413
- }[];
403
+ content: Record<string, unknown>[];
414
404
  };
415
405
  };
416
406
  };
@@ -17,7 +17,7 @@ import type { QueryOptionsExtendStream } from './types/query-options-extend-stre
17
17
  * const users = await repo.find({ limit: 10 });
18
18
  * ```
19
19
  */
20
- export declare class Repository<TModel = unknown> {
20
+ export declare class Repository<TModel = Record<string, unknown>> {
21
21
  /**
22
22
  * The Knex instance used for database operations.
23
23
  */
@@ -124,7 +124,7 @@ export declare class Repository<TModel = unknown> {
124
124
  * });
125
125
  * ```
126
126
  */
127
- findStream<KModel extends TModel = NoInfer<TModel>>(options?: QueryOptionsExtendStream<KModel>): StreamWithAsyncIterable<KModel>;
127
+ findStream<KModel extends TModel = TModel>(options?: QueryOptionsExtendStream<KModel>): StreamWithAsyncIterable<KModel>;
128
128
  /**
129
129
  * Finds records in the database based on the specified query options and returns the results
130
130
  * as an array. This method supports comprehensive filtering, pagination, field selection, and sorting
@@ -191,7 +191,7 @@ export declare class Repository<TModel = unknown> {
191
191
  * });
192
192
  * ```
193
193
  */
194
- find<KModel extends TModel = NoInfer<TModel>>(options?: QueryOptionsExtendPagination<KModel>): Promise<KModel[]>;
194
+ find<KModel extends TModel = TModel>(options?: QueryOptionsExtendPagination<KModel>): Promise<KModel[]>;
195
195
  /**
196
196
  * Counts the number of records in the database based on the specified query options.
197
197
  * This method supports advanced filtering capabilities to count records that match specific criteria.
@@ -228,7 +228,7 @@ export declare class Repository<TModel = unknown> {
228
228
  * });
229
229
  * ```
230
230
  */
231
- count<KModel extends TModel = NoInfer<TModel>>(options?: Omit<QueryOptions<KModel>, 'selectedFields' | 'orderBy'>): Promise<number>;
231
+ count<KModel extends TModel = TModel>(options?: Omit<QueryOptions<KModel>, 'selectedFields' | 'orderBy'>): Promise<number>;
232
232
  /**
233
233
  * Inserts new records into the database and returns the inserted records.
234
234
  * This method supports bulk insertion of multiple records at once.
@@ -265,7 +265,7 @@ export declare class Repository<TModel = unknown> {
265
265
  * });
266
266
  * ```
267
267
  */
268
- insert<KModel extends TModel = NoInfer<TModel>>(data: Partial<KModel> | Partial<KModel>[], options?: Omit<QueryOptions<KModel>, 'filters' | 'orderBy'>): Promise<KModel[]>;
268
+ insert<KModel extends TModel = TModel>(data: Partial<NoInfer<KModel>> | Partial<NoInfer<KModel>>[], options?: Omit<QueryOptions<KModel>, 'filters' | 'orderBy'>): Promise<KModel[]>;
269
269
  /**
270
270
  * Updates existing records in the database based on the specified query options and returns the updated records.
271
271
  * This method supports advanced filtering capabilities to update records that match specific criteria.
@@ -304,7 +304,7 @@ export declare class Repository<TModel = unknown> {
304
304
  * });
305
305
  * ```
306
306
  */
307
- update<KModel extends TModel = NoInfer<TModel>>(data: Partial<KModel>, options: Omit<QueryOptions<KModel>, 'orderBy' | 'filters'> & Required<Pick<QueryOptions<KModel>, 'filters'>>): Promise<KModel[]>;
307
+ update<KModel extends TModel = TModel>(data: Partial<NoInfer<KModel>>, options: Omit<QueryOptions<KModel>, 'orderBy' | 'filters'> & Required<Pick<QueryOptions<KModel>, 'filters'>>): Promise<KModel[]>;
308
308
  /**
309
309
  * Deletes records from the database based on the specified query options and returns the deleted records.
310
310
  * This method supports advanced filtering capabilities to filter the records before deletion.
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@mrxsys/mrx-core",
3
- "version": "2.11.0-1-and-280-20251103",
3
+ "version": "2.11.0-1-and-283-20251112",
4
4
  "author": "Ruby",
5
5
  "devDependencies": {
6
6
  "@eslint/js": "^9.38.0",
7
7
  "@sinclair/typebox": "0.34.41",
8
8
  "@stylistic/eslint-plugin": "^5.5.0",
9
- "@types/bun": "^1.3.1",
9
+ "@types/bun": "^1.3.2",
10
10
  "@types/nodemailer": "^7.0.3",
11
11
  "elysia": "1.4.15",
12
12
  "eslint": "^9.38.0",
13
13
  "globals": "^16.4.0",
14
14
  "ioredis": "^5.8.2",
15
- "jose": "^6.1.0",
15
+ "jose": "^6.1.1",
16
16
  "knex": "^3.1.0",
17
- "mssql": "^12.0.0",
17
+ "mssql": "^12.1.0",
18
18
  "nodemailer": "^7.0.10",
19
- "typescript-eslint": "^8.46.2"
19
+ "typescript-eslint": "^8.46.4"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@sinclair/typebox": "0.34.41",
23
23
  "elysia": "^1.4.15",
24
24
  "ioredis": "^5.8.2",
25
- "jose": "^6.1.0",
26
- "mssql": "^12.0.0",
25
+ "jose": "^6.1.1",
26
+ "mssql": "^12.1.0",
27
27
  "knex": "^3.1.0",
28
- "nodemailer": "^7.0.9",
28
+ "nodemailer": "^7.0.10",
29
29
  "typescript": "^5.9.3"
30
30
  },
31
31
  "exports": {