@parra/parra-js-sdk 0.3.115 → 0.3.116
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 +15 -0
- package/dist/ParraAPI.js +9 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1778,6 +1778,20 @@ export interface UpdateTenantUserRequestBody {
|
|
|
1778
1778
|
name?: string | null;
|
|
1779
1779
|
properties?: object | null;
|
|
1780
1780
|
}
|
|
1781
|
+
export interface CreateTenantUserRequestBody {
|
|
1782
|
+
identity?: string | null;
|
|
1783
|
+
name?: string | null;
|
|
1784
|
+
password?: string | null;
|
|
1785
|
+
properties?: object | null;
|
|
1786
|
+
username?: string | null;
|
|
1787
|
+
email?: string | null;
|
|
1788
|
+
email_verified?: boolean | null;
|
|
1789
|
+
phone_number?: string | null;
|
|
1790
|
+
phone_number_verified?: boolean | null;
|
|
1791
|
+
first_name?: string | null;
|
|
1792
|
+
last_name?: string | null;
|
|
1793
|
+
locale?: string | null;
|
|
1794
|
+
}
|
|
1781
1795
|
export interface TenantUserCollectionResponse {
|
|
1782
1796
|
page: number;
|
|
1783
1797
|
page_count: number;
|
|
@@ -2094,6 +2108,7 @@ declare class ParraAPI {
|
|
|
2094
2108
|
}) => Promise<TenantUser>;
|
|
2095
2109
|
updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody) => Promise<TenantUser>;
|
|
2096
2110
|
deleteUserForTenantById: (tenant_id: string, user_id: string) => Promise<Response>;
|
|
2111
|
+
createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody) => Promise<TenantUser>;
|
|
2097
2112
|
paginateTenantUsersForTenantById: (tenant_id: string, query?: {
|
|
2098
2113
|
$select?: string;
|
|
2099
2114
|
$top?: number;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1128,6 +1128,15 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1128
1128
|
method: "delete",
|
|
1129
1129
|
});
|
|
1130
1130
|
};
|
|
1131
|
+
this.createUserForTenantById = function (tenant_id, body) {
|
|
1132
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), {
|
|
1133
|
+
method: "post",
|
|
1134
|
+
body: JSON.stringify(body),
|
|
1135
|
+
headers: {
|
|
1136
|
+
"content-type": "application/json",
|
|
1137
|
+
},
|
|
1138
|
+
});
|
|
1139
|
+
};
|
|
1131
1140
|
this.paginateTenantUsersForTenantById = function (tenant_id, query) {
|
|
1132
1141
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), {
|
|
1133
1142
|
method: "get",
|