@vizmo/parse-server 9.10.0-2 → 9.11.0-1
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/README.md +9 -1
- package/lib/Adapters/Auth/AuthAdapter.js +3 -3
- package/lib/Adapters/Auth/index.js +83 -23
- package/lib/Adapters/Auth/ldap.js +13 -2
- package/lib/Adapters/Auth/mfa.js +4 -3
- package/lib/Adapters/Cache/LRUCache.js +26 -2
- package/lib/Adapters/Storage/Mongo/MongoStorageAdapter.js +16 -3
- package/lib/Adapters/Storage/Mongo/MongoTransform.js +6 -3
- package/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js +7 -5
- package/lib/Adapters/Storage/StorageAdapter.js +1 -1
- package/lib/Auth.js +16 -7
- package/lib/Config.js +14 -5
- package/lib/Controllers/DatabaseController.js +76 -23
- package/lib/Controllers/FilesController.js +28 -24
- package/lib/Controllers/SchemaController.js +66 -18
- package/lib/Controllers/UserController.js +52 -37
- package/lib/Deprecator/Deprecations.js +5 -1
- package/lib/GraphQL/ParseGraphQLSchema.js +4 -4
- package/lib/GraphQL/ParseGraphQLServer.js +83 -22
- package/lib/LiveQuery/ParseLiveQueryServer.js +116 -60
- package/lib/LiveQuery/QueryTools.js +31 -60
- package/lib/Options/Definitions.js +15 -9
- package/lib/Options/docs.js +10 -9
- package/lib/Options/index.js +1 -1
- package/lib/PromiseRouter.js +2 -19
- package/lib/RestQuery.js +28 -5
- package/lib/RestWrite.js +676 -70
- package/lib/Routers/SessionsRouter.js +5 -1
- package/lib/Routers/UsersRouter.js +9 -2
- package/lib/SchemaMigrations/DefinedSchemas.js +7 -3
- package/lib/SharedRest.js +7 -1
- package/lib/Utils.js +17 -1
- package/lib/batch.js +3 -2
- package/lib/cloud-code/Parse.Cloud.js +8 -2
- package/lib/middlewares.js +20 -3
- package/lib/triggers.js +7 -7
- package/package.json +19 -32
- package/types/LiveQuery/ParseLiveQueryServer.d.ts +3 -0
- package/types/Options/index.d.ts +1 -0
- package/types/ParseServer.d.ts +2 -1
|
@@ -32,6 +32,7 @@ declare class ParseLiveQueryServer {
|
|
|
32
32
|
_onAfterSave(message: any): Promise<void>;
|
|
33
33
|
_onConnect(parseWebsocket: any): void;
|
|
34
34
|
_handleDisconnect(parseWebsocket: any, reason?: SubscriptionRemovalReason): Promise<void>;
|
|
35
|
+
_validateQueryConstraints(where: any): void;
|
|
35
36
|
_isActiveClient(parseWebsocket: any, client: any): boolean;
|
|
36
37
|
_matchesSubscription(parseObject: any, subscription: any): boolean;
|
|
37
38
|
_clearCachedRoles(userId: string): Promise<void>;
|
|
@@ -40,6 +41,8 @@ declare class ParseLiveQueryServer {
|
|
|
40
41
|
userId?: string;
|
|
41
42
|
}>;
|
|
42
43
|
_matchesCLP(classLevelPermissions?: any, object?: any, client?: any, requestId?: number, op?: string): Promise<any>;
|
|
44
|
+
_loadRolesForProtectedFields(classLevelPermissions?: any, clientAuth?: any): Promise<void>;
|
|
45
|
+
_rolesForCLPOperation(classLevelPermissions?: any, clientAuth?: any, op?: string, appConfig?: any): Promise<string[]>;
|
|
43
46
|
_filterSensitiveData(classLevelPermissions?: any, res?: any, client?: any, requestId?: number, op?: string, query?: any): Promise<void>;
|
|
44
47
|
_getCLPOperation(query: any): "get" | "find";
|
|
45
48
|
_verifyACL(acl: any, token: string): Promise<boolean>;
|
package/types/Options/index.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export interface ParseServerOptions {
|
|
|
137
137
|
security?: SecurityOptions;
|
|
138
138
|
enforcePrivateUsers?: boolean;
|
|
139
139
|
allowExpiredAuthDataToken?: boolean;
|
|
140
|
+
enableLiveQueryClassLevelPermissionRoles?: boolean;
|
|
140
141
|
requestKeywordDenylist?: (RequestKeywordDenylist[]);
|
|
141
142
|
rateLimit?: (RateLimitOptions[]);
|
|
142
143
|
verifyServerUrl?: boolean;
|
package/types/ParseServer.d.ts
CHANGED
|
@@ -36,8 +36,9 @@ declare class ParseServer {
|
|
|
36
36
|
* Create an express app for the parse server
|
|
37
37
|
* @param {Object} options let you specify the maxUploadSize when creating the express app */
|
|
38
38
|
static app(options: any): any;
|
|
39
|
-
static promiseRouter({ appId }: {
|
|
39
|
+
static promiseRouter({ appId, options }: {
|
|
40
40
|
appId: any;
|
|
41
|
+
options: any;
|
|
41
42
|
}): any;
|
|
42
43
|
/**
|
|
43
44
|
* starts the parse server's express app
|