@ms-atlas-module/datastudio-datafactory 0.1.36
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.
Potentially problematic release.
This version of @ms-atlas-module/datastudio-datafactory might be problematic. Click here for more details.
- package/_generated/ClientResources.js +1549 -0
- package/_generated/Framework.js +97 -0
- package/_generated/Svg.js +201 -0
- package/bootstrapper/BreadcrumbsKnockoutBinding.js +25 -0
- package/bootstrapper/CSS/Callout.css +43 -0
- package/bootstrapper/CSS/Common.css +22 -0
- package/bootstrapper/CSS/FormFields.css +133 -0
- package/bootstrapper/CSS/InlineBlock.css +34 -0
- package/bootstrapper/CSS/ParameterGroups.css +77 -0
- package/bootstrapper/CSS/Pivot.css +25 -0
- package/bootstrapper/CSS/Wizard.css +197 -0
- package/bootstrapper/CalloutBinding.js +52 -0
- package/bootstrapper/CollapsibleKnockoutBinding.js +70 -0
- package/bootstrapper/CopyBinding.js +150 -0
- package/bootstrapper/FilterFlyoutKnockoutBinding.js +114 -0
- package/bootstrapper/FormFields.js +397 -0
- package/bootstrapper/InlineBlockBinding.js +69 -0
- package/bootstrapper/JQueryUIBindings.js +152 -0
- package/bootstrapper/KnockoutBindings.js +635 -0
- package/bootstrapper/LoadingBinding.js +54 -0
- package/bootstrapper/MonacoEditorKnockoutBinding.js +67 -0
- package/bootstrapper/ParameterGroupsBinding.js +289 -0
- package/bootstrapper/PivotKnockoutBinding.js +61 -0
- package/bootstrapper/StatusCalendarFlyoutKnockoutBinding.js +398 -0
- package/bootstrapper/StatusCalendarKnockoutBinding.js +107 -0
- package/bootstrapper/TelemetryKnockoutBinding.js +68 -0
- package/bootstrapper/WinJSButtonKnockoutBinding.js +72 -0
- package/bootstrapper/WinJSKnockoutBindings.js +49 -0
- package/bootstrapper/WizardBinding.js +611 -0
- package/bootstrapper/startup.js +29 -0
- package/libs/VivaGraphControl/Content/CSS/Graph.css +157 -0
- package/libs/VivaGraphControl/Content/CSS/LightTheme.css +699 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Base/Base.TriggerableLifetimeManager.js +190 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Base/Base.js +647 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Base/Image.js +113 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Base/KnockoutExtensions.js +1064 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/DockedBalloon.js +18 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/Animation.js +192 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/Commands/MoveNodes.js +83 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/Geometry.js +167 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphEntityViewModel.js +260 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphViewModel.js +338 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphWidget.Constants.js +178 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphWidget.js +5190 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/MouseCapture.js +148 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/SvgUtils.js +164 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Detection.js +658 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Resize.js +241 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Util.Private.js +236 -0
- package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Util.js +905 -0
- package/libs/WinJS/WinJs.min.js +61909 -0
- package/libs/WinJS/ui-light.css +8500 -0
- package/package.json +15 -0
- package/scripts/AppContext.js +262 -0
- package/scripts/ExposureControl.js +11 -0
- package/scripts/Framework/Model/ActivityWindowCache.js +390 -0
- package/scripts/Framework/Model/ArmDataFactoryCache.js +77 -0
- package/scripts/Framework/Model/Contracts/Activity.js +83 -0
- package/scripts/Framework/Model/Contracts/ActivityWindow.js +185 -0
- package/scripts/Framework/Model/Contracts/BaseEncodable.js +106 -0
- package/scripts/Framework/Model/Contracts/Common.js +19 -0
- package/scripts/Framework/Model/Contracts/DataArtifact.js +100 -0
- package/scripts/Framework/Model/Contracts/Diagram.js +9 -0
- package/scripts/Framework/Model/Contracts/Encodable.js +113 -0
- package/scripts/Framework/Model/Contracts/Gateway.js +98 -0
- package/scripts/Framework/Model/Contracts/LinkedService.js +200 -0
- package/scripts/Framework/Model/Contracts/Pipeline.js +197 -0
- package/scripts/Framework/Model/DataCache.js +105 -0
- package/scripts/Framework/Model/DataFactoryCache.js +24 -0
- package/scripts/Framework/Model/Filter.js +186 -0
- package/scripts/Framework/Model/Helpers/ActivityWindowHelper.js +185 -0
- package/scripts/Framework/Model/MonitoringView.js +40 -0
- package/scripts/Framework/Shared/Constants.js +27 -0
- package/scripts/Framework/Shared/DataConstants.js +61 -0
- package/scripts/Framework/Shared/Disposable.js +53 -0
- package/scripts/Framework/Shared/IconResources.js +59 -0
- package/scripts/Framework/Shared/Resources/IbizaSvgs.js +241 -0
- package/scripts/Framework/Shared/TypeDeclarations.js +4 -0
- package/scripts/Framework/Telemetry/Telemetry.js +78 -0
- package/scripts/Framework/UI/Breadcrumbs.js +84 -0
- package/scripts/Framework/UI/Command.js +231 -0
- package/scripts/Framework/UI/ContextMenu.js +80 -0
- package/scripts/Framework/UI/Loader.js +11 -0
- package/scripts/Framework/UI/Menu.js +65 -0
- package/scripts/Framework/UI/PanelMessage.js +25 -0
- package/scripts/Framework/UI/Refresh.js +70 -0
- package/scripts/Framework/UI/Spinner.js +61 -0
- package/scripts/Framework/UI/StatusCalendar.js +1070 -0
- package/scripts/Framework/UI/Toolbar.js +84 -0
- package/scripts/Framework/Util/Datetime.js +258 -0
- package/scripts/Framework/Util/Log.js +10 -0
- package/scripts/Framework/Util/ResourceIdUtil.js +56 -0
- package/scripts/Framework/Util/Security.js +73 -0
- package/scripts/Framework/Util/Util.js +332 -0
- package/scripts/Framework/Views/HoverFlyout.js +92 -0
- package/scripts/Handlers/ErrorHandler.js +176 -0
- package/scripts/Handlers/MessageHandler.js +115 -0
- package/scripts/Handlers/MonitoringViewHandler.js +199 -0
- package/scripts/Handlers/RoutingHandler.js +364 -0
- package/scripts/Handlers/WinJSHandlers.js +265 -0
- package/scripts/MonitoringViewContext.js +75 -0
- package/scripts/Services/AzureInsightsService.js +162 -0
- package/scripts/Services/AzureResourceManagerService.js +869 -0
- package/scripts/Services/BaseService.js +232 -0
- package/scripts/Services/DataFactoryService.js +204 -0
- package/scripts/Services/HDInsightArmService.js +59 -0
- package/scripts/ViewContext.js +9 -0
- package/stylesheets/main.css +1042 -0
- package/views/Edit/DateTimeFilterViewModel.js +211 -0
- package/views/Edit/FilterViewModel.js +131 -0
- package/views/Shared/ProvisioningState.js +11 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var __extends =
|
|
2
|
+
(this && this.__extends) ||
|
|
3
|
+
function (d, b) {
|
|
4
|
+
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
5
|
+
function __() {
|
|
6
|
+
this.constructor = d;
|
|
7
|
+
}
|
|
8
|
+
d.prototype =
|
|
9
|
+
b === null ? Object.create(b) : ((__.prototype = b.prototype), new __());
|
|
10
|
+
};
|
|
11
|
+
define(["require", "exports", "./BaseEncodable"], function (
|
|
12
|
+
require,
|
|
13
|
+
exports,
|
|
14
|
+
BaseEncodable
|
|
15
|
+
) {
|
|
16
|
+
"use strict";
|
|
17
|
+
var Encodable = (function (_super) {
|
|
18
|
+
__extends(Encodable, _super);
|
|
19
|
+
function Encodable(name) {
|
|
20
|
+
_super.call(
|
|
21
|
+
this,
|
|
22
|
+
BaseEncodable.EncodableType.GATEWAY,
|
|
23
|
+
name.toUpperCase()
|
|
24
|
+
);
|
|
25
|
+
this.name = name;
|
|
26
|
+
}
|
|
27
|
+
return Encodable;
|
|
28
|
+
})(BaseEncodable.BaseEncodable);
|
|
29
|
+
exports.Encodable = Encodable;
|
|
30
|
+
(function (GatewayStatus) {
|
|
31
|
+
GatewayStatus[(GatewayStatus["Online"] = 0)] = "Online";
|
|
32
|
+
GatewayStatus[(GatewayStatus["NeedRegistration"] = 1)] = "NeedRegistration";
|
|
33
|
+
GatewayStatus[(GatewayStatus["Offline"] = 2)] = "Offline";
|
|
34
|
+
GatewayStatus[(GatewayStatus["Upgrading"] = 3)] = "Upgrading";
|
|
35
|
+
GatewayStatus[(GatewayStatus["Other"] = 4)] = "Other";
|
|
36
|
+
})(exports.GatewayStatus || (exports.GatewayStatus = {}));
|
|
37
|
+
var GatewayStatus = exports.GatewayStatus;
|
|
38
|
+
(function (GatewayVersionStatus) {
|
|
39
|
+
GatewayVersionStatus[(GatewayVersionStatus["None"] = 0)] = "None";
|
|
40
|
+
GatewayVersionStatus[(GatewayVersionStatus["UpToDate"] = 1)] = "UpToDate";
|
|
41
|
+
GatewayVersionStatus[(GatewayVersionStatus["NewVersionAvailable"] = 2)] =
|
|
42
|
+
"NewVersionAvailable";
|
|
43
|
+
GatewayVersionStatus[(GatewayVersionStatus["Expiring"] = 3)] = "Expiring";
|
|
44
|
+
GatewayVersionStatus[(GatewayVersionStatus["Expired"] = 4)] = "Expired";
|
|
45
|
+
GatewayVersionStatus[(GatewayVersionStatus["Other"] = 5)] = "Other";
|
|
46
|
+
})(exports.GatewayVersionStatus || (exports.GatewayVersionStatus = {}));
|
|
47
|
+
var GatewayVersionStatus = exports.GatewayVersionStatus;
|
|
48
|
+
var GatewayDataHelper = (function () {
|
|
49
|
+
function GatewayDataHelper() {}
|
|
50
|
+
GatewayDataHelper.parseStatus = function (statusString) {
|
|
51
|
+
if (statusString.toLowerCase() === "online") {
|
|
52
|
+
return GatewayStatus.Online;
|
|
53
|
+
}
|
|
54
|
+
if (statusString.toLowerCase() === "needregistration") {
|
|
55
|
+
return GatewayStatus.NeedRegistration;
|
|
56
|
+
}
|
|
57
|
+
if (statusString.toLowerCase() === "offline") {
|
|
58
|
+
return GatewayStatus.Offline;
|
|
59
|
+
}
|
|
60
|
+
return GatewayStatus.Other;
|
|
61
|
+
};
|
|
62
|
+
GatewayDataHelper.parseVersionStatus = function (statusString) {
|
|
63
|
+
if (statusString.toLowerCase() === "none") {
|
|
64
|
+
return GatewayVersionStatus.None;
|
|
65
|
+
}
|
|
66
|
+
if (statusString.toLowerCase() === "uptodate") {
|
|
67
|
+
return GatewayVersionStatus.UpToDate;
|
|
68
|
+
}
|
|
69
|
+
if (statusString.toLowerCase() === "newversionavailable") {
|
|
70
|
+
return GatewayVersionStatus.NewVersionAvailable;
|
|
71
|
+
}
|
|
72
|
+
if (statusString.toLowerCase() === "expiring") {
|
|
73
|
+
return GatewayVersionStatus.Expiring;
|
|
74
|
+
}
|
|
75
|
+
if (statusString.toLowerCase() === "expired") {
|
|
76
|
+
return GatewayVersionStatus.Expired;
|
|
77
|
+
}
|
|
78
|
+
return GatewayVersionStatus.Other;
|
|
79
|
+
};
|
|
80
|
+
GatewayDataHelper.needUpdate = function (gateway) {
|
|
81
|
+
var gatewayStatus = GatewayDataHelper.parseVersionStatus(
|
|
82
|
+
gateway.properties().versionStatus()
|
|
83
|
+
);
|
|
84
|
+
if (
|
|
85
|
+
gatewayStatus === GatewayVersionStatus.Expired ||
|
|
86
|
+
gatewayStatus === GatewayVersionStatus.Expiring ||
|
|
87
|
+
gatewayStatus === GatewayVersionStatus.NewVersionAvailable
|
|
88
|
+
) {
|
|
89
|
+
return true;
|
|
90
|
+
} else {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
return GatewayDataHelper;
|
|
95
|
+
})();
|
|
96
|
+
exports.GatewayDataHelper = GatewayDataHelper;
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=Gateway.js.map
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
var __extends =
|
|
2
|
+
(this && this.__extends) ||
|
|
3
|
+
function (d, b) {
|
|
4
|
+
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
5
|
+
function __() {
|
|
6
|
+
this.constructor = d;
|
|
7
|
+
}
|
|
8
|
+
d.prototype =
|
|
9
|
+
b === null ? Object.create(b) : ((__.prototype = b.prototype), new __());
|
|
10
|
+
};
|
|
11
|
+
define(["require", "exports", "./BaseEncodable"], function (
|
|
12
|
+
require,
|
|
13
|
+
exports,
|
|
14
|
+
BaseEncodable
|
|
15
|
+
) {
|
|
16
|
+
"use strict";
|
|
17
|
+
var DefaultValues = (function () {
|
|
18
|
+
function DefaultValues() {}
|
|
19
|
+
DefaultValues.hdInsightOnDemand = {
|
|
20
|
+
timeToLive: "02:00:00",
|
|
21
|
+
};
|
|
22
|
+
return DefaultValues;
|
|
23
|
+
})();
|
|
24
|
+
exports.DefaultValues = DefaultValues;
|
|
25
|
+
var LinkedServiceType = (function () {
|
|
26
|
+
function LinkedServiceType() {}
|
|
27
|
+
LinkedServiceType.hdInsight = "hdinsight";
|
|
28
|
+
LinkedServiceType.hdInsightOnDemand = "hdinsightondemand";
|
|
29
|
+
LinkedServiceType.azureML = "azureml";
|
|
30
|
+
LinkedServiceType.azureSqlDatabase = "azuresqldatabase";
|
|
31
|
+
LinkedServiceType.azureSqlDW = "azuresqldw";
|
|
32
|
+
LinkedServiceType.onPremisesSqlServer = "onpremisessqlserver";
|
|
33
|
+
return LinkedServiceType;
|
|
34
|
+
})();
|
|
35
|
+
exports.LinkedServiceType = LinkedServiceType;
|
|
36
|
+
exports.linkedServiceTypeToResourceMap = {};
|
|
37
|
+
exports.linkedServiceTypeToResourceMap[LinkedServiceType.hdInsight] =
|
|
38
|
+
ClientResources.hDInsightLabel;
|
|
39
|
+
exports.linkedServiceTypeToResourceMap[LinkedServiceType.hdInsightOnDemand] =
|
|
40
|
+
ClientResources.onDemandHDInsightLabel;
|
|
41
|
+
exports.linkedServiceTypeToResourceMap[LinkedServiceType.azureML] =
|
|
42
|
+
ClientResources.DataStoreTypeAzureML;
|
|
43
|
+
exports.linkedServiceTypeToResourceMap[LinkedServiceType.azureSqlDatabase] =
|
|
44
|
+
ClientResources.DataStoreTypeSqlAzure;
|
|
45
|
+
exports.linkedServiceTypeToResourceMap[LinkedServiceType.azureSqlDW] =
|
|
46
|
+
ClientResources.azureSqlDataWarehouseLabel;
|
|
47
|
+
exports.linkedServiceTypeToResourceMap[
|
|
48
|
+
LinkedServiceType.onPremisesSqlServer
|
|
49
|
+
] = ClientResources.onPremisesSqlServerLabel;
|
|
50
|
+
var Encodable = (function (_super) {
|
|
51
|
+
__extends(Encodable, _super);
|
|
52
|
+
function Encodable(name) {
|
|
53
|
+
_super.call(
|
|
54
|
+
this,
|
|
55
|
+
BaseEncodable.EncodableType.LINKED_SERVICE,
|
|
56
|
+
name.toUpperCase()
|
|
57
|
+
);
|
|
58
|
+
this.entities = new BaseEncodable.EncodableSet();
|
|
59
|
+
this.name = name;
|
|
60
|
+
}
|
|
61
|
+
return Encodable;
|
|
62
|
+
})(BaseEncodable.BaseEncodable);
|
|
63
|
+
exports.Encodable = Encodable;
|
|
64
|
+
var Type;
|
|
65
|
+
(function (Type) {
|
|
66
|
+
Type.AzureStorage = "AzureStorage";
|
|
67
|
+
})((Type = exports.Type || (exports.Type = {})));
|
|
68
|
+
var DataStoreType = (function () {
|
|
69
|
+
function DataStoreType() {}
|
|
70
|
+
DataStoreType.getDataStoreTypeByName = function (name) {
|
|
71
|
+
var found = undefined;
|
|
72
|
+
$.each(DataStoreType.allDataStoreTypes, function (index, value) {
|
|
73
|
+
if (value.name === name) {
|
|
74
|
+
found = value;
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return found;
|
|
79
|
+
};
|
|
80
|
+
DataStoreType.storageAccountAsset = {
|
|
81
|
+
name: "AzureStorageLinkedService",
|
|
82
|
+
localizedName: ClientResources.DataStoreTypeStorageAccount,
|
|
83
|
+
};
|
|
84
|
+
DataStoreType.sqlAzureAsset = {
|
|
85
|
+
name: "AzureSqlLinkedService",
|
|
86
|
+
localizedName: ClientResources.DataStoreTypeSqlAzure,
|
|
87
|
+
};
|
|
88
|
+
DataStoreType.sqlServerAsset = {
|
|
89
|
+
name: "OnPremisesSqlLinkedService",
|
|
90
|
+
localizedName: ClientResources.DataStoreTypeSqlServer,
|
|
91
|
+
};
|
|
92
|
+
DataStoreType.fileAsset = {
|
|
93
|
+
name: "OnPremisesFileSystemLinkedService",
|
|
94
|
+
localizedName: ClientResources.DataStoreTypeFileSystem,
|
|
95
|
+
};
|
|
96
|
+
DataStoreType.hdInsightAsset = {
|
|
97
|
+
name: "HDInsightBYOCLinkedService",
|
|
98
|
+
localizedName: ClientResources.DataStoreTypeHDInsight,
|
|
99
|
+
};
|
|
100
|
+
DataStoreType.onDemandHDInsightAsset = {
|
|
101
|
+
name: "HDInsightOnDemandLinkedService",
|
|
102
|
+
localizedName: ClientResources.DataStoreTypeHDInsight,
|
|
103
|
+
};
|
|
104
|
+
DataStoreType.azureMlAsset = {
|
|
105
|
+
name: "AzureMLLinkedService",
|
|
106
|
+
localizedName: ClientResources.DataStoreTypeAzureML,
|
|
107
|
+
};
|
|
108
|
+
DataStoreType.oracleAsset = {
|
|
109
|
+
name: "OnPremisesOracleLinkedService",
|
|
110
|
+
localizedName: ClientResources.DataStoreTypeOracle,
|
|
111
|
+
};
|
|
112
|
+
DataStoreType.postgreSqlAsset = {
|
|
113
|
+
name: "OnPremisesPostgreSqlLinkedService",
|
|
114
|
+
localizedName: ClientResources.onPremisesPostgreSqlLinkedService,
|
|
115
|
+
};
|
|
116
|
+
DataStoreType.mySqlAsset = {
|
|
117
|
+
name: "OnPremisesMySqlLinkedService",
|
|
118
|
+
localizedName: ClientResources.onPremisesMySqlLinkedService,
|
|
119
|
+
};
|
|
120
|
+
DataStoreType.teradataAsset = {
|
|
121
|
+
name: "OnPremisesTeradataLinkedService",
|
|
122
|
+
localizedName: ClientResources.onPremisesTeradataLinkedService,
|
|
123
|
+
};
|
|
124
|
+
DataStoreType.db2Asset = {
|
|
125
|
+
name: "OnPremisesDb2LinkedService",
|
|
126
|
+
localizedName: ClientResources.onPremisesDb2LinkedService,
|
|
127
|
+
};
|
|
128
|
+
DataStoreType.sybaseAsset = {
|
|
129
|
+
name: "OnPremisesSybaseLinkedService",
|
|
130
|
+
localizedName: ClientResources.onPremisesSybaseLinkedService,
|
|
131
|
+
};
|
|
132
|
+
DataStoreType.dynamicsAXAsset = {
|
|
133
|
+
name: "DynamicsAXService",
|
|
134
|
+
localizedName: ClientResources.DataStoreTypeDynamicsAX,
|
|
135
|
+
};
|
|
136
|
+
DataStoreType.salesforceAsset = {
|
|
137
|
+
name: "SalesforceService",
|
|
138
|
+
localizedName: ClientResources.DataStoreTypeSalesforce,
|
|
139
|
+
};
|
|
140
|
+
DataStoreType.mdsAsset = {
|
|
141
|
+
name: "MdsLinkedService",
|
|
142
|
+
localizedName: ClientResources.DataStoreTypeMds,
|
|
143
|
+
};
|
|
144
|
+
DataStoreType.azureSearchIndexAsset = {
|
|
145
|
+
name: "AzureSearchIndexLinkedService",
|
|
146
|
+
localizedName: ClientResources.DataStoreTypeAzureSearchIndex,
|
|
147
|
+
};
|
|
148
|
+
DataStoreType.azureServiceBusAsset = {
|
|
149
|
+
name: "AzureServiceBusLinkedService",
|
|
150
|
+
localizedName: ClientResources.DataStoreTypeServiceBus,
|
|
151
|
+
};
|
|
152
|
+
DataStoreType.customAsset = {
|
|
153
|
+
name: "CustomLinkedService",
|
|
154
|
+
localizedName: ClientResources.DataStoreTypeCustom,
|
|
155
|
+
};
|
|
156
|
+
DataStoreType.allAvailableDataStoreTypes = [
|
|
157
|
+
DataStoreType.storageAccountAsset,
|
|
158
|
+
DataStoreType.sqlAzureAsset,
|
|
159
|
+
DataStoreType.sqlServerAsset,
|
|
160
|
+
DataStoreType.fileAsset,
|
|
161
|
+
DataStoreType.oracleAsset,
|
|
162
|
+
DataStoreType.postgreSqlAsset,
|
|
163
|
+
DataStoreType.mySqlAsset,
|
|
164
|
+
DataStoreType.teradataAsset,
|
|
165
|
+
DataStoreType.db2Asset,
|
|
166
|
+
DataStoreType.sybaseAsset,
|
|
167
|
+
];
|
|
168
|
+
DataStoreType.allComputeTypes = [
|
|
169
|
+
DataStoreType.hdInsightAsset,
|
|
170
|
+
DataStoreType.onDemandHDInsightAsset,
|
|
171
|
+
DataStoreType.azureMlAsset,
|
|
172
|
+
DataStoreType.azureServiceBusAsset,
|
|
173
|
+
DataStoreType.customAsset,
|
|
174
|
+
];
|
|
175
|
+
DataStoreType.allDataStoreTypes = [
|
|
176
|
+
DataStoreType.storageAccountAsset,
|
|
177
|
+
DataStoreType.sqlAzureAsset,
|
|
178
|
+
DataStoreType.sqlServerAsset,
|
|
179
|
+
DataStoreType.fileAsset,
|
|
180
|
+
DataStoreType.hdInsightAsset,
|
|
181
|
+
DataStoreType.onDemandHDInsightAsset,
|
|
182
|
+
DataStoreType.azureMlAsset,
|
|
183
|
+
DataStoreType.oracleAsset,
|
|
184
|
+
DataStoreType.postgreSqlAsset,
|
|
185
|
+
DataStoreType.mySqlAsset,
|
|
186
|
+
DataStoreType.teradataAsset,
|
|
187
|
+
DataStoreType.db2Asset,
|
|
188
|
+
DataStoreType.sybaseAsset,
|
|
189
|
+
DataStoreType.dynamicsAXAsset,
|
|
190
|
+
DataStoreType.salesforceAsset,
|
|
191
|
+
DataStoreType.mdsAsset,
|
|
192
|
+
DataStoreType.azureSearchIndexAsset,
|
|
193
|
+
DataStoreType.azureServiceBusAsset,
|
|
194
|
+
DataStoreType.customAsset,
|
|
195
|
+
];
|
|
196
|
+
return DataStoreType;
|
|
197
|
+
})();
|
|
198
|
+
exports.DataStoreType = DataStoreType;
|
|
199
|
+
});
|
|
200
|
+
//# sourceMappingURL=LinkedService.js.map
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
var __extends =
|
|
2
|
+
(this && this.__extends) ||
|
|
3
|
+
function (d, b) {
|
|
4
|
+
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
5
|
+
function __() {
|
|
6
|
+
this.constructor = d;
|
|
7
|
+
}
|
|
8
|
+
d.prototype =
|
|
9
|
+
b === null ? Object.create(b) : ((__.prototype = b.prototype), new __());
|
|
10
|
+
};
|
|
11
|
+
define(["require", "exports", "./BaseEncodable", "./Common"], function (
|
|
12
|
+
require,
|
|
13
|
+
exports,
|
|
14
|
+
BaseEncodable,
|
|
15
|
+
Common
|
|
16
|
+
) {
|
|
17
|
+
"use strict";
|
|
18
|
+
function getPipelineKey(pipelineName) {
|
|
19
|
+
return "P" + pipelineName.toUpperCase();
|
|
20
|
+
}
|
|
21
|
+
exports.getPipelineKey = getPipelineKey;
|
|
22
|
+
var Encodable = (function (_super) {
|
|
23
|
+
__extends(Encodable, _super);
|
|
24
|
+
function Encodable(name) {
|
|
25
|
+
_super.call(
|
|
26
|
+
this,
|
|
27
|
+
BaseEncodable.EncodableType.PIPELINE,
|
|
28
|
+
name.toUpperCase()
|
|
29
|
+
);
|
|
30
|
+
this.name = name;
|
|
31
|
+
}
|
|
32
|
+
Encodable.prototype.getLegacyKey = function () {
|
|
33
|
+
return getPipelineKey(this.name);
|
|
34
|
+
};
|
|
35
|
+
return Encodable;
|
|
36
|
+
})(BaseEncodable.BaseEncodable);
|
|
37
|
+
exports.Encodable = Encodable;
|
|
38
|
+
var PipelineType;
|
|
39
|
+
(function (PipelineType) {
|
|
40
|
+
PipelineType.Default = "Default";
|
|
41
|
+
PipelineType.SSIS = "SSISPipeline";
|
|
42
|
+
})((PipelineType = exports.PipelineType || (exports.PipelineType = {})));
|
|
43
|
+
var PipelineSchedulerExecutionStyle;
|
|
44
|
+
(function (PipelineSchedulerExecutionStyle) {
|
|
45
|
+
PipelineSchedulerExecutionStyle.StartOfInterval = "StartOfInterval";
|
|
46
|
+
PipelineSchedulerExecutionStyle.EndOfInterval = "EndOfInterval";
|
|
47
|
+
})(
|
|
48
|
+
(PipelineSchedulerExecutionStyle =
|
|
49
|
+
exports.PipelineSchedulerExecutionStyle ||
|
|
50
|
+
(exports.PipelineSchedulerExecutionStyle = {}))
|
|
51
|
+
);
|
|
52
|
+
(function (OneTimePipelineFilterState) {
|
|
53
|
+
OneTimePipelineFilterState[(OneTimePipelineFilterState["Loaded"] = 0)] =
|
|
54
|
+
"Loaded";
|
|
55
|
+
OneTimePipelineFilterState[(OneTimePipelineFilterState["Evaluating"] = 1)] =
|
|
56
|
+
"Evaluating";
|
|
57
|
+
OneTimePipelineFilterState[(OneTimePipelineFilterState["None"] = 2)] =
|
|
58
|
+
"None";
|
|
59
|
+
})(
|
|
60
|
+
exports.OneTimePipelineFilterState ||
|
|
61
|
+
(exports.OneTimePipelineFilterState = {})
|
|
62
|
+
);
|
|
63
|
+
var OneTimePipelineFilterState = exports.OneTimePipelineFilterState;
|
|
64
|
+
var PipelineStatusName;
|
|
65
|
+
(function (PipelineStatusName) {
|
|
66
|
+
PipelineStatusName.paused = "paused";
|
|
67
|
+
PipelineStatusName.active = "active";
|
|
68
|
+
PipelineStatusName.idle = "idle";
|
|
69
|
+
PipelineStatusName.failed = "failed";
|
|
70
|
+
})(
|
|
71
|
+
(PipelineStatusName =
|
|
72
|
+
exports.PipelineStatusName || (exports.PipelineStatusName = {}))
|
|
73
|
+
);
|
|
74
|
+
exports.PipelineStatusDisplayName = {};
|
|
75
|
+
exports.PipelineStatusDisplayName[PipelineStatusName.paused] =
|
|
76
|
+
ClientResources.pausedPipelineStatusText;
|
|
77
|
+
exports.PipelineStatusDisplayName[PipelineStatusName.active] =
|
|
78
|
+
ClientResources.activePipelineStatusText;
|
|
79
|
+
exports.PipelineStatusDisplayName[PipelineStatusName.idle] =
|
|
80
|
+
ClientResources.idlePipelineStatusText;
|
|
81
|
+
exports.PipelineStatusDisplayName[PipelineStatusName.failed] =
|
|
82
|
+
ClientResources.failedProvisioningStatusText;
|
|
83
|
+
function getPipelineStatus(provisioningState, isPaused) {
|
|
84
|
+
if (
|
|
85
|
+
provisioningState === Common.ProvisioningState.Failed ||
|
|
86
|
+
provisioningState === Common.ProvisioningState.Disabled
|
|
87
|
+
) {
|
|
88
|
+
return PipelineStatusName.failed;
|
|
89
|
+
}
|
|
90
|
+
if (isPaused) {
|
|
91
|
+
return PipelineStatusName.paused;
|
|
92
|
+
}
|
|
93
|
+
return PipelineStatusName.active;
|
|
94
|
+
}
|
|
95
|
+
exports.getPipelineStatus = getPipelineStatus;
|
|
96
|
+
function getNextScheduledWindowTime(pipeline, currentDate) {
|
|
97
|
+
var activities = pipeline.properties().activities;
|
|
98
|
+
if (
|
|
99
|
+
!activities ||
|
|
100
|
+
getPipelineStatus(
|
|
101
|
+
pipeline.properties().provisioningState(),
|
|
102
|
+
pipeline.properties().isPaused()
|
|
103
|
+
) !== PipelineStatusName.active ||
|
|
104
|
+
!pipeline.properties().start ||
|
|
105
|
+
!pipeline.properties().end
|
|
106
|
+
) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
var startDate = new Date(pipeline.properties().start());
|
|
110
|
+
var endDate = new Date(pipeline.properties().end());
|
|
111
|
+
var activityDates = [];
|
|
112
|
+
activities()
|
|
113
|
+
.filter(function (activity) {
|
|
114
|
+
return activity.scheduler != null;
|
|
115
|
+
})
|
|
116
|
+
.forEach(function (activity) {
|
|
117
|
+
var scheduler = activity.scheduler();
|
|
118
|
+
var offset = moment.duration(0);
|
|
119
|
+
if (scheduler.offset) {
|
|
120
|
+
offset = moment.duration(scheduler.offset());
|
|
121
|
+
}
|
|
122
|
+
var tmoment = null;
|
|
123
|
+
tmoment = moment.utc(startDate);
|
|
124
|
+
tmoment.subtract(offset);
|
|
125
|
+
tmoment.startOf(scheduler.frequency());
|
|
126
|
+
tmoment.add(offset);
|
|
127
|
+
if (tmoment.valueOf() > startDate.getTime()) {
|
|
128
|
+
tmoment.subtract(scheduler.interval(), scheduler.frequency());
|
|
129
|
+
}
|
|
130
|
+
if (
|
|
131
|
+
!(
|
|
132
|
+
scheduler.style &&
|
|
133
|
+
scheduler.style() ===
|
|
134
|
+
PipelineSchedulerExecutionStyle.StartOfInterval
|
|
135
|
+
)
|
|
136
|
+
) {
|
|
137
|
+
tmoment.add(scheduler.interval(), scheduler.frequency());
|
|
138
|
+
}
|
|
139
|
+
var nextExecutionDate = upperBoundDate(
|
|
140
|
+
tmoment.toDate(),
|
|
141
|
+
currentDate,
|
|
142
|
+
scheduler.frequency(),
|
|
143
|
+
scheduler.interval()
|
|
144
|
+
);
|
|
145
|
+
if (nextExecutionDate.getTime() < currentDate.getTime()) {
|
|
146
|
+
nextExecutionDate = moment(nextExecutionDate)
|
|
147
|
+
.add(scheduler.interval(), scheduler.frequency())
|
|
148
|
+
.toDate();
|
|
149
|
+
}
|
|
150
|
+
if (
|
|
151
|
+
startDate.getTime() <= nextExecutionDate.getTime() &&
|
|
152
|
+
nextExecutionDate.getTime() < endDate.getTime()
|
|
153
|
+
) {
|
|
154
|
+
activityDates.push(nextExecutionDate);
|
|
155
|
+
} else {
|
|
156
|
+
activityDates.push(null);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
var nextScheduledExecution = activityDates.reduce(function (
|
|
160
|
+
prevDate,
|
|
161
|
+
curDate
|
|
162
|
+
) {
|
|
163
|
+
if (prevDate === null) {
|
|
164
|
+
return curDate;
|
|
165
|
+
}
|
|
166
|
+
if (curDate === null) {
|
|
167
|
+
return prevDate;
|
|
168
|
+
}
|
|
169
|
+
return prevDate.getTime() < curDate.getTime() ? prevDate : curDate;
|
|
170
|
+
});
|
|
171
|
+
return nextScheduledExecution;
|
|
172
|
+
}
|
|
173
|
+
exports.getNextScheduledWindowTime = getNextScheduledWindowTime;
|
|
174
|
+
function upperBoundDate(curDate, upperBound, frequency, interval) {
|
|
175
|
+
var curMoment = moment.utc(curDate),
|
|
176
|
+
upperBoundMillis = upperBound.getTime(),
|
|
177
|
+
bestUpperBound = curDate.getTime();
|
|
178
|
+
var start = -100000,
|
|
179
|
+
end = 100000,
|
|
180
|
+
mid = 0;
|
|
181
|
+
while (start <= end) {
|
|
182
|
+
mid = Math.floor((start + end) / 2);
|
|
183
|
+
var tempMoment = curMoment
|
|
184
|
+
.clone()
|
|
185
|
+
.add(mid * interval, frequency)
|
|
186
|
+
.valueOf();
|
|
187
|
+
if (tempMoment <= upperBoundMillis) {
|
|
188
|
+
bestUpperBound = tempMoment;
|
|
189
|
+
start = mid + 1;
|
|
190
|
+
} else {
|
|
191
|
+
end = mid - 1;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return new Date(bestUpperBound);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
//# sourceMappingURL=Pipeline.js.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
define(["require", "exports", "../Util/Util"], function (
|
|
2
|
+
require,
|
|
3
|
+
exports,
|
|
4
|
+
Util
|
|
5
|
+
) {
|
|
6
|
+
"use strict";
|
|
7
|
+
var DataCache = (function () {
|
|
8
|
+
function DataCache(params) {
|
|
9
|
+
this._params = null;
|
|
10
|
+
this._params = params;
|
|
11
|
+
}
|
|
12
|
+
DataCache.prototype.fetch = function () {
|
|
13
|
+
var _this = this;
|
|
14
|
+
var args = [];
|
|
15
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16
|
+
args[_i - 0] = arguments[_i];
|
|
17
|
+
}
|
|
18
|
+
var deferred = Q.defer();
|
|
19
|
+
var promise = null;
|
|
20
|
+
if (this._params.serviceMethod) {
|
|
21
|
+
promise = this._params.serviceMethod.apply(
|
|
22
|
+
this._params.serviceObject,
|
|
23
|
+
args
|
|
24
|
+
);
|
|
25
|
+
} else {
|
|
26
|
+
var requestParams = JSON.parse(
|
|
27
|
+
JSON.stringify(this._params.requestParams)
|
|
28
|
+
);
|
|
29
|
+
requestParams.data = args[0];
|
|
30
|
+
promise = this._params.serviceObject.ajax(requestParams);
|
|
31
|
+
}
|
|
32
|
+
promise.then(
|
|
33
|
+
function (responseData) {
|
|
34
|
+
var data = responseData;
|
|
35
|
+
if (_this._params.processServerResponse) {
|
|
36
|
+
data = _this._params.processServerResponse(responseData);
|
|
37
|
+
}
|
|
38
|
+
deferred.resolve(data);
|
|
39
|
+
},
|
|
40
|
+
function (reason) {
|
|
41
|
+
deferred.reject(reason);
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
return deferred.promise;
|
|
45
|
+
};
|
|
46
|
+
DataCache.prototype.createView = function (cache) {
|
|
47
|
+
if (cache === void 0) {
|
|
48
|
+
cache = false;
|
|
49
|
+
}
|
|
50
|
+
if (!this.view) {
|
|
51
|
+
this.view = new DataCacheView(this, cache);
|
|
52
|
+
}
|
|
53
|
+
return this.view;
|
|
54
|
+
};
|
|
55
|
+
return DataCache;
|
|
56
|
+
})();
|
|
57
|
+
exports.DataCache = DataCache;
|
|
58
|
+
var DataCacheView = (function () {
|
|
59
|
+
function DataCacheView(dataCache, cache) {
|
|
60
|
+
if (cache === void 0) {
|
|
61
|
+
cache = false;
|
|
62
|
+
}
|
|
63
|
+
this.items = ko.observable();
|
|
64
|
+
this._dataCache = null;
|
|
65
|
+
this._cache = false;
|
|
66
|
+
this._deferred = null;
|
|
67
|
+
this._time = null;
|
|
68
|
+
this._dataCache = dataCache;
|
|
69
|
+
this._cache = cache;
|
|
70
|
+
}
|
|
71
|
+
DataCacheView.prototype.fetch = function () {
|
|
72
|
+
var _this = this;
|
|
73
|
+
var args = [];
|
|
74
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
75
|
+
args[_i - 0] = arguments[_i];
|
|
76
|
+
}
|
|
77
|
+
if (this._cache && this._deferred) {
|
|
78
|
+
if (
|
|
79
|
+
new Date().getTime() - this._time.getTime() <=
|
|
80
|
+
DataCacheView.timeDelta
|
|
81
|
+
) {
|
|
82
|
+
return this._deferred.promise;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
var deferred = Q.defer();
|
|
86
|
+
this._deferred = deferred;
|
|
87
|
+
this._time = new Date();
|
|
88
|
+
var fetchPromise = this._dataCache.fetch.apply(this._dataCache, args);
|
|
89
|
+
fetchPromise.then(
|
|
90
|
+
function (responseData) {
|
|
91
|
+
_this.items(Util.objectToObservables(responseData)());
|
|
92
|
+
deferred.resolve(_this.items());
|
|
93
|
+
},
|
|
94
|
+
function (reason) {
|
|
95
|
+
deferred.reject(reason);
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
return deferred.promise;
|
|
99
|
+
};
|
|
100
|
+
DataCacheView.timeDelta = 1 * 60 * 1000;
|
|
101
|
+
return DataCacheView;
|
|
102
|
+
})();
|
|
103
|
+
exports.DataCacheView = DataCacheView;
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=DataCache.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
define([
|
|
2
|
+
"require",
|
|
3
|
+
"exports",
|
|
4
|
+
"./DataCache",
|
|
5
|
+
"../Shared/DataConstants",
|
|
6
|
+
], function (require, exports, DataCache, DataConstants) {
|
|
7
|
+
"use strict";
|
|
8
|
+
var DataFactoryCache = (function () {
|
|
9
|
+
function DataFactoryCache(service) {
|
|
10
|
+
this.runLogsCacheObject = null;
|
|
11
|
+
this.runLogsCacheObject = new DataCache.DataCache({
|
|
12
|
+
serviceObject: service,
|
|
13
|
+
requestParams: {
|
|
14
|
+
url: DataConstants.RunLogUri + "/ListRunLogs",
|
|
15
|
+
type: "GET",
|
|
16
|
+
contentType: "application/json",
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return DataFactoryCache;
|
|
21
|
+
})();
|
|
22
|
+
exports.DataFactoryCache = DataFactoryCache;
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=DataFactoryCache.js.map
|