@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.

Files changed (111) hide show
  1. package/_generated/ClientResources.js +1549 -0
  2. package/_generated/Framework.js +97 -0
  3. package/_generated/Svg.js +201 -0
  4. package/bootstrapper/BreadcrumbsKnockoutBinding.js +25 -0
  5. package/bootstrapper/CSS/Callout.css +43 -0
  6. package/bootstrapper/CSS/Common.css +22 -0
  7. package/bootstrapper/CSS/FormFields.css +133 -0
  8. package/bootstrapper/CSS/InlineBlock.css +34 -0
  9. package/bootstrapper/CSS/ParameterGroups.css +77 -0
  10. package/bootstrapper/CSS/Pivot.css +25 -0
  11. package/bootstrapper/CSS/Wizard.css +197 -0
  12. package/bootstrapper/CalloutBinding.js +52 -0
  13. package/bootstrapper/CollapsibleKnockoutBinding.js +70 -0
  14. package/bootstrapper/CopyBinding.js +150 -0
  15. package/bootstrapper/FilterFlyoutKnockoutBinding.js +114 -0
  16. package/bootstrapper/FormFields.js +397 -0
  17. package/bootstrapper/InlineBlockBinding.js +69 -0
  18. package/bootstrapper/JQueryUIBindings.js +152 -0
  19. package/bootstrapper/KnockoutBindings.js +635 -0
  20. package/bootstrapper/LoadingBinding.js +54 -0
  21. package/bootstrapper/MonacoEditorKnockoutBinding.js +67 -0
  22. package/bootstrapper/ParameterGroupsBinding.js +289 -0
  23. package/bootstrapper/PivotKnockoutBinding.js +61 -0
  24. package/bootstrapper/StatusCalendarFlyoutKnockoutBinding.js +398 -0
  25. package/bootstrapper/StatusCalendarKnockoutBinding.js +107 -0
  26. package/bootstrapper/TelemetryKnockoutBinding.js +68 -0
  27. package/bootstrapper/WinJSButtonKnockoutBinding.js +72 -0
  28. package/bootstrapper/WinJSKnockoutBindings.js +49 -0
  29. package/bootstrapper/WizardBinding.js +611 -0
  30. package/bootstrapper/startup.js +29 -0
  31. package/libs/VivaGraphControl/Content/CSS/Graph.css +157 -0
  32. package/libs/VivaGraphControl/Content/CSS/LightTheme.css +699 -0
  33. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Base/Base.TriggerableLifetimeManager.js +190 -0
  34. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Base/Base.js +647 -0
  35. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Base/Image.js +113 -0
  36. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Base/KnockoutExtensions.js +1064 -0
  37. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/DockedBalloon.js +18 -0
  38. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/Animation.js +192 -0
  39. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/Commands/MoveNodes.js +83 -0
  40. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/Geometry.js +167 -0
  41. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphEntityViewModel.js +260 -0
  42. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphViewModel.js +338 -0
  43. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphWidget.Constants.js +178 -0
  44. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/GraphWidget.js +5190 -0
  45. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/MouseCapture.js +148 -0
  46. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Controls/Visualization/Graph/SvgUtils.js +164 -0
  47. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Detection.js +658 -0
  48. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Resize.js +241 -0
  49. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Util.Private.js +236 -0
  50. package/libs/VivaGraphControl/Content/Scripts/Viva.Controls/Util/Util.js +905 -0
  51. package/libs/WinJS/WinJs.min.js +61909 -0
  52. package/libs/WinJS/ui-light.css +8500 -0
  53. package/package.json +15 -0
  54. package/scripts/AppContext.js +262 -0
  55. package/scripts/ExposureControl.js +11 -0
  56. package/scripts/Framework/Model/ActivityWindowCache.js +390 -0
  57. package/scripts/Framework/Model/ArmDataFactoryCache.js +77 -0
  58. package/scripts/Framework/Model/Contracts/Activity.js +83 -0
  59. package/scripts/Framework/Model/Contracts/ActivityWindow.js +185 -0
  60. package/scripts/Framework/Model/Contracts/BaseEncodable.js +106 -0
  61. package/scripts/Framework/Model/Contracts/Common.js +19 -0
  62. package/scripts/Framework/Model/Contracts/DataArtifact.js +100 -0
  63. package/scripts/Framework/Model/Contracts/Diagram.js +9 -0
  64. package/scripts/Framework/Model/Contracts/Encodable.js +113 -0
  65. package/scripts/Framework/Model/Contracts/Gateway.js +98 -0
  66. package/scripts/Framework/Model/Contracts/LinkedService.js +200 -0
  67. package/scripts/Framework/Model/Contracts/Pipeline.js +197 -0
  68. package/scripts/Framework/Model/DataCache.js +105 -0
  69. package/scripts/Framework/Model/DataFactoryCache.js +24 -0
  70. package/scripts/Framework/Model/Filter.js +186 -0
  71. package/scripts/Framework/Model/Helpers/ActivityWindowHelper.js +185 -0
  72. package/scripts/Framework/Model/MonitoringView.js +40 -0
  73. package/scripts/Framework/Shared/Constants.js +27 -0
  74. package/scripts/Framework/Shared/DataConstants.js +61 -0
  75. package/scripts/Framework/Shared/Disposable.js +53 -0
  76. package/scripts/Framework/Shared/IconResources.js +59 -0
  77. package/scripts/Framework/Shared/Resources/IbizaSvgs.js +241 -0
  78. package/scripts/Framework/Shared/TypeDeclarations.js +4 -0
  79. package/scripts/Framework/Telemetry/Telemetry.js +78 -0
  80. package/scripts/Framework/UI/Breadcrumbs.js +84 -0
  81. package/scripts/Framework/UI/Command.js +231 -0
  82. package/scripts/Framework/UI/ContextMenu.js +80 -0
  83. package/scripts/Framework/UI/Loader.js +11 -0
  84. package/scripts/Framework/UI/Menu.js +65 -0
  85. package/scripts/Framework/UI/PanelMessage.js +25 -0
  86. package/scripts/Framework/UI/Refresh.js +70 -0
  87. package/scripts/Framework/UI/Spinner.js +61 -0
  88. package/scripts/Framework/UI/StatusCalendar.js +1070 -0
  89. package/scripts/Framework/UI/Toolbar.js +84 -0
  90. package/scripts/Framework/Util/Datetime.js +258 -0
  91. package/scripts/Framework/Util/Log.js +10 -0
  92. package/scripts/Framework/Util/ResourceIdUtil.js +56 -0
  93. package/scripts/Framework/Util/Security.js +73 -0
  94. package/scripts/Framework/Util/Util.js +332 -0
  95. package/scripts/Framework/Views/HoverFlyout.js +92 -0
  96. package/scripts/Handlers/ErrorHandler.js +176 -0
  97. package/scripts/Handlers/MessageHandler.js +115 -0
  98. package/scripts/Handlers/MonitoringViewHandler.js +199 -0
  99. package/scripts/Handlers/RoutingHandler.js +364 -0
  100. package/scripts/Handlers/WinJSHandlers.js +265 -0
  101. package/scripts/MonitoringViewContext.js +75 -0
  102. package/scripts/Services/AzureInsightsService.js +162 -0
  103. package/scripts/Services/AzureResourceManagerService.js +869 -0
  104. package/scripts/Services/BaseService.js +232 -0
  105. package/scripts/Services/DataFactoryService.js +204 -0
  106. package/scripts/Services/HDInsightArmService.js +59 -0
  107. package/scripts/ViewContext.js +9 -0
  108. package/stylesheets/main.css +1042 -0
  109. package/views/Edit/DateTimeFilterViewModel.js +211 -0
  110. package/views/Edit/FilterViewModel.js +131 -0
  111. package/views/Shared/ProvisioningState.js +11 -0
@@ -0,0 +1,77 @@
1
+ define(["require", "exports", "./DataCache"], function (
2
+ require,
3
+ exports,
4
+ DataCache
5
+ ) {
6
+ "use strict";
7
+ var DataFactoryCache = (function () {
8
+ function DataFactoryCache(service) {
9
+ this.pipelineListCacheObject = null;
10
+ this.tableListCacheObject = null;
11
+ this.runRecordListCacheObject = null;
12
+ this.linkedServiceListCacheObject = null;
13
+ this.gatewayListCacheObject = null;
14
+ this.dataFactoryCacheObject = null;
15
+ this.pipelineCacheObject = null;
16
+ this.tableCacheObject = null;
17
+ this.runRecordCacheObject = null;
18
+ this.linkedServiceCacheObject = null;
19
+ this.gatewayCacheObject = null;
20
+ this.dataSliceCacheObject = null;
21
+ this.pipelineListCacheObject = new DataCache.DataCache({
22
+ serviceObject: service,
23
+ serviceMethod: service.listPipelines,
24
+ });
25
+ this.pipelineCacheObject = new DataCache.DataCache({
26
+ serviceObject: service,
27
+ serviceMethod: service.getPipeline,
28
+ });
29
+ this.dataFactoryCacheObject = new DataCache.DataCache({
30
+ serviceObject: service,
31
+ serviceMethod: service.getDataFactory,
32
+ });
33
+ this.linkedServiceCacheObject = new DataCache.DataCache({
34
+ serviceObject: service,
35
+ serviceMethod: service.getLinkedService,
36
+ });
37
+ this.linkedServiceListCacheObject = new DataCache.DataCache({
38
+ serviceObject: service,
39
+ serviceMethod: service.listLinkedServices,
40
+ });
41
+ this.tableListCacheObject = new DataCache.DataCache({
42
+ serviceObject: service,
43
+ serviceMethod: service.listDatasets,
44
+ });
45
+ this.tableCacheObject = new DataCache.DataCache({
46
+ serviceObject: service,
47
+ serviceMethod: service.getDataset,
48
+ });
49
+ this.dataSliceCacheObject = new DataCache.DataCache({
50
+ serviceObject: service,
51
+ serviceMethod: service.listSlices,
52
+ });
53
+ this.runRecordListCacheObject = new DataCache.DataCache({
54
+ serviceObject: service,
55
+ serviceMethod: service.listRunRecords,
56
+ });
57
+ this.runRecordCacheObject = new DataCache.DataCache({
58
+ serviceObject: service,
59
+ serviceMethod: service.getRunRecord,
60
+ });
61
+ this.gatewayCacheObject = new DataCache.DataCache({
62
+ serviceObject: service,
63
+ serviceMethod: service.getGateway,
64
+ });
65
+ this.gatewayListCacheObject = new DataCache.DataCache({
66
+ serviceObject: service,
67
+ serviceMethod: service.listGateways,
68
+ });
69
+ }
70
+ DataFactoryCache.prototype.stripValue = function (data) {
71
+ return data.value;
72
+ };
73
+ return DataFactoryCache;
74
+ })();
75
+ exports.DataFactoryCache = DataFactoryCache;
76
+ });
77
+ //# sourceMappingURL=ArmDataFactoryCache.js.map
@@ -0,0 +1,83 @@
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.retry = 0;
20
+ DefaultValues.concurrency = 1;
21
+ DefaultValues.delay = "00:00:00";
22
+ DefaultValues.timeout = "00:00:00";
23
+ DefaultValues.executionPriorityOrder = "OldestFirst";
24
+ DefaultValues.longRetry = 1;
25
+ DefaultValues.longRetryInterval = "00:00:00";
26
+ return DefaultValues;
27
+ })();
28
+ exports.DefaultValues = DefaultValues;
29
+ var ActivityType = (function () {
30
+ function ActivityType() {}
31
+ ActivityType.copyActivity = "Copy";
32
+ ActivityType.dotNetActivity = "DotNetActivity";
33
+ ActivityType.storedProcedureActivity = "SqlServerStoredProcedure";
34
+ ActivityType.azureMLBatchExecutionActivity = "AzureMLBatchExecution";
35
+ ActivityType.hdInsightHiveActivity = "HDInsightHive";
36
+ ActivityType.hdInsightPigActivity = "HDInsightPig";
37
+ ActivityType.hdInsightMapReduceActivity = "HDInsightMapReduce";
38
+ ActivityType.hdInsightStreamingActivity = "HDInsightStreaming";
39
+ return ActivityType;
40
+ })();
41
+ exports.ActivityType = ActivityType;
42
+ exports.activityTypeToResourceMap = {};
43
+ exports.activityTypeToResourceMap[ActivityType.copyActivity] =
44
+ ClientResources.copyActivity;
45
+ exports.activityTypeToResourceMap[ActivityType.dotNetActivity] =
46
+ ClientResources.dotNet;
47
+ exports.activityTypeToResourceMap[ActivityType.storedProcedureActivity] =
48
+ ClientResources.storedProcedure;
49
+ exports.activityTypeToResourceMap[
50
+ ActivityType.azureMLBatchExecutionActivity
51
+ ] = ClientResources.azureML;
52
+ exports.activityTypeToResourceMap[ActivityType.hdInsightHiveActivity] =
53
+ ClientResources.hive;
54
+ exports.activityTypeToResourceMap[ActivityType.hdInsightPigActivity] =
55
+ ClientResources.pig;
56
+ exports.activityTypeToResourceMap[ActivityType.hdInsightMapReduceActivity] =
57
+ ClientResources.mapReduce;
58
+ exports.activityTypeToNameInfoResourceMap = {};
59
+ exports.activityTypeToNameInfoResourceMap[ActivityType.copyActivity] =
60
+ "Name of the copy activity that will copy data from a source data store to a destination data store.";
61
+ function getActivityKey(activityName, pipelineId) {
62
+ return new Encodable(pipelineId.substr(1), activityName).getLegacyKey();
63
+ }
64
+ exports.getActivityKey = getActivityKey;
65
+ var Encodable = (function (_super) {
66
+ __extends(Encodable, _super);
67
+ function Encodable(pipelineName, name) {
68
+ _super.call(
69
+ this,
70
+ BaseEncodable.EncodableType.ACTIVITY,
71
+ name.toUpperCase() + " " + pipelineName.toUpperCase()
72
+ );
73
+ this.name = name;
74
+ this.pipelineName = pipelineName;
75
+ }
76
+ Encodable.prototype.getLegacyKey = function () {
77
+ return "A" + this.id;
78
+ };
79
+ return Encodable;
80
+ })(BaseEncodable.BaseEncodable);
81
+ exports.Encodable = Encodable;
82
+ });
83
+ //# sourceMappingURL=Activity.js.map
@@ -0,0 +1,185 @@
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(activityWindow) {
20
+ _super.call(
21
+ this,
22
+ BaseEncodable.EncodableType.ACTIVITY_RUN,
23
+ activityWindow().reservedId
24
+ );
25
+ this.observable = activityWindow;
26
+ }
27
+ return Encodable;
28
+ })(BaseEncodable.BaseEncodable);
29
+ exports.Encodable = Encodable;
30
+ var ServiceColumnNames;
31
+ (function (ServiceColumnNames) {
32
+ ServiceColumnNames.EventNamespave = "EventNamespace";
33
+ ServiceColumnNames.Key = "Key";
34
+ ServiceColumnNames.Scope = "Scope";
35
+ ServiceColumnNames.Tenant = "Tenant";
36
+ ServiceColumnNames.Timestamp = "Timestamp";
37
+ var ExtendedProperties;
38
+ (function (ExtendedProperties) {
39
+ ExtendedProperties.ActivityId = "ActivityId";
40
+ ExtendedProperties.ActivityName = "ActivityName";
41
+ ExtendedProperties.ActivityType = "ActivityType";
42
+ ExtendedProperties.Attempts = "Attempts";
43
+ ExtendedProperties.DataFactoryId = "DataFactoryId";
44
+ ExtendedProperties.DataFactoryName = "DataFactoryName";
45
+ ExtendedProperties.DurationMs = "DurationMs";
46
+ ExtendedProperties.InputTables = "InputTables";
47
+ ExtendedProperties.OutputTables = "OutputTables";
48
+ ExtendedProperties.PercentageComplete = "PercentageComplete";
49
+ ExtendedProperties.PipelineId = "PipelineId";
50
+ ExtendedProperties.PipelineName = "PipelineName";
51
+ ExtendedProperties.ResourceGroup = "ResourceGroup";
52
+ ExtendedProperties.WindowStart = "WindowStart";
53
+ ExtendedProperties.WindowEnd = "WindowEnd";
54
+ ExtendedProperties.LastRunStart = "LastRunStart";
55
+ ExtendedProperties.LastRunEnd = "LastRunEnd";
56
+ ExtendedProperties.LastRunStatus = "LastRunStatus";
57
+ ExtendedProperties.WindowState = "WindowState";
58
+ ExtendedProperties.WindowStatus = "WindowStatus";
59
+ ExtendedProperties.WindowSubstate = "WindowSubstate";
60
+ })(
61
+ (ExtendedProperties =
62
+ ServiceColumnNames.ExtendedProperties ||
63
+ (ServiceColumnNames.ExtendedProperties = {}))
64
+ );
65
+ })(
66
+ (ServiceColumnNames =
67
+ exports.ServiceColumnNames || (exports.ServiceColumnNames = {}))
68
+ );
69
+ var Status;
70
+ (function (Status) {
71
+ Status.Succeeded = "Succeeded";
72
+ Status.Failed = "FailedExecution";
73
+ Status.TimedOut = "TimedOut";
74
+ Status.Starting = "Starting";
75
+ Status.AllocatingResources = "AllocatingResources";
76
+ Status.Configuring = "Configuring";
77
+ Status.Retry = "Retry";
78
+ Status.Running = "Running";
79
+ })((Status = exports.Status || (exports.Status = {})));
80
+ exports.StatusLabel = {
81
+ LongRetry: "Long retry",
82
+ TimedOut: "Timed out",
83
+ AllocatingResources: "Allocating resources",
84
+ FailedExecution: "Failed",
85
+ };
86
+ var States;
87
+ (function (States) {
88
+ States.Ready = {
89
+ name: "Ready",
90
+ displayName: ClientResources.ReadyDisplayName,
91
+ description: ClientResources.ReadyDescription,
92
+ };
93
+ States.Waiting = {
94
+ name: "Waiting",
95
+ displayName: ClientResources.WaitingDisplayName,
96
+ substates: {
97
+ ScheduledTime: {
98
+ name: "ScheduledTime",
99
+ displayName: ClientResources.ScheduledTimeDisplayName,
100
+ description: ClientResources.ScheduledTimeDescription,
101
+ },
102
+ DatasetDependencies: {
103
+ name: "DatasetDependencies",
104
+ displayName: ClientResources.DatasetDependenciesDisplayName,
105
+ description: ClientResources.DatasetDependenciesDescription,
106
+ },
107
+ ComputeResources: {
108
+ name: "ComputeResources",
109
+ displayName: ClientResources.ComputeResourcesDisplayName,
110
+ description: ClientResources.ComputeResourcesDescription,
111
+ },
112
+ ConcurrencyLimit: {
113
+ name: "ConcurrencyLimit",
114
+ displayName: ClientResources.ConcurrencyLimitDisplayName,
115
+ description: ClientResources.ConcurrencyLimitDescription,
116
+ },
117
+ ActivityResume: {
118
+ name: "ActivityResume",
119
+ displayName: ClientResources.ActivityResumeDisplayName,
120
+ description: ClientResources.ActivityResumeDescription,
121
+ },
122
+ Retry: {
123
+ name: "Retry",
124
+ displayName: ClientResources.RetryDisplayName,
125
+ description: ClientResources.RetryDescription,
126
+ },
127
+ Validation: {
128
+ name: "Validation",
129
+ displayName: ClientResources.ValidationDisplayName,
130
+ description: ClientResources.WaitingValidationDescription,
131
+ },
132
+ ValidationRetry: {
133
+ name: "ValidationRetry",
134
+ displayName: ClientResources.ValidationRetryDisplayName,
135
+ description: ClientResources.ValidationRetryDescription,
136
+ },
137
+ },
138
+ };
139
+ States.InProgress = {
140
+ name: "InProgress",
141
+ displayName: ClientResources.InProgressDisplayName,
142
+ description: ClientResources.InProgressDescription,
143
+ substates: {
144
+ Validating: {
145
+ name: "Validating",
146
+ displayName: ClientResources.ValidatingDisplayName,
147
+ description: ClientResources.ValidatingDescription,
148
+ },
149
+ },
150
+ };
151
+ States.Failed = {
152
+ name: "Failed",
153
+ displayName: ClientResources.FailedDisplayName,
154
+ description: ClientResources.FailedDescription,
155
+ substates: {
156
+ TimedOut: {
157
+ name: "TimedOut",
158
+ displayName: ClientResources.TimedOutDisplayName,
159
+ description: ClientResources.TimedOutDescription,
160
+ },
161
+ Canceled: {
162
+ name: "Canceled",
163
+ displayName: ClientResources.CanceledDisplayName,
164
+ description: ClientResources.CanceledDescription,
165
+ },
166
+ Validation: {
167
+ name: "Validation",
168
+ displayName: ClientResources.ValidationDisplayName,
169
+ description: ClientResources.FailedValidationDescription,
170
+ },
171
+ },
172
+ };
173
+ States.Skipped = {
174
+ name: "Skipped",
175
+ displayName: ClientResources.SkippedDisplayName,
176
+ description: ClientResources.SkippedDescription,
177
+ };
178
+ States.None = {
179
+ name: "None",
180
+ displayName: ClientResources.NoneDisplayName,
181
+ description: ClientResources.NoneDescription,
182
+ };
183
+ })((States = exports.States || (exports.States = {})));
184
+ });
185
+ //# sourceMappingURL=ActivityWindow.js.map
@@ -0,0 +1,106 @@
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"], function (require, exports) {
12
+ "use strict";
13
+ (function (EncodableType) {
14
+ EncodableType[(EncodableType["PIPELINE"] = 0)] = "PIPELINE";
15
+ EncodableType[(EncodableType["ACTIVITY"] = 1)] = "ACTIVITY";
16
+ EncodableType[(EncodableType["TABLE"] = 2)] = "TABLE";
17
+ EncodableType[(EncodableType["ACTIVITY_RUN"] = 3)] = "ACTIVITY_RUN";
18
+ EncodableType[(EncodableType["STRING"] = 4)] = "STRING";
19
+ EncodableType[(EncodableType["LINKED_SERVICE"] = 5)] = "LINKED_SERVICE";
20
+ EncodableType[(EncodableType["GATEWAY"] = 6)] = "GATEWAY";
21
+ EncodableType[(EncodableType["DATAFACTORY"] = 7)] = "DATAFACTORY";
22
+ EncodableType[(EncodableType["PIPELINE_ONETIME"] = 8)] = "PIPELINE_ONETIME";
23
+ EncodableType[(EncodableType["PIPELINE_SCHEDULED"] = 9)] =
24
+ "PIPELINE_SCHEDULED";
25
+ })(exports.EncodableType || (exports.EncodableType = {}));
26
+ var EncodableType = exports.EncodableType;
27
+ var BaseEncodable = (function () {
28
+ function BaseEncodable(newType, id) {
29
+ this.type = newType;
30
+ this.id = id;
31
+ }
32
+ BaseEncodable.prototype.equals = function (other) {
33
+ return other.type === this.type && other.id === this.id;
34
+ };
35
+ return BaseEncodable;
36
+ })();
37
+ exports.BaseEncodable = BaseEncodable;
38
+ var StringEncodable = (function (_super) {
39
+ __extends(StringEncodable, _super);
40
+ function StringEncodable(idString) {
41
+ _super.call(this, EncodableType.STRING, idString);
42
+ }
43
+ return StringEncodable;
44
+ })(BaseEncodable);
45
+ exports.StringEncodable = StringEncodable;
46
+ var EncodableSet = (function () {
47
+ function EncodableSet(encodables) {
48
+ if (encodables === void 0) {
49
+ encodables = [];
50
+ }
51
+ this._typeMap = {};
52
+ encodables.forEach(this.add);
53
+ }
54
+ EncodableSet.prototype.add = function (encodable) {
55
+ var index = encodable.type;
56
+ if (!(index in this._typeMap)) {
57
+ this._typeMap[index] = {};
58
+ }
59
+ this._typeMap[index][encodable.id] = encodable;
60
+ };
61
+ EncodableSet.prototype.remove = function (encodable) {
62
+ var index = encodable.type;
63
+ if (this._typeMap[index]) {
64
+ delete this._typeMap[index][encodable.id];
65
+ }
66
+ };
67
+ EncodableSet.prototype.clear = function () {
68
+ this._typeMap = {};
69
+ };
70
+ EncodableSet.prototype.length = function () {
71
+ var length = 0;
72
+ for (var i in this._typeMap) {
73
+ length += Object.keys(this._typeMap[i]).length;
74
+ }
75
+ return length;
76
+ };
77
+ EncodableSet.prototype.filterEncodables = function (typeToKeep) {
78
+ var copy = this._typeMap[typeToKeep];
79
+ this._typeMap = {};
80
+ this._typeMap[typeToKeep] = copy;
81
+ };
82
+ EncodableSet.prototype.clearByType = function (typeToClear) {
83
+ var clearedEncodable = this._typeMap[typeToClear];
84
+ delete this._typeMap[typeToClear];
85
+ return clearedEncodable;
86
+ };
87
+ EncodableSet.prototype.toTypeMap = function (type) {
88
+ return this._typeMap[type];
89
+ };
90
+ EncodableSet.prototype.contains = function (encodable) {
91
+ var index = encodable.type;
92
+ return index in this._typeMap && encodable.id in this._typeMap[index];
93
+ };
94
+ EncodableSet.prototype.forEach = function (callback) {
95
+ for (var i in this._typeMap) {
96
+ var idMap = this._typeMap[i];
97
+ for (var id in idMap) {
98
+ callback(idMap[id]);
99
+ }
100
+ }
101
+ };
102
+ return EncodableSet;
103
+ })();
104
+ exports.EncodableSet = EncodableSet;
105
+ });
106
+ //# sourceMappingURL=BaseEncodable.js.map
@@ -0,0 +1,19 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ var ProvisioningState;
4
+ (function (ProvisioningState) {
5
+ ProvisioningState.NotSpecified = "NotSpecified";
6
+ ProvisioningState.PendingCreation = "PendingCreation";
7
+ ProvisioningState.Succeeded = "Succeeded";
8
+ ProvisioningState.PendingUpdate = "PendingUpdate";
9
+ ProvisioningState.PendingDeletion = "PendingDeletion";
10
+ ProvisioningState.Failed = "Failed";
11
+ ProvisioningState.PendingRecreation = "PendingRecreation";
12
+ ProvisioningState.Disabled = "Disabled";
13
+ ProvisioningState.Running = "Running";
14
+ })(
15
+ (ProvisioningState =
16
+ exports.ProvisioningState || (exports.ProvisioningState = {}))
17
+ );
18
+ });
19
+ //# sourceMappingURL=Common.js.map
@@ -0,0 +1,100 @@
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([
12
+ "require",
13
+ "exports",
14
+ "../../Shared/IconResources",
15
+ "./BaseEncodable",
16
+ ], function (require, exports, IconResources, BaseEncodable) {
17
+ "use strict";
18
+ var TableType;
19
+ (function (TableType) {
20
+ TableType.AzureBlobLocation = "AzureBlob";
21
+ TableType.AzureSqlDwTableLocation = "AzureSqlDWTable";
22
+ TableType.AzureSqlTableLocation = "AzureSqlTable";
23
+ TableType.AzureTableLocation = "AzureTable";
24
+ TableType.CustomLocation = "CustomDataset";
25
+ TableType.OnPremisesSqlServerTableLocation = "SqlServerTable";
26
+ TableType.AzureDataLakeStore = "AzureDataLakeStore";
27
+ TableType.OracleTable = "OracleTable";
28
+ TableType.RelationalTable = "RelationalTable";
29
+ })((TableType = exports.TableType || (exports.TableType = {})));
30
+ var CustomTableType;
31
+ (function (CustomTableType) {
32
+ CustomTableType.OnPremHDFS = "OnpremisesHDFS";
33
+ })(
34
+ (CustomTableType =
35
+ exports.CustomTableType || (exports.CustomTableType = {}))
36
+ );
37
+ exports.tableTypeToResourceMap = {};
38
+ exports.tableTypeToResourceMap[TableType.AzureBlobLocation] =
39
+ ClientResources.linkedServiceAzureBlobLocation;
40
+ exports.tableTypeToResourceMap[TableType.AzureSqlDwTableLocation] =
41
+ ClientResources.linkedServiceAzureSqlDwTableLocation;
42
+ exports.tableTypeToResourceMap[TableType.AzureSqlTableLocation] =
43
+ ClientResources.linkedServiceAzureSqlTableLocation;
44
+ exports.tableTypeToResourceMap[TableType.AzureTableLocation] =
45
+ ClientResources.linkedServiceAzureTableLocation;
46
+ exports.tableTypeToResourceMap[TableType.CustomLocation] =
47
+ ClientResources.linkedServiceCustomLocation;
48
+ exports.tableTypeToResourceMap[TableType.OnPremisesSqlServerTableLocation] =
49
+ ClientResources.linkedServiceOnPremisesSqlServerTableLocation;
50
+ exports.tableTypeToResourceMap[TableType.AzureDataLakeStore] =
51
+ ClientResources.linkedServiceAzureDataLakeStore;
52
+ exports.tableTypeToSvgMap = {};
53
+ exports.tableTypeToSvgMap[TableType.AzureBlobLocation] =
54
+ IconResources.Icons.blobTable;
55
+ exports.tableTypeToSvgMap[TableType.AzureSqlDwTableLocation] =
56
+ IconResources.Icons.sqlDwTable;
57
+ exports.tableTypeToSvgMap[TableType.AzureSqlTableLocation] =
58
+ IconResources.Icons.sqlTable;
59
+ exports.tableTypeToSvgMap[TableType.AzureTableLocation] =
60
+ IconResources.Icons.azureDbTable;
61
+ exports.tableTypeToSvgMap[TableType.CustomLocation] =
62
+ IconResources.Icons.tableIcon;
63
+ exports.tableTypeToSvgMap[TableType.OnPremisesSqlServerTableLocation] =
64
+ IconResources.Icons.sqlTable;
65
+ exports.tableTypeToSvgMap[TableType.AzureDataLakeStore] =
66
+ IconResources.Icons.adlStore;
67
+ function getTableKey(tableName) {
68
+ return "T" + tableName.toUpperCase();
69
+ }
70
+ exports.getTableKey = getTableKey;
71
+ var Encodable = (function (_super) {
72
+ __extends(Encodable, _super);
73
+ function Encodable(name) {
74
+ _super.call(this, BaseEncodable.EncodableType.TABLE, name.toUpperCase());
75
+ this.name = name;
76
+ }
77
+ Encodable.prototype.getLegacyKey = function () {
78
+ return getTableKey(this.name);
79
+ };
80
+ return Encodable;
81
+ })(BaseEncodable.BaseEncodable);
82
+ exports.Encodable = Encodable;
83
+ var Availability;
84
+ (function (Availability) {
85
+ Availability.Frequency = {
86
+ Minute: "Minute",
87
+ Hour: "Hour",
88
+ Day: "Day",
89
+ Week: "Week",
90
+ Month: "Month",
91
+ Year: "Year",
92
+ };
93
+ })((Availability = exports.Availability || (exports.Availability = {})));
94
+ exports.Default = {
95
+ properties: {
96
+ type: TableType.AzureBlobLocation,
97
+ },
98
+ };
99
+ });
100
+ //# sourceMappingURL=DataArtifact.js.map
@@ -0,0 +1,9 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ (function (DiagramMode) {
4
+ DiagramMode[(DiagramMode["Factory"] = 0)] = "Factory";
5
+ DiagramMode[(DiagramMode["OpenPipeline"] = 1)] = "OpenPipeline";
6
+ })(exports.DiagramMode || (exports.DiagramMode = {}));
7
+ var DiagramMode = exports.DiagramMode;
8
+ });
9
+ //# sourceMappingURL=Diagram.js.map
@@ -0,0 +1,113 @@
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([
12
+ "require",
13
+ "exports",
14
+ "./Activity",
15
+ "./ActivityWindow",
16
+ "./LinkedService",
17
+ "./Gateway",
18
+ "./DataArtifact",
19
+ "./Pipeline",
20
+ "./BaseEncodable",
21
+ ], function (
22
+ require,
23
+ exports,
24
+ Activity,
25
+ ActivityWindow,
26
+ LinkedService,
27
+ Gateway,
28
+ DataArtifact,
29
+ Pipeline,
30
+ BaseEncodable
31
+ ) {
32
+ "use strict";
33
+ exports.EncodableType = BaseEncodable.EncodableType;
34
+ exports.Encodable = BaseEncodable.BaseEncodable;
35
+ exports.EncodableSet = BaseEncodable.EncodableSet;
36
+ exports.ActivityEncodable = Activity.Encodable;
37
+ exports.TableEncodable = DataArtifact.Encodable;
38
+ exports.PipelineEncodable = Pipeline.Encodable;
39
+ exports.StringEncodable = BaseEncodable.StringEncodable;
40
+ exports.ActivityRunEncodable = ActivityWindow.Encodable;
41
+ exports.LinkedServiceEncodable = LinkedService.Encodable;
42
+ exports.GatewayEncodable = Gateway.Encodable;
43
+ function createLegacyKeyFromEncodable(encodable) {
44
+ switch (encodable.type) {
45
+ case exports.EncodableType.PIPELINE:
46
+ return encodable.getLegacyKey();
47
+ case exports.EncodableType.TABLE:
48
+ return encodable.getLegacyKey();
49
+ case exports.EncodableType.ACTIVITY:
50
+ return encodable.getLegacyKey();
51
+ default:
52
+ return encodable.id;
53
+ }
54
+ }
55
+ exports.createLegacyKeyFromEncodable = createLegacyKeyFromEncodable;
56
+ function createEncodableFromLegacyKey(key) {
57
+ var name = key.substring(1);
58
+ switch (key[0]) {
59
+ case "P":
60
+ return new exports.PipelineEncodable(name);
61
+ case "T":
62
+ return new exports.TableEncodable(name);
63
+ case "A":
64
+ var lastSpace = name.lastIndexOf(" ");
65
+ var pipelineName = name.substring(lastSpace + 1);
66
+ var activityName = name.substring(0, lastSpace);
67
+ return new exports.ActivityEncodable(pipelineName, activityName);
68
+ default:
69
+ return new exports.StringEncodable(name);
70
+ }
71
+ }
72
+ exports.createEncodableFromLegacyKey = createEncodableFromLegacyKey;
73
+ var DataFactoryEncodable = (function (_super) {
74
+ __extends(DataFactoryEncodable, _super);
75
+ function DataFactoryEncodable(name) {
76
+ _super.call(
77
+ this,
78
+ BaseEncodable.EncodableType.DATAFACTORY,
79
+ name.toUpperCase()
80
+ );
81
+ this.name = name;
82
+ }
83
+ return DataFactoryEncodable;
84
+ })(BaseEncodable.BaseEncodable);
85
+ exports.DataFactoryEncodable = DataFactoryEncodable;
86
+ var OnetimePipelineEncodable = (function (_super) {
87
+ __extends(OnetimePipelineEncodable, _super);
88
+ function OnetimePipelineEncodable(name) {
89
+ _super.call(
90
+ this,
91
+ BaseEncodable.EncodableType.PIPELINE_ONETIME,
92
+ name.toUpperCase()
93
+ );
94
+ this.name = name;
95
+ }
96
+ return OnetimePipelineEncodable;
97
+ })(BaseEncodable.BaseEncodable);
98
+ exports.OnetimePipelineEncodable = OnetimePipelineEncodable;
99
+ var ScheduledPipelineEncodable = (function (_super) {
100
+ __extends(ScheduledPipelineEncodable, _super);
101
+ function ScheduledPipelineEncodable(name) {
102
+ _super.call(
103
+ this,
104
+ BaseEncodable.EncodableType.PIPELINE_SCHEDULED,
105
+ name.toUpperCase()
106
+ );
107
+ this.name = name;
108
+ }
109
+ return ScheduledPipelineEncodable;
110
+ })(BaseEncodable.BaseEncodable);
111
+ exports.ScheduledPipelineEncodable = ScheduledPipelineEncodable;
112
+ });
113
+ //# sourceMappingURL=Encodable.js.map