@sap/ux-ui5-tooling 1.7.1 → 1.7.4
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 +4 -0
- package/README.md +25 -5
- package/dist/cli/index.js +1038 -390
- package/dist/markdowns/cfDeploy/cfDeploy.en.md +5 -1
- package/dist/middlewares/fiori-tools-appreload.js +180 -33
- package/dist/middlewares/fiori-tools-preview.js +1079 -420
- package/dist/middlewares/fiori-tools-proxy.js +5313 -2400
- package/dist/tasks/cf-deploy/index.js +1031 -383
- package/dist/tasks/deploy/index.js +1061 -415
- package/dist/templates/control-property-editor/app.css +1 -1
- package/dist/templates/control-property-editor/app.js +51 -52
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -1
- package/package.json +14 -14
|
@@ -30,6 +30,7 @@ var require_appStudio = __commonJS({
|
|
|
30
30
|
"../lib/common-utils/dist/appStudio.js"(exports2) {
|
|
31
31
|
"use strict";
|
|
32
32
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33
|
+
exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = exports2.ENV = void 0;
|
|
33
34
|
var ENV;
|
|
34
35
|
(function(ENV2) {
|
|
35
36
|
ENV2["PROXY_URL"] = "HTTP_PROXY";
|
|
@@ -58,6 +59,7 @@ var require_file = __commonJS({
|
|
|
58
59
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
59
60
|
};
|
|
60
61
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62
|
+
exports2.toPosixPath = void 0;
|
|
61
63
|
var path_1 = __importDefault(require("path"));
|
|
62
64
|
function toPosixPath(dirPath) {
|
|
63
65
|
return path_1.default.normalize(dirPath).split(/[\\/]/g).join(path_1.default.posix.sep);
|
|
@@ -71,6 +73,7 @@ var require_promise = __commonJS({
|
|
|
71
73
|
"../lib/common-utils/dist/promise.js"(exports2) {
|
|
72
74
|
"use strict";
|
|
73
75
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
76
|
+
exports2.allSettled = void 0;
|
|
74
77
|
function allSettled(promises2) {
|
|
75
78
|
if (!promises2 || promises2.length === 0) {
|
|
76
79
|
return Promise.resolve([]);
|
|
@@ -105,6 +108,7 @@ var require_regexp = __commonJS({
|
|
|
105
108
|
"../lib/common-utils/dist/regexp.js"(exports2) {
|
|
106
109
|
"use strict";
|
|
107
110
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
111
|
+
exports2.escapeRegExp = void 0;
|
|
108
112
|
function escapeRegExp(s) {
|
|
109
113
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
110
114
|
}
|
|
@@ -116,31 +120,50 @@ var require_regexp = __commonJS({
|
|
|
116
120
|
var require_dist = __commonJS({
|
|
117
121
|
"../lib/common-utils/dist/index.js"(exports2) {
|
|
118
122
|
"use strict";
|
|
119
|
-
function
|
|
123
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
124
|
+
if (k2 === void 0)
|
|
125
|
+
k2 = k;
|
|
126
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
127
|
+
return m[k];
|
|
128
|
+
} });
|
|
129
|
+
} : function(o, m, k, k2) {
|
|
130
|
+
if (k2 === void 0)
|
|
131
|
+
k2 = k;
|
|
132
|
+
o[k2] = m[k];
|
|
133
|
+
});
|
|
134
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
120
135
|
for (var p in m)
|
|
121
|
-
if (!
|
|
122
|
-
|
|
123
|
-
}
|
|
136
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
137
|
+
__createBinding(exports3, m, p);
|
|
138
|
+
};
|
|
124
139
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
125
140
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
126
141
|
};
|
|
127
142
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
143
|
+
exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = void 0;
|
|
128
144
|
var os_1 = require("os");
|
|
129
145
|
var path_1 = __importDefault(require("path"));
|
|
130
146
|
var appStudio_1 = require_appStudio();
|
|
131
|
-
exports2
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
Object.defineProperty(exports2, "isAppStudio", { enumerable: true, get: function() {
|
|
148
|
+
return appStudio_1.isAppStudio;
|
|
149
|
+
} });
|
|
150
|
+
Object.defineProperty(exports2, "getAppStudioBaseURL", { enumerable: true, get: function() {
|
|
151
|
+
return appStudio_1.getAppStudioBaseURL;
|
|
152
|
+
} });
|
|
153
|
+
Object.defineProperty(exports2, "getAppStudioProxyURL", { enumerable: true, get: function() {
|
|
154
|
+
return appStudio_1.getAppStudioProxyURL;
|
|
155
|
+
} });
|
|
156
|
+
__exportStar(require_file(), exports2);
|
|
157
|
+
__exportStar(require_promise(), exports2);
|
|
158
|
+
__exportStar(require_regexp(), exports2);
|
|
137
159
|
var FioriToolsSettings;
|
|
138
160
|
(function(FioriToolsSettings2) {
|
|
139
161
|
FioriToolsSettings2["dir"] = ".fioritools";
|
|
140
162
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
141
|
-
|
|
163
|
+
var getFioriToolsDirectory = () => {
|
|
142
164
|
return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
143
165
|
};
|
|
166
|
+
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
144
167
|
}
|
|
145
168
|
});
|
|
146
169
|
|
|
@@ -149,6 +172,7 @@ var require_contants = __commonJS({
|
|
|
149
172
|
"../lib/store/dist/contants.js"(exports2) {
|
|
150
173
|
"use strict";
|
|
151
174
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
175
|
+
exports2.Entity = exports2.ServiceName = void 0;
|
|
152
176
|
var ServiceName;
|
|
153
177
|
(function(ServiceName2) {
|
|
154
178
|
ServiceName2["OldSystemService"] = "fiori/system/info";
|
|
@@ -7004,6 +7028,7 @@ var require_i18n = __commonJS({
|
|
|
7004
7028
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7005
7029
|
};
|
|
7006
7030
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7031
|
+
exports2.text = exports2.initI18n = void 0;
|
|
7007
7032
|
var i18next_1 = __importDefault((init_i18next(), __toCommonJS(i18next_exports)));
|
|
7008
7033
|
var i18next_fs_backend_1 = __importDefault(require_cjs());
|
|
7009
7034
|
var path_1 = __importDefault(require("path"));
|
|
@@ -7457,35 +7482,41 @@ var require_browser = __commonJS({
|
|
|
7457
7482
|
}
|
|
7458
7483
|
});
|
|
7459
7484
|
|
|
7460
|
-
//
|
|
7485
|
+
// ../../node_modules/has-flag/index.js
|
|
7461
7486
|
var require_has_flag = __commonJS({
|
|
7462
|
-
"
|
|
7487
|
+
"../../node_modules/has-flag/index.js"(exports2, module2) {
|
|
7463
7488
|
"use strict";
|
|
7464
|
-
module2.exports = (flag, argv) => {
|
|
7465
|
-
argv = argv || process.argv;
|
|
7489
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
7466
7490
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
7467
|
-
const
|
|
7468
|
-
const
|
|
7469
|
-
return
|
|
7491
|
+
const position = argv.indexOf(prefix + flag);
|
|
7492
|
+
const terminatorPosition = argv.indexOf("--");
|
|
7493
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
7470
7494
|
};
|
|
7471
7495
|
}
|
|
7472
7496
|
});
|
|
7473
7497
|
|
|
7474
|
-
//
|
|
7498
|
+
// ../../node_modules/supports-color/index.js
|
|
7475
7499
|
var require_supports_color = __commonJS({
|
|
7476
|
-
"
|
|
7500
|
+
"../../node_modules/supports-color/index.js"(exports2, module2) {
|
|
7477
7501
|
"use strict";
|
|
7478
7502
|
var os = require("os");
|
|
7503
|
+
var tty = require("tty");
|
|
7479
7504
|
var hasFlag = require_has_flag();
|
|
7480
|
-
var env = process
|
|
7505
|
+
var { env } = process;
|
|
7481
7506
|
var forceColor;
|
|
7482
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
7483
|
-
forceColor =
|
|
7507
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
7508
|
+
forceColor = 0;
|
|
7484
7509
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
7485
|
-
forceColor =
|
|
7510
|
+
forceColor = 1;
|
|
7486
7511
|
}
|
|
7487
7512
|
if ("FORCE_COLOR" in env) {
|
|
7488
|
-
|
|
7513
|
+
if (env.FORCE_COLOR === "true") {
|
|
7514
|
+
forceColor = 1;
|
|
7515
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
7516
|
+
forceColor = 0;
|
|
7517
|
+
} else {
|
|
7518
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
7519
|
+
}
|
|
7489
7520
|
}
|
|
7490
7521
|
function translateLevel(level) {
|
|
7491
7522
|
if (level === 0) {
|
|
@@ -7498,8 +7529,8 @@ var require_supports_color = __commonJS({
|
|
|
7498
7529
|
has16m: level >= 3
|
|
7499
7530
|
};
|
|
7500
7531
|
}
|
|
7501
|
-
function supportsColor(
|
|
7502
|
-
if (forceColor ===
|
|
7532
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
7533
|
+
if (forceColor === 0) {
|
|
7503
7534
|
return 0;
|
|
7504
7535
|
}
|
|
7505
7536
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -7508,19 +7539,22 @@ var require_supports_color = __commonJS({
|
|
|
7508
7539
|
if (hasFlag("color=256")) {
|
|
7509
7540
|
return 2;
|
|
7510
7541
|
}
|
|
7511
|
-
if (
|
|
7542
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7512
7543
|
return 0;
|
|
7513
7544
|
}
|
|
7514
|
-
const min = forceColor
|
|
7545
|
+
const min = forceColor || 0;
|
|
7546
|
+
if (env.TERM === "dumb") {
|
|
7547
|
+
return min;
|
|
7548
|
+
}
|
|
7515
7549
|
if (process.platform === "win32") {
|
|
7516
7550
|
const osRelease = os.release().split(".");
|
|
7517
|
-
if (Number(
|
|
7551
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
7518
7552
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
7519
7553
|
}
|
|
7520
7554
|
return 1;
|
|
7521
7555
|
}
|
|
7522
7556
|
if ("CI" in env) {
|
|
7523
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7557
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7524
7558
|
return 1;
|
|
7525
7559
|
}
|
|
7526
7560
|
return min;
|
|
@@ -7549,19 +7583,16 @@ var require_supports_color = __commonJS({
|
|
|
7549
7583
|
if ("COLORTERM" in env) {
|
|
7550
7584
|
return 1;
|
|
7551
7585
|
}
|
|
7552
|
-
if (env.TERM === "dumb") {
|
|
7553
|
-
return min;
|
|
7554
|
-
}
|
|
7555
7586
|
return min;
|
|
7556
7587
|
}
|
|
7557
7588
|
function getSupportLevel(stream) {
|
|
7558
|
-
const level = supportsColor(stream);
|
|
7589
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
7559
7590
|
return translateLevel(level);
|
|
7560
7591
|
}
|
|
7561
7592
|
module2.exports = {
|
|
7562
7593
|
supportsColor: getSupportLevel,
|
|
7563
|
-
stdout:
|
|
7564
|
-
stderr:
|
|
7594
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
7595
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
7565
7596
|
};
|
|
7566
7597
|
}
|
|
7567
7598
|
});
|
|
@@ -7753,17 +7784,21 @@ var require_utils2 = __commonJS({
|
|
|
7753
7784
|
"../lib/store/dist/utils/index.js"(exports2) {
|
|
7754
7785
|
"use strict";
|
|
7755
7786
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7787
|
+
exports2.getExtendedLogger = exports2.pick = exports2.enableDebugLogger = exports2.newDebugLogger = exports2.MIGRATION_NAMESPACE = exports2.STORE_NAMESPACE = void 0;
|
|
7756
7788
|
var debug_1 = require_src();
|
|
7757
7789
|
exports2.STORE_NAMESPACE = "ft:store";
|
|
7758
7790
|
exports2.MIGRATION_NAMESPACE = exports2.STORE_NAMESPACE + ":migrate";
|
|
7759
|
-
|
|
7760
|
-
exports2.
|
|
7761
|
-
|
|
7791
|
+
var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => debug_1.debug(namespace);
|
|
7792
|
+
exports2.newDebugLogger = newDebugLogger;
|
|
7793
|
+
var enableDebugLogger = (namespace) => debug_1.debug.enable(namespace);
|
|
7794
|
+
exports2.enableDebugLogger = enableDebugLogger;
|
|
7795
|
+
var pick = (target, ...props) => {
|
|
7762
7796
|
return target && (props == null ? void 0 : props.length) > 0 && props.reduce((o, k) => {
|
|
7763
7797
|
o[k] = target[k];
|
|
7764
7798
|
return o;
|
|
7765
7799
|
}, {}) || void 0;
|
|
7766
7800
|
};
|
|
7801
|
+
exports2.pick = pick;
|
|
7767
7802
|
function getExtendedLogger(l) {
|
|
7768
7803
|
return {
|
|
7769
7804
|
...l,
|
|
@@ -8107,25 +8142,42 @@ var require_pluralize = __commonJS({
|
|
|
8107
8142
|
var require_filesystem = __commonJS({
|
|
8108
8143
|
"../lib/store/dist/data-access/filesystem.js"(exports2) {
|
|
8109
8144
|
"use strict";
|
|
8145
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8146
|
+
if (k2 === void 0)
|
|
8147
|
+
k2 = k;
|
|
8148
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
8149
|
+
return m[k];
|
|
8150
|
+
} });
|
|
8151
|
+
} : function(o, m, k, k2) {
|
|
8152
|
+
if (k2 === void 0)
|
|
8153
|
+
k2 = k;
|
|
8154
|
+
o[k2] = m[k];
|
|
8155
|
+
});
|
|
8156
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8157
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8158
|
+
} : function(o, v) {
|
|
8159
|
+
o["default"] = v;
|
|
8160
|
+
});
|
|
8110
8161
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
8111
8162
|
if (mod && mod.__esModule)
|
|
8112
8163
|
return mod;
|
|
8113
8164
|
var result2 = {};
|
|
8114
8165
|
if (mod != null) {
|
|
8115
8166
|
for (var k in mod)
|
|
8116
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
8117
|
-
result2
|
|
8167
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
8168
|
+
__createBinding(result2, mod, k);
|
|
8118
8169
|
}
|
|
8119
|
-
result2
|
|
8170
|
+
__setModuleDefault(result2, mod);
|
|
8120
8171
|
return result2;
|
|
8121
8172
|
};
|
|
8122
8173
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8174
|
+
exports2.getFilesystemWatcherFor = exports2.FilesystemStore = exports2.basedir = void 0;
|
|
8123
8175
|
var path_1 = __importStar(require("path"));
|
|
8124
8176
|
var fs_1 = require("fs");
|
|
8125
8177
|
var pluralize_1 = require_pluralize();
|
|
8126
8178
|
var ux_common_utils_1 = require_dist();
|
|
8127
8179
|
exports2.basedir = ux_common_utils_1.getFioriToolsDirectory;
|
|
8128
|
-
|
|
8180
|
+
var FilesystemStore = class {
|
|
8129
8181
|
constructor(logger) {
|
|
8130
8182
|
this.logger = logger;
|
|
8131
8183
|
}
|
|
@@ -8263,6 +8315,7 @@ var require_filesystem = __commonJS({
|
|
|
8263
8315
|
}
|
|
8264
8316
|
}
|
|
8265
8317
|
};
|
|
8318
|
+
exports2.FilesystemStore = FilesystemStore;
|
|
8266
8319
|
function toPersistenceName(s) {
|
|
8267
8320
|
const t = s == null ? void 0 : s.trim().toLowerCase();
|
|
8268
8321
|
return t && pluralize_1.plural(t);
|
|
@@ -8289,6 +8342,7 @@ var require_dummy_store = __commonJS({
|
|
|
8289
8342
|
"../lib/store/dist/secure-store/dummy-store.js"(exports2) {
|
|
8290
8343
|
"use strict";
|
|
8291
8344
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8345
|
+
exports2.DummyStore = void 0;
|
|
8292
8346
|
var DummyStore = class {
|
|
8293
8347
|
constructor(log3) {
|
|
8294
8348
|
this.log = log3;
|
|
@@ -8319,6 +8373,7 @@ var require_keytar_store = __commonJS({
|
|
|
8319
8373
|
"../lib/store/dist/secure-store/keytar-store.js"(exports2) {
|
|
8320
8374
|
"use strict";
|
|
8321
8375
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8376
|
+
exports2.KeytarStore = void 0;
|
|
8322
8377
|
var KeytarStore = class {
|
|
8323
8378
|
constructor(log3, keytar) {
|
|
8324
8379
|
this.log = log3;
|
|
@@ -8375,11 +8430,36 @@ var require_keytar_store = __commonJS({
|
|
|
8375
8430
|
}
|
|
8376
8431
|
});
|
|
8377
8432
|
|
|
8433
|
+
// ../lib/store/dist/secure-store/types.js
|
|
8434
|
+
var require_types = __commonJS({
|
|
8435
|
+
"../lib/store/dist/secure-store/types.js"(exports2) {
|
|
8436
|
+
"use strict";
|
|
8437
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8438
|
+
}
|
|
8439
|
+
});
|
|
8440
|
+
|
|
8378
8441
|
// ../lib/store/dist/secure-store/index.js
|
|
8379
8442
|
var require_secure_store = __commonJS({
|
|
8380
8443
|
"../lib/store/dist/secure-store/index.js"(exports2) {
|
|
8381
8444
|
"use strict";
|
|
8445
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8446
|
+
if (k2 === void 0)
|
|
8447
|
+
k2 = k;
|
|
8448
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
8449
|
+
return m[k];
|
|
8450
|
+
} });
|
|
8451
|
+
} : function(o, m, k, k2) {
|
|
8452
|
+
if (k2 === void 0)
|
|
8453
|
+
k2 = k;
|
|
8454
|
+
o[k2] = m[k];
|
|
8455
|
+
});
|
|
8456
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
8457
|
+
for (var p in m)
|
|
8458
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
8459
|
+
__createBinding(exports3, m, p);
|
|
8460
|
+
};
|
|
8382
8461
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8462
|
+
exports2.getSecureStore = void 0;
|
|
8383
8463
|
var ux_common_utils_1 = require_dist();
|
|
8384
8464
|
var dummy_store_1 = require_dummy_store();
|
|
8385
8465
|
var keytar_store_1 = require_keytar_store();
|
|
@@ -8413,7 +8493,7 @@ var require_secure_store = __commonJS({
|
|
|
8413
8493
|
return null;
|
|
8414
8494
|
}
|
|
8415
8495
|
}
|
|
8416
|
-
|
|
8496
|
+
var getSecureStore = (log3) => {
|
|
8417
8497
|
if (ux_common_utils_1.isAppStudio() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
|
|
8418
8498
|
return new dummy_store_1.DummyStore(log3);
|
|
8419
8499
|
} else {
|
|
@@ -8421,6 +8501,8 @@ var require_secure_store = __commonJS({
|
|
|
8421
8501
|
return keytar ? new keytar_store_1.KeytarStore(log3, keytar) : new dummy_store_1.DummyStore(log3);
|
|
8422
8502
|
}
|
|
8423
8503
|
};
|
|
8504
|
+
exports2.getSecureStore = getSecureStore;
|
|
8505
|
+
__exportStar(require_types(), exports2);
|
|
8424
8506
|
}
|
|
8425
8507
|
});
|
|
8426
8508
|
|
|
@@ -9155,6 +9237,7 @@ var require_decorators = __commonJS({
|
|
|
9155
9237
|
"../lib/store/dist/decorators/index.js"(exports2) {
|
|
9156
9238
|
"use strict";
|
|
9157
9239
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9240
|
+
exports2.getSensitiveDataProperties = exports2.sensitiveData = exports2.getSerializableProperties = exports2.serializable = void 0;
|
|
9158
9241
|
require_Reflect();
|
|
9159
9242
|
var SERIALIZABLE = Symbol("serializable");
|
|
9160
9243
|
function serializable(target, key) {
|
|
@@ -9186,6 +9269,7 @@ var require_hybrid = __commonJS({
|
|
|
9186
9269
|
"../lib/store/dist/data-access/hybrid.js"(exports2) {
|
|
9187
9270
|
"use strict";
|
|
9188
9271
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9272
|
+
exports2.HybridStore = void 0;
|
|
9189
9273
|
var filesystem_1 = require_filesystem();
|
|
9190
9274
|
var utils_1 = require_utils2();
|
|
9191
9275
|
var secure_store_1 = require_secure_store();
|
|
@@ -9193,7 +9277,7 @@ var require_hybrid = __commonJS({
|
|
|
9193
9277
|
function getFullyQualifiedServiceName(name) {
|
|
9194
9278
|
return "fiori/v2/" + name;
|
|
9195
9279
|
}
|
|
9196
|
-
|
|
9280
|
+
var HybridStore = class {
|
|
9197
9281
|
constructor(logger) {
|
|
9198
9282
|
this.logger = logger;
|
|
9199
9283
|
this.filesystem = new filesystem_1.FilesystemStore(this.logger);
|
|
@@ -9266,6 +9350,7 @@ var require_hybrid = __commonJS({
|
|
|
9266
9350
|
return deletedinFs || deletedInSecureStore;
|
|
9267
9351
|
}
|
|
9268
9352
|
};
|
|
9353
|
+
exports2.HybridStore = HybridStore;
|
|
9269
9354
|
}
|
|
9270
9355
|
});
|
|
9271
9356
|
|
|
@@ -9284,6 +9369,7 @@ var require_backend_system = __commonJS({
|
|
|
9284
9369
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9285
9370
|
};
|
|
9286
9371
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9372
|
+
exports2.BackendSystem = exports2.BackendSystemKey = exports2.AuthenticationType = void 0;
|
|
9287
9373
|
var decorators_1 = require_decorators();
|
|
9288
9374
|
var AuthenticationType;
|
|
9289
9375
|
(function(AuthenticationType2) {
|
|
@@ -9306,7 +9392,7 @@ var require_backend_system = __commonJS({
|
|
|
9306
9392
|
};
|
|
9307
9393
|
exports2.BackendSystemKey = BackendSystemKey;
|
|
9308
9394
|
var BackendSystem = class {
|
|
9309
|
-
constructor({ name, url, client, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType }) {
|
|
9395
|
+
constructor({ name, url, client, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType, csrfToken, cookieString }) {
|
|
9310
9396
|
this.name = name;
|
|
9311
9397
|
this.url = url;
|
|
9312
9398
|
this.client = client;
|
|
@@ -9316,6 +9402,8 @@ var require_backend_system = __commonJS({
|
|
|
9316
9402
|
this.password = password;
|
|
9317
9403
|
this.userDisplayName = userDisplayName;
|
|
9318
9404
|
this.authenticationType = authenticationType;
|
|
9405
|
+
this.csrfToken = csrfToken;
|
|
9406
|
+
this.cookieString = cookieString;
|
|
9319
9407
|
}
|
|
9320
9408
|
};
|
|
9321
9409
|
__decorate([
|
|
@@ -9345,6 +9433,12 @@ var require_backend_system = __commonJS({
|
|
|
9345
9433
|
__decorate([
|
|
9346
9434
|
decorators_1.sensitiveData
|
|
9347
9435
|
], BackendSystem.prototype, "authenticationType", void 0);
|
|
9436
|
+
__decorate([
|
|
9437
|
+
decorators_1.sensitiveData
|
|
9438
|
+
], BackendSystem.prototype, "csrfToken", void 0);
|
|
9439
|
+
__decorate([
|
|
9440
|
+
decorators_1.sensitiveData
|
|
9441
|
+
], BackendSystem.prototype, "cookieString", void 0);
|
|
9348
9442
|
exports2.BackendSystem = BackendSystem;
|
|
9349
9443
|
}
|
|
9350
9444
|
});
|
|
@@ -9354,6 +9448,7 @@ var require_constants = __commonJS({
|
|
|
9354
9448
|
"../lib/store/dist/data-provider/constants.js"(exports2) {
|
|
9355
9449
|
"use strict";
|
|
9356
9450
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9451
|
+
exports2.Entities = void 0;
|
|
9357
9452
|
var Entities;
|
|
9358
9453
|
(function(Entities2) {
|
|
9359
9454
|
Entities2["BackendSystem"] = "system";
|
|
@@ -9367,10 +9462,11 @@ var require_backend_system2 = __commonJS({
|
|
|
9367
9462
|
"../lib/store/dist/data-provider/backend-system.js"(exports2) {
|
|
9368
9463
|
"use strict";
|
|
9369
9464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9465
|
+
exports2.SystemDataProvider = void 0;
|
|
9370
9466
|
var hybrid_1 = require_hybrid();
|
|
9371
9467
|
var backend_system_1 = require_backend_system();
|
|
9372
9468
|
var constants_1 = require_constants();
|
|
9373
|
-
|
|
9469
|
+
var SystemDataProvider = class {
|
|
9374
9470
|
constructor(logger) {
|
|
9375
9471
|
this.entityName = constants_1.Entities.BackendSystem;
|
|
9376
9472
|
this.logger = logger;
|
|
@@ -9411,6 +9507,7 @@ var require_backend_system2 = __commonJS({
|
|
|
9411
9507
|
return Object.values(systems);
|
|
9412
9508
|
}
|
|
9413
9509
|
};
|
|
9510
|
+
exports2.SystemDataProvider = SystemDataProvider;
|
|
9414
9511
|
}
|
|
9415
9512
|
});
|
|
9416
9513
|
|
|
@@ -9429,6 +9526,7 @@ var require_system_migration_status = __commonJS({
|
|
|
9429
9526
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9430
9527
|
};
|
|
9431
9528
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9529
|
+
exports2.SystemMigrationStatusKey = exports2.SystemMigrationStatus = void 0;
|
|
9432
9530
|
var decorators_1 = require_decorators();
|
|
9433
9531
|
var SystemMigrationStatus = class {
|
|
9434
9532
|
constructor({ authTypeMigrated, migrationDone, migrationLogs }) {
|
|
@@ -9461,10 +9559,11 @@ var require_system_migration = __commonJS({
|
|
|
9461
9559
|
"../lib/store/dist/data-provider/system-migration.js"(exports2) {
|
|
9462
9560
|
"use strict";
|
|
9463
9561
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9562
|
+
exports2.SystemMigrationStatusDataProvider = void 0;
|
|
9464
9563
|
var filesystem_1 = require_filesystem();
|
|
9465
9564
|
var system_migration_status_1 = require_system_migration_status();
|
|
9466
9565
|
var constants_1 = require_constants();
|
|
9467
|
-
|
|
9566
|
+
var SystemMigrationStatusDataProvider = class {
|
|
9468
9567
|
constructor(logger) {
|
|
9469
9568
|
this.entityName = constants_1.Entities.SystemMigrationStatus;
|
|
9470
9569
|
this.logger = logger;
|
|
@@ -9490,6 +9589,7 @@ var require_system_migration = __commonJS({
|
|
|
9490
9589
|
return this.dataAccessor.getAll({ entityName: this.entityName });
|
|
9491
9590
|
}
|
|
9492
9591
|
};
|
|
9592
|
+
exports2.SystemMigrationStatusDataProvider = SystemMigrationStatusDataProvider;
|
|
9493
9593
|
}
|
|
9494
9594
|
});
|
|
9495
9595
|
|
|
@@ -9498,6 +9598,7 @@ var require_system_migration2 = __commonJS({
|
|
|
9498
9598
|
"../lib/store/dist/services/system-migration.js"(exports2) {
|
|
9499
9599
|
"use strict";
|
|
9500
9600
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9601
|
+
exports2.migrate = void 0;
|
|
9501
9602
|
var contants_1 = require_contants();
|
|
9502
9603
|
var system_migration_1 = require_system_migration();
|
|
9503
9604
|
var backend_system_1 = require_backend_system();
|
|
@@ -9687,6 +9788,7 @@ var require_backend_system3 = __commonJS({
|
|
|
9687
9788
|
"../lib/store/dist/services/backend-system.js"(exports2) {
|
|
9688
9789
|
"use strict";
|
|
9689
9790
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9791
|
+
exports2.getInstance = exports2.SystemService = void 0;
|
|
9690
9792
|
var utils_1 = require_utils2();
|
|
9691
9793
|
var backend_system_1 = require_backend_system2();
|
|
9692
9794
|
var backend_system_2 = require_backend_system();
|
|
@@ -9759,8 +9861,11 @@ var require_services = __commonJS({
|
|
|
9759
9861
|
"../lib/store/dist/services/index.js"(exports2) {
|
|
9760
9862
|
"use strict";
|
|
9761
9863
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9864
|
+
exports2.SystemService = void 0;
|
|
9762
9865
|
var backend_system_1 = require_backend_system3();
|
|
9763
|
-
exports2
|
|
9866
|
+
Object.defineProperty(exports2, "SystemService", { enumerable: true, get: function() {
|
|
9867
|
+
return backend_system_1.SystemService;
|
|
9868
|
+
} });
|
|
9764
9869
|
}
|
|
9765
9870
|
});
|
|
9766
9871
|
|
|
@@ -9769,8 +9874,11 @@ var require_data_access = __commonJS({
|
|
|
9769
9874
|
"../lib/store/dist/data-access/index.js"(exports2) {
|
|
9770
9875
|
"use strict";
|
|
9771
9876
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9877
|
+
exports2.getFilesystemWatcherFor = void 0;
|
|
9772
9878
|
var filesystem_1 = require_filesystem();
|
|
9773
|
-
exports2
|
|
9879
|
+
Object.defineProperty(exports2, "getFilesystemWatcherFor", { enumerable: true, get: function() {
|
|
9880
|
+
return filesystem_1.getFilesystemWatcherFor;
|
|
9881
|
+
} });
|
|
9774
9882
|
}
|
|
9775
9883
|
});
|
|
9776
9884
|
|
|
@@ -9778,14 +9886,28 @@ var require_data_access = __commonJS({
|
|
|
9778
9886
|
var require_dist2 = __commonJS({
|
|
9779
9887
|
"../lib/store/dist/index.js"(exports2) {
|
|
9780
9888
|
"use strict";
|
|
9781
|
-
function
|
|
9889
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
9890
|
+
if (k2 === void 0)
|
|
9891
|
+
k2 = k;
|
|
9892
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
9893
|
+
return m[k];
|
|
9894
|
+
} });
|
|
9895
|
+
} : function(o, m, k, k2) {
|
|
9896
|
+
if (k2 === void 0)
|
|
9897
|
+
k2 = k;
|
|
9898
|
+
o[k2] = m[k];
|
|
9899
|
+
});
|
|
9900
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
9782
9901
|
for (var p in m)
|
|
9783
|
-
if (!
|
|
9784
|
-
|
|
9785
|
-
}
|
|
9902
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
9903
|
+
__createBinding(exports3, m, p);
|
|
9904
|
+
};
|
|
9786
9905
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9906
|
+
exports2.Entity = exports2.getFilesystemWatcherFor = exports2.getService = void 0;
|
|
9787
9907
|
var contants_1 = require_contants();
|
|
9788
|
-
exports2
|
|
9908
|
+
Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
|
|
9909
|
+
return contants_1.Entity;
|
|
9910
|
+
} });
|
|
9789
9911
|
var i18n_1 = require_i18n();
|
|
9790
9912
|
var backend_system_1 = require_backend_system3();
|
|
9791
9913
|
var services = {
|
|
@@ -9801,11 +9923,13 @@ var require_dist2 = __commonJS({
|
|
|
9801
9923
|
}
|
|
9802
9924
|
}
|
|
9803
9925
|
exports2.getService = getService;
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9926
|
+
__exportStar(require_services(), exports2);
|
|
9927
|
+
__exportStar(require_secure_store(), exports2);
|
|
9928
|
+
__exportStar(require_backend_system(), exports2);
|
|
9807
9929
|
var data_access_1 = require_data_access();
|
|
9808
|
-
exports2
|
|
9930
|
+
Object.defineProperty(exports2, "getFilesystemWatcherFor", { enumerable: true, get: function() {
|
|
9931
|
+
return data_access_1.getFilesystemWatcherFor;
|
|
9932
|
+
} });
|
|
9809
9933
|
}
|
|
9810
9934
|
});
|
|
9811
9935
|
|
|
@@ -9814,6 +9938,7 @@ var require_config = __commonJS({
|
|
|
9814
9938
|
"../lib/odata-client/dist/config.js"(exports2) {
|
|
9815
9939
|
"use strict";
|
|
9816
9940
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9941
|
+
exports2.hasHTML5DynamicDestinationAttrib = exports2.hasFullUrlDestAttribute = exports2.hasDestinationAttrib = exports2.destinationPropertyId = exports2.DestinationAttributeProperty = exports2.DestinationProperties = exports2.AuthenticationType = exports2.ServiceName = void 0;
|
|
9817
9942
|
var ServiceName;
|
|
9818
9943
|
(function(ServiceName2) {
|
|
9819
9944
|
ServiceName2["SystemInfo"] = "fiori/system/info";
|
|
@@ -9821,7 +9946,9 @@ var require_config = __commonJS({
|
|
|
9821
9946
|
ServiceName2["ApiHub"] = "fiori/system/apiHub";
|
|
9822
9947
|
})(ServiceName = exports2.ServiceName || (exports2.ServiceName = {}));
|
|
9823
9948
|
var ux_store_1 = require_dist2();
|
|
9824
|
-
exports2
|
|
9949
|
+
Object.defineProperty(exports2, "AuthenticationType", { enumerable: true, get: function() {
|
|
9950
|
+
return ux_store_1.AuthenticationType;
|
|
9951
|
+
} });
|
|
9825
9952
|
var DestinationProperties;
|
|
9826
9953
|
(function(DestinationProperties2) {
|
|
9827
9954
|
DestinationProperties2["WebIDEUsage"] = "WebIDEUsage";
|
|
@@ -10834,121 +10961,6 @@ var require_browser2 = __commonJS({
|
|
|
10834
10961
|
}
|
|
10835
10962
|
});
|
|
10836
10963
|
|
|
10837
|
-
// ../../node_modules/has-flag/index.js
|
|
10838
|
-
var require_has_flag2 = __commonJS({
|
|
10839
|
-
"../../node_modules/has-flag/index.js"(exports2, module2) {
|
|
10840
|
-
"use strict";
|
|
10841
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
10842
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
10843
|
-
const position = argv.indexOf(prefix + flag);
|
|
10844
|
-
const terminatorPosition = argv.indexOf("--");
|
|
10845
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
10846
|
-
};
|
|
10847
|
-
}
|
|
10848
|
-
});
|
|
10849
|
-
|
|
10850
|
-
// ../../node_modules/supports-color/index.js
|
|
10851
|
-
var require_supports_color2 = __commonJS({
|
|
10852
|
-
"../../node_modules/supports-color/index.js"(exports2, module2) {
|
|
10853
|
-
"use strict";
|
|
10854
|
-
var os = require("os");
|
|
10855
|
-
var tty = require("tty");
|
|
10856
|
-
var hasFlag = require_has_flag2();
|
|
10857
|
-
var { env } = process;
|
|
10858
|
-
var forceColor;
|
|
10859
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
10860
|
-
forceColor = 0;
|
|
10861
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
10862
|
-
forceColor = 1;
|
|
10863
|
-
}
|
|
10864
|
-
if ("FORCE_COLOR" in env) {
|
|
10865
|
-
if (env.FORCE_COLOR === "true") {
|
|
10866
|
-
forceColor = 1;
|
|
10867
|
-
} else if (env.FORCE_COLOR === "false") {
|
|
10868
|
-
forceColor = 0;
|
|
10869
|
-
} else {
|
|
10870
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
10871
|
-
}
|
|
10872
|
-
}
|
|
10873
|
-
function translateLevel(level) {
|
|
10874
|
-
if (level === 0) {
|
|
10875
|
-
return false;
|
|
10876
|
-
}
|
|
10877
|
-
return {
|
|
10878
|
-
level,
|
|
10879
|
-
hasBasic: true,
|
|
10880
|
-
has256: level >= 2,
|
|
10881
|
-
has16m: level >= 3
|
|
10882
|
-
};
|
|
10883
|
-
}
|
|
10884
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
10885
|
-
if (forceColor === 0) {
|
|
10886
|
-
return 0;
|
|
10887
|
-
}
|
|
10888
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
10889
|
-
return 3;
|
|
10890
|
-
}
|
|
10891
|
-
if (hasFlag("color=256")) {
|
|
10892
|
-
return 2;
|
|
10893
|
-
}
|
|
10894
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
10895
|
-
return 0;
|
|
10896
|
-
}
|
|
10897
|
-
const min = forceColor || 0;
|
|
10898
|
-
if (env.TERM === "dumb") {
|
|
10899
|
-
return min;
|
|
10900
|
-
}
|
|
10901
|
-
if (process.platform === "win32") {
|
|
10902
|
-
const osRelease = os.release().split(".");
|
|
10903
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
10904
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
10905
|
-
}
|
|
10906
|
-
return 1;
|
|
10907
|
-
}
|
|
10908
|
-
if ("CI" in env) {
|
|
10909
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
10910
|
-
return 1;
|
|
10911
|
-
}
|
|
10912
|
-
return min;
|
|
10913
|
-
}
|
|
10914
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
10915
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
10916
|
-
}
|
|
10917
|
-
if (env.COLORTERM === "truecolor") {
|
|
10918
|
-
return 3;
|
|
10919
|
-
}
|
|
10920
|
-
if ("TERM_PROGRAM" in env) {
|
|
10921
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
10922
|
-
switch (env.TERM_PROGRAM) {
|
|
10923
|
-
case "iTerm.app":
|
|
10924
|
-
return version >= 3 ? 3 : 2;
|
|
10925
|
-
case "Apple_Terminal":
|
|
10926
|
-
return 2;
|
|
10927
|
-
}
|
|
10928
|
-
}
|
|
10929
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
10930
|
-
return 2;
|
|
10931
|
-
}
|
|
10932
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
10933
|
-
return 1;
|
|
10934
|
-
}
|
|
10935
|
-
if ("COLORTERM" in env) {
|
|
10936
|
-
return 1;
|
|
10937
|
-
}
|
|
10938
|
-
return min;
|
|
10939
|
-
}
|
|
10940
|
-
function getSupportLevel(stream) {
|
|
10941
|
-
const level = supportsColor(stream, stream && stream.isTTY);
|
|
10942
|
-
return translateLevel(level);
|
|
10943
|
-
}
|
|
10944
|
-
module2.exports = {
|
|
10945
|
-
supportsColor: getSupportLevel,
|
|
10946
|
-
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
10947
|
-
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
10948
|
-
};
|
|
10949
|
-
}
|
|
10950
|
-
});
|
|
10951
|
-
|
|
10952
10964
|
// ../../node_modules/debug/src/node.js
|
|
10953
10965
|
var require_node2 = __commonJS({
|
|
10954
10966
|
"../../node_modules/debug/src/node.js"(exports2, module2) {
|
|
@@ -10962,7 +10974,7 @@ var require_node2 = __commonJS({
|
|
|
10962
10974
|
exports2.useColors = useColors;
|
|
10963
10975
|
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
10964
10976
|
try {
|
|
10965
|
-
const supportsColor =
|
|
10977
|
+
const supportsColor = require_supports_color();
|
|
10966
10978
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
10967
10979
|
exports2.colors = [
|
|
10968
10980
|
20,
|
|
@@ -12435,6 +12447,7 @@ var require_cookies2 = __commonJS({
|
|
|
12435
12447
|
"../lib/odata-client/dist/connection/cookies.js"(exports2) {
|
|
12436
12448
|
"use strict";
|
|
12437
12449
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12450
|
+
exports2.Cookies = void 0;
|
|
12438
12451
|
var Cookies = class {
|
|
12439
12452
|
constructor() {
|
|
12440
12453
|
this.cookies = {};
|
|
@@ -12673,6 +12686,7 @@ var require_common3 = __commonJS({
|
|
|
12673
12686
|
"../lib/odata-client/dist/connection/common.js"(exports2) {
|
|
12674
12687
|
"use strict";
|
|
12675
12688
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12689
|
+
exports2.CSRF = void 0;
|
|
12676
12690
|
var CSRF;
|
|
12677
12691
|
(function(CSRF2) {
|
|
12678
12692
|
CSRF2["requestHeaderName"] = "X-Csrf-Token";
|
|
@@ -12687,6 +12701,7 @@ var require_static = __commonJS({
|
|
|
12687
12701
|
"../lib/odata-client/dist/static/index.js"(exports2) {
|
|
12688
12702
|
"use strict";
|
|
12689
12703
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12704
|
+
exports2.redirectSuccessHtml = exports2.globalRootCaPem = void 0;
|
|
12690
12705
|
exports2.globalRootCaPem = `
|
|
12691
12706
|
-----BEGIN CERTIFICATE-----
|
|
12692
12707
|
MIIGTDCCBDSgAwIBAgIQXQPZPTFhXY9Iizlwx48bmTANBgkqhkiG9w0BAQsFADBO
|
|
@@ -12725,7 +12740,7 @@ Xn+IfM6K/pbDar/y6uI9rHlyWu4iJ6cg7DAPJ2CCklw/YHJXhDHGwheO/qSrKtgz
|
|
|
12725
12740
|
PGHZoN9jcvvvWDLUGtJkEotMgdFpEA2XWR83H4fVFVc=
|
|
12726
12741
|
-----END CERTIFICATE-----
|
|
12727
12742
|
`;
|
|
12728
|
-
|
|
12743
|
+
var redirectSuccessHtml = (logoutUrl, systemId) => `
|
|
12729
12744
|
<html>
|
|
12730
12745
|
|
|
12731
12746
|
<head>
|
|
@@ -12848,6 +12863,7 @@ PGHZoN9jcvvvWDLUGtJkEotMgdFpEA2XWR83H4fVFVc=
|
|
|
12848
12863
|
|
|
12849
12864
|
</html>
|
|
12850
12865
|
`;
|
|
12866
|
+
exports2.redirectSuccessHtml = redirectSuccessHtml;
|
|
12851
12867
|
}
|
|
12852
12868
|
});
|
|
12853
12869
|
|
|
@@ -12856,6 +12872,7 @@ var require_error = __commonJS({
|
|
|
12856
12872
|
"../lib/odata-client/dist/error.js"(exports2) {
|
|
12857
12873
|
"use strict";
|
|
12858
12874
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12875
|
+
exports2.UnknownSystemAuthenticationType = exports2.BaseError = void 0;
|
|
12859
12876
|
var BaseError = class extends Error {
|
|
12860
12877
|
constructor(message, cause) {
|
|
12861
12878
|
super(message);
|
|
@@ -12878,6 +12895,7 @@ var require_error2 = __commonJS({
|
|
|
12878
12895
|
"../lib/odata-client/dist/connection/error.js"(exports2) {
|
|
12879
12896
|
"use strict";
|
|
12880
12897
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12898
|
+
exports2.UAATimeoutError = exports2.TimeoutError = exports2.ConnectionError = void 0;
|
|
12881
12899
|
var error_1 = require_error();
|
|
12882
12900
|
var ConnectionError = class extends error_1.BaseError {
|
|
12883
12901
|
constructor(message, cause) {
|
|
@@ -13491,8 +13509,9 @@ var require_utils5 = __commonJS({
|
|
|
13491
13509
|
"../lib/odata-client/dist/connection/utils.js"(exports2) {
|
|
13492
13510
|
"use strict";
|
|
13493
13511
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13512
|
+
exports2.timeString = exports2.timeoutMs = void 0;
|
|
13494
13513
|
exports2.timeoutMs = 60 * 1e3;
|
|
13495
|
-
|
|
13514
|
+
var timeString = (ms = exports2.timeoutMs) => {
|
|
13496
13515
|
const min = ms / 60 / 1e3;
|
|
13497
13516
|
if (min > 1) {
|
|
13498
13517
|
return `${min} minutes`;
|
|
@@ -13502,6 +13521,7 @@ var require_utils5 = __commonJS({
|
|
|
13502
13521
|
return `${ms / 1e3} seconds`;
|
|
13503
13522
|
}
|
|
13504
13523
|
};
|
|
13524
|
+
exports2.timeString = timeString;
|
|
13505
13525
|
}
|
|
13506
13526
|
});
|
|
13507
13527
|
|
|
@@ -13513,6 +13533,7 @@ var require_uaaOauth = __commonJS({
|
|
|
13513
13533
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
13514
13534
|
};
|
|
13515
13535
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13536
|
+
exports2.connectUsingUaaClientCredential = exports2.connectUsingUaa = exports2.defaultUtils = exports2.getServiceInfo = void 0;
|
|
13516
13537
|
var open = require_open();
|
|
13517
13538
|
var http_1 = __importDefault(require("http"));
|
|
13518
13539
|
var axios_1 = __importDefault(require_axios2());
|
|
@@ -13855,6 +13876,7 @@ var require_connectWithReentranceTicket = __commonJS({
|
|
|
13855
13876
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
13856
13877
|
};
|
|
13857
13878
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13879
|
+
exports2.connectWithReentranceTicket = void 0;
|
|
13858
13880
|
var axios_1 = __importDefault(require_axios2());
|
|
13859
13881
|
var common_1 = require_common3();
|
|
13860
13882
|
var express_1 = __importDefault(require("express"));
|
|
@@ -14111,7 +14133,7 @@ var require_lib2 = __commonJS({
|
|
|
14111
14133
|
});
|
|
14112
14134
|
|
|
14113
14135
|
// ../../node_modules/@sap/cf-tools/out/src/types.js
|
|
14114
|
-
var
|
|
14136
|
+
var require_types2 = __commonJS({
|
|
14115
14137
|
"../../node_modules/@sap/cf-tools/out/src/types.js"(exports2) {
|
|
14116
14138
|
"use strict";
|
|
14117
14139
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -27296,7 +27318,7 @@ var require_cli = __commonJS({
|
|
|
27296
27318
|
var child_process_1 = require("child_process");
|
|
27297
27319
|
var comment_json_1 = require_src4();
|
|
27298
27320
|
var _45 = require_lodash();
|
|
27299
|
-
var types_1 =
|
|
27321
|
+
var types_1 = require_types2();
|
|
27300
27322
|
var Cli = class {
|
|
27301
27323
|
static execute(args, options2, token2) {
|
|
27302
27324
|
token2 = token2 || { isCancellationRequested: false, onCancellationRequested: () => {
|
|
@@ -27431,7 +27453,7 @@ var require_utils6 = __commonJS({
|
|
|
27431
27453
|
var path3 = require("path");
|
|
27432
27454
|
var comment_json_1 = require_src4();
|
|
27433
27455
|
var messages_1 = require_messages();
|
|
27434
|
-
var types_1 =
|
|
27456
|
+
var types_1 = require_types2();
|
|
27435
27457
|
function dataContentAsObject(filePath) {
|
|
27436
27458
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27437
27459
|
try {
|
|
@@ -27593,7 +27615,7 @@ var require_cf_local = __commonJS({
|
|
|
27593
27615
|
var _45 = require_lodash();
|
|
27594
27616
|
var cli_1 = require_cli();
|
|
27595
27617
|
var messages_1 = require_messages();
|
|
27596
|
-
var types_1 =
|
|
27618
|
+
var types_1 = require_types2();
|
|
27597
27619
|
var utils_1 = require_utils6();
|
|
27598
27620
|
var url_1 = require("url");
|
|
27599
27621
|
var baseParams = [
|
|
@@ -28216,7 +28238,7 @@ var require_cfServicesUtil = __commonJS({
|
|
|
28216
28238
|
exports2.isTargetSet = exports2.getInstanceMetadata = exports2.createServiceInstance = exports2.getInstanceCredentials = exports2.getServicesInstancesFilteredByType = void 0;
|
|
28217
28239
|
var cli_1 = require_cli();
|
|
28218
28240
|
var _45 = require_lodash();
|
|
28219
|
-
var types_1 =
|
|
28241
|
+
var types_1 = require_types2();
|
|
28220
28242
|
var cf_local_1 = require_cf_local();
|
|
28221
28243
|
function getServicesInstancesFilteredByType(serviceTypes) {
|
|
28222
28244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -28300,7 +28322,7 @@ var require_src5 = __commonJS({
|
|
|
28300
28322
|
};
|
|
28301
28323
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
28302
28324
|
exports2.apiGetInstanceMetadata = exports2.apiCreateServiceInstance = exports2.apiGetInstanceCredentials = exports2.apiGetServicesInstancesFilteredByType = void 0;
|
|
28303
|
-
__exportStar(
|
|
28325
|
+
__exportStar(require_types2(), exports2);
|
|
28304
28326
|
__exportStar(require_cli(), exports2);
|
|
28305
28327
|
__exportStar(require_cf_local(), exports2);
|
|
28306
28328
|
__exportStar(require_messages(), exports2);
|
|
@@ -28341,6 +28363,7 @@ var require_destination = __commonJS({
|
|
|
28341
28363
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
28342
28364
|
};
|
|
28343
28365
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
28366
|
+
exports2.updateSystemConfig = exports2.replaceUrlForAppStudio = exports2.listDestinations = void 0;
|
|
28344
28367
|
var axios_1 = __importDefault(require_axios2());
|
|
28345
28368
|
var config_1 = require_config();
|
|
28346
28369
|
var ux_common_utils_1 = require_dist();
|
|
@@ -28422,18 +28445,32 @@ var require_destination = __commonJS({
|
|
|
28422
28445
|
var require_connection = __commonJS({
|
|
28423
28446
|
"../lib/odata-client/dist/connection/index.js"(exports2) {
|
|
28424
28447
|
"use strict";
|
|
28425
|
-
function
|
|
28448
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
28449
|
+
if (k2 === void 0)
|
|
28450
|
+
k2 = k;
|
|
28451
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
28452
|
+
return m[k];
|
|
28453
|
+
} });
|
|
28454
|
+
} : function(o, m, k, k2) {
|
|
28455
|
+
if (k2 === void 0)
|
|
28456
|
+
k2 = k;
|
|
28457
|
+
o[k2] = m[k];
|
|
28458
|
+
});
|
|
28459
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
28426
28460
|
for (var p in m)
|
|
28427
|
-
if (!
|
|
28428
|
-
|
|
28429
|
-
}
|
|
28461
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
28462
|
+
__createBinding(exports3, m, p);
|
|
28463
|
+
};
|
|
28430
28464
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
28431
28465
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
28432
28466
|
};
|
|
28433
28467
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
28468
|
+
exports2.Cookies = exports2.connect = exports2.SAP_CLIENT = void 0;
|
|
28434
28469
|
var axios_1 = __importDefault(require_axios2());
|
|
28435
28470
|
var cookies_1 = require_cookies2();
|
|
28436
|
-
exports2
|
|
28471
|
+
Object.defineProperty(exports2, "Cookies", { enumerable: true, get: function() {
|
|
28472
|
+
return cookies_1.Cookies;
|
|
28473
|
+
} });
|
|
28437
28474
|
var config_1 = require_config();
|
|
28438
28475
|
var ux_common_utils_1 = require_dist();
|
|
28439
28476
|
var uaaOauth_1 = require_uaaOauth();
|
|
@@ -28551,8 +28588,8 @@ var require_connection = __commonJS({
|
|
|
28551
28588
|
}
|
|
28552
28589
|
}
|
|
28553
28590
|
exports2.connect = connect;
|
|
28554
|
-
|
|
28555
|
-
|
|
28591
|
+
__exportStar(require_destination(), exports2);
|
|
28592
|
+
__exportStar(require_error2(), exports2);
|
|
28556
28593
|
}
|
|
28557
28594
|
});
|
|
28558
28595
|
|
|
@@ -28564,6 +28601,7 @@ var require_httpClient = __commonJS({
|
|
|
28564
28601
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
28565
28602
|
};
|
|
28566
28603
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
28604
|
+
exports2.newHttpClient = void 0;
|
|
28567
28605
|
var axios_1 = __importDefault(require_axios2());
|
|
28568
28606
|
var connection_1 = require_connection();
|
|
28569
28607
|
var https_1 = __importDefault(require("https"));
|
|
@@ -29857,7 +29895,7 @@ var require_source = __commonJS({
|
|
|
29857
29895
|
"../../node_modules/chalk/source/index.js"(exports2, module2) {
|
|
29858
29896
|
"use strict";
|
|
29859
29897
|
var ansiStyles = require_ansi_styles();
|
|
29860
|
-
var { stdout: stdoutColor, stderr: stderrColor } =
|
|
29898
|
+
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
29861
29899
|
var {
|
|
29862
29900
|
stringReplaceAll,
|
|
29863
29901
|
stringEncaseCRLFWithFirstIndex
|
|
@@ -30035,6 +30073,7 @@ var require_message = __commonJS({
|
|
|
30035
30073
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
30036
30074
|
};
|
|
30037
30075
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
30076
|
+
exports2.printErrorDetails = exports2.prettyPrintError = exports2.prettyPrintMessage = void 0;
|
|
30038
30077
|
var chalk_1 = __importDefault(require_source());
|
|
30039
30078
|
function prettyPrintMessage(msg, log3, logData) {
|
|
30040
30079
|
logLevel(msg.severity, msg.message, log3);
|
|
@@ -30108,6 +30147,7 @@ var require_patchTls = __commonJS({
|
|
|
30108
30147
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
30109
30148
|
};
|
|
30110
30149
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
30150
|
+
exports2.TlsPatch = void 0;
|
|
30111
30151
|
var tls_1 = __importDefault(require("tls"));
|
|
30112
30152
|
var static_1 = require_static();
|
|
30113
30153
|
var TlsPatch = class {
|
|
@@ -31110,6 +31150,7 @@ var require_utils7 = __commonJS({
|
|
|
31110
31150
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
31111
31151
|
};
|
|
31112
31152
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31153
|
+
exports2.hasServices = exports2.isSystemNameValid = exports2.getBTPSystem = exports2.getOnPremSystem = exports2.guessAuthType = exports2.xmlToJson = void 0;
|
|
31113
31154
|
var fast_xml_parser_1 = __importDefault(require_parser());
|
|
31114
31155
|
var config_1 = require_config();
|
|
31115
31156
|
var __1 = require_dist3();
|
|
@@ -31219,6 +31260,7 @@ var require_oDataClient = __commonJS({
|
|
|
31219
31260
|
"../lib/odata-client/dist/client/oDataClient.js"(exports2) {
|
|
31220
31261
|
"use strict";
|
|
31221
31262
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31263
|
+
exports2.ODataClient = void 0;
|
|
31222
31264
|
var config_1 = require_config();
|
|
31223
31265
|
var ux_common_utils_1 = require_dist();
|
|
31224
31266
|
var httpClient_1 = require_httpClient();
|
|
@@ -31320,6 +31362,7 @@ var require_constants2 = __commonJS({
|
|
|
31320
31362
|
"../lib/odata-client/dist/constants.js"(exports2) {
|
|
31321
31363
|
"use strict";
|
|
31322
31364
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31365
|
+
exports2.DEFAULT_SERVICE_PATH = exports2.abapUrlReplaceMap = exports2.API_HUB_API_KEY = void 0;
|
|
31323
31366
|
exports2.API_HUB_API_KEY = "API_HUB_API_KEY";
|
|
31324
31367
|
exports2.abapUrlReplaceMap = /* @__PURE__ */ new Map([
|
|
31325
31368
|
[/\.abap\./, ".abap-web."],
|
|
@@ -31335,10 +31378,22 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
31335
31378
|
"../lib/odata-client/dist/client/ui5AbapRepository.js"(exports2) {
|
|
31336
31379
|
"use strict";
|
|
31337
31380
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31381
|
+
exports2.Ui5AbapRepository = void 0;
|
|
31338
31382
|
var oDataClient_1 = require_oDataClient();
|
|
31339
31383
|
var fs_1 = require("fs");
|
|
31340
31384
|
var message_1 = require_message();
|
|
31341
31385
|
var constants_1 = require_constants2();
|
|
31386
|
+
var xmlReplaceMap = {
|
|
31387
|
+
"&": "&",
|
|
31388
|
+
'"': """,
|
|
31389
|
+
"'": "'",
|
|
31390
|
+
"<": "<",
|
|
31391
|
+
">": ">"
|
|
31392
|
+
};
|
|
31393
|
+
var xmlReplaceRegex = /[<>&"']/g;
|
|
31394
|
+
function encodeXmlValue(xmlValue) {
|
|
31395
|
+
return xmlValue.replace(xmlReplaceRegex, (c) => xmlReplaceMap[c]);
|
|
31396
|
+
}
|
|
31342
31397
|
var Ui5AbapRepository2 = class extends oDataClient_1.ODataClient {
|
|
31343
31398
|
constructor({ system, credentials = void 0, log: log3 = console, connection = void 0, ignoreCertError, postConnectionCallback }) {
|
|
31344
31399
|
var _a2;
|
|
@@ -31424,7 +31479,8 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
31424
31479
|
createPayload(archive, name, description, abapPackage, httpClient) {
|
|
31425
31480
|
const base64Data = fs_1.readFileSync(archive, { encoding: "base64" });
|
|
31426
31481
|
const time = new Date().toISOString();
|
|
31427
|
-
|
|
31482
|
+
const escapedName = encodeXmlValue(name);
|
|
31483
|
+
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>`;
|
|
31428
31484
|
}
|
|
31429
31485
|
async updateRepoRequest(isExisting, appName, httpClient, payload, config2, tryCount = 1) {
|
|
31430
31486
|
var _a2, _b;
|
|
@@ -31477,6 +31533,7 @@ var require_common5 = __commonJS({
|
|
|
31477
31533
|
"../lib/odata-client/dist/client/catalog/common.js"(exports2) {
|
|
31478
31534
|
"use strict";
|
|
31479
31535
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31536
|
+
exports2.CATALOG_REQ_TYPE = exports2.Catalog = exports2.ODataVersion = exports2.ODATA_SKIP_QUERY = exports2.ODATA_COUNT_QUERY = exports2.ATO_CATALOG_URL_PATH = exports2.V2_ODATA_CATALOG_FILTER_FOR_S4_HANA_SERVICES = exports2.V4_RECOMMENDED_SERVICES_PATH_PROD = exports2.V4_SERVICES_PATH_PROD = exports2.V4_SERVICES_PATH_DEV = exports2.V2_RECOMMENDED_SERVICES_PATH = exports2.V2_SERVICES_PATH = exports2.V4_CATALOG_URL_PATH_PROD = exports2.V4_CATALOG_URL_PATH_DEV = exports2.V2_CATALOG_URL_PATH = void 0;
|
|
31480
31537
|
var oDataClient_1 = require_oDataClient();
|
|
31481
31538
|
exports2.V2_CATALOG_URL_PATH = "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2";
|
|
31482
31539
|
exports2.V4_CATALOG_URL_PATH_DEV = "/sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0001";
|
|
@@ -31511,6 +31568,7 @@ var require_atoCatalog = __commonJS({
|
|
|
31511
31568
|
"../lib/odata-client/dist/client/catalog/atoCatalog.js"(exports2) {
|
|
31512
31569
|
"use strict";
|
|
31513
31570
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31571
|
+
exports2.AtoCatalog = void 0;
|
|
31514
31572
|
var utils_1 = require_utils7();
|
|
31515
31573
|
var oDataClient_1 = require_oDataClient();
|
|
31516
31574
|
var common_1 = require_common5();
|
|
@@ -31566,6 +31624,7 @@ var require_utils8 = __commonJS({
|
|
|
31566
31624
|
"../lib/odata-client/dist/client/catalog/utils.js"(exports2) {
|
|
31567
31625
|
"use strict";
|
|
31568
31626
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31627
|
+
exports2.isS4HanaCloudSystem = void 0;
|
|
31569
31628
|
function isS4HanaCloudSystem(atoSettings) {
|
|
31570
31629
|
return atoSettings.tenantType === "CUSTOMER" && atoSettings.operationsType === "C" && atoSettings.isExtensibilityDevSystem === true && atoSettings.devPrefix !== "" && atoSettings.devPackage !== "";
|
|
31571
31630
|
}
|
|
@@ -31578,6 +31637,7 @@ var require_v2Catalog = __commonJS({
|
|
|
31578
31637
|
"../lib/odata-client/dist/client/catalog/v2Catalog.js"(exports2) {
|
|
31579
31638
|
"use strict";
|
|
31580
31639
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31640
|
+
exports2.V2Catalog = void 0;
|
|
31581
31641
|
var uaaOauth_1 = require_uaaOauth();
|
|
31582
31642
|
var atoCatalog_1 = require_atoCatalog();
|
|
31583
31643
|
var common_1 = require_common5();
|
|
@@ -31685,6 +31745,7 @@ var require_v4Catalog = __commonJS({
|
|
|
31685
31745
|
"../lib/odata-client/dist/client/catalog/v4Catalog.js"(exports2) {
|
|
31686
31746
|
"use strict";
|
|
31687
31747
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31748
|
+
exports2.V4Catalog = void 0;
|
|
31688
31749
|
var uaaOauth_1 = require_uaaOauth();
|
|
31689
31750
|
var common_1 = require_common5();
|
|
31690
31751
|
var V4Catalog = class extends common_1.Catalog {
|
|
@@ -31738,18 +31799,30 @@ var require_v4Catalog = __commonJS({
|
|
|
31738
31799
|
var require_catalog = __commonJS({
|
|
31739
31800
|
"../lib/odata-client/dist/client/catalog/index.js"(exports2) {
|
|
31740
31801
|
"use strict";
|
|
31741
|
-
function
|
|
31802
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
31803
|
+
if (k2 === void 0)
|
|
31804
|
+
k2 = k;
|
|
31805
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
31806
|
+
return m[k];
|
|
31807
|
+
} });
|
|
31808
|
+
} : function(o, m, k, k2) {
|
|
31809
|
+
if (k2 === void 0)
|
|
31810
|
+
k2 = k;
|
|
31811
|
+
o[k2] = m[k];
|
|
31812
|
+
});
|
|
31813
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
31742
31814
|
for (var p in m)
|
|
31743
|
-
if (!
|
|
31744
|
-
|
|
31745
|
-
}
|
|
31815
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
31816
|
+
__createBinding(exports3, m, p);
|
|
31817
|
+
};
|
|
31746
31818
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31819
|
+
exports2.getCatalog = void 0;
|
|
31747
31820
|
var __1 = require_client();
|
|
31748
|
-
|
|
31749
|
-
|
|
31750
|
-
|
|
31751
|
-
|
|
31752
|
-
|
|
31821
|
+
__exportStar(require_common5(), exports2);
|
|
31822
|
+
__exportStar(require_atoCatalog(), exports2);
|
|
31823
|
+
__exportStar(require_v2Catalog(), exports2);
|
|
31824
|
+
__exportStar(require_v4Catalog(), exports2);
|
|
31825
|
+
__exportStar(require_utils8(), exports2);
|
|
31753
31826
|
function getCatalog(options2) {
|
|
31754
31827
|
return options2.odataVersion === __1.ODataVersion.v4 ? new __1.V4Catalog(options2) : new __1.V2Catalog(options2);
|
|
31755
31828
|
}
|
|
@@ -31761,17 +31834,28 @@ var require_catalog = __commonJS({
|
|
|
31761
31834
|
var require_client = __commonJS({
|
|
31762
31835
|
"../lib/odata-client/dist/client/index.js"(exports2) {
|
|
31763
31836
|
"use strict";
|
|
31764
|
-
function
|
|
31837
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
31838
|
+
if (k2 === void 0)
|
|
31839
|
+
k2 = k;
|
|
31840
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
31841
|
+
return m[k];
|
|
31842
|
+
} });
|
|
31843
|
+
} : function(o, m, k, k2) {
|
|
31844
|
+
if (k2 === void 0)
|
|
31845
|
+
k2 = k;
|
|
31846
|
+
o[k2] = m[k];
|
|
31847
|
+
});
|
|
31848
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
31765
31849
|
for (var p in m)
|
|
31766
|
-
if (!
|
|
31767
|
-
|
|
31768
|
-
}
|
|
31850
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
31851
|
+
__createBinding(exports3, m, p);
|
|
31852
|
+
};
|
|
31769
31853
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31770
|
-
|
|
31771
|
-
|
|
31772
|
-
|
|
31773
|
-
|
|
31774
|
-
|
|
31854
|
+
__exportStar(require_oDataClient(), exports2);
|
|
31855
|
+
__exportStar(require_ui5AbapRepository(), exports2);
|
|
31856
|
+
__exportStar(require_catalog(), exports2);
|
|
31857
|
+
__exportStar(require_message(), exports2);
|
|
31858
|
+
__exportStar(require_patchTls(), exports2);
|
|
31775
31859
|
}
|
|
31776
31860
|
});
|
|
31777
31861
|
|
|
@@ -31780,6 +31864,7 @@ var require_api_hub = __commonJS({
|
|
|
31780
31864
|
"../lib/odata-client/dist/api-hub/index.js"(exports2) {
|
|
31781
31865
|
"use strict";
|
|
31782
31866
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31867
|
+
exports2.saveApiHubApiKey = exports2.getApiHubApiKey = void 0;
|
|
31783
31868
|
var config_1 = require_config();
|
|
31784
31869
|
var ux_store_1 = require_dist2();
|
|
31785
31870
|
var constants_1 = require_constants2();
|
|
@@ -31807,10 +31892,11 @@ var require_api_hub = __commonJS({
|
|
|
31807
31892
|
});
|
|
31808
31893
|
|
|
31809
31894
|
// ../lib/odata-client/dist/types.js
|
|
31810
|
-
var
|
|
31895
|
+
var require_types3 = __commonJS({
|
|
31811
31896
|
"../lib/odata-client/dist/types.js"(exports2) {
|
|
31812
31897
|
"use strict";
|
|
31813
31898
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31899
|
+
exports2.SystemType = void 0;
|
|
31814
31900
|
var SystemType;
|
|
31815
31901
|
(function(SystemType2) {
|
|
31816
31902
|
SystemType2["OnPremise"] = "abap_onpremise";
|
|
@@ -31824,12 +31910,13 @@ var require_sapSystem = __commonJS({
|
|
|
31824
31910
|
"../lib/odata-client/dist/system/sapSystem.js"(exports2) {
|
|
31825
31911
|
"use strict";
|
|
31826
31912
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31913
|
+
exports2.stripOldSCPSuffix = exports2.SapSystem = void 0;
|
|
31827
31914
|
var ux_store_1 = require_dist2();
|
|
31828
31915
|
var __1 = require_dist3();
|
|
31829
31916
|
var client_1 = require_client();
|
|
31830
31917
|
var config_1 = require_config();
|
|
31831
31918
|
var ux_common_utils_1 = require_dist();
|
|
31832
|
-
var types_1 =
|
|
31919
|
+
var types_1 = require_types3();
|
|
31833
31920
|
var NEW_SCP_SUFFIX = " (BTP)";
|
|
31834
31921
|
var SapSystem2 = class {
|
|
31835
31922
|
constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
|
|
@@ -31861,10 +31948,19 @@ var require_sapSystem = __commonJS({
|
|
|
31861
31948
|
refreshToken: s.refreshToken
|
|
31862
31949
|
} : void 0;
|
|
31863
31950
|
const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || __1.guessAuthType({ credentials, fallback: false });
|
|
31864
|
-
return new SapSystem2(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName);
|
|
31951
|
+
return new SapSystem2(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName, void 0, void 0);
|
|
31865
31952
|
}
|
|
31866
|
-
|
|
31867
|
-
return
|
|
31953
|
+
getConnection() {
|
|
31954
|
+
return this.connection;
|
|
31955
|
+
}
|
|
31956
|
+
clone({ retainConnection } = { retainConnection: false }) {
|
|
31957
|
+
var _a2;
|
|
31958
|
+
const copy3 = SapSystem2.fromSerialized(this.serialize());
|
|
31959
|
+
if (retainConnection) {
|
|
31960
|
+
copy3.connection = this.connection;
|
|
31961
|
+
copy3.config.destination = (_a2 = this.config) == null ? void 0 : _a2.destination;
|
|
31962
|
+
}
|
|
31963
|
+
return copy3;
|
|
31868
31964
|
}
|
|
31869
31965
|
get refreshToken() {
|
|
31870
31966
|
var _a2;
|
|
@@ -32090,6 +32186,7 @@ var require_systemStore = __commonJS({
|
|
|
32090
32186
|
"../lib/odata-client/dist/system/systemStore.js"(exports2) {
|
|
32091
32187
|
"use strict";
|
|
32092
32188
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32189
|
+
exports2.getSystemStore = void 0;
|
|
32093
32190
|
var sapSystem_1 = require_sapSystem();
|
|
32094
32191
|
var ux_store_1 = require_dist2();
|
|
32095
32192
|
var DefaultImplementation = class {
|
|
@@ -32137,9 +32234,10 @@ var require_systemStore = __commonJS({
|
|
|
32137
32234
|
await this.storeService.partialUpdate(new ux_store_1.BackendSystemKey({ url, client }), update);
|
|
32138
32235
|
}
|
|
32139
32236
|
};
|
|
32140
|
-
|
|
32237
|
+
var getSystemStore = async (log3 = console) => {
|
|
32141
32238
|
return DefaultImplementation.createInstance(log3);
|
|
32142
32239
|
};
|
|
32240
|
+
exports2.getSystemStore = getSystemStore;
|
|
32143
32241
|
}
|
|
32144
32242
|
});
|
|
32145
32243
|
|
|
@@ -32148,10 +32246,13 @@ var require_system = __commonJS({
|
|
|
32148
32246
|
"../lib/odata-client/dist/system/index.js"(exports2) {
|
|
32149
32247
|
"use strict";
|
|
32150
32248
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32249
|
+
exports2.SapSystem = exports2.deleteSapSystem = exports2.saveSapSystem = exports2.newSapSystemForDestinaton = exports2.newS4HCSystem = exports2.newSapSystemForSteampunk = exports2.newSapSystemForServiceUrl = exports2.newSapSystem = exports2.getSapSystem = exports2.isSystemNameInUse = exports2.listSAPSystems = void 0;
|
|
32151
32250
|
var connection_1 = require_connection();
|
|
32152
32251
|
var ux_common_utils_1 = require_dist();
|
|
32153
32252
|
var sapSystem_1 = require_sapSystem();
|
|
32154
|
-
exports2
|
|
32253
|
+
Object.defineProperty(exports2, "SapSystem", { enumerable: true, get: function() {
|
|
32254
|
+
return sapSystem_1.SapSystem;
|
|
32255
|
+
} });
|
|
32155
32256
|
var systemStore_1 = require_systemStore();
|
|
32156
32257
|
var url_1 = require("url");
|
|
32157
32258
|
var __1 = require_dist3();
|
|
@@ -32304,18 +32405,29 @@ var require_system = __commonJS({
|
|
|
32304
32405
|
var require_dist3 = __commonJS({
|
|
32305
32406
|
"../lib/odata-client/dist/index.js"(exports2) {
|
|
32306
32407
|
"use strict";
|
|
32307
|
-
function
|
|
32408
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
32409
|
+
if (k2 === void 0)
|
|
32410
|
+
k2 = k;
|
|
32411
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
32412
|
+
return m[k];
|
|
32413
|
+
} });
|
|
32414
|
+
} : function(o, m, k, k2) {
|
|
32415
|
+
if (k2 === void 0)
|
|
32416
|
+
k2 = k;
|
|
32417
|
+
o[k2] = m[k];
|
|
32418
|
+
});
|
|
32419
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
32308
32420
|
for (var p in m)
|
|
32309
|
-
if (!
|
|
32310
|
-
|
|
32311
|
-
}
|
|
32421
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
32422
|
+
__createBinding(exports3, m, p);
|
|
32423
|
+
};
|
|
32312
32424
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32313
|
-
|
|
32314
|
-
|
|
32315
|
-
|
|
32316
|
-
|
|
32317
|
-
|
|
32318
|
-
|
|
32425
|
+
__exportStar(require_client(), exports2);
|
|
32426
|
+
__exportStar(require_utils7(), exports2);
|
|
32427
|
+
__exportStar(require_config(), exports2);
|
|
32428
|
+
__exportStar(require_connection(), exports2);
|
|
32429
|
+
__exportStar(require_api_hub(), exports2);
|
|
32430
|
+
__exportStar(require_system(), exports2);
|
|
32319
32431
|
}
|
|
32320
32432
|
});
|
|
32321
32433
|
|
|
@@ -49345,6 +49457,7 @@ var require_application = __commonJS({
|
|
|
49345
49457
|
"../lib/sapux-spec/dist/application.js"(exports2) {
|
|
49346
49458
|
"use strict";
|
|
49347
49459
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49460
|
+
exports2.AppPomXmlArtifactIdPlaceholder = exports2.AppType = exports2.RootIntent = exports2.PageHeaderType = exports2.OdataVersion = exports2.FioriElementsVersion = void 0;
|
|
49348
49461
|
var FioriElementsVersion;
|
|
49349
49462
|
(function(FioriElementsVersion2) {
|
|
49350
49463
|
FioriElementsVersion2["v2"] = "v2";
|
|
@@ -49374,11 +49487,20 @@ var require_application = __commonJS({
|
|
|
49374
49487
|
}
|
|
49375
49488
|
});
|
|
49376
49489
|
|
|
49490
|
+
// ../lib/sapux-spec/dist/controls/filterBar.js
|
|
49491
|
+
var require_filterBar = __commonJS({
|
|
49492
|
+
"../lib/sapux-spec/dist/controls/filterBar.js"(exports2) {
|
|
49493
|
+
"use strict";
|
|
49494
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49495
|
+
}
|
|
49496
|
+
});
|
|
49497
|
+
|
|
49377
49498
|
// ../lib/sapux-spec/dist/controls/table.js
|
|
49378
49499
|
var require_table = __commonJS({
|
|
49379
49500
|
"../lib/sapux-spec/dist/controls/table.js"(exports2) {
|
|
49380
49501
|
"use strict";
|
|
49381
49502
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49503
|
+
exports2.TableMode = exports2.HAlign = void 0;
|
|
49382
49504
|
var HAlign;
|
|
49383
49505
|
(function(HAlign2) {
|
|
49384
49506
|
HAlign2["initial"] = "Initial";
|
|
@@ -49400,17 +49522,56 @@ var require_table = __commonJS({
|
|
|
49400
49522
|
}
|
|
49401
49523
|
});
|
|
49402
49524
|
|
|
49525
|
+
// ../lib/sapux-spec/dist/controls/objectHeader.js
|
|
49526
|
+
var require_objectHeader = __commonJS({
|
|
49527
|
+
"../lib/sapux-spec/dist/controls/objectHeader.js"(exports2) {
|
|
49528
|
+
"use strict";
|
|
49529
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49530
|
+
}
|
|
49531
|
+
});
|
|
49532
|
+
|
|
49533
|
+
// ../lib/sapux-spec/dist/controls/chart.js
|
|
49534
|
+
var require_chart = __commonJS({
|
|
49535
|
+
"../lib/sapux-spec/dist/controls/chart.js"(exports2) {
|
|
49536
|
+
"use strict";
|
|
49537
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49538
|
+
}
|
|
49539
|
+
});
|
|
49540
|
+
|
|
49541
|
+
// ../lib/sapux-spec/dist/controls/facets.js
|
|
49542
|
+
var require_facets = __commonJS({
|
|
49543
|
+
"../lib/sapux-spec/dist/controls/facets.js"(exports2) {
|
|
49544
|
+
"use strict";
|
|
49545
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49546
|
+
}
|
|
49547
|
+
});
|
|
49548
|
+
|
|
49403
49549
|
// ../lib/sapux-spec/dist/controls/index.js
|
|
49404
49550
|
var require_controls = __commonJS({
|
|
49405
49551
|
"../lib/sapux-spec/dist/controls/index.js"(exports2) {
|
|
49406
49552
|
"use strict";
|
|
49407
|
-
function
|
|
49553
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
49554
|
+
if (k2 === void 0)
|
|
49555
|
+
k2 = k;
|
|
49556
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
49557
|
+
return m[k];
|
|
49558
|
+
} });
|
|
49559
|
+
} : function(o, m, k, k2) {
|
|
49560
|
+
if (k2 === void 0)
|
|
49561
|
+
k2 = k;
|
|
49562
|
+
o[k2] = m[k];
|
|
49563
|
+
});
|
|
49564
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
49408
49565
|
for (var p in m)
|
|
49409
|
-
if (!
|
|
49410
|
-
|
|
49411
|
-
}
|
|
49566
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
49567
|
+
__createBinding(exports3, m, p);
|
|
49568
|
+
};
|
|
49412
49569
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49413
|
-
|
|
49570
|
+
__exportStar(require_filterBar(), exports2);
|
|
49571
|
+
__exportStar(require_table(), exports2);
|
|
49572
|
+
__exportStar(require_objectHeader(), exports2);
|
|
49573
|
+
__exportStar(require_chart(), exports2);
|
|
49574
|
+
__exportStar(require_facets(), exports2);
|
|
49414
49575
|
}
|
|
49415
49576
|
});
|
|
49416
49577
|
|
|
@@ -49419,6 +49580,7 @@ var require_page = __commonJS({
|
|
|
49419
49580
|
"../lib/sapux-spec/dist/pages/page.js"(exports2) {
|
|
49420
49581
|
"use strict";
|
|
49421
49582
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49583
|
+
exports2.PageType = void 0;
|
|
49422
49584
|
var PageType;
|
|
49423
49585
|
(function(PageType2) {
|
|
49424
49586
|
PageType2["ObjectPage"] = "ObjectPage";
|
|
@@ -49434,13 +49596,48 @@ var require_page = __commonJS({
|
|
|
49434
49596
|
var require_pages = __commonJS({
|
|
49435
49597
|
"../lib/sapux-spec/dist/pages/index.js"(exports2) {
|
|
49436
49598
|
"use strict";
|
|
49437
|
-
function
|
|
49599
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
49600
|
+
if (k2 === void 0)
|
|
49601
|
+
k2 = k;
|
|
49602
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
49603
|
+
return m[k];
|
|
49604
|
+
} });
|
|
49605
|
+
} : function(o, m, k, k2) {
|
|
49606
|
+
if (k2 === void 0)
|
|
49607
|
+
k2 = k;
|
|
49608
|
+
o[k2] = m[k];
|
|
49609
|
+
});
|
|
49610
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
49438
49611
|
for (var p in m)
|
|
49439
|
-
if (!
|
|
49440
|
-
|
|
49441
|
-
}
|
|
49612
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
49613
|
+
__createBinding(exports3, m, p);
|
|
49614
|
+
};
|
|
49615
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49616
|
+
__exportStar(require_page(), exports2);
|
|
49617
|
+
}
|
|
49618
|
+
});
|
|
49619
|
+
|
|
49620
|
+
// ../lib/sapux-spec/dist/webapp/controllers.js
|
|
49621
|
+
var require_controllers = __commonJS({
|
|
49622
|
+
"../lib/sapux-spec/dist/webapp/controllers.js"(exports2) {
|
|
49623
|
+
"use strict";
|
|
49624
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49625
|
+
}
|
|
49626
|
+
});
|
|
49627
|
+
|
|
49628
|
+
// ../lib/sapux-spec/dist/webapp/flex.js
|
|
49629
|
+
var require_flex = __commonJS({
|
|
49630
|
+
"../lib/sapux-spec/dist/webapp/flex.js"(exports2) {
|
|
49631
|
+
"use strict";
|
|
49632
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49633
|
+
}
|
|
49634
|
+
});
|
|
49635
|
+
|
|
49636
|
+
// ../lib/sapux-spec/dist/webapp/manifest/sapUiGeneric.js
|
|
49637
|
+
var require_sapUiGeneric = __commonJS({
|
|
49638
|
+
"../lib/sapux-spec/dist/webapp/manifest/sapUiGeneric.js"(exports2) {
|
|
49639
|
+
"use strict";
|
|
49442
49640
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49443
|
-
__export2(require_page());
|
|
49444
49641
|
}
|
|
49445
49642
|
});
|
|
49446
49643
|
|
|
@@ -49449,6 +49646,7 @@ var require_sapUi5 = __commonJS({
|
|
|
49449
49646
|
"../lib/sapux-spec/dist/webapp/manifest/sapUi5.js"(exports2) {
|
|
49450
49647
|
"use strict";
|
|
49451
49648
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49649
|
+
exports2.ViewTypes = exports2.FlexibleColumnLayoutType = exports2.FlexibleColumnLayoutAggregations = exports2.FIORI_FCL_ROOT_ID = exports2.FIORI_FCL_ROOT_VIEW_NAME = exports2.FIORI_FCL_ROUTER_CLASS = void 0;
|
|
49452
49650
|
exports2.FIORI_FCL_ROUTER_CLASS = "sap.f.routing.Router";
|
|
49453
49651
|
exports2.FIORI_FCL_ROOT_VIEW_NAME = "sap.fe.templates.RootContainer.view.Fcl";
|
|
49454
49652
|
exports2.FIORI_FCL_ROOT_ID = "appRootView";
|
|
@@ -49480,17 +49678,39 @@ var require_sapUi5 = __commonJS({
|
|
|
49480
49678
|
}
|
|
49481
49679
|
});
|
|
49482
49680
|
|
|
49681
|
+
// ../lib/sapux-spec/dist/webapp/manifest/sapOvp.js
|
|
49682
|
+
var require_sapOvp = __commonJS({
|
|
49683
|
+
"../lib/sapux-spec/dist/webapp/manifest/sapOvp.js"(exports2) {
|
|
49684
|
+
"use strict";
|
|
49685
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49686
|
+
}
|
|
49687
|
+
});
|
|
49688
|
+
|
|
49483
49689
|
// ../lib/sapux-spec/dist/webapp/manifest/index.js
|
|
49484
49690
|
var require_manifest = __commonJS({
|
|
49485
49691
|
"../lib/sapux-spec/dist/webapp/manifest/index.js"(exports2) {
|
|
49486
49692
|
"use strict";
|
|
49487
|
-
function
|
|
49693
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
49694
|
+
if (k2 === void 0)
|
|
49695
|
+
k2 = k;
|
|
49696
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
49697
|
+
return m[k];
|
|
49698
|
+
} });
|
|
49699
|
+
} : function(o, m, k, k2) {
|
|
49700
|
+
if (k2 === void 0)
|
|
49701
|
+
k2 = k;
|
|
49702
|
+
o[k2] = m[k];
|
|
49703
|
+
});
|
|
49704
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
49488
49705
|
for (var p in m)
|
|
49489
|
-
if (!
|
|
49490
|
-
|
|
49491
|
-
}
|
|
49706
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
49707
|
+
__createBinding(exports3, m, p);
|
|
49708
|
+
};
|
|
49492
49709
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49493
|
-
|
|
49710
|
+
exports2.DataSourceType = void 0;
|
|
49711
|
+
__exportStar(require_sapUiGeneric(), exports2);
|
|
49712
|
+
__exportStar(require_sapUi5(), exports2);
|
|
49713
|
+
__exportStar(require_sapOvp(), exports2);
|
|
49494
49714
|
var DataSourceType;
|
|
49495
49715
|
(function(DataSourceType2) {
|
|
49496
49716
|
DataSourceType2["OData"] = "OData";
|
|
@@ -49499,17 +49719,39 @@ var require_manifest = __commonJS({
|
|
|
49499
49719
|
}
|
|
49500
49720
|
});
|
|
49501
49721
|
|
|
49722
|
+
// ../lib/sapux-spec/dist/webapp/metadata.js
|
|
49723
|
+
var require_metadata = __commonJS({
|
|
49724
|
+
"../lib/sapux-spec/dist/webapp/metadata.js"(exports2) {
|
|
49725
|
+
"use strict";
|
|
49726
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49727
|
+
}
|
|
49728
|
+
});
|
|
49729
|
+
|
|
49502
49730
|
// ../lib/sapux-spec/dist/webapp/index.js
|
|
49503
49731
|
var require_webapp = __commonJS({
|
|
49504
49732
|
"../lib/sapux-spec/dist/webapp/index.js"(exports2) {
|
|
49505
49733
|
"use strict";
|
|
49506
|
-
function
|
|
49734
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
49735
|
+
if (k2 === void 0)
|
|
49736
|
+
k2 = k;
|
|
49737
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
49738
|
+
return m[k];
|
|
49739
|
+
} });
|
|
49740
|
+
} : function(o, m, k, k2) {
|
|
49741
|
+
if (k2 === void 0)
|
|
49742
|
+
k2 = k;
|
|
49743
|
+
o[k2] = m[k];
|
|
49744
|
+
});
|
|
49745
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
49507
49746
|
for (var p in m)
|
|
49508
|
-
if (!
|
|
49509
|
-
|
|
49510
|
-
}
|
|
49747
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
49748
|
+
__createBinding(exports3, m, p);
|
|
49749
|
+
};
|
|
49511
49750
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49512
|
-
|
|
49751
|
+
__exportStar(require_controllers(), exports2);
|
|
49752
|
+
__exportStar(require_flex(), exports2);
|
|
49753
|
+
__exportStar(require_manifest(), exports2);
|
|
49754
|
+
__exportStar(require_metadata(), exports2);
|
|
49513
49755
|
}
|
|
49514
49756
|
});
|
|
49515
49757
|
|
|
@@ -49518,6 +49760,7 @@ var require_constants3 = __commonJS({
|
|
|
49518
49760
|
"../lib/sapux-spec/dist/constants.js"(exports2) {
|
|
49519
49761
|
"use strict";
|
|
49520
49762
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49763
|
+
exports2.SchemeName = exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.FileName = exports2.DirName = void 0;
|
|
49521
49764
|
var os_1 = require("os");
|
|
49522
49765
|
var path_1 = require("path");
|
|
49523
49766
|
var DirName2;
|
|
@@ -49565,9 +49808,10 @@ var require_constants3 = __commonJS({
|
|
|
49565
49808
|
FioriToolsSettings2["dir"] = ".fioritools";
|
|
49566
49809
|
FioriToolsSettings2["migrationSettingsFile"] = "migrationSettings.json";
|
|
49567
49810
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
49568
|
-
|
|
49811
|
+
var getFioriToolsDirectory = () => {
|
|
49569
49812
|
return path_1.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
49570
49813
|
};
|
|
49814
|
+
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
49571
49815
|
var SchemeName;
|
|
49572
49816
|
(function(SchemeName2) {
|
|
49573
49817
|
SchemeName2["Ftfs"] = "ftfs";
|
|
@@ -49580,6 +49824,7 @@ var require_package = __commonJS({
|
|
|
49580
49824
|
"../lib/sapux-spec/dist/package.js"(exports2) {
|
|
49581
49825
|
"use strict";
|
|
49582
49826
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49827
|
+
exports2.UI5FlexLayer = void 0;
|
|
49583
49828
|
var UI5FlexLayer;
|
|
49584
49829
|
(function(UI5FlexLayer2) {
|
|
49585
49830
|
UI5FlexLayer2["VENDOR"] = "VENDOR";
|
|
@@ -49593,6 +49838,7 @@ var require_project = __commonJS({
|
|
|
49593
49838
|
"../lib/sapux-spec/dist/project.js"(exports2) {
|
|
49594
49839
|
"use strict";
|
|
49595
49840
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49841
|
+
exports2.DetailedProjectType = exports2.ProjectType = void 0;
|
|
49596
49842
|
var ProjectType;
|
|
49597
49843
|
(function(ProjectType2) {
|
|
49598
49844
|
ProjectType2["Cap"] = "Cap";
|
|
@@ -49611,22 +49857,35 @@ var require_project = __commonJS({
|
|
|
49611
49857
|
var require_dist6 = __commonJS({
|
|
49612
49858
|
"../lib/sapux-spec/dist/index.js"(exports2) {
|
|
49613
49859
|
"use strict";
|
|
49614
|
-
function
|
|
49860
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
49861
|
+
if (k2 === void 0)
|
|
49862
|
+
k2 = k;
|
|
49863
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
49864
|
+
return m[k];
|
|
49865
|
+
} });
|
|
49866
|
+
} : function(o, m, k, k2) {
|
|
49867
|
+
if (k2 === void 0)
|
|
49868
|
+
k2 = k;
|
|
49869
|
+
o[k2] = m[k];
|
|
49870
|
+
});
|
|
49871
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
49615
49872
|
for (var p in m)
|
|
49616
|
-
if (!
|
|
49617
|
-
|
|
49618
|
-
}
|
|
49873
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
49874
|
+
__createBinding(exports3, m, p);
|
|
49875
|
+
};
|
|
49619
49876
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49620
|
-
|
|
49621
|
-
|
|
49622
|
-
|
|
49623
|
-
|
|
49624
|
-
|
|
49625
|
-
|
|
49626
|
-
|
|
49627
|
-
|
|
49877
|
+
exports2.location = void 0;
|
|
49878
|
+
__exportStar(require_application(), exports2);
|
|
49879
|
+
__exportStar(require_controls(), exports2);
|
|
49880
|
+
__exportStar(require_pages(), exports2);
|
|
49881
|
+
__exportStar(require_webapp(), exports2);
|
|
49882
|
+
__exportStar(require_constants3(), exports2);
|
|
49883
|
+
__exportStar(require_package(), exports2);
|
|
49884
|
+
__exportStar(require_project(), exports2);
|
|
49885
|
+
var location = () => {
|
|
49628
49886
|
return __dirname.replace(/\\/g, "/");
|
|
49629
49887
|
};
|
|
49888
|
+
exports2.location = location;
|
|
49630
49889
|
}
|
|
49631
49890
|
});
|
|
49632
49891
|
|
|
@@ -49635,13 +49894,15 @@ var require_system2 = __commonJS({
|
|
|
49635
49894
|
"../lib/telemetry/dist/src/util/system.js"(exports2) {
|
|
49636
49895
|
"use strict";
|
|
49637
49896
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49638
|
-
exports2.processMatchingPaths =
|
|
49897
|
+
exports2.processMatchingPaths = void 0;
|
|
49898
|
+
var processMatchingPaths = (matchingPaths) => {
|
|
49639
49899
|
const matchPaths = matchingPaths;
|
|
49640
49900
|
matchPaths.forEach((matchingPath) => {
|
|
49641
49901
|
matchingPath.patterns = matchingPath.patterns.map((pattern) => new RegExp(`[\\w\\s-./:@!]+${pattern}`, "gi"));
|
|
49642
49902
|
});
|
|
49643
49903
|
return matchPaths;
|
|
49644
49904
|
};
|
|
49905
|
+
exports2.processMatchingPaths = processMatchingPaths;
|
|
49645
49906
|
}
|
|
49646
49907
|
});
|
|
49647
49908
|
|
|
@@ -49653,17 +49914,19 @@ var require_cloudDebugger = __commonJS({
|
|
|
49653
49914
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
49654
49915
|
};
|
|
49655
49916
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49917
|
+
exports2.debug = void 0;
|
|
49656
49918
|
var fs_1 = __importDefault(require("fs"));
|
|
49657
49919
|
var os_1 = __importDefault(require("os"));
|
|
49658
49920
|
var path_1 = __importDefault(require("path"));
|
|
49659
49921
|
var homedir = os_1.default.homedir();
|
|
49660
49922
|
var debugFilePath = path_1.default.join(homedir, "theiadebug.txt");
|
|
49661
|
-
|
|
49923
|
+
var debug = (message, active = false) => {
|
|
49662
49924
|
if (active) {
|
|
49663
49925
|
fs_1.default.appendFileSync(debugFilePath, `${message}
|
|
49664
49926
|
`, "utf8");
|
|
49665
49927
|
}
|
|
49666
49928
|
};
|
|
49929
|
+
exports2.debug = debug;
|
|
49667
49930
|
}
|
|
49668
49931
|
});
|
|
49669
49932
|
|
|
@@ -49672,14 +49935,18 @@ var require_EventName = __commonJS({
|
|
|
49672
49935
|
"../lib/telemetry/dist/src/client/model/EventName.js"(exports2) {
|
|
49673
49936
|
"use strict";
|
|
49674
49937
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49938
|
+
exports2.EventName = void 0;
|
|
49675
49939
|
var EventName2;
|
|
49676
49940
|
(function(EventName3) {
|
|
49677
49941
|
EventName3["Test"] = "test";
|
|
49678
49942
|
EventName3["TELEMETRY_SETTINGS_INIT_FAILED"] = "TELEMETRY_SETTINGS_INIT_FAILED";
|
|
49679
49943
|
EventName3["DISABLE_TELEMETRY"] = "DISABLE_TELEMETRY";
|
|
49680
|
-
EventName3["
|
|
49681
|
-
EventName3["
|
|
49682
|
-
EventName3["
|
|
49944
|
+
EventName3["GD_GUIDE_ACTION"] = "GUIDE_ACTION";
|
|
49945
|
+
EventName3["GD_PANEL_LOAD"] = "PANEL_LOAD";
|
|
49946
|
+
EventName3["GD_LAUNCH"] = "LAUNCH_GD";
|
|
49947
|
+
EventName3["GD_SIDE_BY_SIDE"] = "GD_SIDE_BY_SIDE";
|
|
49948
|
+
EventName3["GD_WIZARD"] = "GD_WIZARD";
|
|
49949
|
+
EventName3["GD_DESCMODE"] = "GD_DESCMODE";
|
|
49683
49950
|
EventName3["PAGEMAP"] = "PAGEMAP";
|
|
49684
49951
|
EventName3["APP_ACTIONS"] = "ACTIONS";
|
|
49685
49952
|
EventName3["PAGE_EDITOR"] = "PAGE_EDITOR";
|
|
@@ -61361,7 +61628,7 @@ var require_package5 = __commonJS({
|
|
|
61361
61628
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
61362
61629
|
module2.exports = {
|
|
61363
61630
|
name: "@sap/ux-telemetry",
|
|
61364
|
-
version: "1.7.
|
|
61631
|
+
version: "1.7.4",
|
|
61365
61632
|
description: "SAP Fiori tools telemetry library",
|
|
61366
61633
|
main: "dist/src/index.js",
|
|
61367
61634
|
author: "SAP SE",
|
|
@@ -61386,17 +61653,17 @@ var require_package5 = __commonJS({
|
|
|
61386
61653
|
},
|
|
61387
61654
|
dependencies: {
|
|
61388
61655
|
"@sap-ux/store": "0.3.0",
|
|
61389
|
-
"@sap/ux-cds": "1.7.
|
|
61390
|
-
"@sap/ux-common-utils": "1.7.
|
|
61391
|
-
"@sap/ux-feature-toggle": "1.7.
|
|
61392
|
-
"@sap/ux-project-access": "1.7.
|
|
61656
|
+
"@sap/ux-cds": "1.7.4",
|
|
61657
|
+
"@sap/ux-common-utils": "1.7.4",
|
|
61658
|
+
"@sap/ux-feature-toggle": "1.7.4",
|
|
61659
|
+
"@sap/ux-project-access": "1.7.4",
|
|
61393
61660
|
applicationinsights: "1.4.1",
|
|
61394
61661
|
"performance-now": "2.1.0",
|
|
61395
61662
|
yaml: "2.0.0-10"
|
|
61396
61663
|
},
|
|
61397
61664
|
devDependencies: {
|
|
61398
61665
|
"ts-node": "8.5.2",
|
|
61399
|
-
typescript: "3.
|
|
61666
|
+
typescript: "4.3.5"
|
|
61400
61667
|
},
|
|
61401
61668
|
files: [
|
|
61402
61669
|
"dist/"
|
|
@@ -61432,6 +61699,7 @@ var require_telemetryClientConfig = __commonJS({
|
|
|
61432
61699
|
"../lib/telemetry/dist/src/util/telemetryClientConfig.js"(exports2) {
|
|
61433
61700
|
"use strict";
|
|
61434
61701
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61702
|
+
exports2.configAzureTelemetryClient = void 0;
|
|
61435
61703
|
function configAzureTelemetryClient(client) {
|
|
61436
61704
|
client.channel.setUseDiskRetryCaching(true);
|
|
61437
61705
|
client.addTelemetryProcessor((envelope) => {
|
|
@@ -61450,19 +61718,36 @@ var require_telemetryClientConfig = __commonJS({
|
|
|
61450
61718
|
var require_reporting = __commonJS({
|
|
61451
61719
|
"../lib/telemetry/dist/src/util/reporting.js"(exports2) {
|
|
61452
61720
|
"use strict";
|
|
61721
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
61722
|
+
if (k2 === void 0)
|
|
61723
|
+
k2 = k;
|
|
61724
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
61725
|
+
return m[k];
|
|
61726
|
+
} });
|
|
61727
|
+
} : function(o, m, k, k2) {
|
|
61728
|
+
if (k2 === void 0)
|
|
61729
|
+
k2 = k;
|
|
61730
|
+
o[k2] = m[k];
|
|
61731
|
+
});
|
|
61732
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
61733
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
61734
|
+
} : function(o, v) {
|
|
61735
|
+
o["default"] = v;
|
|
61736
|
+
});
|
|
61453
61737
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
61454
61738
|
if (mod && mod.__esModule)
|
|
61455
61739
|
return mod;
|
|
61456
61740
|
var result2 = {};
|
|
61457
61741
|
if (mod != null) {
|
|
61458
61742
|
for (var k in mod)
|
|
61459
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
61460
|
-
result2
|
|
61743
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
61744
|
+
__createBinding(result2, mod, k);
|
|
61461
61745
|
}
|
|
61462
|
-
result2
|
|
61746
|
+
__setModuleDefault(result2, mod);
|
|
61463
61747
|
return result2;
|
|
61464
61748
|
};
|
|
61465
61749
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61750
|
+
exports2.reportEnableTelemetryOnOff = exports2.reportRuntimeError = void 0;
|
|
61466
61751
|
var EventName_1 = require_EventName();
|
|
61467
61752
|
var appInsights = __importStar(require_applicationinsights());
|
|
61468
61753
|
var telemetryPackageJSON = __importStar(require_package5());
|
|
@@ -61503,7 +61788,7 @@ var require_reporting = __commonJS({
|
|
|
61503
61788
|
};
|
|
61504
61789
|
var reportingTelemetryClient = new appInsights.TelemetryClient(telemetryPackageJSON.azureInstrumentationKey);
|
|
61505
61790
|
telemetryClientConfig_1.configAzureTelemetryClient(reportingTelemetryClient);
|
|
61506
|
-
|
|
61791
|
+
var reportRuntimeError = (error3) => {
|
|
61507
61792
|
const properties = { message: error3.message };
|
|
61508
61793
|
if (error3.stack) {
|
|
61509
61794
|
const parsedStack = parseErrorStack(error3.stack);
|
|
@@ -61520,7 +61805,8 @@ var require_reporting = __commonJS({
|
|
|
61520
61805
|
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
61521
61806
|
}
|
|
61522
61807
|
};
|
|
61523
|
-
exports2.
|
|
61808
|
+
exports2.reportRuntimeError = reportRuntimeError;
|
|
61809
|
+
var reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
61524
61810
|
const telemetryEvent = {
|
|
61525
61811
|
name: EventName_1.EventName.DISABLE_TELEMETRY,
|
|
61526
61812
|
properties: {
|
|
@@ -61533,6 +61819,7 @@ var require_reporting = __commonJS({
|
|
|
61533
61819
|
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
61534
61820
|
}
|
|
61535
61821
|
};
|
|
61822
|
+
exports2.reportEnableTelemetryOnOff = reportEnableTelemetryOnOff;
|
|
61536
61823
|
}
|
|
61537
61824
|
});
|
|
61538
61825
|
|
|
@@ -61544,6 +61831,7 @@ var require_system3 = __commonJS({
|
|
|
61544
61831
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
61545
61832
|
};
|
|
61546
61833
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61834
|
+
exports2.TelemetrySystem = void 0;
|
|
61547
61835
|
var fs_1 = __importDefault(require("fs"));
|
|
61548
61836
|
var system_1 = require_system2();
|
|
61549
61837
|
var cloudDebugger_1 = require_cloudDebugger();
|
|
@@ -61656,6 +61944,7 @@ var require_client2 = __commonJS({
|
|
|
61656
61944
|
"../lib/telemetry/dist/src/client/client.js"(exports2) {
|
|
61657
61945
|
"use strict";
|
|
61658
61946
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61947
|
+
exports2.Client = void 0;
|
|
61659
61948
|
var Client = class {
|
|
61660
61949
|
constructor() {
|
|
61661
61950
|
this.applicationKey = "";
|
|
@@ -61681,6 +61970,7 @@ var require_EventHeader = __commonJS({
|
|
|
61681
61970
|
"../lib/telemetry/dist/src/client/model/EventHeader.js"(exports2) {
|
|
61682
61971
|
"use strict";
|
|
61683
61972
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61973
|
+
exports2.EventHeader = void 0;
|
|
61684
61974
|
var EventHeader = class {
|
|
61685
61975
|
constructor(extensionName, eventName) {
|
|
61686
61976
|
this.extensionName = extensionName;
|
|
@@ -61705,6 +61995,7 @@ var require_SampleRate = __commonJS({
|
|
|
61705
61995
|
"../lib/telemetry/dist/src/client/model/SampleRate.js"(exports2) {
|
|
61706
61996
|
"use strict";
|
|
61707
61997
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61998
|
+
exports2.SampleRate = void 0;
|
|
61708
61999
|
var SampleRate2;
|
|
61709
62000
|
(function(SampleRate3) {
|
|
61710
62001
|
SampleRate3[SampleRate3["OnePercent"] = 0] = "OnePercent";
|
|
@@ -61718,19 +62009,36 @@ var require_SampleRate = __commonJS({
|
|
|
61718
62009
|
var require_appInsightClient = __commonJS({
|
|
61719
62010
|
"../lib/telemetry/dist/src/client/appInsightClient.js"(exports2) {
|
|
61720
62011
|
"use strict";
|
|
62012
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
62013
|
+
if (k2 === void 0)
|
|
62014
|
+
k2 = k;
|
|
62015
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
62016
|
+
return m[k];
|
|
62017
|
+
} });
|
|
62018
|
+
} : function(o, m, k, k2) {
|
|
62019
|
+
if (k2 === void 0)
|
|
62020
|
+
k2 = k;
|
|
62021
|
+
o[k2] = m[k];
|
|
62022
|
+
});
|
|
62023
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
62024
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
62025
|
+
} : function(o, v) {
|
|
62026
|
+
o["default"] = v;
|
|
62027
|
+
});
|
|
61721
62028
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
61722
62029
|
if (mod && mod.__esModule)
|
|
61723
62030
|
return mod;
|
|
61724
62031
|
var result2 = {};
|
|
61725
62032
|
if (mod != null) {
|
|
61726
62033
|
for (var k in mod)
|
|
61727
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
61728
|
-
result2
|
|
62034
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
62035
|
+
__createBinding(result2, mod, k);
|
|
61729
62036
|
}
|
|
61730
|
-
result2
|
|
62037
|
+
__setModuleDefault(result2, mod);
|
|
61731
62038
|
return result2;
|
|
61732
62039
|
};
|
|
61733
62040
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62041
|
+
exports2.ApplicationInsightClient = void 0;
|
|
61734
62042
|
var client_1 = require_client2();
|
|
61735
62043
|
var appInsights = __importStar(require_applicationinsights());
|
|
61736
62044
|
var EventHeader_1 = require_EventHeader();
|
|
@@ -61802,10 +62110,12 @@ var require_date3 = __commonJS({
|
|
|
61802
62110
|
"../lib/telemetry/dist/src/util/date.js"(exports2) {
|
|
61803
62111
|
"use strict";
|
|
61804
62112
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61805
|
-
exports2.localDatetimeToUTC =
|
|
62113
|
+
exports2.localDatetimeToUTC = void 0;
|
|
62114
|
+
var localDatetimeToUTC = () => {
|
|
61806
62115
|
const timeInMs = new Date().getTime();
|
|
61807
62116
|
return new Date(timeInMs).toISOString();
|
|
61808
62117
|
};
|
|
62118
|
+
exports2.localDatetimeToUTC = localDatetimeToUTC;
|
|
61809
62119
|
}
|
|
61810
62120
|
});
|
|
61811
62121
|
|
|
@@ -61814,6 +62124,7 @@ var require_toolsSuiteTelemetryClient = __commonJS({
|
|
|
61814
62124
|
"../lib/telemetry/dist/src/toolsSuiteTelemetry/toolsSuiteTelemetryClient.js"(exports2) {
|
|
61815
62125
|
"use strict";
|
|
61816
62126
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62127
|
+
exports2.ToolsSuiteTelemetryClient = void 0;
|
|
61817
62128
|
var appInsightClient_1 = require_appInsightClient();
|
|
61818
62129
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
61819
62130
|
var date_1 = require_date3();
|
|
@@ -62319,6 +62630,7 @@ var require_i18n3 = __commonJS({
|
|
|
62319
62630
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
62320
62631
|
};
|
|
62321
62632
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62633
|
+
exports2.initI18n = exports2.i18n = void 0;
|
|
62322
62634
|
var i18next_1 = __importDefault((init_i18next(), __toCommonJS(i18next_exports)));
|
|
62323
62635
|
var i18n_json_1 = __importDefault(require_i18n2());
|
|
62324
62636
|
exports2.i18n = i18next_1.default.createInstance();
|
|
@@ -62736,19 +63048,36 @@ var init_esm = __esm({
|
|
|
62736
63048
|
var require_file2 = __commonJS({
|
|
62737
63049
|
"../lib/project-access/core/dist/common/file.js"(exports2) {
|
|
62738
63050
|
"use strict";
|
|
63051
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
63052
|
+
if (k2 === void 0)
|
|
63053
|
+
k2 = k;
|
|
63054
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
63055
|
+
return m[k];
|
|
63056
|
+
} });
|
|
63057
|
+
} : function(o, m, k, k2) {
|
|
63058
|
+
if (k2 === void 0)
|
|
63059
|
+
k2 = k;
|
|
63060
|
+
o[k2] = m[k];
|
|
63061
|
+
});
|
|
63062
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
63063
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
63064
|
+
} : function(o, v) {
|
|
63065
|
+
o["default"] = v;
|
|
63066
|
+
});
|
|
62739
63067
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
62740
63068
|
if (mod && mod.__esModule)
|
|
62741
63069
|
return mod;
|
|
62742
63070
|
var result2 = {};
|
|
62743
63071
|
if (mod != null) {
|
|
62744
63072
|
for (var k in mod)
|
|
62745
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
62746
|
-
result2
|
|
63073
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
63074
|
+
__createBinding(result2, mod, k);
|
|
62747
63075
|
}
|
|
62748
|
-
result2
|
|
63076
|
+
__setModuleDefault(result2, mod);
|
|
62749
63077
|
return result2;
|
|
62750
63078
|
};
|
|
62751
63079
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
63080
|
+
exports2.fsPathToFtfsPath = exports2.moveFile = exports2.deleteDirectory = exports2.isDirectory = exports2.fileExists = exports2.createDirectory = exports2.readDirectory = exports2.updateJSON = exports2.updateFile = exports2.deleteFile = exports2.readJSON = exports2.readFile = void 0;
|
|
62752
63081
|
var fs3 = __importStar(require("fs"));
|
|
62753
63082
|
var path_1 = require("path");
|
|
62754
63083
|
var vscode_uri_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
@@ -64717,6 +65046,7 @@ var require_file3 = __commonJS({
|
|
|
64717
65046
|
"../lib/ux-cds/dist/utils/file.js"(exports2) {
|
|
64718
65047
|
"use strict";
|
|
64719
65048
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
65049
|
+
exports2.fileExists = exports2.readFile = void 0;
|
|
64720
65050
|
var fs_1 = require("fs");
|
|
64721
65051
|
async function readFile3(path3) {
|
|
64722
65052
|
const data2 = await fs_1.promises.readFile(path3);
|
|
@@ -64740,6 +65070,7 @@ var require_capProject = __commonJS({
|
|
|
64740
65070
|
"../lib/ux-cds/dist/utils/capProject.js"(exports2) {
|
|
64741
65071
|
"use strict";
|
|
64742
65072
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
65073
|
+
exports2.toReferenceUri = exports2.toAbsoluteUri = exports2.isCapJavaProject = exports2.isCapNodeJsProject = exports2.isCapProject = exports2.CAP_DB_FOLDER = exports2.CAP_APPS_FOLDER = exports2.CAP_SERVICES_FOLDER = void 0;
|
|
64743
65074
|
var path_1 = require("path");
|
|
64744
65075
|
var file_1 = require_file3();
|
|
64745
65076
|
exports2.CAP_SERVICES_FOLDER = "srv";
|
|
@@ -64773,8 +65104,9 @@ var require_capProject = __commonJS({
|
|
|
64773
65104
|
return file_1.fileExists(path_1.join(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
|
|
64774
65105
|
}
|
|
64775
65106
|
exports2.isCapJavaProject = isCapJavaProject;
|
|
64776
|
-
|
|
64777
|
-
exports2.
|
|
65107
|
+
var toAbsoluteUri = (project, relativeUri) => path_1.join(project.root, relativeUri);
|
|
65108
|
+
exports2.toAbsoluteUri = toAbsoluteUri;
|
|
65109
|
+
var toReferenceUri = async (project, relativeUriFrom, relativeUriTo) => {
|
|
64778
65110
|
let relativeUri = "";
|
|
64779
65111
|
const indexNodeModules = relativeUriTo.lastIndexOf("node_modules");
|
|
64780
65112
|
if (indexNodeModules >= 0) {
|
|
@@ -64803,6 +65135,7 @@ var require_capProject = __commonJS({
|
|
|
64803
65135
|
}
|
|
64804
65136
|
return relativeUri.split(path_1.sep).join("/");
|
|
64805
65137
|
};
|
|
65138
|
+
exports2.toReferenceUri = toReferenceUri;
|
|
64806
65139
|
async function getPackageNameInFolder(baseUri, relativeUri) {
|
|
64807
65140
|
const refUriParts = relativeUri.split(path_1.sep);
|
|
64808
65141
|
const result2 = { packageName: "", packageFolder: relativeUri };
|
|
@@ -64836,19 +65169,36 @@ var require_capProject = __commonJS({
|
|
|
64836
65169
|
var require_webapp2 = __commonJS({
|
|
64837
65170
|
"../lib/project-access/core/dist/project/webapp.js"(exports2) {
|
|
64838
65171
|
"use strict";
|
|
65172
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
65173
|
+
if (k2 === void 0)
|
|
65174
|
+
k2 = k;
|
|
65175
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
65176
|
+
return m[k];
|
|
65177
|
+
} });
|
|
65178
|
+
} : function(o, m, k, k2) {
|
|
65179
|
+
if (k2 === void 0)
|
|
65180
|
+
k2 = k;
|
|
65181
|
+
o[k2] = m[k];
|
|
65182
|
+
});
|
|
65183
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
65184
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
65185
|
+
} : function(o, v) {
|
|
65186
|
+
o["default"] = v;
|
|
65187
|
+
});
|
|
64839
65188
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
64840
65189
|
if (mod && mod.__esModule)
|
|
64841
65190
|
return mod;
|
|
64842
65191
|
var result2 = {};
|
|
64843
65192
|
if (mod != null) {
|
|
64844
65193
|
for (var k in mod)
|
|
64845
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
64846
|
-
result2
|
|
65194
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
65195
|
+
__createBinding(result2, mod, k);
|
|
64847
65196
|
}
|
|
64848
|
-
result2
|
|
65197
|
+
__setModuleDefault(result2, mod);
|
|
64849
65198
|
return result2;
|
|
64850
65199
|
};
|
|
64851
65200
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
65201
|
+
exports2.getUi5CustomWebappPath = void 0;
|
|
64852
65202
|
var file_1 = require_file2();
|
|
64853
65203
|
var path_1 = require("path");
|
|
64854
65204
|
var project_spec_1 = require_dist6();
|
|
@@ -64873,6 +65223,7 @@ var require_commandRunner = __commonJS({
|
|
|
64873
65223
|
"../lib/ui5-info/core/dist/commandRunner.js"(exports2) {
|
|
64874
65224
|
"use strict";
|
|
64875
65225
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
65226
|
+
exports2.CommandRunner = void 0;
|
|
64876
65227
|
var child_process_1 = require("child_process");
|
|
64877
65228
|
var CommandRunner = class {
|
|
64878
65229
|
run(cmd, args = []) {
|
|
@@ -67194,10 +67545,11 @@ var require_semver5 = __commonJS({
|
|
|
67194
67545
|
});
|
|
67195
67546
|
|
|
67196
67547
|
// ../lib/ui5-info/core/dist/types.js
|
|
67197
|
-
var
|
|
67548
|
+
var require_types4 = __commonJS({
|
|
67198
67549
|
"../lib/ui5-info/core/dist/types.js"(exports2) {
|
|
67199
67550
|
"use strict";
|
|
67200
67551
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
67552
|
+
exports2.inMaintenance = exports2.minUI5VersionForLocalDev = exports2.FioriElementsVersion = exports2.UI5Info = void 0;
|
|
67201
67553
|
var UI5Info2;
|
|
67202
67554
|
(function(UI5Info3) {
|
|
67203
67555
|
UI5Info3["OfficialUrl"] = "https://ui5.sap.com";
|
|
@@ -67226,10 +67578,11 @@ var require_ui5_info = __commonJS({
|
|
|
67226
67578
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
67227
67579
|
};
|
|
67228
67580
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
67581
|
+
exports2.getSpecTagVersion = exports2.getLatestSapui5Version = exports2.getSapSystemUI5Version = exports2.uI5VersionsWithCodeAssist = exports2.getDefaultTheme = exports2.getUi5Themes = exports2.getUI5VersionsEnhanced = exports2.retrieveUI5Versions = exports2.retrieveUI5VersionsCache = exports2.parseUI5VersionsOverview = exports2.parseUI5Versions = exports2.requestUI5Versions = exports2.getManifestVersion = exports2.ui5VersionsCache = exports2.UI5_VERSIONS_TYPE = exports2.ThemeIds = exports2.MIN_UI5_VERSION_FPM_TEMPLATE = exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = exports2.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE = exports2.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE = exports2.MIN_UI5_VERSION_ALP_V4_TEMPLATE = exports2.MIN_UI5_VERSION = exports2.MIN_UI5_VERSION_V4_TEMPLATE = void 0;
|
|
67229
67582
|
var semver_compare_1 = __importDefault(require_semver_compare());
|
|
67230
67583
|
var semver_1 = require_semver5();
|
|
67231
67584
|
var ux_odata_client_1 = require_dist3();
|
|
67232
|
-
var types_1 =
|
|
67585
|
+
var types_1 = require_types4();
|
|
67233
67586
|
var commandRunner_1 = require_commandRunner();
|
|
67234
67587
|
var axios_1 = __importDefault(require_axios2());
|
|
67235
67588
|
var https_1 = __importDefault(require("https"));
|
|
@@ -67239,6 +67592,7 @@ var require_ui5_info = __commonJS({
|
|
|
67239
67592
|
exports2.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE = "1.99.0";
|
|
67240
67593
|
exports2.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE = "1.90.0";
|
|
67241
67594
|
exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = "1.96.8";
|
|
67595
|
+
exports2.MIN_UI5_VERSION_FPM_TEMPLATE = "1.94.0";
|
|
67242
67596
|
var MIN_UI5_VERSION_V2_TEMPLATE = "1.76.0";
|
|
67243
67597
|
var MIN_UI5_DARK_THEME = "1.72.0";
|
|
67244
67598
|
var MIN_UI5_VERSION_HORIZON_THEME = "1.102.0";
|
|
@@ -67530,7 +67884,7 @@ var require_ui5_info = __commonJS({
|
|
|
67530
67884
|
return result2;
|
|
67531
67885
|
}
|
|
67532
67886
|
exports2.parseUI5VersionsOverview = parseUI5VersionsOverview;
|
|
67533
|
-
|
|
67887
|
+
var retrieveUI5VersionsCache = async (type, useCache = false) => {
|
|
67534
67888
|
if (!useCache) {
|
|
67535
67889
|
switch (type) {
|
|
67536
67890
|
case "officialVersions":
|
|
@@ -67556,6 +67910,7 @@ var require_ui5_info = __commonJS({
|
|
|
67556
67910
|
}
|
|
67557
67911
|
return exports2.ui5VersionsCache[type];
|
|
67558
67912
|
};
|
|
67913
|
+
exports2.retrieveUI5VersionsCache = retrieveUI5VersionsCache;
|
|
67559
67914
|
async function retrieveUI5Versions(filterOptions, logger = consoleLogger3, returnLatestValue) {
|
|
67560
67915
|
let officialVersions = [];
|
|
67561
67916
|
let snapshotVersions = [];
|
|
@@ -67752,6 +68107,18 @@ var require_ui5_info = __commonJS({
|
|
|
67752
68107
|
return version;
|
|
67753
68108
|
}
|
|
67754
68109
|
exports2.getLatestSapui5Version = getLatestSapui5Version;
|
|
68110
|
+
function getSpecTagVersion(ui5Version) {
|
|
68111
|
+
if (ui5Version) {
|
|
68112
|
+
if (semver_1.valid(ui5Version)) {
|
|
68113
|
+
return `UI5-${semver_1.major(ui5Version)}.${semver_1.minor(ui5Version)}`;
|
|
68114
|
+
} else if (ui5Version.includes("snapshot") && ui5Version.includes(".")) {
|
|
68115
|
+
const snapshotVersion = ui5Version.split("snapshot-")[1];
|
|
68116
|
+
return `UI5-${snapshotVersion}`;
|
|
68117
|
+
}
|
|
68118
|
+
}
|
|
68119
|
+
return "latest";
|
|
68120
|
+
}
|
|
68121
|
+
exports2.getSpecTagVersion = getSpecTagVersion;
|
|
67755
68122
|
}
|
|
67756
68123
|
});
|
|
67757
68124
|
|
|
@@ -67760,29 +68127,76 @@ var require_dist7 = __commonJS({
|
|
|
67760
68127
|
"../lib/ui5-info/core/dist/index.js"(exports2) {
|
|
67761
68128
|
"use strict";
|
|
67762
68129
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68130
|
+
exports2.UI5Info = exports2.minUI5VersionForLocalDev = exports2.FioriElementsVersion = exports2.getSpecTagVersion = exports2.getLatestSapui5Version = exports2.parseUI5VersionsOverview = exports2.getUI5VersionsEnhanced = exports2.getSapSystemUI5Version = exports2.parseUI5Versions = exports2.uI5VersionsWithCodeAssist = exports2.getManifestVersion = exports2.getDefaultTheme = exports2.getUi5Themes = exports2.retrieveUI5Versions = exports2.MIN_UI5_VERSION_FPM_TEMPLATE = exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = exports2.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE = exports2.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE = exports2.MIN_UI5_VERSION_ALP_V4_TEMPLATE = exports2.MIN_UI5_VERSION = exports2.MIN_UI5_VERSION_V4_TEMPLATE = exports2.CommandRunner = void 0;
|
|
67763
68131
|
var commandRunner_1 = require_commandRunner();
|
|
67764
|
-
exports2
|
|
68132
|
+
Object.defineProperty(exports2, "CommandRunner", { enumerable: true, get: function() {
|
|
68133
|
+
return commandRunner_1.CommandRunner;
|
|
68134
|
+
} });
|
|
67765
68135
|
var ui5_info_1 = require_ui5_info();
|
|
67766
|
-
exports2
|
|
67767
|
-
|
|
67768
|
-
|
|
67769
|
-
exports2
|
|
67770
|
-
|
|
67771
|
-
|
|
67772
|
-
exports2
|
|
67773
|
-
|
|
67774
|
-
|
|
67775
|
-
exports2
|
|
67776
|
-
|
|
67777
|
-
|
|
67778
|
-
exports2
|
|
67779
|
-
|
|
67780
|
-
|
|
67781
|
-
exports2
|
|
67782
|
-
|
|
67783
|
-
|
|
67784
|
-
exports2
|
|
67785
|
-
|
|
68136
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
68137
|
+
return ui5_info_1.MIN_UI5_VERSION_V4_TEMPLATE;
|
|
68138
|
+
} });
|
|
68139
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION", { enumerable: true, get: function() {
|
|
68140
|
+
return ui5_info_1.MIN_UI5_VERSION;
|
|
68141
|
+
} });
|
|
68142
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_ALP_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
68143
|
+
return ui5_info_1.MIN_UI5_VERSION_ALP_V4_TEMPLATE;
|
|
68144
|
+
} });
|
|
68145
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE", { enumerable: true, get: function() {
|
|
68146
|
+
return ui5_info_1.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE;
|
|
68147
|
+
} });
|
|
68148
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
68149
|
+
return ui5_info_1.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE;
|
|
68150
|
+
} });
|
|
68151
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
68152
|
+
return ui5_info_1.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE;
|
|
68153
|
+
} });
|
|
68154
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_FPM_TEMPLATE", { enumerable: true, get: function() {
|
|
68155
|
+
return ui5_info_1.MIN_UI5_VERSION_FPM_TEMPLATE;
|
|
68156
|
+
} });
|
|
68157
|
+
Object.defineProperty(exports2, "retrieveUI5Versions", { enumerable: true, get: function() {
|
|
68158
|
+
return ui5_info_1.retrieveUI5Versions;
|
|
68159
|
+
} });
|
|
68160
|
+
Object.defineProperty(exports2, "getUi5Themes", { enumerable: true, get: function() {
|
|
68161
|
+
return ui5_info_1.getUi5Themes;
|
|
68162
|
+
} });
|
|
68163
|
+
Object.defineProperty(exports2, "getDefaultTheme", { enumerable: true, get: function() {
|
|
68164
|
+
return ui5_info_1.getDefaultTheme;
|
|
68165
|
+
} });
|
|
68166
|
+
Object.defineProperty(exports2, "getManifestVersion", { enumerable: true, get: function() {
|
|
68167
|
+
return ui5_info_1.getManifestVersion;
|
|
68168
|
+
} });
|
|
68169
|
+
Object.defineProperty(exports2, "uI5VersionsWithCodeAssist", { enumerable: true, get: function() {
|
|
68170
|
+
return ui5_info_1.uI5VersionsWithCodeAssist;
|
|
68171
|
+
} });
|
|
68172
|
+
Object.defineProperty(exports2, "parseUI5Versions", { enumerable: true, get: function() {
|
|
68173
|
+
return ui5_info_1.parseUI5Versions;
|
|
68174
|
+
} });
|
|
68175
|
+
Object.defineProperty(exports2, "getSapSystemUI5Version", { enumerable: true, get: function() {
|
|
68176
|
+
return ui5_info_1.getSapSystemUI5Version;
|
|
68177
|
+
} });
|
|
68178
|
+
Object.defineProperty(exports2, "getUI5VersionsEnhanced", { enumerable: true, get: function() {
|
|
68179
|
+
return ui5_info_1.getUI5VersionsEnhanced;
|
|
68180
|
+
} });
|
|
68181
|
+
Object.defineProperty(exports2, "parseUI5VersionsOverview", { enumerable: true, get: function() {
|
|
68182
|
+
return ui5_info_1.parseUI5VersionsOverview;
|
|
68183
|
+
} });
|
|
68184
|
+
Object.defineProperty(exports2, "getLatestSapui5Version", { enumerable: true, get: function() {
|
|
68185
|
+
return ui5_info_1.getLatestSapui5Version;
|
|
68186
|
+
} });
|
|
68187
|
+
Object.defineProperty(exports2, "getSpecTagVersion", { enumerable: true, get: function() {
|
|
68188
|
+
return ui5_info_1.getSpecTagVersion;
|
|
68189
|
+
} });
|
|
68190
|
+
var types_1 = require_types4();
|
|
68191
|
+
Object.defineProperty(exports2, "FioriElementsVersion", { enumerable: true, get: function() {
|
|
68192
|
+
return types_1.FioriElementsVersion;
|
|
68193
|
+
} });
|
|
68194
|
+
Object.defineProperty(exports2, "minUI5VersionForLocalDev", { enumerable: true, get: function() {
|
|
68195
|
+
return types_1.minUI5VersionForLocalDev;
|
|
68196
|
+
} });
|
|
68197
|
+
Object.defineProperty(exports2, "UI5Info", { enumerable: true, get: function() {
|
|
68198
|
+
return types_1.UI5Info;
|
|
68199
|
+
} });
|
|
67786
68200
|
}
|
|
67787
68201
|
});
|
|
67788
68202
|
|
|
@@ -67790,19 +68204,36 @@ var require_dist7 = __commonJS({
|
|
|
67790
68204
|
var require_yamlFile = __commonJS({
|
|
67791
68205
|
"../lib/project-access/core/dist/project/ui5Config/yamlFile.js"(exports2) {
|
|
67792
68206
|
"use strict";
|
|
68207
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
68208
|
+
if (k2 === void 0)
|
|
68209
|
+
k2 = k;
|
|
68210
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
68211
|
+
return m[k];
|
|
68212
|
+
} });
|
|
68213
|
+
} : function(o, m, k, k2) {
|
|
68214
|
+
if (k2 === void 0)
|
|
68215
|
+
k2 = k;
|
|
68216
|
+
o[k2] = m[k];
|
|
68217
|
+
});
|
|
68218
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
68219
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
68220
|
+
} : function(o, v) {
|
|
68221
|
+
o["default"] = v;
|
|
68222
|
+
});
|
|
67793
68223
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
67794
68224
|
if (mod && mod.__esModule)
|
|
67795
68225
|
return mod;
|
|
67796
68226
|
var result2 = {};
|
|
67797
68227
|
if (mod != null) {
|
|
67798
68228
|
for (var k in mod)
|
|
67799
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
67800
|
-
result2
|
|
68229
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
68230
|
+
__createBinding(result2, mod, k);
|
|
67801
68231
|
}
|
|
67802
|
-
result2
|
|
68232
|
+
__setModuleDefault(result2, mod);
|
|
67803
68233
|
return result2;
|
|
67804
68234
|
};
|
|
67805
68235
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68236
|
+
exports2.getParsedUi5YamlConfig = exports2.readUi5YamlConfig = void 0;
|
|
67806
68237
|
var path_1 = require("path");
|
|
67807
68238
|
var yaml = __importStar(require_Yaml());
|
|
67808
68239
|
var file_1 = require_file2();
|
|
@@ -67816,10 +68247,36 @@ var require_yamlFile = __commonJS({
|
|
|
67816
68247
|
}
|
|
67817
68248
|
exports2.readUi5YamlConfig = readUi5YamlConfig;
|
|
67818
68249
|
async function getParsedUi5YamlConfig(dirPath, filename) {
|
|
68250
|
+
var _a2;
|
|
67819
68251
|
const contents = await readUi5YamlConfig(dirPath, filename);
|
|
67820
68252
|
if (contents) {
|
|
67821
68253
|
try {
|
|
67822
|
-
|
|
68254
|
+
const parsed = yaml.parse(contents);
|
|
68255
|
+
if (((_a2 = parsed == null ? void 0 : parsed.server) == null ? void 0 : _a2.customMiddleware) && Array.isArray(parsed.server.customMiddleware)) {
|
|
68256
|
+
for (const middleware of parsed.server.customMiddleware) {
|
|
68257
|
+
const configuration = middleware == null ? void 0 : middleware.configuration;
|
|
68258
|
+
const services = [];
|
|
68259
|
+
if (Array.isArray(configuration == null ? void 0 : configuration.service)) {
|
|
68260
|
+
services.push(...configuration.service);
|
|
68261
|
+
} else if (configuration == null ? void 0 : configuration.service) {
|
|
68262
|
+
services.push(configuration.service);
|
|
68263
|
+
}
|
|
68264
|
+
if (Array.isArray(configuration == null ? void 0 : configuration.services)) {
|
|
68265
|
+
services.push(...configuration.services);
|
|
68266
|
+
} else if (configuration == null ? void 0 : configuration.services) {
|
|
68267
|
+
services.push(configuration.services);
|
|
68268
|
+
}
|
|
68269
|
+
for (const service of services) {
|
|
68270
|
+
if (service.mockdataRootPath) {
|
|
68271
|
+
service.mockdataPath = service.mockdataRootPath;
|
|
68272
|
+
}
|
|
68273
|
+
if (service.metadataXmlPath) {
|
|
68274
|
+
service.metadataPath = service.metadataXmlPath;
|
|
68275
|
+
}
|
|
68276
|
+
}
|
|
68277
|
+
}
|
|
68278
|
+
}
|
|
68279
|
+
return parsed;
|
|
67823
68280
|
} catch (e) {
|
|
67824
68281
|
throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: path_1.join(dirPath, filename), parsingError: e.message }));
|
|
67825
68282
|
}
|
|
@@ -67834,19 +68291,36 @@ var require_yamlFile = __commonJS({
|
|
|
67834
68291
|
var require_mockServer = __commonJS({
|
|
67835
68292
|
"../lib/project-access/core/dist/project/ui5Config/mockServer.js"(exports2) {
|
|
67836
68293
|
"use strict";
|
|
68294
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
68295
|
+
if (k2 === void 0)
|
|
68296
|
+
k2 = k;
|
|
68297
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
68298
|
+
return m[k];
|
|
68299
|
+
} });
|
|
68300
|
+
} : function(o, m, k, k2) {
|
|
68301
|
+
if (k2 === void 0)
|
|
68302
|
+
k2 = k;
|
|
68303
|
+
o[k2] = m[k];
|
|
68304
|
+
});
|
|
68305
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
68306
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
68307
|
+
} : function(o, v) {
|
|
68308
|
+
o["default"] = v;
|
|
68309
|
+
});
|
|
67837
68310
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
67838
68311
|
if (mod && mod.__esModule)
|
|
67839
68312
|
return mod;
|
|
67840
68313
|
var result2 = {};
|
|
67841
68314
|
if (mod != null) {
|
|
67842
68315
|
for (var k in mod)
|
|
67843
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
67844
|
-
result2
|
|
68316
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
68317
|
+
__createBinding(result2, mod, k);
|
|
67845
68318
|
}
|
|
67846
|
-
result2
|
|
68319
|
+
__setModuleDefault(result2, mod);
|
|
67847
68320
|
return result2;
|
|
67848
68321
|
};
|
|
67849
68322
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68323
|
+
exports2.findMockServiceByMetadataPath = exports2.matchMockServiceByMetadataPath = exports2.getMockServicesConfiguration = exports2.getMockServerConfig = void 0;
|
|
67850
68324
|
var path_1 = require("path");
|
|
67851
68325
|
var project_spec_1 = require_dist6();
|
|
67852
68326
|
var yamlFile_1 = require_yamlFile();
|
|
@@ -67907,10 +68381,10 @@ var require_mockServer = __commonJS({
|
|
|
67907
68381
|
}
|
|
67908
68382
|
return (services == null ? void 0 : services.length) ? services : null;
|
|
67909
68383
|
}
|
|
67910
|
-
function matchMockServiceByMetadataPath(mockService,
|
|
67911
|
-
const {
|
|
67912
|
-
if (
|
|
67913
|
-
return
|
|
68384
|
+
function matchMockServiceByMetadataPath(mockService, path3) {
|
|
68385
|
+
const { metadataPath } = mockService;
|
|
68386
|
+
if (metadataPath) {
|
|
68387
|
+
return path3.endsWith(path_1.normalize(metadataPath));
|
|
67914
68388
|
}
|
|
67915
68389
|
return false;
|
|
67916
68390
|
}
|
|
@@ -67938,10 +68412,17 @@ var require_ui5Config = __commonJS({
|
|
|
67938
68412
|
"../lib/project-access/core/dist/project/ui5Config/index.js"(exports2) {
|
|
67939
68413
|
"use strict";
|
|
67940
68414
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68415
|
+
exports2.getMockServicesConfiguration = exports2.getMockServerConfig = exports2.findMockServiceByMetadataPath = void 0;
|
|
67941
68416
|
var mockServer_1 = require_mockServer();
|
|
67942
|
-
exports2
|
|
67943
|
-
|
|
67944
|
-
|
|
68417
|
+
Object.defineProperty(exports2, "findMockServiceByMetadataPath", { enumerable: true, get: function() {
|
|
68418
|
+
return mockServer_1.findMockServiceByMetadataPath;
|
|
68419
|
+
} });
|
|
68420
|
+
Object.defineProperty(exports2, "getMockServerConfig", { enumerable: true, get: function() {
|
|
68421
|
+
return mockServer_1.getMockServerConfig;
|
|
68422
|
+
} });
|
|
68423
|
+
Object.defineProperty(exports2, "getMockServicesConfiguration", { enumerable: true, get: function() {
|
|
68424
|
+
return mockServer_1.getMockServicesConfiguration;
|
|
68425
|
+
} });
|
|
67945
68426
|
}
|
|
67946
68427
|
});
|
|
67947
68428
|
|
|
@@ -67949,22 +68430,39 @@ var require_ui5Config = __commonJS({
|
|
|
67949
68430
|
var require_utils9 = __commonJS({
|
|
67950
68431
|
"../lib/project-access/core/dist/project/utils.js"(exports2) {
|
|
67951
68432
|
"use strict";
|
|
67952
|
-
var
|
|
67953
|
-
|
|
67954
|
-
|
|
68433
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
68434
|
+
if (k2 === void 0)
|
|
68435
|
+
k2 = k;
|
|
68436
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
68437
|
+
return m[k];
|
|
68438
|
+
} });
|
|
68439
|
+
} : function(o, m, k, k2) {
|
|
68440
|
+
if (k2 === void 0)
|
|
68441
|
+
k2 = k;
|
|
68442
|
+
o[k2] = m[k];
|
|
68443
|
+
});
|
|
68444
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
68445
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
68446
|
+
} : function(o, v) {
|
|
68447
|
+
o["default"] = v;
|
|
68448
|
+
});
|
|
67955
68449
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
67956
68450
|
if (mod && mod.__esModule)
|
|
67957
68451
|
return mod;
|
|
67958
68452
|
var result2 = {};
|
|
67959
68453
|
if (mod != null) {
|
|
67960
68454
|
for (var k in mod)
|
|
67961
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
67962
|
-
result2
|
|
68455
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
68456
|
+
__createBinding(result2, mod, k);
|
|
67963
68457
|
}
|
|
67964
|
-
result2
|
|
68458
|
+
__setModuleDefault(result2, mod);
|
|
67965
68459
|
return result2;
|
|
67966
68460
|
};
|
|
68461
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
68462
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
68463
|
+
};
|
|
67967
68464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68465
|
+
exports2.tryGetEdmxAppMockServiceMockdataDir = exports2.getEdmxAppDefaultMockdataDirPath = exports2.getCapAppMockdataDirPath = exports2.getApplicationId = exports2.deleteCapApp = exports2.isOVPProject = exports2.getAppIdForFile = exports2.checkServeLocalConfig = exports2.getUI5Version = exports2.getLocalUI5Version = exports2.getUi5CustomMiddleware = 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.findAllApps = exports2.findRootsForPath = exports2.getDetailedProjectType = exports2.getAppType = exports2.findAllProjectRoots = exports2.hasDependency = exports2.findExtensionFiles = exports2.findLibrary = exports2.findProjectRoot = exports2.scriptsRegEx = void 0;
|
|
67968
68466
|
var fs_1 = require("fs");
|
|
67969
68467
|
var findit2_1 = __importDefault(require_findit2());
|
|
67970
68468
|
var fast_xml_parser_1 = __importDefault(require_parser());
|
|
@@ -68059,7 +68557,8 @@ var require_utils9 = __commonJS({
|
|
|
68059
68557
|
function isWorkspaceFolder(value) {
|
|
68060
68558
|
return value && value.length > 0 && value[0].uri !== void 0;
|
|
68061
68559
|
}
|
|
68062
|
-
|
|
68560
|
+
var hasDependency = (packageJson, dependency) => packageJson.dependencies && packageJson.dependencies[dependency] !== void 0 || packageJson.devDependencies && packageJson.devDependencies[dependency] !== void 0;
|
|
68561
|
+
exports2.hasDependency = hasDependency;
|
|
68063
68562
|
var hasScript = (packageJson) => {
|
|
68064
68563
|
if (packageJson.scripts) {
|
|
68065
68564
|
let scriptExists = false;
|
|
@@ -68261,7 +68760,7 @@ var require_utils9 = __commonJS({
|
|
|
68261
68760
|
return result2;
|
|
68262
68761
|
}
|
|
68263
68762
|
exports2.findAllApps = findAllApps;
|
|
68264
|
-
|
|
68763
|
+
var findRunnableProjects = async (workspaceRoots, logger) => {
|
|
68265
68764
|
const result2 = [];
|
|
68266
68765
|
const roots = await findAllProjectRoots(workspaceRoots, false);
|
|
68267
68766
|
for (const root of roots) {
|
|
@@ -68277,6 +68776,7 @@ var require_utils9 = __commonJS({
|
|
|
68277
68776
|
}
|
|
68278
68777
|
return result2;
|
|
68279
68778
|
};
|
|
68779
|
+
exports2.findRunnableProjects = findRunnableProjects;
|
|
68280
68780
|
async function checkPackageJson(root, dependency, sapux) {
|
|
68281
68781
|
const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
|
|
68282
68782
|
if (packageJson.dependencies && packageJson.dependencies[dependency] !== void 0 || packageJson.devDependencies && packageJson.devDependencies[dependency] !== void 0) {
|
|
@@ -68519,8 +69019,9 @@ var require_utils9 = __commonJS({
|
|
|
68519
69019
|
} else if ((_b = (_a2 = manifest["sap.ui5"]) == null ? void 0 : _a2.routing) == null ? void 0 : _b.targets) {
|
|
68520
69020
|
let hasV4pPages = false;
|
|
68521
69021
|
Object.keys((_d = (_c = manifest["sap.ui5"]) == null ? void 0 : _c.routing) == null ? void 0 : _d.targets).forEach((target) => {
|
|
68522
|
-
var _a3, _b2, _c2;
|
|
68523
|
-
|
|
69022
|
+
var _a3, _b2, _c2, _d2;
|
|
69023
|
+
const ui5RoutingTarget = (_b2 = (_a3 = manifest["sap.ui5"]) == null ? void 0 : _a3.routing) == null ? void 0 : _b2.targets[target];
|
|
69024
|
+
if (((_c2 = ui5RoutingTarget.name) == null ? void 0 : _c2.startsWith("sap.fe.templates.")) || ((_d2 = ui5RoutingTarget.name) == null ? void 0 : _d2.startsWith("sap.fe.core.fpm"))) {
|
|
68524
69025
|
hasV4pPages = true;
|
|
68525
69026
|
}
|
|
68526
69027
|
});
|
|
@@ -68697,9 +69198,9 @@ var require_utils9 = __commonJS({
|
|
|
68697
69198
|
const { services, mockFolder } = await ui5Config_1.getMockServicesConfiguration(configDir, config2);
|
|
68698
69199
|
if (services) {
|
|
68699
69200
|
const mockService = ui5Config_1.findMockServiceByMetadataPath(services, serviceMetadataPath);
|
|
68700
|
-
if (mockService == null ? void 0 : mockService.
|
|
69201
|
+
if (mockService == null ? void 0 : mockService.mockdataPath) {
|
|
68701
69202
|
const servicesConfigFilePath = mockFolder ? path_1.resolve(configDir, mockFolder) : configDir;
|
|
68702
|
-
return path_1.resolve(servicesConfigFilePath, mockService.
|
|
69203
|
+
return path_1.resolve(servicesConfigFilePath, mockService.mockdataPath);
|
|
68703
69204
|
}
|
|
68704
69205
|
}
|
|
68705
69206
|
}
|
|
@@ -68709,10 +69210,16 @@ var require_utils9 = __commonJS({
|
|
|
68709
69210
|
});
|
|
68710
69211
|
|
|
68711
69212
|
// ../lib/telemetry/dist/src/toolsSuiteTelemetry/types.js
|
|
68712
|
-
var
|
|
69213
|
+
var require_types5 = __commonJS({
|
|
68713
69214
|
"../lib/telemetry/dist/src/toolsSuiteTelemetry/types.js"(exports2) {
|
|
68714
69215
|
"use strict";
|
|
68715
69216
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69217
|
+
exports2.CommonProperties = exports2.DeployTarget = exports2.ODataSource = exports2.ToolsId = void 0;
|
|
69218
|
+
var ToolsId;
|
|
69219
|
+
(function(ToolsId2) {
|
|
69220
|
+
ToolsId2["UNKNOWN"] = "UNKNOWN";
|
|
69221
|
+
ToolsId2["NO_TOOLS_ID"] = "NO_TOOLS_ID";
|
|
69222
|
+
})(ToolsId = exports2.ToolsId || (exports2.ToolsId = {}));
|
|
68716
69223
|
var ODataSource;
|
|
68717
69224
|
(function(ODataSource2) {
|
|
68718
69225
|
ODataSource2["CAPJava"] = "CAPJava";
|
|
@@ -68737,6 +69244,7 @@ var require_types4 = __commonJS({
|
|
|
68737
69244
|
CommonProperties2["TemplateType"] = "cmn.template";
|
|
68738
69245
|
CommonProperties2["DeployTargetType"] = "cmn.deployTarget";
|
|
68739
69246
|
CommonProperties2["ODataSourceType"] = "cmn.odataSource";
|
|
69247
|
+
CommonProperties2["AppToolsId"] = "cmn.toolsId";
|
|
68740
69248
|
})(CommonProperties = exports2.CommonProperties || (exports2.CommonProperties = {}));
|
|
68741
69249
|
}
|
|
68742
69250
|
});
|
|
@@ -68746,6 +69254,7 @@ var require_featureToggle = __commonJS({
|
|
|
68746
69254
|
"../lib/feature-toggle/dist/featureToggle.js"(exports2) {
|
|
68747
69255
|
"use strict";
|
|
68748
69256
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69257
|
+
exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.enableFeature = exports2.FeatureToggleAccess = exports2.ExperimentalFeatures = exports2.FeatureToggleKey = void 0;
|
|
68749
69258
|
var vscode = void 0;
|
|
68750
69259
|
try {
|
|
68751
69260
|
vscode = require("vscode");
|
|
@@ -68762,7 +69271,6 @@ var require_featureToggle = __commonJS({
|
|
|
68762
69271
|
};
|
|
68763
69272
|
var tokenToggleGuid = {
|
|
68764
69273
|
"dummy.test.testBetaFeatures.someTokenFeature": "77e0469d-1448-42bf-8d47-0944896dd9ed",
|
|
68765
|
-
"sap.ux.applicationModeler.testBetaFeatures.enableFPMFeatures": "438b6071-479e-49b4-81bf-c8a016b71c75",
|
|
68766
69274
|
"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
|
|
68767
69275
|
"sap.ux.help.testBetaFeatures.enableAbapCdsSupport": "794cae98-3456-491a-ae20-3215a98b56df",
|
|
68768
69276
|
"sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3"
|
|
@@ -68861,13 +69369,26 @@ var require_dist8 = __commonJS({
|
|
|
68861
69369
|
"../lib/feature-toggle/dist/index.js"(exports2) {
|
|
68862
69370
|
"use strict";
|
|
68863
69371
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69372
|
+
exports2.ExperimentalFeatures = exports2.enableFeature = exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.FeatureToggleKey = exports2.FeatureToggleAccess = void 0;
|
|
68864
69373
|
var featureToggle_1 = require_featureToggle();
|
|
68865
|
-
exports2
|
|
68866
|
-
|
|
68867
|
-
|
|
68868
|
-
exports2
|
|
68869
|
-
|
|
68870
|
-
|
|
69374
|
+
Object.defineProperty(exports2, "FeatureToggleAccess", { enumerable: true, get: function() {
|
|
69375
|
+
return featureToggle_1.FeatureToggleAccess;
|
|
69376
|
+
} });
|
|
69377
|
+
Object.defineProperty(exports2, "FeatureToggleKey", { enumerable: true, get: function() {
|
|
69378
|
+
return featureToggle_1.FeatureToggleKey;
|
|
69379
|
+
} });
|
|
69380
|
+
Object.defineProperty(exports2, "isFeatureEnabled", { enumerable: true, get: function() {
|
|
69381
|
+
return featureToggle_1.isFeatureEnabled;
|
|
69382
|
+
} });
|
|
69383
|
+
Object.defineProperty(exports2, "isInternalFeaturesSettingEnabled", { enumerable: true, get: function() {
|
|
69384
|
+
return featureToggle_1.isInternalFeaturesSettingEnabled;
|
|
69385
|
+
} });
|
|
69386
|
+
Object.defineProperty(exports2, "enableFeature", { enumerable: true, get: function() {
|
|
69387
|
+
return featureToggle_1.enableFeature;
|
|
69388
|
+
} });
|
|
69389
|
+
Object.defineProperty(exports2, "ExperimentalFeatures", { enumerable: true, get: function() {
|
|
69390
|
+
return featureToggle_1.ExperimentalFeatures;
|
|
69391
|
+
} });
|
|
68871
69392
|
}
|
|
68872
69393
|
});
|
|
68873
69394
|
|
|
@@ -68879,6 +69400,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
68879
69400
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
68880
69401
|
};
|
|
68881
69402
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69403
|
+
exports2.getCommonProperties = exports2.processToolsSuiteTelemetry = void 0;
|
|
68882
69404
|
var ux_common_utils_1 = require_dist();
|
|
68883
69405
|
var axios_1 = __importDefault(require_axios2());
|
|
68884
69406
|
var fs_1 = __importDefault(require("fs"));
|
|
@@ -68886,7 +69408,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
68886
69408
|
var yaml_1 = __importDefault(require_dist5());
|
|
68887
69409
|
var utils_1 = require_utils9();
|
|
68888
69410
|
var capProject_1 = require_capProject();
|
|
68889
|
-
var types_1 =
|
|
69411
|
+
var types_1 = require_types5();
|
|
68890
69412
|
var ux_feature_toggle_1 = require_dist8();
|
|
68891
69413
|
async function processToolsSuiteTelemetry(telemetryHelperProperties) {
|
|
68892
69414
|
const commonProperties = await getCommonProperties();
|
|
@@ -68932,10 +69454,12 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
68932
69454
|
const templateType = await getTemplateType(appPath);
|
|
68933
69455
|
const deployTarget = await getDeployTarget(appPath);
|
|
68934
69456
|
const odataSource = await getODataSource(appPath);
|
|
69457
|
+
const toolsId = await getToolsId(appPath);
|
|
68935
69458
|
const output3 = {};
|
|
68936
69459
|
output3[types_1.CommonProperties.TemplateType] = templateType;
|
|
68937
69460
|
output3[types_1.CommonProperties.DeployTargetType] = deployTarget;
|
|
68938
69461
|
output3[types_1.CommonProperties.ODataSourceType] = odataSource;
|
|
69462
|
+
output3[types_1.CommonProperties.AppToolsId] = toolsId;
|
|
68939
69463
|
return output3;
|
|
68940
69464
|
}
|
|
68941
69465
|
async function getTemplateType(appPath) {
|
|
@@ -69020,6 +69544,20 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
69020
69544
|
function getInternalVsExternal() {
|
|
69021
69545
|
return ux_feature_toggle_1.isInternalFeaturesSettingEnabled() ? "internal" : "external";
|
|
69022
69546
|
}
|
|
69547
|
+
async function getToolsId(appPath) {
|
|
69548
|
+
var _a2, _b, _c;
|
|
69549
|
+
try {
|
|
69550
|
+
const manifestPath = path_1.default.join(appPath, "webapp", "manifest.json");
|
|
69551
|
+
if (fs_1.default.existsSync(manifestPath)) {
|
|
69552
|
+
const manifest = JSON.parse(fs_1.default.readFileSync(manifestPath, "utf-8"));
|
|
69553
|
+
return (_c = (_b = (_a2 = manifest["sap.app"]) == null ? void 0 : _a2.sourceTemplate) == null ? void 0 : _b.toolsId) != null ? _c : types_1.ToolsId.NO_TOOLS_ID;
|
|
69554
|
+
}
|
|
69555
|
+
return types_1.ToolsId.NO_TOOLS_ID;
|
|
69556
|
+
} catch (err) {
|
|
69557
|
+
console.log(`[Telemetry]: ${err.message}`);
|
|
69558
|
+
return types_1.ToolsId.NO_TOOLS_ID;
|
|
69559
|
+
}
|
|
69560
|
+
}
|
|
69023
69561
|
}
|
|
69024
69562
|
});
|
|
69025
69563
|
|
|
@@ -71795,7 +72333,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
71795
72333
|
});
|
|
71796
72334
|
|
|
71797
72335
|
// ../../node_modules/@sap-ux/store/dist/secure-store/types.js
|
|
71798
|
-
var
|
|
72336
|
+
var require_types6 = __commonJS({
|
|
71799
72337
|
"../../node_modules/@sap-ux/store/dist/secure-store/types.js"(exports2) {
|
|
71800
72338
|
"use strict";
|
|
71801
72339
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -71865,7 +72403,7 @@ var require_secure_store2 = __commonJS({
|
|
|
71865
72403
|
return keytar ? new keytar_store_1.KeytarStore(log3, keytar) : new dummy_store_1.DummyStore(log3);
|
|
71866
72404
|
}
|
|
71867
72405
|
};
|
|
71868
|
-
__exportStar(
|
|
72406
|
+
__exportStar(require_types6(), exports2);
|
|
71869
72407
|
}
|
|
71870
72408
|
});
|
|
71871
72409
|
|
|
@@ -74535,7 +75073,7 @@ var require_cloneDeep = __commonJS({
|
|
|
74535
75073
|
});
|
|
74536
75074
|
|
|
74537
75075
|
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js
|
|
74538
|
-
var
|
|
75076
|
+
var require_types7 = __commonJS({
|
|
74539
75077
|
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
74540
75078
|
"use strict";
|
|
74541
75079
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -74568,7 +75106,7 @@ var require_transport = __commonJS({
|
|
|
74568
75106
|
"use strict";
|
|
74569
75107
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74570
75108
|
exports2.VSCodeTransport = exports2.StringArrayTransport = exports2.FileTransport = exports2.NullTransport = exports2.UI5ToolingTransport = exports2.ConsoleTransport = void 0;
|
|
74571
|
-
var types_1 =
|
|
75109
|
+
var types_1 = require_types7();
|
|
74572
75110
|
var ConsoleTransport = class extends types_1.Transport {
|
|
74573
75111
|
constructor(opts = {}) {
|
|
74574
75112
|
super();
|
|
@@ -74754,7 +75292,7 @@ var require_styles = __commonJS({
|
|
|
74754
75292
|
});
|
|
74755
75293
|
|
|
74756
75294
|
// ../../node_modules/@colors/colors/lib/system/has-flag.js
|
|
74757
|
-
var
|
|
75295
|
+
var require_has_flag2 = __commonJS({
|
|
74758
75296
|
"../../node_modules/@colors/colors/lib/system/has-flag.js"(exports2, module2) {
|
|
74759
75297
|
"use strict";
|
|
74760
75298
|
module2.exports = function(flag, argv) {
|
|
@@ -74772,7 +75310,7 @@ var require_supports_colors = __commonJS({
|
|
|
74772
75310
|
"../../node_modules/@colors/colors/lib/system/supports-colors.js"(exports2, module2) {
|
|
74773
75311
|
"use strict";
|
|
74774
75312
|
var os = require("os");
|
|
74775
|
-
var hasFlag =
|
|
75313
|
+
var hasFlag = require_has_flag2();
|
|
74776
75314
|
var env = process.env;
|
|
74777
75315
|
var forceColor = void 0;
|
|
74778
75316
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
@@ -76404,7 +76942,7 @@ var require_logstash = __commonJS({
|
|
|
76404
76942
|
});
|
|
76405
76943
|
|
|
76406
76944
|
// ../../node_modules/logform/metadata.js
|
|
76407
|
-
var
|
|
76945
|
+
var require_metadata2 = __commonJS({
|
|
76408
76946
|
"../../node_modules/logform/metadata.js"(exports2, module2) {
|
|
76409
76947
|
"use strict";
|
|
76410
76948
|
var format2 = require_format2();
|
|
@@ -77079,7 +77617,7 @@ var require_logform = __commonJS({
|
|
|
77079
77617
|
return require_logstash();
|
|
77080
77618
|
});
|
|
77081
77619
|
exposeFormat("metadata", function() {
|
|
77082
|
-
return
|
|
77620
|
+
return require_metadata2();
|
|
77083
77621
|
});
|
|
77084
77622
|
exposeFormat("ms", function() {
|
|
77085
77623
|
return require_ms2();
|
|
@@ -89316,7 +89854,7 @@ var require_source2 = __commonJS({
|
|
|
89316
89854
|
"../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js"(exports2, module2) {
|
|
89317
89855
|
"use strict";
|
|
89318
89856
|
var ansiStyles = require_ansi_styles();
|
|
89319
|
-
var { stdout: stdoutColor, stderr: stderrColor } =
|
|
89857
|
+
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
89320
89858
|
var {
|
|
89321
89859
|
stringReplaceAll,
|
|
89322
89860
|
stringEncaseCRLFWithFirstIndex
|
|
@@ -89535,7 +90073,7 @@ var require_adapter = __commonJS({
|
|
|
89535
90073
|
};
|
|
89536
90074
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89537
90075
|
exports2.toWinstonTransport = exports2.toWinstonLogLevel = void 0;
|
|
89538
|
-
var types_1 =
|
|
90076
|
+
var types_1 = require_types7();
|
|
89539
90077
|
var winston_1 = __importStar(require_winston());
|
|
89540
90078
|
var transports_1 = require_transports();
|
|
89541
90079
|
var null_transport_1 = require_null_transport();
|
|
@@ -89673,7 +90211,7 @@ var require_logger4 = __commonJS({
|
|
|
89673
90211
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89674
90212
|
exports2.WinstonLogger = void 0;
|
|
89675
90213
|
var transports_1 = require_transports();
|
|
89676
|
-
var types_1 =
|
|
90214
|
+
var types_1 = require_types7();
|
|
89677
90215
|
var winston_1 = __importStar(require_winston());
|
|
89678
90216
|
var adapter_1 = require_adapter();
|
|
89679
90217
|
var utils_1 = require_utils11();
|
|
@@ -89815,7 +90353,7 @@ var require_dist9 = __commonJS({
|
|
|
89815
90353
|
};
|
|
89816
90354
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89817
90355
|
exports2.ToolsLogger = void 0;
|
|
89818
|
-
__exportStar(
|
|
90356
|
+
__exportStar(require_types7(), exports2);
|
|
89819
90357
|
__exportStar(require_transports(), exports2);
|
|
89820
90358
|
var winston_logger_1 = require_winston_logger();
|
|
89821
90359
|
Object.defineProperty(exports2, "ToolsLogger", { enumerable: true, get: function() {
|
|
@@ -89959,6 +90497,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
89959
90497
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
89960
90498
|
};
|
|
89961
90499
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90500
|
+
exports2.initTelemetrySettings = exports2.getTelemetrySetting = exports2.setEnableTelemetry = void 0;
|
|
89962
90501
|
var reporting_1 = require_reporting();
|
|
89963
90502
|
var cloudDebugger_1 = require_cloudDebugger();
|
|
89964
90503
|
var system_1 = require_system3();
|
|
@@ -89996,7 +90535,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
89996
90535
|
const homedir = os_1.default.homedir();
|
|
89997
90536
|
return path_1.default.join(homedir, settingsPath);
|
|
89998
90537
|
};
|
|
89999
|
-
|
|
90538
|
+
var setEnableTelemetry = async (enableTelemetry) => {
|
|
90000
90539
|
const storeService = await store_1.getService({
|
|
90001
90540
|
entityName: "telemetrySetting"
|
|
90002
90541
|
});
|
|
@@ -90006,7 +90545,8 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90006
90545
|
const commonProperties = await toolsSuiteTelemetryDataProcessor_1.getCommonProperties();
|
|
90007
90546
|
reporting_1.reportEnableTelemetryOnOff(enableTelemetry, commonProperties);
|
|
90008
90547
|
};
|
|
90009
|
-
exports2.
|
|
90548
|
+
exports2.setEnableTelemetry = setEnableTelemetry;
|
|
90549
|
+
var getTelemetrySetting = async () => {
|
|
90010
90550
|
let setting;
|
|
90011
90551
|
try {
|
|
90012
90552
|
const storeService = await store_1.getService({
|
|
@@ -90017,6 +90557,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90017
90557
|
}
|
|
90018
90558
|
return setting;
|
|
90019
90559
|
};
|
|
90560
|
+
exports2.getTelemetrySetting = getTelemetrySetting;
|
|
90020
90561
|
var readEnableTelemetryFromSetting = async () => {
|
|
90021
90562
|
const storeService = await store_1.getService({
|
|
90022
90563
|
entityName: "telemetrySetting"
|
|
@@ -90069,7 +90610,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90069
90610
|
system_1.TelemetrySystem.manifest = options2.modulePackageJson;
|
|
90070
90611
|
await initToolsSuiteTelemetrySettings();
|
|
90071
90612
|
};
|
|
90072
|
-
|
|
90613
|
+
var initTelemetrySettings3 = async (options2) => {
|
|
90073
90614
|
try {
|
|
90074
90615
|
if (options2 && options2.modulePackageJson) {
|
|
90075
90616
|
await initWithInputManifest(options2);
|
|
@@ -90080,6 +90621,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90080
90621
|
reporting_1.reportRuntimeError(err);
|
|
90081
90622
|
}
|
|
90082
90623
|
};
|
|
90624
|
+
exports2.initTelemetrySettings = initTelemetrySettings3;
|
|
90083
90625
|
}
|
|
90084
90626
|
});
|
|
90085
90627
|
|
|
@@ -90087,17 +90629,31 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90087
90629
|
var require_toolsSuiteTelemetry = __commonJS({
|
|
90088
90630
|
"../lib/telemetry/dist/src/toolsSuiteTelemetry/index.js"(exports2) {
|
|
90089
90631
|
"use strict";
|
|
90090
|
-
function
|
|
90632
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
90633
|
+
if (k2 === void 0)
|
|
90634
|
+
k2 = k;
|
|
90635
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
90636
|
+
return m[k];
|
|
90637
|
+
} });
|
|
90638
|
+
} : function(o, m, k, k2) {
|
|
90639
|
+
if (k2 === void 0)
|
|
90640
|
+
k2 = k;
|
|
90641
|
+
o[k2] = m[k];
|
|
90642
|
+
});
|
|
90643
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
90091
90644
|
for (var p in m)
|
|
90092
|
-
if (!
|
|
90093
|
-
|
|
90094
|
-
}
|
|
90645
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
90646
|
+
__createBinding(exports3, m, p);
|
|
90647
|
+
};
|
|
90095
90648
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90096
|
-
|
|
90649
|
+
exports2.processToolsSuiteTelemetry = void 0;
|
|
90650
|
+
__exportStar(require_toolsSuiteTelemetryClient(), exports2);
|
|
90097
90651
|
var toolsSuiteTelemetryDataProcessor_1 = require_toolsSuiteTelemetryDataProcessor();
|
|
90098
|
-
exports2
|
|
90099
|
-
|
|
90100
|
-
|
|
90652
|
+
Object.defineProperty(exports2, "processToolsSuiteTelemetry", { enumerable: true, get: function() {
|
|
90653
|
+
return toolsSuiteTelemetryDataProcessor_1.processToolsSuiteTelemetry;
|
|
90654
|
+
} });
|
|
90655
|
+
__exportStar(require_toolsSuiteTelemetrySettings(), exports2);
|
|
90656
|
+
__exportStar(require_types5(), exports2);
|
|
90101
90657
|
}
|
|
90102
90658
|
});
|
|
90103
90659
|
|
|
@@ -90105,19 +90661,36 @@ var require_toolsSuiteTelemetry = __commonJS({
|
|
|
90105
90661
|
var require_client3 = __commonJS({
|
|
90106
90662
|
"../lib/telemetry/dist/src/client/index.js"(exports2) {
|
|
90107
90663
|
"use strict";
|
|
90664
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
90665
|
+
if (k2 === void 0)
|
|
90666
|
+
k2 = k;
|
|
90667
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
90668
|
+
return m[k];
|
|
90669
|
+
} });
|
|
90670
|
+
} : function(o, m, k, k2) {
|
|
90671
|
+
if (k2 === void 0)
|
|
90672
|
+
k2 = k;
|
|
90673
|
+
o[k2] = m[k];
|
|
90674
|
+
});
|
|
90675
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
90676
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
90677
|
+
} : function(o, v) {
|
|
90678
|
+
o["default"] = v;
|
|
90679
|
+
});
|
|
90108
90680
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
90109
90681
|
if (mod && mod.__esModule)
|
|
90110
90682
|
return mod;
|
|
90111
90683
|
var result2 = {};
|
|
90112
90684
|
if (mod != null) {
|
|
90113
90685
|
for (var k in mod)
|
|
90114
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
90115
|
-
result2
|
|
90686
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
90687
|
+
__createBinding(result2, mod, k);
|
|
90116
90688
|
}
|
|
90117
|
-
result2
|
|
90689
|
+
__setModuleDefault(result2, mod);
|
|
90118
90690
|
return result2;
|
|
90119
90691
|
};
|
|
90120
90692
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90693
|
+
exports2.ClientFactory = void 0;
|
|
90121
90694
|
var system_1 = require_system3();
|
|
90122
90695
|
var telemetryPackageJSON = __importStar(require_package5());
|
|
90123
90696
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
@@ -90149,6 +90722,7 @@ var require_ClientType = __commonJS({
|
|
|
90149
90722
|
"../lib/telemetry/dist/src/client/model/ClientType.js"(exports2) {
|
|
90150
90723
|
"use strict";
|
|
90151
90724
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90725
|
+
exports2.ClientType = void 0;
|
|
90152
90726
|
var ClientType;
|
|
90153
90727
|
(function(ClientType2) {
|
|
90154
90728
|
ClientType2[ClientType2["AzureApplicationInsights"] = 0] = "AzureApplicationInsights";
|
|
@@ -90157,10 +90731,11 @@ var require_ClientType = __commonJS({
|
|
|
90157
90731
|
});
|
|
90158
90732
|
|
|
90159
90733
|
// ../lib/telemetry/dist/src/performance/types.js
|
|
90160
|
-
var
|
|
90734
|
+
var require_types8 = __commonJS({
|
|
90161
90735
|
"../lib/telemetry/dist/src/performance/types.js"(exports2) {
|
|
90162
90736
|
"use strict";
|
|
90163
90737
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90738
|
+
exports2.PerformanceMeasurement = exports2.EntryType = void 0;
|
|
90164
90739
|
var EntryType;
|
|
90165
90740
|
(function(EntryType2) {
|
|
90166
90741
|
EntryType2["START_MARK"] = "START_MARK";
|
|
@@ -90179,7 +90754,8 @@ var require_entries = __commonJS({
|
|
|
90179
90754
|
"../lib/telemetry/dist/src/performance/entries.js"(exports2) {
|
|
90180
90755
|
"use strict";
|
|
90181
90756
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90182
|
-
|
|
90757
|
+
exports2.Measurement = exports2.Mark = void 0;
|
|
90758
|
+
var types_1 = require_types8();
|
|
90183
90759
|
var Mark = class {
|
|
90184
90760
|
constructor(name, type, startTime) {
|
|
90185
90761
|
this.startTime = startTime;
|
|
@@ -90249,8 +90825,9 @@ var require_api = __commonJS({
|
|
|
90249
90825
|
"../lib/telemetry/dist/src/performance/api.js"(exports2) {
|
|
90250
90826
|
"use strict";
|
|
90251
90827
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90828
|
+
exports2.PerformanceMeasurementAPI = void 0;
|
|
90252
90829
|
var entries_1 = require_entries();
|
|
90253
|
-
var types_1 =
|
|
90830
|
+
var types_1 = require_types8();
|
|
90254
90831
|
var performanceNow = require_performance_now();
|
|
90255
90832
|
var PerformanceMeasurementAPI = class extends types_1.PerformanceMeasurement {
|
|
90256
90833
|
static initialize() {
|
|
@@ -90317,6 +90894,7 @@ var require_paramProcessing = __commonJS({
|
|
|
90317
90894
|
"../lib/telemetry/dist/src/util/paramProcessing.js"(exports2) {
|
|
90318
90895
|
"use strict";
|
|
90319
90896
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90897
|
+
exports2.getParamsData = exports2.paramsProcessing = exports2.getValue = exports2.wrongPathErr = exports2.ParamRecordConfig = exports2.ParamRecordConfigField = void 0;
|
|
90320
90898
|
var ParamRecordConfigField = class {
|
|
90321
90899
|
constructor(path3) {
|
|
90322
90900
|
this.path = path3;
|
|
@@ -90331,8 +90909,9 @@ var require_paramProcessing = __commonJS({
|
|
|
90331
90909
|
}
|
|
90332
90910
|
};
|
|
90333
90911
|
exports2.ParamRecordConfig = ParamRecordConfig;
|
|
90334
|
-
|
|
90335
|
-
exports2.
|
|
90912
|
+
var wrongPathErr = (field, index) => new Error(`Wrong path for '${field}' field is specified in instructions with index - ${index}`);
|
|
90913
|
+
exports2.wrongPathErr = wrongPathErr;
|
|
90914
|
+
var getValue = (obj, path3, field, paramIndex) => {
|
|
90336
90915
|
const pathArr = path3.split("/");
|
|
90337
90916
|
let node = obj, i = 0;
|
|
90338
90917
|
while (i < pathArr.length) {
|
|
@@ -90344,7 +90923,8 @@ var require_paramProcessing = __commonJS({
|
|
|
90344
90923
|
}
|
|
90345
90924
|
return node;
|
|
90346
90925
|
};
|
|
90347
|
-
exports2.
|
|
90926
|
+
exports2.getValue = getValue;
|
|
90927
|
+
var paramsProcessing = (params, instructions) => {
|
|
90348
90928
|
const processedDimensions = {};
|
|
90349
90929
|
const processedMeasurements = {};
|
|
90350
90930
|
let param = null;
|
|
@@ -90367,7 +90947,8 @@ var require_paramProcessing = __commonJS({
|
|
|
90367
90947
|
}
|
|
90368
90948
|
return [processedDimensions, processedMeasurements];
|
|
90369
90949
|
};
|
|
90370
|
-
exports2.
|
|
90950
|
+
exports2.paramsProcessing = paramsProcessing;
|
|
90951
|
+
var getParamsData = (params, instructions) => {
|
|
90371
90952
|
let processedDimensions, processedMeasurements;
|
|
90372
90953
|
let customDimensions = {};
|
|
90373
90954
|
let customMeasurements = {};
|
|
@@ -90388,6 +90969,7 @@ var require_paramProcessing = __commonJS({
|
|
|
90388
90969
|
}
|
|
90389
90970
|
return [customDimensions, customMeasurements];
|
|
90390
90971
|
};
|
|
90972
|
+
exports2.getParamsData = getParamsData;
|
|
90391
90973
|
}
|
|
90392
90974
|
});
|
|
90393
90975
|
|
|
@@ -90396,10 +90978,11 @@ var require_interceptor = __commonJS({
|
|
|
90396
90978
|
"../lib/telemetry/dist/src/interceptor/index.js"(exports2) {
|
|
90397
90979
|
"use strict";
|
|
90398
90980
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90981
|
+
exports2.captureParamAsync = exports2.captureParam = exports2.durationAsync = exports2.duration = exports2.notifyAsync = exports2.notify = void 0;
|
|
90399
90982
|
var client_1 = require_client3();
|
|
90400
90983
|
var api_1 = require_api();
|
|
90401
90984
|
var paramProcessing_1 = require_paramProcessing();
|
|
90402
|
-
|
|
90985
|
+
var notify = (target, originalFn, evtName, sampleRate) => {
|
|
90403
90986
|
return (...args) => {
|
|
90404
90987
|
const result2 = originalFn.apply(target, args);
|
|
90405
90988
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
@@ -90407,7 +90990,8 @@ var require_interceptor = __commonJS({
|
|
|
90407
90990
|
return result2;
|
|
90408
90991
|
};
|
|
90409
90992
|
};
|
|
90410
|
-
exports2.
|
|
90993
|
+
exports2.notify = notify;
|
|
90994
|
+
var notifyAsync = (target, originalFn, evtName, sampleRate) => {
|
|
90411
90995
|
return async (...args) => {
|
|
90412
90996
|
const result2 = await originalFn.apply(target, args);
|
|
90413
90997
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
@@ -90415,31 +90999,34 @@ var require_interceptor = __commonJS({
|
|
|
90415
90999
|
return result2;
|
|
90416
91000
|
};
|
|
90417
91001
|
};
|
|
90418
|
-
exports2.
|
|
91002
|
+
exports2.notifyAsync = notifyAsync;
|
|
91003
|
+
var duration = (target, originalFn, evtName, sampleRate) => {
|
|
90419
91004
|
return (...args) => {
|
|
90420
91005
|
const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
|
|
90421
91006
|
const result2 = originalFn.apply(target, args);
|
|
90422
91007
|
api_1.PerformanceMeasurementAPI.endMark(markName);
|
|
90423
91008
|
api_1.PerformanceMeasurementAPI.measure(markName);
|
|
90424
|
-
const
|
|
91009
|
+
const duration2 = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
|
|
90425
91010
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
90426
|
-
appinsightClient.report(evtName, {}, { ms:
|
|
91011
|
+
appinsightClient.report(evtName, {}, { ms: duration2 }, sampleRate);
|
|
90427
91012
|
return result2;
|
|
90428
91013
|
};
|
|
90429
91014
|
};
|
|
90430
|
-
exports2.
|
|
91015
|
+
exports2.duration = duration;
|
|
91016
|
+
var durationAsync = (target, originalFn, evtName, sampleRate) => {
|
|
90431
91017
|
return async (...args) => {
|
|
90432
91018
|
const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
|
|
90433
91019
|
const result2 = await originalFn.apply(target, args);
|
|
90434
91020
|
api_1.PerformanceMeasurementAPI.endMark(markName);
|
|
90435
91021
|
api_1.PerformanceMeasurementAPI.measure(markName);
|
|
90436
|
-
const
|
|
91022
|
+
const duration2 = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
|
|
90437
91023
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
90438
|
-
appinsightClient.report(evtName, {}, { ms:
|
|
91024
|
+
appinsightClient.report(evtName, {}, { ms: duration2 }, sampleRate);
|
|
90439
91025
|
return result2;
|
|
90440
91026
|
};
|
|
90441
91027
|
};
|
|
90442
|
-
exports2.
|
|
91028
|
+
exports2.durationAsync = durationAsync;
|
|
91029
|
+
var captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
|
|
90443
91030
|
return (...args) => {
|
|
90444
91031
|
const result2 = originalFn.apply(target, args);
|
|
90445
91032
|
const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
|
|
@@ -90448,7 +91035,8 @@ var require_interceptor = __commonJS({
|
|
|
90448
91035
|
return result2;
|
|
90449
91036
|
};
|
|
90450
91037
|
};
|
|
90451
|
-
exports2.
|
|
91038
|
+
exports2.captureParam = captureParam;
|
|
91039
|
+
var captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
|
|
90452
91040
|
return async (...args) => {
|
|
90453
91041
|
const result2 = await originalFn.apply(target, args);
|
|
90454
91042
|
const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
|
|
@@ -90457,6 +91045,7 @@ var require_interceptor = __commonJS({
|
|
|
90457
91045
|
return result2;
|
|
90458
91046
|
};
|
|
90459
91047
|
};
|
|
91048
|
+
exports2.captureParamAsync = captureParamAsync;
|
|
90460
91049
|
}
|
|
90461
91050
|
});
|
|
90462
91051
|
|
|
@@ -90464,19 +91053,36 @@ var require_interceptor = __commonJS({
|
|
|
90464
91053
|
var require_config4 = __commonJS({
|
|
90465
91054
|
"../lib/telemetry/dist/src/interceptor/config.js"(exports2) {
|
|
90466
91055
|
"use strict";
|
|
91056
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
91057
|
+
if (k2 === void 0)
|
|
91058
|
+
k2 = k;
|
|
91059
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
91060
|
+
return m[k];
|
|
91061
|
+
} });
|
|
91062
|
+
} : function(o, m, k, k2) {
|
|
91063
|
+
if (k2 === void 0)
|
|
91064
|
+
k2 = k;
|
|
91065
|
+
o[k2] = m[k];
|
|
91066
|
+
});
|
|
91067
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
91068
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
91069
|
+
} : function(o, v) {
|
|
91070
|
+
o["default"] = v;
|
|
91071
|
+
});
|
|
90467
91072
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
90468
91073
|
if (mod && mod.__esModule)
|
|
90469
91074
|
return mod;
|
|
90470
91075
|
var result2 = {};
|
|
90471
91076
|
if (mod != null) {
|
|
90472
91077
|
for (var k in mod)
|
|
90473
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
90474
|
-
result2
|
|
91078
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
91079
|
+
__createBinding(result2, mod, k);
|
|
90475
91080
|
}
|
|
90476
|
-
result2
|
|
91081
|
+
__setModuleDefault(result2, mod);
|
|
90477
91082
|
return result2;
|
|
90478
91083
|
};
|
|
90479
91084
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
91085
|
+
exports2.asyncInterceptorTypesMapping = exports2.interceptorTypesMapping = exports2.interceptorTypes = void 0;
|
|
90480
91086
|
var interceptors = __importStar(require_interceptor());
|
|
90481
91087
|
var interceptorTypes;
|
|
90482
91088
|
(function(interceptorTypes2) {
|
|
@@ -90502,6 +91108,7 @@ var require_decorator = __commonJS({
|
|
|
90502
91108
|
"../lib/telemetry/dist/src/decorator/index.js"(exports2) {
|
|
90503
91109
|
"use strict";
|
|
90504
91110
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
91111
|
+
exports2.logTelemetryAsync = exports2.logTelemetry = void 0;
|
|
90505
91112
|
var config_1 = require_config4();
|
|
90506
91113
|
var decorCommon = (isAsync, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
|
|
90507
91114
|
const originalMethod = descriptor.value;
|
|
@@ -90509,16 +91116,18 @@ var require_decorator = __commonJS({
|
|
|
90509
91116
|
const interceptor = interceptorTypesMap.get(interceptorType);
|
|
90510
91117
|
descriptor.value = interceptor(target, originalMethod, evtName, sampleRate, paramsCapturingInstructions);
|
|
90511
91118
|
};
|
|
90512
|
-
|
|
91119
|
+
var logTelemetry = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
|
|
90513
91120
|
return (target, functionName, descriptor) => {
|
|
90514
91121
|
decorCommon(false, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
|
|
90515
91122
|
};
|
|
90516
91123
|
};
|
|
90517
|
-
exports2.
|
|
91124
|
+
exports2.logTelemetry = logTelemetry;
|
|
91125
|
+
var logTelemetryAsync = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
|
|
90518
91126
|
return (target, functionName, descriptor) => {
|
|
90519
91127
|
decorCommon(true, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
|
|
90520
91128
|
};
|
|
90521
91129
|
};
|
|
91130
|
+
exports2.logTelemetryAsync = logTelemetryAsync;
|
|
90522
91131
|
}
|
|
90523
91132
|
});
|
|
90524
91133
|
|
|
@@ -90527,37 +91136,74 @@ var require_src8 = __commonJS({
|
|
|
90527
91136
|
"../lib/telemetry/dist/src/index.js"(exports2) {
|
|
90528
91137
|
"use strict";
|
|
90529
91138
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
91139
|
+
exports2.TelemetrySettings = exports2.getTelemetrySetting = exports2.setEnableTelemetry = exports2.ToolsSuiteTelemetryClient = exports2.initTelemetrySettings = exports2.logTelemetryAsync = exports2.logTelemetry = exports2.ParamRecordConfigField = exports2.ParamRecordConfig = exports2.PerformanceMeasurementAPI = exports2.interceptorTypes = exports2.SampleRate = exports2.EventName = exports2.EventHeader = exports2.TelemetrySystem = exports2.ApplicationInsightClient = exports2.ClientType = exports2.Client = exports2.ClientFactory = void 0;
|
|
90530
91140
|
var index_1 = require_client3();
|
|
90531
|
-
exports2
|
|
91141
|
+
Object.defineProperty(exports2, "ClientFactory", { enumerable: true, get: function() {
|
|
91142
|
+
return index_1.ClientFactory;
|
|
91143
|
+
} });
|
|
90532
91144
|
var client_1 = require_client2();
|
|
90533
|
-
exports2
|
|
91145
|
+
Object.defineProperty(exports2, "Client", { enumerable: true, get: function() {
|
|
91146
|
+
return client_1.Client;
|
|
91147
|
+
} });
|
|
90534
91148
|
var ClientType_1 = require_ClientType();
|
|
90535
|
-
exports2
|
|
91149
|
+
Object.defineProperty(exports2, "ClientType", { enumerable: true, get: function() {
|
|
91150
|
+
return ClientType_1.ClientType;
|
|
91151
|
+
} });
|
|
90536
91152
|
var appInsightClient_1 = require_appInsightClient();
|
|
90537
|
-
exports2
|
|
91153
|
+
Object.defineProperty(exports2, "ApplicationInsightClient", { enumerable: true, get: function() {
|
|
91154
|
+
return appInsightClient_1.ApplicationInsightClient;
|
|
91155
|
+
} });
|
|
90538
91156
|
var system_1 = require_system3();
|
|
90539
|
-
exports2
|
|
91157
|
+
Object.defineProperty(exports2, "TelemetrySystem", { enumerable: true, get: function() {
|
|
91158
|
+
return system_1.TelemetrySystem;
|
|
91159
|
+
} });
|
|
90540
91160
|
var EventHeader_1 = require_EventHeader();
|
|
90541
|
-
exports2
|
|
91161
|
+
Object.defineProperty(exports2, "EventHeader", { enumerable: true, get: function() {
|
|
91162
|
+
return EventHeader_1.EventHeader;
|
|
91163
|
+
} });
|
|
90542
91164
|
var EventName_1 = require_EventName();
|
|
90543
|
-
exports2
|
|
91165
|
+
Object.defineProperty(exports2, "EventName", { enumerable: true, get: function() {
|
|
91166
|
+
return EventName_1.EventName;
|
|
91167
|
+
} });
|
|
90544
91168
|
var SampleRate_1 = require_SampleRate();
|
|
90545
|
-
exports2
|
|
91169
|
+
Object.defineProperty(exports2, "SampleRate", { enumerable: true, get: function() {
|
|
91170
|
+
return SampleRate_1.SampleRate;
|
|
91171
|
+
} });
|
|
90546
91172
|
var config_1 = require_config4();
|
|
90547
|
-
exports2
|
|
91173
|
+
Object.defineProperty(exports2, "interceptorTypes", { enumerable: true, get: function() {
|
|
91174
|
+
return config_1.interceptorTypes;
|
|
91175
|
+
} });
|
|
90548
91176
|
var api_1 = require_api();
|
|
90549
|
-
exports2
|
|
91177
|
+
Object.defineProperty(exports2, "PerformanceMeasurementAPI", { enumerable: true, get: function() {
|
|
91178
|
+
return api_1.PerformanceMeasurementAPI;
|
|
91179
|
+
} });
|
|
90550
91180
|
var paramProcessing_1 = require_paramProcessing();
|
|
90551
|
-
exports2
|
|
90552
|
-
|
|
91181
|
+
Object.defineProperty(exports2, "ParamRecordConfig", { enumerable: true, get: function() {
|
|
91182
|
+
return paramProcessing_1.ParamRecordConfig;
|
|
91183
|
+
} });
|
|
91184
|
+
Object.defineProperty(exports2, "ParamRecordConfigField", { enumerable: true, get: function() {
|
|
91185
|
+
return paramProcessing_1.ParamRecordConfigField;
|
|
91186
|
+
} });
|
|
90553
91187
|
var decorator_1 = require_decorator();
|
|
90554
|
-
exports2
|
|
90555
|
-
|
|
91188
|
+
Object.defineProperty(exports2, "logTelemetry", { enumerable: true, get: function() {
|
|
91189
|
+
return decorator_1.logTelemetry;
|
|
91190
|
+
} });
|
|
91191
|
+
Object.defineProperty(exports2, "logTelemetryAsync", { enumerable: true, get: function() {
|
|
91192
|
+
return decorator_1.logTelemetryAsync;
|
|
91193
|
+
} });
|
|
90556
91194
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
90557
|
-
exports2
|
|
90558
|
-
|
|
90559
|
-
|
|
90560
|
-
exports2
|
|
91195
|
+
Object.defineProperty(exports2, "initTelemetrySettings", { enumerable: true, get: function() {
|
|
91196
|
+
return toolsSuiteTelemetry_1.initTelemetrySettings;
|
|
91197
|
+
} });
|
|
91198
|
+
Object.defineProperty(exports2, "ToolsSuiteTelemetryClient", { enumerable: true, get: function() {
|
|
91199
|
+
return toolsSuiteTelemetry_1.ToolsSuiteTelemetryClient;
|
|
91200
|
+
} });
|
|
91201
|
+
Object.defineProperty(exports2, "setEnableTelemetry", { enumerable: true, get: function() {
|
|
91202
|
+
return toolsSuiteTelemetry_1.setEnableTelemetry;
|
|
91203
|
+
} });
|
|
91204
|
+
Object.defineProperty(exports2, "getTelemetrySetting", { enumerable: true, get: function() {
|
|
91205
|
+
return toolsSuiteTelemetry_1.getTelemetrySetting;
|
|
91206
|
+
} });
|
|
90561
91207
|
exports2.TelemetrySettings = {};
|
|
90562
91208
|
}
|
|
90563
91209
|
});
|