shred-api-client 1.9.5 → 1.9.7
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/api/User.api.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare class UserAPI implements UserAPISchema {
|
|
|
10
10
|
confirmCode(email: string, code: number): Promise<boolean>;
|
|
11
11
|
isEmailAvaliable(email: string): Promise<boolean>;
|
|
12
12
|
update(context: Context, update: Partial<Update>): Promise<boolean>;
|
|
13
|
+
getBindedUsers(context: Context): Promise<User[]>;
|
|
13
14
|
setup(context: Context): Promise<boolean>;
|
|
14
15
|
authenticate(context: Context, system: System): Promise<string>;
|
|
15
16
|
createUser(email: string, name: string, password: string, passwordConfirmation: string, profession: string | null, invitationCode: string | null): Promise<any>;
|
package/dist/api/User.api.js
CHANGED
|
@@ -35,6 +35,11 @@ class UserAPI {
|
|
|
35
35
|
const data = await this.clientHTTP.makeRequest(this.env, `${endpointData.uri}`, endpointData.method, Object.assign({}, update), context);
|
|
36
36
|
return data.isValid;
|
|
37
37
|
}
|
|
38
|
+
async getBindedUsers(context) {
|
|
39
|
+
const endpointData = User_schema_1.UserEndpoints.GetBindedUsers;
|
|
40
|
+
const data = await this.clientHTTP.makeRequest(this.env, `${endpointData.uri}`, endpointData.method, null, context);
|
|
41
|
+
return data.success;
|
|
42
|
+
}
|
|
38
43
|
async setup(context) {
|
|
39
44
|
const endpointData = User_schema_1.UserEndpoints.Setup;
|
|
40
45
|
const data = await this.clientHTTP.makeRequest(this.env, `${endpointData.uri}`, endpointData.method, null, context);
|
|
@@ -109,7 +109,7 @@ type Project = {
|
|
|
109
109
|
denyFeedback?: DenyFeedback[];
|
|
110
110
|
approvedBy?: string;
|
|
111
111
|
approveTimestamp?: number;
|
|
112
|
-
expirationTimestamp
|
|
112
|
+
expirationTimestamp: number;
|
|
113
113
|
sentToApproveTimestamp?: number;
|
|
114
114
|
submitTimestamp: number;
|
|
115
115
|
editTimestamp?: number;
|
|
@@ -9,6 +9,7 @@ interface UserAPISchema {
|
|
|
9
9
|
authenticate: (context: Context, system: System) => Promise<string>;
|
|
10
10
|
update: (context: Context, update: Partial<Update>) => Promise<boolean>;
|
|
11
11
|
setup: (context: Context) => Promise<boolean>;
|
|
12
|
+
getBindedUsers: (ctx: Context) => Promise<User[]>;
|
|
12
13
|
createUser: (email: string, name: string, password: string, passwordConfirmation: string, profession: string | null, invitationCode: string | null) => Promise<User>;
|
|
13
14
|
}
|
|
14
15
|
declare const UserEndpoints: {
|
|
@@ -20,6 +21,10 @@ declare const UserEndpoints: {
|
|
|
20
21
|
uri: string;
|
|
21
22
|
method: string;
|
|
22
23
|
};
|
|
24
|
+
GetBindedUsers: {
|
|
25
|
+
uri: string;
|
|
26
|
+
method: string;
|
|
27
|
+
};
|
|
23
28
|
EnableUser: {
|
|
24
29
|
uri: string;
|
|
25
30
|
method: string;
|