@parra/parra-js-sdk 0.3.268 → 0.3.270

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.
@@ -2034,7 +2034,7 @@ export interface SettingsViewStub {
2034
2034
  created_at: string;
2035
2035
  updated_at: string;
2036
2036
  deleted_at?: string | null;
2037
- tenant_id?: string;
2037
+ tenant_id: string;
2038
2038
  title: string;
2039
2039
  description?: string | null;
2040
2040
  display_title: string;
@@ -2050,7 +2050,7 @@ export interface SettingsView {
2050
2050
  created_at: string;
2051
2051
  updated_at: string;
2052
2052
  deleted_at?: string | null;
2053
- tenant_id?: string;
2053
+ tenant_id: string;
2054
2054
  title: string;
2055
2055
  description?: string | null;
2056
2056
  display_title: string;
@@ -2062,6 +2062,14 @@ export interface SettingsView {
2062
2062
  active: boolean;
2063
2063
  groups: Array<SettingsGroup>;
2064
2064
  }
2065
+ export interface UpdateSettingsViewRequestBody {
2066
+ title?: string;
2067
+ description?: string | null;
2068
+ display_title?: string;
2069
+ display_description?: string | null;
2070
+ footer_label?: string | null;
2071
+ slug?: string;
2072
+ }
2065
2073
  export interface SettingsItemIntegerDataWithValue {
2066
2074
  default_value?: number | null;
2067
2075
  min_value?: number | null;
@@ -2121,7 +2129,7 @@ export interface UserSettingsView {
2121
2129
  created_at: string;
2122
2130
  updated_at: string;
2123
2131
  deleted_at?: string | null;
2124
- tenant_id?: string;
2132
+ tenant_id: string;
2125
2133
  title: string;
2126
2134
  description?: string | null;
2127
2135
  display_title: string;
@@ -3640,6 +3648,8 @@ declare class ParraAPI {
3640
3648
  $expand?: string;
3641
3649
  $search?: string;
3642
3650
  }, options?: Options) => Promise<Array<SettingsView>>;
3651
+ updateSettingsViewForTenant: (tenant_id: string, settings_view_id: string, body?: UpdateSettingsViewRequestBody, options?: Options) => Promise<SettingsView>;
3652
+ deleteSettingsViewForTenant: (tenant_id: string, settings_view_id: string, options?: Options) => Promise<Response>;
3643
3653
  listSettingsViewsForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserSettingsView>>;
3644
3654
  getSettingsViewForTenantUser: (tenant_id: string, user_id: string, settings_view_id: string, options?: Options) => Promise<UserSettingsView>;
3645
3655
  createSettingsGroupForSettingsView: (tenant_id: string, settings_view_id: string, body: CreateSettingsGroupRequestBody, options?: Options) => Promise<SettingsGroup>;
package/dist/ParraAPI.js CHANGED
@@ -1021,6 +1021,16 @@ var ParraAPI = /** @class */ (function () {
1021
1021
  if (options === void 0) { options = {}; }
1022
1022
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views"), __assign({ method: "get", query: query }, options));
1023
1023
  };
1024
+ this.updateSettingsViewForTenant = function (tenant_id, settings_view_id, body, options) {
1025
+ if (options === void 0) { options = {}; }
1026
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1027
+ "content-type": "application/json",
1028
+ } }, options));
1029
+ };
1030
+ this.deleteSettingsViewForTenant = function (tenant_id, settings_view_id, options) {
1031
+ if (options === void 0) { options = {}; }
1032
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), __assign({ method: "delete" }, options));
1033
+ };
1024
1034
  this.listSettingsViewsForTenantUser = function (tenant_id, user_id, options) {
1025
1035
  if (options === void 0) { options = {}; }
1026
1036
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/views"), __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.268",
3
+ "version": "0.3.270",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",