@parra/parra-js-sdk 0.3.233 → 0.3.234
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 +11 -0
- package/dist/ParraAPI.js +24 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -488,6 +488,7 @@ export interface TenantUser {
|
|
|
488
488
|
last_login_at?: string | null;
|
|
489
489
|
has_password: boolean;
|
|
490
490
|
properties: object;
|
|
491
|
+
metadata: object;
|
|
491
492
|
identities?: Array<Identity> | null;
|
|
492
493
|
}
|
|
493
494
|
export interface UserInfoResponse {
|
|
@@ -2520,6 +2521,11 @@ export interface UpdateTenantUserRequestBody {
|
|
|
2520
2521
|
last_name?: string | null;
|
|
2521
2522
|
properties?: object | null;
|
|
2522
2523
|
}
|
|
2524
|
+
export interface UserProperties {
|
|
2525
|
+
}
|
|
2526
|
+
export interface UpdateUserPropertyValueRequestBody {
|
|
2527
|
+
value: number | string | number | boolean;
|
|
2528
|
+
}
|
|
2523
2529
|
export interface CreateTenantUserRequestBody {
|
|
2524
2530
|
identity?: string | null;
|
|
2525
2531
|
name?: string | null;
|
|
@@ -3225,6 +3231,11 @@ declare class ParraAPI {
|
|
|
3225
3231
|
}, options?: Options) => Promise<TenantUser>;
|
|
3226
3232
|
updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
|
|
3227
3233
|
deleteUserForTenantById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
|
|
3234
|
+
getPropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
|
|
3235
|
+
updatePropertiesForTenantUser: (tenant_id: string, user_id: string, body?: UserProperties, options?: Options) => Promise<UserProperties>;
|
|
3236
|
+
deletePropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
|
|
3237
|
+
updatePropertyForTenantUser: (tenant_id: string, user_id: string, user_property_key: string, body: UpdateUserPropertyValueRequestBody, options?: Options) => Promise<UserProperties>;
|
|
3238
|
+
deletePropertyForTenantUser: (tenant_id: string, user_id: string, user_property_key: string, options?: Options) => Promise<UserProperties>;
|
|
3228
3239
|
updateAvatarForTenantUserById: (tenant_id: string, user_id: string, body: ImageAssetStub, options?: Options) => Promise<Response>;
|
|
3229
3240
|
deleteAvatarForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
|
|
3230
3241
|
createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1168,6 +1168,30 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1168
1168
|
if (options === void 0) { options = {}; }
|
|
1169
1169
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "delete" }, options));
|
|
1170
1170
|
};
|
|
1171
|
+
this.getPropertiesForTenantUser = function (tenant_id, user_id, options) {
|
|
1172
|
+
if (options === void 0) { options = {}; }
|
|
1173
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "get" }, options));
|
|
1174
|
+
};
|
|
1175
|
+
this.updatePropertiesForTenantUser = function (tenant_id, user_id, body, options) {
|
|
1176
|
+
if (options === void 0) { options = {}; }
|
|
1177
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
1178
|
+
"content-type": "application/json",
|
|
1179
|
+
} }, options));
|
|
1180
|
+
};
|
|
1181
|
+
this.deletePropertiesForTenantUser = function (tenant_id, user_id, options) {
|
|
1182
|
+
if (options === void 0) { options = {}; }
|
|
1183
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "delete" }, options));
|
|
1184
|
+
};
|
|
1185
|
+
this.updatePropertyForTenantUser = function (tenant_id, user_id, user_property_key, body, options) {
|
|
1186
|
+
if (options === void 0) { options = {}; }
|
|
1187
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
1188
|
+
"content-type": "application/json",
|
|
1189
|
+
} }, options));
|
|
1190
|
+
};
|
|
1191
|
+
this.deletePropertyForTenantUser = function (tenant_id, user_id, user_property_key, options) {
|
|
1192
|
+
if (options === void 0) { options = {}; }
|
|
1193
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), __assign({ method: "delete" }, options));
|
|
1194
|
+
};
|
|
1171
1195
|
this.updateAvatarForTenantUserById = function (tenant_id, user_id, body, options) {
|
|
1172
1196
|
if (options === void 0) { options = {}; }
|
|
1173
1197
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), __assign({ method: "put", body: JSON.stringify(body), headers: {
|