proto.io 0.0.139 → 0.0.140
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/client.d.ts +3 -3
- package/dist/client.js +1 -1
- package/dist/client.mjs +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +21 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -18
- package/dist/index.mjs.map +1 -1
- package/dist/internals/{index-rcLPSrw6.d.ts → index-BabXTvEZ.d.ts} +18 -9
- package/dist/internals/index-BabXTvEZ.d.ts.map +1 -0
- package/dist/internals/{index-DRgmWum4.d.ts → index-BtnEuEVn.d.ts} +4 -2
- package/dist/internals/index-BtnEuEVn.d.ts.map +1 -0
- package/dist/internals/{index-CTyYPai3.js → index-D5nf79vF.js} +15 -1
- package/dist/internals/{index-CTyYPai3.js.map → index-D5nf79vF.js.map} +1 -1
- package/dist/internals/{index-D1h-5NmA.d.ts → index-DCjn9EDu.d.ts} +2 -2
- package/dist/internals/index-DCjn9EDu.d.ts.map +1 -0
- package/dist/internals/{index-C8hhBfuh.mjs → index-ZIegYNKT.mjs} +15 -1
- package/dist/internals/{index-C8hhBfuh.mjs.map → index-ZIegYNKT.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/internals/index-D1h-5NmA.d.ts.map +0 -1
- package/dist/internals/index-DRgmWum4.d.ts.map +0 -1
- package/dist/internals/index-rcLPSrw6.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as TFileStorage, T as TSchema, P as ProtoService, C as TFileInfo } from './index-
|
|
1
|
+
import { c as TFileStorage, T as TSchema, P as ProtoService, C as TFileInfo } from './index-BabXTvEZ.js';
|
|
2
2
|
|
|
3
3
|
type FileStorageOptions = {
|
|
4
4
|
chunkSize?: number;
|
|
@@ -22,4 +22,4 @@ declare abstract class FileStorageBase implements TFileStorage {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export { FileStorageBase as F, type FileStorageOptions as a };
|
|
25
|
-
//# sourceMappingURL=index-
|
|
25
|
+
//# sourceMappingURL=index-DCjn9EDu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DCjn9EDu.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1136,6 +1136,17 @@ class ProtoClientInternal {
|
|
|
1136
1136
|
setSessionToken(proto, token) {
|
|
1137
1137
|
this.service.setSessionToken(token);
|
|
1138
1138
|
}
|
|
1139
|
+
async sessionInfo(proto, options) {
|
|
1140
|
+
const { serializeOpts, context, ...opts } = options ?? {};
|
|
1141
|
+
const res = await this.service.request({
|
|
1142
|
+
method: 'get',
|
|
1143
|
+
baseURL: this.options.endpoint,
|
|
1144
|
+
url: 'sessionInfo',
|
|
1145
|
+
responseType: 'text',
|
|
1146
|
+
...opts,
|
|
1147
|
+
});
|
|
1148
|
+
return proto.rebind(deserialize(res.data));
|
|
1149
|
+
}
|
|
1139
1150
|
async currentUser(proto, options) {
|
|
1140
1151
|
const { serializeOpts, context, ...opts } = options ?? {};
|
|
1141
1152
|
const res = await this.service.request({
|
|
@@ -1422,6 +1433,9 @@ class ProtoClient extends ProtoType {
|
|
|
1422
1433
|
setSessionToken(token) {
|
|
1423
1434
|
this[PVK].setSessionToken(this, token);
|
|
1424
1435
|
}
|
|
1436
|
+
sessionInfo(options) {
|
|
1437
|
+
return this[PVK].sessionInfo(this, options);
|
|
1438
|
+
}
|
|
1425
1439
|
currentUser(options) {
|
|
1426
1440
|
return this[PVK].currentUser(this, options);
|
|
1427
1441
|
}
|
|
@@ -1449,4 +1463,4 @@ class ProtoClient extends ProtoType {
|
|
|
1449
1463
|
}
|
|
1450
1464
|
|
|
1451
1465
|
export { AUTH_COOKIE_KEY as A, MASTER_USER_HEADER_NAME as M, ProtoType as P, TQuery as T, UPLOAD_TOKEN_HEADER_NAME as U, MASTER_PASS_HEADER_NAME as a, TUser as b, ProtoClient as c, deserialize as d, classExtends as e, isObject as f, isUser as g, isRole as h, isQuery as i, isFile as j, serialize as s };
|
|
1452
|
-
//# sourceMappingURL=index-
|
|
1466
|
+
//# sourceMappingURL=index-ZIegYNKT.mjs.map
|