@parra/parra-js-sdk 0.3.269 → 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.
- package/dist/ParraAPI.d.ts +10 -0
- package/dist/ParraAPI.js +10 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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));
|