@redhat-cloud-services/notifications-client 0.0.40 → 1.0.0

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 (194) hide show
  1. package/README.md +8 -8
  2. package/dist/EventResourceV1GetEvents/index.d.ts +111 -0
  3. package/dist/EventResourceV1GetEvents/index.js +143 -0
  4. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts +26 -0
  5. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js +93 -0
  6. package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts +21 -0
  7. package/dist/NotificationResourceV1CreateBehaviorGroup/index.js +93 -0
  8. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts +20 -0
  9. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js +92 -0
  10. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts +26 -0
  11. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js +93 -0
  12. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts +20 -0
  13. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js +92 -0
  14. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts +26 -0
  15. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js +93 -0
  16. package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts +20 -0
  17. package/dist/NotificationResourceV1GetApplicationsFacets/index.js +94 -0
  18. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +20 -0
  19. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js +92 -0
  20. package/dist/NotificationResourceV1GetBundleByName/index.d.ts +20 -0
  21. package/dist/NotificationResourceV1GetBundleByName/index.js +92 -0
  22. package/dist/NotificationResourceV1GetBundleFacets/index.d.ts +20 -0
  23. package/dist/NotificationResourceV1GetBundleFacets/index.js +94 -0
  24. package/dist/NotificationResourceV1GetEventTypes/index.d.ts +62 -0
  25. package/dist/NotificationResourceV1GetEventTypes/index.js +115 -0
  26. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +20 -0
  27. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js +92 -0
  28. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +32 -0
  29. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js +94 -0
  30. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts +50 -0
  31. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js +116 -0
  32. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts +27 -0
  33. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js +94 -0
  34. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts +26 -0
  35. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js +94 -0
  36. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts +26 -0
  37. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js +94 -0
  38. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts +13 -0
  39. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js +90 -0
  40. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts +20 -0
  41. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js +93 -0
  42. package/dist/UserConfigResourceV1GetPreferences/index.d.ts +25 -0
  43. package/dist/UserConfigResourceV1GetPreferences/index.js +92 -0
  44. package/dist/UserConfigResourceV1GetSettingsSchema/index.d.ts +19 -0
  45. package/dist/UserConfigResourceV1GetSettingsSchema/index.js +93 -0
  46. package/dist/UserConfigResourceV1SaveSettings/index.d.ts +20 -0
  47. package/dist/UserConfigResourceV1SaveSettings/index.js +92 -0
  48. package/dist/api.d.ts +2536 -759
  49. package/dist/api.js +2833 -778
  50. package/dist/base.d.ts +54 -0
  51. package/dist/base.js +80 -0
  52. package/dist/common.d.ts +65 -0
  53. package/dist/common.js +252 -0
  54. package/dist/configuration.d.ts +24 -15
  55. package/dist/configuration.js +19 -12
  56. package/dist/index.d.ts +27 -13
  57. package/dist/index.js +89 -17
  58. package/dist/types/index.d.ts +1657 -0
  59. package/dist/types/index.js +90 -0
  60. package/dist/utils/base.d.ts +84 -0
  61. package/dist/utils/base.js +251 -0
  62. package/dist/utils/common.d.ts +54 -0
  63. package/dist/utils/common.js +241 -0
  64. package/dist/utils/configuration.d.ts +72 -0
  65. package/dist/utils/configuration.js +33 -0
  66. package/dist/utils/index.d.ts +3 -0
  67. package/dist/utils/index.js +19 -0
  68. package/doc/.nojekyll +1 -0
  69. package/doc/README.md +11 -420
  70. package/doc/classes/BaseAPI.md +125 -0
  71. package/doc/classes/Configuration.md +194 -0
  72. package/doc/classes/RequiredError.md +179 -0
  73. package/doc/enums/EmailSubscriptionType.md +21 -0
  74. package/doc/enums/EndpointStatus.md +76 -0
  75. package/doc/enums/EndpointType.md +65 -0
  76. package/doc/enums/Environment.md +54 -0
  77. package/doc/enums/EventLogEntryActionStatus.md +65 -0
  78. package/doc/enums/HttpType.md +43 -0
  79. package/doc/enums/NotificationStatus.md +65 -0
  80. package/doc/enums/Status.md +32 -0
  81. package/doc/interfaces/AddAccessRequest.md +44 -0
  82. package/doc/interfaces/AddApplicationRequest.md +74 -0
  83. package/doc/interfaces/AggregationEmailTemplate.md +164 -0
  84. package/doc/interfaces/ApiConfig.md +30 -0
  85. package/doc/interfaces/Application.md +104 -0
  86. package/doc/interfaces/Application1.md +44 -0
  87. package/doc/interfaces/ApplicationSettingsValue.md +33 -0
  88. package/doc/interfaces/ApplicationSettingsValue1.md +48 -0
  89. package/doc/interfaces/BasicAuthentication.md +44 -0
  90. package/doc/interfaces/BehaviorGroup.md +149 -0
  91. package/doc/interfaces/BehaviorGroupAction.md +59 -0
  92. package/doc/interfaces/BehaviorGroupActionId.md +44 -0
  93. package/doc/interfaces/Bundle.md +89 -0
  94. package/doc/interfaces/BundleSettingsValue.md +33 -0
  95. package/doc/interfaces/BundleSettingsValue1.md +33 -0
  96. package/doc/interfaces/CamelProperties.md +93 -0
  97. package/doc/interfaces/ConfigurationParameters.md +89 -0
  98. package/doc/interfaces/CreateBehaviorGroupRequest.md +104 -0
  99. package/doc/interfaces/CreateBehaviorGroupResponse.md +104 -0
  100. package/doc/interfaces/CurrentStatus.md +59 -0
  101. package/doc/interfaces/DuplicateNameMigrationReport.md +44 -0
  102. package/doc/interfaces/Endpoint.md +179 -0
  103. package/doc/interfaces/EndpointPage.md +63 -0
  104. package/doc/interfaces/EndpointTestRequest.md +29 -0
  105. package/doc/interfaces/EventLogEntry.md +119 -0
  106. package/doc/interfaces/EventLogEntryAction.md +125 -0
  107. package/doc/interfaces/EventType.md +119 -0
  108. package/doc/interfaces/EventTypeBehavior.md +59 -0
  109. package/doc/interfaces/EventTypeBehaviorId.md +44 -0
  110. package/doc/interfaces/EventTypeSettingsValue.md +48 -0
  111. package/doc/interfaces/Facet.md +74 -0
  112. package/doc/interfaces/InstantEmailTemplate.md +149 -0
  113. package/doc/interfaces/InternalApplicationUserPermission.md +59 -0
  114. package/doc/interfaces/InternalRoleAccess.md +59 -0
  115. package/doc/interfaces/InternalUserPermissions.md +59 -0
  116. package/doc/interfaces/MessageValidationResponse.md +33 -0
  117. package/doc/interfaces/Meta.md +29 -0
  118. package/doc/interfaces/NotificationHistory.md +155 -0
  119. package/doc/interfaces/PageBehaviorGroup.md +63 -0
  120. package/doc/interfaces/PageEventLogEntry.md +63 -0
  121. package/doc/interfaces/PageEventType.md +63 -0
  122. package/doc/interfaces/PageNotificationHistory.md +63 -0
  123. package/doc/interfaces/RenderEmailTemplateRequest.md +44 -0
  124. package/doc/interfaces/RequestArgs.md +58 -0
  125. package/doc/interfaces/RequestDefaultBehaviorGroupPropertyList.md +44 -0
  126. package/doc/interfaces/RequestSystemSubscriptionProperties.md +44 -0
  127. package/doc/interfaces/ServerInfo.md +29 -0
  128. package/doc/interfaces/SettingsValues.md +33 -0
  129. package/doc/interfaces/SettingsValuesByEventType.md +33 -0
  130. package/doc/interfaces/SystemSubscriptionProperties.md +59 -0
  131. package/doc/interfaces/Template.md +104 -0
  132. package/doc/interfaces/TriggerDailyDigestRequest.md +89 -0
  133. package/doc/interfaces/UpdateBehaviorGroupRequest.md +74 -0
  134. package/doc/interfaces/UserConfigPreferences.md +44 -0
  135. package/doc/interfaces/WebhookProperties.md +89 -0
  136. package/doc/modules.md +1080 -0
  137. package/git_push.sh +57 -0
  138. package/openapitools.json +7 -0
  139. package/package.json +26 -31
  140. package/postProcess.sh +3 -11
  141. package/tsconfig-cjs.json +19 -0
  142. package/tsconfig-esm.json +21 -0
  143. package/tsconfig.json +18 -0
  144. package/doc/classes/appregistrationapi.md +0 -123
  145. package/doc/classes/appsapi.md +0 -149
  146. package/doc/classes/baseapi.md +0 -86
  147. package/doc/classes/configuration.md +0 -140
  148. package/doc/classes/endpointsapi.md +0 -255
  149. package/doc/classes/filtersapi.md +0 -124
  150. package/doc/classes/requirederror.md +0 -109
  151. package/doc/enums/app.typeenum.md +0 -28
  152. package/doc/enums/endpoint.typeenum.md +0 -28
  153. package/doc/enums/endpointattributes.lastdeliverystatusenum.md +0 -38
  154. package/doc/enums/eventtype.typeenum.md +0 -28
  155. package/doc/enums/inlineresponse2004data.typeenum.md +0 -28
  156. package/doc/enums/level.typeenum.md +0 -28
  157. package/doc/interfaces/appattributes.md +0 -54
  158. package/doc/interfaces/apprelationships.md +0 -36
  159. package/doc/interfaces/appsregisterapplication.md +0 -50
  160. package/doc/interfaces/appsregistereventtypes.md +0 -64
  161. package/doc/interfaces/appsregistereventtypeslevels.md +0 -50
  162. package/doc/interfaces/configurationparameters.md +0 -84
  163. package/doc/interfaces/endpointsendpoint.md +0 -78
  164. package/doc/interfaces/endpointsendpointfilter.md +0 -64
  165. package/doc/interfaces/endpointsidendpoint.md +0 -78
  166. package/doc/interfaces/endpointsidendpointfilter.md +0 -78
  167. package/doc/interfaces/errors.md +0 -36
  168. package/doc/interfaces/errorserrors.md +0 -120
  169. package/doc/interfaces/errorssource.md +0 -50
  170. package/doc/interfaces/eventtypeattributes.md +0 -54
  171. package/doc/interfaces/eventtyperelationships.md +0 -36
  172. package/doc/interfaces/inlineobject.md +0 -50
  173. package/doc/interfaces/inlineobject1.md +0 -36
  174. package/doc/interfaces/inlineobject2.md +0 -36
  175. package/doc/interfaces/inlineresponse200.md +0 -50
  176. package/doc/interfaces/inlineresponse2001.md +0 -36
  177. package/doc/interfaces/inlineresponse2002.md +0 -50
  178. package/doc/interfaces/inlineresponse2003.md +0 -64
  179. package/doc/interfaces/inlineresponse2004.md +0 -36
  180. package/doc/interfaces/inlineresponse2004dataattributes.md +0 -36
  181. package/doc/interfaces/inlineresponse2004datarelationships.md +0 -78
  182. package/doc/interfaces/inlineresponse201.md +0 -36
  183. package/doc/interfaces/levelattributes.md +0 -38
  184. package/doc/interfaces/links.md +0 -86
  185. package/doc/interfaces/metadata.md +0 -70
  186. package/doc/interfaces/relationship.md +0 -50
  187. package/doc/interfaces/relationships.md +0 -36
  188. package/doc/interfaces/requestargs.md +0 -42
  189. package/doc/modules/app.md +0 -82
  190. package/doc/modules/endpoint.md +0 -68
  191. package/doc/modules/endpointattributes.md +0 -118
  192. package/doc/modules/eventtype.md +0 -82
  193. package/doc/modules/inlineresponse2004data.md +0 -78
  194. package/doc/modules/level.md +0 -68
@@ -0,0 +1,50 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '../utils/base';
3
+ export declare type NotificationResourceV1GetLinkedBehaviorGroupsParams = {
4
+ /**
5
+ *
6
+ * @type { string }
7
+ * @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
8
+ */
9
+ eventTypeId: string;
10
+ /**
11
+ *
12
+ * @type { number }
13
+ * @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
14
+ */
15
+ limit?: number;
16
+ /**
17
+ *
18
+ * @type { number }
19
+ * @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
20
+ */
21
+ offset?: number;
22
+ /**
23
+ *
24
+ * @type { number }
25
+ * @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
26
+ */
27
+ pageNumber?: number;
28
+ /**
29
+ *
30
+ * @type { string }
31
+ * @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
32
+ */
33
+ sortBy?: string;
34
+ /**
35
+ *
36
+ * @type { string }
37
+ * @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
38
+ */
39
+ sortBy2?: string;
40
+ options?: AxiosRequestConfig;
41
+ };
42
+ /**
43
+ *
44
+ * @summary Retrieve the behavior groups linked to an event type.
45
+ * @param {NotificationResourceV1GetLinkedBehaviorGroupsParams} config with all available params.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ export declare const notificationResourceV1GetLinkedBehaviorGroupsParamCreator: (...config: ([NotificationResourceV1GetLinkedBehaviorGroupsParams] | [string, number, number, number, string, string, AxiosRequestConfig])) => Promise<RequestArgs>;
50
+ export default notificationResourceV1GetLinkedBehaviorGroupsParamCreator;
@@ -0,0 +1,116 @@
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.notificationResourceV1GetLinkedBehaviorGroupsParamCreator = void 0;
51
+ // @ts-ignore
52
+ var common_1 = require("../utils/common");
53
+ // @ts-ignore
54
+ var base_1 = require("../utils/base");
55
+ var isNotificationResourceV1GetLinkedBehaviorGroupsObjectParams = function (params) {
56
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'eventTypeId') && true && true && true && true && true;
57
+ };
58
+ /**
59
+ *
60
+ * @summary Retrieve the behavior groups linked to an event type.
61
+ * @param {NotificationResourceV1GetLinkedBehaviorGroupsParams} config with all available params.
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ var notificationResourceV1GetLinkedBehaviorGroupsParamCreator = function () {
66
+ var config = [];
67
+ for (var _i = 0; _i < arguments.length; _i++) {
68
+ config[_i] = arguments[_i];
69
+ }
70
+ return __awaiter(void 0, void 0, void 0, function () {
71
+ var params, eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
72
+ return __generator(this, function (_b) {
73
+ params = isNotificationResourceV1GetLinkedBehaviorGroupsObjectParams(config) ? config[0] : ['eventTypeId', 'limit', 'offset', 'pageNumber', 'sortBy', 'sortBy2', 'options'].reduce(function (acc, curr, index) {
74
+ var _a;
75
+ return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
76
+ }, {});
77
+ eventTypeId = params.eventTypeId, limit = params.limit, offset = params.offset, pageNumber = params.pageNumber, sortBy = params.sortBy, sortBy2 = params.sortBy2, _a = params.options, options = _a === void 0 ? {} : _a;
78
+ localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups"
79
+ .replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
80
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
81
+ localVarRequestOptions = __assign({ method: 'GET' }, options);
82
+ localVarHeaderParameter = {};
83
+ localVarQueryParameter = {};
84
+ if (limit !== undefined) {
85
+ localVarQueryParameter['limit'] = limit;
86
+ }
87
+ if (offset !== undefined) {
88
+ localVarQueryParameter['offset'] = offset;
89
+ }
90
+ if (pageNumber !== undefined) {
91
+ localVarQueryParameter['pageNumber'] = pageNumber;
92
+ }
93
+ if (sortBy !== undefined) {
94
+ localVarQueryParameter['sortBy'] = sortBy;
95
+ }
96
+ if (sortBy2 !== undefined) {
97
+ localVarQueryParameter['sort_by'] = sortBy2;
98
+ }
99
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
100
+ localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
101
+ return [2 /*return*/, {
102
+ urlObj: localVarUrlObj,
103
+ options: localVarRequestOptions,
104
+ auth: [
105
+ {
106
+ // authentication SecurityScheme required
107
+ // http basic authentication required
108
+ authType: base_1.AuthTypeEnum.Basic,
109
+ }
110
+ ]
111
+ }];
112
+ });
113
+ });
114
+ };
115
+ exports.notificationResourceV1GetLinkedBehaviorGroupsParamCreator = notificationResourceV1GetLinkedBehaviorGroupsParamCreator;
116
+ exports.default = exports.notificationResourceV1GetLinkedBehaviorGroupsParamCreator;
@@ -0,0 +1,27 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '../utils/base';
3
+ import type { UpdateBehaviorGroupRequest } from '../types';
4
+ export declare type NotificationResourceV1UpdateBehaviorGroupParams = {
5
+ /**
6
+ * The UUID of the behavior group to update
7
+ * @type { string }
8
+ * @memberof NotificationResourceV1UpdateBehaviorGroupApi
9
+ */
10
+ id: string;
11
+ /**
12
+ * New parameters
13
+ * @type { UpdateBehaviorGroupRequest }
14
+ * @memberof NotificationResourceV1UpdateBehaviorGroupApi
15
+ */
16
+ updateBehaviorGroupRequest: UpdateBehaviorGroupRequest;
17
+ options?: AxiosRequestConfig;
18
+ };
19
+ /**
20
+ *
21
+ * @summary Update a behavior group.
22
+ * @param {NotificationResourceV1UpdateBehaviorGroupParams} config with all available params.
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ export declare const notificationResourceV1UpdateBehaviorGroupParamCreator: (...config: ([NotificationResourceV1UpdateBehaviorGroupParams] | [string, UpdateBehaviorGroupRequest, AxiosRequestConfig])) => Promise<RequestArgs>;
27
+ export default notificationResourceV1UpdateBehaviorGroupParamCreator;
@@ -0,0 +1,94 @@
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.notificationResourceV1UpdateBehaviorGroupParamCreator = void 0;
51
+ // @ts-ignore
52
+ var common_1 = require("../utils/common");
53
+ var isNotificationResourceV1UpdateBehaviorGroupObjectParams = function (params) {
54
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'id') && Object.prototype.hasOwnProperty.call(params, 'updateBehaviorGroupRequest');
55
+ };
56
+ /**
57
+ *
58
+ * @summary Update a behavior group.
59
+ * @param {NotificationResourceV1UpdateBehaviorGroupParams} config with all available params.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ var notificationResourceV1UpdateBehaviorGroupParamCreator = function () {
64
+ var config = [];
65
+ for (var _i = 0; _i < arguments.length; _i++) {
66
+ config[_i] = arguments[_i];
67
+ }
68
+ return __awaiter(void 0, void 0, void 0, function () {
69
+ var params, id, updateBehaviorGroupRequest, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
70
+ return __generator(this, function (_b) {
71
+ params = isNotificationResourceV1UpdateBehaviorGroupObjectParams(config) ? config[0] : ['id', 'updateBehaviorGroupRequest', 'options'].reduce(function (acc, curr, index) {
72
+ var _a;
73
+ return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
74
+ }, {});
75
+ id = params.id, updateBehaviorGroupRequest = params.updateBehaviorGroupRequest, _a = params.options, options = _a === void 0 ? {} : _a;
76
+ localVarPath = "/notifications/behaviorGroups/{id}"
77
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
78
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
79
+ localVarRequestOptions = __assign({ method: 'PUT' }, options);
80
+ localVarHeaderParameter = {};
81
+ localVarQueryParameter = {};
82
+ localVarHeaderParameter['Content-Type'] = 'application/json';
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
+ serializeData: updateBehaviorGroupRequest,
89
+ }];
90
+ });
91
+ });
92
+ };
93
+ exports.notificationResourceV1UpdateBehaviorGroupParamCreator = notificationResourceV1UpdateBehaviorGroupParamCreator;
94
+ exports.default = exports.notificationResourceV1UpdateBehaviorGroupParamCreator;
@@ -0,0 +1,26 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '../utils/base';
3
+ export declare type NotificationResourceV1UpdateBehaviorGroupActionsParams = {
4
+ /**
5
+ * The UUID of the behavior group to update
6
+ * @type { string }
7
+ * @memberof NotificationResourceV1UpdateBehaviorGroupActionsApi
8
+ */
9
+ behaviorGroupId: string;
10
+ /**
11
+ *
12
+ * @type { Array<string> }
13
+ * @memberof NotificationResourceV1UpdateBehaviorGroupActionsApi
14
+ */
15
+ requestBody?: Array<string>;
16
+ options?: AxiosRequestConfig;
17
+ };
18
+ /**
19
+ *
20
+ * @summary Update the list of actions of a behavior group.
21
+ * @param {NotificationResourceV1UpdateBehaviorGroupActionsParams} config with all available params.
22
+ * @param {*} [options] Override http request option.
23
+ * @throws {RequiredError}
24
+ */
25
+ export declare const notificationResourceV1UpdateBehaviorGroupActionsParamCreator: (...config: ([NotificationResourceV1UpdateBehaviorGroupActionsParams] | [string, Array<string>, AxiosRequestConfig])) => Promise<RequestArgs>;
26
+ export default notificationResourceV1UpdateBehaviorGroupActionsParamCreator;
@@ -0,0 +1,94 @@
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.notificationResourceV1UpdateBehaviorGroupActionsParamCreator = void 0;
51
+ // @ts-ignore
52
+ var common_1 = require("../utils/common");
53
+ var isNotificationResourceV1UpdateBehaviorGroupActionsObjectParams = function (params) {
54
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'behaviorGroupId') && true;
55
+ };
56
+ /**
57
+ *
58
+ * @summary Update the list of actions of a behavior group.
59
+ * @param {NotificationResourceV1UpdateBehaviorGroupActionsParams} config with all available params.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ var notificationResourceV1UpdateBehaviorGroupActionsParamCreator = function () {
64
+ var config = [];
65
+ for (var _i = 0; _i < arguments.length; _i++) {
66
+ config[_i] = arguments[_i];
67
+ }
68
+ return __awaiter(void 0, void 0, void 0, function () {
69
+ var params, behaviorGroupId, requestBody, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
70
+ return __generator(this, function (_b) {
71
+ params = isNotificationResourceV1UpdateBehaviorGroupActionsObjectParams(config) ? config[0] : ['behaviorGroupId', 'requestBody', 'options'].reduce(function (acc, curr, index) {
72
+ var _a;
73
+ return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
74
+ }, {});
75
+ behaviorGroupId = params.behaviorGroupId, requestBody = params.requestBody, _a = params.options, options = _a === void 0 ? {} : _a;
76
+ localVarPath = "/notifications/behaviorGroups/{behaviorGroupId}/actions"
77
+ .replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)));
78
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
79
+ localVarRequestOptions = __assign({ method: 'PUT' }, options);
80
+ localVarHeaderParameter = {};
81
+ localVarQueryParameter = {};
82
+ localVarHeaderParameter['Content-Type'] = 'application/json';
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
+ serializeData: requestBody,
89
+ }];
90
+ });
91
+ });
92
+ };
93
+ exports.notificationResourceV1UpdateBehaviorGroupActionsParamCreator = notificationResourceV1UpdateBehaviorGroupActionsParamCreator;
94
+ exports.default = exports.notificationResourceV1UpdateBehaviorGroupActionsParamCreator;
@@ -0,0 +1,26 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '../utils/base';
3
+ export declare type NotificationResourceV1UpdateEventTypeBehaviorsParams = {
4
+ /**
5
+ * UUID of the eventType to associate with the behavior group(s)
6
+ * @type { string }
7
+ * @memberof NotificationResourceV1UpdateEventTypeBehaviorsApi
8
+ */
9
+ eventTypeId: string;
10
+ /**
11
+ *
12
+ * @type { Set<string> }
13
+ * @memberof NotificationResourceV1UpdateEventTypeBehaviorsApi
14
+ */
15
+ requestBody?: Set<string>;
16
+ options?: AxiosRequestConfig;
17
+ };
18
+ /**
19
+ *
20
+ * @summary Update the list of behavior groups of an event type.
21
+ * @param {NotificationResourceV1UpdateEventTypeBehaviorsParams} config with all available params.
22
+ * @param {*} [options] Override http request option.
23
+ * @throws {RequiredError}
24
+ */
25
+ export declare const notificationResourceV1UpdateEventTypeBehaviorsParamCreator: (...config: ([NotificationResourceV1UpdateEventTypeBehaviorsParams] | [string, Set<string>, AxiosRequestConfig])) => Promise<RequestArgs>;
26
+ export default notificationResourceV1UpdateEventTypeBehaviorsParamCreator;
@@ -0,0 +1,94 @@
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.notificationResourceV1UpdateEventTypeBehaviorsParamCreator = void 0;
51
+ // @ts-ignore
52
+ var common_1 = require("../utils/common");
53
+ var isNotificationResourceV1UpdateEventTypeBehaviorsObjectParams = function (params) {
54
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'eventTypeId') && true;
55
+ };
56
+ /**
57
+ *
58
+ * @summary Update the list of behavior groups of an event type.
59
+ * @param {NotificationResourceV1UpdateEventTypeBehaviorsParams} config with all available params.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ var notificationResourceV1UpdateEventTypeBehaviorsParamCreator = function () {
64
+ var config = [];
65
+ for (var _i = 0; _i < arguments.length; _i++) {
66
+ config[_i] = arguments[_i];
67
+ }
68
+ return __awaiter(void 0, void 0, void 0, function () {
69
+ var params, eventTypeId, requestBody, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
70
+ return __generator(this, function (_b) {
71
+ params = isNotificationResourceV1UpdateEventTypeBehaviorsObjectParams(config) ? config[0] : ['eventTypeId', 'requestBody', 'options'].reduce(function (acc, curr, index) {
72
+ var _a;
73
+ return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
74
+ }, {});
75
+ eventTypeId = params.eventTypeId, requestBody = params.requestBody, _a = params.options, options = _a === void 0 ? {} : _a;
76
+ localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups"
77
+ .replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
78
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
79
+ localVarRequestOptions = __assign({ method: 'PUT' }, options);
80
+ localVarHeaderParameter = {};
81
+ localVarQueryParameter = {};
82
+ localVarHeaderParameter['Content-Type'] = 'application/json';
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
+ serializeData: requestBody,
89
+ }];
90
+ });
91
+ });
92
+ };
93
+ exports.notificationResourceV1UpdateEventTypeBehaviorsParamCreator = notificationResourceV1UpdateEventTypeBehaviorsParamCreator;
94
+ exports.default = exports.notificationResourceV1UpdateEventTypeBehaviorsParamCreator;
@@ -0,0 +1,13 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '../utils/base';
3
+ export declare type OrgConfigResourceV1GetDailyDigestTimePreferenceParams = {
4
+ options?: AxiosRequestConfig;
5
+ };
6
+ /**
7
+ *
8
+ * @param {OrgConfigResourceV1GetDailyDigestTimePreferenceParams} config with all available params.
9
+ * @param {*} [options] Override http request option.
10
+ * @throws {RequiredError}
11
+ */
12
+ export declare const orgConfigResourceV1GetDailyDigestTimePreferenceParamCreator: (...config: ([OrgConfigResourceV1GetDailyDigestTimePreferenceParams] | [AxiosRequestConfig])) => Promise<RequestArgs>;
13
+ export default orgConfigResourceV1GetDailyDigestTimePreferenceParamCreator;
@@ -0,0 +1,90 @@
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.orgConfigResourceV1GetDailyDigestTimePreferenceParamCreator = void 0;
51
+ // @ts-ignore
52
+ var common_1 = require("../utils/common");
53
+ var isOrgConfigResourceV1GetDailyDigestTimePreferenceObjectParams = function (params) {
54
+ return params.length === 1;
55
+ };
56
+ /**
57
+ *
58
+ * @param {OrgConfigResourceV1GetDailyDigestTimePreferenceParams} config with all available params.
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ var orgConfigResourceV1GetDailyDigestTimePreferenceParamCreator = 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, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
69
+ return __generator(this, function (_b) {
70
+ params = isOrgConfigResourceV1GetDailyDigestTimePreferenceObjectParams(config) ? config[0] : ['options'].reduce(function (acc, curr, index) {
71
+ var _a;
72
+ return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
73
+ }, {});
74
+ _a = params.options, options = _a === void 0 ? {} : _a;
75
+ localVarPath = "/org-config/daily-digest/time-preference";
76
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
77
+ localVarRequestOptions = __assign({ method: 'GET' }, options);
78
+ localVarHeaderParameter = {};
79
+ localVarQueryParameter = {};
80
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
81
+ localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
82
+ return [2 /*return*/, {
83
+ urlObj: localVarUrlObj,
84
+ options: localVarRequestOptions,
85
+ }];
86
+ });
87
+ });
88
+ };
89
+ exports.orgConfigResourceV1GetDailyDigestTimePreferenceParamCreator = orgConfigResourceV1GetDailyDigestTimePreferenceParamCreator;
90
+ exports.default = exports.orgConfigResourceV1GetDailyDigestTimePreferenceParamCreator;