orange-orm 3.10.2 → 3.10.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-orm",
3
- "version": "3.10.2",
3
+ "version": "3.10.3",
4
4
  "main": "./src/index.js",
5
5
  "browser": "./src/client/index.mjs",
6
6
  "bin": {
@@ -53,14 +53,17 @@ export interface ${Name}Table {
53
53
  getOne(${name}: ${Name}, fetchingStrategy: ${Name}Strategy): Promise<${Name}Row>;
54
54
  getById(${getIdArgs(table)}): Promise<${Name}Row>;
55
55
  getById(${getIdArgs(table)}, fetchingStrategy: ${Name}Strategy): Promise<${Name}Row>;
56
+
56
57
  update(${name}s: ${Name}[]): Promise<${Name}Array>;
57
- updateChanges(${name}s: ${Name}[], old${name}s: ${Name}[]): Promise<${Name}Array>;
58
58
  update(${name}s: ${Name}[], fetchingStrategy: ${Name}Strategy): Promise<${Name}Array>;
59
- updateChanges(${name}s: ${Name}[],old${name}s: ${Name}[], fetchingStrategy: ${Name}Strategy): Promise<${Name}Array>;
60
59
  update(${name}: ${Name}): Promise<${Name}Row>;
61
- updateChanges(${name}: ${Name}, old${name}: ${Name}): Promise<${Name}Row>;
62
60
  update(${name}: ${Name}, fetchingStrategy: ${Name}Strategy): Promise<${Name}Row>;
63
- updateChanges(${name}: ${Name},${name}: ${Name}, fetchingStrategy: ${Name}Strategy): Promise<${Name}Row>;
61
+
62
+ updateChanges(${name}s: ${Name}[], old${name}s: ${Name}[]): Promise<${Name}Array>;
63
+ updateChanges(${name}s: ${Name}[],old${name}s: ${Name}[], fetchingStrategy: ${Name}Strategy): Promise<${Name}Array>;
64
+ updateChanges(${name}: ${Name}, old${name}: ${Name}): Promise<${Name}Row>;
65
+ updateChanges(${name}: ${Name},old${name}: ${Name}, fetchingStrategy: ${Name}Strategy): Promise<${Name}Row>;
66
+
64
67
  insert(${name}s: ${Name}[]): Promise<${Name}Array>;
65
68
  insert(${name}s: ${Name}[], fetchingStrategy: ${Name}Strategy): Promise<${Name}Array>;
66
69
  insert(${name}: ${Name}): Promise<${Name}Row>;
@@ -82,11 +85,6 @@ export interface ${Name}Table {
82
85
  ${_tableRelations}
83
86
  }
84
87
 
85
- export interface ${Name}TableBase {
86
- ${_columns}
87
- ${_tableRelations}
88
- }
89
-
90
88
  export interface ${Name}ExpressConfig {
91
89
  baseFilter?: RawFilter | ((context: ExpressContext) => RawFilter | Promise<RawFilter>);
92
90
  customFilters?: Record<string, (context: ExpressContext,...args: any[]) => RawFilter | Promise<RawFilter>>;
@@ -224,6 +222,12 @@ export interface ${name} {
224
222
  ${regularRelations}
225
223
  }
226
224
 
225
+ export interface ${name}TableBase {
226
+ ${columns(table)}
227
+ ${tableRelations(table)}
228
+ }
229
+
230
+
227
231
  export interface ${name}Strategy {
228
232
  ${strategyColumns(table)}
229
233
  ${strategyRelations}
@@ -350,9 +354,9 @@ function getPrefixTs(isNamespace) {
350
354
  /* eslint-disable @typescript-eslint/no-unused-vars */
351
355
  /* eslint-disable @typescript-eslint/no-explicit-any */
352
356
  import type { AxiosInterceptorManager, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
353
- import type { BooleanColumn, JSONColumn, UUIDColumn, DateColumn, NumberColumn, BinaryColumn, StringColumn, Concurrency, Filter, RawFilter, TransactionOptions, Pool, Express, Url, ColumnConcurrency, JsonPatch } from 'rdb';
357
+ import type { BooleanColumn, JSONColumn, UUIDColumn, DateColumn, NumberColumn, BinaryColumn, StringColumn, Concurrency, Filter, RawFilter, TransactionOptions, Pool, Express, Url, ColumnConcurrency, JsonPatch } from 'orange-orm';
354
358
  export { RequestHandler } from 'express';
355
- export { Concurrency, Filter, RawFilter, Config, TransactionOptions, Pool } from 'rdb';
359
+ export { Concurrency, Filter, RawFilter, Config, TransactionOptions, Pool } from 'orange-orm';
356
360
  export = r;
357
361
  declare function r(config: Config): r.RdbClient;
358
362
  `;
@@ -363,7 +367,7 @@ declare function r(config: Config): r.RdbClient;
363
367
  /* eslint-disable @typescript-eslint/no-explicit-any */
364
368
  import schema from './schema';
365
369
  import type { AxiosInterceptorManager, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
366
- import type { BooleanColumn, JSONColumn, UUIDColumn, DateColumn, NumberColumn, BinaryColumn, StringColumn, Concurrency, Filter, RawFilter, TransactionOptions, Pool, Express, Url, ColumnConcurrency, JsonPatch } from 'rdb';
370
+ import type { BooleanColumn, JSONColumn, UUIDColumn, DateColumn, NumberColumn, BinaryColumn, StringColumn, Concurrency, Filter, RawFilter, TransactionOptions, Pool, Express, Url, ColumnConcurrency, JsonPatch } from 'orange-orm';
367
371
  export default schema as RdbClient;`;
368
372
  }
369
373
 
Binary file