@kedaruma/revlm-client 1.0.34 → 1.0.35
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.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { User } from '@kedaruma/revlm-shared/models/user-types';
|
|
2
|
-
export { User, UserBase } from '@kedaruma/revlm-shared/models/user-types';
|
|
1
|
+
import { User as User$1, UserBase as UserBase$1 } from '@kedaruma/revlm-shared/models/user-types';
|
|
3
2
|
import * as bson from 'bson';
|
|
4
3
|
import { Timestamp, Long } from 'bson';
|
|
5
4
|
|
|
5
|
+
type ReadonlyExcept<T, K extends keyof T> = {
|
|
6
|
+
readonly [P in Exclude<keyof T, K>]: T[P];
|
|
7
|
+
} & {
|
|
8
|
+
[P in K]: T[P];
|
|
9
|
+
};
|
|
10
|
+
type UserBase = ReadonlyExcept<UserBase$1, "userType" | "roles">;
|
|
11
|
+
type User = ReadonlyExcept<User$1, "userType" | "roles">;
|
|
6
12
|
type RevlmErrorResponse = {
|
|
7
13
|
ok: false;
|
|
8
14
|
error: string;
|
|
@@ -167,8 +173,8 @@ type EmailPasswordCredential = {
|
|
|
167
173
|
email: string;
|
|
168
174
|
password: string;
|
|
169
175
|
};
|
|
170
|
-
type UserInput = Omit<User, 'userType'> & {
|
|
171
|
-
userType: User['userType'] | string;
|
|
176
|
+
type UserInput = Omit<User$1, 'userType'> & {
|
|
177
|
+
userType: User$1['userType'] | string;
|
|
172
178
|
};
|
|
173
179
|
type RevlmOptions = {
|
|
174
180
|
fetchImpl?: typeof fetch;
|
|
@@ -269,4 +275,4 @@ declare const BSON: typeof bson & {
|
|
|
269
275
|
ObjectID: typeof bson.ObjectId;
|
|
270
276
|
};
|
|
271
277
|
|
|
272
|
-
export { type AggregatePipelineStage, App, BSON, type BaseChangeEvent, type ChangeEvent, type ChangeEventId, type CountOptions, Credentials, type DeleteEvent, type DeleteResult, type DeleteUserResponse, type DeleteUserSuccess, type Document, type DocumentKey, type DocumentNamespace, type DropDatabaseEvent, type DropEvent, type Filter, type FindOneAndModifyOptions, type FindOneOptions, type FindOptions, type InsertEvent, type InsertManyResult, type InsertOneResult, type InvalidateEvent, type LoginResponse, type LoginSuccess, MdbCollection, MongoDBService, type NewDocument, ObjectID, ObjectId, type OperationType, type ProvisionalLoginResponse, type ProvisionalLoginSuccess, type RegisterUserResponse, type RegisterUserSuccess, type RenameEvent, type ReplaceEvent, Revlm, RevlmDBDatabase, type RevlmErrorResponse, type RevlmOptions, type RevlmResponse, RevlmUser, type Update, type UpdateDescription, type UpdateEvent, type UpdateOptions, type UpdateResult, type WatchOptionsFilter, type WatchOptionsIds };
|
|
278
|
+
export { type AggregatePipelineStage, App, BSON, type BaseChangeEvent, type ChangeEvent, type ChangeEventId, type CountOptions, Credentials, type DeleteEvent, type DeleteResult, type DeleteUserResponse, type DeleteUserSuccess, type Document, type DocumentKey, type DocumentNamespace, type DropDatabaseEvent, type DropEvent, type Filter, type FindOneAndModifyOptions, type FindOneOptions, type FindOptions, type InsertEvent, type InsertManyResult, type InsertOneResult, type InvalidateEvent, type LoginResponse, type LoginSuccess, MdbCollection, MongoDBService, type NewDocument, ObjectID, ObjectId, type OperationType, type ProvisionalLoginResponse, type ProvisionalLoginSuccess, type RegisterUserResponse, type RegisterUserSuccess, type RenameEvent, type ReplaceEvent, Revlm, RevlmDBDatabase, type RevlmErrorResponse, type RevlmOptions, type RevlmResponse, RevlmUser, type Update, type UpdateDescription, type UpdateEvent, type UpdateOptions, type UpdateResult, type User, type UserBase, type WatchOptionsFilter, type WatchOptionsIds };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { User } from '@kedaruma/revlm-shared/models/user-types';
|
|
2
|
-
export { User, UserBase } from '@kedaruma/revlm-shared/models/user-types';
|
|
1
|
+
import { User as User$1, UserBase as UserBase$1 } from '@kedaruma/revlm-shared/models/user-types';
|
|
3
2
|
import * as bson from 'bson';
|
|
4
3
|
import { Timestamp, Long } from 'bson';
|
|
5
4
|
|
|
5
|
+
type ReadonlyExcept<T, K extends keyof T> = {
|
|
6
|
+
readonly [P in Exclude<keyof T, K>]: T[P];
|
|
7
|
+
} & {
|
|
8
|
+
[P in K]: T[P];
|
|
9
|
+
};
|
|
10
|
+
type UserBase = ReadonlyExcept<UserBase$1, "userType" | "roles">;
|
|
11
|
+
type User = ReadonlyExcept<User$1, "userType" | "roles">;
|
|
6
12
|
type RevlmErrorResponse = {
|
|
7
13
|
ok: false;
|
|
8
14
|
error: string;
|
|
@@ -167,8 +173,8 @@ type EmailPasswordCredential = {
|
|
|
167
173
|
email: string;
|
|
168
174
|
password: string;
|
|
169
175
|
};
|
|
170
|
-
type UserInput = Omit<User, 'userType'> & {
|
|
171
|
-
userType: User['userType'] | string;
|
|
176
|
+
type UserInput = Omit<User$1, 'userType'> & {
|
|
177
|
+
userType: User$1['userType'] | string;
|
|
172
178
|
};
|
|
173
179
|
type RevlmOptions = {
|
|
174
180
|
fetchImpl?: typeof fetch;
|
|
@@ -269,4 +275,4 @@ declare const BSON: typeof bson & {
|
|
|
269
275
|
ObjectID: typeof bson.ObjectId;
|
|
270
276
|
};
|
|
271
277
|
|
|
272
|
-
export { type AggregatePipelineStage, App, BSON, type BaseChangeEvent, type ChangeEvent, type ChangeEventId, type CountOptions, Credentials, type DeleteEvent, type DeleteResult, type DeleteUserResponse, type DeleteUserSuccess, type Document, type DocumentKey, type DocumentNamespace, type DropDatabaseEvent, type DropEvent, type Filter, type FindOneAndModifyOptions, type FindOneOptions, type FindOptions, type InsertEvent, type InsertManyResult, type InsertOneResult, type InvalidateEvent, type LoginResponse, type LoginSuccess, MdbCollection, MongoDBService, type NewDocument, ObjectID, ObjectId, type OperationType, type ProvisionalLoginResponse, type ProvisionalLoginSuccess, type RegisterUserResponse, type RegisterUserSuccess, type RenameEvent, type ReplaceEvent, Revlm, RevlmDBDatabase, type RevlmErrorResponse, type RevlmOptions, type RevlmResponse, RevlmUser, type Update, type UpdateDescription, type UpdateEvent, type UpdateOptions, type UpdateResult, type WatchOptionsFilter, type WatchOptionsIds };
|
|
278
|
+
export { type AggregatePipelineStage, App, BSON, type BaseChangeEvent, type ChangeEvent, type ChangeEventId, type CountOptions, Credentials, type DeleteEvent, type DeleteResult, type DeleteUserResponse, type DeleteUserSuccess, type Document, type DocumentKey, type DocumentNamespace, type DropDatabaseEvent, type DropEvent, type Filter, type FindOneAndModifyOptions, type FindOneOptions, type FindOptions, type InsertEvent, type InsertManyResult, type InsertOneResult, type InvalidateEvent, type LoginResponse, type LoginSuccess, MdbCollection, MongoDBService, type NewDocument, ObjectID, ObjectId, type OperationType, type ProvisionalLoginResponse, type ProvisionalLoginSuccess, type RegisterUserResponse, type RegisterUserSuccess, type RenameEvent, type ReplaceEvent, Revlm, RevlmDBDatabase, type RevlmErrorResponse, type RevlmOptions, type RevlmResponse, RevlmUser, type Update, type UpdateDescription, type UpdateEvent, type UpdateOptions, type UpdateResult, type User, type UserBase, type WatchOptionsFilter, type WatchOptionsIds };
|