docpouch-client 0.8.17 → 0.8.19

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;
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.17",
3
+ "version": "0.8.19",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -29,7 +29,7 @@
29
29
  "@types/jest": "^30.0.0",
30
30
  "@types/node": "^24.12.0",
31
31
  "jest": "^30.3.0",
32
- "ts-jest": "^29.4.6",
32
+ "ts-jest": "^29.4.9",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
35
  "dependencies": {
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
@@ -611,6 +619,7 @@ export interface I_DataStructure {
611
619
 
612
620
  export interface I_StructureField {
613
621
  name: string;
622
+ displayName: string; //should not contain spaces or non-ASCII characters
614
623
  type: string;
615
624
  items?: string;
616
625
  }