@fabriktor/client 0.0.21 → 0.0.22
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/src/users/users.js +23 -4
- package/package.json +1 -1
package/dist/src/users/users.js
CHANGED
|
@@ -63,15 +63,34 @@ export class UsersClient {
|
|
|
63
63
|
},
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
+
// public async resolveUsername(
|
|
67
|
+
// opts: ResolveUsernameOptions,
|
|
68
|
+
// ): Promise<Op<string>> {
|
|
69
|
+
// return await this.http.do<PLUsersResolveUsername, Op<string>>({
|
|
70
|
+
// base_url: this.base_url,
|
|
71
|
+
// path: userPath(PathUsersResolveUsername),
|
|
72
|
+
// method: HTTPMethodPost,
|
|
73
|
+
// body: {
|
|
74
|
+
// username: opts.username,
|
|
75
|
+
// },
|
|
76
|
+
// });
|
|
77
|
+
// }
|
|
66
78
|
async resolveUsername(opts) {
|
|
67
|
-
|
|
79
|
+
const body = {
|
|
80
|
+
username: opts.username,
|
|
81
|
+
};
|
|
82
|
+
console.log("[client/users.resolveUsername] request", {
|
|
83
|
+
path: userPath(PathUsersResolveUsername),
|
|
84
|
+
body,
|
|
85
|
+
});
|
|
86
|
+
const out = await this.http.do({
|
|
68
87
|
base_url: this.base_url,
|
|
69
88
|
path: userPath(PathUsersResolveUsername),
|
|
70
89
|
method: HTTPMethodPost,
|
|
71
|
-
body
|
|
72
|
-
username: opts.username,
|
|
73
|
-
},
|
|
90
|
+
body,
|
|
74
91
|
});
|
|
92
|
+
console.log("[client/users.resolveUsername] response", out);
|
|
93
|
+
return out;
|
|
75
94
|
}
|
|
76
95
|
async match(opts) {
|
|
77
96
|
const token = await requiredToken(this.get_token);
|