@emilgroup/setting-sdk-node 0.3.1-beta.2 → 0.3.1-beta.21

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.
Files changed (71) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/README.md +2 -2
  3. package/api/setting-definitions-api.ts +460 -0
  4. package/api/setting-keys-api.ts +868 -0
  5. package/api/setting-values-api.ts +250 -0
  6. package/api.ts +6 -0
  7. package/base.ts +1 -0
  8. package/dist/api/setting-definitions-api.d.ts +263 -0
  9. package/dist/api/setting-definitions-api.js +449 -0
  10. package/dist/api/setting-keys-api.d.ts +490 -0
  11. package/dist/api/setting-keys-api.js +768 -0
  12. package/dist/api/setting-values-api.d.ts +150 -0
  13. package/dist/api/setting-values-api.js +264 -0
  14. package/dist/api.d.ts +3 -0
  15. package/dist/api.js +3 -0
  16. package/dist/base.d.ts +2 -1
  17. package/dist/base.js +1 -0
  18. package/dist/models/create-setting-definition-request-dto.d.ts +93 -0
  19. package/dist/models/create-setting-definition-request-dto.js +53 -0
  20. package/dist/models/create-setting-definition-response-class.d.ts +25 -0
  21. package/dist/models/create-setting-definition-response-class.js +15 -0
  22. package/dist/models/create-setting-key-request-dto.d.ts +36 -0
  23. package/dist/models/create-setting-key-request-dto.js +15 -0
  24. package/dist/models/create-setting-key-response-class.d.ts +25 -0
  25. package/dist/models/create-setting-key-response-class.js +15 -0
  26. package/dist/models/delete-setting-key-response-class.d.ts +24 -0
  27. package/dist/models/delete-setting-key-response-class.js +15 -0
  28. package/dist/models/get-setting-definition-response-class.d.ts +25 -0
  29. package/dist/models/get-setting-definition-response-class.js +15 -0
  30. package/dist/models/get-setting-key-response-class.d.ts +25 -0
  31. package/dist/models/get-setting-key-response-class.js +15 -0
  32. package/dist/models/index.d.ts +16 -0
  33. package/dist/models/index.js +16 -0
  34. package/dist/models/list-public-keys-response-class.d.ts +10 -10
  35. package/dist/models/list-setting-definitions-response-class.d.ts +43 -0
  36. package/dist/models/list-setting-definitions-response-class.js +15 -0
  37. package/dist/models/list-setting-keys-response-class.d.ts +43 -0
  38. package/dist/models/list-setting-keys-response-class.js +15 -0
  39. package/dist/models/list-setting-values-response-class.d.ts +43 -0
  40. package/dist/models/list-setting-values-response-class.js +15 -0
  41. package/dist/models/setting-definition-class.d.ts +124 -0
  42. package/dist/models/setting-definition-class.js +53 -0
  43. package/dist/models/setting-definition-version-class.d.ts +72 -0
  44. package/dist/models/setting-definition-version-class.js +15 -0
  45. package/dist/models/setting-key-class.d.ts +85 -0
  46. package/dist/models/setting-key-class.js +15 -0
  47. package/dist/models/setting-value-class.d.ts +72 -0
  48. package/dist/models/setting-value-class.js +15 -0
  49. package/dist/models/update-setting-key-request-rest-dto.d.ts +30 -0
  50. package/dist/models/update-setting-key-request-rest-dto.js +15 -0
  51. package/dist/models/update-setting-key-response-class.d.ts +25 -0
  52. package/dist/models/update-setting-key-response-class.js +15 -0
  53. package/models/create-setting-definition-request-dto.ts +103 -0
  54. package/models/create-setting-definition-response-class.ts +31 -0
  55. package/models/create-setting-key-request-dto.ts +42 -0
  56. package/models/create-setting-key-response-class.ts +31 -0
  57. package/models/delete-setting-key-response-class.ts +30 -0
  58. package/models/get-setting-definition-response-class.ts +31 -0
  59. package/models/get-setting-key-response-class.ts +31 -0
  60. package/models/index.ts +16 -0
  61. package/models/list-public-keys-response-class.ts +10 -10
  62. package/models/list-setting-definitions-response-class.ts +49 -0
  63. package/models/list-setting-keys-response-class.ts +49 -0
  64. package/models/list-setting-values-response-class.ts +49 -0
  65. package/models/setting-definition-class.ts +134 -0
  66. package/models/setting-definition-version-class.ts +78 -0
  67. package/models/setting-key-class.ts +91 -0
  68. package/models/setting-value-class.ts +78 -0
  69. package/models/update-setting-key-request-rest-dto.ts +36 -0
  70. package/models/update-setting-key-response-class.ts +31 -0
  71. package/package.json +2 -2
@@ -0,0 +1,150 @@
1
+ /**
2
+ * EMIL SettingService
3
+ * The EMIL SettingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ListSettingValuesResponseClass } from '../models';
16
+ /**
17
+ * SettingValuesApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const SettingValuesApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
23
+ * @summary List setting values
24
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
25
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
26
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
27
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
28
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
29
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
30
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
31
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ listSettingValues: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ };
37
+ /**
38
+ * SettingValuesApi - functional programming interface
39
+ * @export
40
+ */
41
+ export declare const SettingValuesApiFp: (configuration?: Configuration) => {
42
+ /**
43
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
44
+ * @summary List setting values
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
47
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
48
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
49
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
50
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
51
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
52
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ listSettingValues(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettingValuesResponseClass>>;
57
+ };
58
+ /**
59
+ * SettingValuesApi - factory interface
60
+ * @export
61
+ */
62
+ export declare const SettingValuesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
63
+ /**
64
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
65
+ * @summary List setting values
66
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
67
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
68
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
69
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
70
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
71
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
72
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
73
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ listSettingValues(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettingValuesResponseClass>;
78
+ };
79
+ /**
80
+ * Request parameters for listSettingValues operation in SettingValuesApi.
81
+ * @export
82
+ * @interface SettingValuesApiListSettingValuesRequest
83
+ */
84
+ export interface SettingValuesApiListSettingValuesRequest {
85
+ /**
86
+ * Bearer Token: provided by the login endpoint under the name accessToken.
87
+ * @type {string}
88
+ * @memberof SettingValuesApiListSettingValues
89
+ */
90
+ readonly authorization?: string;
91
+ /**
92
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
93
+ * @type {number}
94
+ * @memberof SettingValuesApiListSettingValues
95
+ */
96
+ readonly pageSize?: number;
97
+ /**
98
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
99
+ * @type {string}
100
+ * @memberof SettingValuesApiListSettingValues
101
+ */
102
+ readonly pageToken?: string;
103
+ /**
104
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
105
+ * @type {string}
106
+ * @memberof SettingValuesApiListSettingValues
107
+ */
108
+ readonly filter?: string;
109
+ /**
110
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
111
+ * @type {string}
112
+ * @memberof SettingValuesApiListSettingValues
113
+ */
114
+ readonly search?: string;
115
+ /**
116
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
117
+ * @type {string}
118
+ * @memberof SettingValuesApiListSettingValues
119
+ */
120
+ readonly order?: string;
121
+ /**
122
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
123
+ * @type {string}
124
+ * @memberof SettingValuesApiListSettingValues
125
+ */
126
+ readonly expand?: string;
127
+ /**
128
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
129
+ * @type {string}
130
+ * @memberof SettingValuesApiListSettingValues
131
+ */
132
+ readonly filters?: string;
133
+ }
134
+ /**
135
+ * SettingValuesApi - object-oriented interface
136
+ * @export
137
+ * @class SettingValuesApi
138
+ * @extends {BaseAPI}
139
+ */
140
+ export declare class SettingValuesApi extends BaseAPI {
141
+ /**
142
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
143
+ * @summary List setting values
144
+ * @param {SettingValuesApiListSettingValuesRequest} requestParameters Request parameters.
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ * @memberof SettingValuesApi
148
+ */
149
+ listSettingValues(requestParameters?: SettingValuesApiListSettingValuesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSettingValuesResponseClass, any, {}>>;
150
+ }
@@ -0,0 +1,264 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL SettingService
6
+ * The EMIL SettingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ 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;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.SettingValuesApi = exports.SettingValuesApiFactory = exports.SettingValuesApiFp = exports.SettingValuesApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * SettingValuesApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var SettingValuesApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
101
+ * @summary List setting values
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
104
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
105
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
107
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
108
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
109
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ listSettingValues: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
114
+ if (options === void 0) { options = {}; }
115
+ return __awaiter(_this, void 0, void 0, function () {
116
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0:
120
+ localVarPath = "/settingservice/v2/setting-values";
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (pageSize !== undefined) {
137
+ localVarQueryParameter['pageSize'] = pageSize;
138
+ }
139
+ if (pageToken !== undefined) {
140
+ localVarQueryParameter['pageToken'] = pageToken;
141
+ }
142
+ if (filter !== undefined) {
143
+ localVarQueryParameter['filter'] = filter;
144
+ }
145
+ if (search !== undefined) {
146
+ localVarQueryParameter['search'] = search;
147
+ }
148
+ if (order !== undefined) {
149
+ localVarQueryParameter['order'] = order;
150
+ }
151
+ if (expand !== undefined) {
152
+ localVarQueryParameter['expand'] = expand;
153
+ }
154
+ if (filters !== undefined) {
155
+ localVarQueryParameter['filters'] = filters;
156
+ }
157
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
158
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
159
+ }
160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
161
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
163
+ return [2 /*return*/, {
164
+ url: (0, common_1.toPathString)(localVarUrlObj),
165
+ options: localVarRequestOptions,
166
+ }];
167
+ }
168
+ });
169
+ });
170
+ },
171
+ };
172
+ };
173
+ exports.SettingValuesApiAxiosParamCreator = SettingValuesApiAxiosParamCreator;
174
+ /**
175
+ * SettingValuesApi - functional programming interface
176
+ * @export
177
+ */
178
+ var SettingValuesApiFp = function (configuration) {
179
+ var localVarAxiosParamCreator = (0, exports.SettingValuesApiAxiosParamCreator)(configuration);
180
+ return {
181
+ /**
182
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
183
+ * @summary List setting values
184
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
185
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
186
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
187
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
188
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
189
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
190
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
191
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ listSettingValues: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
196
+ return __awaiter(this, void 0, void 0, function () {
197
+ var localVarAxiosArgs;
198
+ return __generator(this, function (_a) {
199
+ switch (_a.label) {
200
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSettingValues(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
201
+ case 1:
202
+ localVarAxiosArgs = _a.sent();
203
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
204
+ }
205
+ });
206
+ });
207
+ },
208
+ };
209
+ };
210
+ exports.SettingValuesApiFp = SettingValuesApiFp;
211
+ /**
212
+ * SettingValuesApi - factory interface
213
+ * @export
214
+ */
215
+ var SettingValuesApiFactory = function (configuration, basePath, axios) {
216
+ var localVarFp = (0, exports.SettingValuesApiFp)(configuration);
217
+ return {
218
+ /**
219
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
220
+ * @summary List setting values
221
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
222
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
223
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
224
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
225
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
226
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
227
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
228
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ listSettingValues: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
233
+ return localVarFp.listSettingValues(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
234
+ },
235
+ };
236
+ };
237
+ exports.SettingValuesApiFactory = SettingValuesApiFactory;
238
+ /**
239
+ * SettingValuesApi - object-oriented interface
240
+ * @export
241
+ * @class SettingValuesApi
242
+ * @extends {BaseAPI}
243
+ */
244
+ var SettingValuesApi = /** @class */ (function (_super) {
245
+ __extends(SettingValuesApi, _super);
246
+ function SettingValuesApi() {
247
+ return _super !== null && _super.apply(this, arguments) || this;
248
+ }
249
+ /**
250
+ * Returns a list of setting values you have previously created. The setting values are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
251
+ * @summary List setting values
252
+ * @param {SettingValuesApiListSettingValuesRequest} requestParameters Request parameters.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ * @memberof SettingValuesApi
256
+ */
257
+ SettingValuesApi.prototype.listSettingValues = function (requestParameters, options) {
258
+ var _this = this;
259
+ if (requestParameters === void 0) { requestParameters = {}; }
260
+ return (0, exports.SettingValuesApiFp)(this.configuration).listSettingValues(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
261
+ };
262
+ return SettingValuesApi;
263
+ }(base_1.BaseAPI));
264
+ exports.SettingValuesApi = SettingValuesApi;
package/dist/api.d.ts CHANGED
@@ -11,3 +11,6 @@
11
11
  */
12
12
  export * from './api/health-api';
13
13
  export * from './api/public-keys-api';
14
+ export * from './api/setting-definitions-api';
15
+ export * from './api/setting-keys-api';
16
+ export * from './api/setting-values-api';
package/dist/api.js CHANGED
@@ -29,3 +29,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/health-api"), exports);
31
31
  __exportStar(require("./api/public-keys-api"), exports);
32
+ __exportStar(require("./api/setting-definitions-api"), exports);
33
+ __exportStar(require("./api/setting-keys-api"), exports);
34
+ __exportStar(require("./api/setting-values-api"), exports);
package/dist/base.d.ts CHANGED
@@ -31,7 +31,8 @@ export declare enum Environment {
31
31
  Test = "https://apiv2-test.emil.de",
32
32
  Staging = "https://apiv2-staging.emil.de",
33
33
  Development = "https://apiv2-dev.emil.de",
34
- ProductionZurich = "https://eu-central-2.apiv2.emil.de"
34
+ ProductionZurich = "https://eu-central-2.apiv2.emil.de",
35
+ StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
35
36
  }
36
37
  export declare function resetRetry(): void;
37
38
  /**
package/dist/base.js CHANGED
@@ -132,6 +132,7 @@ var Environment;
132
132
  Environment["Staging"] = "https://apiv2-staging.emil.de";
133
133
  Environment["Development"] = "https://apiv2-dev.emil.de";
134
134
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
135
+ Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
135
136
  })(Environment = exports.Environment || (exports.Environment = {}));
136
137
  var _retry_count = 0;
137
138
  var _retry = null;
@@ -0,0 +1,93 @@
1
+ /**
2
+ * EMIL SettingService
3
+ * The EMIL SettingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateSettingDefinitionRequestDto
16
+ */
17
+ export interface CreateSettingDefinitionRequestDto {
18
+ /**
19
+ * Global: {service}.global.{name} (e.g. insuranceservice.global.tax_config). Tenant: single slug (e.g. tax_config).
20
+ * @type {string}
21
+ * @memberof CreateSettingDefinitionRequestDto
22
+ */
23
+ 'definitionKey': string;
24
+ /**
25
+ * Owning backend service. Required for global definitions only; tenant definitions are owned by the platform.
26
+ * @type {string}
27
+ * @memberof CreateSettingDefinitionRequestDto
28
+ */
29
+ 'ownerService'?: CreateSettingDefinitionRequestDtoOwnerServiceEnum;
30
+ /**
31
+ * Logical group for organizing settings (e.g. product, payment).
32
+ * @type {string}
33
+ * @memberof CreateSettingDefinitionRequestDto
34
+ */
35
+ 'scope': CreateSettingDefinitionRequestDtoScopeEnum;
36
+ /**
37
+ *
38
+ * @type {object}
39
+ * @memberof CreateSettingDefinitionRequestDto
40
+ */
41
+ 'schema': object;
42
+ /**
43
+ *
44
+ * @type {object}
45
+ * @memberof CreateSettingDefinitionRequestDto
46
+ */
47
+ 'uiHints': object;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof CreateSettingDefinitionRequestDto
52
+ */
53
+ 'isSecured': boolean;
54
+ }
55
+ export declare const CreateSettingDefinitionRequestDtoOwnerServiceEnum: {
56
+ readonly Insuranceservice: "insuranceservice";
57
+ readonly Accountservice: "accountservice";
58
+ readonly Partnerservice: "partnerservice";
59
+ readonly Partnerportalservice: "partnerportalservice";
60
+ readonly Claimservice: "claimservice";
61
+ readonly Customerservice: "customerservice";
62
+ readonly Gdvservice: "gdvservice";
63
+ readonly Productsyncservice: "productsyncservice";
64
+ readonly Riskzoneservice: "riskzoneservice";
65
+ readonly Discountservice: "discountservice";
66
+ readonly Premiumcalculationservice: "premiumcalculationservice";
67
+ readonly Commissionservice: "commissionservice";
68
+ readonly Accountingservice: "accountingservice";
69
+ readonly Billingservice: "billingservice";
70
+ readonly Paymentservice: "paymentservice";
71
+ readonly Dunningservice: "dunningservice";
72
+ readonly Authservice: "authservice";
73
+ readonly Notificationservice: "notificationservice";
74
+ readonly Numbergenerator: "numbergenerator";
75
+ readonly Policyadministrationservice: "policyadministrationservice";
76
+ readonly Policydecisionservice: "policydecisionservice";
77
+ readonly Processmanagerservice: "processmanagerservice";
78
+ readonly Tenantservice: "tenantservice";
79
+ readonly Documentservice: "documentservice";
80
+ readonly Commentingservice: "commentingservice";
81
+ readonly Taskservice: "taskservice";
82
+ readonly Actionservice: "actionservice";
83
+ readonly Webhookservice: "webhookservice";
84
+ readonly Changelogservice: "changelogservice";
85
+ readonly Validationrulesservice: "validationrulesservice";
86
+ };
87
+ export type CreateSettingDefinitionRequestDtoOwnerServiceEnum = typeof CreateSettingDefinitionRequestDtoOwnerServiceEnum[keyof typeof CreateSettingDefinitionRequestDtoOwnerServiceEnum];
88
+ export declare const CreateSettingDefinitionRequestDtoScopeEnum: {
89
+ readonly Product: "product";
90
+ readonly Infrastructure: "infrastructure";
91
+ readonly Finance: "finance";
92
+ };
93
+ export type CreateSettingDefinitionRequestDtoScopeEnum = typeof CreateSettingDefinitionRequestDtoScopeEnum[keyof typeof CreateSettingDefinitionRequestDtoScopeEnum];
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL SettingService
6
+ * The EMIL SettingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateSettingDefinitionRequestDtoScopeEnum = exports.CreateSettingDefinitionRequestDtoOwnerServiceEnum = void 0;
17
+ exports.CreateSettingDefinitionRequestDtoOwnerServiceEnum = {
18
+ Insuranceservice: 'insuranceservice',
19
+ Accountservice: 'accountservice',
20
+ Partnerservice: 'partnerservice',
21
+ Partnerportalservice: 'partnerportalservice',
22
+ Claimservice: 'claimservice',
23
+ Customerservice: 'customerservice',
24
+ Gdvservice: 'gdvservice',
25
+ Productsyncservice: 'productsyncservice',
26
+ Riskzoneservice: 'riskzoneservice',
27
+ Discountservice: 'discountservice',
28
+ Premiumcalculationservice: 'premiumcalculationservice',
29
+ Commissionservice: 'commissionservice',
30
+ Accountingservice: 'accountingservice',
31
+ Billingservice: 'billingservice',
32
+ Paymentservice: 'paymentservice',
33
+ Dunningservice: 'dunningservice',
34
+ Authservice: 'authservice',
35
+ Notificationservice: 'notificationservice',
36
+ Numbergenerator: 'numbergenerator',
37
+ Policyadministrationservice: 'policyadministrationservice',
38
+ Policydecisionservice: 'policydecisionservice',
39
+ Processmanagerservice: 'processmanagerservice',
40
+ Tenantservice: 'tenantservice',
41
+ Documentservice: 'documentservice',
42
+ Commentingservice: 'commentingservice',
43
+ Taskservice: 'taskservice',
44
+ Actionservice: 'actionservice',
45
+ Webhookservice: 'webhookservice',
46
+ Changelogservice: 'changelogservice',
47
+ Validationrulesservice: 'validationrulesservice'
48
+ };
49
+ exports.CreateSettingDefinitionRequestDtoScopeEnum = {
50
+ Product: 'product',
51
+ Infrastructure: 'infrastructure',
52
+ Finance: 'finance'
53
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL SettingService
3
+ * The EMIL SettingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { SettingDefinitionClass } from './setting-definition-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateSettingDefinitionResponseClass
17
+ */
18
+ export interface CreateSettingDefinitionResponseClass {
19
+ /**
20
+ *
21
+ * @type {SettingDefinitionClass}
22
+ * @memberof CreateSettingDefinitionResponseClass
23
+ */
24
+ 'definition': SettingDefinitionClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL SettingService
6
+ * The EMIL SettingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });