proto.io 0.0.215 → 0.0.217
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/dist/adapters/file/aliyun-oss.d.ts +3 -3
- package/dist/adapters/file/database.d.ts +2 -2
- package/dist/adapters/file/database.js +1 -1
- package/dist/adapters/file/database.mjs +2 -2
- package/dist/adapters/file/filesystem.d.ts +3 -3
- package/dist/adapters/file/google-cloud-storage.d.ts +3 -3
- package/dist/adapters/storage/progres.d.ts +8 -10
- package/dist/adapters/storage/progres.js +833 -451
- package/dist/adapters/storage/progres.js.map +1 -1
- package/dist/adapters/storage/progres.mjs +834 -452
- package/dist/adapters/storage/progres.mjs.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +1 -7
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -12
- package/dist/index.mjs.map +1 -1
- package/dist/internals/{base-Cp5le5dC.d.ts → base-CWnOBKD5.d.ts} +2 -2
- package/dist/internals/base-CWnOBKD5.d.ts.map +1 -0
- package/dist/internals/{chunk--Vo2-p-z.d.ts → chunk-CNNSQpRF.d.ts} +3 -3
- package/dist/internals/chunk-CNNSQpRF.d.ts.map +1 -0
- package/dist/internals/{index-CZUGnb-y.d.ts → index-BRIlS3mY.d.ts} +3 -9
- package/dist/internals/index-BRIlS3mY.d.ts.map +1 -0
- package/dist/internals/{index-YLrO0f2D.d.ts → index-Bs8n7Q8f.d.ts} +60 -20
- package/dist/internals/index-Bs8n7Q8f.d.ts.map +1 -0
- package/dist/internals/{index-al1N-qi7.mjs → index-BzDsTt4R.mjs} +2 -2
- package/dist/internals/{index-al1N-qi7.mjs.map → index-BzDsTt4R.mjs.map} +1 -1
- package/dist/internals/{index-ZPbBr9Db.mjs → index-DfqABzjr.mjs} +135 -142
- package/dist/internals/index-DfqABzjr.mjs.map +1 -0
- package/dist/internals/{index-DfnPpl1I.js → index-DylUjD_1.js} +133 -146
- package/dist/internals/index-DylUjD_1.js.map +1 -0
- package/dist/internals/{validator-ChrCrz_C.mjs → validator-CEcBF4Cn.mjs} +730 -27
- package/dist/internals/validator-CEcBF4Cn.mjs.map +1 -0
- package/dist/internals/{validator-m6wY35c6.js → validator-mcBCJP4P.js} +737 -27
- package/dist/internals/validator-mcBCJP4P.js.map +1 -0
- package/package.json +1 -1
- package/dist/internals/base-Cp5le5dC.d.ts.map +0 -1
- package/dist/internals/chunk--Vo2-p-z.d.ts.map +0 -1
- package/dist/internals/index-CZUGnb-y.d.ts.map +0 -1
- package/dist/internals/index-DfnPpl1I.js.map +0 -1
- package/dist/internals/index-YLrO0f2D.d.ts.map +0 -1
- package/dist/internals/index-ZPbBr9Db.mjs.map +0 -1
- package/dist/internals/validator-ChrCrz_C.mjs.map +0 -1
- package/dist/internals/validator-m6wY35c6.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as ProtoService } from '../../internals/index-
|
|
1
|
+
import { P as ProtoService } from '../../internals/index-Bs8n7Q8f.js';
|
|
2
2
|
import OSS from 'ali-oss';
|
|
3
|
-
import { a as FileStorageOptions } from '../../internals/base-
|
|
4
|
-
import { F as FileChunkStorageBase } from '../../internals/chunk
|
|
3
|
+
import { a as FileStorageOptions } from '../../internals/base-CWnOBKD5.js';
|
|
4
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk-CNNSQpRF.js';
|
|
5
5
|
import '@o2ter/utils-js';
|
|
6
6
|
import 'jsonwebtoken';
|
|
7
7
|
import '@o2ter/server-js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TSchema, P as ProtoService } from '../../internals/index-
|
|
2
|
-
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/base-
|
|
1
|
+
import { T as TSchema, P as ProtoService } from '../../internals/index-Bs8n7Q8f.js';
|
|
2
|
+
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/base-CWnOBKD5.js';
|
|
3
3
|
import '@o2ter/utils-js';
|
|
4
4
|
import 'jsonwebtoken';
|
|
5
5
|
import '@o2ter/server-js';
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _ = require('lodash');
|
|
6
6
|
var base = require('../../internals/base-NsJYo2MG.js');
|
|
7
7
|
var utilsJs = require('@o2ter/utils-js');
|
|
8
|
-
var validator = require('../../internals/validator-
|
|
8
|
+
var validator = require('../../internals/validator-mcBCJP4P.js');
|
|
9
9
|
require('util');
|
|
10
10
|
require('zlib');
|
|
11
11
|
require('../../internals/private-Ciddhure.js');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { F as FileStorageBase } from '../../internals/base-DYc1_peK.mjs';
|
|
3
3
|
import { bufferToBase64, base64ToBuffer } from '@o2ter/utils-js';
|
|
4
|
-
import {
|
|
4
|
+
import { c as QuerySelector } from '../../internals/validator-CEcBF4Cn.mjs';
|
|
5
5
|
import 'util';
|
|
6
6
|
import 'zlib';
|
|
7
7
|
import '../../internals/private-CNw40LZ7.mjs';
|
|
8
|
-
import '../../internals/index-
|
|
8
|
+
import '../../internals/index-BzDsTt4R.mjs';
|
|
9
9
|
import 'decimal.js';
|
|
10
10
|
|
|
11
11
|
//
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ProtoService } from '../../internals/index-
|
|
2
|
-
import { a as FileStorageOptions } from '../../internals/base-
|
|
3
|
-
import { F as FileChunkStorageBase } from '../../internals/chunk
|
|
1
|
+
import { P as ProtoService } from '../../internals/index-Bs8n7Q8f.js';
|
|
2
|
+
import { a as FileStorageOptions } from '../../internals/base-CWnOBKD5.js';
|
|
3
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk-CNNSQpRF.js';
|
|
4
4
|
import '@o2ter/utils-js';
|
|
5
5
|
import 'jsonwebtoken';
|
|
6
6
|
import '@o2ter/server-js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _google_cloud_storage from '@google-cloud/storage';
|
|
2
2
|
import { File, Storage } from '@google-cloud/storage';
|
|
3
|
-
import { P as ProtoService } from '../../internals/index-
|
|
4
|
-
import { a as FileStorageOptions } from '../../internals/base-
|
|
5
|
-
import { F as FileChunkStorageBase } from '../../internals/chunk
|
|
3
|
+
import { P as ProtoService } from '../../internals/index-Bs8n7Q8f.js';
|
|
4
|
+
import { a as FileStorageOptions } from '../../internals/base-CWnOBKD5.js';
|
|
5
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk-CNNSQpRF.js';
|
|
6
6
|
import '@o2ter/utils-js';
|
|
7
7
|
import 'jsonwebtoken';
|
|
8
8
|
import '@o2ter/server-js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Pool, PoolClient, PoolConfig } from 'pg';
|
|
2
|
-
import { a as TValueWithoutObject, T as TSchema,
|
|
2
|
+
import { a as TValueWithoutObject, T as TSchema, q as TValueWithUndefined, r as TValue, t as TUpdateOp, F as FieldSelectorExpression, Q as QueryExpression, R as RelationOptions, u as QueryAccumulator, v as QuerySelector, w as DecodedSortOption, x as DecodedQuery, y as FindOptions, I as InsertOptions, z as TStorage, A as TransactionOptions, k as TObject, B as QueryRandomOptions, C as TPubSub } from '../../internals/index-Bs8n7Q8f.js';
|
|
3
3
|
import * as _o2ter_utils_js from '@o2ter/utils-js';
|
|
4
4
|
import { asyncStream } from '@o2ter/utils-js';
|
|
5
5
|
import 'jsonwebtoken';
|
|
@@ -61,7 +61,8 @@ interface SqlDialect {
|
|
|
61
61
|
join?: SQL;
|
|
62
62
|
};
|
|
63
63
|
encodeFieldExpression(compiler: QueryCompiler, parent: QueryContext, field: string, expr: FieldSelectorExpression): SQL;
|
|
64
|
-
|
|
64
|
+
encodeSortExpression(compiler: QueryCompiler, parent: QueryContext, expr: QueryExpression): SQL | undefined;
|
|
65
|
+
encodeBooleanExpression(compiler: QueryCompiler, parent: QueryContext, expr: QueryExpression): SQL | undefined;
|
|
65
66
|
encodePopulate(compiler: QueryCompiler, parent: Populate, remix?: QueryContext & {
|
|
66
67
|
className: string;
|
|
67
68
|
}): Record<string, SQL>;
|
|
@@ -69,9 +70,7 @@ interface SqlDialect {
|
|
|
69
70
|
className: string;
|
|
70
71
|
}, relatedBy: NonNullable<RelationOptions['relatedBy']>): SQL;
|
|
71
72
|
encodeSortKey(compiler: QueryCompiler, parent: QueryContext, key: string): SQL;
|
|
72
|
-
random(
|
|
73
|
-
weight?: string;
|
|
74
|
-
}): SQL;
|
|
73
|
+
random(weight?: SQL): SQL;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
type SQLLiteral = SQL | SQL[] | {
|
|
@@ -185,7 +184,7 @@ declare abstract class SqlStorage implements TStorage {
|
|
|
185
184
|
count(query: DecodedQuery<FindOptions & RelationOptions>): Promise<number>;
|
|
186
185
|
private _matchesType;
|
|
187
186
|
find(query: DecodedQuery<FindOptions & RelationOptions>): AsyncGenerator<TObject, void, unknown>;
|
|
188
|
-
random(query: DecodedQuery<FindOptions & RelationOptions>, opts?:
|
|
187
|
+
random(query: DecodedQuery<FindOptions & RelationOptions>, opts?: QueryRandomOptions): AsyncGenerator<TObject, void, unknown>;
|
|
189
188
|
refs(object: TObject, classNames: string[], roles?: string[]): AsyncGenerator<TObject, void, unknown>;
|
|
190
189
|
nonrefs(query: DecodedQuery<FindOptions>): AsyncGenerator<TObject, void, unknown>;
|
|
191
190
|
insert(options: InsertOptions, values: Record<string, TValueWithUndefined>[]): Promise<TObject[]>;
|
|
@@ -212,7 +211,8 @@ declare class PostgresStorageClient<Driver extends PostgresClientDriver> extends
|
|
|
212
211
|
join?: SQL;
|
|
213
212
|
};
|
|
214
213
|
encodeFieldExpression: (compiler: QueryCompiler, parent: QueryContext, field: string, expr: FieldSelectorExpression) => SQL;
|
|
215
|
-
|
|
214
|
+
encodeBooleanExpression: (compiler: QueryCompiler, parent: QueryContext, expr: QueryExpression) => SQL | undefined;
|
|
215
|
+
encodeSortExpression: (compiler: QueryCompiler, parent: QueryContext, expr: QueryExpression) => SQL | undefined;
|
|
216
216
|
encodePopulate: (compiler: QueryCompiler, parent: Populate, remix?: QueryContext & {
|
|
217
217
|
className: string;
|
|
218
218
|
}) => Record<string, SQL>;
|
|
@@ -220,9 +220,7 @@ declare class PostgresStorageClient<Driver extends PostgresClientDriver> extends
|
|
|
220
220
|
className: string;
|
|
221
221
|
}, relatedBy: NonNullable<RelationOptions["relatedBy"]>) => SQL;
|
|
222
222
|
encodeSortKey: (compiler: QueryCompiler, parent: QueryContext, key: string) => SQL;
|
|
223
|
-
random: (
|
|
224
|
-
weight?: string;
|
|
225
|
-
}) => SQL;
|
|
223
|
+
random: (weight?: SQL) => SQL;
|
|
226
224
|
};
|
|
227
225
|
selectLock(): boolean;
|
|
228
226
|
config(acl?: string[]): Promise<Record<string, TValueWithoutObject>>;
|