@parra/parra-js-sdk 0.3.200 → 0.3.202
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/ParraAPI.d.ts +10 -0
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -2312,6 +2312,15 @@ export interface TenantUserCollectionResponse {
|
|
|
2312
2312
|
total_count: number;
|
|
2313
2313
|
data: Array<TenantUserCollectionStub>;
|
|
2314
2314
|
}
|
|
2315
|
+
export interface CreateTenantUserIdentityRequestBody {
|
|
2316
|
+
identity?: string | null;
|
|
2317
|
+
password?: string | null;
|
|
2318
|
+
username?: string | null;
|
|
2319
|
+
email?: string | null;
|
|
2320
|
+
email_verified?: boolean | null;
|
|
2321
|
+
phone_number?: string | null;
|
|
2322
|
+
phone_number_verified?: boolean | null;
|
|
2323
|
+
}
|
|
2315
2324
|
export interface UpdateTenantRequestBody {
|
|
2316
2325
|
name?: string;
|
|
2317
2326
|
subdomain?: string | null;
|
|
@@ -2966,6 +2975,7 @@ declare class ParraAPI {
|
|
|
2966
2975
|
$expand?: string;
|
|
2967
2976
|
$search?: string;
|
|
2968
2977
|
}, options?: Options) => Promise<TenantUserCollectionResponse>;
|
|
2978
|
+
createIdentityForTenantUser: (tenant_id: string, user_id: string, body?: CreateTenantUserIdentityRequestBody, options?: Options) => Promise<Identity>;
|
|
2969
2979
|
deleteIdentityForTenantById: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
|
|
2970
2980
|
resetPasswordForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
|
|
2971
2981
|
sendVerificationChallengeForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1063,6 +1063,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1063
1063
|
if (options === void 0) { options = {}; }
|
|
1064
1064
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), __assign({ method: "get", query: query }, options));
|
|
1065
1065
|
};
|
|
1066
|
+
this.createIdentityForTenantUser = function (tenant_id, user_id, body, options) {
|
|
1067
|
+
if (options === void 0) { options = {}; }
|
|
1068
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/identities"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
1069
|
+
"content-type": "application/json",
|
|
1070
|
+
} }, options));
|
|
1071
|
+
};
|
|
1066
1072
|
this.deleteIdentityForTenantById = function (tenant_id, identity_id, options) {
|
|
1067
1073
|
if (options === void 0) { options = {}; }
|
|
1068
1074
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id), __assign({ method: "delete" }, options));
|