@parra/parra-js-sdk 0.3.200 → 0.3.201
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 +5 -4
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -2312,6 +2312,10 @@ export interface TenantUserCollectionResponse {
|
|
|
2312
2312
|
total_count: number;
|
|
2313
2313
|
data: Array<TenantUserCollectionStub>;
|
|
2314
2314
|
}
|
|
2315
|
+
export interface CreateIdentityRequestBody {
|
|
2316
|
+
provider: string;
|
|
2317
|
+
provider_user_id: string;
|
|
2318
|
+
}
|
|
2315
2319
|
export interface UpdateTenantRequestBody {
|
|
2316
2320
|
name?: string;
|
|
2317
2321
|
subdomain?: string | null;
|
|
@@ -2641,10 +2645,6 @@ export interface UpdateUserRequestBody {
|
|
|
2641
2645
|
role?: string | null;
|
|
2642
2646
|
role_other_description?: string | null;
|
|
2643
2647
|
}
|
|
2644
|
-
export interface CreateIdentityRequestBody {
|
|
2645
|
-
provider: string;
|
|
2646
|
-
provider_user_id: string;
|
|
2647
|
-
}
|
|
2648
2648
|
export interface CreateUserRequestBody {
|
|
2649
2649
|
first_name?: string | null;
|
|
2650
2650
|
last_name?: string | null;
|
|
@@ -2966,6 +2966,7 @@ declare class ParraAPI {
|
|
|
2966
2966
|
$expand?: string;
|
|
2967
2967
|
$search?: string;
|
|
2968
2968
|
}, options?: Options) => Promise<TenantUserCollectionResponse>;
|
|
2969
|
+
createIdentityForTenantUser: (tenant_id: string, user_id: string, body?: CreateIdentityRequestBody, options?: Options) => Promise<Identity>;
|
|
2969
2970
|
deleteIdentityForTenantById: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
|
|
2970
2971
|
resetPasswordForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
|
|
2971
2972
|
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));
|