@datadog/datadog-api-client 1.2.0 → 1.3.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 (158) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE-3rdparty.csv +1 -0
  3. package/README.md +48 -3
  4. package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
  5. package/dist/packages/datadog-api-client-common/configuration.js +1 -5
  6. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  7. package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
  8. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
  9. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +8 -0
  10. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
  11. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +1 -1
  12. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
  13. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +37 -48
  14. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/index.d.ts +3 -0
  16. package/dist/packages/datadog-api-client-v1/index.js +7 -5
  17. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  18. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
  19. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
  20. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
  22. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
  23. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  24. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
  25. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
  26. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
  28. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
  29. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
  30. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
  31. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
  32. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
  34. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
  35. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
  36. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
  37. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -1
  38. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
  40. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
  41. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  42. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +27 -3
  43. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  44. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
  45. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
  46. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
  47. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
  48. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
  49. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
  50. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
  51. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
  52. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
  53. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
  54. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
  55. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
  56. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
  57. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
  58. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
  59. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
  60. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
  61. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
  62. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
  63. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
  64. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
  65. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
  67. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
  68. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  69. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +3 -1
  70. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -1
  71. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
  72. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +3 -1
  73. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -1
  74. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
  75. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +8 -0
  76. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
  77. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
  78. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
  79. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
  80. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
  81. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
  82. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
  83. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
  84. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
  85. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
  86. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  87. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +8 -0
  88. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +9 -0
  89. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  90. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
  91. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
  92. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  93. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
  94. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
  95. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
  96. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +1 -0
  97. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  98. package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
  99. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +537 -22
  100. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
  101. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +0 -3
  102. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  103. package/dist/packages/datadog-api-client-v2/index.d.ts +14 -1
  104. package/dist/packages/datadog-api-client-v2/index.js +23 -3
  105. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  106. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
  107. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
  108. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
  109. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
  110. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
  111. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
  112. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +25 -2
  113. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  114. package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
  115. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
  116. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
  117. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
  118. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
  119. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
  120. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
  121. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
  122. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
  123. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
  124. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
  125. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
  126. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
  127. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
  128. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
  129. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
  130. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
  131. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
  132. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
  133. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
  134. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
  135. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
  136. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
  137. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
  138. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
  139. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
  140. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
  141. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
  142. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
  143. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
  144. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
  145. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
  146. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
  147. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
  148. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
  149. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
  150. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
  151. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
  152. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
  153. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
  154. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
  155. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
  156. package/dist/version.d.ts +1 -1
  157. package/dist/version.js +1 -1
  158. package/package.json +3 -2
@@ -105,6 +105,96 @@ var RUMApiRequestFactory = /** @class */ (function (_super) {
105
105
  });
106
106
  });
107
107
  };
108
+ RUMApiRequestFactory.prototype.createRUMApplication = function (body, _options) {
109
+ return __awaiter(this, void 0, void 0, function () {
110
+ var _config, localVarPath, requestContext, contentType, serializedBody;
111
+ return __generator(this, function (_a) {
112
+ _config = _options || this.configuration;
113
+ // verify required parameter 'body' is not null or undefined
114
+ if (body === null || body === undefined) {
115
+ throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling createRUMApplication.");
116
+ }
117
+ localVarPath = "/api/v2/rum/applications";
118
+ requestContext = (0, configuration_1.getServer)(_config, "v2.RUMApi.createRUMApplication").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
119
+ requestContext.setHeaderParam("Accept", "application/json");
120
+ requestContext.setHttpConfig(_config.httpConfig);
121
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
122
+ "application/json",
123
+ ]);
124
+ requestContext.setHeaderParam("Content-Type", contentType);
125
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RUMApplicationCreateRequest", ""), contentType);
126
+ requestContext.setBody(serializedBody);
127
+ // Apply auth methods
128
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
129
+ "apiKeyAuth",
130
+ "appKeyAuth",
131
+ ]);
132
+ return [2 /*return*/, requestContext];
133
+ });
134
+ });
135
+ };
136
+ RUMApiRequestFactory.prototype.deleteRUMApplication = function (id, _options) {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ var _config, localVarPath, requestContext;
139
+ return __generator(this, function (_a) {
140
+ _config = _options || this.configuration;
141
+ // verify required parameter 'id' is not null or undefined
142
+ if (id === null || id === undefined) {
143
+ throw new baseapi_1.RequiredError("Required parameter id was null or undefined when calling deleteRUMApplication.");
144
+ }
145
+ localVarPath = "/api/v2/rum/applications/{id}".replace("{" + "id" + "}", encodeURIComponent(String(id)));
146
+ requestContext = (0, configuration_1.getServer)(_config, "v2.RUMApi.deleteRUMApplication").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
147
+ requestContext.setHeaderParam("Accept", "*/*");
148
+ requestContext.setHttpConfig(_config.httpConfig);
149
+ // Apply auth methods
150
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
151
+ "apiKeyAuth",
152
+ "appKeyAuth",
153
+ ]);
154
+ return [2 /*return*/, requestContext];
155
+ });
156
+ });
157
+ };
158
+ RUMApiRequestFactory.prototype.getRUMApplication = function (id, _options) {
159
+ return __awaiter(this, void 0, void 0, function () {
160
+ var _config, localVarPath, requestContext;
161
+ return __generator(this, function (_a) {
162
+ _config = _options || this.configuration;
163
+ // verify required parameter 'id' is not null or undefined
164
+ if (id === null || id === undefined) {
165
+ throw new baseapi_1.RequiredError("Required parameter id was null or undefined when calling getRUMApplication.");
166
+ }
167
+ localVarPath = "/api/v2/rum/applications/{id}".replace("{" + "id" + "}", encodeURIComponent(String(id)));
168
+ requestContext = (0, configuration_1.getServer)(_config, "v2.RUMApi.getRUMApplication").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
169
+ requestContext.setHeaderParam("Accept", "application/json");
170
+ requestContext.setHttpConfig(_config.httpConfig);
171
+ // Apply auth methods
172
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
173
+ "apiKeyAuth",
174
+ "appKeyAuth",
175
+ ]);
176
+ return [2 /*return*/, requestContext];
177
+ });
178
+ });
179
+ };
180
+ RUMApiRequestFactory.prototype.getRUMApplications = function (_options) {
181
+ return __awaiter(this, void 0, void 0, function () {
182
+ var _config, localVarPath, requestContext;
183
+ return __generator(this, function (_a) {
184
+ _config = _options || this.configuration;
185
+ localVarPath = "/api/v2/rum/applications";
186
+ requestContext = (0, configuration_1.getServer)(_config, "v2.RUMApi.getRUMApplications").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
187
+ requestContext.setHeaderParam("Accept", "application/json");
188
+ requestContext.setHttpConfig(_config.httpConfig);
189
+ // Apply auth methods
190
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
191
+ "apiKeyAuth",
192
+ "appKeyAuth",
193
+ ]);
194
+ return [2 /*return*/, requestContext];
195
+ });
196
+ });
197
+ };
108
198
  RUMApiRequestFactory.prototype.listRUMEvents = function (filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) {
109
199
  return __awaiter(this, void 0, void 0, function () {
110
200
  var _config, localVarPath, requestContext;
@@ -172,6 +262,38 @@ var RUMApiRequestFactory = /** @class */ (function (_super) {
172
262
  });
173
263
  });
174
264
  };
265
+ RUMApiRequestFactory.prototype.updateRUMApplication = function (id, body, _options) {
266
+ return __awaiter(this, void 0, void 0, function () {
267
+ var _config, localVarPath, requestContext, contentType, serializedBody;
268
+ return __generator(this, function (_a) {
269
+ _config = _options || this.configuration;
270
+ // verify required parameter 'id' is not null or undefined
271
+ if (id === null || id === undefined) {
272
+ throw new baseapi_1.RequiredError("Required parameter id was null or undefined when calling updateRUMApplication.");
273
+ }
274
+ // verify required parameter 'body' is not null or undefined
275
+ if (body === null || body === undefined) {
276
+ throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling updateRUMApplication.");
277
+ }
278
+ localVarPath = "/api/v2/rum/applications/{id}".replace("{" + "id" + "}", encodeURIComponent(String(id)));
279
+ requestContext = (0, configuration_1.getServer)(_config, "v2.RUMApi.updateRUMApplication").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
280
+ requestContext.setHeaderParam("Accept", "application/json");
281
+ requestContext.setHttpConfig(_config.httpConfig);
282
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
283
+ "application/json",
284
+ ]);
285
+ requestContext.setHeaderParam("Content-Type", contentType);
286
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RUMApplicationUpdateRequest", ""), contentType);
287
+ requestContext.setBody(serializedBody);
288
+ // Apply auth methods
289
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
290
+ "apiKeyAuth",
291
+ "appKeyAuth",
292
+ ]);
293
+ return [2 /*return*/, requestContext];
294
+ });
295
+ });
296
+ };
175
297
  return RUMApiRequestFactory;
176
298
  }(baseapi_1.BaseAPIRequestFactory));
177
299
  exports.RUMApiRequestFactory = RUMApiRequestFactory;
@@ -249,6 +371,243 @@ var RUMApiResponseProcessor = /** @class */ (function () {
249
371
  });
250
372
  });
251
373
  };
374
+ /**
375
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
376
+ * to the expected objects
377
+ *
378
+ * @params response Response returned by the server for a request to createRUMApplication
379
+ * @throws ApiException if the response code was not in [200, 299]
380
+ */
381
+ RUMApiResponseProcessor.prototype.createRUMApplication = function (response) {
382
+ return __awaiter(this, void 0, void 0, function () {
383
+ var contentType, body_6, _a, _b, _c, _d, body_7, _e, _f, _g, _h, body_8, _j, _k, _l, _m, body_9, _o, _p, _q, _r, body;
384
+ return __generator(this, function (_s) {
385
+ switch (_s.label) {
386
+ case 0:
387
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
388
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
389
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
390
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
391
+ return [4 /*yield*/, response.body.text()];
392
+ case 1:
393
+ body_6 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
394
+ "RUMApplicationResponse",
395
+ ""]);
396
+ return [2 /*return*/, body_6];
397
+ case 2:
398
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
399
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
400
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
401
+ return [4 /*yield*/, response.body.text()];
402
+ case 3:
403
+ body_7 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
404
+ "APIErrorResponse",
405
+ ""]);
406
+ throw new exception_1.ApiException(400, body_7);
407
+ case 4:
408
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
409
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
410
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
411
+ return [4 /*yield*/, response.body.text()];
412
+ case 5:
413
+ body_8 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
414
+ "APIErrorResponse",
415
+ ""]);
416
+ throw new exception_1.ApiException(429, body_8);
417
+ case 6:
418
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
419
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
420
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
421
+ return [4 /*yield*/, response.body.text()];
422
+ case 7:
423
+ body_9 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
424
+ "RUMApplicationResponse",
425
+ ""]);
426
+ return [2 /*return*/, body_9];
427
+ case 8: return [4 /*yield*/, response.body.text()];
428
+ case 9:
429
+ body = (_s.sent()) || "";
430
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
431
+ }
432
+ });
433
+ });
434
+ };
435
+ /**
436
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
437
+ * to the expected objects
438
+ *
439
+ * @params response Response returned by the server for a request to deleteRUMApplication
440
+ * @throws ApiException if the response code was not in [200, 299]
441
+ */
442
+ RUMApiResponseProcessor.prototype.deleteRUMApplication = function (response) {
443
+ return __awaiter(this, void 0, void 0, function () {
444
+ var contentType, body_10, _a, _b, _c, _d, body_11, _e, _f, _g, _h, body_12, _j, _k, _l, _m, body;
445
+ return __generator(this, function (_o) {
446
+ switch (_o.label) {
447
+ case 0:
448
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
449
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
450
+ return [2 /*return*/];
451
+ }
452
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 2];
453
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
454
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
455
+ return [4 /*yield*/, response.body.text()];
456
+ case 1:
457
+ body_10 = _b.apply(_a, [_d.apply(_c, [_o.sent(), contentType]),
458
+ "APIErrorResponse",
459
+ ""]);
460
+ throw new exception_1.ApiException(404, body_10);
461
+ case 2:
462
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 4];
463
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
464
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
465
+ return [4 /*yield*/, response.body.text()];
466
+ case 3:
467
+ body_11 = _f.apply(_e, [_h.apply(_g, [_o.sent(), contentType]),
468
+ "APIErrorResponse",
469
+ ""]);
470
+ throw new exception_1.ApiException(429, body_11);
471
+ case 4:
472
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
473
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
474
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
475
+ return [4 /*yield*/, response.body.text()];
476
+ case 5:
477
+ body_12 = _k.apply(_j, [_m.apply(_l, [_o.sent(), contentType]),
478
+ "void",
479
+ ""]);
480
+ return [2 /*return*/, body_12];
481
+ case 6: return [4 /*yield*/, response.body.text()];
482
+ case 7:
483
+ body = (_o.sent()) || "";
484
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
485
+ }
486
+ });
487
+ });
488
+ };
489
+ /**
490
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
491
+ * to the expected objects
492
+ *
493
+ * @params response Response returned by the server for a request to getRUMApplication
494
+ * @throws ApiException if the response code was not in [200, 299]
495
+ */
496
+ RUMApiResponseProcessor.prototype.getRUMApplication = function (response) {
497
+ return __awaiter(this, void 0, void 0, function () {
498
+ var contentType, body_13, _a, _b, _c, _d, body_14, _e, _f, _g, _h, body_15, _j, _k, _l, _m, body_16, _o, _p, _q, _r, body;
499
+ return __generator(this, function (_s) {
500
+ switch (_s.label) {
501
+ case 0:
502
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
503
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
504
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
505
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
506
+ return [4 /*yield*/, response.body.text()];
507
+ case 1:
508
+ body_13 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
509
+ "RUMApplicationResponse",
510
+ ""]);
511
+ return [2 /*return*/, body_13];
512
+ case 2:
513
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
514
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
515
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
516
+ return [4 /*yield*/, response.body.text()];
517
+ case 3:
518
+ body_14 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
519
+ "APIErrorResponse",
520
+ ""]);
521
+ throw new exception_1.ApiException(404, body_14);
522
+ case 4:
523
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
524
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
525
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
526
+ return [4 /*yield*/, response.body.text()];
527
+ case 5:
528
+ body_15 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
529
+ "APIErrorResponse",
530
+ ""]);
531
+ throw new exception_1.ApiException(429, body_15);
532
+ case 6:
533
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
534
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
535
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
536
+ return [4 /*yield*/, response.body.text()];
537
+ case 7:
538
+ body_16 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
539
+ "RUMApplicationResponse",
540
+ ""]);
541
+ return [2 /*return*/, body_16];
542
+ case 8: return [4 /*yield*/, response.body.text()];
543
+ case 9:
544
+ body = (_s.sent()) || "";
545
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
546
+ }
547
+ });
548
+ });
549
+ };
550
+ /**
551
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
552
+ * to the expected objects
553
+ *
554
+ * @params response Response returned by the server for a request to getRUMApplications
555
+ * @throws ApiException if the response code was not in [200, 299]
556
+ */
557
+ RUMApiResponseProcessor.prototype.getRUMApplications = function (response) {
558
+ return __awaiter(this, void 0, void 0, function () {
559
+ var contentType, body_17, _a, _b, _c, _d, body_18, _e, _f, _g, _h, body_19, _j, _k, _l, _m, body_20, _o, _p, _q, _r, body;
560
+ return __generator(this, function (_s) {
561
+ switch (_s.label) {
562
+ case 0:
563
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
564
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
565
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
566
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
567
+ return [4 /*yield*/, response.body.text()];
568
+ case 1:
569
+ body_17 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
570
+ "RUMApplicationsResponse",
571
+ ""]);
572
+ return [2 /*return*/, body_17];
573
+ case 2:
574
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
575
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
576
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
577
+ return [4 /*yield*/, response.body.text()];
578
+ case 3:
579
+ body_18 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
580
+ "APIErrorResponse",
581
+ ""]);
582
+ throw new exception_1.ApiException(404, body_18);
583
+ case 4:
584
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
585
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
586
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
587
+ return [4 /*yield*/, response.body.text()];
588
+ case 5:
589
+ body_19 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
590
+ "APIErrorResponse",
591
+ ""]);
592
+ throw new exception_1.ApiException(429, body_19);
593
+ case 6:
594
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
595
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
596
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
597
+ return [4 /*yield*/, response.body.text()];
598
+ case 7:
599
+ body_20 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
600
+ "RUMApplicationsResponse",
601
+ ""]);
602
+ return [2 /*return*/, body_20];
603
+ case 8: return [4 /*yield*/, response.body.text()];
604
+ case 9:
605
+ body = (_s.sent()) || "";
606
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
607
+ }
608
+ });
609
+ });
610
+ };
252
611
  /**
253
612
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
254
613
  * to the expected objects
@@ -258,7 +617,7 @@ var RUMApiResponseProcessor = /** @class */ (function () {
258
617
  */
259
618
  RUMApiResponseProcessor.prototype.listRUMEvents = function (response) {
260
619
  return __awaiter(this, void 0, void 0, function () {
261
- var contentType, body_6, _a, _b, _c, _d, body_7, _e, _f, _g, _h, body_8, _j, _k, _l, _m, body_9, _o, _p, _q, _r, body_10, _s, _t, _u, _v, body;
620
+ var contentType, body_21, _a, _b, _c, _d, body_22, _e, _f, _g, _h, body_23, _j, _k, _l, _m, body_24, _o, _p, _q, _r, body_25, _s, _t, _u, _v, body;
262
621
  return __generator(this, function (_w) {
263
622
  switch (_w.label) {
264
623
  case 0:
@@ -268,50 +627,50 @@ var RUMApiResponseProcessor = /** @class */ (function () {
268
627
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
269
628
  return [4 /*yield*/, response.body.text()];
270
629
  case 1:
271
- body_6 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
630
+ body_21 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
272
631
  "RUMEventsResponse",
273
632
  ""]);
274
- return [2 /*return*/, body_6];
633
+ return [2 /*return*/, body_21];
275
634
  case 2:
276
635
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
277
636
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
278
637
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
279
638
  return [4 /*yield*/, response.body.text()];
280
639
  case 3:
281
- body_7 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
640
+ body_22 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
282
641
  "APIErrorResponse",
283
642
  ""]);
284
- throw new exception_1.ApiException(400, body_7);
643
+ throw new exception_1.ApiException(400, body_22);
285
644
  case 4:
286
645
  if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
287
646
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
288
647
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
289
648
  return [4 /*yield*/, response.body.text()];
290
649
  case 5:
291
- body_8 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
650
+ body_23 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
292
651
  "APIErrorResponse",
293
652
  ""]);
294
- throw new exception_1.ApiException(403, body_8);
653
+ throw new exception_1.ApiException(403, body_23);
295
654
  case 6:
296
655
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
297
656
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
298
657
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
299
658
  return [4 /*yield*/, response.body.text()];
300
659
  case 7:
301
- body_9 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
660
+ body_24 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
302
661
  "APIErrorResponse",
303
662
  ""]);
304
- throw new exception_1.ApiException(429, body_9);
663
+ throw new exception_1.ApiException(429, body_24);
305
664
  case 8:
306
665
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
307
666
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
308
667
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
309
668
  return [4 /*yield*/, response.body.text()];
310
669
  case 9:
311
- body_10 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
670
+ body_25 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
312
671
  "RUMEventsResponse",
313
672
  ""]);
314
- return [2 /*return*/, body_10];
673
+ return [2 /*return*/, body_25];
315
674
  case 10: return [4 /*yield*/, response.body.text()];
316
675
  case 11:
317
676
  body = (_w.sent()) || "";
@@ -329,7 +688,7 @@ var RUMApiResponseProcessor = /** @class */ (function () {
329
688
  */
330
689
  RUMApiResponseProcessor.prototype.searchRUMEvents = function (response) {
331
690
  return __awaiter(this, void 0, void 0, function () {
332
- var contentType, body_11, _a, _b, _c, _d, body_12, _e, _f, _g, _h, body_13, _j, _k, _l, _m, body_14, _o, _p, _q, _r, body_15, _s, _t, _u, _v, body;
691
+ var contentType, body_26, _a, _b, _c, _d, body_27, _e, _f, _g, _h, body_28, _j, _k, _l, _m, body_29, _o, _p, _q, _r, body_30, _s, _t, _u, _v, body;
333
692
  return __generator(this, function (_w) {
334
693
  switch (_w.label) {
335
694
  case 0:
@@ -339,50 +698,50 @@ var RUMApiResponseProcessor = /** @class */ (function () {
339
698
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
340
699
  return [4 /*yield*/, response.body.text()];
341
700
  case 1:
342
- body_11 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
701
+ body_26 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
343
702
  "RUMEventsResponse",
344
703
  ""]);
345
- return [2 /*return*/, body_11];
704
+ return [2 /*return*/, body_26];
346
705
  case 2:
347
706
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
348
707
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
349
708
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
350
709
  return [4 /*yield*/, response.body.text()];
351
710
  case 3:
352
- body_12 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
711
+ body_27 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
353
712
  "APIErrorResponse",
354
713
  ""]);
355
- throw new exception_1.ApiException(400, body_12);
714
+ throw new exception_1.ApiException(400, body_27);
356
715
  case 4:
357
716
  if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
358
717
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
359
718
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
360
719
  return [4 /*yield*/, response.body.text()];
361
720
  case 5:
362
- body_13 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
721
+ body_28 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
363
722
  "APIErrorResponse",
364
723
  ""]);
365
- throw new exception_1.ApiException(403, body_13);
724
+ throw new exception_1.ApiException(403, body_28);
366
725
  case 6:
367
726
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
368
727
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
369
728
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
370
729
  return [4 /*yield*/, response.body.text()];
371
730
  case 7:
372
- body_14 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
731
+ body_29 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
373
732
  "APIErrorResponse",
374
733
  ""]);
375
- throw new exception_1.ApiException(429, body_14);
734
+ throw new exception_1.ApiException(429, body_29);
376
735
  case 8:
377
736
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
378
737
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
379
738
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
380
739
  return [4 /*yield*/, response.body.text()];
381
740
  case 9:
382
- body_15 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
741
+ body_30 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
383
742
  "RUMEventsResponse",
384
743
  ""]);
385
- return [2 /*return*/, body_15];
744
+ return [2 /*return*/, body_30];
386
745
  case 10: return [4 /*yield*/, response.body.text()];
387
746
  case 11:
388
747
  body = (_w.sent()) || "";
@@ -391,6 +750,87 @@ var RUMApiResponseProcessor = /** @class */ (function () {
391
750
  });
392
751
  });
393
752
  };
753
+ /**
754
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
755
+ * to the expected objects
756
+ *
757
+ * @params response Response returned by the server for a request to updateRUMApplication
758
+ * @throws ApiException if the response code was not in [200, 299]
759
+ */
760
+ RUMApiResponseProcessor.prototype.updateRUMApplication = function (response) {
761
+ return __awaiter(this, void 0, void 0, function () {
762
+ var contentType, body_31, _a, _b, _c, _d, body_32, _e, _f, _g, _h, body_33, _j, _k, _l, _m, body_34, _o, _p, _q, _r, body_35, _s, _t, _u, _v, body_36, _w, _x, _y, _z, body;
763
+ return __generator(this, function (_0) {
764
+ switch (_0.label) {
765
+ case 0:
766
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
767
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
768
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
769
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
770
+ return [4 /*yield*/, response.body.text()];
771
+ case 1:
772
+ body_31 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
773
+ "RUMApplicationResponse",
774
+ ""]);
775
+ return [2 /*return*/, body_31];
776
+ case 2:
777
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
778
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
779
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
780
+ return [4 /*yield*/, response.body.text()];
781
+ case 3:
782
+ body_32 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
783
+ "APIErrorResponse",
784
+ ""]);
785
+ throw new exception_1.ApiException(400, body_32);
786
+ case 4:
787
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
788
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
789
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
790
+ return [4 /*yield*/, response.body.text()];
791
+ case 5:
792
+ body_33 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
793
+ "APIErrorResponse",
794
+ ""]);
795
+ throw new exception_1.ApiException(404, body_33);
796
+ case 6:
797
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3 /*break*/, 8];
798
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
799
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
800
+ return [4 /*yield*/, response.body.text()];
801
+ case 7:
802
+ body_34 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
803
+ "APIErrorResponse",
804
+ ""]);
805
+ throw new exception_1.ApiException(422, body_34);
806
+ case 8:
807
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
808
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
809
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
810
+ return [4 /*yield*/, response.body.text()];
811
+ case 9:
812
+ body_35 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
813
+ "APIErrorResponse",
814
+ ""]);
815
+ throw new exception_1.ApiException(429, body_35);
816
+ case 10:
817
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
818
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
819
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
820
+ return [4 /*yield*/, response.body.text()];
821
+ case 11:
822
+ body_36 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
823
+ "RUMApplicationResponse",
824
+ ""]);
825
+ return [2 /*return*/, body_36];
826
+ case 12: return [4 /*yield*/, response.body.text()];
827
+ case 13:
828
+ body = (_0.sent()) || "";
829
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
830
+ }
831
+ });
832
+ });
833
+ };
394
834
  return RUMApiResponseProcessor;
395
835
  }());
396
836
  exports.RUMApiResponseProcessor = RUMApiResponseProcessor;
@@ -416,6 +856,66 @@ var RUMApi = /** @class */ (function () {
416
856
  });
417
857
  });
418
858
  };
859
+ /**
860
+ * Create a new RUM application in your organization.
861
+ * @param param The request object
862
+ */
863
+ RUMApi.prototype.createRUMApplication = function (param, options) {
864
+ var _this = this;
865
+ var requestContextPromise = this.requestFactory.createRUMApplication(param.body, options);
866
+ return requestContextPromise.then(function (requestContext) {
867
+ return _this.configuration.httpApi
868
+ .send(requestContext)
869
+ .then(function (responseContext) {
870
+ return _this.responseProcessor.createRUMApplication(responseContext);
871
+ });
872
+ });
873
+ };
874
+ /**
875
+ * Delete an existing RUM application in your organization.
876
+ * @param param The request object
877
+ */
878
+ RUMApi.prototype.deleteRUMApplication = function (param, options) {
879
+ var _this = this;
880
+ var requestContextPromise = this.requestFactory.deleteRUMApplication(param.id, options);
881
+ return requestContextPromise.then(function (requestContext) {
882
+ return _this.configuration.httpApi
883
+ .send(requestContext)
884
+ .then(function (responseContext) {
885
+ return _this.responseProcessor.deleteRUMApplication(responseContext);
886
+ });
887
+ });
888
+ };
889
+ /**
890
+ * Get the RUM application with given ID in your organization.
891
+ * @param param The request object
892
+ */
893
+ RUMApi.prototype.getRUMApplication = function (param, options) {
894
+ var _this = this;
895
+ var requestContextPromise = this.requestFactory.getRUMApplication(param.id, options);
896
+ return requestContextPromise.then(function (requestContext) {
897
+ return _this.configuration.httpApi
898
+ .send(requestContext)
899
+ .then(function (responseContext) {
900
+ return _this.responseProcessor.getRUMApplication(responseContext);
901
+ });
902
+ });
903
+ };
904
+ /**
905
+ * List all the RUM applications in your organization.
906
+ * @param param The request object
907
+ */
908
+ RUMApi.prototype.getRUMApplications = function (options) {
909
+ var _this = this;
910
+ var requestContextPromise = this.requestFactory.getRUMApplications(options);
911
+ return requestContextPromise.then(function (requestContext) {
912
+ return _this.configuration.httpApi
913
+ .send(requestContext)
914
+ .then(function (responseContext) {
915
+ return _this.responseProcessor.getRUMApplications(responseContext);
916
+ });
917
+ });
918
+ };
419
919
  /**
420
920
  * List endpoint returns events that match a RUM search query.
421
921
  * [Results are paginated][1].
@@ -597,6 +1097,21 @@ var RUMApi = /** @class */ (function () {
597
1097
  });
598
1098
  });
599
1099
  };
1100
+ /**
1101
+ * Update the RUM application with given ID in your organization.
1102
+ * @param param The request object
1103
+ */
1104
+ RUMApi.prototype.updateRUMApplication = function (param, options) {
1105
+ var _this = this;
1106
+ var requestContextPromise = this.requestFactory.updateRUMApplication(param.id, param.body, options);
1107
+ return requestContextPromise.then(function (requestContext) {
1108
+ return _this.configuration.httpApi
1109
+ .send(requestContext)
1110
+ .then(function (responseContext) {
1111
+ return _this.responseProcessor.updateRUMApplication(responseContext);
1112
+ });
1113
+ });
1114
+ };
600
1115
  return RUMApi;
601
1116
  }());
602
1117
  exports.RUMApi = RUMApi;