proto.io 0.0.214 → 0.0.215
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 +1 -1
- 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 +1 -1
- package/dist/adapters/storage/progres.js +23 -1
- package/dist/adapters/storage/progres.js.map +1 -1
- package/dist/adapters/storage/progres.mjs +23 -1
- package/dist/adapters/storage/progres.mjs.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals/{base-E1b8J-Fs.d.ts → base-Cp5le5dC.d.ts} +2 -2
- package/dist/internals/base-Cp5le5dC.d.ts.map +1 -0
- package/dist/internals/{chunk-D1bD7otk.d.ts → chunk--Vo2-p-z.d.ts} +3 -3
- package/dist/internals/chunk--Vo2-p-z.d.ts.map +1 -0
- package/dist/internals/{index-SSEdPyhp.d.ts → index-CZUGnb-y.d.ts} +2 -2
- package/dist/internals/index-CZUGnb-y.d.ts.map +1 -0
- package/dist/internals/{index-CbjY-gJ7.d.ts → index-YLrO0f2D.d.ts} +7 -1
- package/dist/internals/index-YLrO0f2D.d.ts.map +1 -0
- package/dist/internals/{validator-Dxmbwa3P.mjs → validator-ChrCrz_C.mjs} +39 -4
- package/dist/internals/validator-ChrCrz_C.mjs.map +1 -0
- package/dist/internals/{validator-DoRPoIs2.js → validator-m6wY35c6.js} +39 -3
- package/dist/internals/validator-m6wY35c6.js.map +1 -0
- package/package.json +1 -1
- package/dist/internals/base-E1b8J-Fs.d.ts.map +0 -1
- package/dist/internals/chunk-D1bD7otk.d.ts.map +0 -1
- package/dist/internals/index-CbjY-gJ7.d.ts.map +0 -1
- package/dist/internals/index-SSEdPyhp.d.ts.map +0 -1
- package/dist/internals/validator-DoRPoIs2.js.map +0 -1
- package/dist/internals/validator-Dxmbwa3P.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as ProtoService } from '../../internals/index-
|
|
1
|
+
import { P as ProtoService } from '../../internals/index-YLrO0f2D.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-Cp5le5dC.js';
|
|
4
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk--Vo2-p-z.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-YLrO0f2D.js';
|
|
2
|
+
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/base-Cp5le5dC.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-m6wY35c6.js');
|
|
9
9
|
require('util');
|
|
10
10
|
require('zlib');
|
|
11
11
|
require('../../internals/private-Ciddhure.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { b as QuerySelector } from '../../internals/validator-
|
|
4
|
+
import { b as QuerySelector } from '../../internals/validator-ChrCrz_C.mjs';
|
|
5
5
|
import 'util';
|
|
6
6
|
import 'zlib';
|
|
7
7
|
import '../../internals/private-CNw40LZ7.mjs';
|
|
@@ -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-YLrO0f2D.js';
|
|
2
|
+
import { a as FileStorageOptions } from '../../internals/base-Cp5le5dC.js';
|
|
3
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk--Vo2-p-z.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-YLrO0f2D.js';
|
|
4
|
+
import { a as FileStorageOptions } from '../../internals/base-Cp5le5dC.js';
|
|
5
|
+
import { F as FileChunkStorageBase } from '../../internals/chunk--Vo2-p-z.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 TQueryRandomOptions, J as TPubSub } from '../../internals/index-
|
|
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 TQueryRandomOptions, J as TPubSub } from '../../internals/index-YLrO0f2D.js';
|
|
3
3
|
import * as _o2ter_utils_js from '@o2ter/utils-js';
|
|
4
4
|
import { asyncStream } from '@o2ter/utils-js';
|
|
5
5
|
import 'jsonwebtoken';
|
|
@@ -9,7 +9,7 @@ var QueryStream = require('pg-query-stream');
|
|
|
9
9
|
var utilsJs = require('@o2ter/utils-js');
|
|
10
10
|
var Decimal = require('decimal.js');
|
|
11
11
|
var utils = require('pg/lib/utils');
|
|
12
|
-
var validator = require('../../internals/validator-
|
|
12
|
+
var validator = require('../../internals/validator-m6wY35c6.js');
|
|
13
13
|
require('@o2ter/crypto-js');
|
|
14
14
|
var _const = require('../../internals/const-C3I6cfav.js');
|
|
15
15
|
var random$1 = require('../../internals/random-nkOQ9U6S.js');
|
|
@@ -2017,6 +2017,28 @@ const selectPopulate = (compiler, parent, populate, field) => {
|
|
|
2017
2017
|
) AS ${{ identifier: `${field}.${key}` }}
|
|
2018
2018
|
`);
|
|
2019
2019
|
}
|
|
2020
|
+
else if (expr instanceof validator.QueryPercentileAccumulator) {
|
|
2021
|
+
const op = {
|
|
2022
|
+
'discrete': 'PERCENTILE_DISC',
|
|
2023
|
+
'continuous': 'PERCENTILE_CONT',
|
|
2024
|
+
}[expr.mode];
|
|
2025
|
+
if (!expr.input)
|
|
2026
|
+
throw Error('Invalid expression');
|
|
2027
|
+
const exprs = encodeTypedQueryExpression(compiler, populate, expr.input);
|
|
2028
|
+
const value = _.first(exprs)?.sql;
|
|
2029
|
+
if (!value)
|
|
2030
|
+
throw Error('Invalid expression');
|
|
2031
|
+
columns.push(sql `
|
|
2032
|
+
(
|
|
2033
|
+
SELECT ${{ literal: op }}(${{ value: expr.p }}) WITHIN GROUP (ORDER BY (${value})) FROM (
|
|
2034
|
+
${_selectRelationPopulate(compiler, parent, populate, field, false)}
|
|
2035
|
+
) ${{ identifier: populate.name }}
|
|
2036
|
+
) AS ${{ identifier: `${field}.${key}` }}
|
|
2037
|
+
`);
|
|
2038
|
+
}
|
|
2039
|
+
else {
|
|
2040
|
+
throw Error('Invalid expression');
|
|
2041
|
+
}
|
|
2020
2042
|
}
|
|
2021
2043
|
}
|
|
2022
2044
|
else {
|