@@ -84,12 +84,22 @@ declare const Parse: {
84
84
} ) => Promise < void > ;
85
85
} ;
86
86
setCryptoController ( controller : {
87
- encrypt : ( obj : any , secretKey : string ) => string ;
88
- decrypt : ( encryptedText : string , secretKey : any ) => string ;
87
+ async : 0 ;
88
+ encrypt : ( json : any , parseSecret : any ) => string ;
89
+ decrypt : ( encryptedJSON : string , secretKey : any ) => string ;
90
+ } | {
91
+ async : 1 ;
92
+ encrypt : ( json : any , parseSecret : any ) => Promise < string > ;
93
+ decrypt : ( encryptedJSON : string , secretKey : any ) => Promise < string > ;
89
94
} ) : void ;
90
95
getCryptoController ( ) : {
91
- encrypt : ( obj : any , secretKey : string ) => string ;
92
- decrypt : ( encryptedText : string , secretKey : any ) => string ;
96
+ async : 0 ;
97
+ encrypt : ( json : any , parseSecret : any ) => string ;
98
+ decrypt : ( encryptedJSON : string , secretKey : any ) => string ;
99
+ } | {
100
+ async : 1 ;
101
+ encrypt : ( json : any , parseSecret : any ) => Promise < string > ;
102
+ decrypt : ( encryptedJSON : string , secretKey : any ) => Promise < string > ;
93
103
} ;
94
104
setEventEmitter ( eventEmitter : any ) : void ;
95
105
getEventEmitter ( ) : any ;
@@ -223,21 +233,15 @@ declare const Parse: {
223
233
purge : ( className : string ) => Promise < any > ;
224
234
get : ( className : string , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
225
235
delete : ( className : string , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < void > ;
226
- create : ( className : string , params : any , options ? /**
227
- * @member {string} Parse.maintenanceKey
228
- * @static
229
- */ : import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
236
+ create : ( className : string , params : any , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
230
237
update : ( className : string , params : any , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
231
238
send ( className : string , method : string , params : any , options ?: import ( "./RESTController" ) . RequestOptions ) : Promise < any > ;
232
239
} ) : void ;
233
240
getSchemaController ( ) : {
234
241
purge : ( className : string ) => Promise < any > ;
235
242
get : ( className : string , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
236
243
delete : ( className : string , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < void > ;
237
- create : ( className : string , params : any , options ? /**
238
- * @member {string} Parse.maintenanceKey
239
- * @static
240
- */ : import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
244
+ create : ( className : string , params : any , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
241
245
update : ( className : string , params : any , options ?: import ( "./RESTController" ) . RequestOptions ) => Promise < any > ;
242
246
send ( className : string , method : string , params : any , options ?: import ( "./RESTController" ) . RequestOptions ) : Promise < any > ;
243
247
} ;
@@ -563,11 +567,6 @@ declare const Parse: {
563
567
* @static
564
568
*/
565
569
liveQueryServerURL : any ;
566
- /**
567
- * @member {boolean} Parse.encryptedUser
568
- * @static
569
- */
570
- encryptedUser : boolean;
571
570
/**
572
571
* @member {string} Parse.secret
573
572
* @static
@@ -615,19 +614,5 @@ declare const Parse: {
615
614
* @returns {object }
616
615
*/
617
616
dumpLocalDatastore ( ) : Promise < any > ;
618
- /**
619
- * Enable the current user encryption.
620
- * This must be called before login any user.
621
- *
622
- * @static
623
- */
624
- enableEncryptedUser ( ) : void ;
625
- /**
626
- * Flag that indicates whether Encrypted User is enabled.
627
- *
628
- * @static
629
- * @returns {boolean }
630
- */
631
- isEncryptedUserEnabled ( ) : any;
632
617
} ;
633
618
export default Parse ;
0 commit comments