@kiminix/tp-client 1.40.0 → 2.0.0
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 +2 -0
- package/dist/iam/types/business-signin.d.ts +0 -2
- package/dist/iam/types/me.d.ts +0 -2
- package/dist/iam/types/update-profile.d.ts +0 -2
- package/dist/iam/types/user-signin.d.ts +0 -2
- package/dist/iam/types/user-signup.d.ts +0 -2
- package/dist/iam/types/verified-info.d.ts +4 -0
- package/dist/iam/types/verified-info.js +1 -0
- package/dist/iam/user-apis.d.ts +8 -0
- package/dist/iam/user-apis.js +25 -0
- package/dist/reservations/shared/reservation.d.ts +0 -1
- package/package.json +1 -1
package/README
CHANGED
package/dist/iam/types/me.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/iam/user-apis.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { UpdateProfileRequest, UpdateProfileResponse } from "./types/update-prof
|
|
|
5
5
|
import { SignInResponse } from "./types/user-signin";
|
|
6
6
|
import { SignUpRequest, SignUpResponse } from "./types/user-signup";
|
|
7
7
|
import { SignUpValidateRequest } from "./types/user-signup-validate";
|
|
8
|
+
import { VerifiedInfoResponse } from "./types/verified-info";
|
|
8
9
|
export declare class IamUserAPIs {
|
|
9
10
|
static signIn(identifier: string, password: string): Promise<SignInResponse>;
|
|
10
11
|
static signUp({ code, firstName, lastName, phone, email, password }: SignUpRequest): Promise<Either<Error, SignUpResponse>>;
|
|
@@ -25,4 +26,11 @@ export declare class IamUserAPIs {
|
|
|
25
26
|
*/
|
|
26
27
|
static updateProfile({ token, firstName, lastName, phone, email, birthday, gender, password }: UpdateProfileRequest): Promise<UpdateProfileResponse>;
|
|
27
28
|
static validatePhone(token: string | undefined, phone: string, code: string): Promise<Either<Error, void>>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @errors
|
|
32
|
+
* empty_identifiers
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
static getVerifiedInfo(token: string | undefined, identifiers: string[]): Promise<VerifiedInfoResponse[]>;
|
|
28
36
|
}
|
package/dist/iam/user-apis.js
CHANGED
|
@@ -265,6 +265,31 @@ var IamUserAPIs = /** @class */ (function () {
|
|
|
265
265
|
});
|
|
266
266
|
});
|
|
267
267
|
};
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @errors
|
|
271
|
+
* empty_identifiers
|
|
272
|
+
* @returns
|
|
273
|
+
*/
|
|
274
|
+
IamUserAPIs.getVerifiedInfo = function (token, identifiers) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
276
|
+
return __generator(this, function (_a) {
|
|
277
|
+
return [2 /*return*/, RequestUtils.send(function () {
|
|
278
|
+
var queryParams = identifiers.map(function (identifier) { return "identifiers=".concat(identifier); }).join('&');
|
|
279
|
+
// Send the data to the server in JSON format.
|
|
280
|
+
return axios.get(base + "/iam/users/verified-info?".concat(queryParams), {
|
|
281
|
+
headers: {
|
|
282
|
+
'Authorization': "".concat(token),
|
|
283
|
+
'Content-Type': 'application/json'
|
|
284
|
+
}
|
|
285
|
+
})
|
|
286
|
+
.then(function (response) {
|
|
287
|
+
return response.data;
|
|
288
|
+
});
|
|
289
|
+
})];
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
};
|
|
268
293
|
return IamUserAPIs;
|
|
269
294
|
}());
|
|
270
295
|
export { IamUserAPIs };
|