@redhat-cloud-services/notifications-client 2.2.1 → 2.2.2
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/package.json +1 -1
- package/UserConfigResourceV1GetPreferences/index.d.ts +0 -25
- package/UserConfigResourceV1GetPreferences/index.js +0 -92
- package/UserConfigResourceV1GetSettingsSchema/index.d.ts +0 -19
- package/UserConfigResourceV1GetSettingsSchema/index.js +0 -93
- package/UserConfigResourceV1SaveSettings/index.d.ts +0 -20
- package/UserConfigResourceV1SaveSettings/index.js +0 -92
- package/utils/index.d.ts +0 -3
- package/utils/index.js +0 -19
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type { RequestArgs } from '../utils/base';
|
|
3
|
-
export declare type UserConfigResourceV1GetPreferencesParams = {
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @type { string }
|
|
7
|
-
* @memberof UserConfigResourceV1GetPreferencesApi
|
|
8
|
-
*/
|
|
9
|
-
applicationName: string;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type { string }
|
|
13
|
-
* @memberof UserConfigResourceV1GetPreferencesApi
|
|
14
|
-
*/
|
|
15
|
-
bundleName: string;
|
|
16
|
-
options?: AxiosRequestConfig;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @param {UserConfigResourceV1GetPreferencesParams} config with all available params.
|
|
21
|
-
* @param {*} [options] Override http request option.
|
|
22
|
-
* @throws {RequiredError}
|
|
23
|
-
*/
|
|
24
|
-
export declare const userConfigResourceV1GetPreferencesParamCreator: (...config: ([UserConfigResourceV1GetPreferencesParams] | [string, string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
25
|
-
export default userConfigResourceV1GetPreferencesParamCreator;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.userConfigResourceV1GetPreferencesParamCreator = void 0;
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
var common_1 = require("../utils/common");
|
|
53
|
-
var isUserConfigResourceV1GetPreferencesObjectParams = function (params) {
|
|
54
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'applicationName') && Object.prototype.hasOwnProperty.call(params, 'bundleName');
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @param {UserConfigResourceV1GetPreferencesParams} config with all available params.
|
|
59
|
-
* @param {*} [options] Override http request option.
|
|
60
|
-
* @throws {RequiredError}
|
|
61
|
-
*/
|
|
62
|
-
var userConfigResourceV1GetPreferencesParamCreator = function () {
|
|
63
|
-
var config = [];
|
|
64
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
65
|
-
config[_i] = arguments[_i];
|
|
66
|
-
}
|
|
67
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
-
var params, applicationName, bundleName, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
69
|
-
return __generator(this, function (_b) {
|
|
70
|
-
params = isUserConfigResourceV1GetPreferencesObjectParams(config) ? config[0] : ['applicationName', 'bundleName', 'options'].reduce(function (acc, curr, index) {
|
|
71
|
-
var _a;
|
|
72
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
73
|
-
}, {});
|
|
74
|
-
applicationName = params.applicationName, bundleName = params.bundleName, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
75
|
-
localVarPath = "/user-config/notification-preference/{bundleName}/{applicationName}"
|
|
76
|
-
.replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
|
|
77
|
-
.replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
|
|
78
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
79
|
-
localVarRequestOptions = __assign({ method: 'GET' }, options);
|
|
80
|
-
localVarHeaderParameter = {};
|
|
81
|
-
localVarQueryParameter = {};
|
|
82
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
83
|
-
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
84
|
-
return [2 /*return*/, {
|
|
85
|
-
urlObj: localVarUrlObj,
|
|
86
|
-
options: localVarRequestOptions,
|
|
87
|
-
}];
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
exports.userConfigResourceV1GetPreferencesParamCreator = userConfigResourceV1GetPreferencesParamCreator;
|
|
92
|
-
exports.default = exports.userConfigResourceV1GetPreferencesParamCreator;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type { RequestArgs } from '../utils/base';
|
|
3
|
-
export declare type UserConfigResourceV1GetSettingsSchemaParams = {
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @type { string }
|
|
7
|
-
* @memberof UserConfigResourceV1GetSettingsSchemaApi
|
|
8
|
-
*/
|
|
9
|
-
bundleName?: string;
|
|
10
|
-
options?: AxiosRequestConfig;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @param {UserConfigResourceV1GetSettingsSchemaParams} config with all available params.
|
|
15
|
-
* @param {*} [options] Override http request option.
|
|
16
|
-
* @throws {RequiredError}
|
|
17
|
-
*/
|
|
18
|
-
export declare const userConfigResourceV1GetSettingsSchemaParamCreator: (...config: ([UserConfigResourceV1GetSettingsSchemaParams] | [string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
19
|
-
export default userConfigResourceV1GetSettingsSchemaParamCreator;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.userConfigResourceV1GetSettingsSchemaParamCreator = void 0;
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
var common_1 = require("../utils/common");
|
|
53
|
-
var isUserConfigResourceV1GetSettingsSchemaObjectParams = function (params) {
|
|
54
|
-
return params.length === 1 && true;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @param {UserConfigResourceV1GetSettingsSchemaParams} config with all available params.
|
|
59
|
-
* @param {*} [options] Override http request option.
|
|
60
|
-
* @throws {RequiredError}
|
|
61
|
-
*/
|
|
62
|
-
var userConfigResourceV1GetSettingsSchemaParamCreator = function () {
|
|
63
|
-
var config = [];
|
|
64
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
65
|
-
config[_i] = arguments[_i];
|
|
66
|
-
}
|
|
67
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
-
var params, bundleName, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
69
|
-
return __generator(this, function (_b) {
|
|
70
|
-
params = isUserConfigResourceV1GetSettingsSchemaObjectParams(config) ? config[0] : ['bundleName', 'options'].reduce(function (acc, curr, index) {
|
|
71
|
-
var _a;
|
|
72
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
73
|
-
}, {});
|
|
74
|
-
bundleName = params.bundleName, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
75
|
-
localVarPath = "/user-config/notification-preference";
|
|
76
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
77
|
-
localVarRequestOptions = __assign({ method: 'GET' }, options);
|
|
78
|
-
localVarHeaderParameter = {};
|
|
79
|
-
localVarQueryParameter = {};
|
|
80
|
-
if (bundleName !== undefined) {
|
|
81
|
-
localVarQueryParameter['bundleName'] = bundleName;
|
|
82
|
-
}
|
|
83
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
84
|
-
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
85
|
-
return [2 /*return*/, {
|
|
86
|
-
urlObj: localVarUrlObj,
|
|
87
|
-
options: localVarRequestOptions,
|
|
88
|
-
}];
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
exports.userConfigResourceV1GetSettingsSchemaParamCreator = userConfigResourceV1GetSettingsSchemaParamCreator;
|
|
93
|
-
exports.default = exports.userConfigResourceV1GetSettingsSchemaParamCreator;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type { RequestArgs } from '../utils/base';
|
|
3
|
-
import type { SettingsValues } from '../types';
|
|
4
|
-
export declare type UserConfigResourceV1SaveSettingsParams = {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @type { SettingsValues }
|
|
8
|
-
* @memberof UserConfigResourceV1SaveSettingsApi
|
|
9
|
-
*/
|
|
10
|
-
settingsValues?: SettingsValues;
|
|
11
|
-
options?: AxiosRequestConfig;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @param {UserConfigResourceV1SaveSettingsParams} config with all available params.
|
|
16
|
-
* @param {*} [options] Override http request option.
|
|
17
|
-
* @throws {RequiredError}
|
|
18
|
-
*/
|
|
19
|
-
export declare const userConfigResourceV1SaveSettingsParamCreator: (...config: ([UserConfigResourceV1SaveSettingsParams] | [SettingsValues, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
20
|
-
export default userConfigResourceV1SaveSettingsParamCreator;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.userConfigResourceV1SaveSettingsParamCreator = void 0;
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
var common_1 = require("../utils/common");
|
|
53
|
-
var isUserConfigResourceV1SaveSettingsObjectParams = function (params) {
|
|
54
|
-
return params.length === 1 && true;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @param {UserConfigResourceV1SaveSettingsParams} config with all available params.
|
|
59
|
-
* @param {*} [options] Override http request option.
|
|
60
|
-
* @throws {RequiredError}
|
|
61
|
-
*/
|
|
62
|
-
var userConfigResourceV1SaveSettingsParamCreator = function () {
|
|
63
|
-
var config = [];
|
|
64
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
65
|
-
config[_i] = arguments[_i];
|
|
66
|
-
}
|
|
67
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
-
var params, settingsValues, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
69
|
-
return __generator(this, function (_b) {
|
|
70
|
-
params = isUserConfigResourceV1SaveSettingsObjectParams(config) ? config[0] : ['settingsValues', 'options'].reduce(function (acc, curr, index) {
|
|
71
|
-
var _a;
|
|
72
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
73
|
-
}, {});
|
|
74
|
-
settingsValues = params.settingsValues, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
75
|
-
localVarPath = "/user-config/notification-preference";
|
|
76
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
77
|
-
localVarRequestOptions = __assign({ method: 'POST' }, options);
|
|
78
|
-
localVarHeaderParameter = {};
|
|
79
|
-
localVarQueryParameter = {};
|
|
80
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
82
|
-
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
83
|
-
return [2 /*return*/, {
|
|
84
|
-
urlObj: localVarUrlObj,
|
|
85
|
-
options: localVarRequestOptions,
|
|
86
|
-
serializeData: settingsValues,
|
|
87
|
-
}];
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
exports.userConfigResourceV1SaveSettingsParamCreator = userConfigResourceV1SaveSettingsParamCreator;
|
|
92
|
-
exports.default = exports.userConfigResourceV1SaveSettingsParamCreator;
|
package/utils/index.d.ts
DELETED
package/utils/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./base"), exports);
|
|
18
|
-
__exportStar(require("./common"), exports);
|
|
19
|
-
__exportStar(require("./configuration"), exports);
|