diff --git a/packages/@azure/servicefabric/.npmignore b/packages/@azure/servicefabric/.npmignore
deleted file mode 100644
index 3b46bc6202d8..000000000000
--- a/packages/@azure/servicefabric/.npmignore
+++ /dev/null
@@ -1,35 +0,0 @@
-#git
-.git
-.gitignore
-#gulp
-gulpfile.js
-#documentation
-doc/
-docs/
-#dependencies
-node_modules/
-#samples
-sample/
-samples/
-#tests
-test/
-tests/
-coverage/
-#tools and scripts
-tools/
-scripts/
-#IDE settings
-*.sln
-.vscode/
-.idea
-.editorconfig
-.ntvs_analysis.*
-#build tools
-.travis.yml
-.jenkins.yml
-.codeclimate.yml
-appveyor.yml
-# Nuget packages #
-.nuget/
-packages/
-packages.config
diff --git a/packages/@azure/servicefabric/LICENSE.txt b/packages/@azure/servicefabric/LICENSE.txt
index a70e8cf66038..5431ba98b936 100644
--- a/packages/@azure/servicefabric/LICENSE.txt
+++ b/packages/@azure/servicefabric/LICENSE.txt
@@ -1,21 +1,21 @@
-The MIT License (MIT)
-
-Copyright (c) 2018 Microsoft
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+The MIT License (MIT)
+
+Copyright (c) 2018 Microsoft
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/packages/@azure/servicefabric/README.md b/packages/@azure/servicefabric/README.md
index d4b623414041..f8031417001a 100644
--- a/packages/@azure/servicefabric/README.md
+++ b/packages/@azure/servicefabric/README.md
@@ -1,68 +1,79 @@
-# An isomorphic javascript sdk for - ServiceFabricClient
-This project provides an isomorphic javascript package. Right now it supports:
-- node.js version 6.x.x or higher
-- browser javascript
-
-## How to Install
-
-- nodejs
-```
-npm install @azure/servicefabric
-```
-- browser
-```html
-
-```
-
-## How to use
-
-### nodejs - Authentication, client creation and getClusterManifest as an example written in TypeScript.
-
-```ts
-import * as msRest from "ms-rest-js";
-import { ServiceFabricClient, ServiceFabricModels, ServiceFabricMappers } from "@azure/servicefabric";
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-const token = "";
-const creds = new msRest.TokenCredentials(token);
-const client = new ServiceFabricClient(creds, subscriptionId);
-const timeout = 1;
-client.getClusterManifest(timeout).then((result) => {
- console.log("The result is:");
- console.log(result);
-}).catch((err) => {
- console.error(err);
-});
-```
-
-### browser - Authentication, client creation and getClusterManifest as an example written in javascript.
-
-- index.html
-```html
-
-
-
- @azure/servicefabric sample
-
-
-
-
-
-
-
-```
-
-# Related projects
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+# An isomorphic javascript sdk for - ServiceFabricClient
+This project provides an isomorphic javascript package. Right now it supports:
+- node.js version 6.x.x or higher
+- browser javascript
+
+## How to Install
+
+- nodejs
+```
+npm install @azure/servicefabric
+```
+- browser
+```html
+
+```
+
+## How to use
+
+### nodejs - Authentication, client creation and getClusterManifest as an example written in TypeScript.
+
+```ts
+import * as msRest from "ms-rest-js";
+import * as msRestNodeAuth from "ms-rest-nodeauth";
+import { ServiceFabricClient, ServiceFabricModels, ServiceFabricMappers } from "@azure/servicefabric";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new ServiceFabricClient(creds, subscriptionId);
+ const timeout = 1;
+ client.getClusterManifest(timeout).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+### browser - Authentication, client creation and getClusterManifest as an example written in javascript.
+
+- index.html
+```html
+
+
+
+ @azure/servicefabric sample
+
+
+
+
+
+
+
+
+```
+
+# Related projects
+ - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/servicefabric/lib/models/mappers.ts b/packages/@azure/servicefabric/lib/models/mappers.ts
index a85f0edee4a8..1931ec9a0be0 100644
--- a/packages/@azure/servicefabric/lib/models/mappers.ts
+++ b/packages/@azure/servicefabric/lib/models/mappers.ts
@@ -352,11 +352,6 @@ export const HealthEvaluationWrapper: msRest.CompositeMapper = {
serializedName: "HealthEvaluation",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "HealthEvaluation",
className: "HealthEvaluation"
}
}
@@ -1650,11 +1645,6 @@ export const SafetyCheckWrapper: msRest.CompositeMapper = {
serializedName: "SafetyCheck",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "SafetyCheck",
className: "SafetyCheck"
}
}
@@ -3785,11 +3775,6 @@ export const ServicePartitionInfo: msRest.CompositeMapper = {
serializedName: "PartitionInformation",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServicePartitionKind",
- clientName: "servicePartitionKind"
- },
- uberParent: "PartitionInformation",
className: "PartitionInformation"
}
},
@@ -3823,11 +3808,6 @@ export const PagedServicePartitionInfoList: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServiceKind",
- clientName: "serviceKind"
- },
- uberParent: "ServicePartitionInfo",
className: "ServicePartitionInfo"
}
}
@@ -3908,11 +3888,6 @@ export const PagedReplicaInfoList: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServiceKind",
- clientName: "serviceKind"
- },
- uberParent: "ReplicaInfo",
className: "ReplicaInfo"
}
}
@@ -4005,11 +3980,6 @@ export const PagedServiceInfoList: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServiceKind",
- clientName: "serviceKind"
- },
- uberParent: "ServiceInfo",
className: "ServiceInfo"
}
}
@@ -4109,11 +4079,6 @@ export const PartitionHealth: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServiceKind",
- clientName: "serviceKind"
- },
- uberParent: "ReplicaHealthState",
className: "ReplicaHealthState"
}
}
@@ -5221,11 +5186,6 @@ export const ServiceTypeDescription: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Type",
- clientName: "type"
- },
- uberParent: "ServicePlacementPolicyDescription",
className: "ServicePlacementPolicyDescription"
}
}
@@ -5264,11 +5224,6 @@ export const ServiceTypeInfo: msRest.CompositeMapper = {
serializedName: "ServiceTypeDescription",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "ServiceTypeDescription",
className: "ServiceTypeDescription"
}
},
@@ -6655,11 +6610,6 @@ export const ChaosEventWrapper: msRest.CompositeMapper = {
serializedName: "ChaosEvent",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "ChaosEvent",
className: "ChaosEvent"
}
}
@@ -7677,11 +7627,6 @@ export const ScalingPolicyDescription: msRest.CompositeMapper = {
serializedName: "ScalingTrigger",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "ScalingTriggerDescription",
className: "ScalingTriggerDescription"
}
},
@@ -7690,11 +7635,6 @@ export const ScalingPolicyDescription: msRest.CompositeMapper = {
serializedName: "ScalingMechanism",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "ScalingMechanismDescription",
className: "ScalingMechanismDescription"
}
}
@@ -7749,11 +7689,6 @@ export const ServiceDescription: msRest.CompositeMapper = {
serializedName: "PartitionDescription",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "PartitionScheme",
- clientName: "partitionScheme"
- },
- uberParent: "PartitionSchemeDescription",
className: "PartitionSchemeDescription"
}
},
@@ -7794,11 +7729,6 @@ export const ServiceDescription: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Type",
- clientName: "type"
- },
- uberParent: "ServicePlacementPolicyDescription",
className: "ServicePlacementPolicyDescription"
}
}
@@ -8432,11 +8362,6 @@ export const DeployedStatefulServiceReplicaDetailInfo: msRest.CompositeMapper =
serializedName: "ReplicatorStatus",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "ReplicatorStatus",
className: "ReplicatorStatus"
}
},
@@ -8444,8 +8369,6 @@ export const DeployedStatefulServiceReplicaDetailInfo: msRest.CompositeMapper =
serializedName: "ReplicaStatus",
type: {
name: "Composite",
- polymorphicDiscriminator: ReplicaStatusBase.type.polymorphicDiscriminator,
- uberParent: "ReplicaStatusBase",
className: "KeyValueStoreReplicaStatus"
}
},
@@ -8453,8 +8376,6 @@ export const DeployedStatefulServiceReplicaDetailInfo: msRest.CompositeMapper =
serializedName: "DeployedServiceReplicaQueryResult",
type: {
name: "Composite",
- polymorphicDiscriminator: DeployedServiceReplicaInfo.type.polymorphicDiscriminator,
- uberParent: "DeployedServiceReplicaInfo",
className: "DeployedStatefulServiceReplicaInfo"
}
}
@@ -8481,8 +8402,6 @@ export const DeployedStatelessServiceInstanceDetailInfo: msRest.CompositeMapper
serializedName: "DeployedServiceReplicaQueryResult",
type: {
name: "Composite",
- polymorphicDiscriminator: DeployedServiceReplicaInfo.type.polymorphicDiscriminator,
- uberParent: "DeployedServiceReplicaInfo",
className: "DeployedStatelessServiceInstanceInfo"
}
}
@@ -8544,11 +8463,6 @@ export const ServiceUpdateDescription: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Type",
- clientName: "type"
- },
- uberParent: "ServicePlacementPolicyDescription",
className: "ServicePlacementPolicyDescription"
}
}
@@ -8931,11 +8845,6 @@ export const ResolvedServicePartition: msRest.CompositeMapper = {
serializedName: "PartitionInformation",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServicePartitionKind",
- clientName: "servicePartitionKind"
- },
- uberParent: "PartitionInformation",
className: "PartitionInformation"
}
},
@@ -9587,11 +9496,6 @@ export const PropertyInfo: msRest.CompositeMapper = {
serializedName: "Value",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "PropertyValue",
className: "PropertyValue"
}
},
@@ -9665,11 +9569,6 @@ export const PropertyDescription: msRest.CompositeMapper = {
serializedName: "Value",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "PropertyValue",
className: "PropertyValue"
}
}
@@ -9719,11 +9618,6 @@ export const PropertyBatchDescriptionList: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "PropertyBatchOperation",
className: "PropertyBatchOperation"
}
}
@@ -9787,11 +9681,6 @@ export const CheckValuePropertyBatchOperation: msRest.CompositeMapper = {
serializedName: "Value",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "PropertyValue",
className: "PropertyValue"
}
}
@@ -9846,11 +9735,6 @@ export const PutPropertyBatchOperation: msRest.CompositeMapper = {
serializedName: "Value",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "PropertyValue",
className: "PropertyValue"
}
},
@@ -10022,11 +9906,6 @@ export const BackupPolicyDescription: msRest.CompositeMapper = {
serializedName: "Schedule",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ScheduleKind",
- clientName: "scheduleKind"
- },
- uberParent: "BackupScheduleDescription",
className: "BackupScheduleDescription"
}
},
@@ -10035,11 +9914,6 @@ export const BackupPolicyDescription: msRest.CompositeMapper = {
serializedName: "Storage",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "StorageKind",
- clientName: "storageKind"
- },
- uberParent: "BackupStorageDescription",
className: "BackupStorageDescription"
}
}
@@ -10195,11 +10069,6 @@ export const PagedBackupConfigurationInfoList: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "BackupConfigurationInfo",
className: "BackupConfigurationInfo"
}
}
@@ -10233,11 +10102,6 @@ export const RestorePartitionDescription: msRest.CompositeMapper = {
serializedName: "BackupStorage",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "StorageKind",
- clientName: "storageKind"
- },
- uberParent: "BackupStorageDescription",
className: "BackupStorageDescription"
}
}
@@ -10297,11 +10161,6 @@ export const BackupPartitionDescription: msRest.CompositeMapper = {
serializedName: "BackupStorage",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "StorageKind",
- clientName: "storageKind"
- },
- uberParent: "BackupStorageDescription",
className: "BackupStorageDescription"
}
}
@@ -10343,11 +10202,6 @@ export const BackupInfo: msRest.CompositeMapper = {
serializedName: "PartitionInformation",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServicePartitionKind",
- clientName: "servicePartitionKind"
- },
- uberParent: "PartitionInformation",
className: "PartitionInformation"
}
},
@@ -10755,11 +10609,6 @@ export const PagedBackupEntityList: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "EntityKind",
- clientName: "entityKind"
- },
- uberParent: "BackupEntity",
className: "BackupEntity"
}
}
@@ -10799,11 +10648,6 @@ export const GetBackupByStorageQueryDescription: msRest.CompositeMapper = {
serializedName: "Storage",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "StorageKind",
- clientName: "storageKind"
- },
- uberParent: "BackupStorageDescription",
className: "BackupStorageDescription"
}
},
@@ -10812,11 +10656,6 @@ export const GetBackupByStorageQueryDescription: msRest.CompositeMapper = {
serializedName: "BackupEntity",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "EntityKind",
- clientName: "entityKind"
- },
- uberParent: "BackupEntity",
className: "BackupEntity"
}
}
@@ -11065,11 +10904,6 @@ export const RepairTask: msRest.CompositeMapper = {
serializedName: "Target",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "RepairTargetDescriptionBase",
className: "RepairTargetDescriptionBase"
}
},
@@ -11089,11 +10923,6 @@ export const RepairTask: msRest.CompositeMapper = {
serializedName: "Impact",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "RepairImpactDescriptionBase",
className: "RepairImpactDescriptionBase"
}
},
@@ -15214,11 +15043,6 @@ export const DiagnosticsDescription: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "kind",
- clientName: "kind"
- },
- uberParent: "DiagnosticsSinkProperties",
className: "DiagnosticsSinkProperties"
}
}
diff --git a/packages/@azure/servicefabric/lib/serviceFabricClient.ts b/packages/@azure/servicefabric/lib/serviceFabricClient.ts
index 095bb6a43bf1..e41f3ee767d8 100644
--- a/packages/@azure/servicefabric/lib/serviceFabricClient.ts
+++ b/packages/@azure/servicefabric/lib/serviceFabricClient.ts
@@ -10182,11 +10182,6 @@ const getDeployedServiceReplicaInfoListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "ServiceKind",
- clientName: "serviceKind"
- },
- uberParent: "DeployedServiceReplicaInfo",
className: "DeployedServiceReplicaInfo"
}
}
@@ -12188,8 +12183,6 @@ const getClusterEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ClusterEvent"
}
}
@@ -12224,8 +12217,6 @@ const getContainersEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ContainerInstanceEvent"
}
}
@@ -12263,8 +12254,6 @@ const getNodeEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "NodeEvent"
}
}
@@ -12299,8 +12288,6 @@ const getNodesEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "NodeEvent"
}
}
@@ -12338,8 +12325,6 @@ const getApplicationEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ApplicationEvent"
}
}
@@ -12374,8 +12359,6 @@ const getApplicationsEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ApplicationEvent"
}
}
@@ -12413,8 +12396,6 @@ const getServiceEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ServiceEvent"
}
}
@@ -12449,8 +12430,6 @@ const getServicesEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ServiceEvent"
}
}
@@ -12488,8 +12467,6 @@ const getPartitionEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "PartitionEvent"
}
}
@@ -12524,8 +12501,6 @@ const getPartitionsEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "PartitionEvent"
}
}
@@ -12564,8 +12539,6 @@ const getPartitionReplicaEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ReplicaEvent"
}
}
@@ -12603,8 +12576,6 @@ const getPartitionReplicasEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator,
- uberParent: "FabricEvent",
className: "ReplicaEvent"
}
}
@@ -12637,11 +12608,6 @@ const getCorrelatedEventListOperationSpec: msRest.OperationSpec = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "Kind",
- clientName: "kind"
- },
- uberParent: "FabricEvent",
className: "FabricEvent"
}
}
diff --git a/packages/@azure/servicefabric/package.json b/packages/@azure/servicefabric/package.json
index 818b1e504de8..2d2edb306763 100644
--- a/packages/@azure/servicefabric/package.json
+++ b/packages/@azure/servicefabric/package.json
@@ -32,10 +32,23 @@
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
+ "files": [
+ "dist/**/*.js",
+ "dist/**/*.js.map",
+ "dist/**/*.d.ts",
+ "dist/**/*.d.ts.map",
+ "esm/**/*.js",
+ "esm/**/*.js.map",
+ "esm/**/*.d.ts",
+ "esm/**/*.d.ts.map",
+ "lib/**/*.ts",
+ "rollup.config.js",
+ "tsconfig.json"
+ ],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/servicefabric.js.map'\" -o ./dist/servicefabric.min.js ./dist/servicefabric.js",
- "prepare": "npm run build"
+ "prepack": "npm install && npm run build"
},
"sideEffects": false
}
diff --git a/packages/@azure/servicefabric/tsconfig.esm.json b/packages/@azure/servicefabric/tsconfig.esm.json
deleted file mode 100644
index 0b3aed07505c..000000000000
--- a/packages/@azure/servicefabric/tsconfig.esm.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "./tsconfig",
- "compilerOptions": {
- "outDir": "./esm",
- "module": "es6",
- "target": "es5"
- }
-}
diff --git a/packages/@azure/servicefabric/webpack.config.js b/packages/@azure/servicefabric/webpack.config.js
deleted file mode 100644
index 0344ad2b86c6..000000000000
--- a/packages/@azure/servicefabric/webpack.config.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// This is a template webpack config file with minimal configuration.
-// Users are free to create their own webpack configuration files in their application.
-const path = require('path');
-
-/**
- * @type {import('webpack').Configuration}
- */
-const config = {
- mode: 'production',
- entry: './esm/serviceFabricClient.js',
- devtool: 'source-map',
- output: {
- filename: 'serviceFabricClientBundle.js',
- path: __dirname,
- libraryTarget: 'var',
- library: 'serviceFabricClient'
- },
- // "ms-rest-js" and "ms-rest-azure-js" are dependencies of this library.
- // Customer is expected to import/include this library in browser javascript
- // (probably using the script tag in their html file).
- externals: {
- "ms-rest-js": "msRest",
- "ms-rest-azure-js": "msRestAzure"
- },
- resolve: {
- extensions: [".tsx", ".ts", ".js"]
- }
-};
-
-module.exports = config;