proto.io 0.0.215 → 0.0.216
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 +4 -8
- package/dist/adapters/storage/progres.js +444 -425
- package/dist/adapters/storage/progres.js.map +1 -1
- package/dist/adapters/storage/progres.mjs +445 -426
- package/dist/adapters/storage/progres.mjs.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.mjs +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -11
- package/dist/index.mjs.map +1 -1
- package/dist/internals/{base-Cp5le5dC.d.ts → base-BO3ZP6EF.d.ts} +2 -2
- package/dist/internals/base-BO3ZP6EF.d.ts.map +1 -0
- package/dist/internals/{chunk--Vo2-p-z.d.ts → chunk-DDkLpKXp.d.ts} +3 -3
- package/dist/internals/chunk-DDkLpKXp.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-CZUGnb-y.d.ts → index-CYhA8SU8.d.ts} +2 -2
- package/dist/internals/index-CYhA8SU8.d.ts.map +1 -0
- package/dist/internals/{index-ZPbBr9Db.mjs → index-DF2AfSGK.mjs} +2 -2
- package/dist/internals/index-DF2AfSGK.mjs.map +1 -0
- package/dist/internals/index-DfnPpl1I.js.map +1 -1
- package/dist/internals/{index-YLrO0f2D.d.ts → index-HdMgLYtD.d.ts} +8 -5
- package/dist/internals/index-HdMgLYtD.d.ts.map +1 -0
- package/dist/internals/{validator-m6wY35c6.js → validator-BBjOdLiT.js} +4 -1
- package/dist/internals/validator-BBjOdLiT.js.map +1 -0
- package/dist/internals/{validator-ChrCrz_C.mjs → validator-LNgZGT_l.mjs} +5 -3
- package/dist/internals/validator-LNgZGT_l.mjs.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-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-HdMgLYtD.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-BO3ZP6EF.js';
|
|
4
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk-DDkLpKXp.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-HdMgLYtD.js';
|
|
2
|
+
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/base-BO3ZP6EF.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-BBjOdLiT.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-LNgZGT_l.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-HdMgLYtD.js';
|
|
2
|
+
import { a as FileStorageOptions } from '../../internals/base-BO3ZP6EF.js';
|
|
3
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk-DDkLpKXp.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-HdMgLYtD.js';
|
|
4
|
+
import { a as FileStorageOptions } from '../../internals/base-BO3ZP6EF.js';
|
|
5
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk-DDkLpKXp.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, u as TValueWithUndefined, v as TValue, w as TUpdateOp, F as FieldSelectorExpression, Q as QueryExpression, R as RelationOptions, x as QueryAccumulator, y as QuerySelector, z as DecodedSortOption, A as DecodedQuery, B as FindOptions, I as InsertOptions, C as TStorage, G as TransactionOptions, j as TObject, H as
|
|
2
|
+
import { a as TValueWithoutObject, T as TSchema, u as TValueWithUndefined, v as TValue, w as TUpdateOp, F as FieldSelectorExpression, Q as QueryExpression, R as RelationOptions, x as QueryAccumulator, y as QuerySelector, z as DecodedSortOption, A as DecodedQuery, B as FindOptions, I as InsertOptions, C as TStorage, G as TransactionOptions, j as TObject, H as QueryRandomOptions, J as TPubSub } from '../../internals/index-HdMgLYtD.js';
|
|
3
3
|
import * as _o2ter_utils_js from '@o2ter/utils-js';
|
|
4
4
|
import { asyncStream } from '@o2ter/utils-js';
|
|
5
5
|
import 'jsonwebtoken';
|
|
@@ -69,9 +69,7 @@ interface SqlDialect {
|
|
|
69
69
|
className: string;
|
|
70
70
|
}, relatedBy: NonNullable<RelationOptions['relatedBy']>): SQL;
|
|
71
71
|
encodeSortKey(compiler: QueryCompiler, parent: QueryContext, key: string): SQL;
|
|
72
|
-
random(
|
|
73
|
-
weight?: string;
|
|
74
|
-
}): SQL;
|
|
72
|
+
random(weight?: SQL): SQL;
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
type SQLLiteral = SQL | SQL[] | {
|
|
@@ -185,7 +183,7 @@ declare abstract class SqlStorage implements TStorage {
|
|
|
185
183
|
count(query: DecodedQuery<FindOptions & RelationOptions>): Promise<number>;
|
|
186
184
|
private _matchesType;
|
|
187
185
|
find(query: DecodedQuery<FindOptions & RelationOptions>): AsyncGenerator<TObject, void, unknown>;
|
|
188
|
-
random(query: DecodedQuery<FindOptions & RelationOptions>, opts?:
|
|
186
|
+
random(query: DecodedQuery<FindOptions & RelationOptions>, opts?: QueryRandomOptions): AsyncGenerator<TObject, void, unknown>;
|
|
189
187
|
refs(object: TObject, classNames: string[], roles?: string[]): AsyncGenerator<TObject, void, unknown>;
|
|
190
188
|
nonrefs(query: DecodedQuery<FindOptions>): AsyncGenerator<TObject, void, unknown>;
|
|
191
189
|
insert(options: InsertOptions, values: Record<string, TValueWithUndefined>[]): Promise<TObject[]>;
|
|
@@ -220,9 +218,7 @@ declare class PostgresStorageClient<Driver extends PostgresClientDriver> extends
|
|
|
220
218
|
className: string;
|
|
221
219
|
}, relatedBy: NonNullable<RelationOptions["relatedBy"]>) => SQL;
|
|
222
220
|
encodeSortKey: (compiler: QueryCompiler, parent: QueryContext, key: string) => SQL;
|
|
223
|
-
random: (
|
|
224
|
-
weight?: string;
|
|
225
|
-
}) => SQL;
|
|
221
|
+
random: (weight?: SQL) => SQL;
|
|
226
222
|
};
|
|
227
223
|
selectLock(): boolean;
|
|
228
224
|
config(acl?: string[]): Promise<Record<string, TValueWithoutObject>>;
|