parse 6.1.0-alpha.3 → 6.1.0-alpha.4
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/parse.js +6 -4
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +6 -4
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/ParseObject.js +2 -1
- package/lib/browser/ParseOp.js +1 -1
- package/lib/browser/TaskQueue.js +1 -0
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/ParseObject.js +2 -1
- package/lib/node/ParseOp.js +1 -1
- package/lib/node/TaskQueue.js +1 -0
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/ObjectStateMutations.js +13 -13
- package/lib/react-native/ParseACL.js +7 -7
- package/lib/react-native/ParseCLP.js +15 -15
- package/lib/react-native/ParseObject.js +9 -9
- package/lib/react-native/ParseUser.js +15 -15
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/ParseObject.js +2 -1
- package/lib/weapp/ParseOp.js +1 -1
- package/lib/weapp/TaskQueue.js +1 -0
- package/package.json +8 -8
- package/types/Analytics.d.ts +1 -3
- package/types/CoreManager.d.ts +56 -62
- package/types/LocalDatastore.d.ts +3 -3
- package/types/LocalDatastoreController.default.d.ts +1 -1
- package/types/LocalDatastoreController.react-native.d.ts +1 -1
- package/types/ObjectStateMutations.d.ts +12 -18
- package/types/Parse.d.ts +49 -310
- package/types/ParseACL.d.ts +2 -6
- package/types/ParseCLP.d.ts +2 -6
- package/types/ParseConfig.d.ts +3 -11
- package/types/ParseFile.d.ts +8 -12
- package/types/ParseInstallation.d.ts +4 -4
- package/types/ParseObject.d.ts +24 -26
- package/types/ParseOp.d.ts +13 -15
- package/types/ParsePolygon.d.ts +3 -3
- package/types/ParseQuery.d.ts +38 -46
- package/types/ParseSchema.d.ts +12 -28
- package/types/ParseUser.d.ts +8 -14
- package/types/Push.d.ts +2 -2
- package/types/RESTController.d.ts +4 -4
- package/types/SingleInstanceStateController.d.ts +1 -1
- package/types/Storage.d.ts +2 -2
- package/types/StorageController.react-native.d.ts +2 -2
- package/types/TaskQueue.d.ts +3 -3
- package/types/UniqueInstanceStateController.d.ts +1 -1
- package/types/arrayContainsObject.d.ts +1 -1
- package/types/encode.d.ts +1 -1
- package/types/eslint.config.mjs +30 -0
- package/types/unique.d.ts +1 -1
- package/types/unsavedChildren.d.ts +1 -1
package/types/Push.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import ParseQuery from './ParseQuery';
|
|
|
2
2
|
import type ParseObject from './ParseObject';
|
|
3
3
|
import type { WhereClause } from './ParseQuery';
|
|
4
4
|
import type { FullOptions } from './RESTController';
|
|
5
|
-
export
|
|
5
|
+
export interface PushData {
|
|
6
6
|
where?: WhereClause | ParseQuery;
|
|
7
7
|
push_time?: Date | string;
|
|
8
8
|
expiration_time?: Date | string;
|
|
9
9
|
expiration_interval?: number;
|
|
10
10
|
data?: any;
|
|
11
11
|
channels?: string[];
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
/**
|
|
14
14
|
* Contains functions to deal with Push in Parse.
|
|
15
15
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface RequestOptions {
|
|
2
2
|
useMasterKey?: boolean;
|
|
3
3
|
useMaintenanceKey?: boolean;
|
|
4
4
|
sessionToken?: string;
|
|
@@ -11,8 +11,8 @@ export type RequestOptions = {
|
|
|
11
11
|
usePost?: boolean;
|
|
12
12
|
ignoreEmailVerification?: boolean;
|
|
13
13
|
transaction?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export
|
|
14
|
+
}
|
|
15
|
+
export interface FullOptions {
|
|
16
16
|
success?: any;
|
|
17
17
|
error?: any;
|
|
18
18
|
useMasterKey?: boolean;
|
|
@@ -21,7 +21,7 @@ export type FullOptions = {
|
|
|
21
21
|
installationId?: string;
|
|
22
22
|
progress?: any;
|
|
23
23
|
usePost?: boolean;
|
|
24
|
-
}
|
|
24
|
+
}
|
|
25
25
|
declare const RESTController: {
|
|
26
26
|
ajax(method: string, url: string, data: any, headers?: any, options?: FullOptions): (Promise<any> & {
|
|
27
27
|
resolve: (res: any) => void;
|
|
@@ -6,7 +6,7 @@ export declare function initializeState(obj: ParseObject, initial?: State): Stat
|
|
|
6
6
|
export declare function removeState(obj: ParseObject): State | null;
|
|
7
7
|
export declare function getServerData(obj: ParseObject): AttributeMap;
|
|
8
8
|
export declare function setServerData(obj: ParseObject, attributes: AttributeMap): void;
|
|
9
|
-
export declare function getPendingOps(obj: ParseObject):
|
|
9
|
+
export declare function getPendingOps(obj: ParseObject): OpsMap[];
|
|
10
10
|
export declare function setPendingOp(obj: ParseObject, attr: string, op?: Op): void;
|
|
11
11
|
export declare function pushPendingState(obj: ParseObject): void;
|
|
12
12
|
export declare function popPendingState(obj: ParseObject): OpsMap;
|
package/types/Storage.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ declare const Storage: {
|
|
|
6
6
|
setItemAsync(path: string, value: string): Promise<void>;
|
|
7
7
|
removeItem(path: string): void;
|
|
8
8
|
removeItemAsync(path: string): Promise<void>;
|
|
9
|
-
getAllKeys():
|
|
10
|
-
getAllKeysAsync(): Promise<
|
|
9
|
+
getAllKeys(): string[];
|
|
10
|
+
getAllKeysAsync(): Promise<string[]>;
|
|
11
11
|
generatePath(path: string): string;
|
|
12
12
|
_clear(): void;
|
|
13
13
|
};
|
|
@@ -4,8 +4,8 @@ declare const StorageController: {
|
|
|
4
4
|
setItemAsync(path: string, value: string): Promise<void>;
|
|
5
5
|
removeItemAsync(path: string): Promise<void>;
|
|
6
6
|
getAllKeysAsync(): Promise<readonly string[]>;
|
|
7
|
-
multiGet(keys:
|
|
8
|
-
multiRemove(keys:
|
|
7
|
+
multiGet(keys: string[]): Promise<readonly [string, string | null][] | null>;
|
|
8
|
+
multiRemove(keys: string[]): Promise<string[]>;
|
|
9
9
|
clear(): Promise<void>;
|
|
10
10
|
};
|
|
11
11
|
export default StorageController;
|
package/types/TaskQueue.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function initializeState(obj: ParseObject, initial?: State): Stat
|
|
|
6
6
|
export declare function removeState(obj: ParseObject): State | null;
|
|
7
7
|
export declare function getServerData(obj: ParseObject): AttributeMap;
|
|
8
8
|
export declare function setServerData(obj: ParseObject, attributes: AttributeMap): void;
|
|
9
|
-
export declare function getPendingOps(obj: ParseObject):
|
|
9
|
+
export declare function getPendingOps(obj: ParseObject): OpsMap[];
|
|
10
10
|
export declare function setPendingOp(obj: ParseObject, attr: string, op?: Op): void;
|
|
11
11
|
export declare function pushPendingState(obj: ParseObject): void;
|
|
12
12
|
export declare function popPendingState(obj: ParseObject): OpsMap;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type ParseObject from './ParseObject';
|
|
2
|
-
export default function arrayContainsObject(array:
|
|
2
|
+
export default function arrayContainsObject(array: any[], object: ParseObject): boolean;
|
package/types/encode.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function (value: any, disallowObjects?: boolean, forcePointers?: boolean, seen?:
|
|
1
|
+
export default function (value: any, disallowObjects?: boolean, forcePointers?: boolean, seen?: any[], offline?: boolean): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import tseslint from 'typescript-eslint';
|
|
3
|
+
import expectType from 'eslint-plugin-expect-type/configs/recommended';
|
|
4
|
+
|
|
5
|
+
export default tseslint.config({
|
|
6
|
+
files: ['**/*.js', '**/*.ts'],
|
|
7
|
+
extends: [
|
|
8
|
+
expectType,
|
|
9
|
+
eslint.configs.recommended,
|
|
10
|
+
...tseslint.configs.recommended,
|
|
11
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
12
|
+
],
|
|
13
|
+
plugins: {
|
|
14
|
+
'@typescript-eslint': tseslint.plugin,
|
|
15
|
+
},
|
|
16
|
+
rules: {
|
|
17
|
+
'@typescript-eslint/no-unused-vars': 'off',
|
|
18
|
+
'@typescript-eslint/no-unused-expressions': 'off',
|
|
19
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
20
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
21
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
22
|
+
},
|
|
23
|
+
languageOptions: {
|
|
24
|
+
parser: tseslint.parser,
|
|
25
|
+
parserOptions: {
|
|
26
|
+
projectService: true,
|
|
27
|
+
tsconfigRootDir: import.meta.dirname,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
package/types/unique.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function unique<T>(arr:
|
|
1
|
+
export default function unique<T>(arr: T[]): T[];
|
|
@@ -8,4 +8,4 @@ import type ParseObject from './ParseObject';
|
|
|
8
8
|
* @param {boolean} allowDeepUnsaved
|
|
9
9
|
* @returns {Array}
|
|
10
10
|
*/
|
|
11
|
-
export default function unsavedChildren(obj: ParseObject, allowDeepUnsaved?: boolean):
|
|
11
|
+
export default function unsavedChildren(obj: ParseObject, allowDeepUnsaved?: boolean): (ParseFile | ParseObject)[];
|