@azure-rest/load-testing 1.1.0-beta.1 → 1.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE +1 -1
- package/README.md +12 -13
- package/dist/browser/azureLoadTesting.js +14 -12
- package/dist/browser/azureLoadTesting.js.map +1 -1
- package/dist/browser/clientDefinitions.d.ts +66 -34
- package/dist/browser/clientDefinitions.js.map +1 -1
- package/dist/browser/getFileValidationPoller.js +16 -11
- package/dist/browser/getFileValidationPoller.js.map +1 -1
- package/dist/browser/getTestProfileRunCompletionPoller.js +16 -11
- package/dist/browser/getTestProfileRunCompletionPoller.js.map +1 -1
- package/dist/browser/getTestRunCompletionPoller.js +16 -11
- package/dist/browser/getTestRunCompletionPoller.js.map +1 -1
- package/dist/browser/index.d.ts +6 -6
- package/dist/browser/index.js +1 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/isUnexpected.d.ts +15 -9
- package/dist/browser/isUnexpected.js +21 -13
- package/dist/browser/isUnexpected.js.map +1 -1
- package/dist/browser/models.d.ts +205 -172
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/outputModels.d.ts +290 -208
- package/dist/browser/outputModels.js.map +1 -1
- package/dist/browser/paginateHelper.js +43 -73
- package/dist/browser/paginateHelper.js.map +1 -1
- package/dist/browser/parameters.d.ts +107 -66
- package/dist/browser/parameters.js.map +1 -1
- package/dist/browser/pollingHelper.d.ts +82 -4
- package/dist/browser/pollingHelper.js +119 -15
- package/dist/browser/pollingHelper.js.map +1 -1
- package/dist/browser/responses.d.ts +234 -121
- package/dist/browser/responses.js.map +1 -1
- package/dist/commonjs/azureLoadTesting.js +53 -45
- package/dist/commonjs/azureLoadTesting.js.map +7 -1
- package/dist/commonjs/clientDefinitions.d.ts +66 -34
- package/dist/commonjs/clientDefinitions.js +15 -5
- package/dist/commonjs/clientDefinitions.js.map +7 -1
- package/dist/commonjs/getFileValidationPoller.js +151 -137
- package/dist/commonjs/getFileValidationPoller.js.map +7 -1
- package/dist/commonjs/getTestProfileRunCompletionPoller.js +139 -127
- package/dist/commonjs/getTestProfileRunCompletionPoller.js.map +7 -1
- package/dist/commonjs/getTestRunCompletionPoller.js +139 -125
- package/dist/commonjs/getTestRunCompletionPoller.js.map +7 -1
- package/dist/commonjs/index.d.ts +6 -6
- package/dist/commonjs/index.js +46 -20
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/isUnexpected.d.ts +15 -9
- package/dist/commonjs/isUnexpected.js +118 -105
- package/dist/commonjs/isUnexpected.js.map +7 -1
- package/dist/commonjs/logger.js +28 -8
- package/dist/commonjs/logger.js.map +7 -1
- package/dist/commonjs/models.d.ts +205 -172
- package/dist/commonjs/models.js +15 -5
- package/dist/commonjs/models.js.map +7 -1
- package/dist/commonjs/outputModels.d.ts +290 -208
- package/dist/commonjs/outputModels.js +15 -5
- package/dist/commonjs/outputModels.js.map +7 -1
- package/dist/commonjs/paginateHelper.js +118 -158
- package/dist/commonjs/paginateHelper.js.map +7 -1
- package/dist/commonjs/parameters.d.ts +107 -66
- package/dist/commonjs/parameters.js +15 -5
- package/dist/commonjs/parameters.js.map +7 -1
- package/dist/commonjs/pollingHelper.d.ts +82 -4
- package/dist/commonjs/pollingHelper.js +143 -24
- package/dist/commonjs/pollingHelper.js.map +7 -1
- package/dist/commonjs/responses.d.ts +234 -121
- package/dist/commonjs/responses.js +15 -5
- package/dist/commonjs/responses.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/util/LROUtil.js +76 -54
- package/dist/commonjs/util/LROUtil.js.map +7 -1
- package/dist/esm/azureLoadTesting.js +32 -40
- package/dist/esm/azureLoadTesting.js.map +7 -1
- package/dist/esm/clientDefinitions.d.ts +66 -34
- package/dist/esm/clientDefinitions.js +0 -4
- package/dist/esm/clientDefinitions.js.map +7 -1
- package/dist/esm/getFileValidationPoller.js +126 -132
- package/dist/esm/getFileValidationPoller.js.map +7 -1
- package/dist/esm/getTestProfileRunCompletionPoller.js +114 -122
- package/dist/esm/getTestProfileRunCompletionPoller.js.map +7 -1
- package/dist/esm/getTestRunCompletionPoller.js +114 -120
- package/dist/esm/getTestRunCompletionPoller.js.map +7 -1
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js +5 -11
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/isUnexpected.d.ts +15 -9
- package/dist/esm/isUnexpected.js +96 -103
- package/dist/esm/isUnexpected.js.map +7 -1
- package/dist/esm/logger.js +4 -4
- package/dist/esm/logger.js.map +7 -1
- package/dist/esm/models.d.ts +205 -172
- package/dist/esm/models.js +0 -4
- package/dist/esm/models.js.map +7 -1
- package/dist/esm/outputModels.d.ts +290 -208
- package/dist/esm/outputModels.js +0 -4
- package/dist/esm/outputModels.js.map +7 -1
- package/dist/esm/paginateHelper.js +95 -155
- package/dist/esm/paginateHelper.js.map +7 -1
- package/dist/esm/parameters.d.ts +107 -66
- package/dist/esm/parameters.js +0 -4
- package/dist/esm/parameters.js.map +7 -1
- package/dist/esm/pollingHelper.d.ts +82 -4
- package/dist/esm/pollingHelper.js +117 -18
- package/dist/esm/pollingHelper.js.map +7 -1
- package/dist/esm/responses.d.ts +234 -121
- package/dist/esm/responses.js +0 -4
- package/dist/esm/responses.js.map +7 -1
- package/dist/esm/util/LROUtil.js +52 -50
- package/dist/esm/util/LROUtil.js.map +7 -1
- package/dist/react-native/azureLoadTesting.js +14 -12
- package/dist/react-native/azureLoadTesting.js.map +1 -1
- package/dist/react-native/clientDefinitions.d.ts +66 -34
- package/dist/react-native/clientDefinitions.js.map +1 -1
- package/dist/react-native/getFileValidationPoller.js +16 -11
- package/dist/react-native/getFileValidationPoller.js.map +1 -1
- package/dist/react-native/getTestProfileRunCompletionPoller.js +16 -11
- package/dist/react-native/getTestProfileRunCompletionPoller.js.map +1 -1
- package/dist/react-native/getTestRunCompletionPoller.js +16 -11
- package/dist/react-native/getTestRunCompletionPoller.js.map +1 -1
- package/dist/react-native/index.d.ts +6 -6
- package/dist/react-native/index.js +1 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/isUnexpected.d.ts +15 -9
- package/dist/react-native/isUnexpected.js +21 -13
- package/dist/react-native/isUnexpected.js.map +1 -1
- package/dist/react-native/models.d.ts +205 -172
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/outputModels.d.ts +290 -208
- package/dist/react-native/outputModels.js.map +1 -1
- package/dist/react-native/paginateHelper.js +43 -73
- package/dist/react-native/paginateHelper.js.map +1 -1
- package/dist/react-native/parameters.d.ts +107 -66
- package/dist/react-native/parameters.js.map +1 -1
- package/dist/react-native/pollingHelper.d.ts +82 -4
- package/dist/react-native/pollingHelper.js +119 -15
- package/dist/react-native/pollingHelper.js.map +1 -1
- package/dist/react-native/responses.d.ts +234 -121
- package/dist/react-native/responses.js.map +1 -1
- package/package.json +69 -86
- package/review/{load-testing.api.md → load-testing-node.api.md} +420 -23
- package/dist/browser/azureLoadTesting.d.ts.map +0 -1
- package/dist/browser/clientDefinitions.d.ts.map +0 -1
- package/dist/browser/getFileValidationPoller.d.ts.map +0 -1
- package/dist/browser/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/browser/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/isUnexpected.d.ts.map +0 -1
- package/dist/browser/logger.d.ts.map +0 -1
- package/dist/browser/models.d.ts.map +0 -1
- package/dist/browser/outputModels.d.ts.map +0 -1
- package/dist/browser/paginateHelper.d.ts.map +0 -1
- package/dist/browser/parameters.d.ts.map +0 -1
- package/dist/browser/pollingHelper.d.ts.map +0 -1
- package/dist/browser/responses.d.ts.map +0 -1
- package/dist/browser/util/LROUtil.d.ts.map +0 -1
- package/dist/commonjs/azureLoadTesting.d.ts.map +0 -1
- package/dist/commonjs/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/getFileValidationPoller.d.ts.map +0 -1
- package/dist/commonjs/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/commonjs/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/logger.d.ts.map +0 -1
- package/dist/commonjs/models.d.ts.map +0 -1
- package/dist/commonjs/outputModels.d.ts.map +0 -1
- package/dist/commonjs/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/parameters.d.ts.map +0 -1
- package/dist/commonjs/pollingHelper.d.ts.map +0 -1
- package/dist/commonjs/responses.d.ts.map +0 -1
- package/dist/commonjs/util/LROUtil.d.ts.map +0 -1
- package/dist/esm/azureLoadTesting.d.ts.map +0 -1
- package/dist/esm/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/getFileValidationPoller.d.ts.map +0 -1
- package/dist/esm/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/esm/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/isUnexpected.d.ts.map +0 -1
- package/dist/esm/logger.d.ts.map +0 -1
- package/dist/esm/models.d.ts.map +0 -1
- package/dist/esm/outputModels.d.ts.map +0 -1
- package/dist/esm/paginateHelper.d.ts.map +0 -1
- package/dist/esm/parameters.d.ts.map +0 -1
- package/dist/esm/pollingHelper.d.ts.map +0 -1
- package/dist/esm/responses.d.ts.map +0 -1
- package/dist/esm/util/LROUtil.d.ts.map +0 -1
- package/dist/react-native/azureLoadTesting.d.ts.map +0 -1
- package/dist/react-native/clientDefinitions.d.ts.map +0 -1
- package/dist/react-native/getFileValidationPoller.d.ts.map +0 -1
- package/dist/react-native/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/react-native/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/isUnexpected.d.ts.map +0 -1
- package/dist/react-native/logger.d.ts.map +0 -1
- package/dist/react-native/models.d.ts.map +0 -1
- package/dist/react-native/outputModels.d.ts.map +0 -1
- package/dist/react-native/paginateHelper.d.ts.map +0 -1
- package/dist/react-native/parameters.d.ts.map +0 -1
- package/dist/react-native/pollingHelper.d.ts.map +0 -1
- package/dist/react-native/responses.d.ts.map +0 -1
- package/dist/react-native/util/LROUtil.d.ts.map +0 -1
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/loadtesting/load-testing-rest/src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport AzureLoadTesting from \"./azureLoadTesting.js\";\n\nexport * from \"./azureLoadTesting.js\";\nexport type * from \"./parameters.js\";\nexport type * from \"./responses.js\";\nexport type * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport type * from \"./models.js\";\nexport type * from \"./outputModels.js\";\nexport * from \"./paginateHelper.js\";\nexport * from \"./pollingHelper.js\";\n\nexport default AzureLoadTesting;\n"],
|
|
5
|
+
"mappings": "AAGA,OAAO,sBAAsB;AAE7B,cAAc;AAId,cAAc;AAGd,cAAc;AACd,cAAc;AAEd,IAAO,cAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import type { LoadTestAdministrationCreateOrUpdateTest200Response, LoadTestAdministrationCreateOrUpdateTest201Response, LoadTestAdministrationCreateOrUpdateTestDefaultResponse, LoadTestAdministrationDeleteTest204Response, LoadTestAdministrationDeleteTestDefaultResponse, LoadTestAdministrationGetTest200Response, LoadTestAdministrationGetTestDefaultResponse, LoadTestAdministrationListTests200Response, LoadTestAdministrationListTestsDefaultResponse, LoadTestAdministrationUploadTestFile201Response, LoadTestAdministrationUploadTestFileDefaultResponse, LoadTestAdministrationGetTestFile200Response, LoadTestAdministrationGetTestFileDefaultResponse, LoadTestAdministrationDeleteTestFile204Response, LoadTestAdministrationDeleteTestFileDefaultResponse, LoadTestAdministrationListTestFiles200Response, LoadTestAdministrationListTestFilesDefaultResponse, LoadTestAdministrationCreateOrUpdateAppComponents200Response, LoadTestAdministrationCreateOrUpdateAppComponents201Response, LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse, LoadTestAdministrationGetAppComponents200Response, LoadTestAdministrationGetAppComponentsDefaultResponse, LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response, LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response, LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse, LoadTestAdministrationGetServerMetricsConfig200Response, LoadTestAdministrationGetServerMetricsConfigDefaultResponse, TestProfileAdministrationCreateOrUpdateTestProfile200Response, TestProfileAdministrationCreateOrUpdateTestProfile201Response, TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse, TestProfileAdministrationDeleteTestProfile204Response, TestProfileAdministrationDeleteTestProfileDefaultResponse, TestProfileAdministrationGetTestProfile200Response, TestProfileAdministrationGetTestProfileDefaultResponse, TestProfileAdministrationListTestProfiles200Response, TestProfileAdministrationListTestProfilesDefaultResponse, LoadTestRunGetTestRun200Response, LoadTestRunGetTestRunDefaultResponse, LoadTestRunCreateOrUpdateTestRun200Response, LoadTestRunCreateOrUpdateTestRun201Response, LoadTestRunCreateOrUpdateTestRunDefaultResponse, LoadTestRunDeleteTestRun204Response, LoadTestRunDeleteTestRunDefaultResponse, LoadTestRunListTestRuns200Response, LoadTestRunListTestRunsDefaultResponse, LoadTestRunGetTestRunFile200Response, LoadTestRunGetTestRunFileDefaultResponse, LoadTestRunStop200Response, LoadTestRunStopDefaultResponse, LoadTestRunListMetricNamespaces200Response, LoadTestRunListMetricNamespacesDefaultResponse, LoadTestRunListMetricDefinitions200Response, LoadTestRunListMetricDefinitionsDefaultResponse, LoadTestRunListMetrics200Response, LoadTestRunListMetricsDefaultResponse, LoadTestRunListMetricDimensionValues200Response, LoadTestRunListMetricDimensionValuesDefaultResponse, LoadTestRunCreateOrUpdateAppComponents200Response, LoadTestRunCreateOrUpdateAppComponents201Response, LoadTestRunCreateOrUpdateAppComponentsDefaultResponse, LoadTestRunGetAppComponents200Response, LoadTestRunGetAppComponentsDefaultResponse, LoadTestRunCreateOrUpdateServerMetricsConfig200Response, LoadTestRunCreateOrUpdateServerMetricsConfig201Response, LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse, LoadTestRunGetServerMetricsConfig200Response, LoadTestRunGetServerMetricsConfigDefaultResponse, TestProfileRunAdministrationGetTestProfileRun200Response, TestProfileRunAdministrationGetTestProfileRunDefaultResponse, TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response, TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response, TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse, TestProfileRunAdministrationDeleteTestProfileRun204Response, TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse, TestProfileRunAdministrationStop200Response, TestProfileRunAdministrationStopDefaultResponse, TestProfileRunAdministrationListTestProfileRuns200Response, TestProfileRunAdministrationListTestProfileRunsDefaultResponse
|
|
1
|
+
import type { OperationsGetStatus200Response, OperationsGetStatusDefaultResponse, LoadTestAdministrationCreateOrUpdateTest200Response, LoadTestAdministrationCreateOrUpdateTest201Response, LoadTestAdministrationCreateOrUpdateTestDefaultResponse, LoadTestAdministrationDeleteTest204Response, LoadTestAdministrationDeleteTestDefaultResponse, LoadTestAdministrationGetTest200Response, LoadTestAdministrationGetTestDefaultResponse, LoadTestAdministrationListTests200Response, LoadTestAdministrationListTestsDefaultResponse, LoadTestAdministrationCloneTest202Response, LoadTestAdministrationCloneTestLogicalResponse, LoadTestAdministrationCloneTestDefaultResponse, LoadTestAdministrationGenerateTestPlanRecommendations202Response, LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse, LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse, LoadTestAdministrationUploadTestFile201Response, LoadTestAdministrationUploadTestFileDefaultResponse, LoadTestAdministrationGetTestFile200Response, LoadTestAdministrationGetTestFileDefaultResponse, LoadTestAdministrationDeleteTestFile204Response, LoadTestAdministrationDeleteTestFileDefaultResponse, LoadTestAdministrationListTestFiles200Response, LoadTestAdministrationListTestFilesDefaultResponse, LoadTestAdministrationCreateOrUpdateAppComponents200Response, LoadTestAdministrationCreateOrUpdateAppComponents201Response, LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse, LoadTestAdministrationGetAppComponents200Response, LoadTestAdministrationGetAppComponentsDefaultResponse, LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response, LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response, LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse, LoadTestAdministrationGetServerMetricsConfig200Response, LoadTestAdministrationGetServerMetricsConfigDefaultResponse, TestProfileAdministrationCreateOrUpdateTestProfile200Response, TestProfileAdministrationCreateOrUpdateTestProfile201Response, TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse, TestProfileAdministrationDeleteTestProfile204Response, TestProfileAdministrationDeleteTestProfileDefaultResponse, TestProfileAdministrationGetTestProfile200Response, TestProfileAdministrationGetTestProfileDefaultResponse, TestProfileAdministrationListTestProfiles200Response, TestProfileAdministrationListTestProfilesDefaultResponse, TriggerAdministrationGetTrigger200Response, TriggerAdministrationGetTriggerDefaultResponse, TriggerAdministrationCreateOrUpdateTrigger200Response, TriggerAdministrationCreateOrUpdateTrigger201Response, TriggerAdministrationCreateOrUpdateTriggerDefaultResponse, TriggerAdministrationDeleteTrigger204Response, TriggerAdministrationDeleteTriggerDefaultResponse, TriggerAdministrationListTrigger200Response, TriggerAdministrationListTriggerDefaultResponse, NotificationRuleAdministrationGetNotificationRule200Response, NotificationRuleAdministrationGetNotificationRuleDefaultResponse, NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response, NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response, NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse, NotificationRuleAdministrationDeleteNotificationRule204Response, NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse, NotificationRuleAdministrationListNotificationRule200Response, NotificationRuleAdministrationListNotificationRuleDefaultResponse, LoadTestRunGetTestRun200Response, LoadTestRunGetTestRunDefaultResponse, LoadTestRunCreateOrUpdateTestRun200Response, LoadTestRunCreateOrUpdateTestRun201Response, LoadTestRunCreateOrUpdateTestRunDefaultResponse, LoadTestRunDeleteTestRun204Response, LoadTestRunDeleteTestRunDefaultResponse, LoadTestRunListTestRuns200Response, LoadTestRunListTestRunsDefaultResponse, LoadTestRunGetTestRunFile200Response, LoadTestRunGetTestRunFileDefaultResponse, LoadTestRunStop200Response, LoadTestRunStopDefaultResponse, LoadTestRunGetLatestInsights200Response, LoadTestRunGetLatestInsightsDefaultResponse, LoadTestRunUpdateLatestInsights200Response, LoadTestRunUpdateLatestInsightsDefaultResponse, LoadTestRunGenerateInsights202Response, LoadTestRunGenerateInsightsLogicalResponse, LoadTestRunGenerateInsightsDefaultResponse, LoadTestRunListMetricNamespaces200Response, LoadTestRunListMetricNamespacesDefaultResponse, LoadTestRunListMetricDefinitions200Response, LoadTestRunListMetricDefinitionsDefaultResponse, LoadTestRunListMetrics200Response, LoadTestRunListMetricsDefaultResponse, LoadTestRunListMetricDimensionValues200Response, LoadTestRunListMetricDimensionValuesDefaultResponse, LoadTestRunCreateOrUpdateAppComponents200Response, LoadTestRunCreateOrUpdateAppComponents201Response, LoadTestRunCreateOrUpdateAppComponentsDefaultResponse, LoadTestRunGetAppComponents200Response, LoadTestRunGetAppComponentsDefaultResponse, LoadTestRunCreateOrUpdateServerMetricsConfig200Response, LoadTestRunCreateOrUpdateServerMetricsConfig201Response, LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse, LoadTestRunGetServerMetricsConfig200Response, LoadTestRunGetServerMetricsConfigDefaultResponse, TestProfileRunAdministrationGetTestProfileRun200Response, TestProfileRunAdministrationGetTestProfileRunDefaultResponse, TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response, TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response, TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse, TestProfileRunAdministrationDeleteTestProfileRun204Response, TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse, TestProfileRunAdministrationStop200Response, TestProfileRunAdministrationStopDefaultResponse, TestProfileRunAdministrationListTestProfileRuns200Response, TestProfileRunAdministrationListTestProfileRunsDefaultResponse } from "./responses.js";
|
|
2
|
+
export declare function isUnexpected(response: OperationsGetStatus200Response | OperationsGetStatusDefaultResponse): response is OperationsGetStatusDefaultResponse;
|
|
2
3
|
export declare function isUnexpected(response: LoadTestAdministrationCreateOrUpdateTest200Response | LoadTestAdministrationCreateOrUpdateTest201Response | LoadTestAdministrationCreateOrUpdateTestDefaultResponse): response is LoadTestAdministrationCreateOrUpdateTestDefaultResponse;
|
|
3
4
|
export declare function isUnexpected(response: LoadTestAdministrationDeleteTest204Response | LoadTestAdministrationDeleteTestDefaultResponse): response is LoadTestAdministrationDeleteTestDefaultResponse;
|
|
4
5
|
export declare function isUnexpected(response: LoadTestAdministrationGetTest200Response | LoadTestAdministrationGetTestDefaultResponse): response is LoadTestAdministrationGetTestDefaultResponse;
|
|
5
6
|
export declare function isUnexpected(response: LoadTestAdministrationListTests200Response | LoadTestAdministrationListTestsDefaultResponse): response is LoadTestAdministrationListTestsDefaultResponse;
|
|
7
|
+
export declare function isUnexpected(response: LoadTestAdministrationCloneTest202Response | LoadTestAdministrationCloneTestLogicalResponse | LoadTestAdministrationCloneTestDefaultResponse): response is LoadTestAdministrationCloneTestDefaultResponse;
|
|
8
|
+
export declare function isUnexpected(response: LoadTestAdministrationGenerateTestPlanRecommendations202Response | LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse): response is LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse;
|
|
6
9
|
export declare function isUnexpected(response: LoadTestAdministrationUploadTestFile201Response | LoadTestAdministrationUploadTestFileDefaultResponse): response is LoadTestAdministrationUploadTestFileDefaultResponse;
|
|
7
10
|
export declare function isUnexpected(response: LoadTestAdministrationGetTestFile200Response | LoadTestAdministrationGetTestFileDefaultResponse): response is LoadTestAdministrationGetTestFileDefaultResponse;
|
|
8
11
|
export declare function isUnexpected(response: LoadTestAdministrationDeleteTestFile204Response | LoadTestAdministrationDeleteTestFileDefaultResponse): response is LoadTestAdministrationDeleteTestFileDefaultResponse;
|
|
@@ -15,12 +18,23 @@ export declare function isUnexpected(response: TestProfileAdministrationCreateOr
|
|
|
15
18
|
export declare function isUnexpected(response: TestProfileAdministrationDeleteTestProfile204Response | TestProfileAdministrationDeleteTestProfileDefaultResponse): response is TestProfileAdministrationDeleteTestProfileDefaultResponse;
|
|
16
19
|
export declare function isUnexpected(response: TestProfileAdministrationGetTestProfile200Response | TestProfileAdministrationGetTestProfileDefaultResponse): response is TestProfileAdministrationGetTestProfileDefaultResponse;
|
|
17
20
|
export declare function isUnexpected(response: TestProfileAdministrationListTestProfiles200Response | TestProfileAdministrationListTestProfilesDefaultResponse): response is TestProfileAdministrationListTestProfilesDefaultResponse;
|
|
21
|
+
export declare function isUnexpected(response: TriggerAdministrationGetTrigger200Response | TriggerAdministrationGetTriggerDefaultResponse): response is TriggerAdministrationGetTriggerDefaultResponse;
|
|
22
|
+
export declare function isUnexpected(response: TriggerAdministrationCreateOrUpdateTrigger200Response | TriggerAdministrationCreateOrUpdateTrigger201Response | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse): response is TriggerAdministrationCreateOrUpdateTriggerDefaultResponse;
|
|
23
|
+
export declare function isUnexpected(response: TriggerAdministrationDeleteTrigger204Response | TriggerAdministrationDeleteTriggerDefaultResponse): response is TriggerAdministrationDeleteTriggerDefaultResponse;
|
|
24
|
+
export declare function isUnexpected(response: TriggerAdministrationListTrigger200Response | TriggerAdministrationListTriggerDefaultResponse): response is TriggerAdministrationListTriggerDefaultResponse;
|
|
25
|
+
export declare function isUnexpected(response: NotificationRuleAdministrationGetNotificationRule200Response | NotificationRuleAdministrationGetNotificationRuleDefaultResponse): response is NotificationRuleAdministrationGetNotificationRuleDefaultResponse;
|
|
26
|
+
export declare function isUnexpected(response: NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse): response is NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse;
|
|
27
|
+
export declare function isUnexpected(response: NotificationRuleAdministrationDeleteNotificationRule204Response | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse): response is NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse;
|
|
28
|
+
export declare function isUnexpected(response: NotificationRuleAdministrationListNotificationRule200Response | NotificationRuleAdministrationListNotificationRuleDefaultResponse): response is NotificationRuleAdministrationListNotificationRuleDefaultResponse;
|
|
18
29
|
export declare function isUnexpected(response: LoadTestRunGetTestRun200Response | LoadTestRunGetTestRunDefaultResponse): response is LoadTestRunGetTestRunDefaultResponse;
|
|
19
30
|
export declare function isUnexpected(response: LoadTestRunCreateOrUpdateTestRun200Response | LoadTestRunCreateOrUpdateTestRun201Response | LoadTestRunCreateOrUpdateTestRunDefaultResponse): response is LoadTestRunCreateOrUpdateTestRunDefaultResponse;
|
|
20
31
|
export declare function isUnexpected(response: LoadTestRunDeleteTestRun204Response | LoadTestRunDeleteTestRunDefaultResponse): response is LoadTestRunDeleteTestRunDefaultResponse;
|
|
21
32
|
export declare function isUnexpected(response: LoadTestRunListTestRuns200Response | LoadTestRunListTestRunsDefaultResponse): response is LoadTestRunListTestRunsDefaultResponse;
|
|
22
33
|
export declare function isUnexpected(response: LoadTestRunGetTestRunFile200Response | LoadTestRunGetTestRunFileDefaultResponse): response is LoadTestRunGetTestRunFileDefaultResponse;
|
|
23
34
|
export declare function isUnexpected(response: LoadTestRunStop200Response | LoadTestRunStopDefaultResponse): response is LoadTestRunStopDefaultResponse;
|
|
35
|
+
export declare function isUnexpected(response: LoadTestRunGetLatestInsights200Response | LoadTestRunGetLatestInsightsDefaultResponse): response is LoadTestRunGetLatestInsightsDefaultResponse;
|
|
36
|
+
export declare function isUnexpected(response: LoadTestRunUpdateLatestInsights200Response | LoadTestRunUpdateLatestInsightsDefaultResponse): response is LoadTestRunUpdateLatestInsightsDefaultResponse;
|
|
37
|
+
export declare function isUnexpected(response: LoadTestRunGenerateInsights202Response | LoadTestRunGenerateInsightsLogicalResponse | LoadTestRunGenerateInsightsDefaultResponse): response is LoadTestRunGenerateInsightsDefaultResponse;
|
|
24
38
|
export declare function isUnexpected(response: LoadTestRunListMetricNamespaces200Response | LoadTestRunListMetricNamespacesDefaultResponse): response is LoadTestRunListMetricNamespacesDefaultResponse;
|
|
25
39
|
export declare function isUnexpected(response: LoadTestRunListMetricDefinitions200Response | LoadTestRunListMetricDefinitionsDefaultResponse): response is LoadTestRunListMetricDefinitionsDefaultResponse;
|
|
26
40
|
export declare function isUnexpected(response: LoadTestRunListMetrics200Response | LoadTestRunListMetricsDefaultResponse): response is LoadTestRunListMetricsDefaultResponse;
|
|
@@ -34,12 +48,4 @@ export declare function isUnexpected(response: TestProfileRunAdministrationCreat
|
|
|
34
48
|
export declare function isUnexpected(response: TestProfileRunAdministrationDeleteTestProfileRun204Response | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse): response is TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse;
|
|
35
49
|
export declare function isUnexpected(response: TestProfileRunAdministrationStop200Response | TestProfileRunAdministrationStopDefaultResponse): response is TestProfileRunAdministrationStopDefaultResponse;
|
|
36
50
|
export declare function isUnexpected(response: TestProfileRunAdministrationListTestProfileRuns200Response | TestProfileRunAdministrationListTestProfileRunsDefaultResponse): response is TestProfileRunAdministrationListTestProfileRunsDefaultResponse;
|
|
37
|
-
export declare function isUnexpected(response: TriggerAdministrationGetTrigger200Response | TriggerAdministrationGetTriggerDefaultResponse): response is TriggerAdministrationGetTriggerDefaultResponse;
|
|
38
|
-
export declare function isUnexpected(response: TriggerAdministrationCreateOrUpdateTrigger200Response | TriggerAdministrationCreateOrUpdateTrigger201Response | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse): response is TriggerAdministrationCreateOrUpdateTriggerDefaultResponse;
|
|
39
|
-
export declare function isUnexpected(response: TriggerAdministrationDeleteTrigger204Response | TriggerAdministrationDeleteTriggerDefaultResponse): response is TriggerAdministrationDeleteTriggerDefaultResponse;
|
|
40
|
-
export declare function isUnexpected(response: TriggerAdministrationListTrigger200Response | TriggerAdministrationListTriggerDefaultResponse): response is TriggerAdministrationListTriggerDefaultResponse;
|
|
41
|
-
export declare function isUnexpected(response: NotificationRuleAdministrationGetNotificationRule200Response | NotificationRuleAdministrationGetNotificationRuleDefaultResponse): response is NotificationRuleAdministrationGetNotificationRuleDefaultResponse;
|
|
42
|
-
export declare function isUnexpected(response: NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse): response is NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse;
|
|
43
|
-
export declare function isUnexpected(response: NotificationRuleAdministrationDeleteNotificationRule204Response | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse): response is NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse;
|
|
44
|
-
export declare function isUnexpected(response: NotificationRuleAdministrationListNotificationRule200Response | NotificationRuleAdministrationListNotificationRuleDefaultResponse): response is NotificationRuleAdministrationListNotificationRuleDefaultResponse;
|
|
45
51
|
//# sourceMappingURL=isUnexpected.d.ts.map
|
package/dist/esm/isUnexpected.js
CHANGED
|
@@ -1,112 +1,105 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
1
|
const responseMap = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
2
|
+
"GET /operations/{operationId}": ["200"],
|
|
3
|
+
"PATCH /tests/{testId}": ["200", "201"],
|
|
4
|
+
"DELETE /tests/{testId}": ["204"],
|
|
5
|
+
"GET /tests/{testId}": ["200"],
|
|
6
|
+
"GET /tests": ["200"],
|
|
7
|
+
"GET /tests/{testId}:clone": ["200", "202"],
|
|
8
|
+
"POST /tests/{testId}:clone": ["202"],
|
|
9
|
+
"GET /tests/{testId}:generateTestPlanRecommendations": ["200", "202"],
|
|
10
|
+
"POST /tests/{testId}:generateTestPlanRecommendations": ["202"],
|
|
11
|
+
"PUT /tests/{testId}/files/{fileName}": ["201"],
|
|
12
|
+
"GET /tests/{testId}/files/{fileName}": ["200"],
|
|
13
|
+
"DELETE /tests/{testId}/files/{fileName}": ["204"],
|
|
14
|
+
"GET /tests/{testId}/files": ["200"],
|
|
15
|
+
"PATCH /tests/{testId}/app-components": ["200", "201"],
|
|
16
|
+
"GET /tests/{testId}/app-components": ["200"],
|
|
17
|
+
"PATCH /tests/{testId}/server-metrics-config": ["200", "201"],
|
|
18
|
+
"GET /tests/{testId}/server-metrics-config": ["200"],
|
|
19
|
+
"PATCH /test-profiles/{testProfileId}": ["200", "201"],
|
|
20
|
+
"DELETE /test-profiles/{testProfileId}": ["204"],
|
|
21
|
+
"GET /test-profiles/{testProfileId}": ["200"],
|
|
22
|
+
"GET /test-profiles": ["200"],
|
|
23
|
+
"GET /triggers/{triggerId}": ["200"],
|
|
24
|
+
"PATCH /triggers/{triggerId}": ["200", "201"],
|
|
25
|
+
"DELETE /triggers/{triggerId}": ["204"],
|
|
26
|
+
"GET /triggers": ["200"],
|
|
27
|
+
"GET /notification-rules/{notificationRuleId}": ["200"],
|
|
28
|
+
"PATCH /notification-rules/{notificationRuleId}": ["200", "201"],
|
|
29
|
+
"DELETE /notification-rules/{notificationRuleId}": ["204"],
|
|
30
|
+
"GET /notification-rules": ["200"],
|
|
31
|
+
"GET /test-runs/{testRunId}": ["200"],
|
|
32
|
+
"PATCH /test-runs/{testRunId}": ["200", "201"],
|
|
33
|
+
"DELETE /test-runs/{testRunId}": ["204"],
|
|
34
|
+
"GET /test-runs": ["200"],
|
|
35
|
+
"GET /test-runs/{testRunId}/files/{fileName}": ["200"],
|
|
36
|
+
"POST /test-runs/{testRunId}:stop": ["200"],
|
|
37
|
+
"GET /test-runs/{testRunId}/insights/latest": ["200"],
|
|
38
|
+
"PATCH /test-runs/{testRunId}/insights/latest": ["200"],
|
|
39
|
+
"GET /test-runs/{testRunId}/insights:generate": ["200", "202"],
|
|
40
|
+
"POST /test-runs/{testRunId}/insights:generate": ["202"],
|
|
41
|
+
"GET /test-runs/{testRunId}/metric-namespaces": ["200"],
|
|
42
|
+
"GET /test-runs/{testRunId}/metric-definitions": ["200"],
|
|
43
|
+
"POST /test-runs/{testRunId}/metrics": ["200"],
|
|
44
|
+
"GET /test-runs/{testRunId}/metric-dimensions/{name}/values": ["200"],
|
|
45
|
+
"PATCH /test-runs/{testRunId}/app-components": ["200", "201"],
|
|
46
|
+
"GET /test-runs/{testRunId}/app-components": ["200"],
|
|
47
|
+
"PATCH /test-runs/{testRunId}/server-metrics-config": ["200", "201"],
|
|
48
|
+
"GET /test-runs/{testRunId}/server-metrics-config": ["200"],
|
|
49
|
+
"GET /test-profile-runs/{testProfileRunId}": ["200"],
|
|
50
|
+
"PATCH /test-profile-runs/{testProfileRunId}": ["200", "201"],
|
|
51
|
+
"DELETE /test-profile-runs/{testProfileRunId}": ["204"],
|
|
52
|
+
"POST /test-profile-runs/{testProfileRunId}:stop": ["200"],
|
|
53
|
+
"GET /test-profile-runs": ["200"]
|
|
47
54
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
function isUnexpected(response) {
|
|
56
|
+
const lroOriginal = response.headers["x-ms-original-url"];
|
|
57
|
+
const url = new URL(lroOriginal ?? response.request.url);
|
|
58
|
+
const method = response.request.method;
|
|
59
|
+
let pathDetails = responseMap[`${method} ${url.pathname}`];
|
|
60
|
+
if (!pathDetails) {
|
|
61
|
+
pathDetails = getParametrizedPathSuccess(method, url.pathname);
|
|
62
|
+
}
|
|
63
|
+
return !pathDetails.includes(response.status);
|
|
57
64
|
}
|
|
58
65
|
function getParametrizedPathSuccess(method, path) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
78
|
-
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
79
|
-
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
80
|
-
// If the current part of the candidate is a "template" part
|
|
81
|
-
// Try to use the suffix of pattern to match the path
|
|
82
|
-
// {guid} ==> $
|
|
83
|
-
// {guid}:export ==> :export$
|
|
84
|
-
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
85
|
-
if (!isMatched) {
|
|
86
|
-
found = false;
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
// If the candidate part is not a template and
|
|
92
|
-
// the parts don't match mark the candidate as not found
|
|
93
|
-
// to move on with the next candidate path.
|
|
94
|
-
if (candidateParts[i] !== pathParts[j]) {
|
|
95
|
-
found = false;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
// We finished evaluating the current candidate parts
|
|
100
|
-
// Update the matched value if and only if we found the longer pattern
|
|
101
|
-
if (found && candidatePath.length > matchedLen) {
|
|
102
|
-
matchedLen = candidatePath.length;
|
|
103
|
-
matchedValue = value;
|
|
66
|
+
const pathParts = path.split("/");
|
|
67
|
+
let matchedLen = -1, matchedValue = [];
|
|
68
|
+
for (const [key, value] of Object.entries(responseMap)) {
|
|
69
|
+
if (!key.startsWith(method)) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const candidatePath = getPathFromMapKey(key);
|
|
73
|
+
const candidateParts = candidatePath.split("/");
|
|
74
|
+
let found = true;
|
|
75
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
76
|
+
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
77
|
+
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
78
|
+
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(
|
|
79
|
+
pathParts[j] || ""
|
|
80
|
+
);
|
|
81
|
+
if (!isMatched) {
|
|
82
|
+
found = false;
|
|
83
|
+
break;
|
|
104
84
|
}
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
88
|
+
found = false;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (found && candidatePath.length > matchedLen) {
|
|
93
|
+
matchedLen = candidatePath.length;
|
|
94
|
+
matchedValue = value;
|
|
105
95
|
}
|
|
106
|
-
|
|
96
|
+
}
|
|
97
|
+
return matchedValue;
|
|
107
98
|
}
|
|
108
99
|
function getPathFromMapKey(mapKey) {
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
const pathStart = mapKey.indexOf("/");
|
|
101
|
+
return mapKey.slice(pathStart);
|
|
111
102
|
}
|
|
112
|
-
|
|
103
|
+
export {
|
|
104
|
+
isUnexpected
|
|
105
|
+
};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n LoadTestAdministrationCreateOrUpdateTest200Response,\n LoadTestAdministrationCreateOrUpdateTest201Response,\n LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n LoadTestAdministrationDeleteTest204Response,\n LoadTestAdministrationDeleteTestDefaultResponse,\n LoadTestAdministrationGetTest200Response,\n LoadTestAdministrationGetTestDefaultResponse,\n LoadTestAdministrationListTests200Response,\n LoadTestAdministrationListTestsDefaultResponse,\n LoadTestAdministrationUploadTestFile201Response,\n LoadTestAdministrationUploadTestFileDefaultResponse,\n LoadTestAdministrationGetTestFile200Response,\n LoadTestAdministrationGetTestFileDefaultResponse,\n LoadTestAdministrationDeleteTestFile204Response,\n LoadTestAdministrationDeleteTestFileDefaultResponse,\n LoadTestAdministrationListTestFiles200Response,\n LoadTestAdministrationListTestFilesDefaultResponse,\n LoadTestAdministrationCreateOrUpdateAppComponents200Response,\n LoadTestAdministrationCreateOrUpdateAppComponents201Response,\n LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestAdministrationGetAppComponents200Response,\n LoadTestAdministrationGetAppComponentsDefaultResponse,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestAdministrationGetServerMetricsConfig200Response,\n LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n TestProfileAdministrationCreateOrUpdateTestProfile200Response,\n TestProfileAdministrationCreateOrUpdateTestProfile201Response,\n TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n TestProfileAdministrationDeleteTestProfile204Response,\n TestProfileAdministrationDeleteTestProfileDefaultResponse,\n TestProfileAdministrationGetTestProfile200Response,\n TestProfileAdministrationGetTestProfileDefaultResponse,\n TestProfileAdministrationListTestProfiles200Response,\n TestProfileAdministrationListTestProfilesDefaultResponse,\n LoadTestRunGetTestRun200Response,\n LoadTestRunGetTestRunDefaultResponse,\n LoadTestRunCreateOrUpdateTestRun200Response,\n LoadTestRunCreateOrUpdateTestRun201Response,\n LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n LoadTestRunDeleteTestRun204Response,\n LoadTestRunDeleteTestRunDefaultResponse,\n LoadTestRunListTestRuns200Response,\n LoadTestRunListTestRunsDefaultResponse,\n LoadTestRunGetTestRunFile200Response,\n LoadTestRunGetTestRunFileDefaultResponse,\n LoadTestRunStop200Response,\n LoadTestRunStopDefaultResponse,\n LoadTestRunListMetricNamespaces200Response,\n LoadTestRunListMetricNamespacesDefaultResponse,\n LoadTestRunListMetricDefinitions200Response,\n LoadTestRunListMetricDefinitionsDefaultResponse,\n LoadTestRunListMetrics200Response,\n LoadTestRunListMetricsDefaultResponse,\n LoadTestRunListMetricDimensionValues200Response,\n LoadTestRunListMetricDimensionValuesDefaultResponse,\n LoadTestRunCreateOrUpdateAppComponents200Response,\n LoadTestRunCreateOrUpdateAppComponents201Response,\n LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestRunGetAppComponents200Response,\n LoadTestRunGetAppComponentsDefaultResponse,\n LoadTestRunCreateOrUpdateServerMetricsConfig200Response,\n LoadTestRunCreateOrUpdateServerMetricsConfig201Response,\n LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestRunGetServerMetricsConfig200Response,\n LoadTestRunGetServerMetricsConfigDefaultResponse,\n TestProfileRunAdministrationGetTestProfileRun200Response,\n TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n TestProfileRunAdministrationDeleteTestProfileRun204Response,\n TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n TestProfileRunAdministrationStop200Response,\n TestProfileRunAdministrationStopDefaultResponse,\n TestProfileRunAdministrationListTestProfileRuns200Response,\n TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n TriggerAdministrationGetTrigger200Response,\n TriggerAdministrationGetTriggerDefaultResponse,\n TriggerAdministrationCreateOrUpdateTrigger200Response,\n TriggerAdministrationCreateOrUpdateTrigger201Response,\n TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n TriggerAdministrationDeleteTrigger204Response,\n TriggerAdministrationDeleteTriggerDefaultResponse,\n TriggerAdministrationListTrigger200Response,\n TriggerAdministrationListTriggerDefaultResponse,\n NotificationRuleAdministrationGetNotificationRule200Response,\n NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n NotificationRuleAdministrationDeleteNotificationRule204Response,\n NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n NotificationRuleAdministrationListNotificationRule200Response,\n NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"PATCH /tests/{testId}\": [\"200\", \"201\"],\n \"DELETE /tests/{testId}\": [\"204\"],\n \"GET /tests/{testId}\": [\"200\"],\n \"GET /tests\": [\"200\"],\n \"PUT /tests/{testId}/files/{fileName}\": [\"201\"],\n \"GET /tests/{testId}/files/{fileName}\": [\"200\"],\n \"DELETE /tests/{testId}/files/{fileName}\": [\"204\"],\n \"GET /tests/{testId}/files\": [\"200\"],\n \"PATCH /tests/{testId}/app-components\": [\"200\", \"201\"],\n \"GET /tests/{testId}/app-components\": [\"200\"],\n \"PATCH /tests/{testId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /tests/{testId}/server-metrics-config\": [\"200\"],\n \"PATCH /test-profiles/{testProfileId}\": [\"200\", \"201\"],\n \"DELETE /test-profiles/{testProfileId}\": [\"204\"],\n \"GET /test-profiles/{testProfileId}\": [\"200\"],\n \"GET /test-profiles\": [\"200\"],\n \"GET /test-runs/{testRunId}\": [\"200\"],\n \"PATCH /test-runs/{testRunId}\": [\"200\", \"201\"],\n \"DELETE /test-runs/{testRunId}\": [\"204\"],\n \"GET /test-runs\": [\"200\"],\n \"GET /test-runs/{testRunId}/files/{fileName}\": [\"200\"],\n \"POST /test-runs/{testRunId}:stop\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-namespaces\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-definitions\": [\"200\"],\n \"POST /test-runs/{testRunId}/metrics\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-dimensions/{name}/values\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/app-components\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/app-components\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/server-metrics-config\": [\"200\"],\n \"GET /test-profile-runs/{testProfileRunId}\": [\"200\"],\n \"PATCH /test-profile-runs/{testProfileRunId}\": [\"200\", \"201\"],\n \"DELETE /test-profile-runs/{testProfileRunId}\": [\"204\"],\n \"POST /test-profile-runs/{testProfileRunId}:stop\": [\"200\"],\n \"GET /test-profile-runs\": [\"200\"],\n \"GET /triggers/{triggerId}\": [\"200\"],\n \"PATCH /triggers/{triggerId}\": [\"200\", \"201\"],\n \"DELETE /triggers/{triggerId}\": [\"204\"],\n \"GET /triggers\": [\"200\"],\n \"GET /notification-rules/{notificationRuleId}\": [\"200\"],\n \"PATCH /notification-rules/{notificationRuleId}\": [\"200\", \"201\"],\n \"DELETE /notification-rules/{notificationRuleId}\": [\"204\"],\n \"GET /notification-rules\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse,\n): response is LoadTestAdministrationDeleteTestDefaultResponse;\nexport function isUnexpected(\n response: LoadTestAdministrationGetTest200Response | LoadTestAdministrationGetTestDefaultResponse,\n): response is LoadTestAdministrationGetTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse,\n): response is LoadTestAdministrationListTestsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse,\n): response is LoadTestAdministrationUploadTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse,\n): response is LoadTestAdministrationGetTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse,\n): response is LoadTestAdministrationDeleteTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse,\n): response is LoadTestAdministrationListTestFilesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse,\n): response is LoadTestAdministrationGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n): response is TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse,\n): response is TestProfileAdministrationDeleteTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse,\n): response is TestProfileAdministrationGetTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse,\n): response is TestProfileAdministrationListTestProfilesDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRun200Response | LoadTestRunGetTestRunDefaultResponse,\n): response is LoadTestRunGetTestRunDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n): response is LoadTestRunCreateOrUpdateTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunDeleteTestRun204Response | LoadTestRunDeleteTestRunDefaultResponse,\n): response is LoadTestRunDeleteTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListTestRuns200Response | LoadTestRunListTestRunsDefaultResponse,\n): response is LoadTestRunListTestRunsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRunFile200Response | LoadTestRunGetTestRunFileDefaultResponse,\n): response is LoadTestRunGetTestRunFileDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunStop200Response | LoadTestRunStopDefaultResponse,\n): response is LoadTestRunStopDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse,\n): response is LoadTestRunListMetricNamespacesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse,\n): response is LoadTestRunListMetricDefinitionsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListMetrics200Response | LoadTestRunListMetricsDefaultResponse,\n): response is LoadTestRunListMetricsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse,\n): response is LoadTestRunListMetricDimensionValuesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestRunCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetAppComponents200Response | LoadTestRunGetAppComponentsDefaultResponse,\n): response is LoadTestRunGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse,\n): response is LoadTestRunGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationGetTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse,\n): response is TestProfileRunAdministrationStopDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n): response is TestProfileRunAdministrationListTestProfileRunsDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse,\n): response is TriggerAdministrationGetTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n): response is TriggerAdministrationCreateOrUpdateTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse,\n): response is TriggerAdministrationDeleteTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse,\n): response is TriggerAdministrationListTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationGetNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationListNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTest200Response\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | LoadTestRunGetTestRun200Response\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRun204Response\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRuns200Response\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFile200Response\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStop200Response\n | LoadTestRunStopDefaultResponse\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetrics200Response\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponents200Response\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n): response is\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStopDefaultResponse\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n OperationsGetStatus200Response,\n OperationsGetStatusDefaultResponse,\n LoadTestAdministrationCreateOrUpdateTest200Response,\n LoadTestAdministrationCreateOrUpdateTest201Response,\n LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n LoadTestAdministrationDeleteTest204Response,\n LoadTestAdministrationDeleteTestDefaultResponse,\n LoadTestAdministrationGetTest200Response,\n LoadTestAdministrationGetTestDefaultResponse,\n LoadTestAdministrationListTests200Response,\n LoadTestAdministrationListTestsDefaultResponse,\n LoadTestAdministrationCloneTest202Response,\n LoadTestAdministrationCloneTestLogicalResponse,\n LoadTestAdministrationCloneTestDefaultResponse,\n LoadTestAdministrationGenerateTestPlanRecommendations202Response,\n LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse,\n LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse,\n LoadTestAdministrationUploadTestFile201Response,\n LoadTestAdministrationUploadTestFileDefaultResponse,\n LoadTestAdministrationGetTestFile200Response,\n LoadTestAdministrationGetTestFileDefaultResponse,\n LoadTestAdministrationDeleteTestFile204Response,\n LoadTestAdministrationDeleteTestFileDefaultResponse,\n LoadTestAdministrationListTestFiles200Response,\n LoadTestAdministrationListTestFilesDefaultResponse,\n LoadTestAdministrationCreateOrUpdateAppComponents200Response,\n LoadTestAdministrationCreateOrUpdateAppComponents201Response,\n LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestAdministrationGetAppComponents200Response,\n LoadTestAdministrationGetAppComponentsDefaultResponse,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestAdministrationGetServerMetricsConfig200Response,\n LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n TestProfileAdministrationCreateOrUpdateTestProfile200Response,\n TestProfileAdministrationCreateOrUpdateTestProfile201Response,\n TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n TestProfileAdministrationDeleteTestProfile204Response,\n TestProfileAdministrationDeleteTestProfileDefaultResponse,\n TestProfileAdministrationGetTestProfile200Response,\n TestProfileAdministrationGetTestProfileDefaultResponse,\n TestProfileAdministrationListTestProfiles200Response,\n TestProfileAdministrationListTestProfilesDefaultResponse,\n TriggerAdministrationGetTrigger200Response,\n TriggerAdministrationGetTriggerDefaultResponse,\n TriggerAdministrationCreateOrUpdateTrigger200Response,\n TriggerAdministrationCreateOrUpdateTrigger201Response,\n TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n TriggerAdministrationDeleteTrigger204Response,\n TriggerAdministrationDeleteTriggerDefaultResponse,\n TriggerAdministrationListTrigger200Response,\n TriggerAdministrationListTriggerDefaultResponse,\n NotificationRuleAdministrationGetNotificationRule200Response,\n NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n NotificationRuleAdministrationDeleteNotificationRule204Response,\n NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n NotificationRuleAdministrationListNotificationRule200Response,\n NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n LoadTestRunGetTestRun200Response,\n LoadTestRunGetTestRunDefaultResponse,\n LoadTestRunCreateOrUpdateTestRun200Response,\n LoadTestRunCreateOrUpdateTestRun201Response,\n LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n LoadTestRunDeleteTestRun204Response,\n LoadTestRunDeleteTestRunDefaultResponse,\n LoadTestRunListTestRuns200Response,\n LoadTestRunListTestRunsDefaultResponse,\n LoadTestRunGetTestRunFile200Response,\n LoadTestRunGetTestRunFileDefaultResponse,\n LoadTestRunStop200Response,\n LoadTestRunStopDefaultResponse,\n LoadTestRunGetLatestInsights200Response,\n LoadTestRunGetLatestInsightsDefaultResponse,\n LoadTestRunUpdateLatestInsights200Response,\n LoadTestRunUpdateLatestInsightsDefaultResponse,\n LoadTestRunGenerateInsights202Response,\n LoadTestRunGenerateInsightsLogicalResponse,\n LoadTestRunGenerateInsightsDefaultResponse,\n LoadTestRunListMetricNamespaces200Response,\n LoadTestRunListMetricNamespacesDefaultResponse,\n LoadTestRunListMetricDefinitions200Response,\n LoadTestRunListMetricDefinitionsDefaultResponse,\n LoadTestRunListMetrics200Response,\n LoadTestRunListMetricsDefaultResponse,\n LoadTestRunListMetricDimensionValues200Response,\n LoadTestRunListMetricDimensionValuesDefaultResponse,\n LoadTestRunCreateOrUpdateAppComponents200Response,\n LoadTestRunCreateOrUpdateAppComponents201Response,\n LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestRunGetAppComponents200Response,\n LoadTestRunGetAppComponentsDefaultResponse,\n LoadTestRunCreateOrUpdateServerMetricsConfig200Response,\n LoadTestRunCreateOrUpdateServerMetricsConfig201Response,\n LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestRunGetServerMetricsConfig200Response,\n LoadTestRunGetServerMetricsConfigDefaultResponse,\n TestProfileRunAdministrationGetTestProfileRun200Response,\n TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n TestProfileRunAdministrationDeleteTestProfileRun204Response,\n TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n TestProfileRunAdministrationStop200Response,\n TestProfileRunAdministrationStopDefaultResponse,\n TestProfileRunAdministrationListTestProfileRuns200Response,\n TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /operations/{operationId}\": [\"200\"],\n \"PATCH /tests/{testId}\": [\"200\", \"201\"],\n \"DELETE /tests/{testId}\": [\"204\"],\n \"GET /tests/{testId}\": [\"200\"],\n \"GET /tests\": [\"200\"],\n \"GET /tests/{testId}:clone\": [\"200\", \"202\"],\n \"POST /tests/{testId}:clone\": [\"202\"],\n \"GET /tests/{testId}:generateTestPlanRecommendations\": [\"200\", \"202\"],\n \"POST /tests/{testId}:generateTestPlanRecommendations\": [\"202\"],\n \"PUT /tests/{testId}/files/{fileName}\": [\"201\"],\n \"GET /tests/{testId}/files/{fileName}\": [\"200\"],\n \"DELETE /tests/{testId}/files/{fileName}\": [\"204\"],\n \"GET /tests/{testId}/files\": [\"200\"],\n \"PATCH /tests/{testId}/app-components\": [\"200\", \"201\"],\n \"GET /tests/{testId}/app-components\": [\"200\"],\n \"PATCH /tests/{testId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /tests/{testId}/server-metrics-config\": [\"200\"],\n \"PATCH /test-profiles/{testProfileId}\": [\"200\", \"201\"],\n \"DELETE /test-profiles/{testProfileId}\": [\"204\"],\n \"GET /test-profiles/{testProfileId}\": [\"200\"],\n \"GET /test-profiles\": [\"200\"],\n \"GET /triggers/{triggerId}\": [\"200\"],\n \"PATCH /triggers/{triggerId}\": [\"200\", \"201\"],\n \"DELETE /triggers/{triggerId}\": [\"204\"],\n \"GET /triggers\": [\"200\"],\n \"GET /notification-rules/{notificationRuleId}\": [\"200\"],\n \"PATCH /notification-rules/{notificationRuleId}\": [\"200\", \"201\"],\n \"DELETE /notification-rules/{notificationRuleId}\": [\"204\"],\n \"GET /notification-rules\": [\"200\"],\n \"GET /test-runs/{testRunId}\": [\"200\"],\n \"PATCH /test-runs/{testRunId}\": [\"200\", \"201\"],\n \"DELETE /test-runs/{testRunId}\": [\"204\"],\n \"GET /test-runs\": [\"200\"],\n \"GET /test-runs/{testRunId}/files/{fileName}\": [\"200\"],\n \"POST /test-runs/{testRunId}:stop\": [\"200\"],\n \"GET /test-runs/{testRunId}/insights/latest\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/insights/latest\": [\"200\"],\n \"GET /test-runs/{testRunId}/insights:generate\": [\"200\", \"202\"],\n \"POST /test-runs/{testRunId}/insights:generate\": [\"202\"],\n \"GET /test-runs/{testRunId}/metric-namespaces\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-definitions\": [\"200\"],\n \"POST /test-runs/{testRunId}/metrics\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-dimensions/{name}/values\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/app-components\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/app-components\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/server-metrics-config\": [\"200\"],\n \"GET /test-profile-runs/{testProfileRunId}\": [\"200\"],\n \"PATCH /test-profile-runs/{testProfileRunId}\": [\"200\", \"201\"],\n \"DELETE /test-profile-runs/{testProfileRunId}\": [\"204\"],\n \"POST /test-profile-runs/{testProfileRunId}:stop\": [\"200\"],\n \"GET /test-profile-runs\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: OperationsGetStatus200Response | OperationsGetStatusDefaultResponse,\n): response is OperationsGetStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse,\n): response is LoadTestAdministrationDeleteTestDefaultResponse;\nexport function isUnexpected(\n response: LoadTestAdministrationGetTest200Response | LoadTestAdministrationGetTestDefaultResponse,\n): response is LoadTestAdministrationGetTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse,\n): response is LoadTestAdministrationListTestsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCloneTest202Response\n | LoadTestAdministrationCloneTestLogicalResponse\n | LoadTestAdministrationCloneTestDefaultResponse,\n): response is LoadTestAdministrationCloneTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGenerateTestPlanRecommendations202Response\n | LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse\n | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse,\n): response is LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse,\n): response is LoadTestAdministrationUploadTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse,\n): response is LoadTestAdministrationGetTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse,\n): response is LoadTestAdministrationDeleteTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse,\n): response is LoadTestAdministrationListTestFilesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse,\n): response is LoadTestAdministrationGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n): response is TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse,\n): response is TestProfileAdministrationDeleteTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse,\n): response is TestProfileAdministrationGetTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse,\n): response is TestProfileAdministrationListTestProfilesDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse,\n): response is TriggerAdministrationGetTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n): response is TriggerAdministrationCreateOrUpdateTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse,\n): response is TriggerAdministrationDeleteTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse,\n): response is TriggerAdministrationListTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationGetNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationListNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRun200Response | LoadTestRunGetTestRunDefaultResponse,\n): response is LoadTestRunGetTestRunDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n): response is LoadTestRunCreateOrUpdateTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunDeleteTestRun204Response | LoadTestRunDeleteTestRunDefaultResponse,\n): response is LoadTestRunDeleteTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListTestRuns200Response | LoadTestRunListTestRunsDefaultResponse,\n): response is LoadTestRunListTestRunsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRunFile200Response | LoadTestRunGetTestRunFileDefaultResponse,\n): response is LoadTestRunGetTestRunFileDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunStop200Response | LoadTestRunStopDefaultResponse,\n): response is LoadTestRunStopDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetLatestInsights200Response | LoadTestRunGetLatestInsightsDefaultResponse,\n): response is LoadTestRunGetLatestInsightsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunUpdateLatestInsights200Response\n | LoadTestRunUpdateLatestInsightsDefaultResponse,\n): response is LoadTestRunUpdateLatestInsightsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunGenerateInsights202Response\n | LoadTestRunGenerateInsightsLogicalResponse\n | LoadTestRunGenerateInsightsDefaultResponse,\n): response is LoadTestRunGenerateInsightsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse,\n): response is LoadTestRunListMetricNamespacesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse,\n): response is LoadTestRunListMetricDefinitionsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListMetrics200Response | LoadTestRunListMetricsDefaultResponse,\n): response is LoadTestRunListMetricsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse,\n): response is LoadTestRunListMetricDimensionValuesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestRunCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetAppComponents200Response | LoadTestRunGetAppComponentsDefaultResponse,\n): response is LoadTestRunGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse,\n): response is LoadTestRunGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationGetTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse,\n): response is TestProfileRunAdministrationStopDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n): response is TestProfileRunAdministrationListTestProfileRunsDefaultResponse;\nexport function isUnexpected(\n response:\n | OperationsGetStatus200Response\n | OperationsGetStatusDefaultResponse\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTest200Response\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationCloneTest202Response\n | LoadTestAdministrationCloneTestLogicalResponse\n | LoadTestAdministrationCloneTestDefaultResponse\n | LoadTestAdministrationGenerateTestPlanRecommendations202Response\n | LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse\n | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse\n | LoadTestRunGetTestRun200Response\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRun204Response\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRuns200Response\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFile200Response\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStop200Response\n | LoadTestRunStopDefaultResponse\n | LoadTestRunGetLatestInsights200Response\n | LoadTestRunGetLatestInsightsDefaultResponse\n | LoadTestRunUpdateLatestInsights200Response\n | LoadTestRunUpdateLatestInsightsDefaultResponse\n | LoadTestRunGenerateInsights202Response\n | LoadTestRunGenerateInsightsLogicalResponse\n | LoadTestRunGenerateInsightsDefaultResponse\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetrics200Response\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponents200Response\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n): response is\n | OperationsGetStatusDefaultResponse\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationCloneTestDefaultResponse\n | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStopDefaultResponse\n | LoadTestRunGetLatestInsightsDefaultResponse\n | LoadTestRunUpdateLatestInsightsDefaultResponse\n | LoadTestRunGenerateInsightsDefaultResponse\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"],
|
|
5
|
+
"mappings": "AAqHA,MAAM,cAAwC;AAAA,EAC5C,iCAAiC,CAAC,KAAK;AAAA,EACvC,yBAAyB,CAAC,OAAO,KAAK;AAAA,EACtC,0BAA0B,CAAC,KAAK;AAAA,EAChC,uBAAuB,CAAC,KAAK;AAAA,EAC7B,cAAc,CAAC,KAAK;AAAA,EACpB,6BAA6B,CAAC,OAAO,KAAK;AAAA,EAC1C,8BAA8B,CAAC,KAAK;AAAA,EACpC,uDAAuD,CAAC,OAAO,KAAK;AAAA,EACpE,wDAAwD,CAAC,KAAK;AAAA,EAC9D,wCAAwC,CAAC,KAAK;AAAA,EAC9C,wCAAwC,CAAC,KAAK;AAAA,EAC9C,2CAA2C,CAAC,KAAK;AAAA,EACjD,6BAA6B,CAAC,KAAK;AAAA,EACnC,wCAAwC,CAAC,OAAO,KAAK;AAAA,EACrD,sCAAsC,CAAC,KAAK;AAAA,EAC5C,+CAA+C,CAAC,OAAO,KAAK;AAAA,EAC5D,6CAA6C,CAAC,KAAK;AAAA,EACnD,wCAAwC,CAAC,OAAO,KAAK;AAAA,EACrD,yCAAyC,CAAC,KAAK;AAAA,EAC/C,sCAAsC,CAAC,KAAK;AAAA,EAC5C,sBAAsB,CAAC,KAAK;AAAA,EAC5B,6BAA6B,CAAC,KAAK;AAAA,EACnC,+BAA+B,CAAC,OAAO,KAAK;AAAA,EAC5C,gCAAgC,CAAC,KAAK;AAAA,EACtC,iBAAiB,CAAC,KAAK;AAAA,EACvB,gDAAgD,CAAC,KAAK;AAAA,EACtD,kDAAkD,CAAC,OAAO,KAAK;AAAA,EAC/D,mDAAmD,CAAC,KAAK;AAAA,EACzD,2BAA2B,CAAC,KAAK;AAAA,EACjC,8BAA8B,CAAC,KAAK;AAAA,EACpC,gCAAgC,CAAC,OAAO,KAAK;AAAA,EAC7C,iCAAiC,CAAC,KAAK;AAAA,EACvC,kBAAkB,CAAC,KAAK;AAAA,EACxB,+CAA+C,CAAC,KAAK;AAAA,EACrD,oCAAoC,CAAC,KAAK;AAAA,EAC1C,8CAA8C,CAAC,KAAK;AAAA,EACpD,gDAAgD,CAAC,KAAK;AAAA,EACtD,gDAAgD,CAAC,OAAO,KAAK;AAAA,EAC7D,iDAAiD,CAAC,KAAK;AAAA,EACvD,gDAAgD,CAAC,KAAK;AAAA,EACtD,iDAAiD,CAAC,KAAK;AAAA,EACvD,uCAAuC,CAAC,KAAK;AAAA,EAC7C,8DAA8D,CAAC,KAAK;AAAA,EACpE,+CAA+C,CAAC,OAAO,KAAK;AAAA,EAC5D,6CAA6C,CAAC,KAAK;AAAA,EACnD,sDAAsD,CAAC,OAAO,KAAK;AAAA,EACnE,oDAAoD,CAAC,KAAK;AAAA,EAC1D,6CAA6C,CAAC,KAAK;AAAA,EACnD,+CAA+C,CAAC,OAAO,KAAK;AAAA,EAC5D,gDAAgD,CAAC,KAAK;AAAA,EACtD,mDAAmD,CAAC,KAAK;AAAA,EACzD,0BAA0B,CAAC,KAAK;AAClC;AAgPO,SAAS,aACd,UAiKiE;AACjE,QAAM,cAAc,SAAS,QAAQ,mBAAmB;AACxD,QAAM,MAAM,IAAI,IAAI,eAAe,SAAS,QAAQ,GAAG;AACvD,QAAM,SAAS,SAAS,QAAQ;AAChC,MAAI,cAAc,YAAY,GAAG,MAAM,IAAI,IAAI,QAAQ,EAAE;AACzD,MAAI,CAAC,aAAa;AAChB,kBAAc,2BAA2B,QAAQ,IAAI,QAAQ;AAAA,EAC/D;AACA,SAAO,CAAC,YAAY,SAAS,SAAS,MAAM;AAC9C;AAEA,SAAS,2BAA2B,QAAgB,MAAwB;AAC1E,QAAM,YAAY,KAAK,MAAM,GAAG;AAKhC,MAAI,aAAa,IACf,eAAyB,CAAC;AAG5B,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,WAAW,GAAG;AAGtD,QAAI,CAAC,IAAI,WAAW,MAAM,GAAG;AAC3B;AAAA,IACF;AACA,UAAM,gBAAgB,kBAAkB,GAAG;AAE3C,UAAM,iBAAiB,cAAc,MAAM,GAAG;AAG9C,QAAI,QAAQ;AACZ,aAAS,IAAI,eAAe,SAAS,GAAG,IAAI,UAAU,SAAS,GAAG,KAAK,KAAK,KAAK,GAAG,KAAK,KAAK;AAC5F,UAAI,eAAe,CAAC,GAAG,WAAW,GAAG,KAAK,eAAe,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;AAChF,cAAM,QAAQ,eAAe,CAAC,EAAG,QAAQ,GAAG,IAAI,GAC9C,MAAM,eAAe,CAAC,GAAG;AAK3B,cAAM,YAAY,IAAI,OAAO,GAAG,eAAe,CAAC,GAAG,MAAM,OAAO,GAAG,CAAC,EAAE,EAAE;AAAA,UACtE,UAAU,CAAC,KAAK;AAAA,QAClB;AAEA,YAAI,CAAC,WAAW;AACd,kBAAQ;AACR;AAAA,QACF;AACA;AAAA,MACF;AAKA,UAAI,eAAe,CAAC,MAAM,UAAU,CAAC,GAAG;AACtC,gBAAQ;AACR;AAAA,MACF;AAAA,IACF;AAIA,QAAI,SAAS,cAAc,SAAS,YAAY;AAC9C,mBAAa,cAAc;AAC3B,qBAAe;AAAA,IACjB;AAAA,EACF;AAEA,SAAO;AACT;AAEA,SAAS,kBAAkB,QAAwB;AACjD,QAAM,YAAY,OAAO,QAAQ,GAAG;AACpC,SAAO,OAAO,MAAM,SAAS;AAC/B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/esm/logger.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
1
|
import { createClientLogger } from "@azure/logger";
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
const logger = createClientLogger("load-testing");
|
|
3
|
+
export {
|
|
4
|
+
logger
|
|
5
|
+
};
|
package/dist/esm/logger.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/loadtesting/load-testing-rest/src/logger.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"load-testing\");\n"],
|
|
5
|
+
"mappings": "AAGA,SAAS,0BAA0B;AAC5B,MAAM,SAAS,mBAAmB,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|