@parra/parra-js-sdk 0.3.235 → 0.3.237

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.
@@ -2522,6 +2522,20 @@ export interface UpdateTenantUserRequestBody {
2522
2522
  properties?: object | null;
2523
2523
  metadata?: object | null;
2524
2524
  }
2525
+ export interface UserDevice {
2526
+ id: string;
2527
+ created_at: string;
2528
+ updated_at: string;
2529
+ deleted_at?: string | null;
2530
+ platform: string;
2531
+ platform_agent: string;
2532
+ device_id?: string | null;
2533
+ bundle_id?: string | null;
2534
+ ad_id?: string | null;
2535
+ manufacturer?: string | null;
2536
+ model?: string | null;
2537
+ }
2538
+ export type UserDeviceListResponse = Array<UserDevice>;
2525
2539
  export interface UserProperties {
2526
2540
  }
2527
2541
  export interface UpdateUserPropertyValueRequestBody {
@@ -3237,6 +3251,7 @@ declare class ParraAPI {
3237
3251
  }, options?: Options) => Promise<TenantUser>;
3238
3252
  updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
3239
3253
  deleteUserForTenantById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
3254
+ listDevicesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserDevice>>;
3240
3255
  getPropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
3241
3256
  updatePropertiesForTenantUser: (tenant_id: string, user_id: string, body?: UserProperties, options?: Options) => Promise<UserProperties>;
3242
3257
  deletePropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
package/dist/ParraAPI.js CHANGED
@@ -1168,6 +1168,10 @@ 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.listDevicesForTenantUser = 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, "/devices"), __assign({ method: "get" }, options));
1174
+ };
1171
1175
  this.getPropertiesForTenantUser = function (tenant_id, user_id, options) {
1172
1176
  if (options === void 0) { options = {}; }
1173
1177
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "get" }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.235",
3
+ "version": "0.3.237",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,11 +18,11 @@
18
18
  "author": "Parra",
19
19
  "license": "ISC",
20
20
  "devDependencies": {
21
- "@types/node": "^20.11.25",
22
- "prettier": "^3.2.5",
21
+ "@types/node": "^22.5.5",
22
+ "prettier": "^3.3.3",
23
23
  "typescript": "^5.6.2"
24
24
  },
25
25
  "dependencies": {
26
- "@parra/http-client": "0.5.7"
26
+ "@parra/http-client": "0.5.8"
27
27
  }
28
28
  }