@sap/ux-ui5-tooling 1.10.4 → 1.10.6
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 +9 -0
- package/README.md +4 -2
- package/dist/cli/index.js +4574 -2908
- package/dist/markdowns/deploy/deploy.en.md +3 -1
- package/dist/markdowns/undeploy/undeploy.en.md +2 -0
- package/dist/middlewares/fiori-tools-appreload.js +12 -827
- package/dist/middlewares/fiori-tools-preview.js +44890 -44371
- package/dist/middlewares/fiori-tools-proxy.js +93077 -91670
- package/dist/middlewares/fiori-tools-servestatic.js +5 -3
- package/dist/tasks/cf-deploy/index.js +1258 -1282
- package/dist/tasks/deploy/index.js +27983 -27687
- package/package.json +13 -11
- package/ui5.yaml +5 -5
|
@@ -25,287 +25,116 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
25
25
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
26
26
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
27
|
|
|
28
|
-
// ../lib/telemetry/dist/src/
|
|
28
|
+
// ../lib/telemetry/dist/src/system/system.js
|
|
29
29
|
var require_system = __commonJS({
|
|
30
|
-
"../lib/telemetry/dist/src/
|
|
30
|
+
"../lib/telemetry/dist/src/system/system.js"(exports2) {
|
|
31
31
|
"use strict";
|
|
32
32
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33
|
-
exports2.
|
|
34
|
-
var
|
|
35
|
-
const matchPaths = matchingPaths;
|
|
36
|
-
matchPaths.forEach((matchingPath) => {
|
|
37
|
-
matchingPath.patterns = matchingPath.patterns.map((pattern) => new RegExp(`[\\w\\s-./:@!]+${pattern}`, "gi"));
|
|
38
|
-
});
|
|
39
|
-
return matchPaths;
|
|
33
|
+
exports2.TelemetrySystem = void 0;
|
|
34
|
+
var TelemetrySystem = class {
|
|
40
35
|
};
|
|
41
|
-
exports2.
|
|
36
|
+
exports2.TelemetrySystem = TelemetrySystem;
|
|
42
37
|
}
|
|
43
38
|
});
|
|
44
39
|
|
|
45
|
-
// ../lib/telemetry/dist/
|
|
46
|
-
var
|
|
47
|
-
"../lib/telemetry/dist/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
// ../lib/telemetry/dist/package.json
|
|
41
|
+
var require_package = __commonJS({
|
|
42
|
+
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
43
|
+
module2.exports = {
|
|
44
|
+
name: "@sap/ux-telemetry",
|
|
45
|
+
version: "1.10.6",
|
|
46
|
+
description: "SAP Fiori tools telemetry library",
|
|
47
|
+
main: "dist/src/index.js",
|
|
48
|
+
author: "SAP SE",
|
|
49
|
+
license: "MIT",
|
|
50
|
+
private: true,
|
|
51
|
+
azureInstrumentationKey: "0a65e45d-6bf4-421d-b845-61e888c50e9e",
|
|
52
|
+
azureProdKey: "0a65e45d-6bf4-421d-b845-61e888c50e9e",
|
|
53
|
+
scripts: {
|
|
54
|
+
"pre-commit": "lint-staged --quiet",
|
|
55
|
+
"clean:dist": "rimraf ./dist ./generators *.tsbuildinfo",
|
|
56
|
+
clean: "rimraf ./reports",
|
|
57
|
+
build: "ts-node ./build-script/ && yarn run clean && tsc --build ./",
|
|
58
|
+
test: "cross-env SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY=false jest --maxWorkers=1 --ci --forceExit --detectOpenHandles",
|
|
59
|
+
lint: "eslint . --ext .ts",
|
|
60
|
+
"lint:summary": "eslint . --ext .ts -f summary",
|
|
61
|
+
"lint:fix": "eslint --fix",
|
|
62
|
+
"lint:fix:all": "eslint . --ext .ts --fix",
|
|
63
|
+
"lint:report": "eslint . --ext .ts -f multiple ",
|
|
64
|
+
"format:fix": "prettier --write --loglevel silent --ignore-path ../../../.prettierignore",
|
|
65
|
+
"format:fix:all": "prettier --write '**/*.{css,scss,html,js,json,ts,tsx,yaml,yml}' '!**/{out,dist,node_modules}/**' '!**/*.{svg,png,xml}' --ignore-path ../../../.prettierignore",
|
|
66
|
+
madge: "madge --warning --circular --extensions ts ./"
|
|
67
|
+
},
|
|
68
|
+
dependencies: {
|
|
69
|
+
"@sap-ux/store": "0.3.8",
|
|
70
|
+
"@sap/ux-cds": "1.10.6",
|
|
71
|
+
"@sap/ux-common-utils": "1.10.6",
|
|
72
|
+
"@sap/ux-feature-toggle": "1.10.6",
|
|
73
|
+
"@sap/ux-project-access": "1.10.6",
|
|
74
|
+
applicationinsights: "1.4.1",
|
|
75
|
+
axios: "0.26.0",
|
|
76
|
+
"performance-now": "2.1.0",
|
|
77
|
+
yaml: "2.2.2"
|
|
78
|
+
},
|
|
79
|
+
devDependencies: {
|
|
80
|
+
memfs: "3.4.13",
|
|
81
|
+
"ts-jest": "29.1.1",
|
|
82
|
+
"ts-node": "8.5.2",
|
|
83
|
+
typescript: "4.9.5",
|
|
84
|
+
unionfs: "4.4.0"
|
|
85
|
+
},
|
|
86
|
+
files: [
|
|
87
|
+
"dist/"
|
|
88
|
+
],
|
|
89
|
+
jestSonar: {
|
|
90
|
+
reportPath: "reports/test/unit",
|
|
91
|
+
reportFile: "test-report.xml"
|
|
92
|
+
},
|
|
93
|
+
"eslint-formatter-multiple": {
|
|
94
|
+
formatters: [
|
|
95
|
+
{
|
|
96
|
+
name: "stylish",
|
|
97
|
+
output: "console"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "json",
|
|
101
|
+
output: "file",
|
|
102
|
+
path: "reports/lint/eslint.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "checkstyle",
|
|
106
|
+
output: "file",
|
|
107
|
+
path: "reports/lint/eslint.checkstyle.xml"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
63
110
|
}
|
|
64
111
|
};
|
|
65
|
-
exports2.debug = debug;
|
|
66
112
|
}
|
|
67
113
|
});
|
|
68
114
|
|
|
69
|
-
// ../lib/
|
|
70
|
-
var
|
|
71
|
-
"../lib/
|
|
72
|
-
"use strict";
|
|
73
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74
|
-
exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = exports2.ENV = void 0;
|
|
75
|
-
var ENV;
|
|
76
|
-
(function(ENV2) {
|
|
77
|
-
ENV2["PROXY_URL"] = "HTTP_PROXY";
|
|
78
|
-
ENV2["H2O_URL"] = "H2O_URL";
|
|
79
|
-
})(ENV = exports2.ENV || (exports2.ENV = {}));
|
|
80
|
-
function isAppStudio2() {
|
|
81
|
-
return !!process.env[ENV.H2O_URL];
|
|
82
|
-
}
|
|
83
|
-
exports2.isAppStudio = isAppStudio2;
|
|
84
|
-
function getAppStudioBaseURL() {
|
|
85
|
-
return process.env[ENV.H2O_URL];
|
|
86
|
-
}
|
|
87
|
-
exports2.getAppStudioBaseURL = getAppStudioBaseURL;
|
|
88
|
-
function getAppStudioProxyURL() {
|
|
89
|
-
return process.env[ENV.PROXY_URL];
|
|
90
|
-
}
|
|
91
|
-
exports2.getAppStudioProxyURL = getAppStudioProxyURL;
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
// ../lib/common-utils/dist/file.js
|
|
96
|
-
var require_file = __commonJS({
|
|
97
|
-
"../lib/common-utils/dist/file.js"(exports2) {
|
|
98
|
-
"use strict";
|
|
99
|
-
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
100
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
101
|
-
};
|
|
102
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
103
|
-
exports2.toPosixPath = void 0;
|
|
104
|
-
var path_1 = __importDefault(require("path"));
|
|
105
|
-
function toPosixPath(dirPath) {
|
|
106
|
-
return path_1.default.normalize(dirPath).split(/[\\/]/g).join(path_1.default.posix.sep);
|
|
107
|
-
}
|
|
108
|
-
exports2.toPosixPath = toPosixPath;
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
// ../lib/common-utils/dist/promise.js
|
|
113
|
-
var require_promise = __commonJS({
|
|
114
|
-
"../lib/common-utils/dist/promise.js"(exports2) {
|
|
115
|
+
// ../lib/telemetry/dist/src/client/client.js
|
|
116
|
+
var require_client = __commonJS({
|
|
117
|
+
"../lib/telemetry/dist/src/client/client.js"(exports2) {
|
|
115
118
|
"use strict";
|
|
116
119
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
117
|
-
exports2.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
exports2.Client = void 0;
|
|
121
|
+
var Client = class {
|
|
122
|
+
constructor() {
|
|
123
|
+
this.applicationKey = "";
|
|
124
|
+
this.extensionName = "";
|
|
125
|
+
this.extensionVersion = "";
|
|
121
126
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return new Promise((resolve) => {
|
|
125
|
-
promises2.forEach(async (promise, index) => {
|
|
126
|
-
try {
|
|
127
|
-
const result2 = await Promise.resolve(promise);
|
|
128
|
-
results[index] = { status: "fulfilled", value: result2 };
|
|
129
|
-
count++;
|
|
130
|
-
if (count === promises2.length) {
|
|
131
|
-
resolve(results);
|
|
132
|
-
}
|
|
133
|
-
} catch (err) {
|
|
134
|
-
results[index] = { status: "rejected", reason: err };
|
|
135
|
-
count++;
|
|
136
|
-
if (count === promises2.length) {
|
|
137
|
-
resolve(results);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
exports2.allSettled = allSettled;
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
// ../lib/common-utils/dist/regexp.js
|
|
148
|
-
var require_regexp = __commonJS({
|
|
149
|
-
"../lib/common-utils/dist/regexp.js"(exports2) {
|
|
150
|
-
"use strict";
|
|
151
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
152
|
-
exports2.escapeRegExp = void 0;
|
|
153
|
-
function escapeRegExp(s) {
|
|
154
|
-
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
155
|
-
}
|
|
156
|
-
exports2.escapeRegExp = escapeRegExp;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
// ../lib/common-utils/dist/help/helpTopics.js
|
|
161
|
-
var require_helpTopics = __commonJS({
|
|
162
|
-
"../lib/common-utils/dist/help/helpTopics.js"(exports2) {
|
|
163
|
-
"use strict";
|
|
164
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
165
|
-
exports2.getHelpUrl = exports2.GUIDED_ANSWERS_LAUNCH_CMD_ID = exports2.GUIDED_ANSWERS_EXTENSION_ID = exports2.HELP_NODES = exports2.HELP_TREE = void 0;
|
|
166
|
-
var HELP_TREE;
|
|
167
|
-
(function(HELP_TREE2) {
|
|
168
|
-
HELP_TREE2[HELP_TREE2["FIORI_TOOLS"] = 3046] = "FIORI_TOOLS";
|
|
169
|
-
})(HELP_TREE = exports2.HELP_TREE || (exports2.HELP_TREE = {}));
|
|
170
|
-
exports2.HELP_NODES = {
|
|
171
|
-
FIORI_TOOLS: 45995,
|
|
172
|
-
DEV_PLATFORM: 45996,
|
|
173
|
-
FIORI_APP_GENERATOR: 48363,
|
|
174
|
-
BAS_CATALOG_SERVICES_REQUEST_FAILED: 48366,
|
|
175
|
-
APPLICATION_PREVIEW: 52881,
|
|
176
|
-
CERTIFICATE_ERROR: 53643,
|
|
177
|
-
DESTINATION_MISCONFIGURED: 54336,
|
|
178
|
-
DESTINATION_UNAVAILABLE: 51208,
|
|
179
|
-
DESTINATION_NOT_FOUND: 51208,
|
|
180
|
-
BAD_GATEWAY: 48366,
|
|
181
|
-
DESTINATION_BAD_GATEWAY_503: 52526
|
|
182
|
-
};
|
|
183
|
-
exports2.GUIDED_ANSWERS_EXTENSION_ID = "saposs.sap-guided-answers-extension";
|
|
184
|
-
exports2.GUIDED_ANSWERS_LAUNCH_CMD_ID = "sap.ux.guidedAnswer.openGuidedAnswer";
|
|
185
|
-
var GUIDED_ANSWERS_SUPPORT_BASE_URL = "https://ga.support.sap.com/dtp/viewer/index.html";
|
|
186
|
-
function getHelpUrl(treeId, nodeIds) {
|
|
187
|
-
let actions = "";
|
|
188
|
-
if (nodeIds.length > 0) {
|
|
189
|
-
actions = `/actions/${nodeIds.join(":")}`;
|
|
127
|
+
getApplicationKey() {
|
|
128
|
+
return this.applicationKey;
|
|
190
129
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// ../lib/common-utils/dist/index.js
|
|
198
|
-
var require_dist = __commonJS({
|
|
199
|
-
"../lib/common-utils/dist/index.js"(exports2) {
|
|
200
|
-
"use strict";
|
|
201
|
-
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
202
|
-
if (k2 === void 0)
|
|
203
|
-
k2 = k;
|
|
204
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
205
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
206
|
-
desc = { enumerable: true, get: function() {
|
|
207
|
-
return m[k];
|
|
208
|
-
} };
|
|
130
|
+
getExtensionVersion() {
|
|
131
|
+
return this.extensionVersion;
|
|
132
|
+
}
|
|
133
|
+
getExtensionName() {
|
|
134
|
+
return this.extensionName;
|
|
209
135
|
}
|
|
210
|
-
Object.defineProperty(o, k2, desc);
|
|
211
|
-
} : function(o, m, k, k2) {
|
|
212
|
-
if (k2 === void 0)
|
|
213
|
-
k2 = k;
|
|
214
|
-
o[k2] = m[k];
|
|
215
|
-
});
|
|
216
|
-
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
217
|
-
for (var p in m)
|
|
218
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
219
|
-
__createBinding(exports3, m, p);
|
|
220
|
-
};
|
|
221
|
-
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
222
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
223
|
-
};
|
|
224
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
225
|
-
exports2.filterReferenceUri = exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = void 0;
|
|
226
|
-
var os_1 = require("os");
|
|
227
|
-
var path_1 = __importDefault(require("path"));
|
|
228
|
-
var appStudio_1 = require_appStudio();
|
|
229
|
-
Object.defineProperty(exports2, "isAppStudio", { enumerable: true, get: function() {
|
|
230
|
-
return appStudio_1.isAppStudio;
|
|
231
|
-
} });
|
|
232
|
-
Object.defineProperty(exports2, "getAppStudioBaseURL", { enumerable: true, get: function() {
|
|
233
|
-
return appStudio_1.getAppStudioBaseURL;
|
|
234
|
-
} });
|
|
235
|
-
Object.defineProperty(exports2, "getAppStudioProxyURL", { enumerable: true, get: function() {
|
|
236
|
-
return appStudio_1.getAppStudioProxyURL;
|
|
237
|
-
} });
|
|
238
|
-
__exportStar(require_file(), exports2);
|
|
239
|
-
__exportStar(require_promise(), exports2);
|
|
240
|
-
__exportStar(require_regexp(), exports2);
|
|
241
|
-
__exportStar(require_helpTopics(), exports2);
|
|
242
|
-
var FioriToolsSettings;
|
|
243
|
-
(function(FioriToolsSettings2) {
|
|
244
|
-
FioriToolsSettings2["dir"] = ".fioritools";
|
|
245
|
-
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
246
|
-
var getFioriToolsDirectory = () => {
|
|
247
|
-
return path_1.default.join((0, os_1.homedir)(), FioriToolsSettings.dir);
|
|
248
136
|
};
|
|
249
|
-
exports2.
|
|
250
|
-
function filterReferenceUri(metadata) {
|
|
251
|
-
return metadata == null ? void 0 : metadata.replace(/ Uri="(http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[0])/g, ` Uri=".`);
|
|
252
|
-
}
|
|
253
|
-
exports2.filterReferenceUri = filterReferenceUri;
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
// ../lib/telemetry/dist/src/client/model/EventName.js
|
|
258
|
-
var require_EventName = __commonJS({
|
|
259
|
-
"../lib/telemetry/dist/src/client/model/EventName.js"(exports2) {
|
|
260
|
-
"use strict";
|
|
261
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
262
|
-
exports2.EventName = void 0;
|
|
263
|
-
var EventName2;
|
|
264
|
-
(function(EventName3) {
|
|
265
|
-
EventName3["Test"] = "test";
|
|
266
|
-
EventName3["TELEMETRY_SETTINGS_INIT_FAILED"] = "TELEMETRY_SETTINGS_INIT_FAILED";
|
|
267
|
-
EventName3["DISABLE_TELEMETRY"] = "DISABLE_TELEMETRY";
|
|
268
|
-
EventName3["GD_GUIDE_ACTION"] = "GUIDE_ACTION";
|
|
269
|
-
EventName3["GD_PANEL_LOAD"] = "PANEL_LOAD";
|
|
270
|
-
EventName3["GD_LAUNCH"] = "LAUNCH_GD";
|
|
271
|
-
EventName3["GD_SIDE_BY_SIDE"] = "GD_SIDE_BY_SIDE";
|
|
272
|
-
EventName3["GD_WIZARD"] = "GD_WIZARD";
|
|
273
|
-
EventName3["GD_DESCMODE"] = "GD_DESCMODE";
|
|
274
|
-
EventName3["GD_PROJECTVIEW"] = "GD_PROJECTVIEW";
|
|
275
|
-
EventName3["PAGEMAP"] = "PAGEMAP";
|
|
276
|
-
EventName3["APP_ACTIONS"] = "ACTIONS";
|
|
277
|
-
EventName3["PAGE_EDITOR"] = "PAGE_EDITOR";
|
|
278
|
-
EventName3["PAGEMAP_STARTUP_TIME"] = "PAGEMAP_STARTUP_TIME";
|
|
279
|
-
EventName3["APPLICATION_PREVIEW"] = "APPLICATION_PREVIEW";
|
|
280
|
-
EventName3["APP_INFO_COMMAND_STARTED"] = "APP_INFO_COMMAND_STARTED";
|
|
281
|
-
EventName3["APP_INFO_LINK_CLICKED"] = "APP_INFO_LINK_CLICKED";
|
|
282
|
-
EventName3["APP_INFO_STARTUP_TIME"] = "APP_INFO_STARTUP_TIME";
|
|
283
|
-
EventName3["SERVICE_MODELER_EVENT"] = "SERVICE_MODELER_EVENT";
|
|
284
|
-
EventName3["ANNOTATION_FILE_MANAGER_EVENT"] = "ANNOTATION_FILE_MANAGER_EVENT";
|
|
285
|
-
EventName3["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
|
|
286
|
-
EventName3["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
|
|
287
|
-
EventName3["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
|
|
288
|
-
EventName3["MIGRATION_ACTIVATED"] = "MIGRATION_ACTIVATED";
|
|
289
|
-
EventName3["MIGRATION_BACKEND_LOAD"] = "MIGRATION_BACKEND_LOAD";
|
|
290
|
-
EventName3["MIGRATION_REFRESH_BACKEND_LOAD"] = "MIGRATION_REFRESH_BACKEND_LOAD";
|
|
291
|
-
EventName3["MIGRATION_BACK_BACKEND_LOAD"] = "MIGRATION_BACK_BACKEND_LOAD";
|
|
292
|
-
EventName3["MIGRATION_COMPLETED"] = "MIGRATION_COMPLETED";
|
|
293
|
-
EventName3["MIGRATION_SUCCESS"] = "MIGRATION_SUCCESS";
|
|
294
|
-
EventName3["MIGRATION_FAILED"] = "MIGRATION_FAILED";
|
|
295
|
-
EventName3["MIGRATION_SHOW_INFO_PAGE"] = "MIGRATION_SHOW_INFO_PAGE";
|
|
296
|
-
EventName3["MIGRATION_ADD_PROJECT"] = "MIGRATION_ADD_PROJECT";
|
|
297
|
-
EventName3["DEPLOY_CONFIG"] = "DEPLOY_CONFIG";
|
|
298
|
-
EventName3["DEPLOY"] = "DEPLOY";
|
|
299
|
-
EventName3["DEPLOY_FAIL"] = "DEPLOY_FAIL";
|
|
300
|
-
EventName3["UNDEPLOY"] = "UNDEPLOY";
|
|
301
|
-
EventName3["UNDEPLOY_FAIL"] = "UNDEPLOY_FAIL";
|
|
302
|
-
EventName3["DATA_EDITOR_EVENT"] = "DATA_EDITOR_EVENT";
|
|
303
|
-
EventName3["CPE_EVENT"] = "CONTROL_PROPERTY_EDITOR_EVENT";
|
|
304
|
-
EventName3["SYSTEM_DETAILS_VIEW_EVENT"] = "SYSTEM_DETAILS_VIEW_EVENT";
|
|
305
|
-
EventName3["SERVICE_INQUIRER_BAS_SUCCESS"] = "SERVICE_INQUIRER_BAS_SUCCESS";
|
|
306
|
-
EventName3["SERVICE_INQUIRER_BAS_ERROR"] = "SERVICE_INQUIRER_BAS_ERROR";
|
|
307
|
-
EventName3["LIB_REFERENCE_ADDED"] = "LIB_REFERENCE_ADDED";
|
|
308
|
-
})(EventName2 = exports2.EventName || (exports2.EventName = {}));
|
|
137
|
+
exports2.Client = Client;
|
|
309
138
|
}
|
|
310
139
|
});
|
|
311
140
|
|
|
@@ -2810,7 +2639,7 @@ var require_patchRequire = __commonJS({
|
|
|
2810
2639
|
});
|
|
2811
2640
|
|
|
2812
2641
|
// ../../node_modules/diagnostic-channel/package.json
|
|
2813
|
-
var
|
|
2642
|
+
var require_package2 = __commonJS({
|
|
2814
2643
|
"../../node_modules/diagnostic-channel/package.json"(exports2, module2) {
|
|
2815
2644
|
module2.exports = {
|
|
2816
2645
|
name: "diagnostic-channel",
|
|
@@ -2868,7 +2697,7 @@ var require_channel = __commonJS({
|
|
|
2868
2697
|
};
|
|
2869
2698
|
var ContextPreservingEventEmitter = function() {
|
|
2870
2699
|
function ContextPreservingEventEmitter2() {
|
|
2871
|
-
this.version =
|
|
2700
|
+
this.version = require_package2().version;
|
|
2872
2701
|
this.subscribers = {};
|
|
2873
2702
|
this.contextPreservationFunction = function(cb) {
|
|
2874
2703
|
return cb;
|
|
@@ -3473,7 +3302,7 @@ var require_pg_pub = __commonJS({
|
|
|
3473
3302
|
function postgres6PatchFunction(originalPg, originalPgPath) {
|
|
3474
3303
|
var originalClientQuery = originalPg.Client.prototype.query;
|
|
3475
3304
|
var diagnosticOriginalFunc = "__diagnosticOriginalFunc";
|
|
3476
|
-
originalPg.Client.prototype.query = function query(
|
|
3305
|
+
originalPg.Client.prototype.query = function query(config, values, callback) {
|
|
3477
3306
|
var data2 = {
|
|
3478
3307
|
query: {},
|
|
3479
3308
|
database: {
|
|
@@ -3515,15 +3344,15 @@ var require_pg_pub = __commonJS({
|
|
|
3515
3344
|
}
|
|
3516
3345
|
}
|
|
3517
3346
|
try {
|
|
3518
|
-
if (typeof
|
|
3347
|
+
if (typeof config === "string") {
|
|
3519
3348
|
if (values instanceof Array) {
|
|
3520
3349
|
data2.query.preparable = {
|
|
3521
|
-
text:
|
|
3350
|
+
text: config,
|
|
3522
3351
|
args: values
|
|
3523
3352
|
};
|
|
3524
3353
|
callback = patchCallback(callback);
|
|
3525
3354
|
} else {
|
|
3526
|
-
data2.query.text =
|
|
3355
|
+
data2.query.text = config;
|
|
3527
3356
|
if (callback) {
|
|
3528
3357
|
callback = patchCallback(callback);
|
|
3529
3358
|
} else {
|
|
@@ -3531,28 +3360,28 @@ var require_pg_pub = __commonJS({
|
|
|
3531
3360
|
}
|
|
3532
3361
|
}
|
|
3533
3362
|
} else {
|
|
3534
|
-
if (typeof
|
|
3535
|
-
data2.query.plan =
|
|
3536
|
-
} else if (
|
|
3363
|
+
if (typeof config.name === "string") {
|
|
3364
|
+
data2.query.plan = config.name;
|
|
3365
|
+
} else if (config.values instanceof Array) {
|
|
3537
3366
|
data2.query.preparable = {
|
|
3538
|
-
text:
|
|
3539
|
-
args:
|
|
3367
|
+
text: config.text,
|
|
3368
|
+
args: config.values
|
|
3540
3369
|
};
|
|
3541
3370
|
} else {
|
|
3542
|
-
data2.query.text =
|
|
3371
|
+
data2.query.text = config.text;
|
|
3543
3372
|
}
|
|
3544
3373
|
if (callback) {
|
|
3545
3374
|
callback = patchCallback(callback);
|
|
3546
3375
|
} else if (values) {
|
|
3547
3376
|
values = patchCallback(values);
|
|
3548
3377
|
} else {
|
|
3549
|
-
|
|
3378
|
+
config.callback = patchCallback(config.callback);
|
|
3550
3379
|
}
|
|
3551
3380
|
}
|
|
3552
3381
|
} catch (e) {
|
|
3553
3382
|
return originalClientQuery.apply(this, arguments);
|
|
3554
3383
|
}
|
|
3555
|
-
arguments[0] =
|
|
3384
|
+
arguments[0] = config;
|
|
3556
3385
|
arguments[1] = values;
|
|
3557
3386
|
arguments[2] = callback;
|
|
3558
3387
|
arguments.length = arguments.length > 3 ? arguments.length : 3;
|
|
@@ -3564,7 +3393,7 @@ var require_pg_pub = __commonJS({
|
|
|
3564
3393
|
function postgres7PatchFunction(originalPg, originalPgPath) {
|
|
3565
3394
|
var originalClientQuery = originalPg.Client.prototype.query;
|
|
3566
3395
|
var diagnosticOriginalFunc = "__diagnosticOriginalFunc";
|
|
3567
|
-
originalPg.Client.prototype.query = function query(
|
|
3396
|
+
originalPg.Client.prototype.query = function query(config, values, callback) {
|
|
3568
3397
|
var _this = this;
|
|
3569
3398
|
var callbackProvided = !!callback;
|
|
3570
3399
|
var data2 = {
|
|
@@ -3608,16 +3437,16 @@ var require_pg_pub = __commonJS({
|
|
|
3608
3437
|
}
|
|
3609
3438
|
}
|
|
3610
3439
|
try {
|
|
3611
|
-
if (typeof
|
|
3440
|
+
if (typeof config === "string") {
|
|
3612
3441
|
if (values instanceof Array) {
|
|
3613
3442
|
data2.query.preparable = {
|
|
3614
|
-
text:
|
|
3443
|
+
text: config,
|
|
3615
3444
|
args: values
|
|
3616
3445
|
};
|
|
3617
3446
|
callbackProvided = typeof callback === "function";
|
|
3618
3447
|
callback = callbackProvided ? patchCallback(callback) : callback;
|
|
3619
3448
|
} else {
|
|
3620
|
-
data2.query.text =
|
|
3449
|
+
data2.query.text = config;
|
|
3621
3450
|
if (callback) {
|
|
3622
3451
|
callbackProvided = typeof callback === "function";
|
|
3623
3452
|
callback = callbackProvided ? patchCallback(callback) : callback;
|
|
@@ -3627,15 +3456,15 @@ var require_pg_pub = __commonJS({
|
|
|
3627
3456
|
}
|
|
3628
3457
|
}
|
|
3629
3458
|
} else {
|
|
3630
|
-
if (typeof
|
|
3631
|
-
data2.query.plan =
|
|
3632
|
-
} else if (
|
|
3459
|
+
if (typeof config.name === "string") {
|
|
3460
|
+
data2.query.plan = config.name;
|
|
3461
|
+
} else if (config.values instanceof Array) {
|
|
3633
3462
|
data2.query.preparable = {
|
|
3634
|
-
text:
|
|
3635
|
-
args:
|
|
3463
|
+
text: config.text,
|
|
3464
|
+
args: config.values
|
|
3636
3465
|
};
|
|
3637
3466
|
} else {
|
|
3638
|
-
data2.query.text =
|
|
3467
|
+
data2.query.text = config.text;
|
|
3639
3468
|
}
|
|
3640
3469
|
if (callback) {
|
|
3641
3470
|
callbackProvided = typeof callback === "function";
|
|
@@ -3644,14 +3473,14 @@ var require_pg_pub = __commonJS({
|
|
|
3644
3473
|
callbackProvided = typeof values === "function";
|
|
3645
3474
|
values = callbackProvided ? patchCallback(values) : values;
|
|
3646
3475
|
} else {
|
|
3647
|
-
callbackProvided = typeof
|
|
3648
|
-
|
|
3476
|
+
callbackProvided = typeof config.callback === "function";
|
|
3477
|
+
config.callback = callbackProvided ? patchCallback(config.callback) : config.callback;
|
|
3649
3478
|
}
|
|
3650
3479
|
}
|
|
3651
3480
|
} catch (e) {
|
|
3652
3481
|
return originalClientQuery.apply(this, arguments);
|
|
3653
3482
|
}
|
|
3654
|
-
arguments[0] =
|
|
3483
|
+
arguments[0] = config;
|
|
3655
3484
|
arguments[1] = values;
|
|
3656
3485
|
arguments[2] = callback;
|
|
3657
3486
|
arguments.length = arguments.length > 3 ? arguments.length : 3;
|
|
@@ -4651,7 +4480,7 @@ var require_next_tick = __commonJS({
|
|
|
4651
4480
|
});
|
|
4652
4481
|
|
|
4653
4482
|
// ../../node_modules/async-hook-jl/patches/promise.js
|
|
4654
|
-
var
|
|
4483
|
+
var require_promise = __commonJS({
|
|
4655
4484
|
"../../node_modules/async-hook-jl/patches/promise.js"(exports2, module2) {
|
|
4656
4485
|
"use strict";
|
|
4657
4486
|
function PromiseWrap() {
|
|
@@ -4788,7 +4617,7 @@ var require_timers = __commonJS({
|
|
|
4788
4617
|
});
|
|
4789
4618
|
|
|
4790
4619
|
// ../../node_modules/async-hook-jl/package.json
|
|
4791
|
-
var
|
|
4620
|
+
var require_package3 = __commonJS({
|
|
4792
4621
|
"../../node_modules/async-hook-jl/package.json"(exports2, module2) {
|
|
4793
4622
|
module2.exports = {
|
|
4794
4623
|
name: "async-hook-jl",
|
|
@@ -4834,7 +4663,7 @@ var require_async_hook = __commonJS({
|
|
|
4834
4663
|
var TIMERWRAP = asyncWrap.Providers.TIMERWRAP;
|
|
4835
4664
|
var patchs = {
|
|
4836
4665
|
"nextTick": require_next_tick(),
|
|
4837
|
-
"promise":
|
|
4666
|
+
"promise": require_promise(),
|
|
4838
4667
|
"timers": require_timers()
|
|
4839
4668
|
};
|
|
4840
4669
|
var ignoreUIDs = /* @__PURE__ */ new Set();
|
|
@@ -4909,7 +4738,7 @@ var require_async_hook = __commonJS({
|
|
|
4909
4738
|
function AsyncHook() {
|
|
4910
4739
|
this._state = new State();
|
|
4911
4740
|
this._hooks = new Hooks();
|
|
4912
|
-
this.version =
|
|
4741
|
+
this.version = require_package3().version;
|
|
4913
4742
|
this.providers = asyncWrap.Providers;
|
|
4914
4743
|
for (const key of Object.keys(patchs)) {
|
|
4915
4744
|
patchs[key].call(this);
|
|
@@ -4943,7 +4772,7 @@ var require_async_hook = __commonJS({
|
|
|
4943
4772
|
});
|
|
4944
4773
|
|
|
4945
4774
|
// ../../node_modules/stack-chain/package.json
|
|
4946
|
-
var
|
|
4775
|
+
var require_package4 = __commonJS({
|
|
4947
4776
|
"../../node_modules/stack-chain/package.json"(exports2, module2) {
|
|
4948
4777
|
module2.exports = {
|
|
4949
4778
|
name: "stack-chain",
|
|
@@ -5018,7 +4847,7 @@ var require_stack_chain = __commonJS({
|
|
|
5018
4847
|
this.extend = new TraceModifier();
|
|
5019
4848
|
this.filter = new TraceModifier();
|
|
5020
4849
|
this.format = new StackFormater();
|
|
5021
|
-
this.version =
|
|
4850
|
+
this.version = require_package4().version;
|
|
5022
4851
|
}
|
|
5023
4852
|
var SHORTCIRCUIT_CALLSITE = false;
|
|
5024
4853
|
stackChain.prototype.callSite = function collectCallSites(options2) {
|
|
@@ -5142,7 +4971,7 @@ var require_stack_chain = __commonJS({
|
|
|
5142
4971
|
var require_stack_chain2 = __commonJS({
|
|
5143
4972
|
"../../node_modules/stack-chain/index.js"(exports2, module2) {
|
|
5144
4973
|
if (global._stackChain) {
|
|
5145
|
-
if (global._stackChain.version ===
|
|
4974
|
+
if (global._stackChain.version === require_package4().version) {
|
|
5146
4975
|
module2.exports = global._stackChain;
|
|
5147
4976
|
} else {
|
|
5148
4977
|
throw new Error("Conflicting version of stack-chain found");
|
|
@@ -5159,7 +4988,7 @@ var require_async_hook_jl = __commonJS({
|
|
|
5159
4988
|
"use strict";
|
|
5160
4989
|
var AsyncHook = require_async_hook();
|
|
5161
4990
|
if (global._asyncHook) {
|
|
5162
|
-
if (global._asyncHook.version ===
|
|
4991
|
+
if (global._asyncHook.version === require_package3().version) {
|
|
5163
4992
|
module2.exports = global._asyncHook;
|
|
5164
4993
|
} else {
|
|
5165
4994
|
throw new Error("Conflicting version of async-hook-jl found");
|
|
@@ -8053,7 +7882,7 @@ var require_Util = __commonJS({
|
|
|
8053
7882
|
}
|
|
8054
7883
|
}
|
|
8055
7884
|
};
|
|
8056
|
-
Util2.makeRequest = function(
|
|
7885
|
+
Util2.makeRequest = function(config, requestUrl, requestOptions, requestCallback) {
|
|
8057
7886
|
if (requestUrl && requestUrl.indexOf("//") === 0) {
|
|
8058
7887
|
requestUrl = "https:" + requestUrl;
|
|
8059
7888
|
}
|
|
@@ -8061,10 +7890,10 @@ var require_Util = __commonJS({
|
|
|
8061
7890
|
var options2 = __assign({}, requestOptions, { host: requestUrlParsed.hostname, port: requestUrlParsed.port, path: requestUrlParsed.pathname });
|
|
8062
7891
|
var proxyUrl = void 0;
|
|
8063
7892
|
if (requestUrlParsed.protocol === "https:") {
|
|
8064
|
-
proxyUrl =
|
|
7893
|
+
proxyUrl = config.proxyHttpsUrl || void 0;
|
|
8065
7894
|
}
|
|
8066
7895
|
if (requestUrlParsed.protocol === "http:") {
|
|
8067
|
-
proxyUrl =
|
|
7896
|
+
proxyUrl = config.proxyHttpUrl || void 0;
|
|
8068
7897
|
}
|
|
8069
7898
|
if (proxyUrl) {
|
|
8070
7899
|
if (proxyUrl.indexOf("//") === 0) {
|
|
@@ -8079,10 +7908,10 @@ var require_Util = __commonJS({
|
|
|
8079
7908
|
}
|
|
8080
7909
|
}
|
|
8081
7910
|
var isHttps = requestUrlParsed.protocol === "https:" && !proxyUrl;
|
|
8082
|
-
if (isHttps &&
|
|
8083
|
-
options2.agent =
|
|
8084
|
-
} else if (!isHttps &&
|
|
8085
|
-
options2.agent =
|
|
7911
|
+
if (isHttps && config.httpsAgent !== void 0) {
|
|
7912
|
+
options2.agent = config.httpsAgent;
|
|
7913
|
+
} else if (!isHttps && config.httpAgent !== void 0) {
|
|
7914
|
+
options2.agent = config.httpAgent;
|
|
8086
7915
|
} else if (isHttps) {
|
|
8087
7916
|
options2.agent = Util2.tlsRestrictedAgent;
|
|
8088
7917
|
}
|
|
@@ -8181,8 +8010,8 @@ var require_CorrelationIdManager = __commonJS({
|
|
|
8181
8010
|
var CorrelationIdManager = function() {
|
|
8182
8011
|
function CorrelationIdManager2() {
|
|
8183
8012
|
}
|
|
8184
|
-
CorrelationIdManager2.queryCorrelationId = function(
|
|
8185
|
-
var appIdUrlString =
|
|
8013
|
+
CorrelationIdManager2.queryCorrelationId = function(config, callback) {
|
|
8014
|
+
var appIdUrlString = config.profileQueryEndpoint + "/api/profiles/" + config.instrumentationKey + "/appId";
|
|
8186
8015
|
if (CorrelationIdManager2.completedLookups.hasOwnProperty(appIdUrlString)) {
|
|
8187
8016
|
callback(CorrelationIdManager2.completedLookups[appIdUrlString]);
|
|
8188
8017
|
return;
|
|
@@ -8200,7 +8029,7 @@ var require_CorrelationIdManager = __commonJS({
|
|
|
8200
8029
|
disableAppInsightsAutoCollection: true
|
|
8201
8030
|
};
|
|
8202
8031
|
Logging.info(CorrelationIdManager2.TAG, requestOptions);
|
|
8203
|
-
var req = Util.makeRequest(
|
|
8032
|
+
var req = Util.makeRequest(config, appIdUrlString, requestOptions, function(res) {
|
|
8204
8033
|
if (res.statusCode === 200) {
|
|
8205
8034
|
var appId_1 = "";
|
|
8206
8035
|
res.setEncoding("utf-8");
|
|
@@ -8222,7 +8051,7 @@ var require_CorrelationIdManager = __commonJS({
|
|
|
8222
8051
|
CorrelationIdManager2.completedLookups[appIdUrlString] = void 0;
|
|
8223
8052
|
delete CorrelationIdManager2.pendingLookups[appIdUrlString];
|
|
8224
8053
|
} else {
|
|
8225
|
-
setTimeout(fetchAppId,
|
|
8054
|
+
setTimeout(fetchAppId, config.correlationIdRetryIntervalMs);
|
|
8226
8055
|
}
|
|
8227
8056
|
});
|
|
8228
8057
|
if (req) {
|
|
@@ -8234,8 +8063,8 @@ var require_CorrelationIdManager = __commonJS({
|
|
|
8234
8063
|
};
|
|
8235
8064
|
setTimeout(fetchAppId, 0);
|
|
8236
8065
|
};
|
|
8237
|
-
CorrelationIdManager2.cancelCorrelationIdQuery = function(
|
|
8238
|
-
var appIdUrlString =
|
|
8066
|
+
CorrelationIdManager2.cancelCorrelationIdQuery = function(config, callback) {
|
|
8067
|
+
var appIdUrlString = config.profileQueryEndpoint + "/api/profiles/" + config.instrumentationKey + "/appId";
|
|
8239
8068
|
var pendingLookups = CorrelationIdManager2.pendingLookups[appIdUrlString];
|
|
8240
8069
|
if (pendingLookups) {
|
|
8241
8070
|
CorrelationIdManager2.pendingLookups[appIdUrlString] = pendingLookups.filter(function(cb) {
|
|
@@ -9449,12 +9278,12 @@ var require_QuickPulseEnvelopeFactory = __commonJS({
|
|
|
9449
9278
|
var QuickPulseEnvelopeFactory = function() {
|
|
9450
9279
|
function QuickPulseEnvelopeFactory2() {
|
|
9451
9280
|
}
|
|
9452
|
-
QuickPulseEnvelopeFactory2.createQuickPulseEnvelope = function(metrics, documents,
|
|
9281
|
+
QuickPulseEnvelopeFactory2.createQuickPulseEnvelope = function(metrics, documents, config, context) {
|
|
9453
9282
|
var machineName = os && typeof os.hostname === "function" && os.hostname() || "Unknown";
|
|
9454
9283
|
var instance = context.tags && context.keys && context.keys.cloudRoleInstance && context.tags[context.keys.cloudRoleInstance] || machineName;
|
|
9455
9284
|
var envelope = {
|
|
9456
9285
|
Documents: documents.length > 0 ? documents : null,
|
|
9457
|
-
InstrumentationKey:
|
|
9286
|
+
InstrumentationKey: config.instrumentationKey || "",
|
|
9458
9287
|
Metrics: metrics.length > 0 ? metrics : null,
|
|
9459
9288
|
InvariantVersion: 1,
|
|
9460
9289
|
Timestamp: "/Date(" + Date.now() + ")/",
|
|
@@ -9600,8 +9429,8 @@ var require_QuickPulseSender = __commonJS({
|
|
|
9600
9429
|
subscribed: "x-ms-qps-subscribed"
|
|
9601
9430
|
};
|
|
9602
9431
|
var QuickPulseSender = function() {
|
|
9603
|
-
function QuickPulseSender2(
|
|
9604
|
-
this._config =
|
|
9432
|
+
function QuickPulseSender2(config) {
|
|
9433
|
+
this._config = config;
|
|
9605
9434
|
this._consecutiveErrors = 0;
|
|
9606
9435
|
}
|
|
9607
9436
|
QuickPulseSender2.prototype.ping = function(envelope, done) {
|
|
@@ -10193,8 +10022,8 @@ var require_Sender = __commonJS({
|
|
|
10193
10022
|
var AutoCollectHttpDependencies = require_HttpDependencies();
|
|
10194
10023
|
var Util = require_Util();
|
|
10195
10024
|
var Sender = function() {
|
|
10196
|
-
function Sender2(
|
|
10197
|
-
this._config =
|
|
10025
|
+
function Sender2(config, onSuccess, onError) {
|
|
10026
|
+
this._config = config;
|
|
10198
10027
|
this._onSuccess = onSuccess;
|
|
10199
10028
|
this._onError = onError;
|
|
10200
10029
|
this._enableDiskRetryMode = false;
|
|
@@ -10589,7 +10418,7 @@ var require_EnvelopeFactory = __commonJS({
|
|
|
10589
10418
|
var EnvelopeFactory = function() {
|
|
10590
10419
|
function EnvelopeFactory2() {
|
|
10591
10420
|
}
|
|
10592
|
-
EnvelopeFactory2.createEnvelope = function(telemetry, telemetryType, commonProperties, context,
|
|
10421
|
+
EnvelopeFactory2.createEnvelope = function(telemetry, telemetryType, commonProperties, context, config) {
|
|
10593
10422
|
var data2 = null;
|
|
10594
10423
|
switch (telemetryType) {
|
|
10595
10424
|
case Contracts.TelemetryType.Trace:
|
|
@@ -10625,7 +10454,7 @@ var require_EnvelopeFactory = __commonJS({
|
|
|
10625
10454
|
}
|
|
10626
10455
|
data2.baseData.properties = Util.validateStringMap(data2.baseData.properties);
|
|
10627
10456
|
}
|
|
10628
|
-
var iKey =
|
|
10457
|
+
var iKey = config ? config.instrumentationKey || "" : "";
|
|
10629
10458
|
var envelope = new Contracts.Envelope();
|
|
10630
10459
|
envelope.data = data2;
|
|
10631
10460
|
envelope.iKey = iKey;
|
|
@@ -10633,7 +10462,7 @@ var require_EnvelopeFactory = __commonJS({
|
|
|
10633
10462
|
envelope.tags = this.getTags(context, telemetry.tagOverrides);
|
|
10634
10463
|
envelope.time = new Date().toISOString();
|
|
10635
10464
|
envelope.ver = 1;
|
|
10636
|
-
envelope.sampleRate =
|
|
10465
|
+
envelope.sampleRate = config ? config.samplingPercentage : 100;
|
|
10637
10466
|
if (telemetryType === Contracts.TelemetryType.Metric) {
|
|
10638
10467
|
envelope.sampleRate = 100;
|
|
10639
10468
|
}
|
|
@@ -10845,17 +10674,17 @@ var require_TelemetryClient = __commonJS({
|
|
|
10845
10674
|
var TelemetryClient = function() {
|
|
10846
10675
|
function TelemetryClient2(iKey) {
|
|
10847
10676
|
this._telemetryProcessors = [];
|
|
10848
|
-
var
|
|
10849
|
-
this.config =
|
|
10677
|
+
var config = new Config(iKey);
|
|
10678
|
+
this.config = config;
|
|
10850
10679
|
this.context = new Context();
|
|
10851
10680
|
this.commonProperties = {};
|
|
10852
10681
|
var sender = new Sender(this.config);
|
|
10853
10682
|
this.channel = new Channel(function() {
|
|
10854
|
-
return
|
|
10683
|
+
return config.disableAppInsights;
|
|
10855
10684
|
}, function() {
|
|
10856
|
-
return
|
|
10685
|
+
return config.maxBatchSize;
|
|
10857
10686
|
}, function() {
|
|
10858
|
-
return
|
|
10687
|
+
return config.maxBatchIntervalMs;
|
|
10859
10688
|
}, sender);
|
|
10860
10689
|
}
|
|
10861
10690
|
TelemetryClient2.prototype.trackTrace = function(telemetry) {
|
|
@@ -11220,363 +11049,6 @@ var require_applicationinsights = __commonJS({
|
|
|
11220
11049
|
}
|
|
11221
11050
|
});
|
|
11222
11051
|
|
|
11223
|
-
// ../lib/telemetry/dist/package.json
|
|
11224
|
-
var require_package4 = __commonJS({
|
|
11225
|
-
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
11226
|
-
module2.exports = {
|
|
11227
|
-
name: "@sap/ux-telemetry",
|
|
11228
|
-
version: "1.10.4",
|
|
11229
|
-
description: "SAP Fiori tools telemetry library",
|
|
11230
|
-
main: "dist/src/index.js",
|
|
11231
|
-
author: "SAP SE",
|
|
11232
|
-
license: "MIT",
|
|
11233
|
-
private: true,
|
|
11234
|
-
azureInstrumentationKey: "0a65e45d-6bf4-421d-b845-61e888c50e9e",
|
|
11235
|
-
azureProdKey: "0a65e45d-6bf4-421d-b845-61e888c50e9e",
|
|
11236
|
-
scripts: {
|
|
11237
|
-
"pre-commit": "lint-staged --quiet",
|
|
11238
|
-
"clean:dist": "rimraf ./dist ./generators *.tsbuildinfo",
|
|
11239
|
-
clean: "rimraf ./reports",
|
|
11240
|
-
build: "ts-node ./build-script/ && yarn run clean && tsc --build ./",
|
|
11241
|
-
test: "cross-env SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY=false jest --maxWorkers=1 --ci --forceExit --detectOpenHandles",
|
|
11242
|
-
lint: "eslint . --ext .ts",
|
|
11243
|
-
"lint:summary": "eslint . --ext .ts -f summary",
|
|
11244
|
-
"lint:fix": "eslint --fix",
|
|
11245
|
-
"lint:fix:all": "eslint . --ext .ts --fix",
|
|
11246
|
-
"lint:report": "eslint . --ext .ts -f multiple ",
|
|
11247
|
-
"format:fix": "prettier --write --loglevel silent --ignore-path ../../../.prettierignore",
|
|
11248
|
-
"format:fix:all": "prettier --write '**/*.{css,scss,html,js,json,ts,tsx,yaml,yml}' '!**/{out,dist,node_modules}/**' '!**/*.{svg,png,xml}' --ignore-path ../../../.prettierignore",
|
|
11249
|
-
madge: "madge --warning --circular --extensions ts ./"
|
|
11250
|
-
},
|
|
11251
|
-
dependencies: {
|
|
11252
|
-
"@sap-ux/store": "0.3.8",
|
|
11253
|
-
"@sap/ux-cds": "1.10.4",
|
|
11254
|
-
"@sap/ux-common-utils": "1.10.4",
|
|
11255
|
-
"@sap/ux-feature-toggle": "1.10.4",
|
|
11256
|
-
"@sap/ux-project-access": "1.10.4",
|
|
11257
|
-
applicationinsights: "1.4.1",
|
|
11258
|
-
axios: "0.26.0",
|
|
11259
|
-
"performance-now": "2.1.0",
|
|
11260
|
-
yaml: "2.2.2"
|
|
11261
|
-
},
|
|
11262
|
-
devDependencies: {
|
|
11263
|
-
memfs: "3.4.13",
|
|
11264
|
-
"ts-jest": "29.1.1",
|
|
11265
|
-
"ts-node": "8.5.2",
|
|
11266
|
-
typescript: "4.9.5",
|
|
11267
|
-
unionfs: "4.4.0"
|
|
11268
|
-
},
|
|
11269
|
-
files: [
|
|
11270
|
-
"dist/"
|
|
11271
|
-
],
|
|
11272
|
-
jestSonar: {
|
|
11273
|
-
reportPath: "reports/test/unit",
|
|
11274
|
-
reportFile: "test-report.xml"
|
|
11275
|
-
},
|
|
11276
|
-
"eslint-formatter-multiple": {
|
|
11277
|
-
formatters: [
|
|
11278
|
-
{
|
|
11279
|
-
name: "stylish",
|
|
11280
|
-
output: "console"
|
|
11281
|
-
},
|
|
11282
|
-
{
|
|
11283
|
-
name: "json",
|
|
11284
|
-
output: "file",
|
|
11285
|
-
path: "reports/lint/eslint.json"
|
|
11286
|
-
},
|
|
11287
|
-
{
|
|
11288
|
-
name: "checkstyle",
|
|
11289
|
-
output: "file",
|
|
11290
|
-
path: "reports/lint/eslint.checkstyle.xml"
|
|
11291
|
-
}
|
|
11292
|
-
]
|
|
11293
|
-
}
|
|
11294
|
-
};
|
|
11295
|
-
}
|
|
11296
|
-
});
|
|
11297
|
-
|
|
11298
|
-
// ../lib/telemetry/dist/src/util/telemetryClientConfig.js
|
|
11299
|
-
var require_telemetryClientConfig = __commonJS({
|
|
11300
|
-
"../lib/telemetry/dist/src/util/telemetryClientConfig.js"(exports2) {
|
|
11301
|
-
"use strict";
|
|
11302
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11303
|
-
exports2.configAzureTelemetryClient = void 0;
|
|
11304
|
-
function configAzureTelemetryClient(client) {
|
|
11305
|
-
client.channel.setUseDiskRetryCaching(true);
|
|
11306
|
-
client.addTelemetryProcessor((envelope) => {
|
|
11307
|
-
envelope.tags["ai.location.ip"] = "0.0.0.0";
|
|
11308
|
-
envelope.tags["ai.cloud.roleInstance"] = "masked";
|
|
11309
|
-
envelope.tags["ai.cloud.role"] = "masked";
|
|
11310
|
-
envelope.tags["ai.device.type"] = "masked";
|
|
11311
|
-
return true;
|
|
11312
|
-
});
|
|
11313
|
-
}
|
|
11314
|
-
exports2.configAzureTelemetryClient = configAzureTelemetryClient;
|
|
11315
|
-
}
|
|
11316
|
-
});
|
|
11317
|
-
|
|
11318
|
-
// ../lib/telemetry/dist/src/util/reporting.js
|
|
11319
|
-
var require_reporting = __commonJS({
|
|
11320
|
-
"../lib/telemetry/dist/src/util/reporting.js"(exports2) {
|
|
11321
|
-
"use strict";
|
|
11322
|
-
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
11323
|
-
if (k2 === void 0)
|
|
11324
|
-
k2 = k;
|
|
11325
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11326
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11327
|
-
desc = { enumerable: true, get: function() {
|
|
11328
|
-
return m[k];
|
|
11329
|
-
} };
|
|
11330
|
-
}
|
|
11331
|
-
Object.defineProperty(o, k2, desc);
|
|
11332
|
-
} : function(o, m, k, k2) {
|
|
11333
|
-
if (k2 === void 0)
|
|
11334
|
-
k2 = k;
|
|
11335
|
-
o[k2] = m[k];
|
|
11336
|
-
});
|
|
11337
|
-
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
11338
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11339
|
-
} : function(o, v) {
|
|
11340
|
-
o["default"] = v;
|
|
11341
|
-
});
|
|
11342
|
-
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
11343
|
-
if (mod && mod.__esModule)
|
|
11344
|
-
return mod;
|
|
11345
|
-
var result2 = {};
|
|
11346
|
-
if (mod != null) {
|
|
11347
|
-
for (var k in mod)
|
|
11348
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
11349
|
-
__createBinding(result2, mod, k);
|
|
11350
|
-
}
|
|
11351
|
-
__setModuleDefault(result2, mod);
|
|
11352
|
-
return result2;
|
|
11353
|
-
};
|
|
11354
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11355
|
-
exports2.reportEnableTelemetryOnOff = exports2.reportRuntimeError = void 0;
|
|
11356
|
-
var EventName_1 = require_EventName();
|
|
11357
|
-
var appInsights = __importStar(require_applicationinsights());
|
|
11358
|
-
var telemetryPackageJSON = __importStar(require_package4());
|
|
11359
|
-
var telemetryClientConfig_1 = require_telemetryClientConfig();
|
|
11360
|
-
var parseErrorStack = (errorStack) => {
|
|
11361
|
-
const regexps = [/sap-ux.+/gi, /[a-zA-Z-]+\/ide-extension\/.+/gi, /(\/telemetry\/.+)/gi];
|
|
11362
|
-
const parsedStack = [];
|
|
11363
|
-
const filtered = errorStack.split("\n").filter((line) => !!line.match(/^\s*at .*(\S+:\d+|\(native\))/m));
|
|
11364
|
-
if (!filtered.length) {
|
|
11365
|
-
return parsedStack;
|
|
11366
|
-
}
|
|
11367
|
-
filtered.forEach((line) => {
|
|
11368
|
-
let sanitizedLine = line.replace(/^\s+/, "");
|
|
11369
|
-
const location = line.match(/ (\((.+):(\d+):(\d+)\)$)/);
|
|
11370
|
-
if (!location) {
|
|
11371
|
-
return;
|
|
11372
|
-
}
|
|
11373
|
-
let filepath = null;
|
|
11374
|
-
const normalizedFilepath = location[2].replace(/\\/g, "/");
|
|
11375
|
-
for (const regexp of regexps) {
|
|
11376
|
-
const match = normalizedFilepath.match(regexp);
|
|
11377
|
-
if (match) {
|
|
11378
|
-
filepath = match[0];
|
|
11379
|
-
break;
|
|
11380
|
-
}
|
|
11381
|
-
}
|
|
11382
|
-
if (!filepath) {
|
|
11383
|
-
return;
|
|
11384
|
-
}
|
|
11385
|
-
sanitizedLine = sanitizedLine.replace(location[0], "");
|
|
11386
|
-
const functionName = sanitizedLine.split(/\s+/).slice(1).join("");
|
|
11387
|
-
const lineNumber = location[3];
|
|
11388
|
-
const columnNumber = location[4];
|
|
11389
|
-
const parsedStackLine = `${functionName} at (${filepath}:${lineNumber}:${columnNumber});`;
|
|
11390
|
-
parsedStack.push(parsedStackLine);
|
|
11391
|
-
});
|
|
11392
|
-
return parsedStack;
|
|
11393
|
-
};
|
|
11394
|
-
var reportingTelemetryClient;
|
|
11395
|
-
var _a2;
|
|
11396
|
-
if (((_a2 = process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY) == null ? void 0 : _a2.trim()) !== "true") {
|
|
11397
|
-
reportingTelemetryClient = new appInsights.TelemetryClient(telemetryPackageJSON.azureInstrumentationKey);
|
|
11398
|
-
(0, telemetryClientConfig_1.configAzureTelemetryClient)(reportingTelemetryClient);
|
|
11399
|
-
}
|
|
11400
|
-
var reportRuntimeError = (error3) => {
|
|
11401
|
-
const properties = { message: error3.message };
|
|
11402
|
-
if (error3.stack) {
|
|
11403
|
-
const parsedStack = parseErrorStack(error3.stack);
|
|
11404
|
-
if (parsedStack.length) {
|
|
11405
|
-
properties.stack = parsedStack.join(" \n");
|
|
11406
|
-
}
|
|
11407
|
-
}
|
|
11408
|
-
const telemetryEvent = {
|
|
11409
|
-
name: EventName_1.EventName.TELEMETRY_SETTINGS_INIT_FAILED,
|
|
11410
|
-
properties,
|
|
11411
|
-
measurements: {}
|
|
11412
|
-
};
|
|
11413
|
-
if (process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY !== "true") {
|
|
11414
|
-
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
11415
|
-
}
|
|
11416
|
-
};
|
|
11417
|
-
exports2.reportRuntimeError = reportRuntimeError;
|
|
11418
|
-
var reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
11419
|
-
const telemetryEvent = {
|
|
11420
|
-
name: EventName_1.EventName.DISABLE_TELEMETRY,
|
|
11421
|
-
properties: {
|
|
11422
|
-
disableTelemetry: `${!enableTelemetry}`,
|
|
11423
|
-
...commonProperties
|
|
11424
|
-
},
|
|
11425
|
-
measurements: {}
|
|
11426
|
-
};
|
|
11427
|
-
if (process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY !== "true") {
|
|
11428
|
-
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
11429
|
-
}
|
|
11430
|
-
};
|
|
11431
|
-
exports2.reportEnableTelemetryOnOff = reportEnableTelemetryOnOff;
|
|
11432
|
-
}
|
|
11433
|
-
});
|
|
11434
|
-
|
|
11435
|
-
// ../lib/telemetry/dist/src/system/system.js
|
|
11436
|
-
var require_system2 = __commonJS({
|
|
11437
|
-
"../lib/telemetry/dist/src/system/system.js"(exports2, module2) {
|
|
11438
|
-
"use strict";
|
|
11439
|
-
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
11440
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
11441
|
-
};
|
|
11442
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11443
|
-
exports2.TelemetrySystem = void 0;
|
|
11444
|
-
var fs_1 = __importDefault(require("fs"));
|
|
11445
|
-
var system_1 = require_system();
|
|
11446
|
-
var cloudDebugger_1 = require_cloudDebugger();
|
|
11447
|
-
var ux_common_utils_1 = require_dist();
|
|
11448
|
-
var reporting_1 = require_reporting();
|
|
11449
|
-
var TelemetrySystem = class {
|
|
11450
|
-
static init() {
|
|
11451
|
-
(0, cloudDebugger_1.debug)(`start System.init`);
|
|
11452
|
-
TelemetrySystem.modules = (0, system_1.processMatchingPaths)(TelemetrySystem.modules);
|
|
11453
|
-
let pathBase = TelemetrySystem.getMatchingModulePath(module2);
|
|
11454
|
-
(0, cloudDebugger_1.debug)(`base path: ${pathBase}`);
|
|
11455
|
-
if (!pathBase) {
|
|
11456
|
-
TelemetrySystem.fallbackModules = (0, system_1.processMatchingPaths)(TelemetrySystem.fallbackModules);
|
|
11457
|
-
pathBase = TelemetrySystem.getMatchingModulePath(module2, true);
|
|
11458
|
-
}
|
|
11459
|
-
const manifestPath = TelemetrySystem.getManifestPath(pathBase);
|
|
11460
|
-
(0, cloudDebugger_1.debug)(`package.json path: ${manifestPath}`);
|
|
11461
|
-
TelemetrySystem.manifest = TelemetrySystem.getManifestJSON(manifestPath);
|
|
11462
|
-
}
|
|
11463
|
-
static getManifestJSON(path) {
|
|
11464
|
-
try {
|
|
11465
|
-
return JSON.parse(fs_1.default.readFileSync(path, "utf-8"));
|
|
11466
|
-
} catch (err) {
|
|
11467
|
-
console.log(`[Telemetry]: ${err.message}`);
|
|
11468
|
-
return null;
|
|
11469
|
-
}
|
|
11470
|
-
}
|
|
11471
|
-
static getManifestPath(pathBase) {
|
|
11472
|
-
let manifestPath = pathBase;
|
|
11473
|
-
if ((0, ux_common_utils_1.isAppStudio)() && manifestPath && manifestPath.indexOf("generators") < 0 && manifestPath.indexOf("deployment-generator") < 0 && manifestPath.indexOf("/ux-ui5-tooling") < 0) {
|
|
11474
|
-
manifestPath = manifestPath.concat("/extension");
|
|
11475
|
-
}
|
|
11476
|
-
if (manifestPath && manifestPath.indexOf("language-server") > -1) {
|
|
11477
|
-
manifestPath = manifestPath.replace(/\/([^/]+)\/?$/, "/ide-extension");
|
|
11478
|
-
}
|
|
11479
|
-
if (manifestPath && manifestPath.indexOf("generators") > -1 && manifestPath.indexOf("@sap/generator-fiori") < 0) {
|
|
11480
|
-
if (manifestPath.indexOf("deployment-generator") > -1) {
|
|
11481
|
-
manifestPath = `${manifestPath}/telemetry`;
|
|
11482
|
-
} else {
|
|
11483
|
-
manifestPath = manifestPath.slice(0, manifestPath.lastIndexOf("/"));
|
|
11484
|
-
}
|
|
11485
|
-
}
|
|
11486
|
-
if (manifestPath && manifestPath.indexOf("@sap/generator-fiori") > -1) {
|
|
11487
|
-
manifestPath = `${manifestPath}/telemetry`;
|
|
11488
|
-
}
|
|
11489
|
-
if (manifestPath) {
|
|
11490
|
-
return `${manifestPath}/package.json`;
|
|
11491
|
-
} else {
|
|
11492
|
-
return "";
|
|
11493
|
-
}
|
|
11494
|
-
}
|
|
11495
|
-
static getMatchingModulePath(module3, useFallbackModules) {
|
|
11496
|
-
let modulePath = module3.filename || __dirname;
|
|
11497
|
-
if ((modulePath == null ? void 0 : modulePath.indexOf("\\")) > -1) {
|
|
11498
|
-
modulePath = modulePath.replace(/\\/g, "/");
|
|
11499
|
-
}
|
|
11500
|
-
const matchingPaths = useFallbackModules ? TelemetrySystem.fallbackModules : TelemetrySystem.modules;
|
|
11501
|
-
const matchingPath = TelemetrySystem.matchModule(modulePath, matchingPaths);
|
|
11502
|
-
if (!matchingPath && module3.parent) {
|
|
11503
|
-
return TelemetrySystem.getMatchingModulePath(module3.parent, useFallbackModules);
|
|
11504
|
-
} else {
|
|
11505
|
-
return matchingPath;
|
|
11506
|
-
}
|
|
11507
|
-
}
|
|
11508
|
-
static matchModule(modulePath, matchingPaths) {
|
|
11509
|
-
let path = null;
|
|
11510
|
-
matchingPaths.forEach((module3) => {
|
|
11511
|
-
module3.patterns.forEach((patternRegExp) => {
|
|
11512
|
-
const matchToken = modulePath == null ? void 0 : modulePath.match(patternRegExp);
|
|
11513
|
-
if (matchToken && matchToken.length > 0) {
|
|
11514
|
-
path = matchToken[0];
|
|
11515
|
-
TelemetrySystem.WORKSTREAM = module3.workStream;
|
|
11516
|
-
}
|
|
11517
|
-
});
|
|
11518
|
-
});
|
|
11519
|
-
return path;
|
|
11520
|
-
}
|
|
11521
|
-
};
|
|
11522
|
-
exports2.TelemetrySystem = TelemetrySystem;
|
|
11523
|
-
TelemetrySystem.modules = [
|
|
11524
|
-
{
|
|
11525
|
-
workStream: "extension",
|
|
11526
|
-
patterns: ["ide-extension", "sap-ux-[\\w-.@]+"]
|
|
11527
|
-
},
|
|
11528
|
-
{
|
|
11529
|
-
workStream: "core",
|
|
11530
|
-
patterns: ["core"]
|
|
11531
|
-
}
|
|
11532
|
-
];
|
|
11533
|
-
TelemetrySystem.fallbackModules = [
|
|
11534
|
-
{
|
|
11535
|
-
workStream: "extension",
|
|
11536
|
-
patterns: ["language-server[\\w.-]*"]
|
|
11537
|
-
},
|
|
11538
|
-
{
|
|
11539
|
-
workStream: "core",
|
|
11540
|
-
patterns: ["generators", "project-generator", "deployment-generator", "ux-ui5-tooling", "generator-common"]
|
|
11541
|
-
}
|
|
11542
|
-
];
|
|
11543
|
-
var _a2;
|
|
11544
|
-
try {
|
|
11545
|
-
if (((_a2 = process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY) == null ? void 0 : _a2.trim()) !== "true") {
|
|
11546
|
-
TelemetrySystem.init();
|
|
11547
|
-
}
|
|
11548
|
-
} catch (err) {
|
|
11549
|
-
(0, reporting_1.reportRuntimeError)(err);
|
|
11550
|
-
}
|
|
11551
|
-
}
|
|
11552
|
-
});
|
|
11553
|
-
|
|
11554
|
-
// ../lib/telemetry/dist/src/client/client.js
|
|
11555
|
-
var require_client = __commonJS({
|
|
11556
|
-
"../lib/telemetry/dist/src/client/client.js"(exports2) {
|
|
11557
|
-
"use strict";
|
|
11558
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11559
|
-
exports2.Client = void 0;
|
|
11560
|
-
var Client = class {
|
|
11561
|
-
constructor() {
|
|
11562
|
-
this.applicationKey = "";
|
|
11563
|
-
this.extensionName = "";
|
|
11564
|
-
this.extensionVersion = "";
|
|
11565
|
-
}
|
|
11566
|
-
getApplicationKey() {
|
|
11567
|
-
return this.applicationKey;
|
|
11568
|
-
}
|
|
11569
|
-
getExtensionVersion() {
|
|
11570
|
-
return this.extensionVersion;
|
|
11571
|
-
}
|
|
11572
|
-
getExtensionName() {
|
|
11573
|
-
return this.extensionName;
|
|
11574
|
-
}
|
|
11575
|
-
};
|
|
11576
|
-
exports2.Client = Client;
|
|
11577
|
-
}
|
|
11578
|
-
});
|
|
11579
|
-
|
|
11580
11052
|
// ../lib/telemetry/dist/src/client/model/EventHeader.js
|
|
11581
11053
|
var require_EventHeader = __commonJS({
|
|
11582
11054
|
"../lib/telemetry/dist/src/client/model/EventHeader.js"(exports2) {
|
|
@@ -11608,12 +11080,32 @@ var require_SampleRate = __commonJS({
|
|
|
11608
11080
|
"use strict";
|
|
11609
11081
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11610
11082
|
exports2.SampleRate = void 0;
|
|
11611
|
-
var
|
|
11612
|
-
(function(
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
})(
|
|
11083
|
+
var SampleRate3;
|
|
11084
|
+
(function(SampleRate4) {
|
|
11085
|
+
SampleRate4[SampleRate4["OnePercent"] = 0] = "OnePercent";
|
|
11086
|
+
SampleRate4[SampleRate4["TenPercent"] = 1] = "TenPercent";
|
|
11087
|
+
SampleRate4[SampleRate4["NoSampling"] = 2] = "NoSampling";
|
|
11088
|
+
})(SampleRate3 = exports2.SampleRate || (exports2.SampleRate = {}));
|
|
11089
|
+
}
|
|
11090
|
+
});
|
|
11091
|
+
|
|
11092
|
+
// ../lib/telemetry/dist/src/util/telemetryClientConfig.js
|
|
11093
|
+
var require_telemetryClientConfig = __commonJS({
|
|
11094
|
+
"../lib/telemetry/dist/src/util/telemetryClientConfig.js"(exports2) {
|
|
11095
|
+
"use strict";
|
|
11096
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11097
|
+
exports2.configAzureTelemetryClient = void 0;
|
|
11098
|
+
function configAzureTelemetryClient(client) {
|
|
11099
|
+
client.channel.setUseDiskRetryCaching(true);
|
|
11100
|
+
client.addTelemetryProcessor((envelope) => {
|
|
11101
|
+
envelope.tags["ai.location.ip"] = "0.0.0.0";
|
|
11102
|
+
envelope.tags["ai.cloud.roleInstance"] = "masked";
|
|
11103
|
+
envelope.tags["ai.cloud.role"] = "masked";
|
|
11104
|
+
envelope.tags["ai.device.type"] = "masked";
|
|
11105
|
+
return true;
|
|
11106
|
+
});
|
|
11107
|
+
}
|
|
11108
|
+
exports2.configAzureTelemetryClient = configAzureTelemetryClient;
|
|
11617
11109
|
}
|
|
11618
11110
|
});
|
|
11619
11111
|
|
|
@@ -11659,7 +11151,7 @@ var require_appInsightClient = __commonJS({
|
|
|
11659
11151
|
var appInsights = __importStar(require_applicationinsights());
|
|
11660
11152
|
var EventHeader_1 = require_EventHeader();
|
|
11661
11153
|
var SampleRate_1 = require_SampleRate();
|
|
11662
|
-
var system_1 =
|
|
11154
|
+
var system_1 = require_system();
|
|
11663
11155
|
var telemetryClientConfig_1 = require_telemetryClientConfig();
|
|
11664
11156
|
var ApplicationInsightClient = class extends client_1.Client {
|
|
11665
11157
|
constructor(applicationKey, extensionName, extensionVersion) {
|
|
@@ -11815,6 +11307,195 @@ var require_toolsSuiteTelemetryClient = __commonJS({
|
|
|
11815
11307
|
}
|
|
11816
11308
|
});
|
|
11817
11309
|
|
|
11310
|
+
// ../lib/common-utils/dist/appStudio.js
|
|
11311
|
+
var require_appStudio = __commonJS({
|
|
11312
|
+
"../lib/common-utils/dist/appStudio.js"(exports2) {
|
|
11313
|
+
"use strict";
|
|
11314
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11315
|
+
exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = exports2.ENV = void 0;
|
|
11316
|
+
var ENV;
|
|
11317
|
+
(function(ENV2) {
|
|
11318
|
+
ENV2["PROXY_URL"] = "HTTP_PROXY";
|
|
11319
|
+
ENV2["H2O_URL"] = "H2O_URL";
|
|
11320
|
+
})(ENV = exports2.ENV || (exports2.ENV = {}));
|
|
11321
|
+
function isAppStudio2() {
|
|
11322
|
+
return !!process.env[ENV.H2O_URL];
|
|
11323
|
+
}
|
|
11324
|
+
exports2.isAppStudio = isAppStudio2;
|
|
11325
|
+
function getAppStudioBaseURL() {
|
|
11326
|
+
return process.env[ENV.H2O_URL];
|
|
11327
|
+
}
|
|
11328
|
+
exports2.getAppStudioBaseURL = getAppStudioBaseURL;
|
|
11329
|
+
function getAppStudioProxyURL() {
|
|
11330
|
+
return process.env[ENV.PROXY_URL];
|
|
11331
|
+
}
|
|
11332
|
+
exports2.getAppStudioProxyURL = getAppStudioProxyURL;
|
|
11333
|
+
}
|
|
11334
|
+
});
|
|
11335
|
+
|
|
11336
|
+
// ../lib/common-utils/dist/file.js
|
|
11337
|
+
var require_file = __commonJS({
|
|
11338
|
+
"../lib/common-utils/dist/file.js"(exports2) {
|
|
11339
|
+
"use strict";
|
|
11340
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
11341
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
11342
|
+
};
|
|
11343
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11344
|
+
exports2.toPosixPath = void 0;
|
|
11345
|
+
var path_1 = __importDefault(require("path"));
|
|
11346
|
+
function toPosixPath(dirPath) {
|
|
11347
|
+
return path_1.default.normalize(dirPath).split(/[\\/]/g).join(path_1.default.posix.sep);
|
|
11348
|
+
}
|
|
11349
|
+
exports2.toPosixPath = toPosixPath;
|
|
11350
|
+
}
|
|
11351
|
+
});
|
|
11352
|
+
|
|
11353
|
+
// ../lib/common-utils/dist/promise.js
|
|
11354
|
+
var require_promise2 = __commonJS({
|
|
11355
|
+
"../lib/common-utils/dist/promise.js"(exports2) {
|
|
11356
|
+
"use strict";
|
|
11357
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11358
|
+
exports2.allSettled = void 0;
|
|
11359
|
+
function allSettled(promises2) {
|
|
11360
|
+
if (!promises2 || promises2.length === 0) {
|
|
11361
|
+
return Promise.resolve([]);
|
|
11362
|
+
}
|
|
11363
|
+
const results = Array(promises2.length);
|
|
11364
|
+
let count = 0;
|
|
11365
|
+
return new Promise((resolve) => {
|
|
11366
|
+
promises2.forEach(async (promise, index) => {
|
|
11367
|
+
try {
|
|
11368
|
+
const result2 = await Promise.resolve(promise);
|
|
11369
|
+
results[index] = { status: "fulfilled", value: result2 };
|
|
11370
|
+
count++;
|
|
11371
|
+
if (count === promises2.length) {
|
|
11372
|
+
resolve(results);
|
|
11373
|
+
}
|
|
11374
|
+
} catch (err) {
|
|
11375
|
+
results[index] = { status: "rejected", reason: err };
|
|
11376
|
+
count++;
|
|
11377
|
+
if (count === promises2.length) {
|
|
11378
|
+
resolve(results);
|
|
11379
|
+
}
|
|
11380
|
+
}
|
|
11381
|
+
});
|
|
11382
|
+
});
|
|
11383
|
+
}
|
|
11384
|
+
exports2.allSettled = allSettled;
|
|
11385
|
+
}
|
|
11386
|
+
});
|
|
11387
|
+
|
|
11388
|
+
// ../lib/common-utils/dist/regexp.js
|
|
11389
|
+
var require_regexp = __commonJS({
|
|
11390
|
+
"../lib/common-utils/dist/regexp.js"(exports2) {
|
|
11391
|
+
"use strict";
|
|
11392
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11393
|
+
exports2.escapeRegExp = void 0;
|
|
11394
|
+
function escapeRegExp(s) {
|
|
11395
|
+
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
11396
|
+
}
|
|
11397
|
+
exports2.escapeRegExp = escapeRegExp;
|
|
11398
|
+
}
|
|
11399
|
+
});
|
|
11400
|
+
|
|
11401
|
+
// ../lib/common-utils/dist/help/helpTopics.js
|
|
11402
|
+
var require_helpTopics = __commonJS({
|
|
11403
|
+
"../lib/common-utils/dist/help/helpTopics.js"(exports2) {
|
|
11404
|
+
"use strict";
|
|
11405
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11406
|
+
exports2.getHelpUrl = exports2.GUIDED_ANSWERS_LAUNCH_CMD_ID = exports2.GUIDED_ANSWERS_EXTENSION_ID = exports2.HELP_NODES = exports2.HELP_TREE = void 0;
|
|
11407
|
+
var HELP_TREE;
|
|
11408
|
+
(function(HELP_TREE2) {
|
|
11409
|
+
HELP_TREE2[HELP_TREE2["FIORI_TOOLS"] = 3046] = "FIORI_TOOLS";
|
|
11410
|
+
})(HELP_TREE = exports2.HELP_TREE || (exports2.HELP_TREE = {}));
|
|
11411
|
+
exports2.HELP_NODES = {
|
|
11412
|
+
FIORI_TOOLS: 45995,
|
|
11413
|
+
DEV_PLATFORM: 45996,
|
|
11414
|
+
FIORI_APP_GENERATOR: 48363,
|
|
11415
|
+
BAS_CATALOG_SERVICES_REQUEST_FAILED: 48366,
|
|
11416
|
+
APPLICATION_PREVIEW: 52881,
|
|
11417
|
+
CERTIFICATE_ERROR: 53643,
|
|
11418
|
+
DESTINATION_MISCONFIGURED: 54336,
|
|
11419
|
+
DESTINATION_UNAVAILABLE: 51208,
|
|
11420
|
+
DESTINATION_NOT_FOUND: 51208,
|
|
11421
|
+
BAD_GATEWAY: 48366,
|
|
11422
|
+
DESTINATION_BAD_GATEWAY_503: 52526,
|
|
11423
|
+
NO_V4_SERVICES: 57573
|
|
11424
|
+
};
|
|
11425
|
+
exports2.GUIDED_ANSWERS_EXTENSION_ID = "saposs.sap-guided-answers-extension";
|
|
11426
|
+
exports2.GUIDED_ANSWERS_LAUNCH_CMD_ID = "sap.ux.guidedAnswer.openGuidedAnswer";
|
|
11427
|
+
var GUIDED_ANSWERS_SUPPORT_BASE_URL = "https://ga.support.sap.com/dtp/viewer/index.html";
|
|
11428
|
+
function getHelpUrl(treeId, nodeIds) {
|
|
11429
|
+
let actions = "";
|
|
11430
|
+
if (nodeIds.length > 0) {
|
|
11431
|
+
actions = `/actions/${nodeIds.join(":")}`;
|
|
11432
|
+
}
|
|
11433
|
+
return `${GUIDED_ANSWERS_SUPPORT_BASE_URL}#/tree/${treeId}${actions}`;
|
|
11434
|
+
}
|
|
11435
|
+
exports2.getHelpUrl = getHelpUrl;
|
|
11436
|
+
}
|
|
11437
|
+
});
|
|
11438
|
+
|
|
11439
|
+
// ../lib/common-utils/dist/index.js
|
|
11440
|
+
var require_dist = __commonJS({
|
|
11441
|
+
"../lib/common-utils/dist/index.js"(exports2) {
|
|
11442
|
+
"use strict";
|
|
11443
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
11444
|
+
if (k2 === void 0)
|
|
11445
|
+
k2 = k;
|
|
11446
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11447
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11448
|
+
desc = { enumerable: true, get: function() {
|
|
11449
|
+
return m[k];
|
|
11450
|
+
} };
|
|
11451
|
+
}
|
|
11452
|
+
Object.defineProperty(o, k2, desc);
|
|
11453
|
+
} : function(o, m, k, k2) {
|
|
11454
|
+
if (k2 === void 0)
|
|
11455
|
+
k2 = k;
|
|
11456
|
+
o[k2] = m[k];
|
|
11457
|
+
});
|
|
11458
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
11459
|
+
for (var p in m)
|
|
11460
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
11461
|
+
__createBinding(exports3, m, p);
|
|
11462
|
+
};
|
|
11463
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
11464
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
11465
|
+
};
|
|
11466
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11467
|
+
exports2.filterReferenceUri = exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = void 0;
|
|
11468
|
+
var os_1 = require("os");
|
|
11469
|
+
var path_1 = __importDefault(require("path"));
|
|
11470
|
+
var appStudio_1 = require_appStudio();
|
|
11471
|
+
Object.defineProperty(exports2, "isAppStudio", { enumerable: true, get: function() {
|
|
11472
|
+
return appStudio_1.isAppStudio;
|
|
11473
|
+
} });
|
|
11474
|
+
Object.defineProperty(exports2, "getAppStudioBaseURL", { enumerable: true, get: function() {
|
|
11475
|
+
return appStudio_1.getAppStudioBaseURL;
|
|
11476
|
+
} });
|
|
11477
|
+
Object.defineProperty(exports2, "getAppStudioProxyURL", { enumerable: true, get: function() {
|
|
11478
|
+
return appStudio_1.getAppStudioProxyURL;
|
|
11479
|
+
} });
|
|
11480
|
+
__exportStar(require_file(), exports2);
|
|
11481
|
+
__exportStar(require_promise2(), exports2);
|
|
11482
|
+
__exportStar(require_regexp(), exports2);
|
|
11483
|
+
__exportStar(require_helpTopics(), exports2);
|
|
11484
|
+
var FioriToolsSettings;
|
|
11485
|
+
(function(FioriToolsSettings2) {
|
|
11486
|
+
FioriToolsSettings2["dir"] = ".fioritools";
|
|
11487
|
+
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
11488
|
+
var getFioriToolsDirectory = () => {
|
|
11489
|
+
return path_1.default.join((0, os_1.homedir)(), FioriToolsSettings.dir);
|
|
11490
|
+
};
|
|
11491
|
+
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
11492
|
+
function filterReferenceUri(metadata) {
|
|
11493
|
+
return metadata == null ? void 0 : metadata.replace(/ Uri="(http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[0])/g, ` Uri=".`);
|
|
11494
|
+
}
|
|
11495
|
+
exports2.filterReferenceUri = filterReferenceUri;
|
|
11496
|
+
}
|
|
11497
|
+
});
|
|
11498
|
+
|
|
11818
11499
|
// ../../node_modules/axios/lib/helpers/bind.js
|
|
11819
11500
|
var require_bind = __commonJS({
|
|
11820
11501
|
"../../node_modules/axios/lib/helpers/bind.js"(exports2, module2) {
|
|
@@ -12088,8 +11769,8 @@ var require_normalizeHeaderName = __commonJS({
|
|
|
12088
11769
|
var require_enhanceError = __commonJS({
|
|
12089
11770
|
"../../node_modules/axios/lib/core/enhanceError.js"(exports2, module2) {
|
|
12090
11771
|
"use strict";
|
|
12091
|
-
module2.exports = function enhanceError(error3,
|
|
12092
|
-
error3.config =
|
|
11772
|
+
module2.exports = function enhanceError(error3, config, code, request, response) {
|
|
11773
|
+
error3.config = config;
|
|
12093
11774
|
if (code) {
|
|
12094
11775
|
error3.code = code;
|
|
12095
11776
|
}
|
|
@@ -12121,9 +11802,9 @@ var require_createError = __commonJS({
|
|
|
12121
11802
|
"../../node_modules/axios/lib/core/createError.js"(exports2, module2) {
|
|
12122
11803
|
"use strict";
|
|
12123
11804
|
var enhanceError = require_enhanceError();
|
|
12124
|
-
module2.exports = function createError(message,
|
|
11805
|
+
module2.exports = function createError(message, config, code, request, response) {
|
|
12125
11806
|
var error3 = new Error(message);
|
|
12126
|
-
return enhanceError(error3,
|
|
11807
|
+
return enhanceError(error3, config, code, request, response);
|
|
12127
11808
|
};
|
|
12128
11809
|
}
|
|
12129
11810
|
});
|
|
@@ -12346,32 +12027,32 @@ var require_xhr = __commonJS({
|
|
|
12346
12027
|
var createError = require_createError();
|
|
12347
12028
|
var defaults = require_defaults();
|
|
12348
12029
|
var Cancel = require_Cancel();
|
|
12349
|
-
module2.exports = function xhrAdapter(
|
|
12030
|
+
module2.exports = function xhrAdapter(config) {
|
|
12350
12031
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
12351
|
-
var requestData =
|
|
12352
|
-
var requestHeaders =
|
|
12353
|
-
var responseType =
|
|
12032
|
+
var requestData = config.data;
|
|
12033
|
+
var requestHeaders = config.headers;
|
|
12034
|
+
var responseType = config.responseType;
|
|
12354
12035
|
var onCanceled;
|
|
12355
12036
|
function done() {
|
|
12356
|
-
if (
|
|
12357
|
-
|
|
12037
|
+
if (config.cancelToken) {
|
|
12038
|
+
config.cancelToken.unsubscribe(onCanceled);
|
|
12358
12039
|
}
|
|
12359
|
-
if (
|
|
12360
|
-
|
|
12040
|
+
if (config.signal) {
|
|
12041
|
+
config.signal.removeEventListener("abort", onCanceled);
|
|
12361
12042
|
}
|
|
12362
12043
|
}
|
|
12363
12044
|
if (utils.isFormData(requestData)) {
|
|
12364
12045
|
delete requestHeaders["Content-Type"];
|
|
12365
12046
|
}
|
|
12366
12047
|
var request = new XMLHttpRequest();
|
|
12367
|
-
if (
|
|
12368
|
-
var username =
|
|
12369
|
-
var password =
|
|
12048
|
+
if (config.auth) {
|
|
12049
|
+
var username = config.auth.username || "";
|
|
12050
|
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
12370
12051
|
requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
|
|
12371
12052
|
}
|
|
12372
|
-
var fullPath = buildFullPath(
|
|
12373
|
-
request.open(
|
|
12374
|
-
request.timeout =
|
|
12053
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
12054
|
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
12055
|
+
request.timeout = config.timeout;
|
|
12375
12056
|
function onloadend() {
|
|
12376
12057
|
if (!request) {
|
|
12377
12058
|
return;
|
|
@@ -12383,7 +12064,7 @@ var require_xhr = __commonJS({
|
|
|
12383
12064
|
status: request.status,
|
|
12384
12065
|
statusText: request.statusText,
|
|
12385
12066
|
headers: responseHeaders,
|
|
12386
|
-
config
|
|
12067
|
+
config,
|
|
12387
12068
|
request
|
|
12388
12069
|
};
|
|
12389
12070
|
settle(function _resolve(value) {
|
|
@@ -12412,26 +12093,26 @@ var require_xhr = __commonJS({
|
|
|
12412
12093
|
if (!request) {
|
|
12413
12094
|
return;
|
|
12414
12095
|
}
|
|
12415
|
-
reject(createError("Request aborted",
|
|
12096
|
+
reject(createError("Request aborted", config, "ECONNABORTED", request));
|
|
12416
12097
|
request = null;
|
|
12417
12098
|
};
|
|
12418
12099
|
request.onerror = function handleError() {
|
|
12419
|
-
reject(createError("Network Error",
|
|
12100
|
+
reject(createError("Network Error", config, null, request));
|
|
12420
12101
|
request = null;
|
|
12421
12102
|
};
|
|
12422
12103
|
request.ontimeout = function handleTimeout() {
|
|
12423
|
-
var timeoutErrorMessage =
|
|
12424
|
-
var transitional =
|
|
12425
|
-
if (
|
|
12426
|
-
timeoutErrorMessage =
|
|
12104
|
+
var timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
12105
|
+
var transitional = config.transitional || defaults.transitional;
|
|
12106
|
+
if (config.timeoutErrorMessage) {
|
|
12107
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
12427
12108
|
}
|
|
12428
|
-
reject(createError(timeoutErrorMessage,
|
|
12109
|
+
reject(createError(timeoutErrorMessage, config, transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", request));
|
|
12429
12110
|
request = null;
|
|
12430
12111
|
};
|
|
12431
12112
|
if (utils.isStandardBrowserEnv()) {
|
|
12432
|
-
var xsrfValue = (
|
|
12113
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : void 0;
|
|
12433
12114
|
if (xsrfValue) {
|
|
12434
|
-
requestHeaders[
|
|
12115
|
+
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
12435
12116
|
}
|
|
12436
12117
|
}
|
|
12437
12118
|
if ("setRequestHeader" in request) {
|
|
@@ -12443,19 +12124,19 @@ var require_xhr = __commonJS({
|
|
|
12443
12124
|
}
|
|
12444
12125
|
});
|
|
12445
12126
|
}
|
|
12446
|
-
if (!utils.isUndefined(
|
|
12447
|
-
request.withCredentials = !!
|
|
12127
|
+
if (!utils.isUndefined(config.withCredentials)) {
|
|
12128
|
+
request.withCredentials = !!config.withCredentials;
|
|
12448
12129
|
}
|
|
12449
12130
|
if (responseType && responseType !== "json") {
|
|
12450
|
-
request.responseType =
|
|
12131
|
+
request.responseType = config.responseType;
|
|
12451
12132
|
}
|
|
12452
|
-
if (typeof
|
|
12453
|
-
request.addEventListener("progress",
|
|
12133
|
+
if (typeof config.onDownloadProgress === "function") {
|
|
12134
|
+
request.addEventListener("progress", config.onDownloadProgress);
|
|
12454
12135
|
}
|
|
12455
|
-
if (typeof
|
|
12456
|
-
request.upload.addEventListener("progress",
|
|
12136
|
+
if (typeof config.onUploadProgress === "function" && request.upload) {
|
|
12137
|
+
request.upload.addEventListener("progress", config.onUploadProgress);
|
|
12457
12138
|
}
|
|
12458
|
-
if (
|
|
12139
|
+
if (config.cancelToken || config.signal) {
|
|
12459
12140
|
onCanceled = function(cancel) {
|
|
12460
12141
|
if (!request) {
|
|
12461
12142
|
return;
|
|
@@ -12464,9 +12145,9 @@ var require_xhr = __commonJS({
|
|
|
12464
12145
|
request.abort();
|
|
12465
12146
|
request = null;
|
|
12466
12147
|
};
|
|
12467
|
-
|
|
12468
|
-
if (
|
|
12469
|
-
|
|
12148
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
|
12149
|
+
if (config.signal) {
|
|
12150
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
|
|
12470
12151
|
}
|
|
12471
12152
|
}
|
|
12472
12153
|
if (!requestData) {
|
|
@@ -13651,15 +13332,15 @@ var require_http = __commonJS({
|
|
|
13651
13332
|
setProxy(redirection, proxy, redirection.href);
|
|
13652
13333
|
};
|
|
13653
13334
|
}
|
|
13654
|
-
module2.exports = function httpAdapter(
|
|
13335
|
+
module2.exports = function httpAdapter(config) {
|
|
13655
13336
|
return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {
|
|
13656
13337
|
var onCanceled;
|
|
13657
13338
|
function done() {
|
|
13658
|
-
if (
|
|
13659
|
-
|
|
13339
|
+
if (config.cancelToken) {
|
|
13340
|
+
config.cancelToken.unsubscribe(onCanceled);
|
|
13660
13341
|
}
|
|
13661
|
-
if (
|
|
13662
|
-
|
|
13342
|
+
if (config.signal) {
|
|
13343
|
+
config.signal.removeEventListener("abort", onCanceled);
|
|
13663
13344
|
}
|
|
13664
13345
|
}
|
|
13665
13346
|
var resolve = function resolve2(value) {
|
|
@@ -13672,8 +13353,8 @@ var require_http = __commonJS({
|
|
|
13672
13353
|
rejected = true;
|
|
13673
13354
|
rejectPromise(value);
|
|
13674
13355
|
};
|
|
13675
|
-
var data2 =
|
|
13676
|
-
var headers =
|
|
13356
|
+
var data2 = config.data;
|
|
13357
|
+
var headers = config.headers;
|
|
13677
13358
|
var headerNames = {};
|
|
13678
13359
|
Object.keys(headers).forEach(function storeLowerName(name) {
|
|
13679
13360
|
headerNames[name.toLowerCase()] = name;
|
|
@@ -13692,22 +13373,22 @@ var require_http = __commonJS({
|
|
|
13692
13373
|
} else if (utils.isString(data2)) {
|
|
13693
13374
|
data2 = Buffer.from(data2, "utf-8");
|
|
13694
13375
|
} else {
|
|
13695
|
-
return reject(createError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
13376
|
+
return reject(createError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", config));
|
|
13696
13377
|
}
|
|
13697
|
-
if (
|
|
13698
|
-
return reject(createError("Request body larger than maxBodyLength limit",
|
|
13378
|
+
if (config.maxBodyLength > -1 && data2.length > config.maxBodyLength) {
|
|
13379
|
+
return reject(createError("Request body larger than maxBodyLength limit", config));
|
|
13699
13380
|
}
|
|
13700
13381
|
if (!headerNames["content-length"]) {
|
|
13701
13382
|
headers["Content-Length"] = data2.length;
|
|
13702
13383
|
}
|
|
13703
13384
|
}
|
|
13704
13385
|
var auth = void 0;
|
|
13705
|
-
if (
|
|
13706
|
-
var username =
|
|
13707
|
-
var password =
|
|
13386
|
+
if (config.auth) {
|
|
13387
|
+
var username = config.auth.username || "";
|
|
13388
|
+
var password = config.auth.password || "";
|
|
13708
13389
|
auth = username + ":" + password;
|
|
13709
13390
|
}
|
|
13710
|
-
var fullPath = buildFullPath(
|
|
13391
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
13711
13392
|
var parsed = url.parse(fullPath);
|
|
13712
13393
|
var protocol = parsed.protocol || "http:";
|
|
13713
13394
|
if (!auth && parsed.auth) {
|
|
@@ -13720,31 +13401,31 @@ var require_http = __commonJS({
|
|
|
13720
13401
|
delete headers[headerNames.authorization];
|
|
13721
13402
|
}
|
|
13722
13403
|
var isHttpsRequest = isHttps.test(protocol);
|
|
13723
|
-
var agent = isHttpsRequest ?
|
|
13404
|
+
var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
13724
13405
|
try {
|
|
13725
|
-
buildURL(parsed.path,
|
|
13406
|
+
buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, "");
|
|
13726
13407
|
} catch (err) {
|
|
13727
13408
|
var customErr = new Error(err.message);
|
|
13728
|
-
customErr.config =
|
|
13729
|
-
customErr.url =
|
|
13409
|
+
customErr.config = config;
|
|
13410
|
+
customErr.url = config.url;
|
|
13730
13411
|
customErr.exists = true;
|
|
13731
13412
|
reject(customErr);
|
|
13732
13413
|
}
|
|
13733
13414
|
var options2 = {
|
|
13734
|
-
path: buildURL(parsed.path,
|
|
13735
|
-
method:
|
|
13415
|
+
path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ""),
|
|
13416
|
+
method: config.method.toUpperCase(),
|
|
13736
13417
|
headers,
|
|
13737
13418
|
agent,
|
|
13738
|
-
agents: { http:
|
|
13419
|
+
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
13739
13420
|
auth
|
|
13740
13421
|
};
|
|
13741
|
-
if (
|
|
13742
|
-
options2.socketPath =
|
|
13422
|
+
if (config.socketPath) {
|
|
13423
|
+
options2.socketPath = config.socketPath;
|
|
13743
13424
|
} else {
|
|
13744
13425
|
options2.hostname = parsed.hostname;
|
|
13745
13426
|
options2.port = parsed.port;
|
|
13746
13427
|
}
|
|
13747
|
-
var proxy =
|
|
13428
|
+
var proxy = config.proxy;
|
|
13748
13429
|
if (!proxy && proxy !== false) {
|
|
13749
13430
|
var proxyEnv = protocol.slice(0, -1) + "_proxy";
|
|
13750
13431
|
var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];
|
|
@@ -13791,28 +13472,28 @@ var require_http = __commonJS({
|
|
|
13791
13472
|
}
|
|
13792
13473
|
var transport;
|
|
13793
13474
|
var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);
|
|
13794
|
-
if (
|
|
13795
|
-
transport =
|
|
13796
|
-
} else if (
|
|
13475
|
+
if (config.transport) {
|
|
13476
|
+
transport = config.transport;
|
|
13477
|
+
} else if (config.maxRedirects === 0) {
|
|
13797
13478
|
transport = isHttpsProxy ? https : http;
|
|
13798
13479
|
} else {
|
|
13799
|
-
if (
|
|
13800
|
-
options2.maxRedirects =
|
|
13480
|
+
if (config.maxRedirects) {
|
|
13481
|
+
options2.maxRedirects = config.maxRedirects;
|
|
13801
13482
|
}
|
|
13802
13483
|
transport = isHttpsProxy ? httpsFollow : httpFollow;
|
|
13803
13484
|
}
|
|
13804
|
-
if (
|
|
13805
|
-
options2.maxBodyLength =
|
|
13485
|
+
if (config.maxBodyLength > -1) {
|
|
13486
|
+
options2.maxBodyLength = config.maxBodyLength;
|
|
13806
13487
|
}
|
|
13807
|
-
if (
|
|
13808
|
-
options2.insecureHTTPParser =
|
|
13488
|
+
if (config.insecureHTTPParser) {
|
|
13489
|
+
options2.insecureHTTPParser = config.insecureHTTPParser;
|
|
13809
13490
|
}
|
|
13810
13491
|
var req = transport.request(options2, function handleResponse(res) {
|
|
13811
13492
|
if (req.aborted)
|
|
13812
13493
|
return;
|
|
13813
13494
|
var stream = res;
|
|
13814
13495
|
var lastRequest = res.req || req;
|
|
13815
|
-
if (res.statusCode !== 204 && lastRequest.method !== "HEAD" &&
|
|
13496
|
+
if (res.statusCode !== 204 && lastRequest.method !== "HEAD" && config.decompress !== false) {
|
|
13816
13497
|
switch (res.headers["content-encoding"]) {
|
|
13817
13498
|
case "gzip":
|
|
13818
13499
|
case "compress":
|
|
@@ -13826,10 +13507,10 @@ var require_http = __commonJS({
|
|
|
13826
13507
|
status: res.statusCode,
|
|
13827
13508
|
statusText: res.statusMessage,
|
|
13828
13509
|
headers: res.headers,
|
|
13829
|
-
config
|
|
13510
|
+
config,
|
|
13830
13511
|
request: lastRequest
|
|
13831
13512
|
};
|
|
13832
|
-
if (
|
|
13513
|
+
if (config.responseType === "stream") {
|
|
13833
13514
|
response.data = stream;
|
|
13834
13515
|
settle(resolve, reject, response);
|
|
13835
13516
|
} else {
|
|
@@ -13838,10 +13519,10 @@ var require_http = __commonJS({
|
|
|
13838
13519
|
stream.on("data", function handleStreamData(chunk) {
|
|
13839
13520
|
responseBuffer.push(chunk);
|
|
13840
13521
|
totalResponseBytes += chunk.length;
|
|
13841
|
-
if (
|
|
13522
|
+
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
13842
13523
|
rejected = true;
|
|
13843
13524
|
stream.destroy();
|
|
13844
|
-
reject(createError("maxContentLength size of " +
|
|
13525
|
+
reject(createError("maxContentLength size of " + config.maxContentLength + " exceeded", config, null, lastRequest));
|
|
13845
13526
|
}
|
|
13846
13527
|
});
|
|
13847
13528
|
stream.on("aborted", function handlerStreamAborted() {
|
|
@@ -13849,25 +13530,25 @@ var require_http = __commonJS({
|
|
|
13849
13530
|
return;
|
|
13850
13531
|
}
|
|
13851
13532
|
stream.destroy();
|
|
13852
|
-
reject(createError("error request aborted",
|
|
13533
|
+
reject(createError("error request aborted", config, "ERR_REQUEST_ABORTED", lastRequest));
|
|
13853
13534
|
});
|
|
13854
13535
|
stream.on("error", function handleStreamError(err) {
|
|
13855
13536
|
if (req.aborted)
|
|
13856
13537
|
return;
|
|
13857
|
-
reject(enhanceError(err,
|
|
13538
|
+
reject(enhanceError(err, config, null, lastRequest));
|
|
13858
13539
|
});
|
|
13859
13540
|
stream.on("end", function handleStreamEnd() {
|
|
13860
13541
|
try {
|
|
13861
13542
|
var responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);
|
|
13862
|
-
if (
|
|
13863
|
-
responseData = responseData.toString(
|
|
13864
|
-
if (!
|
|
13543
|
+
if (config.responseType !== "arraybuffer") {
|
|
13544
|
+
responseData = responseData.toString(config.responseEncoding);
|
|
13545
|
+
if (!config.responseEncoding || config.responseEncoding === "utf8") {
|
|
13865
13546
|
responseData = utils.stripBOM(responseData);
|
|
13866
13547
|
}
|
|
13867
13548
|
}
|
|
13868
13549
|
response.data = responseData;
|
|
13869
13550
|
} catch (err) {
|
|
13870
|
-
reject(enhanceError(err,
|
|
13551
|
+
reject(enhanceError(err, config, err.code, response.request, response));
|
|
13871
13552
|
}
|
|
13872
13553
|
settle(resolve, reject, response);
|
|
13873
13554
|
});
|
|
@@ -13876,44 +13557,44 @@ var require_http = __commonJS({
|
|
|
13876
13557
|
req.on("error", function handleRequestError(err) {
|
|
13877
13558
|
if (req.aborted && err.code !== "ERR_FR_TOO_MANY_REDIRECTS")
|
|
13878
13559
|
return;
|
|
13879
|
-
reject(enhanceError(err,
|
|
13560
|
+
reject(enhanceError(err, config, null, req));
|
|
13880
13561
|
});
|
|
13881
13562
|
req.on("socket", function handleRequestSocket(socket) {
|
|
13882
13563
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
13883
13564
|
});
|
|
13884
|
-
if (
|
|
13885
|
-
var timeout = parseInt(
|
|
13565
|
+
if (config.timeout) {
|
|
13566
|
+
var timeout = parseInt(config.timeout, 10);
|
|
13886
13567
|
if (isNaN(timeout)) {
|
|
13887
|
-
reject(createError("error trying to parse `config.timeout` to int",
|
|
13568
|
+
reject(createError("error trying to parse `config.timeout` to int", config, "ERR_PARSE_TIMEOUT", req));
|
|
13888
13569
|
return;
|
|
13889
13570
|
}
|
|
13890
13571
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
13891
13572
|
req.abort();
|
|
13892
13573
|
var timeoutErrorMessage = "";
|
|
13893
|
-
if (
|
|
13894
|
-
timeoutErrorMessage =
|
|
13574
|
+
if (config.timeoutErrorMessage) {
|
|
13575
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
13895
13576
|
} else {
|
|
13896
|
-
timeoutErrorMessage = "timeout of " +
|
|
13577
|
+
timeoutErrorMessage = "timeout of " + config.timeout + "ms exceeded";
|
|
13897
13578
|
}
|
|
13898
|
-
var transitional =
|
|
13899
|
-
reject(createError(timeoutErrorMessage,
|
|
13579
|
+
var transitional = config.transitional || defaults.transitional;
|
|
13580
|
+
reject(createError(timeoutErrorMessage, config, transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", req));
|
|
13900
13581
|
});
|
|
13901
13582
|
}
|
|
13902
|
-
if (
|
|
13583
|
+
if (config.cancelToken || config.signal) {
|
|
13903
13584
|
onCanceled = function(cancel) {
|
|
13904
13585
|
if (req.aborted)
|
|
13905
13586
|
return;
|
|
13906
13587
|
req.abort();
|
|
13907
13588
|
reject(!cancel || cancel && cancel.type ? new Cancel("canceled") : cancel);
|
|
13908
13589
|
};
|
|
13909
|
-
|
|
13910
|
-
if (
|
|
13911
|
-
|
|
13590
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
|
13591
|
+
if (config.signal) {
|
|
13592
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
|
|
13912
13593
|
}
|
|
13913
13594
|
}
|
|
13914
13595
|
if (utils.isStream(data2)) {
|
|
13915
13596
|
data2.on("error", function handleStreamError(err) {
|
|
13916
|
-
reject(enhanceError(err,
|
|
13597
|
+
reject(enhanceError(err, config, null, req));
|
|
13917
13598
|
}).pipe(req);
|
|
13918
13599
|
} else {
|
|
13919
13600
|
req.end(data2);
|
|
@@ -14064,32 +13745,32 @@ var require_dispatchRequest = __commonJS({
|
|
|
14064
13745
|
var isCancel = require_isCancel();
|
|
14065
13746
|
var defaults = require_defaults();
|
|
14066
13747
|
var Cancel = require_Cancel();
|
|
14067
|
-
function throwIfCancellationRequested(
|
|
14068
|
-
if (
|
|
14069
|
-
|
|
13748
|
+
function throwIfCancellationRequested(config) {
|
|
13749
|
+
if (config.cancelToken) {
|
|
13750
|
+
config.cancelToken.throwIfRequested();
|
|
14070
13751
|
}
|
|
14071
|
-
if (
|
|
13752
|
+
if (config.signal && config.signal.aborted) {
|
|
14072
13753
|
throw new Cancel("canceled");
|
|
14073
13754
|
}
|
|
14074
13755
|
}
|
|
14075
|
-
module2.exports = function dispatchRequest(
|
|
14076
|
-
throwIfCancellationRequested(
|
|
14077
|
-
|
|
14078
|
-
|
|
14079
|
-
|
|
13756
|
+
module2.exports = function dispatchRequest(config) {
|
|
13757
|
+
throwIfCancellationRequested(config);
|
|
13758
|
+
config.headers = config.headers || {};
|
|
13759
|
+
config.data = transformData.call(config, config.data, config.headers, config.transformRequest);
|
|
13760
|
+
config.headers = utils.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
|
|
14080
13761
|
utils.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function cleanHeaderConfig(method) {
|
|
14081
|
-
delete
|
|
13762
|
+
delete config.headers[method];
|
|
14082
13763
|
});
|
|
14083
|
-
var adapter =
|
|
14084
|
-
return adapter(
|
|
14085
|
-
throwIfCancellationRequested(
|
|
14086
|
-
response.data = transformData.call(
|
|
13764
|
+
var adapter = config.adapter || defaults.adapter;
|
|
13765
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
13766
|
+
throwIfCancellationRequested(config);
|
|
13767
|
+
response.data = transformData.call(config, response.data, response.headers, config.transformResponse);
|
|
14087
13768
|
return response;
|
|
14088
13769
|
}, function onAdapterRejection(reason) {
|
|
14089
13770
|
if (!isCancel(reason)) {
|
|
14090
|
-
throwIfCancellationRequested(
|
|
13771
|
+
throwIfCancellationRequested(config);
|
|
14091
13772
|
if (reason && reason.response) {
|
|
14092
|
-
reason.response.data = transformData.call(
|
|
13773
|
+
reason.response.data = transformData.call(config, reason.response.data, reason.response.headers, config.transformResponse);
|
|
14093
13774
|
}
|
|
14094
13775
|
}
|
|
14095
13776
|
return Promise.reject(reason);
|
|
@@ -14105,7 +13786,7 @@ var require_mergeConfig = __commonJS({
|
|
|
14105
13786
|
var utils = require_utils();
|
|
14106
13787
|
module2.exports = function mergeConfig(config1, config2) {
|
|
14107
13788
|
config2 = config2 || {};
|
|
14108
|
-
var
|
|
13789
|
+
var config = {};
|
|
14109
13790
|
function getMergedValue(target, source) {
|
|
14110
13791
|
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
14111
13792
|
return utils.merge(target, source);
|
|
@@ -14173,9 +13854,9 @@ var require_mergeConfig = __commonJS({
|
|
|
14173
13854
|
utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
14174
13855
|
var merge = mergeMap[prop] || mergeDeepProperties;
|
|
14175
13856
|
var configValue = merge(prop);
|
|
14176
|
-
utils.isUndefined(configValue) && merge !== mergeDirectKeys || (
|
|
13857
|
+
utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
14177
13858
|
});
|
|
14178
|
-
return
|
|
13859
|
+
return config;
|
|
14179
13860
|
};
|
|
14180
13861
|
}
|
|
14181
13862
|
});
|
|
@@ -14254,22 +13935,22 @@ var require_Axios = __commonJS({
|
|
|
14254
13935
|
response: new InterceptorManager()
|
|
14255
13936
|
};
|
|
14256
13937
|
}
|
|
14257
|
-
Axios.prototype.request = function request(configOrUrl,
|
|
13938
|
+
Axios.prototype.request = function request(configOrUrl, config) {
|
|
14258
13939
|
if (typeof configOrUrl === "string") {
|
|
14259
|
-
|
|
14260
|
-
|
|
13940
|
+
config = config || {};
|
|
13941
|
+
config.url = configOrUrl;
|
|
14261
13942
|
} else {
|
|
14262
|
-
|
|
13943
|
+
config = configOrUrl || {};
|
|
14263
13944
|
}
|
|
14264
|
-
|
|
14265
|
-
if (
|
|
14266
|
-
|
|
13945
|
+
config = mergeConfig(this.defaults, config);
|
|
13946
|
+
if (config.method) {
|
|
13947
|
+
config.method = config.method.toLowerCase();
|
|
14267
13948
|
} else if (this.defaults.method) {
|
|
14268
|
-
|
|
13949
|
+
config.method = this.defaults.method.toLowerCase();
|
|
14269
13950
|
} else {
|
|
14270
|
-
|
|
13951
|
+
config.method = "get";
|
|
14271
13952
|
}
|
|
14272
|
-
var transitional =
|
|
13953
|
+
var transitional = config.transitional;
|
|
14273
13954
|
if (transitional !== void 0) {
|
|
14274
13955
|
validator.assertOptions(transitional, {
|
|
14275
13956
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
@@ -14280,7 +13961,7 @@ var require_Axios = __commonJS({
|
|
|
14280
13961
|
var requestInterceptorChain = [];
|
|
14281
13962
|
var synchronousRequestInterceptors = true;
|
|
14282
13963
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
14283
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(
|
|
13964
|
+
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
|
|
14284
13965
|
return;
|
|
14285
13966
|
}
|
|
14286
13967
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
@@ -14295,13 +13976,13 @@ var require_Axios = __commonJS({
|
|
|
14295
13976
|
var chain = [dispatchRequest, void 0];
|
|
14296
13977
|
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
14297
13978
|
chain = chain.concat(responseInterceptorChain);
|
|
14298
|
-
promise = Promise.resolve(
|
|
13979
|
+
promise = Promise.resolve(config);
|
|
14299
13980
|
while (chain.length) {
|
|
14300
13981
|
promise = promise.then(chain.shift(), chain.shift());
|
|
14301
13982
|
}
|
|
14302
13983
|
return promise;
|
|
14303
13984
|
}
|
|
14304
|
-
var newConfig =
|
|
13985
|
+
var newConfig = config;
|
|
14305
13986
|
while (requestInterceptorChain.length) {
|
|
14306
13987
|
var onFulfilled = requestInterceptorChain.shift();
|
|
14307
13988
|
var onRejected = requestInterceptorChain.shift();
|
|
@@ -14322,22 +14003,22 @@ var require_Axios = __commonJS({
|
|
|
14322
14003
|
}
|
|
14323
14004
|
return promise;
|
|
14324
14005
|
};
|
|
14325
|
-
Axios.prototype.getUri = function getUri(
|
|
14326
|
-
|
|
14327
|
-
return buildURL(
|
|
14006
|
+
Axios.prototype.getUri = function getUri(config) {
|
|
14007
|
+
config = mergeConfig(this.defaults, config);
|
|
14008
|
+
return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, "");
|
|
14328
14009
|
};
|
|
14329
14010
|
utils.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
14330
|
-
Axios.prototype[method] = function(url,
|
|
14331
|
-
return this.request(mergeConfig(
|
|
14011
|
+
Axios.prototype[method] = function(url, config) {
|
|
14012
|
+
return this.request(mergeConfig(config || {}, {
|
|
14332
14013
|
method,
|
|
14333
14014
|
url,
|
|
14334
|
-
data: (
|
|
14015
|
+
data: (config || {}).data
|
|
14335
14016
|
}));
|
|
14336
14017
|
};
|
|
14337
14018
|
});
|
|
14338
14019
|
utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
14339
|
-
Axios.prototype[method] = function(url, data2,
|
|
14340
|
-
return this.request(mergeConfig(
|
|
14020
|
+
Axios.prototype[method] = function(url, data2, config) {
|
|
14021
|
+
return this.request(mergeConfig(config || {}, {
|
|
14341
14022
|
method,
|
|
14342
14023
|
url,
|
|
14343
14024
|
data: data2
|
|
@@ -23158,6 +22839,8 @@ var require_application = __commonJS({
|
|
|
23158
22839
|
AppType2["FioriElement"] = "SAP Fiori elements";
|
|
23159
22840
|
AppType2["UI5Freestyle"] = "SAPUI5 freestyle";
|
|
23160
22841
|
AppType2["UI5Extension"] = "SAPUI5 Extension";
|
|
22842
|
+
AppType2["Reuse"] = "Fiori Reuse";
|
|
22843
|
+
AppType2["Adaptation"] = "Fiori Adaptation";
|
|
23161
22844
|
})(AppType = exports2.AppType || (exports2.AppType = {}));
|
|
23162
22845
|
exports2.AppPomXmlArtifactIdPlaceholder = `\${project.artifactId}`;
|
|
23163
22846
|
}
|
|
@@ -23259,158 +22942,146 @@ var require_controls = __commonJS({
|
|
|
23259
22942
|
var require_common2 = __commonJS({
|
|
23260
22943
|
"../../node_modules/@sap/ux-specification-types/dist/common.js"(exports2, module2) {
|
|
23261
22944
|
var P = Object.defineProperty;
|
|
23262
|
-
var
|
|
23263
|
-
var
|
|
23264
|
-
var
|
|
23265
|
-
var
|
|
23266
|
-
|
|
23267
|
-
|
|
23268
|
-
|
|
23269
|
-
|
|
23270
|
-
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
|
|
23275
|
-
};
|
|
23276
|
-
var
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
};
|
|
23281
|
-
var
|
|
23282
|
-
|
|
23283
|
-
|
|
23284
|
-
|
|
23285
|
-
|
|
23286
|
-
};
|
|
23287
|
-
var
|
|
23288
|
-
var
|
|
23289
|
-
|
|
23290
|
-
var
|
|
23291
|
-
var
|
|
23292
|
-
var
|
|
23293
|
-
var
|
|
23294
|
-
var
|
|
23295
|
-
var
|
|
23296
|
-
var
|
|
23297
|
-
var
|
|
23298
|
-
var
|
|
23299
|
-
var
|
|
23300
|
-
var
|
|
23301
|
-
var
|
|
23302
|
-
var
|
|
23303
|
-
var
|
|
23304
|
-
var
|
|
23305
|
-
var
|
|
23306
|
-
var
|
|
23307
|
-
var tt = "
|
|
23308
|
-
var ot = "
|
|
23309
|
-
var
|
|
23310
|
-
var
|
|
23311
|
-
var
|
|
23312
|
-
var
|
|
23313
|
-
var
|
|
23314
|
-
var
|
|
23315
|
-
var
|
|
23316
|
-
var
|
|
23317
|
-
var
|
|
23318
|
-
var
|
|
23319
|
-
var
|
|
23320
|
-
var
|
|
23321
|
-
var
|
|
23322
|
-
var
|
|
23323
|
-
var
|
|
23324
|
-
var
|
|
23325
|
-
var
|
|
23326
|
-
var
|
|
23327
|
-
var
|
|
23328
|
-
var
|
|
23329
|
-
var
|
|
23330
|
-
var
|
|
23331
|
-
var
|
|
23332
|
-
var
|
|
23333
|
-
var
|
|
23334
|
-
var
|
|
23335
|
-
|
|
23336
|
-
var
|
|
23337
|
-
var
|
|
23338
|
-
var
|
|
23339
|
-
var
|
|
23340
|
-
var
|
|
23341
|
-
var
|
|
23342
|
-
var
|
|
23343
|
-
var
|
|
23344
|
-
var
|
|
22945
|
+
var Xe = Object.getOwnPropertyDescriptor;
|
|
22946
|
+
var Qe = Object.getOwnPropertyNames;
|
|
22947
|
+
var Ke = Object.prototype.hasOwnProperty;
|
|
22948
|
+
var d = (u, c) => {
|
|
22949
|
+
for (var o in c)
|
|
22950
|
+
P(u, o, { get: c[o], enumerable: true });
|
|
22951
|
+
};
|
|
22952
|
+
var Ye = (u, c, o, t) => {
|
|
22953
|
+
if (c && typeof c == "object" || typeof c == "function")
|
|
22954
|
+
for (let i of Qe(c))
|
|
22955
|
+
!Ke.call(u, i) && i !== o && P(u, i, { get: () => c[i], enumerable: !(t = Xe(c, i)) || t.enumerable });
|
|
22956
|
+
return u;
|
|
22957
|
+
};
|
|
22958
|
+
var Ne = (u) => Ye(P({}, "__esModule", { value: true }), u);
|
|
22959
|
+
var _t = {};
|
|
22960
|
+
d(_t, { ALPViewType: () => F, ActionTitlePrefix: () => $e, ArtifactType: () => R, BindingPropertyRegexAsString: () => Ze, ControlType: () => v, CustomExtensionType: () => Z, DATESETTINGSPATH: () => ct, DataSourceType: () => N, DefinitionName: () => k, DirName: () => U, DraftDiscardEnabledSettings: () => X, ExportArtifacts: () => j, FIORI_FCL_ROOT_ID: () => mt, FIORI_FCL_ROOT_VIEW_NAME: () => gt2, FRAGMENTNAMEPART: () => pt, FacetBase: () => M, FacetTitlePrefix: () => Je, Features: () => D, FileName: () => w, FioriElementsVersion: () => E, FlexChangeLayer: () => V, FlexibleColumnLayoutAggregations: () => Y, FlexibleColumnLayoutType: () => O, GENERICAPPSETTINGS: () => lt, LogSeverity: () => J, LogSeverityLabel: () => ut, MANIFESTPATH: () => et, METADATAPATH: () => De, MacrosPropertyType: () => W, ManifestSection: () => z, OdataVersion: () => y, PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP: () => qe, PageType: () => ze, PageTypeV2: () => A, PageTypeV4: () => T, PropertyName: () => B, QUICKVARPATH: () => rt, QUICKVARPATHX: () => st, SAPUI5_FRAGMENT_CLASS: () => St, SAPUI5_VIEW_CLASS: () => bt, SchemaKeyName: () => H, SchemaTag: () => G, SchemaType: () => L, SectionType: () => h, StatePreservationMode: () => K, TableColumnVerticalAlignment: () => Q, TemplateType: () => $, UIVOCABULARY: () => at, UIVOCABULARYALPHADOT: () => it, UIVOCABULARYDOT: () => nt, VOCWITHCOLONS: () => ot, VOCWITHSLASH: () => tt, ViewTemplateType: () => _45, ViewTypes: () => q, Visualization: () => I, v2: () => C, v4: () => f });
|
|
22961
|
+
module2.exports = Ne(_t);
|
|
22962
|
+
var A = ((s) => (s.ObjectPage = "ObjectPage", s.ListReport = "ListReport", s.OverviewPage = "OverviewPage", s.CustomPage = "CustomPage", s.AnalyticalListPage = "AnalyticalListPage", s))(A || {});
|
|
22963
|
+
var T = ((s) => (s.ObjectPage = "ObjectPage", s.ListReport = "ListReport", s.CustomPage = "CustomPage", s.FPMCustomPage = "FPMCustomPage", s.AnalyticalListPage = "AnalyticalListPage", s))(T || {});
|
|
22964
|
+
var ze = { ...A, ...T };
|
|
22965
|
+
var qe = /* @__PURE__ */ new Map([["ListReport", "sap.suite.ui.generic.template.ListReport.view.ListReport"], ["AnalyticalListPage", "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"], ["ObjectPage", "sap.suite.ui.generic.template.ObjectPage.view.Details"]]);
|
|
22966
|
+
var E = ((o) => (o.v2 = "v2", o.v4 = "v4", o))(E || {});
|
|
22967
|
+
var y = ((o) => (o.v2 = "v2", o.v4 = "v4", o))(y || {});
|
|
22968
|
+
var O = ((g) => (g.OneColumn = "OneColumn", g.TwoColumnsBeginExpanded = "TwoColumnsBeginExpanded", g.TwoColumnsMidExpanded = "TwoColumnsMidExpanded", g.MidColumnFullScreen = "MidColumnFullScreen", g.ThreeColumnsMidExpanded = "ThreeColumnsMidExpanded", g.ThreeColumnsEndExpanded = "ThreeColumnsEndExpanded", g.ThreeColumnsMidExpandedEndHidden = "ThreeColumnsMidExpandedEndHidden", g.ThreeColumnsBeginExpandedEndHidden = "ThreeColumnsBeginExpandedEndHidden", g.EndColumnFullScreen = "EndColumnFullScreen", g))(O || {});
|
|
22969
|
+
var V = ((o) => (o.Vendor = "VENDOR", o.Customer = "CUSTOMER_BASE", o))(V || {});
|
|
22970
|
+
var L = ((m) => (m.Application = "Application", m.ObjectPage = "ObjectPage", m.ListReport = "ListReport", m.OverviewPage = "OverviewPage", m.AnalyticalListPage = "AnalyticalListPage", m.FreestylePage = "FreestylePage", m.FPMCustomPage = "FPMCustomPage", m.BuildingBlocks = "BuildingBlocks", m))(L || {});
|
|
22971
|
+
var j = ((o) => (o.flex = "flex", o.manifest = "manifest", o))(j || {});
|
|
22972
|
+
var F = ((o) => (o.Primary = "primary", o.Secondary = "secondary", o))(F || {});
|
|
22973
|
+
var h = ((t) => (t.Section = "Section", t.SubSection = "SubSection", t.HeaderSection = "HeaderSection", t))(h || {});
|
|
22974
|
+
var R = ((i) => (i.Manifest = "Manifest", i.FlexChange = "FlexChange", i.Annotation = "Annotation", i.XMLProperty = "XMLProperty", i))(R || {});
|
|
22975
|
+
var v = ((l) => (l.Table = "sap.m.Table", l.TableColumn = "sap.m.Column", l.SmartTable = "sap.ui.comp.smarttable.SmartTable", l.SmartFilterBar = "sap.ui.comp.smartfilterbar.SmartFilterBar", l.SmartChart = "sap.ui.comp.smartchart.SmartChart", l.Group = "sap.ui.comp.smartform.Group", l.GroupElement = "sap.ui.comp.smartform.GroupElement", l.Button = "sap.m.Button", l.ToolbarButton = "sap.m.OverflowToolbarButton", l.Avatar = "sap.f.Avatar", l.ObjectPageDynamicHeaderTitle = "sap.uxap.ObjectPageDynamicHeaderTitle", l.ObjectPageGridProperties = "sap.ui.layout.GridData", l.ObjectPageHeader = "sap.uxap.ObjectPageHeader", l.ObjectPageLayout = "sap.uxap.ObjectPageLayout", l.HeaderAction = "sap.uxap.ObjectPageHeaderActionButton", l.DynamicPage = "sap.f.DynamicPage", l.Form = "sap.ui.layout.form", l.Chart = "sap.suite.ui.microchart", l.Section = "sap.uxap.ObjectPageSection", l.SubSection = "sap.uxap.ObjectPageSubSection", l))(v || {});
|
|
22976
|
+
var I = ((o) => (o.LineItem = "LineItem", o.Chart = "Chart", o))(I || {});
|
|
22977
|
+
var U = ((n) => (n.Sapux = "src", n.Schemas = ".schemas", n.Pages = "pages", n.Webapp = "webapp", n.Temp = ".tmp", n.Changes = "changes", n.LocalService = "localService", n.Controller = "controller", n.View = "view", n.Fragment = "fragment", n.Ext = "ext", n.VSCode = ".vscode", n))(U || {});
|
|
22978
|
+
var w = ((c) => (c.App = "app.json", c))(w || {});
|
|
22979
|
+
var Je = "Facet ID: ";
|
|
22980
|
+
var $e = "Action ID: ";
|
|
22981
|
+
var M = ((S) => (S.LineItem = "LineItem", S.CollectionFacet = "CollectionFacet", S.Chart = "Chart", S.Form = "Form", S.Identification = "Identification", S.DataPoint = "DataPoint", S.Address = "Address", S.Contact = "Contact", S.PresentationVariant = "PresentationVariant", S.Unknown = "", S))(M || {});
|
|
22982
|
+
var Ze = "^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$";
|
|
22983
|
+
var _45 = ((s) => (s.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", s.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", s.TreeTableColumnsExtension = "TreeTableColumnsExtension", s.GridTableColumnsExtension = "GridTableColumnsExtension", s.ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension", s))(_45 || {});
|
|
22984
|
+
var k = ((e) => (e.Action = "Action", e.Actions = "Actions", e.ActionsLR = "Actions<LineItems>", e.ALPChart = "ALPChart", e.ALPChartView = "ALPChartView", e.ALPTable = "ALPTable", e.ALPTableView = "ALPTableView", e.AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar", e.AnnotationPathAsObject = "AnnotationPathAsObject", e.ChartToolBarAction = "ChartToolBarAction", e.CommonHeaderFacetSettings = "CommonHeaderFacetSettings", e.CompactFilters = "CompactFilters", e.CustomFooterActionOP = "CustomFooterActionOP", e.CustomHeaderAction = "CustomHeaderAction", e.CustomHeaderActionOP = "CustomHeaderActionOP", e.CustomFormActionOP = "CustomFormActionOP", e.CustomTableAction = "CustomTableAction", e.CustomTableActionOP = "CustomTableActionOP", e.CustomColumn = "TableCustomColumn", e.CustomColumnOP = "TableCustomColumnOP", e.CustomColumns = "TableCustomColumns", e.CustomSections = "CustomSections", e.FieldPath = "FieldPath", e.Field = "Field", e.Fields = "Fields", e.Fields4Dialog = "Fields4Dialog", e.FilterBar = "FilterBar", e.FilterBarVisualFilters = "FilterBarVisualFilters", e.Footer = "Footer", e.FooterAction = "FooterAction", e.FooterActionV4 = "FooterActionV4", e.FooterActions = "FooterActions", e.FooterActionsLR = "FooterActions<LineItems>", e.Form = "Form", e.FormAction = "FormAction", e.GenericActions = "GenericActions", e.GenericColumnsOP = "GenericColumnsOP", e.GenericFooter = "GenericFooter", e.GenericSections = "GenericSections", e.GenericSubSections = "GenericSubSections", e.Header = "Header", e.HeaderActions = "HeaderActions", e.ObjectPageHeaderAction = "ObjectPageHeaderAction", e.ObjectPageHeaderActions = "ObjectPageHeaderActions", e.HeaderSections = "HeaderSections", e.LineItems = "LineItems", e.LineItemsOfView = "LineItemsOfView", e.ListReportFilterBar = "ListReportFilterBar", e.LRTableView = "LRTableView", e.LRChartView = "LRChartView", e.MultiEditV2 = "MultiEdit", e.MultiTableModeV4 = "MultiTableModeV4", e.ObjectPageChart = "ObjectPageChart", e.ObjectPageCustomSectionFragment = "ObjectPageCustomSectionFragment", e.ObjectPageCustomSubSectionFragment = "ObjectPageCustomSubSectionFragment", e.ObjectPageForm = "ObjectPageForm", e.ObjectPageFooter = "ObjectPageFooter", e.ObjectPageFooterAction = "ObjectPageFooterAction", e.ObjectPageFooterActions = "ObjectPageFooterActions", e.ObjectPageHeader = "ObjectPageHeader", e.ObjectPageHeaderSectionForm = "ObjectPageHeaderSectionForm", e.ObjectPageHeaderSectionChart = "ObjectPageHeaderSectionChart", e.ObjectPageHeaderSectionDataPoint = "ObjectPageHeaderSectionDataPoint", e.ObjectPageHeaderSectionContact = "ObjectPageHeaderSectionContact", e.ObjectPageHeaderSectionAddress = "ObjectPageHeaderSectionAddress", e.ObjectPageLayout = "ObjectPageLayout", e.ObjectPagePresentationVariant = "ObjectPagePresentationVariant", e.ObjectPageSectionAddress = "ObjectPageSectionAddress", e.ObjectPageSectionChart = "ObjectPageSectionChart", e.ObjectPageSectionContact = "ObjectPageSectionContact", e.ObjectPageSectionDataPoint = "ObjectPageSectionDataPoint", e.ObjectPageSectionForm = "ObjectPageSectionForm", e.ObjectPageSectionPresentationVariant = "ObjectPageSectionPresentationVariant", e.ObjectPageSectionTableV4 = "ObjectPageSectionTableV4", e.ObjectPageSubSections = "ObjectPageSubSections", e.ObjectPageTable = "ObjectPageTable", e.ObjectPageTableColumn = "ObjectPageTableColumn", e.ObjectPageToolBar = "ObjectPageToolBar", e.ObjectPageToolBarAction = "ObjectPageToolBarAction", e.ObjectPageToolBarActions = "ObjectPageToolBarActions", e.Position = "Position", e.PositionOP = "PositionOP", e.QuickVariant = "QuickVariant", e.QuickVariantSelectionOP = "QuickVariantSelectionOP", e.QuickVariantSelectionV4OP = "QuickVariantSelectionV4OP", e.RelatedFacetKeys = "RelatedFacetKeys", e.Sections = "Sections", e.SectionActions = "SectionActions", e.SelectionFields = "SelectionFields", e.Table = "Table", e.TableSPV = "TableSPV", e.TableColumn = "TableColumn", e.TableViewExtension = "TableViewExtension", e.ToolBarAction = "ToolBarAction", e.ToolBarLR = "ToolBar<LineItems>", e.ToolBar = "ToolBar", e.ViewTableColumn = "ViewTableColumn", e.ViewCustomColumn = "ViewTableCustomColumn", e.ViewCustomAction = "ViewTableCustomAction", e.ViewChartToolBar = "ViewChartToolBar", e.ViewToolBarAction = "ViewToolBarAction", e.ViewPosition = "ViewPosition", e.ViewCustomActionPosition = "ViewCustomActionPosition", e.VisualFilters = "VisualFilters", e.VisualFilter = "VisualFilter", e.CustomActionPosition = "CustomActionPosition", e.CustomActionPositionOP = "CustomActionPositionOP", e.CustomHeaderActionPosition = "CustomHeaderActionPosition", e.CustomHeaderActionPositionOP = "CustomHeaderActionPositionOP", e.CustomFooterActionPositionOP = "CustomFooterActionPositionOP", e.CustomExtensionFragment = "CustomExtensionFragment", e))(k || {});
|
|
22985
|
+
var B = ((n) => (n.actions = "actions", n.annotationPath = "annotationPath", n.chart = "chart", n.columns = "columns", n.defaultPath = "defaultPath", n.defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath", n.footer = "footer", n.header = "header", n.sections = "sections", n.table = "table", n.views = "views", n.visualFilters = "visualFilters", n))(B || {});
|
|
22986
|
+
var G = ((n) => (n.annotationPath = "annotationPath", n.annotationType = "annotationType", n.artifactType = "artifactType", n.controlType = "controlType", n.dataType = "dataType", n.fullyQualifiedName = "fullyQualifiedName", n.hidden = "hidden", n.isViewNode = "isViewNode", n.key = "key", n.keys = "keys", n.target = "target", n.propertyIndex = "propertyIndex", n))(G || {});
|
|
22987
|
+
var H = ((b) => (b.id = "ID", b.value = "Value", b.action = "Action", b.target = "Target", b.key = "Key", b.semanticObject = "SemanticObject", b))(H || {});
|
|
22988
|
+
var De = "webapp/localService/metadata.xml";
|
|
22989
|
+
var et = "webapp/manifest.json";
|
|
22990
|
+
var tt = "/@com.sap.vocabularies";
|
|
22991
|
+
var ot = "::@com.sap.vocabularies";
|
|
22992
|
+
var at = "com.sap.vocabularies.UI.v1";
|
|
22993
|
+
var nt = "com.sap.vocabularies.UI.v1.";
|
|
22994
|
+
var it = "@com.sap.vocabularies.UI.v1.";
|
|
22995
|
+
var rt = "/quickVariantSelection";
|
|
22996
|
+
var st = "/quickVariantSelectionX";
|
|
22997
|
+
var ct = "/filterSettings/dateSettings";
|
|
22998
|
+
var pt = ".fragment.";
|
|
22999
|
+
var W = ((i) => (i.Control = "Control", i.Property = "Property", i.Aggregation = "Aggregation", i.Event = "Event", i))(W || {});
|
|
23000
|
+
var X = ((c) => (c.restricted = "restricted", c))(X || {});
|
|
23001
|
+
var Q = ((t) => (t.Top = "Top", t.Middle = "Middle", t.Bottom = "Bottom", t))(Q || {});
|
|
23002
|
+
var K = ((o) => (o.persistence = "persistence", o.discovery = "discovery", o))(K || {});
|
|
23003
|
+
var Y = ((t) => (t.BeginColumnPages = "beginColumnPages", t.MidColumnPages = "midColumnPages", t.EndColumnPages = "endColumnPages", t))(Y || {});
|
|
23004
|
+
var N = ((o) => (o.OData = "OData", o.ODataAnnotation = "ODataAnnotation", o))(N || {});
|
|
23005
|
+
var z = ((s) => (s.ui = "sap.ui", s.app = "sap.app", s.generic = "sap.ui.generic.app", s.ovp = "sap.ovp", s.ui5 = "sap.ui5", s))(z || {});
|
|
23006
|
+
var lt = `${"sap.ui.generic.app"}/settings`;
|
|
23007
|
+
var gt2 = "sap.fe.templates.RootContainer.view.Fcl";
|
|
23008
|
+
var mt = "appRootView";
|
|
23009
|
+
var q = ((t) => (t.XML = "XML", t.HTML = "HTML", t.JSON = "JSON", t))(q || {});
|
|
23010
|
+
var bt = "sap.ui.core.mvc.View";
|
|
23011
|
+
var St = "sap.ui.core.Fragment";
|
|
23012
|
+
var J = ((t) => (t.Error = "error", t.Warning = "warning", t.Info = "info", t))(J || {});
|
|
23013
|
+
var ut = { ["error"]: "Error", ["warning"]: "Warning", ["info"]: "Information" };
|
|
23014
|
+
var $ = ((b) => (b.ListReportObjectPageV2 = "ListReportObjectPageV2", b.ListReportObjectPageV4 = "ListReportObjectPageV4", b.OverviewPageV2 = "OverviewPageV2", b.AnalyticalListPageV2 = "AnalyticalListPageV2", b.AnalyticalListPageV4 = "AnalyticalListPageV4", b.FreestylePageV4 = "FreestylePageV4", b))($ || {});
|
|
23015
|
+
var Z = ((x) => (x.CustomPage = "CustomPage", x.CustomColumn = "CustomColumn", x.CustomSection = "CustomSection", x.ObjectPage = "ObjectPage", x.CustomAction = "CustomAction", x.CustomView = "CustomView", x.ControllerExtension = "ControllerExtension", x))(Z || {});
|
|
23016
|
+
var D = ((c) => (c.BuildingBlocks = "BuildingBlocks", c))(D || {});
|
|
23017
|
+
var C = {};
|
|
23018
|
+
d(C, { CardSettingsType: () => oe, CardTemplateType: () => te, ChartCardType: () => ee, ChartType: () => Ae, ContainerLayoutType: () => Ee, CreateMode: () => fe, DateRangeType: () => ce, DefaultContentView: () => xe, DefaultDateRangeValueType: () => pe, DefaultFilterMode: () => Pe, ExtensionFragmentTypes: () => Ce, FE_TEMPLATE_V2: () => Pt, FE_TEMPLATE_V2_ALP: () => Tt, FE_TEMPLATE_V2_LIST_REPORT: () => At, FE_TEMPLATE_V2_OBJECT_PAGE: () => dt, FilterPathType: () => le, IgnoredFieldsType: () => ue, LinkListFlavorType: () => se, ListFlavorType: () => ne, ListTypeType: () => ie, LoadDataOnAppLaunchSettings: () => de, MeasureAggregateValues: () => ae, SAPUI5_CONTROLLER_EXTENSION: () => ft, SAPUI5_VIEW_EXTENSION: () => Ct, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => Ot, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => yt, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Et, SectionPosition: () => Te, SortOrderType: () => re, Strategy: () => Se, TableColumnExtensionTypeV2: () => be, TableTypeV2: () => me, cardTemplateTypeMap: () => xt, customColumnViewTypes: () => ge });
|
|
23019
|
+
var ee = ((t) => (t.cardBubble = "cardBubble", t.cardchartsline = "cardchartsline", t.cardchartsdonut = "cardchartsdonut", t))(ee || {});
|
|
23020
|
+
var te = ((g) => (g.analytical = "sap.ovp.cards.charts.analytical", g.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", g.list = "sap.ovp.cards.list", g.listv4 = "sap.ovp.cards.v4.list", g.linklist = "sap.ovp.cards.linklist", g.linklistv4 = "sap.ovp.cards.v4.linklist", g.table = "sap.ovp.cards.table", g.tablev4 = "sap.ovp.cards.v4.table", g.stack = "sap.ovp.cards.stack", g))(te || {});
|
|
23021
|
+
var xt = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
23022
|
+
var oe = ((m) => (m.analyticalCardSettings = "analyticalCardSettings", m.analyticalCardSettingsv4 = "analyticalCardSettingsv4", m.listCardSettings = "listCardSettings", m.listCardSettingsv4 = "listCardSettingsv4", m.stackCardSettings = "stackCardSettings", m.linkListCardSettings = "linkListCardSettings", m.tableCardSettings = "tableCardSettings", m.tableCardSettingsv4 = "tableCardSettingsv4", m))(oe || {});
|
|
23023
|
+
var ae = ((s) => (s.average = "average", s.max = "max", s.min = "min", s.sum = "sum", s.count = "$count", s))(ae || {});
|
|
23024
|
+
var ne = ((t) => (t.standard = "standard", t.bar = "bar", t.carousel = "carousel", t))(ne || {});
|
|
23025
|
+
var ie = ((o) => (o.extended = "extended", o.condensed = "condensed", o))(ie || {});
|
|
23026
|
+
var re = ((o) => (o.ascending = "ascending", o.descending = "descending", o))(re || {});
|
|
23027
|
+
var se = ((o) => (o.standard = "standard", o.carousel = "carousel", o))(se || {});
|
|
23028
|
+
var ce = ((a) => (a.DATERANGE = "DATERANGE", a.DATE = "DATE", a.FROM = "FROM", a.TO = "TO", a.DAYS = "DAYS", a.LASTDAYS = "LASTDAYS", a.LASTWEEKS = "LASTWEEKS", a.WEEK = "WEEK", a.LASTMONTHS = "LASTMONTHS", a.MONTH = "MONTH", a.QUARTER = "QUARTER", a.LASTQUARTERS = "LASTQUARTERS", a.LASTYEARS = "LASTYEARS", a.LASTYEAR = "LASTYEAR", a.YEAR = "YEAR", a.NEXTDAYS = "NEXTDAYS", a.NEXTWEEKS = "NEXTWEEKS", a.NEXTMONTHS = "NEXTMONTHS", a.NEXTQUARTERS = "NEXTQUARTERS", a.NEXTYEARS = "NEXTYEARS", a.NEXT = "NEXT", a.SPECIFICMONTH = "SPECIFICMONTH", a.YESTERDAY = "YESTERDAY", a.YEARTODATE = "YEARTODATE", a.TODAY = "TODAY", a.TOMORROW = "TOMORROW", a.THISWEEK = "THISWEEK", a.LASTWEEK = "LASTWEEK", a.LAST2WEEKS = "LAST2WEEKS", a.LAST3WEEKS = "LAST3WEEKS", a.LAST4WEEKS = "LAST4WEEKS", a.LAST5WEEKS = "LAST5WEEKS", a.NEXTWEEK = "NEXTWEEK", a.NEXT2WEEKS = "NEXT2WEEKS", a.NEXT3WEEKS = "NEXT3WEEKS", a.NEXT4WEEKS = "NEXT4WEEKS", a.NEXT5WEEKS = "NEXT5WEEKS", a.THISMONTH = "THISMONTH", a.LASTMONTH = "LASTMONTH", a.NEXTMONTH = "NEXTMONTH", a.THISQUARTER = "THISQUARTER", a.LASTQUARTER = "LASTQUARTER", a.NEXTQUARTER = "NEXTQUARTER", a.QUARTER1 = "QUARTER1", a.QUARTER2 = "QUARTER2", a.QUARTER3 = "QUARTER3", a.QUARTER4 = "QUARTER4", a.TODAYFROMTO = "TODAYFROMTO", a))(ce || {});
|
|
23029
|
+
var pe = ((p) => (p.YESTERDAY = "YESTERDAY", p.TODAY = "TODAY", p.THISWEEK = "THISWEEK", p.LASTWEEK = "LASTWEEK", p.THISMONTH = "THISMONTH", p.TOMORROW = "TOMORROW", p.LASTMONTH = "LASTMONTH", p.THISQUARTER = "THISQUARTER", p.LASTQUARTER = "LASTQUARTER", p.THISYEAR = "THISYEAR", p.LASTYEAR = "LASTYEAR", p.LAST2WEEKS = "LAST2WEEKS", p.LAST3WEEKS = "LAST3WEEKS", p.LAST4WEEKS = "LAST4WEEKS", p.LAST5WEEKS = "LAST5WEEKS", p.YEARTODATE = "YEARTODATE", p.QUARTER1 = "QUARTER1", p.QUARTER2 = "QUARTER2", p.QUARTER3 = "QUARTER3", p.QUARTER4 = "QUARTER4", p.DATETOYEAR = "DATETOYEAR", p))(pe || {});
|
|
23030
|
+
var le = ((o) => (o.key = "key", o.catgory = "category", o))(le || {});
|
|
23031
|
+
var ge = ((c) => (c.XML = "XML", c))(ge || {});
|
|
23032
|
+
var me = ((i) => (i.ResponsiveTable = "ResponsiveTable", i.GridTable = "GridTable", i.AnalyticalTable = "AnalyticalTable", i.TreeTable = "TreeTable", i))(me || {});
|
|
23033
|
+
var be = ((i) => (i.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", i.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", i.TreeTableColumnsExtension = "TreeTableColumnsExtension", i.GridTableColumnsExtension = "GridTableColumnsExtension", i))(be || {});
|
|
23034
|
+
var Se = ((c) => (c.extension = "extension", c))(Se || {});
|
|
23035
|
+
var ue = ((c) => (c.GENERICPROPERTY = "GENERICPROPERTY", c))(ue || {});
|
|
23036
|
+
var xe = ((t) => (t.charttable = "charttable", t.chart = "chart", t.table = "table", t))(xe || {});
|
|
23037
|
+
var Pe = ((o) => (o.visual = "visual", o.compact = "compact", o))(Pe || {});
|
|
23038
|
+
var de = ((t) => (t.always = "always", t.never = "never", t.ifAnyFilterExist = "ifAnyFilterExist", t))(de || {});
|
|
23039
|
+
var Ae = ((r) => (r.bar = "bar", r.column = "column", r.line = "line", r.combination = "combination", r.pie = "pie", r.donut = "donut", r.scatter = "scatter", r.bubble = "bubble", r.heatmap = "heatmap", r.bullet = "bullet", r.verticalBullet = "vertical_bullet", r.stackedBar = "stacked_bar", r.stackedColumn = "stacked_column", r.stackedCombination = "stacked_combination", r.horizontalStackedCombination = "horizontal_stacked_combination", r.dualBar = "dual_bar", r.dualColumn = "dual_column", r.dualLine = "dual_line", r.dualStackedBar = "dual_stacked_bar", r.dualStackedColumn = "dual_stacked_column", r.dualCombination = "dual_combination", r.dualStackedCombination = "dual_stacked_combination", r.dualHorizontalCombination = "dual_horizontal_combination", r.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", r.hundredStackedBar = "100_stacked_bar", r.hundredStackedColumn = "100_stacked_column", r.hundredDualStackedBar = "100_dual_stacked_bar", r.hundredDualStackedColumn = "100_dual_stacked_column", r.waterfall = "waterfall", r.horizontalWaterfall = "horizontal_waterfall", r))(Ae || {});
|
|
23040
|
+
var Te = ((t) => (t.AfterFacet = "AfterFacet", t.BeforeFacet = "BeforeFacet", t.ReplaceFacet = "ReplaceFacet", t))(Te || {});
|
|
23041
|
+
var Ce = ((c) => (c.XML = "XML", c))(Ce || {});
|
|
23042
|
+
var fe = ((t) => (t.creationRows = "creationRows", t.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", t.inline = "inline", t))(fe || {});
|
|
23043
|
+
var Pt = "sap.suite.ui.generic.template";
|
|
23044
|
+
var dt = "sap.suite.ui.generic.template.ObjectPage";
|
|
23045
|
+
var At = "sap.suite.ui.generic.template.ListReport";
|
|
23046
|
+
var Tt = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
23047
|
+
var Ct = "sap.ui.viewExtensions";
|
|
23048
|
+
var ft = "sap.ui.controllerExtensions";
|
|
23049
|
+
var Et = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
23050
|
+
var yt = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
23051
|
+
var Ot = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
23052
|
+
var Ee = ((o) => (o.fixed = "fixed", o.resizable = "resizable", o))(Ee || {});
|
|
23345
23053
|
var f = {};
|
|
23346
|
-
|
|
23347
|
-
var
|
|
23348
|
-
var
|
|
23349
|
-
var
|
|
23350
|
-
var
|
|
23351
|
-
var
|
|
23352
|
-
var
|
|
23353
|
-
var
|
|
23354
|
-
var
|
|
23355
|
-
var
|
|
23356
|
-
var
|
|
23357
|
-
var
|
|
23358
|
-
var
|
|
23359
|
-
var
|
|
23360
|
-
var
|
|
23361
|
-
var
|
|
23362
|
-
var
|
|
23363
|
-
var
|
|
23364
|
-
var
|
|
23365
|
-
var
|
|
23366
|
-
var
|
|
23367
|
-
var
|
|
23368
|
-
var
|
|
23369
|
-
var
|
|
23370
|
-
var
|
|
23371
|
-
var
|
|
23372
|
-
var
|
|
23373
|
-
var
|
|
23374
|
-
var
|
|
23375
|
-
var
|
|
23376
|
-
var
|
|
23377
|
-
var jt = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
23378
|
-
var Ft = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
23379
|
-
var ht = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
23380
|
-
var Le = ((t) => (t.fixed = "fixed", t.resizable = "resizable", t))(Le || {});
|
|
23381
|
-
var E = {};
|
|
23382
|
-
A(E, { ActionPlacement: () => je, Availability: () => Xe, CustomSectionViewTypesV4: () => Be, DefaultPathType: () => ve, DesigntimeValues: () => Me, FE_TEMPLATE_V4: () => Rt, FE_TEMPLATE_V4_ALP: () => wt, FE_TEMPLATE_V4_CUSTOM_PAGE: () => vt, FE_TEMPLATE_V4_LIST_REPORT: () => Ut, FE_TEMPLATE_V4_OBJECT_PAGE: () => It, FIORI_FCL_ROUTER_CLASS: () => _t, HorizontalAlign: () => Qe, InitialLayoutType: () => Ue, InitialLoadType: () => Re, LayoutType: () => Ie, Placement: () => We, SAPUI5_CONTROLLER_EXTENSION: () => Bt, SAPUI5_DEPENDENCY_LIB_SAP_F: () => kt, SAPUI5_FRAGMENT_TYPE_V4: () => Mt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Ht, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Gt, SectionLayoutType: () => _e, SectionPosition: () => ke, SectionPositionV4: () => He, SelectType: () => we, SelectionMode: () => Fe, TableCreationModeType: () => Ge, TableTypeV4: () => he, VariantManagementTypeListReport: () => Ye, VariantManagementTypeObjectPage: () => Ke });
|
|
23383
|
-
var je = ((t) => (t.After = "After", t.Before = "Before", t))(je || {});
|
|
23384
|
-
var Fe = ((r) => (r.Multi = "Multi", r.None = "None", r.Single = "Single", r.Auto = "Auto", r))(Fe || {});
|
|
23385
|
-
var he = ((o) => (o.ResponsiveTable = "ResponsiveTable", o.GridTable = "GridTable", o.AnalyticalTable = "AnalyticalTable", o))(he || {});
|
|
23386
|
-
var Re = ((o) => (o.Disabled = "Disabled", o.Enabled = "Enabled", o.Auto = "Auto", o))(Re || {});
|
|
23387
|
-
var ve = ((o) => (o.Primary = "primary", o.Secondary = "secondary", o.Both = "both", o))(ve || {});
|
|
23388
|
-
var Ie = ((t) => (t.Compact = "Compact", t.CompactVisual = "CompactVisual", t))(Ie || {});
|
|
23389
|
-
var Ue = ((t) => (t.Compact = "Compact", t.Visual = "Visual", t))(Ue || {});
|
|
23390
|
-
var we = ((t) => (t.single = "single", t.multi = "multi", t))(we || {});
|
|
23391
|
-
var Me = ((p) => (p["not-adaptable-visibility"] = "not-adaptable-visibility", p))(Me || {});
|
|
23392
|
-
var _e = ((t) => (t.Tabs = "Tabs", t.Page = "Page", t))(_e || {});
|
|
23393
|
-
var ke = ((t) => (t.After = "After", t.Before = "Before", t))(ke || {});
|
|
23394
|
-
var Be = ((n) => (n.XML = "XML", n))(Be || {});
|
|
23395
|
-
var Ge = ((o) => (o.NewPage = "NewPage", o.InlineCreationRows = "InlineCreationRows", o.Inline = "Inline", o))(Ge || {});
|
|
23396
|
-
var Rt = "sap.fe.templates";
|
|
23397
|
-
var vt = "sap.fe.core.fpm";
|
|
23398
|
-
var It = "sap.fe.templates.ObjectPage";
|
|
23399
|
-
var Ut = "sap.fe.templates.ListReport";
|
|
23400
|
-
var wt = "sap.fe.templates.AnalyticalListPage";
|
|
23401
|
-
var Mt = "XMLFragment";
|
|
23402
|
-
var He = ((t) => (t.AfterFacet = "AfterFacet", t.BeforeFacet = "BeforeFacet", t))(He || {});
|
|
23403
|
-
var _t = "sap.f.routing.Router";
|
|
23404
|
-
var kt = "sap.f";
|
|
23405
|
-
var Bt = "sap.ui.controllerExtensions";
|
|
23406
|
-
var Gt = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
23407
|
-
var Ht = "sap.fe.templates.ListReport.ListReportController";
|
|
23408
|
-
var We = ((t) => (t.After = "After", t.Before = "Before", t))(We || {});
|
|
23409
|
-
var Xe = ((o) => (o.Default = "Default", o.Adaptation = "Adaptation", o.Hidden = "Hidden", o))(Xe || {});
|
|
23410
|
-
var Qe = ((o) => (o.Begin = "Begin", o.Center = "Center", o.End = "End", o))(Qe || {});
|
|
23411
|
-
var Ke = ((t) => (t.None = "None", t.Control = "Control", t))(Ke || {});
|
|
23412
|
-
var Ye = ((o) => (o.None = "None", o.Control = "Control", o.Page = "Page", o))(Ye || {});
|
|
23413
|
-
module2.exports = Ze(Wt);
|
|
23054
|
+
d(f, { ActionPlacement: () => ye, Availability: () => Be, CustomSectionViewTypesV4: () => we, DefaultPathType: () => je, DesigntimeValues: () => ve, FE_TEMPLATE_V4: () => Vt, FE_TEMPLATE_V4_ALP: () => ht, FE_TEMPLATE_V4_CUSTOM_PAGE: () => Lt, FE_TEMPLATE_V4_LIST_REPORT: () => Ft, FE_TEMPLATE_V4_OBJECT_PAGE: () => jt, FIORI_FCL_ROUTER_CLASS: () => vt, HorizontalAlign: () => Ge, InitialLayoutType: () => he, InitialLoadType: () => Le, LayoutType: () => Fe, Placement: () => ke, SAPUI5_CONTROLLER_EXTENSION: () => Ut, SAPUI5_DEPENDENCY_LIB_SAP_F: () => It, SAPUI5_FRAGMENT_TYPE_V4: () => Rt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Mt, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => wt, SectionLayoutType: () => Ie, SectionPosition: () => Ue, SectionPositionV4: () => _e, SelectType: () => Re, SelectionMode: () => Oe, TableCreationModeType: () => Me, TableTypeV4: () => Ve, VariantManagementTypeListReport: () => We, VariantManagementTypeObjectPage: () => He });
|
|
23055
|
+
var ye = ((o) => (o.After = "After", o.Before = "Before", o))(ye || {});
|
|
23056
|
+
var Oe = ((i) => (i.Multi = "Multi", i.None = "None", i.Single = "Single", i.Auto = "Auto", i))(Oe || {});
|
|
23057
|
+
var Ve = ((t) => (t.ResponsiveTable = "ResponsiveTable", t.GridTable = "GridTable", t.AnalyticalTable = "AnalyticalTable", t))(Ve || {});
|
|
23058
|
+
var Le = ((t) => (t.Disabled = "Disabled", t.Enabled = "Enabled", t.Auto = "Auto", t))(Le || {});
|
|
23059
|
+
var je = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Both = "both", t))(je || {});
|
|
23060
|
+
var Fe = ((o) => (o.Compact = "Compact", o.CompactVisual = "CompactVisual", o))(Fe || {});
|
|
23061
|
+
var he = ((o) => (o.Compact = "Compact", o.Visual = "Visual", o))(he || {});
|
|
23062
|
+
var Re = ((o) => (o.single = "single", o.multi = "multi", o))(Re || {});
|
|
23063
|
+
var ve = ((u) => (u["not-adaptable-visibility"] = "not-adaptable-visibility", u))(ve || {});
|
|
23064
|
+
var Ie = ((o) => (o.Tabs = "Tabs", o.Page = "Page", o))(Ie || {});
|
|
23065
|
+
var Ue = ((o) => (o.After = "After", o.Before = "Before", o))(Ue || {});
|
|
23066
|
+
var we = ((c) => (c.XML = "XML", c))(we || {});
|
|
23067
|
+
var Me = ((t) => (t.NewPage = "NewPage", t.InlineCreationRows = "InlineCreationRows", t.Inline = "Inline", t))(Me || {});
|
|
23068
|
+
var Vt = "sap.fe.templates";
|
|
23069
|
+
var Lt = "sap.fe.core.fpm";
|
|
23070
|
+
var jt = "sap.fe.templates.ObjectPage";
|
|
23071
|
+
var Ft = "sap.fe.templates.ListReport";
|
|
23072
|
+
var ht = "sap.fe.templates.AnalyticalListPage";
|
|
23073
|
+
var Rt = "XMLFragment";
|
|
23074
|
+
var _e = ((o) => (o.AfterFacet = "AfterFacet", o.BeforeFacet = "BeforeFacet", o))(_e || {});
|
|
23075
|
+
var vt = "sap.f.routing.Router";
|
|
23076
|
+
var It = "sap.f";
|
|
23077
|
+
var Ut = "sap.ui.controllerExtensions";
|
|
23078
|
+
var wt = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
23079
|
+
var Mt = "sap.fe.templates.ListReport.ListReportController";
|
|
23080
|
+
var ke = ((o) => (o.After = "After", o.Before = "Before", o))(ke || {});
|
|
23081
|
+
var Be = ((t) => (t.Default = "Default", t.Adaptation = "Adaptation", t.Hidden = "Hidden", t))(Be || {});
|
|
23082
|
+
var Ge = ((t) => (t.Begin = "Begin", t.Center = "Center", t.End = "End", t))(Ge || {});
|
|
23083
|
+
var He = ((o) => (o.None = "None", o.Control = "Control", o))(He || {});
|
|
23084
|
+
var We = ((t) => (t.None = "None", t.Control = "Control", t.Page = "Page", t))(We || {});
|
|
23414
23085
|
}
|
|
23415
23086
|
});
|
|
23416
23087
|
|
|
@@ -23464,55 +23135,54 @@ var require_v2 = __commonJS({
|
|
|
23464
23135
|
var F = Object.getOwnPropertyDescriptor;
|
|
23465
23136
|
var j = Object.getOwnPropertyNames;
|
|
23466
23137
|
var W = Object.prototype.hasOwnProperty;
|
|
23467
|
-
var w = (
|
|
23468
|
-
|
|
23469
|
-
|
|
23470
|
-
|
|
23471
|
-
|
|
23472
|
-
|
|
23473
|
-
|
|
23474
|
-
|
|
23475
|
-
|
|
23476
|
-
|
|
23477
|
-
};
|
|
23478
|
-
var
|
|
23479
|
-
|
|
23480
|
-
|
|
23481
|
-
var b = ((
|
|
23482
|
-
var d = ((
|
|
23483
|
-
var
|
|
23484
|
-
var m = ((
|
|
23138
|
+
var w = (c, o) => {
|
|
23139
|
+
for (var a in o)
|
|
23140
|
+
p(c, a, { get: o[a], enumerable: true });
|
|
23141
|
+
};
|
|
23142
|
+
var M = (c, o, a, n) => {
|
|
23143
|
+
if (o && typeof o == "object" || typeof o == "function")
|
|
23144
|
+
for (let r of j(o))
|
|
23145
|
+
!W.call(c, r) && r !== a && p(c, r, { get: () => o[r], enumerable: !(n = F(o, r)) || n.enumerable });
|
|
23146
|
+
return c;
|
|
23147
|
+
};
|
|
23148
|
+
var B = (c) => M(p({}, "__esModule", { value: true }), c);
|
|
23149
|
+
var Z = {};
|
|
23150
|
+
w(Z, { CardSettingsType: () => m, CardTemplateType: () => d, ChartCardType: () => b, ChartType: () => V, ContainerLayoutType: () => h, CreateMode: () => k, DateRangeType: () => u, DefaultContentView: () => y, DefaultDateRangeValueType: () => P, DefaultFilterMode: () => U, ExtensionFragmentTypes: () => N, FE_TEMPLATE_V2: () => X, FE_TEMPLATE_V2_ALP: () => K, FE_TEMPLATE_V2_LIST_REPORT: () => G, FE_TEMPLATE_V2_OBJECT_PAGE: () => H, FilterPathType: () => f, IgnoredFieldsType: () => v, LinkListFlavorType: () => A, ListFlavorType: () => T, ListTypeType: () => x, LoadDataOnAppLaunchSettings: () => I, MeasureAggregateValues: () => g, SAPUI5_CONTROLLER_EXTENSION: () => z, SAPUI5_VIEW_EXTENSION: () => Y, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => $, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => J, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => q, SectionPosition: () => _45, SortOrderType: () => E, Strategy: () => R, TableColumnExtensionTypeV2: () => L, TableTypeV2: () => O, cardTemplateTypeMap: () => Q, customColumnViewTypes: () => C });
|
|
23151
|
+
module2.exports = B(Z);
|
|
23152
|
+
var b = ((n) => (n.cardBubble = "cardBubble", n.cardchartsline = "cardchartsline", n.cardchartsdonut = "cardchartsdonut", n))(b || {});
|
|
23153
|
+
var d = ((s) => (s.analytical = "sap.ovp.cards.charts.analytical", s.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", s.list = "sap.ovp.cards.list", s.listv4 = "sap.ovp.cards.v4.list", s.linklist = "sap.ovp.cards.linklist", s.linklistv4 = "sap.ovp.cards.v4.linklist", s.table = "sap.ovp.cards.table", s.tablev4 = "sap.ovp.cards.v4.table", s.stack = "sap.ovp.cards.stack", s))(d || {});
|
|
23154
|
+
var Q = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
23155
|
+
var m = ((l) => (l.analyticalCardSettings = "analyticalCardSettings", l.analyticalCardSettingsv4 = "analyticalCardSettingsv4", l.listCardSettings = "listCardSettings", l.listCardSettingsv4 = "listCardSettingsv4", l.stackCardSettings = "stackCardSettings", l.linkListCardSettings = "linkListCardSettings", l.tableCardSettings = "tableCardSettings", l.tableCardSettingsv4 = "tableCardSettingsv4", l))(m || {});
|
|
23485
23156
|
var g = ((S) => (S.average = "average", S.max = "max", S.min = "min", S.sum = "sum", S.count = "$count", S))(g || {});
|
|
23486
|
-
var T = ((
|
|
23487
|
-
var x = ((
|
|
23488
|
-
var E = ((
|
|
23489
|
-
var A = ((
|
|
23157
|
+
var T = ((n) => (n.standard = "standard", n.bar = "bar", n.carousel = "carousel", n))(T || {});
|
|
23158
|
+
var x = ((a) => (a.extended = "extended", a.condensed = "condensed", a))(x || {});
|
|
23159
|
+
var E = ((a) => (a.ascending = "ascending", a.descending = "descending", a))(E || {});
|
|
23160
|
+
var A = ((a) => (a.standard = "standard", a.carousel = "carousel", a))(A || {});
|
|
23490
23161
|
var u = ((e) => (e.DATERANGE = "DATERANGE", e.DATE = "DATE", e.FROM = "FROM", e.TO = "TO", e.DAYS = "DAYS", e.LASTDAYS = "LASTDAYS", e.LASTWEEKS = "LASTWEEKS", e.WEEK = "WEEK", e.LASTMONTHS = "LASTMONTHS", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.LASTQUARTERS = "LASTQUARTERS", e.LASTYEARS = "LASTYEARS", e.LASTYEAR = "LASTYEAR", e.YEAR = "YEAR", e.NEXTDAYS = "NEXTDAYS", e.NEXTWEEKS = "NEXTWEEKS", e.NEXTMONTHS = "NEXTMONTHS", e.NEXTQUARTERS = "NEXTQUARTERS", e.NEXTYEARS = "NEXTYEARS", e.NEXT = "NEXT", e.SPECIFICMONTH = "SPECIFICMONTH", e.YESTERDAY = "YESTERDAY", e.YEARTODATE = "YEARTODATE", e.TODAY = "TODAY", e.TOMORROW = "TOMORROW", e.THISWEEK = "THISWEEK", e.LASTWEEK = "LASTWEEK", e.LAST2WEEKS = "LAST2WEEKS", e.LAST3WEEKS = "LAST3WEEKS", e.LAST4WEEKS = "LAST4WEEKS", e.LAST5WEEKS = "LAST5WEEKS", e.NEXTWEEK = "NEXTWEEK", e.NEXT2WEEKS = "NEXT2WEEKS", e.NEXT3WEEKS = "NEXT3WEEKS", e.NEXT4WEEKS = "NEXT4WEEKS", e.NEXT5WEEKS = "NEXT5WEEKS", e.THISMONTH = "THISMONTH", e.LASTMONTH = "LASTMONTH", e.NEXTMONTH = "NEXTMONTH", e.THISQUARTER = "THISQUARTER", e.LASTQUARTER = "LASTQUARTER", e.NEXTQUARTER = "NEXTQUARTER", e.QUARTER1 = "QUARTER1", e.QUARTER2 = "QUARTER2", e.QUARTER3 = "QUARTER3", e.QUARTER4 = "QUARTER4", e.TODAYFROMTO = "TODAYFROMTO", e))(u || {});
|
|
23491
|
-
var P = ((
|
|
23492
|
-
var f = ((
|
|
23493
|
-
var C = ((
|
|
23162
|
+
var P = ((i) => (i.YESTERDAY = "YESTERDAY", i.TODAY = "TODAY", i.THISWEEK = "THISWEEK", i.LASTWEEK = "LASTWEEK", i.THISMONTH = "THISMONTH", i.TOMORROW = "TOMORROW", i.LASTMONTH = "LASTMONTH", i.THISQUARTER = "THISQUARTER", i.LASTQUARTER = "LASTQUARTER", i.THISYEAR = "THISYEAR", i.LASTYEAR = "LASTYEAR", i.LAST2WEEKS = "LAST2WEEKS", i.LAST3WEEKS = "LAST3WEEKS", i.LAST4WEEKS = "LAST4WEEKS", i.LAST5WEEKS = "LAST5WEEKS", i.YEARTODATE = "YEARTODATE", i.QUARTER1 = "QUARTER1", i.QUARTER2 = "QUARTER2", i.QUARTER3 = "QUARTER3", i.QUARTER4 = "QUARTER4", i.DATETOYEAR = "DATETOYEAR", i))(P || {});
|
|
23163
|
+
var f = ((a) => (a.key = "key", a.catgory = "category", a))(f || {});
|
|
23164
|
+
var C = ((o) => (o.XML = "XML", o))(C || {});
|
|
23494
23165
|
var O = ((r) => (r.ResponsiveTable = "ResponsiveTable", r.GridTable = "GridTable", r.AnalyticalTable = "AnalyticalTable", r.TreeTable = "TreeTable", r))(O || {});
|
|
23495
23166
|
var L = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r))(L || {});
|
|
23496
|
-
var R = ((
|
|
23497
|
-
var v = ((
|
|
23498
|
-
var y = ((
|
|
23499
|
-
var U = ((
|
|
23500
|
-
var I = ((
|
|
23167
|
+
var R = ((o) => (o.extension = "extension", o))(R || {});
|
|
23168
|
+
var v = ((o) => (o.GENERICPROPERTY = "GENERICPROPERTY", o))(v || {});
|
|
23169
|
+
var y = ((n) => (n.charttable = "charttable", n.chart = "chart", n.table = "table", n))(y || {});
|
|
23170
|
+
var U = ((a) => (a.visual = "visual", a.compact = "compact", a))(U || {});
|
|
23171
|
+
var I = ((n) => (n.always = "always", n.never = "never", n.ifAnyFilterExist = "ifAnyFilterExist", n))(I || {});
|
|
23501
23172
|
var V = ((t) => (t.bar = "bar", t.column = "column", t.line = "line", t.combination = "combination", t.pie = "pie", t.donut = "donut", t.scatter = "scatter", t.bubble = "bubble", t.heatmap = "heatmap", t.bullet = "bullet", t.verticalBullet = "vertical_bullet", t.stackedBar = "stacked_bar", t.stackedColumn = "stacked_column", t.stackedCombination = "stacked_combination", t.horizontalStackedCombination = "horizontal_stacked_combination", t.dualBar = "dual_bar", t.dualColumn = "dual_column", t.dualLine = "dual_line", t.dualStackedBar = "dual_stacked_bar", t.dualStackedColumn = "dual_stacked_column", t.dualCombination = "dual_combination", t.dualStackedCombination = "dual_stacked_combination", t.dualHorizontalCombination = "dual_horizontal_combination", t.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", t.hundredStackedBar = "100_stacked_bar", t.hundredStackedColumn = "100_stacked_column", t.hundredDualStackedBar = "100_dual_stacked_bar", t.hundredDualStackedColumn = "100_dual_stacked_column", t.waterfall = "waterfall", t.horizontalWaterfall = "horizontal_waterfall", t))(V || {});
|
|
23502
|
-
var _45 = ((
|
|
23503
|
-
var N = ((
|
|
23504
|
-
var k = ((
|
|
23505
|
-
var
|
|
23506
|
-
var
|
|
23507
|
-
var
|
|
23508
|
-
var
|
|
23509
|
-
var
|
|
23510
|
-
var
|
|
23511
|
-
var
|
|
23512
|
-
var
|
|
23513
|
-
var
|
|
23514
|
-
var h = ((
|
|
23515
|
-
module2.exports = Q(D);
|
|
23173
|
+
var _45 = ((n) => (n.AfterFacet = "AfterFacet", n.BeforeFacet = "BeforeFacet", n.ReplaceFacet = "ReplaceFacet", n))(_45 || {});
|
|
23174
|
+
var N = ((o) => (o.XML = "XML", o))(N || {});
|
|
23175
|
+
var k = ((n) => (n.creationRows = "creationRows", n.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", n.inline = "inline", n))(k || {});
|
|
23176
|
+
var X = "sap.suite.ui.generic.template";
|
|
23177
|
+
var H = "sap.suite.ui.generic.template.ObjectPage";
|
|
23178
|
+
var G = "sap.suite.ui.generic.template.ListReport";
|
|
23179
|
+
var K = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
23180
|
+
var Y = "sap.ui.viewExtensions";
|
|
23181
|
+
var z = "sap.ui.controllerExtensions";
|
|
23182
|
+
var q = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
23183
|
+
var J = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
23184
|
+
var $ = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
23185
|
+
var h = ((a) => (a.fixed = "fixed", a.resizable = "resizable", a))(h || {});
|
|
23516
23186
|
}
|
|
23517
23187
|
});
|
|
23518
23188
|
|
|
@@ -23523,51 +23193,50 @@ var require_v4 = __commonJS({
|
|
|
23523
23193
|
var O = Object.getOwnPropertyDescriptor;
|
|
23524
23194
|
var U = Object.getOwnPropertyNames;
|
|
23525
23195
|
var E = Object.prototype.hasOwnProperty;
|
|
23526
|
-
var w = (
|
|
23527
|
-
var j = (i, o) => {
|
|
23196
|
+
var w = (n, o) => {
|
|
23528
23197
|
for (var e in o)
|
|
23529
|
-
a(
|
|
23198
|
+
a(n, e, { get: o[e], enumerable: true });
|
|
23530
23199
|
};
|
|
23531
|
-
var
|
|
23200
|
+
var j = (n, o, e, t) => {
|
|
23532
23201
|
if (o && typeof o == "object" || typeof o == "function")
|
|
23533
|
-
for (let
|
|
23534
|
-
!E.call(
|
|
23535
|
-
return
|
|
23202
|
+
for (let i of U(o))
|
|
23203
|
+
!E.call(n, i) && i !== e && a(n, i, { get: () => o[i], enumerable: !(t = O(o, i)) || t.enumerable });
|
|
23204
|
+
return n;
|
|
23536
23205
|
};
|
|
23537
|
-
var
|
|
23538
|
-
var
|
|
23539
|
-
|
|
23206
|
+
var h = (n) => j(a({}, "__esModule", { value: true }), n);
|
|
23207
|
+
var H = {};
|
|
23208
|
+
w(H, { ActionPlacement: () => r, Availability: () => d, CustomSectionViewTypesV4: () => S, DefaultPathType: () => l, DesigntimeValues: () => u, FE_TEMPLATE_V4: () => R, FE_TEMPLATE_V4_ALP: () => B, FE_TEMPLATE_V4_CUSTOM_PAGE: () => F, FE_TEMPLATE_V4_LIST_REPORT: () => L, FE_TEMPLATE_V4_OBJECT_PAGE: () => _45, FIORI_FCL_ROUTER_CLASS: () => v, HorizontalAlign: () => A, InitialLayoutType: () => m, InitialLoadType: () => c, LayoutType: () => g, Placement: () => T, SAPUI5_CONTROLLER_EXTENSION: () => k, SAPUI5_DEPENDENCY_LIB_SAP_F: () => I, SAPUI5_FRAGMENT_TYPE_V4: () => N, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => G, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => M, SectionLayoutType: () => x, SectionPosition: () => f, SectionPositionV4: () => C, SelectType: () => b, SelectionMode: () => s, TableCreationModeType: () => P, TableTypeV4: () => p, VariantManagementTypeListReport: () => y, VariantManagementTypeObjectPage: () => V });
|
|
23209
|
+
module2.exports = h(H);
|
|
23540
23210
|
var r = ((e) => (e.After = "After", e.Before = "Before", e))(r || {});
|
|
23541
|
-
var s = ((
|
|
23211
|
+
var s = ((i) => (i.Multi = "Multi", i.None = "None", i.Single = "Single", i.Auto = "Auto", i))(s || {});
|
|
23542
23212
|
var p = ((t) => (t.ResponsiveTable = "ResponsiveTable", t.GridTable = "GridTable", t.AnalyticalTable = "AnalyticalTable", t))(p || {});
|
|
23543
23213
|
var c = ((t) => (t.Disabled = "Disabled", t.Enabled = "Enabled", t.Auto = "Auto", t))(c || {});
|
|
23544
23214
|
var l = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Both = "both", t))(l || {});
|
|
23545
23215
|
var g = ((e) => (e.Compact = "Compact", e.CompactVisual = "CompactVisual", e))(g || {});
|
|
23546
23216
|
var m = ((e) => (e.Compact = "Compact", e.Visual = "Visual", e))(m || {});
|
|
23547
23217
|
var b = ((e) => (e.single = "single", e.multi = "multi", e))(b || {});
|
|
23548
|
-
var u = ((
|
|
23218
|
+
var u = ((n) => (n["not-adaptable-visibility"] = "not-adaptable-visibility", n))(u || {});
|
|
23549
23219
|
var x = ((e) => (e.Tabs = "Tabs", e.Page = "Page", e))(x || {});
|
|
23550
23220
|
var f = ((e) => (e.After = "After", e.Before = "Before", e))(f || {});
|
|
23551
23221
|
var S = ((o) => (o.XML = "XML", o))(S || {});
|
|
23552
23222
|
var P = ((t) => (t.NewPage = "NewPage", t.InlineCreationRows = "InlineCreationRows", t.Inline = "Inline", t))(P || {});
|
|
23553
|
-
var
|
|
23554
|
-
var
|
|
23555
|
-
var
|
|
23556
|
-
var
|
|
23557
|
-
var
|
|
23558
|
-
var
|
|
23223
|
+
var R = "sap.fe.templates";
|
|
23224
|
+
var F = "sap.fe.core.fpm";
|
|
23225
|
+
var _45 = "sap.fe.templates.ObjectPage";
|
|
23226
|
+
var L = "sap.fe.templates.ListReport";
|
|
23227
|
+
var B = "sap.fe.templates.AnalyticalListPage";
|
|
23228
|
+
var N = "XMLFragment";
|
|
23559
23229
|
var C = ((e) => (e.AfterFacet = "AfterFacet", e.BeforeFacet = "BeforeFacet", e))(C || {});
|
|
23560
|
-
var
|
|
23561
|
-
var
|
|
23562
|
-
var
|
|
23563
|
-
var
|
|
23564
|
-
var
|
|
23230
|
+
var v = "sap.f.routing.Router";
|
|
23231
|
+
var I = "sap.f";
|
|
23232
|
+
var k = "sap.ui.controllerExtensions";
|
|
23233
|
+
var M = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
23234
|
+
var G = "sap.fe.templates.ListReport.ListReportController";
|
|
23565
23235
|
var T = ((e) => (e.After = "After", e.Before = "Before", e))(T || {});
|
|
23566
23236
|
var d = ((t) => (t.Default = "Default", t.Adaptation = "Adaptation", t.Hidden = "Hidden", t))(d || {});
|
|
23567
23237
|
var A = ((t) => (t.Begin = "Begin", t.Center = "Center", t.End = "End", t))(A || {});
|
|
23568
23238
|
var V = ((e) => (e.None = "None", e.Control = "Control", e))(V || {});
|
|
23569
23239
|
var y = ((t) => (t.None = "None", t.Control = "Control", t.Page = "Page", t))(y || {});
|
|
23570
|
-
module2.exports = R(D);
|
|
23571
23240
|
}
|
|
23572
23241
|
});
|
|
23573
23242
|
|
|
@@ -44377,13 +44046,13 @@ var require_esprima = __commonJS({
|
|
|
44377
44046
|
return Reader2;
|
|
44378
44047
|
}();
|
|
44379
44048
|
var Tokenizer = function() {
|
|
44380
|
-
function Tokenizer2(code,
|
|
44049
|
+
function Tokenizer2(code, config) {
|
|
44381
44050
|
this.errorHandler = new error_handler_1.ErrorHandler();
|
|
44382
|
-
this.errorHandler.tolerant =
|
|
44051
|
+
this.errorHandler.tolerant = config ? typeof config.tolerant === "boolean" && config.tolerant : false;
|
|
44383
44052
|
this.scanner = new scanner_1.Scanner(code, this.errorHandler);
|
|
44384
|
-
this.scanner.trackComment =
|
|
44385
|
-
this.trackRange =
|
|
44386
|
-
this.trackLoc =
|
|
44053
|
+
this.scanner.trackComment = config ? typeof config.comment === "boolean" && config.comment : false;
|
|
44054
|
+
this.trackRange = config ? typeof config.range === "boolean" && config.range : false;
|
|
44055
|
+
this.trackLoc = config ? typeof config.loc === "boolean" && config.loc : false;
|
|
44387
44056
|
this.buffer = [];
|
|
44388
44057
|
this.reader = new Reader();
|
|
44389
44058
|
}
|
|
@@ -52357,10 +52026,10 @@ var require_cfServicesUtil = __commonJS({
|
|
|
52357
52026
|
return (0, cf_local_1.cfGetInstanceKeyParameters)(instanceName);
|
|
52358
52027
|
}
|
|
52359
52028
|
exports2.getInstanceCredentials = getInstanceCredentials;
|
|
52360
|
-
function createServiceInstance(serviceType, servicePlan, serviceInstanceName,
|
|
52029
|
+
function createServiceInstance(serviceType, servicePlan, serviceInstanceName, config) {
|
|
52361
52030
|
let args = ["create-service", serviceType, servicePlan, serviceInstanceName];
|
|
52362
|
-
if (
|
|
52363
|
-
args = args.concat(["-c",
|
|
52031
|
+
if (config) {
|
|
52032
|
+
args = args.concat(["-c", config]);
|
|
52364
52033
|
}
|
|
52365
52034
|
return cli_1.Cli.execute(args);
|
|
52366
52035
|
}
|
|
@@ -52446,9 +52115,9 @@ var require_src6 = __commonJS({
|
|
|
52446
52115
|
});
|
|
52447
52116
|
}
|
|
52448
52117
|
exports2.apiGetInstanceCredentials = apiGetInstanceCredentials;
|
|
52449
|
-
function apiCreateServiceInstance(serviceType, servicePlan, instanceName,
|
|
52118
|
+
function apiCreateServiceInstance(serviceType, servicePlan, instanceName, config) {
|
|
52450
52119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52451
|
-
return serviceUtils.createServiceInstance(serviceType, servicePlan, instanceName,
|
|
52120
|
+
return serviceUtils.createServiceInstance(serviceType, servicePlan, instanceName, config);
|
|
52452
52121
|
});
|
|
52453
52122
|
}
|
|
52454
52123
|
exports2.apiCreateServiceInstance = apiCreateServiceInstance;
|
|
@@ -52594,7 +52263,7 @@ var require_connection = __commonJS({
|
|
|
52594
52263
|
var _a2;
|
|
52595
52264
|
const url = new url_1.URL(target.service, target.url).toString();
|
|
52596
52265
|
const hasCredentials = !!((_a2 = credentials == null ? void 0 : credentials.username) == null ? void 0 : _a2.length);
|
|
52597
|
-
const
|
|
52266
|
+
const config = {
|
|
52598
52267
|
params: {},
|
|
52599
52268
|
headers: {
|
|
52600
52269
|
[common_1.CSRF.requestHeaderName]: common_1.CSRF.requestHeaderValue
|
|
@@ -52605,7 +52274,7 @@ var require_connection = __commonJS({
|
|
|
52605
52274
|
})
|
|
52606
52275
|
};
|
|
52607
52276
|
if (hasCredentials) {
|
|
52608
|
-
|
|
52277
|
+
config.auth = credentials;
|
|
52609
52278
|
}
|
|
52610
52279
|
if (typeof timeout === "number" && timeout > 0) {
|
|
52611
52280
|
const CancelToken = axios_1.default.CancelToken;
|
|
@@ -52613,34 +52282,34 @@ var require_connection = __commonJS({
|
|
|
52613
52282
|
setTimeout(() => {
|
|
52614
52283
|
source.cancel("CONNECT_TIMEOUT");
|
|
52615
52284
|
}, timeout);
|
|
52616
|
-
|
|
52285
|
+
config.cancelToken = source.token;
|
|
52617
52286
|
}
|
|
52618
52287
|
if (target.params) {
|
|
52619
|
-
Object.assign(
|
|
52288
|
+
Object.assign(config.params, target.params);
|
|
52620
52289
|
}
|
|
52621
52290
|
if (target.client) {
|
|
52622
|
-
|
|
52291
|
+
config.params[exports2.SAP_CLIENT] = target.client;
|
|
52623
52292
|
}
|
|
52624
52293
|
const isTargetDestOnAppStudio = (0, ux_common_utils_1.isAppStudio)() && target.destination;
|
|
52625
52294
|
if (isTargetDestOnAppStudio || disableSAML) {
|
|
52626
|
-
|
|
52295
|
+
config.params.saml2 = "disabled";
|
|
52627
52296
|
}
|
|
52628
52297
|
const urlPath = !(url == null ? void 0 : url.endsWith("/")) && autoAddTrailingSlash ? `${url}/` : url;
|
|
52629
|
-
if ((
|
|
52630
|
-
|
|
52298
|
+
if ((config == null ? void 0 : config.auth) && Object.keys(config.auth).length > 0) {
|
|
52299
|
+
config.withCredentials = true;
|
|
52631
52300
|
} else {
|
|
52632
|
-
delete
|
|
52633
|
-
|
|
52301
|
+
delete config.auth;
|
|
52302
|
+
config.withCredentials = false;
|
|
52634
52303
|
}
|
|
52635
|
-
let response = await axios_1.default.get(urlPath,
|
|
52304
|
+
let response = await axios_1.default.get(urlPath, config);
|
|
52636
52305
|
if (!isTargetDestOnAppStudio && isSamlLogonNeeded(response)) {
|
|
52637
52306
|
logger.warn("Disabling SAML2. Falling back to basic authentication");
|
|
52638
|
-
|
|
52639
|
-
response = await axios_1.default.get(urlPath,
|
|
52307
|
+
config.params.saml2 = "disabled";
|
|
52308
|
+
response = await axios_1.default.get(urlPath, config);
|
|
52640
52309
|
}
|
|
52641
52310
|
throwIfHtmlLoginForm(response);
|
|
52642
52311
|
return {
|
|
52643
|
-
auth:
|
|
52312
|
+
auth: config.auth,
|
|
52644
52313
|
cookies: new cookies_1.Cookies().setCookie(response),
|
|
52645
52314
|
xsrfToken: response.headers[common_1.CSRF.responseHeaderName]
|
|
52646
52315
|
};
|
|
@@ -52734,7 +52403,7 @@ var require_httpClient = __commonJS({
|
|
|
52734
52403
|
if (connection.xsrfToken) {
|
|
52735
52404
|
headers["x-csrf-token"] = connection.xsrfToken;
|
|
52736
52405
|
}
|
|
52737
|
-
const
|
|
52406
|
+
const config = {
|
|
52738
52407
|
baseURL: new url_1.URL(system.service, system.url).toString(),
|
|
52739
52408
|
headers,
|
|
52740
52409
|
withCredentials: true,
|
|
@@ -52743,10 +52412,10 @@ var require_httpClient = __commonJS({
|
|
|
52743
52412
|
})
|
|
52744
52413
|
};
|
|
52745
52414
|
if (connection == null ? void 0 : connection.auth) {
|
|
52746
|
-
|
|
52415
|
+
config.auth = connection.auth;
|
|
52747
52416
|
}
|
|
52748
52417
|
axios_1.default.defaults.headers.common["Accept"] = "application/json,application/xml,text/plain,*/*";
|
|
52749
|
-
const httpClient = axios_1.default.create(
|
|
52418
|
+
const httpClient = axios_1.default.create(config);
|
|
52750
52419
|
return { connection, httpClient };
|
|
52751
52420
|
}
|
|
52752
52421
|
exports2.newHttpClient = newHttpClient;
|
|
@@ -54731,7 +54400,7 @@ var require_message = __commonJS({
|
|
|
54731
54400
|
error3 ? log4.error(msg) : log4.info(msg);
|
|
54732
54401
|
}
|
|
54733
54402
|
}
|
|
54734
|
-
function
|
|
54403
|
+
function prettyPrintError2(error3, log4, logData) {
|
|
54735
54404
|
var _a2, _b, _c;
|
|
54736
54405
|
if (error3) {
|
|
54737
54406
|
log4.error(`Backend error message: ${(_a2 = error3.message) == null ? void 0 : _a2.value}`);
|
|
@@ -54747,7 +54416,7 @@ var require_message = __commonJS({
|
|
|
54747
54416
|
log4.error(">>>");
|
|
54748
54417
|
}
|
|
54749
54418
|
}
|
|
54750
|
-
exports2.prettyPrintError =
|
|
54419
|
+
exports2.prettyPrintError = prettyPrintError2;
|
|
54751
54420
|
function printErrorDetails(errors, log4, logData) {
|
|
54752
54421
|
if (errors) {
|
|
54753
54422
|
errors.forEach((entry) => {
|
|
@@ -54927,10 +54596,10 @@ var require_axios_debug_log = __commonJS({
|
|
|
54927
54596
|
var axiosDebug = require_src2()("axios");
|
|
54928
54597
|
var URL_KEY = "__AXIOS-DEBUG-LOG_URL__";
|
|
54929
54598
|
var options2 = {
|
|
54930
|
-
request: function(debug,
|
|
54931
|
-
var url = axios2.getUri(
|
|
54932
|
-
Object.defineProperty(
|
|
54933
|
-
debug(
|
|
54599
|
+
request: function(debug, config) {
|
|
54600
|
+
var url = axios2.getUri(config);
|
|
54601
|
+
Object.defineProperty(config, URL_KEY, { value: url });
|
|
54602
|
+
debug(config.method.toUpperCase() + " " + url);
|
|
54934
54603
|
},
|
|
54935
54604
|
response: function(debug, response) {
|
|
54936
54605
|
var url = response.config[URL_KEY];
|
|
@@ -54948,9 +54617,9 @@ var require_axios_debug_log = __commonJS({
|
|
|
54948
54617
|
function addLogger(instance, debug) {
|
|
54949
54618
|
if (debug === void 0)
|
|
54950
54619
|
debug = axiosDebug;
|
|
54951
|
-
instance.interceptors.request.use(function(
|
|
54952
|
-
options2.request(debug,
|
|
54953
|
-
return
|
|
54620
|
+
instance.interceptors.request.use(function(config) {
|
|
54621
|
+
options2.request(debug, config);
|
|
54622
|
+
return config;
|
|
54954
54623
|
});
|
|
54955
54624
|
instance.interceptors.response.use(function(response) {
|
|
54956
54625
|
options2.response(debug, response);
|
|
@@ -55174,10 +54843,10 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
55174
54843
|
const httpClient = await this.getClient();
|
|
55175
54844
|
const info = await this.getInfo(app.name);
|
|
55176
54845
|
const payload = this.createPayload(archivePath, app.name, app.description || "Deployed with SAP Fiori tools", info ? info.Package : app.package, httpClient);
|
|
55177
|
-
const
|
|
54846
|
+
const config = this.createConfig(app.transport, testMode, safeMode);
|
|
55178
54847
|
const frontendUrl = this.getAbapFrontendUrl(this.system.originalUrl || this.system.url);
|
|
55179
54848
|
try {
|
|
55180
|
-
const response = await this.updateRepoRequest(!!info, app.name, httpClient, payload,
|
|
54849
|
+
const response = await this.updateRepoRequest(!!info, app.name, httpClient, payload, config);
|
|
55181
54850
|
if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
|
|
55182
54851
|
const message = JSON.parse(response.headers["sap-message"]);
|
|
55183
54852
|
message["longtextUrl"] = message["longtext_url"];
|
|
@@ -55199,9 +54868,9 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
55199
54868
|
async undeploy(app, testMode = false) {
|
|
55200
54869
|
var _a2;
|
|
55201
54870
|
const httpClient = await this.getClient();
|
|
55202
|
-
const
|
|
54871
|
+
const config = this.createConfig(app.transport, testMode);
|
|
55203
54872
|
try {
|
|
55204
|
-
const response = await this.deleteRepoRequest(app.name, httpClient,
|
|
54873
|
+
const response = await this.deleteRepoRequest(app.name, httpClient, config);
|
|
55205
54874
|
if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
|
|
55206
54875
|
const message = JSON.parse(response.headers["sap-message"]);
|
|
55207
54876
|
(0, message_1.prettyPrintMessage)(message, this.log);
|
|
@@ -55244,7 +54913,7 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
55244
54913
|
const escapedName = encodeXmlValue(name);
|
|
55245
54914
|
return `<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="${httpClient.defaults.baseURL}"> <id>${httpClient.defaults.baseURL}/Repositories('${escapedName}')</id> <title type="text">Repositories('${escapedName}')</title> <updated>${time}</updated> <category term="/UI5/ABAP_REPOSITORY_SRV.Repository" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/> <link href="Repositories('${escapedName}')" rel="edit" title="Repository"/> <content type="application/xml"> <m:properties> <d:Name>${escapedName}</d:Name> <d:Package>${abapPackage == null ? void 0 : abapPackage.toUpperCase()}</d:Package> <d:Description>${encodeXmlValue(description)}</d:Description> <d:ZipArchive>${base64Data}</d:ZipArchive> <d:Info/> </m:properties> </content></entry>`;
|
|
55246
54915
|
}
|
|
55247
|
-
async updateRepoRequest(isExisting, appName, httpClient, payload,
|
|
54916
|
+
async updateRepoRequest(isExisting, appName, httpClient, payload, config, tryCount = 1) {
|
|
55248
54917
|
var _a2, _b;
|
|
55249
54918
|
try {
|
|
55250
54919
|
if (tryCount === 2) {
|
|
@@ -55253,33 +54922,33 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
55253
54922
|
if (tryCount !== 1 && !isExisting && await this.getInfo(appName) !== void 0) {
|
|
55254
54923
|
return;
|
|
55255
54924
|
}
|
|
55256
|
-
return isExisting ? await httpClient.put(`/Repositories('${encodeURIComponent(appName)}')`, payload,
|
|
54925
|
+
return isExisting ? await httpClient.put(`/Repositories('${encodeURIComponent(appName)}')`, payload, config) : await httpClient.post("/Repositories", payload, config);
|
|
55257
54926
|
} catch (error3) {
|
|
55258
54927
|
if ([504, 408].includes((_a2 = error3 == null ? void 0 : error3.response) == null ? void 0 : _a2.status)) {
|
|
55259
54928
|
if (tryCount >= 3) {
|
|
55260
54929
|
throw error3;
|
|
55261
54930
|
}
|
|
55262
|
-
return await this.updateRepoRequest(isExisting, appName, httpClient, payload,
|
|
55263
|
-
} else if ((_b =
|
|
54931
|
+
return await this.updateRepoRequest(isExisting, appName, httpClient, payload, config, ++tryCount);
|
|
54932
|
+
} else if ((_b = config == null ? void 0 : config.params) == null ? void 0 : _b.TestMode) {
|
|
55264
54933
|
return error3.response;
|
|
55265
54934
|
} else {
|
|
55266
54935
|
throw error3;
|
|
55267
54936
|
}
|
|
55268
54937
|
}
|
|
55269
54938
|
}
|
|
55270
|
-
async deleteRepoRequest(appName, httpClient,
|
|
54939
|
+
async deleteRepoRequest(appName, httpClient, config, tryCount = 1) {
|
|
55271
54940
|
var _a2;
|
|
55272
54941
|
try {
|
|
55273
54942
|
if (tryCount === 2) {
|
|
55274
54943
|
this.log.warn("Warning: retry undeploy to handle a backend rejection...");
|
|
55275
54944
|
}
|
|
55276
|
-
return await httpClient.delete(`/Repositories('${encodeURIComponent(appName)}')`,
|
|
54945
|
+
return await httpClient.delete(`/Repositories('${encodeURIComponent(appName)}')`, config);
|
|
55277
54946
|
} catch (error3) {
|
|
55278
54947
|
if (((_a2 = error3 == null ? void 0 : error3.response) == null ? void 0 : _a2.status) === 400) {
|
|
55279
54948
|
if (tryCount >= 2) {
|
|
55280
54949
|
throw error3;
|
|
55281
54950
|
}
|
|
55282
|
-
return await this.deleteRepoRequest(appName, httpClient,
|
|
54951
|
+
return await this.deleteRepoRequest(appName, httpClient, config, ++tryCount);
|
|
55283
54952
|
} else {
|
|
55284
54953
|
throw error3;
|
|
55285
54954
|
}
|
|
@@ -55754,8 +55423,8 @@ var require_sapSystem = __commonJS({
|
|
|
55754
55423
|
const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || (0, __1.guessAuthType)({ credentials, fallback: false });
|
|
55755
55424
|
return new SapSystem(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName, void 0, void 0, types_1.SapSystemType.URL);
|
|
55756
55425
|
}
|
|
55757
|
-
constructor(name,
|
|
55758
|
-
this.config =
|
|
55426
|
+
constructor(name, config, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator, sapSystemType = types_1.SapSystemType.BTP) {
|
|
55427
|
+
this.config = config;
|
|
55759
55428
|
this.credentials = credentials;
|
|
55760
55429
|
this._unSaved = false;
|
|
55761
55430
|
this.postConnectionCallbackInitialized = false;
|
|
@@ -56085,7 +55754,7 @@ var require_systemStore = __commonJS({
|
|
|
56085
55754
|
});
|
|
56086
55755
|
|
|
56087
55756
|
// ../lib/odata-client/dist/system/index.js
|
|
56088
|
-
var
|
|
55757
|
+
var require_system2 = __commonJS({
|
|
56089
55758
|
"../lib/odata-client/dist/system/index.js"(exports2) {
|
|
56090
55759
|
"use strict";
|
|
56091
55760
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -56217,11 +55886,11 @@ var require_system3 = __commonJS({
|
|
|
56217
55886
|
exports2.newSapSystemForServiceUrl = newSapSystemForServiceUrl;
|
|
56218
55887
|
function newSapSystemForSteampunk(name, serviceKey, unSaved = false) {
|
|
56219
55888
|
const service = typeof serviceKey === "string" ? JSON.parse(serviceKey) : serviceKey;
|
|
56220
|
-
const
|
|
55889
|
+
const config = {
|
|
56221
55890
|
url: service.url,
|
|
56222
55891
|
scp: true
|
|
56223
55892
|
};
|
|
56224
|
-
return new sapSystem_1.SapSystem(name,
|
|
55893
|
+
return new sapSystem_1.SapSystem(name, config, { serviceKeysContents: service }, void 0, unSaved, postConnectionCallbackCreator, types_1.SapSystemType.SteamPunk);
|
|
56225
55894
|
}
|
|
56226
55895
|
exports2.newSapSystemForSteampunk = newSapSystemForSteampunk;
|
|
56227
55896
|
function newS4HCSystem({ name, url, unSaved = false }) {
|
|
@@ -56275,7 +55944,7 @@ var require_dist6 = __commonJS({
|
|
|
56275
55944
|
__exportStar(require_config(), exports2);
|
|
56276
55945
|
__exportStar(require_connection(), exports2);
|
|
56277
55946
|
__exportStar(require_api_hub(), exports2);
|
|
56278
|
-
__exportStar(
|
|
55947
|
+
__exportStar(require_system2(), exports2);
|
|
56279
55948
|
}
|
|
56280
55949
|
});
|
|
56281
55950
|
|
|
@@ -57640,6 +57309,7 @@ var require_constants5 = __commonJS({
|
|
|
57640
57309
|
ExtConfigJson: ".extconfig.json",
|
|
57641
57310
|
Manifest: "manifest.json",
|
|
57642
57311
|
ManifestAppDescrVar: "manifest.appdescr_variant",
|
|
57312
|
+
MtaYaml: "mta.yaml",
|
|
57643
57313
|
Package: "package.json",
|
|
57644
57314
|
Tsconfig: "tsconfig.json",
|
|
57645
57315
|
Ui5Yaml: "ui5.yaml",
|
|
@@ -57882,6 +57552,44 @@ var require_file4 = __commonJS({
|
|
|
57882
57552
|
}
|
|
57883
57553
|
});
|
|
57884
57554
|
|
|
57555
|
+
// ../../node_modules/@sap-ux/project-access/dist/project/dependencies.js
|
|
57556
|
+
var require_dependencies = __commonJS({
|
|
57557
|
+
"../../node_modules/@sap-ux/project-access/dist/project/dependencies.js"(exports2) {
|
|
57558
|
+
"use strict";
|
|
57559
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
57560
|
+
exports2.getNodeModulesPath = exports2.hasDependency = void 0;
|
|
57561
|
+
var fs_1 = require("fs");
|
|
57562
|
+
var path_1 = require("path");
|
|
57563
|
+
var constants_1 = require_constants5();
|
|
57564
|
+
var hasDependency = (packageJson, dependency) => {
|
|
57565
|
+
var _a2, _b;
|
|
57566
|
+
return !!(((_a2 = packageJson.dependencies) === null || _a2 === void 0 ? void 0 : _a2[dependency]) || ((_b = packageJson.devDependencies) === null || _b === void 0 ? void 0 : _b[dependency]));
|
|
57567
|
+
};
|
|
57568
|
+
exports2.hasDependency = hasDependency;
|
|
57569
|
+
function getNodeModulesPath(projectRoot, module3) {
|
|
57570
|
+
if (!(0, path_1.isAbsolute)(projectRoot)) {
|
|
57571
|
+
return void 0;
|
|
57572
|
+
}
|
|
57573
|
+
const { root } = (0, path_1.parse)(projectRoot);
|
|
57574
|
+
let currentDir = projectRoot;
|
|
57575
|
+
let modulesPath;
|
|
57576
|
+
while (currentDir !== root) {
|
|
57577
|
+
let checkPath = (0, path_1.join)(currentDir, "node_modules");
|
|
57578
|
+
if (module3) {
|
|
57579
|
+
checkPath = (0, path_1.join)(checkPath, module3, constants_1.FileName.Package);
|
|
57580
|
+
}
|
|
57581
|
+
if ((0, fs_1.existsSync)(checkPath)) {
|
|
57582
|
+
modulesPath = currentDir;
|
|
57583
|
+
break;
|
|
57584
|
+
}
|
|
57585
|
+
currentDir = (0, path_1.dirname)(currentDir);
|
|
57586
|
+
}
|
|
57587
|
+
return modulesPath;
|
|
57588
|
+
}
|
|
57589
|
+
exports2.getNodeModulesPath = getNodeModulesPath;
|
|
57590
|
+
}
|
|
57591
|
+
});
|
|
57592
|
+
|
|
57885
57593
|
// ../../node_modules/@sap-ux/project-access/dist/project/module-loader.js
|
|
57886
57594
|
var require_module_loader = __commonJS({
|
|
57887
57595
|
"../../node_modules/@sap-ux/project-access/dist/project/module-loader.js"(exports2) {
|
|
@@ -57947,15 +57655,20 @@ var require_module_loader = __commonJS({
|
|
|
57947
57655
|
};
|
|
57948
57656
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
57949
57657
|
exports2.loadModuleFromProject = void 0;
|
|
57658
|
+
var dependencies_1 = require_dependencies();
|
|
57950
57659
|
function loadModuleFromProject(projectRoot, moduleName) {
|
|
57951
57660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57952
57661
|
var _a2;
|
|
57953
57662
|
let module3;
|
|
57954
57663
|
try {
|
|
57664
|
+
if (!(0, dependencies_1.getNodeModulesPath)(projectRoot, moduleName)) {
|
|
57665
|
+
throw Error("Path to module not found.");
|
|
57666
|
+
}
|
|
57955
57667
|
const modulePath = require.resolve(moduleName, { paths: [projectRoot] });
|
|
57956
57668
|
module3 = yield (_a2 = modulePath, Promise.resolve().then(() => __importStar(require(_a2))));
|
|
57957
57669
|
} catch (error3) {
|
|
57958
|
-
throw Error(`Module '${moduleName}' not installed in project '${projectRoot}'
|
|
57670
|
+
throw Error(`Module '${moduleName}' not installed in project '${projectRoot}'.
|
|
57671
|
+
${error3.toString()}`);
|
|
57959
57672
|
}
|
|
57960
57673
|
return module3;
|
|
57961
57674
|
});
|
|
@@ -57997,6 +57710,7 @@ var require_cap = __commonJS({
|
|
|
57997
57710
|
};
|
|
57998
57711
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
57999
57712
|
exports2.toReferenceUri = exports2.toAbsoluteUri = exports2.getCapEnvironment = exports2.readCapServiceMetadataEdmx = exports2.getCapModelAndServices = exports2.getCapCustomPaths = exports2.getCapProjectType = exports2.isCapJavaProject = exports2.isCapNodeJsProject = void 0;
|
|
57713
|
+
var child_process_1 = require("child_process");
|
|
58000
57714
|
var path_1 = require("path");
|
|
58001
57715
|
var constants_1 = require_constants5();
|
|
58002
57716
|
var file_1 = require_file4();
|
|
@@ -58109,7 +57823,24 @@ var require_cap = __commonJS({
|
|
|
58109
57823
|
exports2.getCapEnvironment = getCapEnvironment;
|
|
58110
57824
|
function loadCdsModuleFromProject(capProjectPath) {
|
|
58111
57825
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58112
|
-
|
|
57826
|
+
let module3;
|
|
57827
|
+
let loadProjectError;
|
|
57828
|
+
let loadError;
|
|
57829
|
+
try {
|
|
57830
|
+
module3 = yield (0, module_loader_1.loadModuleFromProject)(capProjectPath, "@sap/cds");
|
|
57831
|
+
} catch (error3) {
|
|
57832
|
+
loadProjectError = error3;
|
|
57833
|
+
}
|
|
57834
|
+
if (!module3) {
|
|
57835
|
+
try {
|
|
57836
|
+
module3 = yield loadGlobalCdsModule();
|
|
57837
|
+
} catch (error3) {
|
|
57838
|
+
loadError = error3;
|
|
57839
|
+
}
|
|
57840
|
+
}
|
|
57841
|
+
if (!module3) {
|
|
57842
|
+
throw Error(`Could not load cds module. Attempt to load module @sap/cds from project threw error '${loadProjectError}', attempt to load module @sap/cds from @sap/cds-dk threw error '${loadError}'`);
|
|
57843
|
+
}
|
|
58113
57844
|
return "default" in module3 ? module3.default : module3;
|
|
58114
57845
|
});
|
|
58115
57846
|
}
|
|
@@ -58175,6 +57906,45 @@ var require_cap = __commonJS({
|
|
|
58175
57906
|
return packageName;
|
|
58176
57907
|
});
|
|
58177
57908
|
}
|
|
57909
|
+
var globalCdsPathCache;
|
|
57910
|
+
function loadGlobalCdsModule() {
|
|
57911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57912
|
+
if (!globalCdsPathCache) {
|
|
57913
|
+
const versions = yield getCdsVersionInfo();
|
|
57914
|
+
if (!versions.home) {
|
|
57915
|
+
throw Error("Can not find global installation of module @sap/cds, which should be part of @sap/cds-dk");
|
|
57916
|
+
}
|
|
57917
|
+
globalCdsPathCache = versions.home;
|
|
57918
|
+
}
|
|
57919
|
+
return (0, module_loader_1.loadModuleFromProject)(globalCdsPathCache, "@sap/cds");
|
|
57920
|
+
});
|
|
57921
|
+
}
|
|
57922
|
+
function getCdsVersionInfo(cwd) {
|
|
57923
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57924
|
+
return new Promise((resolve, reject) => {
|
|
57925
|
+
let out = "";
|
|
57926
|
+
const cdsVersionInfo = (0, child_process_1.spawn)("cds", ["--version"], { cwd, shell: true });
|
|
57927
|
+
cdsVersionInfo.stdout.on("data", (data2) => {
|
|
57928
|
+
out += data2.toString();
|
|
57929
|
+
});
|
|
57930
|
+
cdsVersionInfo.on("close", () => {
|
|
57931
|
+
if (out) {
|
|
57932
|
+
const versions = {};
|
|
57933
|
+
for (const line of out.split("\n").filter((v) => v)) {
|
|
57934
|
+
const [key, value] = line.split(": ");
|
|
57935
|
+
versions[key] = value;
|
|
57936
|
+
}
|
|
57937
|
+
resolve(versions);
|
|
57938
|
+
} else {
|
|
57939
|
+
reject(new Error("Module path not found"));
|
|
57940
|
+
}
|
|
57941
|
+
});
|
|
57942
|
+
cdsVersionInfo.on("error", (error3) => {
|
|
57943
|
+
reject(error3);
|
|
57944
|
+
});
|
|
57945
|
+
});
|
|
57946
|
+
});
|
|
57947
|
+
}
|
|
58178
57948
|
}
|
|
58179
57949
|
});
|
|
58180
57950
|
|
|
@@ -60216,10 +59986,10 @@ var require_ui5config = __commonJS({
|
|
|
60216
59986
|
}
|
|
60217
59987
|
return (_a2 = resources.configuration) !== null && _a2 !== void 0 ? _a2 : {};
|
|
60218
59988
|
}
|
|
60219
|
-
setConfiguration(
|
|
59989
|
+
setConfiguration(config) {
|
|
60220
59990
|
this.document.setIn({
|
|
60221
59991
|
path: "resources",
|
|
60222
|
-
value: { configuration:
|
|
59992
|
+
value: { configuration: config }
|
|
60223
59993
|
});
|
|
60224
59994
|
return this;
|
|
60225
59995
|
}
|
|
@@ -60263,10 +60033,10 @@ var require_ui5config = __commonJS({
|
|
|
60263
60033
|
return this;
|
|
60264
60034
|
}
|
|
60265
60035
|
addFioriToolsProxydMiddleware(proxyConfig) {
|
|
60266
|
-
const { config
|
|
60036
|
+
const { config, comments } = (0, middlewares_1.getFioriToolsProxyMiddlewareConfig)(proxyConfig.backend, proxyConfig.ui5);
|
|
60267
60037
|
this.document.appendTo({
|
|
60268
60038
|
path: "server.customMiddleware",
|
|
60269
|
-
value:
|
|
60039
|
+
value: config,
|
|
60270
60040
|
comments
|
|
60271
60041
|
});
|
|
60272
60042
|
return this;
|
|
@@ -60387,7 +60157,7 @@ var require_utils9 = __commonJS({
|
|
|
60387
60157
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
60388
60158
|
};
|
|
60389
60159
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
60390
|
-
exports2.getTypesVersion = exports2.getEsmTypesVersion = exports2.mergeObjects = void 0;
|
|
60160
|
+
exports2.getTypesPackage = exports2.getTypesVersion = exports2.getEsmTypesVersion = exports2.mergeObjects = void 0;
|
|
60391
60161
|
var mergeWith_1 = __importDefault(require_mergeWith());
|
|
60392
60162
|
var semver_1 = __importDefault(require_semver2());
|
|
60393
60163
|
function mergeObjects(base, extension2) {
|
|
@@ -60422,6 +60192,16 @@ var require_utils9 = __commonJS({
|
|
|
60422
60192
|
}
|
|
60423
60193
|
}
|
|
60424
60194
|
exports2.getTypesVersion = getTypesVersion;
|
|
60195
|
+
function getTypesPackage(ui5Version) {
|
|
60196
|
+
var _a2;
|
|
60197
|
+
const version = (_a2 = semver_1.default.coerce(ui5Version)) !== null && _a2 !== void 0 ? _a2 : semver_1.default.coerce("1.108.0");
|
|
60198
|
+
if (version && semver_1.default.lt(version, "1.113.0")) {
|
|
60199
|
+
return "@sapui5/ts-types-esm";
|
|
60200
|
+
} else {
|
|
60201
|
+
return "@sapui5/types";
|
|
60202
|
+
}
|
|
60203
|
+
}
|
|
60204
|
+
exports2.getTypesPackage = getTypesPackage;
|
|
60425
60205
|
}
|
|
60426
60206
|
});
|
|
60427
60207
|
|
|
@@ -60430,7 +60210,7 @@ var require_dist9 = __commonJS({
|
|
|
60430
60210
|
"../../node_modules/@sap-ux/ui5-config/dist/index.js"(exports2) {
|
|
60431
60211
|
"use strict";
|
|
60432
60212
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
60433
|
-
exports2.YAMLError = exports2.yamlErrorCode = exports2.getTypesVersion = exports2.getEsmTypesVersion = exports2.mergeObjects = exports2.UI5Config = void 0;
|
|
60213
|
+
exports2.YAMLError = exports2.yamlErrorCode = exports2.getTypesPackage = exports2.getTypesVersion = exports2.getEsmTypesVersion = exports2.mergeObjects = exports2.UI5Config = void 0;
|
|
60434
60214
|
var ui5config_1 = require_ui5config();
|
|
60435
60215
|
Object.defineProperty(exports2, "UI5Config", { enumerable: true, get: function() {
|
|
60436
60216
|
return ui5config_1.UI5Config;
|
|
@@ -60445,6 +60225,9 @@ var require_dist9 = __commonJS({
|
|
|
60445
60225
|
Object.defineProperty(exports2, "getTypesVersion", { enumerable: true, get: function() {
|
|
60446
60226
|
return utils_1.getTypesVersion;
|
|
60447
60227
|
} });
|
|
60228
|
+
Object.defineProperty(exports2, "getTypesPackage", { enumerable: true, get: function() {
|
|
60229
|
+
return utils_1.getTypesPackage;
|
|
60230
|
+
} });
|
|
60448
60231
|
var yaml_1 = require_dist8();
|
|
60449
60232
|
Object.defineProperty(exports2, "yamlErrorCode", { enumerable: true, get: function() {
|
|
60450
60233
|
return yaml_1.errorCode;
|
|
@@ -60582,20 +60365,6 @@ var require_info = __commonJS({
|
|
|
60582
60365
|
}
|
|
60583
60366
|
});
|
|
60584
60367
|
|
|
60585
|
-
// ../../node_modules/@sap-ux/project-access/dist/project/dependencies.js
|
|
60586
|
-
var require_dependencies = __commonJS({
|
|
60587
|
-
"../../node_modules/@sap-ux/project-access/dist/project/dependencies.js"(exports2) {
|
|
60588
|
-
"use strict";
|
|
60589
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
60590
|
-
exports2.hasDependency = void 0;
|
|
60591
|
-
var hasDependency = (packageJson, dependency) => {
|
|
60592
|
-
var _a2, _b;
|
|
60593
|
-
return !!(((_a2 = packageJson.dependencies) === null || _a2 === void 0 ? void 0 : _a2[dependency]) || ((_b = packageJson.devDependencies) === null || _b === void 0 ? void 0 : _b[dependency]));
|
|
60594
|
-
};
|
|
60595
|
-
exports2.hasDependency = hasDependency;
|
|
60596
|
-
}
|
|
60597
|
-
});
|
|
60598
|
-
|
|
60599
60368
|
// ../../node_modules/@sap-ux/project-access/dist/project/search.js
|
|
60600
60369
|
var require_search = __commonJS({
|
|
60601
60370
|
"../../node_modules/@sap-ux/project-access/dist/project/search.js"(exports2) {
|
|
@@ -60653,7 +60422,7 @@ var require_search = __commonJS({
|
|
|
60653
60422
|
wsRoots.push(folder.uri.fsPath);
|
|
60654
60423
|
});
|
|
60655
60424
|
} else {
|
|
60656
|
-
wsRoots = wsFolders
|
|
60425
|
+
wsRoots = wsFolders !== null && wsFolders !== void 0 ? wsFolders : [];
|
|
60657
60426
|
}
|
|
60658
60427
|
return wsRoots;
|
|
60659
60428
|
}
|
|
@@ -60894,12 +60663,66 @@ var require_search = __commonJS({
|
|
|
60894
60663
|
}
|
|
60895
60664
|
});
|
|
60896
60665
|
|
|
60666
|
+
// ../../node_modules/@sap-ux/project-access/dist/project/mta.js
|
|
60667
|
+
var require_mta = __commonJS({
|
|
60668
|
+
"../../node_modules/@sap-ux/project-access/dist/project/mta.js"(exports2) {
|
|
60669
|
+
"use strict";
|
|
60670
|
+
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
60671
|
+
function adopt(value) {
|
|
60672
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
60673
|
+
resolve(value);
|
|
60674
|
+
});
|
|
60675
|
+
}
|
|
60676
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
60677
|
+
function fulfilled(value) {
|
|
60678
|
+
try {
|
|
60679
|
+
step(generator.next(value));
|
|
60680
|
+
} catch (e) {
|
|
60681
|
+
reject(e);
|
|
60682
|
+
}
|
|
60683
|
+
}
|
|
60684
|
+
function rejected(value) {
|
|
60685
|
+
try {
|
|
60686
|
+
step(generator["throw"](value));
|
|
60687
|
+
} catch (e) {
|
|
60688
|
+
reject(e);
|
|
60689
|
+
}
|
|
60690
|
+
}
|
|
60691
|
+
function step(result2) {
|
|
60692
|
+
result2.done ? resolve(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
60693
|
+
}
|
|
60694
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
60695
|
+
});
|
|
60696
|
+
};
|
|
60697
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
60698
|
+
exports2.getMtaPath = void 0;
|
|
60699
|
+
var file_search_1 = require_file_search();
|
|
60700
|
+
var constants_1 = require_constants5();
|
|
60701
|
+
var path_1 = require("path");
|
|
60702
|
+
function getMtaPath(projectPath, fs2) {
|
|
60703
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60704
|
+
const mtaPath = yield (0, file_search_1.findFileUp)(constants_1.FileName.MtaYaml, projectPath, fs2);
|
|
60705
|
+
if (!mtaPath) {
|
|
60706
|
+
return void 0;
|
|
60707
|
+
} else {
|
|
60708
|
+
const mtaFolderPath = (0, path_1.dirname)(mtaPath);
|
|
60709
|
+
return {
|
|
60710
|
+
mtaPath,
|
|
60711
|
+
hasRoot: mtaFolderPath !== projectPath
|
|
60712
|
+
};
|
|
60713
|
+
}
|
|
60714
|
+
});
|
|
60715
|
+
}
|
|
60716
|
+
exports2.getMtaPath = getMtaPath;
|
|
60717
|
+
}
|
|
60718
|
+
});
|
|
60719
|
+
|
|
60897
60720
|
// ../../node_modules/@sap-ux/project-access/dist/project/index.js
|
|
60898
60721
|
var require_project2 = __commonJS({
|
|
60899
60722
|
"../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
|
|
60900
60723
|
"use strict";
|
|
60901
60724
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
60902
|
-
exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.readCapServiceMetadataEdmx = exports2.getCapEnvironment = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapCustomPaths = void 0;
|
|
60725
|
+
exports2.getMtaPath = exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.getNodeModulesPath = exports2.readCapServiceMetadataEdmx = exports2.getCapEnvironment = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapCustomPaths = void 0;
|
|
60903
60726
|
var cap_1 = require_cap();
|
|
60904
60727
|
Object.defineProperty(exports2, "getCapCustomPaths", { enumerable: true, get: function() {
|
|
60905
60728
|
return cap_1.getCapCustomPaths;
|
|
@@ -60922,6 +60745,10 @@ var require_project2 = __commonJS({
|
|
|
60922
60745
|
Object.defineProperty(exports2, "readCapServiceMetadataEdmx", { enumerable: true, get: function() {
|
|
60923
60746
|
return cap_1.readCapServiceMetadataEdmx;
|
|
60924
60747
|
} });
|
|
60748
|
+
var dependencies_1 = require_dependencies();
|
|
60749
|
+
Object.defineProperty(exports2, "getNodeModulesPath", { enumerable: true, get: function() {
|
|
60750
|
+
return dependencies_1.getNodeModulesPath;
|
|
60751
|
+
} });
|
|
60925
60752
|
var info_1 = require_info();
|
|
60926
60753
|
Object.defineProperty(exports2, "getAppProgrammingLanguage", { enumerable: true, get: function() {
|
|
60927
60754
|
return info_1.getAppProgrammingLanguage;
|
|
@@ -60950,6 +60777,10 @@ var require_project2 = __commonJS({
|
|
|
60950
60777
|
Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
|
|
60951
60778
|
return ui5_config_1.readUi5Yaml;
|
|
60952
60779
|
} });
|
|
60780
|
+
var mta_1 = require_mta();
|
|
60781
|
+
Object.defineProperty(exports2, "getMtaPath", { enumerable: true, get: function() {
|
|
60782
|
+
return mta_1.getMtaPath;
|
|
60783
|
+
} });
|
|
60953
60784
|
}
|
|
60954
60785
|
});
|
|
60955
60786
|
|
|
@@ -61060,7 +60891,7 @@ var require_dist10 = __commonJS({
|
|
|
61060
60891
|
__createBinding(exports3, m, p);
|
|
61061
60892
|
};
|
|
61062
60893
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61063
|
-
exports2.getFilePaths = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.FileName = void 0;
|
|
60894
|
+
exports2.getFilePaths = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getNodeModulesPath = exports2.getMtaPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.FileName = void 0;
|
|
61064
60895
|
var constants_1 = require_constants5();
|
|
61065
60896
|
Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
|
|
61066
60897
|
return constants_1.FileName;
|
|
@@ -61093,6 +60924,12 @@ var require_dist10 = __commonJS({
|
|
|
61093
60924
|
Object.defineProperty(exports2, "getCapProjectType", { enumerable: true, get: function() {
|
|
61094
60925
|
return project_1.getCapProjectType;
|
|
61095
60926
|
} });
|
|
60927
|
+
Object.defineProperty(exports2, "getMtaPath", { enumerable: true, get: function() {
|
|
60928
|
+
return project_1.getMtaPath;
|
|
60929
|
+
} });
|
|
60930
|
+
Object.defineProperty(exports2, "getNodeModulesPath", { enumerable: true, get: function() {
|
|
60931
|
+
return project_1.getNodeModulesPath;
|
|
60932
|
+
} });
|
|
61096
60933
|
Object.defineProperty(exports2, "getWebappPath", { enumerable: true, get: function() {
|
|
61097
60934
|
return project_1.getWebappPath;
|
|
61098
60935
|
} });
|
|
@@ -61159,7 +60996,7 @@ var require_utils10 = __commonJS({
|
|
|
61159
60996
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
61160
60997
|
};
|
|
61161
60998
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61162
|
-
exports2.
|
|
60999
|
+
exports2.isReuseLib = exports2.getAdditionalEntitySetsFromManifest = exports2.isAdaptationProject = exports2.tryGetEdmxAppMockServiceMockdataDir = exports2.getEdmxAppDefaultMockdataDirPath = exports2.getCapAppMockdataDirPath = exports2.getApplicationId = exports2.deleteCapApp = exports2.isOVPProject = exports2.getAppIdForFile = exports2.checkServeLocalConfig = exports2.getUI5Version = exports2.getLocalUI5Version = exports2.getUi5CustomMiddleware = exports2.getBackendConfigByPath = exports2.getVersionFromManifest = exports2.getProjectType = exports2.getProjectTypeFromProjectFiles = exports2.findI18nProperty = exports2.updateI18nProperties = exports2.updateI18nProperty = exports2.getI18nProperties = exports2.mergeI18nProperties = exports2.getI18nPath = exports2.readAppJson = exports2.getAppConfig = exports2.fillServiceSpecificationForApp = exports2.createApplicationStructureConfig = exports2.getMainService = exports2.findProjectRootsByDependency = exports2.isFioriToolsProject = exports2.checkPackageJson = exports2.findRunnableProjects = exports2.findRootsForPath = exports2.getDetailedProjectType = exports2.getAppType = exports2.findAllProjectRoots = exports2.findAllManifest = exports2.getAppProgrammingLanguage = exports2.hasDependency = exports2.findExtensionFiles = exports2.findAll = exports2.findCapProjects = exports2.findLibrary = exports2.findProjectRoot = exports2.scriptsRegEx = void 0;
|
|
61163
61000
|
var fs_1 = require("fs");
|
|
61164
61001
|
var findit2_1 = __importDefault(require_findit2());
|
|
61165
61002
|
var fast_xml_parser_1 = require_fxp();
|
|
@@ -61381,26 +61218,21 @@ var require_utils10 = __commonJS({
|
|
|
61381
61218
|
}
|
|
61382
61219
|
exports2.findAllProjectRoots = findAllProjectRoots;
|
|
61383
61220
|
async function getAppType(appRoot, projectRoot) {
|
|
61221
|
+
let appType = "SAPUI5 freestyle";
|
|
61384
61222
|
if (appRoot === projectRoot) {
|
|
61385
|
-
|
|
61386
|
-
|
|
61387
|
-
return "SAP Fiori elements";
|
|
61223
|
+
if (await isFioriElement(appRoot)) {
|
|
61224
|
+
appType = "SAP Fiori elements";
|
|
61388
61225
|
} else if (await (0, file_1.fileExists)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) {
|
|
61389
|
-
|
|
61390
|
-
} else {
|
|
61391
|
-
|
|
61392
|
-
}
|
|
61393
|
-
|
|
61394
|
-
try {
|
|
61395
|
-
const projectPckJson = await (0, file_1.readJSON)((0, path_1.join)(projectRoot, project_spec_1.FileName.Package));
|
|
61396
|
-
if (!projectPckJson.sapux) {
|
|
61397
|
-
return "SAPUI5 freestyle";
|
|
61398
|
-
} else if (Array.isArray(projectPckJson.sapux)) {
|
|
61399
|
-
return projectPckJson.sapux.find((relAppPath) => (0, path_1.join)(projectRoot, ...relAppPath.split(/\\|\//)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
|
|
61226
|
+
appType = "SAPUI5 Extension";
|
|
61227
|
+
} else if (await isAdaptationProject(projectRoot)) {
|
|
61228
|
+
appType = "Fiori Adaptation";
|
|
61229
|
+
} else if (await isReuseLib(projectRoot)) {
|
|
61230
|
+
appType = "Fiori Reuse";
|
|
61400
61231
|
}
|
|
61401
|
-
}
|
|
61402
|
-
|
|
61232
|
+
} else {
|
|
61233
|
+
appType = await getCapAppType(appRoot, projectRoot);
|
|
61403
61234
|
}
|
|
61235
|
+
return appType;
|
|
61404
61236
|
}
|
|
61405
61237
|
exports2.getAppType = getAppType;
|
|
61406
61238
|
async function getDetailedProjectType(appRoot, projectRoot) {
|
|
@@ -61573,6 +61405,7 @@ var require_utils10 = __commonJS({
|
|
|
61573
61405
|
}
|
|
61574
61406
|
}
|
|
61575
61407
|
}
|
|
61408
|
+
appServices[name].odataVersion = services[name].settings.odataVersion ?? "2.0";
|
|
61576
61409
|
}
|
|
61577
61410
|
}
|
|
61578
61411
|
}
|
|
@@ -61926,9 +61759,9 @@ var require_utils10 = __commonJS({
|
|
|
61926
61759
|
}
|
|
61927
61760
|
exports2.getEdmxAppDefaultMockdataDirPath = getEdmxAppDefaultMockdataDirPath;
|
|
61928
61761
|
async function tryGetEdmxAppMockServiceMockdataDir(configDir, serviceMetadataPath) {
|
|
61929
|
-
const
|
|
61930
|
-
if (
|
|
61931
|
-
const { services, mockFolder } = await (0, ui5Config_1.getMockServicesConfiguration)(configDir,
|
|
61762
|
+
const config = await (0, ui5Config_1.getMockServerConfig)(configDir);
|
|
61763
|
+
if (config) {
|
|
61764
|
+
const { services, mockFolder } = await (0, ui5Config_1.getMockServicesConfiguration)(configDir, config);
|
|
61932
61765
|
if (services) {
|
|
61933
61766
|
const mockService = (0, ui5Config_1.findMockServiceByMetadataPath)(services, serviceMetadataPath);
|
|
61934
61767
|
if (mockService == null ? void 0 : mockService.mockdataPath) {
|
|
@@ -61964,24 +61797,43 @@ var require_utils10 = __commonJS({
|
|
|
61964
61797
|
}
|
|
61965
61798
|
}
|
|
61966
61799
|
exports2.getAdditionalEntitySetsFromManifest = getAdditionalEntitySetsFromManifest;
|
|
61967
|
-
function
|
|
61968
|
-
|
|
61969
|
-
|
|
61970
|
-
|
|
61971
|
-
|
|
61972
|
-
|
|
61973
|
-
|
|
61974
|
-
checkPath = (0, path_1.join)(checkPath, module3, project_spec_1.FileName.Package);
|
|
61800
|
+
async function isReuseLib(projectRoot) {
|
|
61801
|
+
let isReuseLib2 = false;
|
|
61802
|
+
try {
|
|
61803
|
+
const ui5Data = await (0, file_1.readFile)((0, path_1.join)(projectRoot, "ui5.yaml"));
|
|
61804
|
+
const parsedUi5Data = yaml.parse(ui5Data);
|
|
61805
|
+
if ((parsedUi5Data == null ? void 0 : parsedUi5Data.type) === "library") {
|
|
61806
|
+
isReuseLib2 = true;
|
|
61975
61807
|
}
|
|
61976
|
-
|
|
61977
|
-
|
|
61978
|
-
|
|
61808
|
+
} catch {
|
|
61809
|
+
}
|
|
61810
|
+
return isReuseLib2;
|
|
61811
|
+
}
|
|
61812
|
+
exports2.isReuseLib = isReuseLib;
|
|
61813
|
+
async function isFioriElement(appRoot) {
|
|
61814
|
+
let isFioriElement2 = false;
|
|
61815
|
+
try {
|
|
61816
|
+
const appPckJson = await (0, file_1.readJSON)((0, path_1.join)(appRoot, project_spec_1.FileName.Package));
|
|
61817
|
+
if (appPckJson.sapux === true) {
|
|
61818
|
+
isFioriElement2 = true;
|
|
61979
61819
|
}
|
|
61980
|
-
|
|
61820
|
+
} catch {
|
|
61981
61821
|
}
|
|
61982
|
-
return
|
|
61822
|
+
return isFioriElement2;
|
|
61823
|
+
}
|
|
61824
|
+
async function getCapAppType(appRoot, projectRoot) {
|
|
61825
|
+
let capAppType = "SAPUI5 freestyle";
|
|
61826
|
+
try {
|
|
61827
|
+
const projectPckJson = await (0, file_1.readJSON)((0, path_1.join)(projectRoot, project_spec_1.FileName.Package));
|
|
61828
|
+
if (!projectPckJson.sapux) {
|
|
61829
|
+
capAppType = "SAPUI5 freestyle";
|
|
61830
|
+
} else if (Array.isArray(projectPckJson.sapux)) {
|
|
61831
|
+
capAppType = projectPckJson.sapux.find((relAppPath) => (0, path_1.join)(projectRoot, ...relAppPath.split(/[/\\]/)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
|
|
61832
|
+
}
|
|
61833
|
+
} catch {
|
|
61834
|
+
}
|
|
61835
|
+
return capAppType;
|
|
61983
61836
|
}
|
|
61984
|
-
exports2.getNodeModulesPath = getNodeModulesPath;
|
|
61985
61837
|
}
|
|
61986
61838
|
});
|
|
61987
61839
|
|
|
@@ -62025,6 +61877,7 @@ var require_types7 = __commonJS({
|
|
|
62025
61877
|
CommonProperties2["AppProgrammingLanguage"] = "cmn.appLanguage";
|
|
62026
61878
|
CommonProperties2["TemplateId"] = "cmn.templateId";
|
|
62027
61879
|
CommonProperties2["TemplateVersion"] = "cmn.templateVersion";
|
|
61880
|
+
CommonProperties2["ApplicationType"] = "cmn.applicationType";
|
|
62028
61881
|
})(CommonProperties = exports2.CommonProperties || (exports2.CommonProperties = {}));
|
|
62029
61882
|
}
|
|
62030
61883
|
});
|
|
@@ -62241,6 +62094,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
62241
62094
|
const odataSource = await getODataSource(appPath);
|
|
62242
62095
|
const sourceTemplate = await getManifestSourceTemplate(appPath);
|
|
62243
62096
|
const appProgrammingLanguage = await (0, utils_1.getAppProgrammingLanguage)(appPath);
|
|
62097
|
+
const applicationType = await (0, utils_1.getAppType)(appPath, appPath);
|
|
62244
62098
|
const output3 = {};
|
|
62245
62099
|
output3[types_1.CommonProperties.TemplateType] = templateType;
|
|
62246
62100
|
output3[types_1.CommonProperties.DeployTargetType] = deployTarget;
|
|
@@ -62249,6 +62103,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
62249
62103
|
output3[types_1.CommonProperties.AppProgrammingLanguage] = appProgrammingLanguage;
|
|
62250
62104
|
output3[types_1.CommonProperties.TemplateId] = sourceTemplate.id;
|
|
62251
62105
|
output3[types_1.CommonProperties.TemplateVersion] = sourceTemplate.version;
|
|
62106
|
+
output3[types_1.CommonProperties.ApplicationType] = applicationType;
|
|
62252
62107
|
return output3;
|
|
62253
62108
|
}
|
|
62254
62109
|
async function getTemplateType(appPath) {
|
|
@@ -62310,25 +62165,24 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
62310
62165
|
}
|
|
62311
62166
|
async function getDeployTarget(appPath) {
|
|
62312
62167
|
var _a2;
|
|
62168
|
+
let deployTarget = types_1.DeployTarget.NO_DEPLOY_CONFIG;
|
|
62313
62169
|
const deployConfigPath = path_1.default.join(appPath, "ui5-deploy.yaml");
|
|
62314
|
-
|
|
62315
|
-
|
|
62316
|
-
|
|
62317
|
-
|
|
62318
|
-
|
|
62319
|
-
|
|
62320
|
-
|
|
62321
|
-
|
|
62322
|
-
|
|
62323
|
-
|
|
62324
|
-
}
|
|
62170
|
+
try {
|
|
62171
|
+
if (await (0, file_1.fileExists)(deployConfigPath)) {
|
|
62172
|
+
const deployConfigContent = await (0, file_1.readFile)(deployConfigPath);
|
|
62173
|
+
const deployConfig = yaml_1.default.parse(deployConfigContent);
|
|
62174
|
+
const customTasks = (_a2 = deployConfig == null ? void 0 : deployConfig.builder) == null ? void 0 : _a2.customTasks;
|
|
62175
|
+
if (customTasks) {
|
|
62176
|
+
const isAbapDeployTarget = customTasks.some((task2) => task2.name === "deploy-to-abap");
|
|
62177
|
+
deployTarget = isAbapDeployTarget ? types_1.DeployTarget.ABAP : types_1.DeployTarget.CF;
|
|
62178
|
+
} else {
|
|
62179
|
+
deployTarget = types_1.DeployTarget.UNKNOWN_DEPLOY_CONFIG;
|
|
62325
62180
|
}
|
|
62326
|
-
return isAbapReployTarget ? types_1.DeployTarget.ABAP : types_1.DeployTarget.CF;
|
|
62327
|
-
} else {
|
|
62328
|
-
return types_1.DeployTarget.UNKNOWN_DEPLOY_CONFIG;
|
|
62329
62181
|
}
|
|
62182
|
+
} catch (error3) {
|
|
62183
|
+
console.log(`[Telemetry]: ${error3.message}`);
|
|
62330
62184
|
}
|
|
62331
|
-
return
|
|
62185
|
+
return deployTarget;
|
|
62332
62186
|
}
|
|
62333
62187
|
function getInternalVsExternal() {
|
|
62334
62188
|
return (0, ux_feature_toggle_1.isInternalFeaturesSettingEnabled)() ? "internal" : "external";
|
|
@@ -62384,6 +62238,202 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
62384
62238
|
}
|
|
62385
62239
|
});
|
|
62386
62240
|
|
|
62241
|
+
// ../lib/telemetry/dist/src/client/model/EventName.js
|
|
62242
|
+
var require_EventName = __commonJS({
|
|
62243
|
+
"../lib/telemetry/dist/src/client/model/EventName.js"(exports2) {
|
|
62244
|
+
"use strict";
|
|
62245
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62246
|
+
exports2.EventName = void 0;
|
|
62247
|
+
var EventName3;
|
|
62248
|
+
(function(EventName4) {
|
|
62249
|
+
EventName4["Test"] = "test";
|
|
62250
|
+
EventName4["TELEMETRY_SETTINGS_INIT_FAILED"] = "TELEMETRY_SETTINGS_INIT_FAILED";
|
|
62251
|
+
EventName4["DISABLE_TELEMETRY"] = "DISABLE_TELEMETRY";
|
|
62252
|
+
EventName4["GD_GUIDE_ACTION"] = "GUIDE_ACTION";
|
|
62253
|
+
EventName4["GD_PANEL_LOAD"] = "PANEL_LOAD";
|
|
62254
|
+
EventName4["GD_LAUNCH"] = "LAUNCH_GD";
|
|
62255
|
+
EventName4["GD_SIDE_BY_SIDE"] = "GD_SIDE_BY_SIDE";
|
|
62256
|
+
EventName4["GD_WIZARD"] = "GD_WIZARD";
|
|
62257
|
+
EventName4["GD_DESCMODE"] = "GD_DESCMODE";
|
|
62258
|
+
EventName4["GD_PROJECTVIEW"] = "GD_PROJECTVIEW";
|
|
62259
|
+
EventName4["PAGEMAP"] = "PAGEMAP";
|
|
62260
|
+
EventName4["APP_ACTIONS"] = "ACTIONS";
|
|
62261
|
+
EventName4["PAGE_EDITOR"] = "PAGE_EDITOR";
|
|
62262
|
+
EventName4["PAGEMAP_STARTUP_TIME"] = "PAGEMAP_STARTUP_TIME";
|
|
62263
|
+
EventName4["APPLICATION_PREVIEW"] = "APPLICATION_PREVIEW";
|
|
62264
|
+
EventName4["APP_INFO_COMMAND_STARTED"] = "APP_INFO_COMMAND_STARTED";
|
|
62265
|
+
EventName4["APP_INFO_LINK_CLICKED"] = "APP_INFO_LINK_CLICKED";
|
|
62266
|
+
EventName4["APP_INFO_STARTUP_TIME"] = "APP_INFO_STARTUP_TIME";
|
|
62267
|
+
EventName4["SERVICE_MODELER_EVENT"] = "SERVICE_MODELER_EVENT";
|
|
62268
|
+
EventName4["ANNOTATION_FILE_MANAGER_EVENT"] = "ANNOTATION_FILE_MANAGER_EVENT";
|
|
62269
|
+
EventName4["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
|
|
62270
|
+
EventName4["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
|
|
62271
|
+
EventName4["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
|
|
62272
|
+
EventName4["MIGRATION_ACTIVATED"] = "MIGRATION_ACTIVATED";
|
|
62273
|
+
EventName4["MIGRATION_BACKEND_LOAD"] = "MIGRATION_BACKEND_LOAD";
|
|
62274
|
+
EventName4["MIGRATION_REFRESH_BACKEND_LOAD"] = "MIGRATION_REFRESH_BACKEND_LOAD";
|
|
62275
|
+
EventName4["MIGRATION_BACK_BACKEND_LOAD"] = "MIGRATION_BACK_BACKEND_LOAD";
|
|
62276
|
+
EventName4["MIGRATION_COMPLETED"] = "MIGRATION_COMPLETED";
|
|
62277
|
+
EventName4["MIGRATION_SUCCESS"] = "MIGRATION_SUCCESS";
|
|
62278
|
+
EventName4["MIGRATION_FAILED"] = "MIGRATION_FAILED";
|
|
62279
|
+
EventName4["MIGRATION_SHOW_INFO_PAGE"] = "MIGRATION_SHOW_INFO_PAGE";
|
|
62280
|
+
EventName4["MIGRATION_ADD_PROJECT"] = "MIGRATION_ADD_PROJECT";
|
|
62281
|
+
EventName4["DEPLOY_CONFIG"] = "DEPLOY_CONFIG";
|
|
62282
|
+
EventName4["DEPLOY"] = "DEPLOY";
|
|
62283
|
+
EventName4["DEPLOY_FAIL"] = "DEPLOY_FAIL";
|
|
62284
|
+
EventName4["UNDEPLOY"] = "UNDEPLOY";
|
|
62285
|
+
EventName4["UNDEPLOY_FAIL"] = "UNDEPLOY_FAIL";
|
|
62286
|
+
EventName4["DATA_EDITOR_EVENT"] = "DATA_EDITOR_EVENT";
|
|
62287
|
+
EventName4["CPE_EVENT"] = "CONTROL_PROPERTY_EDITOR_EVENT";
|
|
62288
|
+
EventName4["SYSTEM_DETAILS_VIEW_EVENT"] = "SYSTEM_DETAILS_VIEW_EVENT";
|
|
62289
|
+
EventName4["SERVICE_INQUIRER_BAS_SUCCESS"] = "SERVICE_INQUIRER_BAS_SUCCESS";
|
|
62290
|
+
EventName4["SERVICE_INQUIRER_BAS_ERROR"] = "SERVICE_INQUIRER_BAS_ERROR";
|
|
62291
|
+
EventName4["LIB_REFERENCE_ADDED"] = "LIB_REFERENCE_ADDED";
|
|
62292
|
+
})(EventName3 = exports2.EventName || (exports2.EventName = {}));
|
|
62293
|
+
}
|
|
62294
|
+
});
|
|
62295
|
+
|
|
62296
|
+
// ../lib/telemetry/dist/src/util/reporting.js
|
|
62297
|
+
var require_reporting = __commonJS({
|
|
62298
|
+
"../lib/telemetry/dist/src/util/reporting.js"(exports2) {
|
|
62299
|
+
"use strict";
|
|
62300
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
62301
|
+
if (k2 === void 0)
|
|
62302
|
+
k2 = k;
|
|
62303
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
62304
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
62305
|
+
desc = { enumerable: true, get: function() {
|
|
62306
|
+
return m[k];
|
|
62307
|
+
} };
|
|
62308
|
+
}
|
|
62309
|
+
Object.defineProperty(o, k2, desc);
|
|
62310
|
+
} : function(o, m, k, k2) {
|
|
62311
|
+
if (k2 === void 0)
|
|
62312
|
+
k2 = k;
|
|
62313
|
+
o[k2] = m[k];
|
|
62314
|
+
});
|
|
62315
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
62316
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
62317
|
+
} : function(o, v) {
|
|
62318
|
+
o["default"] = v;
|
|
62319
|
+
});
|
|
62320
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
62321
|
+
if (mod && mod.__esModule)
|
|
62322
|
+
return mod;
|
|
62323
|
+
var result2 = {};
|
|
62324
|
+
if (mod != null) {
|
|
62325
|
+
for (var k in mod)
|
|
62326
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
62327
|
+
__createBinding(result2, mod, k);
|
|
62328
|
+
}
|
|
62329
|
+
__setModuleDefault(result2, mod);
|
|
62330
|
+
return result2;
|
|
62331
|
+
};
|
|
62332
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62333
|
+
exports2.reportEnableTelemetryOnOff = exports2.reportRuntimeError = void 0;
|
|
62334
|
+
var EventName_1 = require_EventName();
|
|
62335
|
+
var appInsights = __importStar(require_applicationinsights());
|
|
62336
|
+
var telemetryPackageJSON = __importStar(require_package());
|
|
62337
|
+
var telemetryClientConfig_1 = require_telemetryClientConfig();
|
|
62338
|
+
var parseErrorStack = (errorStack) => {
|
|
62339
|
+
const regexps = [/sap-ux.+/gi, /[a-zA-Z-]+\/ide-extension\/.+/gi, /(\/telemetry\/.+)/gi];
|
|
62340
|
+
const parsedStack = [];
|
|
62341
|
+
const filtered = errorStack.split("\n").filter((line) => !!line.match(/^\s*at .*(\S+:\d+|\(native\))/m));
|
|
62342
|
+
if (!filtered.length) {
|
|
62343
|
+
return parsedStack;
|
|
62344
|
+
}
|
|
62345
|
+
filtered.forEach((line) => {
|
|
62346
|
+
let sanitizedLine = line.replace(/^\s+/, "");
|
|
62347
|
+
const location = line.match(/ (\((.+):(\d+):(\d+)\)$)/);
|
|
62348
|
+
if (!location) {
|
|
62349
|
+
return;
|
|
62350
|
+
}
|
|
62351
|
+
let filepath = null;
|
|
62352
|
+
const normalizedFilepath = location[2].replace(/\\/g, "/");
|
|
62353
|
+
for (const regexp of regexps) {
|
|
62354
|
+
const match = normalizedFilepath.match(regexp);
|
|
62355
|
+
if (match) {
|
|
62356
|
+
filepath = match[0];
|
|
62357
|
+
break;
|
|
62358
|
+
}
|
|
62359
|
+
}
|
|
62360
|
+
if (!filepath) {
|
|
62361
|
+
return;
|
|
62362
|
+
}
|
|
62363
|
+
sanitizedLine = sanitizedLine.replace(location[0], "");
|
|
62364
|
+
const functionName = sanitizedLine.split(/\s+/).slice(1).join("");
|
|
62365
|
+
const lineNumber = location[3];
|
|
62366
|
+
const columnNumber = location[4];
|
|
62367
|
+
const parsedStackLine = `${functionName} at (${filepath}:${lineNumber}:${columnNumber});`;
|
|
62368
|
+
parsedStack.push(parsedStackLine);
|
|
62369
|
+
});
|
|
62370
|
+
return parsedStack;
|
|
62371
|
+
};
|
|
62372
|
+
var reportingTelemetryClient;
|
|
62373
|
+
var _a2;
|
|
62374
|
+
if (((_a2 = process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY) == null ? void 0 : _a2.trim()) !== "true") {
|
|
62375
|
+
reportingTelemetryClient = new appInsights.TelemetryClient(telemetryPackageJSON.azureInstrumentationKey);
|
|
62376
|
+
(0, telemetryClientConfig_1.configAzureTelemetryClient)(reportingTelemetryClient);
|
|
62377
|
+
}
|
|
62378
|
+
var reportRuntimeError = (error3) => {
|
|
62379
|
+
const properties = { message: error3.message };
|
|
62380
|
+
if (error3.stack) {
|
|
62381
|
+
const parsedStack = parseErrorStack(error3.stack);
|
|
62382
|
+
if (parsedStack.length) {
|
|
62383
|
+
properties.stack = parsedStack.join(" \n");
|
|
62384
|
+
}
|
|
62385
|
+
}
|
|
62386
|
+
const telemetryEvent = {
|
|
62387
|
+
name: EventName_1.EventName.TELEMETRY_SETTINGS_INIT_FAILED,
|
|
62388
|
+
properties,
|
|
62389
|
+
measurements: {}
|
|
62390
|
+
};
|
|
62391
|
+
if (process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY !== "true") {
|
|
62392
|
+
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
62393
|
+
}
|
|
62394
|
+
};
|
|
62395
|
+
exports2.reportRuntimeError = reportRuntimeError;
|
|
62396
|
+
var reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
62397
|
+
const telemetryEvent = {
|
|
62398
|
+
name: EventName_1.EventName.DISABLE_TELEMETRY,
|
|
62399
|
+
properties: {
|
|
62400
|
+
disableTelemetry: `${!enableTelemetry}`,
|
|
62401
|
+
...commonProperties
|
|
62402
|
+
},
|
|
62403
|
+
measurements: {}
|
|
62404
|
+
};
|
|
62405
|
+
if (process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY !== "true") {
|
|
62406
|
+
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
62407
|
+
}
|
|
62408
|
+
};
|
|
62409
|
+
exports2.reportEnableTelemetryOnOff = reportEnableTelemetryOnOff;
|
|
62410
|
+
}
|
|
62411
|
+
});
|
|
62412
|
+
|
|
62413
|
+
// ../lib/telemetry/dist/src/util/cloudDebugger.js
|
|
62414
|
+
var require_cloudDebugger = __commonJS({
|
|
62415
|
+
"../lib/telemetry/dist/src/util/cloudDebugger.js"(exports2) {
|
|
62416
|
+
"use strict";
|
|
62417
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
62418
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
62419
|
+
};
|
|
62420
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62421
|
+
exports2.debug = void 0;
|
|
62422
|
+
var fs_1 = __importDefault(require("fs"));
|
|
62423
|
+
var os_1 = __importDefault(require("os"));
|
|
62424
|
+
var path_1 = __importDefault(require("path"));
|
|
62425
|
+
var homedir = os_1.default.homedir();
|
|
62426
|
+
var debugFilePath = path_1.default.join(homedir, "theiadebug.txt");
|
|
62427
|
+
var debug = (message, active = false) => {
|
|
62428
|
+
if (active) {
|
|
62429
|
+
fs_1.default.appendFileSync(debugFilePath, `${message}
|
|
62430
|
+
`, "utf8");
|
|
62431
|
+
}
|
|
62432
|
+
};
|
|
62433
|
+
exports2.debug = debug;
|
|
62434
|
+
}
|
|
62435
|
+
});
|
|
62436
|
+
|
|
62387
62437
|
// ../lib/telemetry/node_modules/@sap-ux/store/dist/constants.js
|
|
62388
62438
|
var require_constants6 = __commonJS({
|
|
62389
62439
|
"../lib/telemetry/node_modules/@sap-ux/store/dist/constants.js"(exports2) {
|
|
@@ -70505,9 +70555,9 @@ var require_levels = __commonJS({
|
|
|
70505
70555
|
"../../node_modules/logform/levels.js"(exports2, module2) {
|
|
70506
70556
|
"use strict";
|
|
70507
70557
|
var { Colorizer } = require_colorize();
|
|
70508
|
-
module2.exports = (
|
|
70509
|
-
Colorizer.addColors(
|
|
70510
|
-
return
|
|
70558
|
+
module2.exports = (config) => {
|
|
70559
|
+
Colorizer.addColors(config.colors || config);
|
|
70560
|
+
return config;
|
|
70511
70561
|
};
|
|
70512
70562
|
}
|
|
70513
70563
|
});
|
|
@@ -78864,7 +78914,7 @@ var require_logger = __commonJS({
|
|
|
78864
78914
|
var LegacyTransportStream = require_legacy();
|
|
78865
78915
|
var Profiler = require_profiler();
|
|
78866
78916
|
var { warn: warn3 } = require_common8();
|
|
78867
|
-
var
|
|
78917
|
+
var config = require_config3();
|
|
78868
78918
|
var formatRegExp = /%[scdjifoO%]/g;
|
|
78869
78919
|
var Logger3 = class extends Transform {
|
|
78870
78920
|
constructor(options2) {
|
|
@@ -78909,7 +78959,7 @@ var require_logger = __commonJS({
|
|
|
78909
78959
|
this.silent = silent;
|
|
78910
78960
|
this.format = format2 || this.format || require_json()();
|
|
78911
78961
|
this.defaultMeta = defaultMeta || null;
|
|
78912
|
-
this.levels = levels || this.levels ||
|
|
78962
|
+
this.levels = levels || this.levels || config.npm.levels;
|
|
78913
78963
|
this.level = level;
|
|
78914
78964
|
if (this.exceptions) {
|
|
78915
78965
|
this.exceptions.unhandle();
|
|
@@ -79219,14 +79269,14 @@ var require_create_logger = __commonJS({
|
|
|
79219
79269
|
"../../node_modules/winston/lib/winston/create-logger.js"(exports2, module2) {
|
|
79220
79270
|
"use strict";
|
|
79221
79271
|
var { LEVEL } = require_triple_beam();
|
|
79222
|
-
var
|
|
79272
|
+
var config = require_config3();
|
|
79223
79273
|
var Logger3 = require_logger();
|
|
79224
79274
|
var debug = require_node5()("winston:create-logger");
|
|
79225
79275
|
function isLevelEnabledFunctionName(level) {
|
|
79226
79276
|
return "is" + level.charAt(0).toUpperCase() + level.slice(1) + "Enabled";
|
|
79227
79277
|
}
|
|
79228
79278
|
module2.exports = function(opts = {}) {
|
|
79229
|
-
opts.levels = opts.levels ||
|
|
79279
|
+
opts.levels = opts.levels || config.npm.levels;
|
|
79230
79280
|
class DerivedLogger extends Logger3 {
|
|
79231
79281
|
constructor(options2) {
|
|
79232
79282
|
super(options2);
|
|
@@ -80248,7 +80298,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80248
80298
|
exports2.initTelemetrySettings = exports2.getTelemetrySetting = exports2.setEnableTelemetry = void 0;
|
|
80249
80299
|
var reporting_1 = require_reporting();
|
|
80250
80300
|
var cloudDebugger_1 = require_cloudDebugger();
|
|
80251
|
-
var system_1 =
|
|
80301
|
+
var system_1 = require_system();
|
|
80252
80302
|
var store_1 = require_dist13();
|
|
80253
80303
|
var ux_common_utils_1 = require_dist();
|
|
80254
80304
|
var os_1 = __importDefault(require("os"));
|
|
@@ -80361,11 +80411,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80361
80411
|
};
|
|
80362
80412
|
var initTelemetrySettings3 = async (options2) => {
|
|
80363
80413
|
try {
|
|
80364
|
-
|
|
80365
|
-
await initWithInputManifest(options2);
|
|
80366
|
-
} else {
|
|
80367
|
-
await initToolsSuiteTelemetrySettings();
|
|
80368
|
-
}
|
|
80414
|
+
await initWithInputManifest(options2);
|
|
80369
80415
|
} catch (err) {
|
|
80370
80416
|
(0, reporting_1.reportRuntimeError)(err);
|
|
80371
80417
|
}
|
|
@@ -80448,15 +80494,15 @@ var require_client3 = __commonJS({
|
|
|
80448
80494
|
};
|
|
80449
80495
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
80450
80496
|
exports2.ClientFactory = void 0;
|
|
80451
|
-
var system_1 =
|
|
80452
|
-
var telemetryPackageJSON = __importStar(
|
|
80497
|
+
var system_1 = require_system();
|
|
80498
|
+
var telemetryPackageJSON = __importStar(require_package());
|
|
80453
80499
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
80454
|
-
var
|
|
80500
|
+
var ClientFactory3 = class {
|
|
80455
80501
|
static getTelemetryClient() {
|
|
80456
|
-
return
|
|
80502
|
+
return ClientFactory3.getTelemetryClientByClass(toolsSuiteTelemetry_1.ToolsSuiteTelemetryClient);
|
|
80457
80503
|
}
|
|
80458
80504
|
static getTelemetryClientByClass(clientConstructor) {
|
|
80459
|
-
let client =
|
|
80505
|
+
let client = ClientFactory3.clientMap.get(clientConstructor.name);
|
|
80460
80506
|
if (client) {
|
|
80461
80507
|
return client;
|
|
80462
80508
|
}
|
|
@@ -80465,12 +80511,12 @@ var require_client3 = __commonJS({
|
|
|
80465
80511
|
} else {
|
|
80466
80512
|
client = new clientConstructor(telemetryPackageJSON.azureInstrumentationKey, telemetryPackageJSON.name, telemetryPackageJSON.version);
|
|
80467
80513
|
}
|
|
80468
|
-
|
|
80514
|
+
ClientFactory3.clientMap.set(clientConstructor.name, client);
|
|
80469
80515
|
return client;
|
|
80470
80516
|
}
|
|
80471
80517
|
};
|
|
80472
|
-
exports2.ClientFactory =
|
|
80473
|
-
|
|
80518
|
+
exports2.ClientFactory = ClientFactory3;
|
|
80519
|
+
ClientFactory3.clientMap = /* @__PURE__ */ new Map();
|
|
80474
80520
|
}
|
|
80475
80521
|
});
|
|
80476
80522
|
|
|
@@ -80914,7 +80960,7 @@ var require_src8 = __commonJS({
|
|
|
80914
80960
|
Object.defineProperty(exports2, "ApplicationInsightClient", { enumerable: true, get: function() {
|
|
80915
80961
|
return appInsightClient_1.ApplicationInsightClient;
|
|
80916
80962
|
} });
|
|
80917
|
-
var system_1 =
|
|
80963
|
+
var system_1 = require_system();
|
|
80918
80964
|
Object.defineProperty(exports2, "TelemetrySystem", { enumerable: true, get: function() {
|
|
80919
80965
|
return system_1.TelemetrySystem;
|
|
80920
80966
|
} });
|
|
@@ -85225,78 +85271,6 @@ var require_logger4 = __commonJS({
|
|
|
85225
85271
|
}
|
|
85226
85272
|
});
|
|
85227
85273
|
|
|
85228
|
-
// ../../node_modules/dotenv/lib/main.js
|
|
85229
|
-
var require_main = __commonJS({
|
|
85230
|
-
"../../node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
85231
|
-
var fs2 = require("fs");
|
|
85232
|
-
var path = require("path");
|
|
85233
|
-
function log4(message) {
|
|
85234
|
-
console.log(`[dotenv][DEBUG] ${message}`);
|
|
85235
|
-
}
|
|
85236
|
-
var NEWLINE = "\n";
|
|
85237
|
-
var RE_INI_KEY_VAL = /^\s*([\w.-]+)\s*=\s*(.*)?\s*$/;
|
|
85238
|
-
var RE_NEWLINES = /\\n/g;
|
|
85239
|
-
var NEWLINES_MATCH = /\n|\r|\r\n/;
|
|
85240
|
-
function parse2(src, options2) {
|
|
85241
|
-
const debug = Boolean(options2 && options2.debug);
|
|
85242
|
-
const obj = {};
|
|
85243
|
-
src.toString().split(NEWLINES_MATCH).forEach(function(line, idx) {
|
|
85244
|
-
const keyValueArr = line.match(RE_INI_KEY_VAL);
|
|
85245
|
-
if (keyValueArr != null) {
|
|
85246
|
-
const key = keyValueArr[1];
|
|
85247
|
-
let val2 = keyValueArr[2] || "";
|
|
85248
|
-
const end = val2.length - 1;
|
|
85249
|
-
const isDoubleQuoted = val2[0] === '"' && val2[end] === '"';
|
|
85250
|
-
const isSingleQuoted = val2[0] === "'" && val2[end] === "'";
|
|
85251
|
-
if (isSingleQuoted || isDoubleQuoted) {
|
|
85252
|
-
val2 = val2.substring(1, end);
|
|
85253
|
-
if (isDoubleQuoted) {
|
|
85254
|
-
val2 = val2.replace(RE_NEWLINES, NEWLINE);
|
|
85255
|
-
}
|
|
85256
|
-
} else {
|
|
85257
|
-
val2 = val2.trim();
|
|
85258
|
-
}
|
|
85259
|
-
obj[key] = val2;
|
|
85260
|
-
} else if (debug) {
|
|
85261
|
-
log4(`did not match key and value when parsing line ${idx + 1}: ${line}`);
|
|
85262
|
-
}
|
|
85263
|
-
});
|
|
85264
|
-
return obj;
|
|
85265
|
-
}
|
|
85266
|
-
function config2(options2) {
|
|
85267
|
-
let dotenvPath = path.resolve(process.cwd(), ".env");
|
|
85268
|
-
let encoding = "utf8";
|
|
85269
|
-
let debug = false;
|
|
85270
|
-
if (options2) {
|
|
85271
|
-
if (options2.path != null) {
|
|
85272
|
-
dotenvPath = options2.path;
|
|
85273
|
-
}
|
|
85274
|
-
if (options2.encoding != null) {
|
|
85275
|
-
encoding = options2.encoding;
|
|
85276
|
-
}
|
|
85277
|
-
if (options2.debug != null) {
|
|
85278
|
-
debug = true;
|
|
85279
|
-
}
|
|
85280
|
-
}
|
|
85281
|
-
try {
|
|
85282
|
-
const parsed = parse2(fs2.readFileSync(dotenvPath, { encoding }), { debug });
|
|
85283
|
-
Object.keys(parsed).forEach(function(key) {
|
|
85284
|
-
if (!Object.prototype.hasOwnProperty.call(process.env, key)) {
|
|
85285
|
-
process.env[key] = parsed[key];
|
|
85286
|
-
} else if (debug) {
|
|
85287
|
-
log4(`"${key}" is already defined in \`process.env\` and will not be overwritten`);
|
|
85288
|
-
}
|
|
85289
|
-
});
|
|
85290
|
-
return { parsed };
|
|
85291
|
-
} catch (e) {
|
|
85292
|
-
return { error: e };
|
|
85293
|
-
}
|
|
85294
|
-
}
|
|
85295
|
-
module2.exports.config = config2;
|
|
85296
|
-
module2.exports.parse = parse2;
|
|
85297
|
-
}
|
|
85298
|
-
});
|
|
85299
|
-
|
|
85300
85274
|
// node_modules/@sap-ux/btp-utils/dist/app-studio.env.js
|
|
85301
85275
|
var require_app_studio_env = __commonJS({
|
|
85302
85276
|
"node_modules/@sap-ux/btp-utils/dist/app-studio.env.js"(exports2) {
|
|
@@ -85826,7 +85800,7 @@ var import_path = require("path");
|
|
|
85826
85800
|
var import_fs2 = require("fs");
|
|
85827
85801
|
var import_child_process = require("child_process");
|
|
85828
85802
|
var import_ux_telemetry2 = __toESM(require_src8());
|
|
85829
|
-
var
|
|
85803
|
+
var import_ux_odata_client2 = __toESM(require_dist6());
|
|
85830
85804
|
var import_logger = __toESM(require_logger4());
|
|
85831
85805
|
init_i18next();
|
|
85832
85806
|
var import_yaml2 = __toESM(require_dist2());
|
|
@@ -85835,7 +85809,7 @@ var import_yaml2 = __toESM(require_dist2());
|
|
|
85835
85809
|
var package_default = {
|
|
85836
85810
|
name: "@sap/ux-ui5-tooling",
|
|
85837
85811
|
displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
85838
|
-
version: "1.10.
|
|
85812
|
+
version: "1.10.6",
|
|
85839
85813
|
description: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
85840
85814
|
publisher: "SAPSE",
|
|
85841
85815
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -85870,6 +85844,7 @@ var package_default = {
|
|
|
85870
85844
|
madge: "madge --warning --circular --extensions ts ./"
|
|
85871
85845
|
},
|
|
85872
85846
|
dependencies: {
|
|
85847
|
+
"@sap-ux/preview-middleware": "0.3.8",
|
|
85873
85848
|
"@ui5/fs": "^2.0.6",
|
|
85874
85849
|
debug: "4.3.4",
|
|
85875
85850
|
express: "4.17.3",
|
|
@@ -85883,19 +85858,20 @@ var package_default = {
|
|
|
85883
85858
|
devDependencies: {
|
|
85884
85859
|
"@sap-ux/backend-proxy-middleware": "0.6.57",
|
|
85885
85860
|
"@sap-ux/btp-utils": "0.11.6",
|
|
85886
|
-
"@sap-ux/deploy-tooling": "0.
|
|
85861
|
+
"@sap-ux/deploy-tooling": "0.9.6",
|
|
85887
85862
|
"@sap-ux/logger": "0.3.6",
|
|
85863
|
+
"@sap-ux/project-access": "1.13.1",
|
|
85888
85864
|
"@sap-ux/store": "0.3.11",
|
|
85889
|
-
"@sap-ux/ui5-config": "0.
|
|
85865
|
+
"@sap-ux/ui5-config": "0.19.0",
|
|
85890
85866
|
"@sap-ux/ui5-proxy-middleware": "1.1.31",
|
|
85891
|
-
"@sap/ux-app-templates": "1.10.
|
|
85892
|
-
"@sap/ux-cds": "1.10.
|
|
85893
|
-
"@sap/ux-common-utils": "1.10.
|
|
85894
|
-
"@sap/ux-control-property-editor": "1.10.
|
|
85895
|
-
"@sap/ux-odata-client": "1.10.
|
|
85896
|
-
"@sap/ux-telemetry": "1.10.
|
|
85897
|
-
"@sap/ux-ui5-info": "1.10.
|
|
85898
|
-
"@sapux/project-spec": "1.10.
|
|
85867
|
+
"@sap/ux-app-templates": "1.10.6",
|
|
85868
|
+
"@sap/ux-cds": "1.10.6",
|
|
85869
|
+
"@sap/ux-common-utils": "1.10.6",
|
|
85870
|
+
"@sap/ux-control-property-editor": "1.10.6",
|
|
85871
|
+
"@sap/ux-odata-client": "1.10.6",
|
|
85872
|
+
"@sap/ux-telemetry": "1.10.6",
|
|
85873
|
+
"@sap/ux-ui5-info": "1.10.6",
|
|
85874
|
+
"@sapux/project-spec": "1.10.6",
|
|
85899
85875
|
"@types/marked": "4.0.1",
|
|
85900
85876
|
"@types/prompts": "2.0.14",
|
|
85901
85877
|
"@types/supertest": "2.0.12",
|
|
@@ -85966,9 +85942,6 @@ var package_default = {
|
|
|
85966
85942
|
}
|
|
85967
85943
|
};
|
|
85968
85944
|
|
|
85969
|
-
// src/utils/config.ts
|
|
85970
|
-
var import_dotenv = __toESM(require_main());
|
|
85971
|
-
|
|
85972
85945
|
// src/utils/constants.ts
|
|
85973
85946
|
var cliParamMap = {
|
|
85974
85947
|
"-c": "config",
|
|
@@ -85990,6 +85963,8 @@ var cliParamMap = {
|
|
|
85990
85963
|
"-ss": "strict-ssl",
|
|
85991
85964
|
"-tm": "testMode",
|
|
85992
85965
|
"-vb": "verbose",
|
|
85966
|
+
"-ur": "username",
|
|
85967
|
+
"-pw": "password",
|
|
85993
85968
|
"-uu": "uaa-url",
|
|
85994
85969
|
"-un": "uaa-username",
|
|
85995
85970
|
"-up": "uaa-password",
|
|
@@ -86000,6 +85975,7 @@ var paramMap = Object.freeze(cliParamMap);
|
|
|
86000
85975
|
|
|
86001
85976
|
// src/utils/utils.ts
|
|
86002
85977
|
var import_yaml = __toESM(require_dist2());
|
|
85978
|
+
var import_ux_odata_client = __toESM(require_dist6());
|
|
86003
85979
|
var import_btp_utils = __toESM(require_dist14());
|
|
86004
85980
|
init_i18next();
|
|
86005
85981
|
var import_chalk = __toESM(require_source3());
|
|
@@ -86086,7 +86062,7 @@ async function _reportDeployTelemetry(exitCode, markName) {
|
|
|
86086
86062
|
destination = xsAppRoutes[0].destination;
|
|
86087
86063
|
}
|
|
86088
86064
|
if (destination) {
|
|
86089
|
-
const sapSystems = await (0,
|
|
86065
|
+
const sapSystems = await (0, import_ux_odata_client2.listSAPSystems)();
|
|
86090
86066
|
const targetSystems = Object.values(sapSystems).filter((sapSystem) => sapSystem.name === destination);
|
|
86091
86067
|
if (targetSystems && targetSystems.length === 1) {
|
|
86092
86068
|
scp = targetSystems[0].isScp() ? "true" : "false";
|