proto.io 0.0.135 → 0.0.136
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/database.d.ts +2 -2
- package/dist/adapters/file/filesystem.d.ts +2 -2
- package/dist/adapters/file/google-cloud-storage.d.ts +2 -2
- package/dist/adapters/storage/progres.d.ts +1 -1
- package/dist/adapters/storage/progres.js +5 -5
- package/dist/adapters/storage/progres.js.map +1 -1
- package/dist/adapters/storage/progres.mjs +5 -5
- 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/internals/{index-DswDPVLd.d.ts → index-D1h-5NmA.d.ts} +2 -2
- package/dist/internals/index-D1h-5NmA.d.ts.map +1 -0
- package/dist/internals/{index-DhXSRjwQ.d.ts → index-DRgmWum4.d.ts} +2 -3
- package/dist/internals/index-DRgmWum4.d.ts.map +1 -0
- package/dist/internals/{index-yj-39Vm0.d.ts → index-rcLPSrw6.d.ts} +2 -1
- package/dist/internals/index-rcLPSrw6.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/internals/index-DhXSRjwQ.d.ts.map +0 -1
- package/dist/internals/index-DswDPVLd.d.ts.map +0 -1
- package/dist/internals/index-yj-39Vm0.d.ts.map +0 -1
|
@@ -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/index-
|
|
1
|
+
import { T as TSchema, P as ProtoService } from '../../internals/index-rcLPSrw6.js';
|
|
2
|
+
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-D1h-5NmA.js';
|
|
3
3
|
import '@o2ter/utils-js';
|
|
4
4
|
import 'jsonwebtoken';
|
|
5
5
|
import '@o2ter/server-js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProtoService } from '../../internals/index-
|
|
2
|
-
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-
|
|
1
|
+
import { P as ProtoService } from '../../internals/index-rcLPSrw6.js';
|
|
2
|
+
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-D1h-5NmA.js';
|
|
3
3
|
import '@o2ter/utils-js';
|
|
4
4
|
import 'jsonwebtoken';
|
|
5
5
|
import '@o2ter/server-js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _google_cloud_storage from '@google-cloud/storage';
|
|
2
2
|
import { Storage } from '@google-cloud/storage';
|
|
3
|
-
import { P as ProtoService } from '../../internals/index-
|
|
4
|
-
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-
|
|
3
|
+
import { P as ProtoService } from '../../internals/index-rcLPSrw6.js';
|
|
4
|
+
import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-D1h-5NmA.js';
|
|
5
5
|
import '@o2ter/utils-js';
|
|
6
6
|
import 'jsonwebtoken';
|
|
7
7
|
import '@o2ter/server-js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Pool, PoolClient, PoolConfig } from 'pg';
|
|
2
|
-
import { _ as _TValue, o as EventData, T as TSchema, q as DecodedQuery, F as FindOptions, Q as QuerySelector, r as DecodedSortOption, I as InsertOptions, t as TValue, u as FindOneOptions, v as TUpdateOp, w as FieldSelectorExpression, x as QueryExpression, y as TStorage, z as TransactionOptions, h as TObject, A as TQueryRandomOptions, B as TPubSub } from '../../internals/index-
|
|
2
|
+
import { _ as _TValue, o as EventData, T as TSchema, q as DecodedQuery, F as FindOptions, Q as QuerySelector, r as DecodedSortOption, I as InsertOptions, t as TValue, u as FindOneOptions, v as TUpdateOp, w as FieldSelectorExpression, x as QueryExpression, y as TStorage, z as TransactionOptions, h as TObject, A as TQueryRandomOptions, B as TPubSub } from '../../internals/index-rcLPSrw6.js';
|
|
3
3
|
import * as _o2ter_utils_js from '@o2ter/utils-js';
|
|
4
4
|
import { asyncStream } from '@o2ter/utils-js';
|
|
5
5
|
import 'jsonwebtoken';
|
|
@@ -2604,7 +2604,7 @@ class PostgresStorage extends PostgresStorageClient {
|
|
|
2604
2604
|
case 'number': return 'DOUBLE PRECISION';
|
|
2605
2605
|
case 'decimal': return 'DECIMAL';
|
|
2606
2606
|
case 'string': return 'TEXT';
|
|
2607
|
-
case 'date': return 'TIMESTAMP WITH TIME ZONE';
|
|
2607
|
+
case 'date': return 'TIMESTAMP(3) WITH TIME ZONE';
|
|
2608
2608
|
case 'object': return 'JSONB';
|
|
2609
2609
|
case 'array': return 'JSONB[]';
|
|
2610
2610
|
case 'vector': return 'DOUBLE PRECISION[]';
|
|
@@ -2653,9 +2653,9 @@ class PostgresStorage extends PostgresStorageClient {
|
|
|
2653
2653
|
_id TEXT PRIMARY KEY,
|
|
2654
2654
|
__v INTEGER NOT NULL DEFAULT 0,
|
|
2655
2655
|
__i BIGSERIAL NOT NULL UNIQUE,
|
|
2656
|
-
_created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
|
|
2657
|
-
_updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
|
|
2658
|
-
_expired_at TIMESTAMP WITH TIME ZONE,
|
|
2656
|
+
_created_at TIMESTAMP(3) WITH TIME ZONE NOT NULL DEFAULT NOW(),
|
|
2657
|
+
_updated_at TIMESTAMP(3) WITH TIME ZONE NOT NULL DEFAULT NOW(),
|
|
2658
|
+
_expired_at TIMESTAMP(3) WITH TIME ZONE,
|
|
2659
2659
|
_rperm TEXT[] NOT NULL DEFAULT ARRAY['*']::TEXT[],
|
|
2660
2660
|
_wperm TEXT[] NOT NULL DEFAULT ARRAY['*']::TEXT[]
|
|
2661
2661
|
${_.isEmpty(fields) ? sql `` : sql `, ${_.map(fields, (dataType, col) => sql `
|
|
@@ -2720,7 +2720,7 @@ class PostgresStorage extends PostgresStorageClient {
|
|
|
2720
2720
|
async _rebuildColumns(className, schema) {
|
|
2721
2721
|
const columns = await this.columns(className);
|
|
2722
2722
|
const typeMap = {
|
|
2723
|
-
'timestamp without time zone'
|
|
2723
|
+
'timestamp': 'timestamp(3) without time zone',
|
|
2724
2724
|
'numeric': 'decimal',
|
|
2725
2725
|
};
|
|
2726
2726
|
const fields = this._fields(schema);
|