proto.io 0.0.134 → 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.
Files changed (30) hide show
  1. package/dist/adapters/file/database.d.ts +2 -2
  2. package/dist/adapters/file/filesystem.d.ts +2 -2
  3. package/dist/adapters/file/google-cloud-storage.d.ts +2 -2
  4. package/dist/adapters/storage/progres.d.ts +1 -1
  5. package/dist/adapters/storage/progres.js +5 -5
  6. package/dist/adapters/storage/progres.js.map +1 -1
  7. package/dist/adapters/storage/progres.mjs +5 -5
  8. package/dist/adapters/storage/progres.mjs.map +1 -1
  9. package/dist/client.d.ts +3 -3
  10. package/dist/client.js +1 -1
  11. package/dist/client.mjs +2 -2
  12. package/dist/index.d.ts +3 -3
  13. package/dist/index.js +1 -1
  14. package/dist/index.mjs +2 -2
  15. package/dist/internals/{index-BHMw0t27.js → index-CTyYPai3.js} +7 -9
  16. package/dist/internals/index-CTyYPai3.js.map +1 -0
  17. package/dist/internals/{index-CnmM5EBX.mjs → index-Cn4RsP3U.mjs} +7 -9
  18. package/dist/internals/index-Cn4RsP3U.mjs.map +1 -0
  19. package/dist/internals/{index-DswDPVLd.d.ts → index-D1h-5NmA.d.ts} +2 -2
  20. package/dist/internals/index-D1h-5NmA.d.ts.map +1 -0
  21. package/dist/internals/{index-DhXSRjwQ.d.ts → index-DRgmWum4.d.ts} +2 -3
  22. package/dist/internals/index-DRgmWum4.d.ts.map +1 -0
  23. package/dist/internals/{index-yj-39Vm0.d.ts → index-rcLPSrw6.d.ts} +2 -1
  24. package/dist/internals/index-rcLPSrw6.d.ts.map +1 -0
  25. package/package.json +1 -1
  26. package/dist/internals/index-BHMw0t27.js.map +0 -1
  27. package/dist/internals/index-CnmM5EBX.mjs.map +0 -1
  28. package/dist/internals/index-DhXSRjwQ.d.ts.map +0 -1
  29. package/dist/internals/index-DswDPVLd.d.ts.map +0 -1
  30. 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-yj-39Vm0.js';
2
- import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-DswDPVLd.js';
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-yj-39Vm0.js';
2
- import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-DswDPVLd.js';
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-yj-39Vm0.js';
4
- import { F as FileStorageBase, a as FileStorageOptions } from '../../internals/index-DswDPVLd.js';
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-yj-39Vm0.js';
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': 'timestamp',
2723
+ 'timestamp': 'timestamp(3) without time zone',
2724
2724
  'numeric': 'decimal',
2725
2725
  };
2726
2726
  const fields = this._fields(schema);