proto.io 0.0.177 → 0.0.178
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/LICENSE +1 -1
- package/dist/adapters/file/database.d.ts +2 -2
- package/dist/adapters/file/database.js +5 -5
- package/dist/adapters/file/database.js.map +1 -1
- package/dist/adapters/file/database.mjs +5 -5
- package/dist/adapters/file/database.mjs.map +1 -1
- package/dist/adapters/file/filesystem.d.ts +2 -2
- package/dist/adapters/file/filesystem.js +3 -3
- package/dist/adapters/file/filesystem.js.map +1 -1
- package/dist/adapters/file/filesystem.mjs +3 -3
- package/dist/adapters/file/filesystem.mjs.map +1 -1
- package/dist/adapters/file/google-cloud-storage.d.ts +2 -2
- package/dist/adapters/file/google-cloud-storage.js +3 -3
- package/dist/adapters/file/google-cloud-storage.js.map +1 -1
- package/dist/adapters/file/google-cloud-storage.mjs +3 -3
- package/dist/adapters/file/google-cloud-storage.mjs.map +1 -1
- package/dist/adapters/storage/progres.d.ts +5 -6
- package/dist/adapters/storage/progres.js +108 -80
- package/dist/adapters/storage/progres.js.map +1 -1
- package/dist/adapters/storage/progres.mjs +108 -80
- package/dist/adapters/storage/progres.mjs.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +5 -5
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.ts +12 -3
- package/dist/index.js +42 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -32
- package/dist/index.mjs.map +1 -1
- package/dist/internals/{index-CZShhrIu.d.ts → index-B7qz_VeO.d.ts} +2 -2
- package/dist/internals/index-B7qz_VeO.d.ts.map +1 -0
- package/dist/internals/{index-be1VYBY2.mjs → index-BAFVUYCo.mjs} +3 -3
- package/dist/internals/{index-be1VYBY2.mjs.map → index-BAFVUYCo.mjs.map} +1 -1
- package/dist/internals/{index-Dz0pmKCD.d.ts → index-BgZqiNxF.d.ts} +13 -11
- package/dist/internals/index-BgZqiNxF.d.ts.map +1 -0
- package/dist/internals/{index-A2Ulsntq.mjs → index-CPodB1P0.mjs} +21 -20
- package/dist/internals/index-CPodB1P0.mjs.map +1 -0
- package/dist/internals/{index-BL2gpGny.d.ts → index-CyXddWjz.d.ts} +2 -2
- package/dist/internals/index-CyXddWjz.d.ts.map +1 -0
- package/dist/internals/{index-DHQhYGsJ.mjs → index-D9AowvHp.mjs} +6 -6
- package/dist/internals/{index-DHQhYGsJ.mjs.map → index-D9AowvHp.mjs.map} +1 -1
- package/dist/internals/{index-DXuW8UiB.js → index-DRq6T_5w.js} +12 -6
- package/dist/internals/index-DRq6T_5w.js.map +1 -0
- package/dist/internals/{index-BqFdBhFc.js → index-DfPY7Xbb.js} +3 -3
- package/dist/internals/{index-BqFdBhFc.js.map → index-DfPY7Xbb.js.map} +1 -1
- package/dist/internals/{index-Dc3V_Bzw.js → index-DjrC854w.js} +6 -6
- package/dist/internals/{index-Dc3V_Bzw.js.map → index-DjrC854w.js.map} +1 -1
- package/dist/internals/{index-DvjHa8S2.js → index-DwCNTJb5.js} +21 -19
- package/dist/internals/index-DwCNTJb5.js.map +1 -0
- package/dist/internals/{index-CTsc042s.mjs → index-DyjcBbS1.mjs} +12 -7
- package/dist/internals/index-DyjcBbS1.mjs.map +1 -0
- package/dist/internals/{private-BUpLAMZi.mjs → private-CNw40LZ7.mjs} +2 -2
- package/dist/internals/{private-BUpLAMZi.mjs.map → private-CNw40LZ7.mjs.map} +1 -1
- package/dist/internals/{private-CSB1Ep4g.js → private-Ciddhure.js} +2 -2
- package/dist/internals/{private-CSB1Ep4g.js.map → private-Ciddhure.js.map} +1 -1
- package/dist/internals/{random-DGiu1IIq.mjs → random-BSyWEK8G.mjs} +7 -7
- package/dist/internals/random-BSyWEK8G.mjs.map +1 -0
- package/dist/internals/{random-CvVZek_8.js → random-CDtFUuES.js} +7 -7
- package/dist/internals/random-CDtFUuES.js.map +1 -0
- package/package.json +1 -1
- package/dist/internals/index-A2Ulsntq.mjs.map +0 -1
- package/dist/internals/index-BL2gpGny.d.ts.map +0 -1
- package/dist/internals/index-CTsc042s.mjs.map +0 -1
- package/dist/internals/index-CZShhrIu.d.ts.map +0 -1
- package/dist/internals/index-DXuW8UiB.js.map +0 -1
- package/dist/internals/index-DvjHa8S2.js.map +0 -1
- package/dist/internals/index-Dz0pmKCD.d.ts.map +0 -1
- package/dist/internals/random-CvVZek_8.js.map +0 -1
- package/dist/internals/random-DGiu1IIq.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as TFileStorage, T as TSchema, P as ProtoService, B as TFileInfo } from './index-
|
|
1
|
+
import { c as TFileStorage, T as TSchema, P as ProtoService, B as TFileInfo } from './index-BgZqiNxF.js';
|
|
2
2
|
import { BinaryData } from '@o2ter/utils-js';
|
|
3
3
|
|
|
4
4
|
type FileStorageOptions = {
|
|
@@ -23,4 +23,4 @@ declare abstract class FileStorageBase implements TFileStorage {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export { FileStorageBase as F, type FileStorageOptions as a };
|
|
26
|
-
//# sourceMappingURL=index-
|
|
26
|
+
//# sourceMappingURL=index-B7qz_VeO.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B7qz_VeO.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -2,13 +2,13 @@ import _ from 'lodash';
|
|
|
2
2
|
import { promisify } from 'util';
|
|
3
3
|
import { deflate as deflate$1, unzip as unzip$1 } from 'zlib';
|
|
4
4
|
import { parallelEach, binaryStreamChunk, parallelMap } from '@o2ter/utils-js';
|
|
5
|
-
import { P as PVK } from './private-
|
|
5
|
+
import { P as PVK } from './private-CNw40LZ7.mjs';
|
|
6
6
|
|
|
7
7
|
//
|
|
8
8
|
// index.ts
|
|
9
9
|
//
|
|
10
10
|
// The MIT License
|
|
11
|
-
// Copyright (c) 2021 -
|
|
11
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
12
12
|
//
|
|
13
13
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -79,4 +79,4 @@ class FileStorageBase {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export { FileStorageBase as F };
|
|
82
|
-
//# sourceMappingURL=index-
|
|
82
|
+
//# sourceMappingURL=index-BAFVUYCo.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BAFVUYCo.mjs","sources":["../../../src/adapters/file/base/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { promisify } from 'util';\nimport { deflate as _deflate, unzip as _unzip } from 'zlib';\nimport { TFileInfo, TFileStorage } from '../../../server/file';\nimport { ProtoService } from '../../../server/proto';\nimport { TSchema } from '../../../internals/schema';\nimport { BinaryData, binaryStreamChunk, parallelEach, parallelMap } from '@o2ter/utils-js';\nimport { PVK } from '../../../internals/private';\n\nconst deflate = promisify(_deflate);\nconst unzip = promisify(_unzip);\n\nexport type FileStorageOptions = {\n chunkSize?: number;\n parallel?: number;\n};\n\nexport abstract class FileStorageBase implements TFileStorage {\n\n options: Required<FileStorageOptions>;\n\n constructor(options: FileStorageOptions) {\n this.options = {\n chunkSize: 16 * 1024,\n parallel: 8,\n ..._.pickBy(options, v => !_.isNil(v)),\n };\n }\n\n get schema(): Record<string, TSchema> {\n return {}\n }\n\n abstract createChunk<E>(proto: ProtoService<E>, token: string, start: number, end: number, compressed: Buffer): PromiseLike<void>;\n abstract readChunks<E>(proto: ProtoService<E>, token: string, start?: number, end?: number): AsyncGenerator<{\n start: number;\n data: Buffer | Uint8Array | PromiseLike<Buffer | Uint8Array>;\n }, void>;\n abstract destroy<E>(proto: ProtoService<E>, id: string): PromiseLike<void>;\n\n async create<E>(\n proto: ProtoService<E>,\n stream: BinaryData | AsyncIterable<BinaryData>,\n info: TFileInfo,\n maxUploadSize: number,\n ) {\n\n const token = proto[PVK].generateId();\n\n let size = 0;\n const _stream = async function* (stream: AsyncIterable<Buffer>) {\n for await (const data of stream) {\n yield { data, offset: size };\n size += data.byteLength;\n }\n };\n\n await parallelEach(\n _stream(binaryStreamChunk(stream, this.options.chunkSize)),\n this.options.parallel,\n async ({ data, offset }) => {\n const chunkSize = data.byteLength;\n await this.createChunk(proto, token, offset, offset + chunkSize, await deflate(data));\n if (offset + chunkSize > maxUploadSize) throw Error('Payload too large');\n }\n );\n\n return { _id: token, size };\n }\n\n async* fileData<E>(proto: ProtoService<E>, id: string, start?: number, end?: number) {\n\n const _stream = parallelMap(\n this.readChunks(proto, id, start, end),\n this.options.parallel,\n async chunk => ({\n start: chunk.start,\n data: await unzip(await chunk.data),\n })\n );\n\n for await (const { start: startBytes, data } of _stream) {\n\n if (!_.isNumber(start) && !_.isNumber(end)) {\n\n yield data;\n\n } else {\n\n const endBytes = startBytes + data.length;\n const _start = _.isNumber(start) && start > startBytes ? start - startBytes : 0;\n const _end = _.isNumber(end) && end < endBytes ? end - startBytes : undefined;\n\n yield data.subarray(_start, _end);\n }\n }\n }\n};\n\nexport default FileStorageBase;"],"names":["_deflate","_unzip"],"mappings":"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"}
|
|
@@ -1120,25 +1120,25 @@ declare class TObject {
|
|
|
1120
1120
|
* @param key - The key to increment.
|
|
1121
1121
|
* @param value - The value to increment by.
|
|
1122
1122
|
*/
|
|
1123
|
-
increment<T extends string>(key: PathName<T>, value: number): void;
|
|
1123
|
+
increment<T extends string>(key: PathName<T>, value: number | Decimal): void;
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Decrement the value of the attribute.
|
|
1126
1126
|
* @param key - The key to decrement.
|
|
1127
1127
|
* @param value - The value to decrement by.
|
|
1128
1128
|
*/
|
|
1129
|
-
decrement<T extends string>(key: PathName<T>, value: number): void;
|
|
1129
|
+
decrement<T extends string>(key: PathName<T>, value: number | Decimal): void;
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Multiplies the value of the specified attribute.
|
|
1132
1132
|
* @param key - The key of the attribute to multiply.
|
|
1133
1133
|
* @param value - The multiplier value.
|
|
1134
1134
|
*/
|
|
1135
|
-
multiply<T extends string>(key: PathName<T>, value: number): void;
|
|
1135
|
+
multiply<T extends string>(key: PathName<T>, value: number | Decimal): void;
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Divides the value of the specified attribute.
|
|
1138
1138
|
* @param key - The key of the attribute to divide.
|
|
1139
1139
|
* @param value - The divisor value.
|
|
1140
1140
|
*/
|
|
1141
|
-
divide<T extends string>(key: PathName<T>, value: number): void;
|
|
1141
|
+
divide<T extends string>(key: PathName<T>, value: number | Decimal): void;
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Sets the value of the specified attribute to the maximum of the current value and the provided value.
|
|
1144
1144
|
* @param key - The key of the attribute to compare.
|
|
@@ -1231,7 +1231,7 @@ declare namespace TSchema {
|
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Primitive data types.
|
|
1233
1233
|
*/
|
|
1234
|
-
type Primitive = 'boolean' | 'number' | 'decimal' | 'string' | 'date' | 'object' | 'array';
|
|
1234
|
+
type Primitive = 'boolean' | 'number' | 'decimal' | 'string' | 'string[]' | 'date' | 'object' | 'array';
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Primitive type with an optional default value.
|
|
1237
1237
|
*/
|
|
@@ -1579,17 +1579,19 @@ type PasswordHashOptions = {
|
|
|
1579
1579
|
*/
|
|
1580
1580
|
interface TPubSub {
|
|
1581
1581
|
/**
|
|
1582
|
-
* Subscribes to
|
|
1582
|
+
* Subscribes to a channel.
|
|
1583
|
+
* @param channel - The name of the channel to subscribe to.
|
|
1583
1584
|
* @param callback - The callback function to handle the event data.
|
|
1584
|
-
* @returns A function to unsubscribe from the
|
|
1585
|
+
* @returns A function to unsubscribe from the channel.
|
|
1585
1586
|
*/
|
|
1586
|
-
subscribe(callback: (payload:
|
|
1587
|
+
subscribe(channel: string, callback: (payload: _TValue) => void): VoidFunction;
|
|
1587
1588
|
/**
|
|
1588
|
-
* Publishes an event.
|
|
1589
|
+
* Publishes an event to a channel.
|
|
1590
|
+
* @param channel - The name of the channel to publish to.
|
|
1589
1591
|
* @param payload - The event data to publish.
|
|
1590
1592
|
* @returns A promise that resolves when the event is published.
|
|
1591
1593
|
*/
|
|
1592
|
-
publish(payload:
|
|
1594
|
+
publish(channel: string, payload: _TValue): Awaitable<void>;
|
|
1593
1595
|
}
|
|
1594
1596
|
|
|
1595
1597
|
type ProtoServiceOptions<Ext> = {
|
|
@@ -1777,4 +1779,4 @@ declare class ProtoService<Ext = any> extends ProtoType<Ext> {
|
|
|
1777
1779
|
}
|
|
1778
1780
|
|
|
1779
1781
|
export { type TPubSub as A, type TFileInfo as B, type DeserializeOptions as D, type ExtraOptions as E, type FindOptions as F, type InsertOptions as I, ProtoService as P, QuerySelector as Q, type RelationOptions as R, type SerializeOptions as S, TSchema as T, type _TValue as _, type ProtoServiceOptions as a, type ProtoServiceKeyOptions as b, type TFileStorage as c, type TSerializable as d, deserialize as e, type TExtensions as f, TQuery as g, TObject as h, TUser as i, TRole as j, TFile as k, ProtoType as l, type PathName as m, type TObjectType as n, type EventData as o, type DecodedQuery as p, type DecodedSortOption as q, type TValue as r, serialize as s, type FindOneOptions as t, type TUpdateOp as u, FieldSelectorExpression as v, QueryExpression as w, type TStorage as x, type TransactionOptions as y, type TQueryRandomOptions as z };
|
|
1780
|
-
//# sourceMappingURL=index-
|
|
1782
|
+
//# sourceMappingURL=index-BgZqiNxF.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BgZqiNxF.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TObject, e as decodeUpdateOp } from './index-
|
|
1
|
+
import { T as TObject, e as decodeUpdateOp } from './index-DyjcBbS1.mjs';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import { Decimal } from 'decimal.js';
|
|
4
4
|
import { prototypes, asyncStream, isBinaryData, isReadableStream, isBlob, base64ToBuffer, iterableToStream } from '@o2ter/utils-js';
|
|
5
|
-
import { P as PVK } from './private-
|
|
5
|
+
import { P as PVK } from './private-CNw40LZ7.mjs';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import { XSRF_COOKIE_NAME, XSRF_HEADER_NAME } from '@o2ter/server-js/dist/const';
|
|
8
8
|
import { io } from 'socket.io-client';
|
|
@@ -11,7 +11,7 @@ import { io } from 'socket.io-client';
|
|
|
11
11
|
// base.ts
|
|
12
12
|
//
|
|
13
13
|
// The MIT License
|
|
14
|
-
// Copyright (c) 2021 -
|
|
14
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
15
15
|
//
|
|
16
16
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
17
17
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -373,7 +373,7 @@ class TQueryBase extends TQueryFilterBase {
|
|
|
373
373
|
// index.ts
|
|
374
374
|
//
|
|
375
375
|
// The MIT License
|
|
376
|
-
// Copyright (c) 2021 -
|
|
376
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
377
377
|
//
|
|
378
378
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
379
379
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -500,7 +500,7 @@ class TQuery extends TQueryBase {
|
|
|
500
500
|
// index.ts
|
|
501
501
|
//
|
|
502
502
|
// The MIT License
|
|
503
|
-
// Copyright (c) 2021 -
|
|
503
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
504
504
|
//
|
|
505
505
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
506
506
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -524,12 +524,13 @@ const MASTER_USER_HEADER_NAME = 'X-PROTO-MASTER-USER';
|
|
|
524
524
|
const MASTER_PASS_HEADER_NAME = 'X-PROTO-MASTER-PASS';
|
|
525
525
|
const UPLOAD_TOKEN_HEADER_NAME = 'X-PROTO-UPLOAD-TOKEN';
|
|
526
526
|
const AUTH_COOKIE_KEY = 'x-proto-auth';
|
|
527
|
+
const PROTO_NOTY_MSG = 'PROTO_NOTY_MSG';
|
|
527
528
|
|
|
528
529
|
//
|
|
529
530
|
// user.ts
|
|
530
531
|
//
|
|
531
532
|
// The MIT License
|
|
532
|
-
// Copyright (c) 2021 -
|
|
533
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
533
534
|
//
|
|
534
535
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
535
536
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -559,7 +560,7 @@ class TUser extends TObject {
|
|
|
559
560
|
// role.ts
|
|
560
561
|
//
|
|
561
562
|
// The MIT License
|
|
562
|
-
// Copyright (c) 2021 -
|
|
563
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
563
564
|
//
|
|
564
565
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
565
566
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -628,7 +629,7 @@ class TRole extends TObject {
|
|
|
628
629
|
// file.ts
|
|
629
630
|
//
|
|
630
631
|
// The MIT License
|
|
631
|
-
// Copyright (c) 2021 -
|
|
632
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
632
633
|
//
|
|
633
634
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
634
635
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -689,7 +690,7 @@ class TFile extends TObject {
|
|
|
689
690
|
// types.ts
|
|
690
691
|
//
|
|
691
692
|
// The MIT License
|
|
692
|
-
// Copyright (c) 2021 -
|
|
693
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
693
694
|
//
|
|
694
695
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
695
696
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -719,7 +720,7 @@ const TObjectTypes = {
|
|
|
719
720
|
// utils.ts
|
|
720
721
|
//
|
|
721
722
|
// The MIT License
|
|
722
|
-
// Copyright (c) 2021 -
|
|
723
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
723
724
|
//
|
|
724
725
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
725
726
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -745,7 +746,7 @@ const isObjKey = (key, obj) => key in obj;
|
|
|
745
746
|
// methods.ts
|
|
746
747
|
//
|
|
747
748
|
// The MIT License
|
|
748
|
-
// Copyright (c) 2021 -
|
|
749
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
749
750
|
//
|
|
750
751
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
751
752
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -892,7 +893,7 @@ const applyObjectMethods = (object, proto) => {
|
|
|
892
893
|
// proto.ts
|
|
893
894
|
//
|
|
894
895
|
// The MIT License
|
|
895
|
-
// Copyright (c) 2021 -
|
|
896
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
896
897
|
//
|
|
897
898
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
898
899
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -969,7 +970,7 @@ class ProtoType {
|
|
|
969
970
|
// codec.ts
|
|
970
971
|
//
|
|
971
972
|
// The MIT License
|
|
972
|
-
// Copyright (c) 2021 -
|
|
973
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
973
974
|
//
|
|
974
975
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
975
976
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1056,7 +1057,7 @@ const deserialize = (buffer, options) => decodeEJSON(JSON.parse(buffer), [], opt
|
|
|
1056
1057
|
// index.ts
|
|
1057
1058
|
//
|
|
1058
1059
|
// The MIT License
|
|
1059
|
-
// Copyright (c) 2021 -
|
|
1060
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
1060
1061
|
//
|
|
1061
1062
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1062
1063
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1097,7 +1098,7 @@ const isFile = (x) => {
|
|
|
1097
1098
|
// query.ts
|
|
1098
1099
|
//
|
|
1099
1100
|
// The MIT License
|
|
1100
|
-
// Copyright (c) 2021 -
|
|
1101
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
1101
1102
|
//
|
|
1102
1103
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1103
1104
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1273,7 +1274,7 @@ class ProtoClientRelationQuery extends _ProtoClientQuery {
|
|
|
1273
1274
|
// request.ts
|
|
1274
1275
|
//
|
|
1275
1276
|
// The MIT License
|
|
1276
|
-
// Copyright (c) 2021 -
|
|
1277
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
1277
1278
|
//
|
|
1278
1279
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1279
1280
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1409,7 +1410,7 @@ class Service {
|
|
|
1409
1410
|
// internal.ts
|
|
1410
1411
|
//
|
|
1411
1412
|
// The MIT License
|
|
1412
|
-
// Copyright (c) 2021 -
|
|
1413
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
1413
1414
|
//
|
|
1414
1415
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1415
1416
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1695,7 +1696,7 @@ class ProtoClientInternal {
|
|
|
1695
1696
|
// index.ts
|
|
1696
1697
|
//
|
|
1697
1698
|
// The MIT License
|
|
1698
|
-
// Copyright (c) 2021 -
|
|
1699
|
+
// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
|
|
1699
1700
|
//
|
|
1700
1701
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1701
1702
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1789,5 +1790,5 @@ class ProtoClient extends ProtoType {
|
|
|
1789
1790
|
}
|
|
1790
1791
|
}
|
|
1791
1792
|
|
|
1792
|
-
export { AUTH_COOKIE_KEY as A, MASTER_USER_HEADER_NAME as M,
|
|
1793
|
-
//# sourceMappingURL=index-
|
|
1793
|
+
export { AUTH_COOKIE_KEY as A, MASTER_USER_HEADER_NAME as M, PROTO_NOTY_MSG as P, TQuery as T, UPLOAD_TOKEN_HEADER_NAME as U, MASTER_PASS_HEADER_NAME as a, TUser as b, ProtoType as c, deserialize as d, ProtoClient as e, classExtends as f, isObject as g, isUser as h, isQuery as i, isRole as j, isFile as k, serialize as s };
|
|
1794
|
+
//# sourceMappingURL=index-CPodB1P0.mjs.map
|