@parra/parra-js-sdk 0.3.234 → 0.3.235

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.
@@ -2520,12 +2520,18 @@ export interface UpdateTenantUserRequestBody {
2520
2520
  first_name?: string | null;
2521
2521
  last_name?: string | null;
2522
2522
  properties?: object | null;
2523
+ metadata?: object | null;
2523
2524
  }
2524
2525
  export interface UserProperties {
2525
2526
  }
2526
2527
  export interface UpdateUserPropertyValueRequestBody {
2527
2528
  value: number | string | number | boolean;
2528
2529
  }
2530
+ export interface UserMetadata {
2531
+ }
2532
+ export interface UpdateUserMetadataValueRequestBody {
2533
+ value: number | string | number | boolean;
2534
+ }
2529
2535
  export interface CreateTenantUserRequestBody {
2530
2536
  identity?: string | null;
2531
2537
  name?: string | null;
@@ -3234,8 +3240,12 @@ declare class ParraAPI {
3234
3240
  getPropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
3235
3241
  updatePropertiesForTenantUser: (tenant_id: string, user_id: string, body?: UserProperties, options?: Options) => Promise<UserProperties>;
3236
3242
  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>;
3243
+ updatePropertyValueForTenantUser: (tenant_id: string, user_id: string, user_property_key: string, body: UpdateUserPropertyValueRequestBody, options?: Options) => Promise<UserProperties>;
3244
+ deletePropertyValueForTenantUser: (tenant_id: string, user_id: string, user_property_key: string, options?: Options) => Promise<UserProperties>;
3245
+ getMetadataForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserMetadata>;
3246
+ updateMetadataForTenantUser: (tenant_id: string, user_id: string, body?: UserMetadata, options?: Options) => Promise<UserMetadata>;
3247
+ updateMetadataValueForTenantUser: (tenant_id: string, user_id: string, user_metadata_key: string, body: UpdateUserMetadataValueRequestBody, options?: Options) => Promise<UserMetadata>;
3248
+ deleteMetadataValueForTenantUser: (tenant_id: string, user_id: string, user_metadata_key: string, options?: Options) => Promise<UserMetadata>;
3239
3249
  updateAvatarForTenantUserById: (tenant_id: string, user_id: string, body: ImageAssetStub, options?: Options) => Promise<Response>;
3240
3250
  deleteAvatarForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
3241
3251
  createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
package/dist/ParraAPI.js CHANGED
@@ -1182,16 +1182,36 @@ var ParraAPI = /** @class */ (function () {
1182
1182
  if (options === void 0) { options = {}; }
1183
1183
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "delete" }, options));
1184
1184
  };
1185
- this.updatePropertyForTenantUser = function (tenant_id, user_id, user_property_key, body, options) {
1185
+ this.updatePropertyValueForTenantUser = function (tenant_id, user_id, user_property_key, body, options) {
1186
1186
  if (options === void 0) { options = {}; }
1187
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
1188
  "content-type": "application/json",
1189
1189
  } }, options));
1190
1190
  };
1191
- this.deletePropertyForTenantUser = function (tenant_id, user_id, user_property_key, options) {
1191
+ this.deletePropertyValueForTenantUser = function (tenant_id, user_id, user_property_key, options) {
1192
1192
  if (options === void 0) { options = {}; }
1193
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
1194
  };
1195
+ this.getMetadataForTenantUser = function (tenant_id, user_id, options) {
1196
+ if (options === void 0) { options = {}; }
1197
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata"), __assign({ method: "get" }, options));
1198
+ };
1199
+ this.updateMetadataForTenantUser = function (tenant_id, user_id, body, options) {
1200
+ if (options === void 0) { options = {}; }
1201
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata"), __assign({ method: "put", body: JSON.stringify(body), headers: {
1202
+ "content-type": "application/json",
1203
+ } }, options));
1204
+ };
1205
+ this.updateMetadataValueForTenantUser = function (tenant_id, user_id, user_metadata_key, body, options) {
1206
+ if (options === void 0) { options = {}; }
1207
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata/").concat(user_metadata_key), __assign({ method: "put", body: JSON.stringify(body), headers: {
1208
+ "content-type": "application/json",
1209
+ } }, options));
1210
+ };
1211
+ this.deleteMetadataValueForTenantUser = function (tenant_id, user_id, user_metadata_key, options) {
1212
+ if (options === void 0) { options = {}; }
1213
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata/").concat(user_metadata_key), __assign({ method: "delete" }, options));
1214
+ };
1195
1215
  this.updateAvatarForTenantUserById = function (tenant_id, user_id, body, options) {
1196
1216
  if (options === void 0) { options = {}; }
1197
1217
  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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.234",
3
+ "version": "0.3.235",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",