@parra/parra-js-sdk 0.3.233 → 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.
@@ -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 {
@@ -2519,6 +2520,17 @@ export interface UpdateTenantUserRequestBody {
2519
2520
  first_name?: string | null;
2520
2521
  last_name?: string | null;
2521
2522
  properties?: object | null;
2523
+ metadata?: object | null;
2524
+ }
2525
+ export interface UserProperties {
2526
+ }
2527
+ export interface UpdateUserPropertyValueRequestBody {
2528
+ value: number | string | number | boolean;
2529
+ }
2530
+ export interface UserMetadata {
2531
+ }
2532
+ export interface UpdateUserMetadataValueRequestBody {
2533
+ value: number | string | number | boolean;
2522
2534
  }
2523
2535
  export interface CreateTenantUserRequestBody {
2524
2536
  identity?: string | null;
@@ -3225,6 +3237,15 @@ declare class ParraAPI {
3225
3237
  }, options?: Options) => Promise<TenantUser>;
3226
3238
  updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
3227
3239
  deleteUserForTenantById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
3240
+ getPropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
3241
+ updatePropertiesForTenantUser: (tenant_id: string, user_id: string, body?: UserProperties, options?: Options) => Promise<UserProperties>;
3242
+ deletePropertiesForTenantUser: (tenant_id: string, user_id: 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>;
3228
3249
  updateAvatarForTenantUserById: (tenant_id: string, user_id: string, body: ImageAssetStub, options?: Options) => Promise<Response>;
3229
3250
  deleteAvatarForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
3230
3251
  createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
package/dist/ParraAPI.js CHANGED
@@ -1168,6 +1168,50 @@ 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.updatePropertyValueForTenantUser = 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.deletePropertyValueForTenantUser = 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
+ };
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
+ };
1171
1215
  this.updateAvatarForTenantUserById = function (tenant_id, user_id, body, options) {
1172
1216
  if (options === void 0) { options = {}; }
1173
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.233",
3
+ "version": "0.3.235",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",