docpouch-client 0.8.16 → 0.8.18

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/index.d.ts CHANGED
@@ -255,9 +255,11 @@ export interface I_UserDisplay {
255
255
  email?: string;
256
256
  }
257
257
  export interface I_LoginResponse {
258
+ _id: string;
258
259
  token: string;
259
260
  isAdmin: boolean;
260
261
  userName: string;
262
+ expiresIn: number;
261
263
  }
262
264
  export interface I_DocumentEntry extends I_DocumentCreationOwned {
263
265
  _id: string;
@@ -270,6 +272,7 @@ export interface I_DocumentCreation {
270
272
  content: any;
271
273
  shareWithGroup: boolean;
272
274
  shareWithDepartment: boolean;
275
+ public: boolean;
273
276
  }
274
277
  export interface I_DocumentCreationOwned extends I_DocumentCreation {
275
278
  owner: string;
@@ -286,6 +289,7 @@ export interface I_DocumentQuery {
286
289
  subType?: number;
287
290
  shareWithGroup?: boolean;
288
291
  shareWithDepartment?: boolean;
292
+ public?: boolean;
289
293
  }
290
294
  export interface I_DataStructure {
291
295
  _id?: string | undefined;
package/dist/index.js CHANGED
@@ -100,7 +100,7 @@ export default class docPouchClient {
100
100
  if (this.realTimeSync) {
101
101
  this.initWebSocket();
102
102
  }
103
- return { token: response.token, isAdmin: response.isAdmin, userName: response.userName };
103
+ return { _id: response._id, token: response.token, isAdmin: response.isAdmin, userName: response.userName, expiresIn: response.expiresIn };
104
104
  }
105
105
  return null;
106
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docpouch-client",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/jest": "^30.0.0",
30
- "@types/node": "^24.3.0",
31
- "jest": "^30.0.5",
32
- "ts-jest": "^29.4.1",
33
- "typescript": "^5.9.2"
30
+ "@types/node": "^24.12.0",
31
+ "jest": "^30.3.0",
32
+ "ts-jest": "^29.4.9",
33
+ "typescript": "^5.9.3"
34
34
  },
35
35
  "dependencies": {
36
- "socket.io-client": "^4.8.1"
36
+ "socket.io-client": "^4.8.3"
37
37
  }
38
38
  }
package/src/index.ts CHANGED
@@ -130,7 +130,13 @@ export default class docPouchClient {
130
130
  this.initWebSocket();
131
131
  }
132
132
 
133
- return {token: response.token, isAdmin: response.isAdmin, userName: response.userName};
133
+ return {
134
+ _id: response._id,
135
+ token: response.token,
136
+ isAdmin: response.isAdmin,
137
+ userName: response.userName,
138
+ expiresIn: response.expiresIn
139
+ };
134
140
  }
135
141
  return null;
136
142
  }
@@ -558,9 +564,11 @@ export interface I_UserDisplay {
558
564
  }
559
565
 
560
566
  export interface I_LoginResponse {
567
+ _id: string;
561
568
  token: string;
562
569
  isAdmin: boolean;
563
570
  userName: string;
571
+ expiresIn: number
564
572
  }
565
573
 
566
574
  // Document related types
@@ -576,6 +584,7 @@ export interface I_DocumentCreation {
576
584
  content: any;
577
585
  shareWithGroup: boolean;
578
586
  shareWithDepartment: boolean;
587
+ public: boolean;
579
588
  }
580
589
 
581
590
 
@@ -596,6 +605,7 @@ export interface I_DocumentQuery {
596
605
  subType?: number;
597
606
  shareWithGroup?: boolean;
598
607
  shareWithDepartment?: boolean;
608
+ public?: boolean;
599
609
  }
600
610
 
601
611