@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
|
@@ -2994,6 +2994,7 @@ var require_types = __commonJS({
|
|
|
2994
2994
|
"../lib/app-templates/dist/types.js"(exports2) {
|
|
2995
2995
|
"use strict";
|
|
2996
2996
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2997
|
+
exports2.SapUiLibs = exports2.DatasourceType = exports2.PROJECT_TYPE = void 0;
|
|
2997
2998
|
exports2.PROJECT_TYPE = {
|
|
2998
2999
|
WorklistV2: "V2_WORKLIST",
|
|
2999
3000
|
ListReportObjectPageV2: "V2_LIST_REPORT",
|
|
@@ -3028,14 +3029,26 @@ var require_types = __commonJS({
|
|
|
3028
3029
|
var require_dist = __commonJS({
|
|
3029
3030
|
"../lib/app-templates/dist/index.js"(exports2) {
|
|
3030
3031
|
"use strict";
|
|
3031
|
-
function
|
|
3032
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3033
|
+
if (k2 === void 0)
|
|
3034
|
+
k2 = k;
|
|
3035
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
3036
|
+
return m[k];
|
|
3037
|
+
} });
|
|
3038
|
+
} : function(o, m, k, k2) {
|
|
3039
|
+
if (k2 === void 0)
|
|
3040
|
+
k2 = k;
|
|
3041
|
+
o[k2] = m[k];
|
|
3042
|
+
});
|
|
3043
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
3032
3044
|
for (var p in m)
|
|
3033
|
-
if (!
|
|
3034
|
-
|
|
3035
|
-
}
|
|
3045
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
3046
|
+
__createBinding(exports3, m, p);
|
|
3047
|
+
};
|
|
3036
3048
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3049
|
+
exports2.templatesDirPath = exports2.TemplateFileName = void 0;
|
|
3037
3050
|
var path_1 = require("path");
|
|
3038
|
-
|
|
3051
|
+
__exportStar(require_types(), exports2);
|
|
3039
3052
|
var TemplateFileName3;
|
|
3040
3053
|
(function(TemplateFileName4) {
|
|
3041
3054
|
TemplateFileName4["AppSettings"] = "app-settings";
|
|
@@ -3090,6 +3103,7 @@ var require_application = __commonJS({
|
|
|
3090
3103
|
"../lib/sapux-spec/dist/application.js"(exports2) {
|
|
3091
3104
|
"use strict";
|
|
3092
3105
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3106
|
+
exports2.AppPomXmlArtifactIdPlaceholder = exports2.AppType = exports2.RootIntent = exports2.PageHeaderType = exports2.OdataVersion = exports2.FioriElementsVersion = void 0;
|
|
3093
3107
|
var FioriElementsVersion;
|
|
3094
3108
|
(function(FioriElementsVersion2) {
|
|
3095
3109
|
FioriElementsVersion2["v2"] = "v2";
|
|
@@ -3119,11 +3133,20 @@ var require_application = __commonJS({
|
|
|
3119
3133
|
}
|
|
3120
3134
|
});
|
|
3121
3135
|
|
|
3136
|
+
// ../lib/sapux-spec/dist/controls/filterBar.js
|
|
3137
|
+
var require_filterBar = __commonJS({
|
|
3138
|
+
"../lib/sapux-spec/dist/controls/filterBar.js"(exports2) {
|
|
3139
|
+
"use strict";
|
|
3140
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3141
|
+
}
|
|
3142
|
+
});
|
|
3143
|
+
|
|
3122
3144
|
// ../lib/sapux-spec/dist/controls/table.js
|
|
3123
3145
|
var require_table = __commonJS({
|
|
3124
3146
|
"../lib/sapux-spec/dist/controls/table.js"(exports2) {
|
|
3125
3147
|
"use strict";
|
|
3126
3148
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3149
|
+
exports2.TableMode = exports2.HAlign = void 0;
|
|
3127
3150
|
var HAlign;
|
|
3128
3151
|
(function(HAlign2) {
|
|
3129
3152
|
HAlign2["initial"] = "Initial";
|
|
@@ -3145,17 +3168,56 @@ var require_table = __commonJS({
|
|
|
3145
3168
|
}
|
|
3146
3169
|
});
|
|
3147
3170
|
|
|
3171
|
+
// ../lib/sapux-spec/dist/controls/objectHeader.js
|
|
3172
|
+
var require_objectHeader = __commonJS({
|
|
3173
|
+
"../lib/sapux-spec/dist/controls/objectHeader.js"(exports2) {
|
|
3174
|
+
"use strict";
|
|
3175
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3176
|
+
}
|
|
3177
|
+
});
|
|
3178
|
+
|
|
3179
|
+
// ../lib/sapux-spec/dist/controls/chart.js
|
|
3180
|
+
var require_chart = __commonJS({
|
|
3181
|
+
"../lib/sapux-spec/dist/controls/chart.js"(exports2) {
|
|
3182
|
+
"use strict";
|
|
3183
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3184
|
+
}
|
|
3185
|
+
});
|
|
3186
|
+
|
|
3187
|
+
// ../lib/sapux-spec/dist/controls/facets.js
|
|
3188
|
+
var require_facets = __commonJS({
|
|
3189
|
+
"../lib/sapux-spec/dist/controls/facets.js"(exports2) {
|
|
3190
|
+
"use strict";
|
|
3191
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3192
|
+
}
|
|
3193
|
+
});
|
|
3194
|
+
|
|
3148
3195
|
// ../lib/sapux-spec/dist/controls/index.js
|
|
3149
3196
|
var require_controls = __commonJS({
|
|
3150
3197
|
"../lib/sapux-spec/dist/controls/index.js"(exports2) {
|
|
3151
3198
|
"use strict";
|
|
3152
|
-
function
|
|
3199
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3200
|
+
if (k2 === void 0)
|
|
3201
|
+
k2 = k;
|
|
3202
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
3203
|
+
return m[k];
|
|
3204
|
+
} });
|
|
3205
|
+
} : function(o, m, k, k2) {
|
|
3206
|
+
if (k2 === void 0)
|
|
3207
|
+
k2 = k;
|
|
3208
|
+
o[k2] = m[k];
|
|
3209
|
+
});
|
|
3210
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
3153
3211
|
for (var p in m)
|
|
3154
|
-
if (!
|
|
3155
|
-
|
|
3156
|
-
}
|
|
3212
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
3213
|
+
__createBinding(exports3, m, p);
|
|
3214
|
+
};
|
|
3157
3215
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3158
|
-
|
|
3216
|
+
__exportStar(require_filterBar(), exports2);
|
|
3217
|
+
__exportStar(require_table(), exports2);
|
|
3218
|
+
__exportStar(require_objectHeader(), exports2);
|
|
3219
|
+
__exportStar(require_chart(), exports2);
|
|
3220
|
+
__exportStar(require_facets(), exports2);
|
|
3159
3221
|
}
|
|
3160
3222
|
});
|
|
3161
3223
|
|
|
@@ -3164,6 +3226,7 @@ var require_page = __commonJS({
|
|
|
3164
3226
|
"../lib/sapux-spec/dist/pages/page.js"(exports2) {
|
|
3165
3227
|
"use strict";
|
|
3166
3228
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3229
|
+
exports2.PageType = void 0;
|
|
3167
3230
|
var PageType;
|
|
3168
3231
|
(function(PageType2) {
|
|
3169
3232
|
PageType2["ObjectPage"] = "ObjectPage";
|
|
@@ -3179,13 +3242,48 @@ var require_page = __commonJS({
|
|
|
3179
3242
|
var require_pages = __commonJS({
|
|
3180
3243
|
"../lib/sapux-spec/dist/pages/index.js"(exports2) {
|
|
3181
3244
|
"use strict";
|
|
3182
|
-
function
|
|
3245
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3246
|
+
if (k2 === void 0)
|
|
3247
|
+
k2 = k;
|
|
3248
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
3249
|
+
return m[k];
|
|
3250
|
+
} });
|
|
3251
|
+
} : function(o, m, k, k2) {
|
|
3252
|
+
if (k2 === void 0)
|
|
3253
|
+
k2 = k;
|
|
3254
|
+
o[k2] = m[k];
|
|
3255
|
+
});
|
|
3256
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
3183
3257
|
for (var p in m)
|
|
3184
|
-
if (!
|
|
3185
|
-
|
|
3186
|
-
}
|
|
3258
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
3259
|
+
__createBinding(exports3, m, p);
|
|
3260
|
+
};
|
|
3261
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3262
|
+
__exportStar(require_page(), exports2);
|
|
3263
|
+
}
|
|
3264
|
+
});
|
|
3265
|
+
|
|
3266
|
+
// ../lib/sapux-spec/dist/webapp/controllers.js
|
|
3267
|
+
var require_controllers = __commonJS({
|
|
3268
|
+
"../lib/sapux-spec/dist/webapp/controllers.js"(exports2) {
|
|
3269
|
+
"use strict";
|
|
3270
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3271
|
+
}
|
|
3272
|
+
});
|
|
3273
|
+
|
|
3274
|
+
// ../lib/sapux-spec/dist/webapp/flex.js
|
|
3275
|
+
var require_flex = __commonJS({
|
|
3276
|
+
"../lib/sapux-spec/dist/webapp/flex.js"(exports2) {
|
|
3277
|
+
"use strict";
|
|
3278
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3279
|
+
}
|
|
3280
|
+
});
|
|
3281
|
+
|
|
3282
|
+
// ../lib/sapux-spec/dist/webapp/manifest/sapUiGeneric.js
|
|
3283
|
+
var require_sapUiGeneric = __commonJS({
|
|
3284
|
+
"../lib/sapux-spec/dist/webapp/manifest/sapUiGeneric.js"(exports2) {
|
|
3285
|
+
"use strict";
|
|
3187
3286
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3188
|
-
__export2(require_page());
|
|
3189
3287
|
}
|
|
3190
3288
|
});
|
|
3191
3289
|
|
|
@@ -3194,6 +3292,7 @@ var require_sapUi5 = __commonJS({
|
|
|
3194
3292
|
"../lib/sapux-spec/dist/webapp/manifest/sapUi5.js"(exports2) {
|
|
3195
3293
|
"use strict";
|
|
3196
3294
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3295
|
+
exports2.ViewTypes = exports2.FlexibleColumnLayoutType = exports2.FlexibleColumnLayoutAggregations = exports2.FIORI_FCL_ROOT_ID = exports2.FIORI_FCL_ROOT_VIEW_NAME = exports2.FIORI_FCL_ROUTER_CLASS = void 0;
|
|
3197
3296
|
exports2.FIORI_FCL_ROUTER_CLASS = "sap.f.routing.Router";
|
|
3198
3297
|
exports2.FIORI_FCL_ROOT_VIEW_NAME = "sap.fe.templates.RootContainer.view.Fcl";
|
|
3199
3298
|
exports2.FIORI_FCL_ROOT_ID = "appRootView";
|
|
@@ -3225,17 +3324,39 @@ var require_sapUi5 = __commonJS({
|
|
|
3225
3324
|
}
|
|
3226
3325
|
});
|
|
3227
3326
|
|
|
3327
|
+
// ../lib/sapux-spec/dist/webapp/manifest/sapOvp.js
|
|
3328
|
+
var require_sapOvp = __commonJS({
|
|
3329
|
+
"../lib/sapux-spec/dist/webapp/manifest/sapOvp.js"(exports2) {
|
|
3330
|
+
"use strict";
|
|
3331
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3332
|
+
}
|
|
3333
|
+
});
|
|
3334
|
+
|
|
3228
3335
|
// ../lib/sapux-spec/dist/webapp/manifest/index.js
|
|
3229
3336
|
var require_manifest = __commonJS({
|
|
3230
3337
|
"../lib/sapux-spec/dist/webapp/manifest/index.js"(exports2) {
|
|
3231
3338
|
"use strict";
|
|
3232
|
-
function
|
|
3339
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3340
|
+
if (k2 === void 0)
|
|
3341
|
+
k2 = k;
|
|
3342
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
3343
|
+
return m[k];
|
|
3344
|
+
} });
|
|
3345
|
+
} : function(o, m, k, k2) {
|
|
3346
|
+
if (k2 === void 0)
|
|
3347
|
+
k2 = k;
|
|
3348
|
+
o[k2] = m[k];
|
|
3349
|
+
});
|
|
3350
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
3233
3351
|
for (var p in m)
|
|
3234
|
-
if (!
|
|
3235
|
-
|
|
3236
|
-
}
|
|
3352
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
3353
|
+
__createBinding(exports3, m, p);
|
|
3354
|
+
};
|
|
3237
3355
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3238
|
-
|
|
3356
|
+
exports2.DataSourceType = void 0;
|
|
3357
|
+
__exportStar(require_sapUiGeneric(), exports2);
|
|
3358
|
+
__exportStar(require_sapUi5(), exports2);
|
|
3359
|
+
__exportStar(require_sapOvp(), exports2);
|
|
3239
3360
|
var DataSourceType;
|
|
3240
3361
|
(function(DataSourceType2) {
|
|
3241
3362
|
DataSourceType2["OData"] = "OData";
|
|
@@ -3244,17 +3365,39 @@ var require_manifest = __commonJS({
|
|
|
3244
3365
|
}
|
|
3245
3366
|
});
|
|
3246
3367
|
|
|
3368
|
+
// ../lib/sapux-spec/dist/webapp/metadata.js
|
|
3369
|
+
var require_metadata = __commonJS({
|
|
3370
|
+
"../lib/sapux-spec/dist/webapp/metadata.js"(exports2) {
|
|
3371
|
+
"use strict";
|
|
3372
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3373
|
+
}
|
|
3374
|
+
});
|
|
3375
|
+
|
|
3247
3376
|
// ../lib/sapux-spec/dist/webapp/index.js
|
|
3248
3377
|
var require_webapp = __commonJS({
|
|
3249
3378
|
"../lib/sapux-spec/dist/webapp/index.js"(exports2) {
|
|
3250
3379
|
"use strict";
|
|
3251
|
-
function
|
|
3380
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3381
|
+
if (k2 === void 0)
|
|
3382
|
+
k2 = k;
|
|
3383
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
3384
|
+
return m[k];
|
|
3385
|
+
} });
|
|
3386
|
+
} : function(o, m, k, k2) {
|
|
3387
|
+
if (k2 === void 0)
|
|
3388
|
+
k2 = k;
|
|
3389
|
+
o[k2] = m[k];
|
|
3390
|
+
});
|
|
3391
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
3252
3392
|
for (var p in m)
|
|
3253
|
-
if (!
|
|
3254
|
-
|
|
3255
|
-
}
|
|
3393
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
3394
|
+
__createBinding(exports3, m, p);
|
|
3395
|
+
};
|
|
3256
3396
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3257
|
-
|
|
3397
|
+
__exportStar(require_controllers(), exports2);
|
|
3398
|
+
__exportStar(require_flex(), exports2);
|
|
3399
|
+
__exportStar(require_manifest(), exports2);
|
|
3400
|
+
__exportStar(require_metadata(), exports2);
|
|
3258
3401
|
}
|
|
3259
3402
|
});
|
|
3260
3403
|
|
|
@@ -3263,6 +3406,7 @@ var require_constants = __commonJS({
|
|
|
3263
3406
|
"../lib/sapux-spec/dist/constants.js"(exports2) {
|
|
3264
3407
|
"use strict";
|
|
3265
3408
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3409
|
+
exports2.SchemeName = exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.FileName = exports2.DirName = void 0;
|
|
3266
3410
|
var os_1 = require("os");
|
|
3267
3411
|
var path_1 = require("path");
|
|
3268
3412
|
var DirName3;
|
|
@@ -3310,9 +3454,10 @@ var require_constants = __commonJS({
|
|
|
3310
3454
|
FioriToolsSettings2["dir"] = ".fioritools";
|
|
3311
3455
|
FioriToolsSettings2["migrationSettingsFile"] = "migrationSettings.json";
|
|
3312
3456
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
3313
|
-
|
|
3457
|
+
var getFioriToolsDirectory = () => {
|
|
3314
3458
|
return path_1.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
3315
3459
|
};
|
|
3460
|
+
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
3316
3461
|
var SchemeName;
|
|
3317
3462
|
(function(SchemeName2) {
|
|
3318
3463
|
SchemeName2["Ftfs"] = "ftfs";
|
|
@@ -3325,6 +3470,7 @@ var require_package2 = __commonJS({
|
|
|
3325
3470
|
"../lib/sapux-spec/dist/package.js"(exports2) {
|
|
3326
3471
|
"use strict";
|
|
3327
3472
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3473
|
+
exports2.UI5FlexLayer = void 0;
|
|
3328
3474
|
var UI5FlexLayer;
|
|
3329
3475
|
(function(UI5FlexLayer2) {
|
|
3330
3476
|
UI5FlexLayer2["VENDOR"] = "VENDOR";
|
|
@@ -3338,6 +3484,7 @@ var require_project = __commonJS({
|
|
|
3338
3484
|
"../lib/sapux-spec/dist/project.js"(exports2) {
|
|
3339
3485
|
"use strict";
|
|
3340
3486
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3487
|
+
exports2.DetailedProjectType = exports2.ProjectType = void 0;
|
|
3341
3488
|
var ProjectType;
|
|
3342
3489
|
(function(ProjectType2) {
|
|
3343
3490
|
ProjectType2["Cap"] = "Cap";
|
|
@@ -3356,22 +3503,35 @@ var require_project = __commonJS({
|
|
|
3356
3503
|
var require_dist2 = __commonJS({
|
|
3357
3504
|
"../lib/sapux-spec/dist/index.js"(exports2) {
|
|
3358
3505
|
"use strict";
|
|
3359
|
-
function
|
|
3506
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3507
|
+
if (k2 === void 0)
|
|
3508
|
+
k2 = k;
|
|
3509
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
3510
|
+
return m[k];
|
|
3511
|
+
} });
|
|
3512
|
+
} : function(o, m, k, k2) {
|
|
3513
|
+
if (k2 === void 0)
|
|
3514
|
+
k2 = k;
|
|
3515
|
+
o[k2] = m[k];
|
|
3516
|
+
});
|
|
3517
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
3360
3518
|
for (var p in m)
|
|
3361
|
-
if (!
|
|
3362
|
-
|
|
3363
|
-
}
|
|
3519
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
3520
|
+
__createBinding(exports3, m, p);
|
|
3521
|
+
};
|
|
3364
3522
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3523
|
+
exports2.location = void 0;
|
|
3524
|
+
__exportStar(require_application(), exports2);
|
|
3525
|
+
__exportStar(require_controls(), exports2);
|
|
3526
|
+
__exportStar(require_pages(), exports2);
|
|
3527
|
+
__exportStar(require_webapp(), exports2);
|
|
3528
|
+
__exportStar(require_constants(), exports2);
|
|
3529
|
+
__exportStar(require_package2(), exports2);
|
|
3530
|
+
__exportStar(require_project(), exports2);
|
|
3531
|
+
var location = () => {
|
|
3373
3532
|
return __dirname.replace(/\\/g, "/");
|
|
3374
3533
|
};
|
|
3534
|
+
exports2.location = location;
|
|
3375
3535
|
}
|
|
3376
3536
|
});
|
|
3377
3537
|
|
|
@@ -3452,6 +3612,7 @@ var require_contants = __commonJS({
|
|
|
3452
3612
|
"../lib/store/dist/contants.js"(exports2) {
|
|
3453
3613
|
"use strict";
|
|
3454
3614
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3615
|
+
exports2.Entity = exports2.ServiceName = void 0;
|
|
3455
3616
|
var ServiceName;
|
|
3456
3617
|
(function(ServiceName2) {
|
|
3457
3618
|
ServiceName2["OldSystemService"] = "fiori/system/info";
|
|
@@ -8050,6 +8211,7 @@ var require_i18n = __commonJS({
|
|
|
8050
8211
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8051
8212
|
};
|
|
8052
8213
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8214
|
+
exports2.text = exports2.initI18n = void 0;
|
|
8053
8215
|
var i18next_1 = __importDefault((init_i18next(), __toCommonJS(i18next_exports)));
|
|
8054
8216
|
var i18next_fs_backend_1 = __importDefault(require_cjs());
|
|
8055
8217
|
var path_1 = __importDefault(require("path"));
|
|
@@ -8503,35 +8665,41 @@ var require_browser = __commonJS({
|
|
|
8503
8665
|
}
|
|
8504
8666
|
});
|
|
8505
8667
|
|
|
8506
|
-
//
|
|
8668
|
+
// ../../node_modules/has-flag/index.js
|
|
8507
8669
|
var require_has_flag = __commonJS({
|
|
8508
|
-
"
|
|
8670
|
+
"../../node_modules/has-flag/index.js"(exports2, module2) {
|
|
8509
8671
|
"use strict";
|
|
8510
|
-
module2.exports = (flag, argv) => {
|
|
8511
|
-
argv = argv || process.argv;
|
|
8672
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
8512
8673
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
8513
|
-
const
|
|
8514
|
-
const
|
|
8515
|
-
return
|
|
8674
|
+
const position = argv.indexOf(prefix + flag);
|
|
8675
|
+
const terminatorPosition = argv.indexOf("--");
|
|
8676
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
8516
8677
|
};
|
|
8517
8678
|
}
|
|
8518
8679
|
});
|
|
8519
8680
|
|
|
8520
|
-
//
|
|
8681
|
+
// ../../node_modules/supports-color/index.js
|
|
8521
8682
|
var require_supports_color = __commonJS({
|
|
8522
|
-
"
|
|
8683
|
+
"../../node_modules/supports-color/index.js"(exports2, module2) {
|
|
8523
8684
|
"use strict";
|
|
8524
8685
|
var os = require("os");
|
|
8686
|
+
var tty = require("tty");
|
|
8525
8687
|
var hasFlag = require_has_flag();
|
|
8526
|
-
var env = process
|
|
8688
|
+
var { env } = process;
|
|
8527
8689
|
var forceColor;
|
|
8528
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
8529
|
-
forceColor =
|
|
8690
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
8691
|
+
forceColor = 0;
|
|
8530
8692
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
8531
|
-
forceColor =
|
|
8693
|
+
forceColor = 1;
|
|
8532
8694
|
}
|
|
8533
8695
|
if ("FORCE_COLOR" in env) {
|
|
8534
|
-
|
|
8696
|
+
if (env.FORCE_COLOR === "true") {
|
|
8697
|
+
forceColor = 1;
|
|
8698
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
8699
|
+
forceColor = 0;
|
|
8700
|
+
} else {
|
|
8701
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
8702
|
+
}
|
|
8535
8703
|
}
|
|
8536
8704
|
function translateLevel(level) {
|
|
8537
8705
|
if (level === 0) {
|
|
@@ -8544,8 +8712,8 @@ var require_supports_color = __commonJS({
|
|
|
8544
8712
|
has16m: level >= 3
|
|
8545
8713
|
};
|
|
8546
8714
|
}
|
|
8547
|
-
function supportsColor(
|
|
8548
|
-
if (forceColor ===
|
|
8715
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
8716
|
+
if (forceColor === 0) {
|
|
8549
8717
|
return 0;
|
|
8550
8718
|
}
|
|
8551
8719
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -8554,19 +8722,22 @@ var require_supports_color = __commonJS({
|
|
|
8554
8722
|
if (hasFlag("color=256")) {
|
|
8555
8723
|
return 2;
|
|
8556
8724
|
}
|
|
8557
|
-
if (
|
|
8725
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
8558
8726
|
return 0;
|
|
8559
8727
|
}
|
|
8560
|
-
const min = forceColor
|
|
8728
|
+
const min = forceColor || 0;
|
|
8729
|
+
if (env.TERM === "dumb") {
|
|
8730
|
+
return min;
|
|
8731
|
+
}
|
|
8561
8732
|
if (process.platform === "win32") {
|
|
8562
8733
|
const osRelease = os.release().split(".");
|
|
8563
|
-
if (Number(
|
|
8734
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
8564
8735
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
8565
8736
|
}
|
|
8566
8737
|
return 1;
|
|
8567
8738
|
}
|
|
8568
8739
|
if ("CI" in env) {
|
|
8569
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
8740
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
8570
8741
|
return 1;
|
|
8571
8742
|
}
|
|
8572
8743
|
return min;
|
|
@@ -8595,19 +8766,16 @@ var require_supports_color = __commonJS({
|
|
|
8595
8766
|
if ("COLORTERM" in env) {
|
|
8596
8767
|
return 1;
|
|
8597
8768
|
}
|
|
8598
|
-
if (env.TERM === "dumb") {
|
|
8599
|
-
return min;
|
|
8600
|
-
}
|
|
8601
8769
|
return min;
|
|
8602
8770
|
}
|
|
8603
8771
|
function getSupportLevel(stream) {
|
|
8604
|
-
const level = supportsColor(stream);
|
|
8772
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
8605
8773
|
return translateLevel(level);
|
|
8606
8774
|
}
|
|
8607
8775
|
module2.exports = {
|
|
8608
8776
|
supportsColor: getSupportLevel,
|
|
8609
|
-
stdout:
|
|
8610
|
-
stderr:
|
|
8777
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
8778
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
8611
8779
|
};
|
|
8612
8780
|
}
|
|
8613
8781
|
});
|
|
@@ -8799,17 +8967,21 @@ var require_utils3 = __commonJS({
|
|
|
8799
8967
|
"../lib/store/dist/utils/index.js"(exports2) {
|
|
8800
8968
|
"use strict";
|
|
8801
8969
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8970
|
+
exports2.getExtendedLogger = exports2.pick = exports2.enableDebugLogger = exports2.newDebugLogger = exports2.MIGRATION_NAMESPACE = exports2.STORE_NAMESPACE = void 0;
|
|
8802
8971
|
var debug_1 = require_src();
|
|
8803
8972
|
exports2.STORE_NAMESPACE = "ft:store";
|
|
8804
8973
|
exports2.MIGRATION_NAMESPACE = exports2.STORE_NAMESPACE + ":migrate";
|
|
8805
|
-
|
|
8806
|
-
exports2.
|
|
8807
|
-
|
|
8974
|
+
var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => debug_1.debug(namespace);
|
|
8975
|
+
exports2.newDebugLogger = newDebugLogger;
|
|
8976
|
+
var enableDebugLogger = (namespace) => debug_1.debug.enable(namespace);
|
|
8977
|
+
exports2.enableDebugLogger = enableDebugLogger;
|
|
8978
|
+
var pick = (target, ...props) => {
|
|
8808
8979
|
return target && (props == null ? void 0 : props.length) > 0 && props.reduce((o, k) => {
|
|
8809
8980
|
o[k] = target[k];
|
|
8810
8981
|
return o;
|
|
8811
8982
|
}, {}) || void 0;
|
|
8812
8983
|
};
|
|
8984
|
+
exports2.pick = pick;
|
|
8813
8985
|
function getExtendedLogger(l) {
|
|
8814
8986
|
return {
|
|
8815
8987
|
...l,
|
|
@@ -9154,6 +9326,7 @@ var require_appStudio = __commonJS({
|
|
|
9154
9326
|
"../lib/common-utils/dist/appStudio.js"(exports2) {
|
|
9155
9327
|
"use strict";
|
|
9156
9328
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9329
|
+
exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = exports2.ENV = void 0;
|
|
9157
9330
|
var ENV;
|
|
9158
9331
|
(function(ENV2) {
|
|
9159
9332
|
ENV2["PROXY_URL"] = "HTTP_PROXY";
|
|
@@ -9182,6 +9355,7 @@ var require_file = __commonJS({
|
|
|
9182
9355
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
9183
9356
|
};
|
|
9184
9357
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9358
|
+
exports2.toPosixPath = void 0;
|
|
9185
9359
|
var path_1 = __importDefault(require("path"));
|
|
9186
9360
|
function toPosixPath(dirPath) {
|
|
9187
9361
|
return path_1.default.normalize(dirPath).split(/[\\/]/g).join(path_1.default.posix.sep);
|
|
@@ -9195,6 +9369,7 @@ var require_promise = __commonJS({
|
|
|
9195
9369
|
"../lib/common-utils/dist/promise.js"(exports2) {
|
|
9196
9370
|
"use strict";
|
|
9197
9371
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9372
|
+
exports2.allSettled = void 0;
|
|
9198
9373
|
function allSettled(promises3) {
|
|
9199
9374
|
if (!promises3 || promises3.length === 0) {
|
|
9200
9375
|
return Promise.resolve([]);
|
|
@@ -9229,6 +9404,7 @@ var require_regexp = __commonJS({
|
|
|
9229
9404
|
"../lib/common-utils/dist/regexp.js"(exports2) {
|
|
9230
9405
|
"use strict";
|
|
9231
9406
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9407
|
+
exports2.escapeRegExp = void 0;
|
|
9232
9408
|
function escapeRegExp(s) {
|
|
9233
9409
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
9234
9410
|
}
|
|
@@ -9240,31 +9416,50 @@ var require_regexp = __commonJS({
|
|
|
9240
9416
|
var require_dist3 = __commonJS({
|
|
9241
9417
|
"../lib/common-utils/dist/index.js"(exports2) {
|
|
9242
9418
|
"use strict";
|
|
9243
|
-
function
|
|
9419
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
9420
|
+
if (k2 === void 0)
|
|
9421
|
+
k2 = k;
|
|
9422
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
9423
|
+
return m[k];
|
|
9424
|
+
} });
|
|
9425
|
+
} : function(o, m, k, k2) {
|
|
9426
|
+
if (k2 === void 0)
|
|
9427
|
+
k2 = k;
|
|
9428
|
+
o[k2] = m[k];
|
|
9429
|
+
});
|
|
9430
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
9244
9431
|
for (var p in m)
|
|
9245
|
-
if (!
|
|
9246
|
-
|
|
9247
|
-
}
|
|
9432
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
9433
|
+
__createBinding(exports3, m, p);
|
|
9434
|
+
};
|
|
9248
9435
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
9249
9436
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
9250
9437
|
};
|
|
9251
9438
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9439
|
+
exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.getAppStudioProxyURL = exports2.getAppStudioBaseURL = exports2.isAppStudio = void 0;
|
|
9252
9440
|
var os_1 = require("os");
|
|
9253
9441
|
var path_1 = __importDefault(require("path"));
|
|
9254
9442
|
var appStudio_1 = require_appStudio();
|
|
9255
|
-
exports2
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9443
|
+
Object.defineProperty(exports2, "isAppStudio", { enumerable: true, get: function() {
|
|
9444
|
+
return appStudio_1.isAppStudio;
|
|
9445
|
+
} });
|
|
9446
|
+
Object.defineProperty(exports2, "getAppStudioBaseURL", { enumerable: true, get: function() {
|
|
9447
|
+
return appStudio_1.getAppStudioBaseURL;
|
|
9448
|
+
} });
|
|
9449
|
+
Object.defineProperty(exports2, "getAppStudioProxyURL", { enumerable: true, get: function() {
|
|
9450
|
+
return appStudio_1.getAppStudioProxyURL;
|
|
9451
|
+
} });
|
|
9452
|
+
__exportStar(require_file(), exports2);
|
|
9453
|
+
__exportStar(require_promise(), exports2);
|
|
9454
|
+
__exportStar(require_regexp(), exports2);
|
|
9261
9455
|
var FioriToolsSettings;
|
|
9262
9456
|
(function(FioriToolsSettings2) {
|
|
9263
9457
|
FioriToolsSettings2["dir"] = ".fioritools";
|
|
9264
9458
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
9265
|
-
|
|
9459
|
+
var getFioriToolsDirectory = () => {
|
|
9266
9460
|
return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
9267
9461
|
};
|
|
9462
|
+
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
9268
9463
|
}
|
|
9269
9464
|
});
|
|
9270
9465
|
|
|
@@ -9272,25 +9467,42 @@ var require_dist3 = __commonJS({
|
|
|
9272
9467
|
var require_filesystem = __commonJS({
|
|
9273
9468
|
"../lib/store/dist/data-access/filesystem.js"(exports2) {
|
|
9274
9469
|
"use strict";
|
|
9470
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
9471
|
+
if (k2 === void 0)
|
|
9472
|
+
k2 = k;
|
|
9473
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
9474
|
+
return m[k];
|
|
9475
|
+
} });
|
|
9476
|
+
} : function(o, m, k, k2) {
|
|
9477
|
+
if (k2 === void 0)
|
|
9478
|
+
k2 = k;
|
|
9479
|
+
o[k2] = m[k];
|
|
9480
|
+
});
|
|
9481
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
9482
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
9483
|
+
} : function(o, v) {
|
|
9484
|
+
o["default"] = v;
|
|
9485
|
+
});
|
|
9275
9486
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
9276
9487
|
if (mod && mod.__esModule)
|
|
9277
9488
|
return mod;
|
|
9278
9489
|
var result2 = {};
|
|
9279
9490
|
if (mod != null) {
|
|
9280
9491
|
for (var k in mod)
|
|
9281
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
9282
|
-
result2
|
|
9492
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
9493
|
+
__createBinding(result2, mod, k);
|
|
9283
9494
|
}
|
|
9284
|
-
result2
|
|
9495
|
+
__setModuleDefault(result2, mod);
|
|
9285
9496
|
return result2;
|
|
9286
9497
|
};
|
|
9287
9498
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9499
|
+
exports2.getFilesystemWatcherFor = exports2.FilesystemStore = exports2.basedir = void 0;
|
|
9288
9500
|
var path_1 = __importStar(require("path"));
|
|
9289
9501
|
var fs_1 = require("fs");
|
|
9290
9502
|
var pluralize_1 = require_pluralize();
|
|
9291
9503
|
var ux_common_utils_1 = require_dist3();
|
|
9292
9504
|
exports2.basedir = ux_common_utils_1.getFioriToolsDirectory;
|
|
9293
|
-
|
|
9505
|
+
var FilesystemStore = class {
|
|
9294
9506
|
constructor(logger) {
|
|
9295
9507
|
this.logger = logger;
|
|
9296
9508
|
}
|
|
@@ -9428,6 +9640,7 @@ var require_filesystem = __commonJS({
|
|
|
9428
9640
|
}
|
|
9429
9641
|
}
|
|
9430
9642
|
};
|
|
9643
|
+
exports2.FilesystemStore = FilesystemStore;
|
|
9431
9644
|
function toPersistenceName(s) {
|
|
9432
9645
|
const t = s == null ? void 0 : s.trim().toLowerCase();
|
|
9433
9646
|
return t && pluralize_1.plural(t);
|
|
@@ -9454,6 +9667,7 @@ var require_dummy_store = __commonJS({
|
|
|
9454
9667
|
"../lib/store/dist/secure-store/dummy-store.js"(exports2) {
|
|
9455
9668
|
"use strict";
|
|
9456
9669
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9670
|
+
exports2.DummyStore = void 0;
|
|
9457
9671
|
var DummyStore = class {
|
|
9458
9672
|
constructor(log3) {
|
|
9459
9673
|
this.log = log3;
|
|
@@ -9484,6 +9698,7 @@ var require_keytar_store = __commonJS({
|
|
|
9484
9698
|
"../lib/store/dist/secure-store/keytar-store.js"(exports2) {
|
|
9485
9699
|
"use strict";
|
|
9486
9700
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9701
|
+
exports2.KeytarStore = void 0;
|
|
9487
9702
|
var KeytarStore = class {
|
|
9488
9703
|
constructor(log3, keytar) {
|
|
9489
9704
|
this.log = log3;
|
|
@@ -9540,11 +9755,36 @@ var require_keytar_store = __commonJS({
|
|
|
9540
9755
|
}
|
|
9541
9756
|
});
|
|
9542
9757
|
|
|
9758
|
+
// ../lib/store/dist/secure-store/types.js
|
|
9759
|
+
var require_types2 = __commonJS({
|
|
9760
|
+
"../lib/store/dist/secure-store/types.js"(exports2) {
|
|
9761
|
+
"use strict";
|
|
9762
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9763
|
+
}
|
|
9764
|
+
});
|
|
9765
|
+
|
|
9543
9766
|
// ../lib/store/dist/secure-store/index.js
|
|
9544
9767
|
var require_secure_store = __commonJS({
|
|
9545
9768
|
"../lib/store/dist/secure-store/index.js"(exports2) {
|
|
9546
9769
|
"use strict";
|
|
9770
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
9771
|
+
if (k2 === void 0)
|
|
9772
|
+
k2 = k;
|
|
9773
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
9774
|
+
return m[k];
|
|
9775
|
+
} });
|
|
9776
|
+
} : function(o, m, k, k2) {
|
|
9777
|
+
if (k2 === void 0)
|
|
9778
|
+
k2 = k;
|
|
9779
|
+
o[k2] = m[k];
|
|
9780
|
+
});
|
|
9781
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
9782
|
+
for (var p in m)
|
|
9783
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
9784
|
+
__createBinding(exports3, m, p);
|
|
9785
|
+
};
|
|
9547
9786
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9787
|
+
exports2.getSecureStore = void 0;
|
|
9548
9788
|
var ux_common_utils_1 = require_dist3();
|
|
9549
9789
|
var dummy_store_1 = require_dummy_store();
|
|
9550
9790
|
var keytar_store_1 = require_keytar_store();
|
|
@@ -9578,7 +9818,7 @@ var require_secure_store = __commonJS({
|
|
|
9578
9818
|
return null;
|
|
9579
9819
|
}
|
|
9580
9820
|
}
|
|
9581
|
-
|
|
9821
|
+
var getSecureStore = (log3) => {
|
|
9582
9822
|
if (ux_common_utils_1.isAppStudio() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
|
|
9583
9823
|
return new dummy_store_1.DummyStore(log3);
|
|
9584
9824
|
} else {
|
|
@@ -9586,6 +9826,8 @@ var require_secure_store = __commonJS({
|
|
|
9586
9826
|
return keytar ? new keytar_store_1.KeytarStore(log3, keytar) : new dummy_store_1.DummyStore(log3);
|
|
9587
9827
|
}
|
|
9588
9828
|
};
|
|
9829
|
+
exports2.getSecureStore = getSecureStore;
|
|
9830
|
+
__exportStar(require_types2(), exports2);
|
|
9589
9831
|
}
|
|
9590
9832
|
});
|
|
9591
9833
|
|
|
@@ -10320,6 +10562,7 @@ var require_decorators = __commonJS({
|
|
|
10320
10562
|
"../lib/store/dist/decorators/index.js"(exports2) {
|
|
10321
10563
|
"use strict";
|
|
10322
10564
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10565
|
+
exports2.getSensitiveDataProperties = exports2.sensitiveData = exports2.getSerializableProperties = exports2.serializable = void 0;
|
|
10323
10566
|
require_Reflect();
|
|
10324
10567
|
var SERIALIZABLE = Symbol("serializable");
|
|
10325
10568
|
function serializable(target, key) {
|
|
@@ -10351,6 +10594,7 @@ var require_hybrid = __commonJS({
|
|
|
10351
10594
|
"../lib/store/dist/data-access/hybrid.js"(exports2) {
|
|
10352
10595
|
"use strict";
|
|
10353
10596
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10597
|
+
exports2.HybridStore = void 0;
|
|
10354
10598
|
var filesystem_1 = require_filesystem();
|
|
10355
10599
|
var utils_1 = require_utils3();
|
|
10356
10600
|
var secure_store_1 = require_secure_store();
|
|
@@ -10358,7 +10602,7 @@ var require_hybrid = __commonJS({
|
|
|
10358
10602
|
function getFullyQualifiedServiceName(name) {
|
|
10359
10603
|
return "fiori/v2/" + name;
|
|
10360
10604
|
}
|
|
10361
|
-
|
|
10605
|
+
var HybridStore = class {
|
|
10362
10606
|
constructor(logger) {
|
|
10363
10607
|
this.logger = logger;
|
|
10364
10608
|
this.filesystem = new filesystem_1.FilesystemStore(this.logger);
|
|
@@ -10431,6 +10675,7 @@ var require_hybrid = __commonJS({
|
|
|
10431
10675
|
return deletedinFs || deletedInSecureStore;
|
|
10432
10676
|
}
|
|
10433
10677
|
};
|
|
10678
|
+
exports2.HybridStore = HybridStore;
|
|
10434
10679
|
}
|
|
10435
10680
|
});
|
|
10436
10681
|
|
|
@@ -10449,6 +10694,7 @@ var require_backend_system = __commonJS({
|
|
|
10449
10694
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10450
10695
|
};
|
|
10451
10696
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10697
|
+
exports2.BackendSystem = exports2.BackendSystemKey = exports2.AuthenticationType = void 0;
|
|
10452
10698
|
var decorators_1 = require_decorators();
|
|
10453
10699
|
var AuthenticationType;
|
|
10454
10700
|
(function(AuthenticationType2) {
|
|
@@ -10471,7 +10717,7 @@ var require_backend_system = __commonJS({
|
|
|
10471
10717
|
};
|
|
10472
10718
|
exports2.BackendSystemKey = BackendSystemKey;
|
|
10473
10719
|
var BackendSystem = class {
|
|
10474
|
-
constructor({ name, url, client, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType }) {
|
|
10720
|
+
constructor({ name, url, client, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType, csrfToken, cookieString }) {
|
|
10475
10721
|
this.name = name;
|
|
10476
10722
|
this.url = url;
|
|
10477
10723
|
this.client = client;
|
|
@@ -10481,6 +10727,8 @@ var require_backend_system = __commonJS({
|
|
|
10481
10727
|
this.password = password;
|
|
10482
10728
|
this.userDisplayName = userDisplayName;
|
|
10483
10729
|
this.authenticationType = authenticationType;
|
|
10730
|
+
this.csrfToken = csrfToken;
|
|
10731
|
+
this.cookieString = cookieString;
|
|
10484
10732
|
}
|
|
10485
10733
|
};
|
|
10486
10734
|
__decorate([
|
|
@@ -10510,6 +10758,12 @@ var require_backend_system = __commonJS({
|
|
|
10510
10758
|
__decorate([
|
|
10511
10759
|
decorators_1.sensitiveData
|
|
10512
10760
|
], BackendSystem.prototype, "authenticationType", void 0);
|
|
10761
|
+
__decorate([
|
|
10762
|
+
decorators_1.sensitiveData
|
|
10763
|
+
], BackendSystem.prototype, "csrfToken", void 0);
|
|
10764
|
+
__decorate([
|
|
10765
|
+
decorators_1.sensitiveData
|
|
10766
|
+
], BackendSystem.prototype, "cookieString", void 0);
|
|
10513
10767
|
exports2.BackendSystem = BackendSystem;
|
|
10514
10768
|
}
|
|
10515
10769
|
});
|
|
@@ -10519,6 +10773,7 @@ var require_constants2 = __commonJS({
|
|
|
10519
10773
|
"../lib/store/dist/data-provider/constants.js"(exports2) {
|
|
10520
10774
|
"use strict";
|
|
10521
10775
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10776
|
+
exports2.Entities = void 0;
|
|
10522
10777
|
var Entities;
|
|
10523
10778
|
(function(Entities2) {
|
|
10524
10779
|
Entities2["BackendSystem"] = "system";
|
|
@@ -10532,10 +10787,11 @@ var require_backend_system2 = __commonJS({
|
|
|
10532
10787
|
"../lib/store/dist/data-provider/backend-system.js"(exports2) {
|
|
10533
10788
|
"use strict";
|
|
10534
10789
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10790
|
+
exports2.SystemDataProvider = void 0;
|
|
10535
10791
|
var hybrid_1 = require_hybrid();
|
|
10536
10792
|
var backend_system_1 = require_backend_system();
|
|
10537
10793
|
var constants_1 = require_constants2();
|
|
10538
|
-
|
|
10794
|
+
var SystemDataProvider = class {
|
|
10539
10795
|
constructor(logger) {
|
|
10540
10796
|
this.entityName = constants_1.Entities.BackendSystem;
|
|
10541
10797
|
this.logger = logger;
|
|
@@ -10576,6 +10832,7 @@ var require_backend_system2 = __commonJS({
|
|
|
10576
10832
|
return Object.values(systems);
|
|
10577
10833
|
}
|
|
10578
10834
|
};
|
|
10835
|
+
exports2.SystemDataProvider = SystemDataProvider;
|
|
10579
10836
|
}
|
|
10580
10837
|
});
|
|
10581
10838
|
|
|
@@ -10594,6 +10851,7 @@ var require_system_migration_status = __commonJS({
|
|
|
10594
10851
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10595
10852
|
};
|
|
10596
10853
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10854
|
+
exports2.SystemMigrationStatusKey = exports2.SystemMigrationStatus = void 0;
|
|
10597
10855
|
var decorators_1 = require_decorators();
|
|
10598
10856
|
var SystemMigrationStatus = class {
|
|
10599
10857
|
constructor({ authTypeMigrated, migrationDone, migrationLogs }) {
|
|
@@ -10626,10 +10884,11 @@ var require_system_migration = __commonJS({
|
|
|
10626
10884
|
"../lib/store/dist/data-provider/system-migration.js"(exports2) {
|
|
10627
10885
|
"use strict";
|
|
10628
10886
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10887
|
+
exports2.SystemMigrationStatusDataProvider = void 0;
|
|
10629
10888
|
var filesystem_1 = require_filesystem();
|
|
10630
10889
|
var system_migration_status_1 = require_system_migration_status();
|
|
10631
10890
|
var constants_1 = require_constants2();
|
|
10632
|
-
|
|
10891
|
+
var SystemMigrationStatusDataProvider = class {
|
|
10633
10892
|
constructor(logger) {
|
|
10634
10893
|
this.entityName = constants_1.Entities.SystemMigrationStatus;
|
|
10635
10894
|
this.logger = logger;
|
|
@@ -10655,6 +10914,7 @@ var require_system_migration = __commonJS({
|
|
|
10655
10914
|
return this.dataAccessor.getAll({ entityName: this.entityName });
|
|
10656
10915
|
}
|
|
10657
10916
|
};
|
|
10917
|
+
exports2.SystemMigrationStatusDataProvider = SystemMigrationStatusDataProvider;
|
|
10658
10918
|
}
|
|
10659
10919
|
});
|
|
10660
10920
|
|
|
@@ -10663,6 +10923,7 @@ var require_system_migration2 = __commonJS({
|
|
|
10663
10923
|
"../lib/store/dist/services/system-migration.js"(exports2) {
|
|
10664
10924
|
"use strict";
|
|
10665
10925
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10926
|
+
exports2.migrate = void 0;
|
|
10666
10927
|
var contants_1 = require_contants();
|
|
10667
10928
|
var system_migration_1 = require_system_migration();
|
|
10668
10929
|
var backend_system_1 = require_backend_system();
|
|
@@ -10852,6 +11113,7 @@ var require_backend_system3 = __commonJS({
|
|
|
10852
11113
|
"../lib/store/dist/services/backend-system.js"(exports2) {
|
|
10853
11114
|
"use strict";
|
|
10854
11115
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11116
|
+
exports2.getInstance = exports2.SystemService = void 0;
|
|
10855
11117
|
var utils_1 = require_utils3();
|
|
10856
11118
|
var backend_system_1 = require_backend_system2();
|
|
10857
11119
|
var backend_system_2 = require_backend_system();
|
|
@@ -10924,8 +11186,11 @@ var require_services = __commonJS({
|
|
|
10924
11186
|
"../lib/store/dist/services/index.js"(exports2) {
|
|
10925
11187
|
"use strict";
|
|
10926
11188
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11189
|
+
exports2.SystemService = void 0;
|
|
10927
11190
|
var backend_system_1 = require_backend_system3();
|
|
10928
|
-
exports2
|
|
11191
|
+
Object.defineProperty(exports2, "SystemService", { enumerable: true, get: function() {
|
|
11192
|
+
return backend_system_1.SystemService;
|
|
11193
|
+
} });
|
|
10929
11194
|
}
|
|
10930
11195
|
});
|
|
10931
11196
|
|
|
@@ -10934,8 +11199,11 @@ var require_data_access = __commonJS({
|
|
|
10934
11199
|
"../lib/store/dist/data-access/index.js"(exports2) {
|
|
10935
11200
|
"use strict";
|
|
10936
11201
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11202
|
+
exports2.getFilesystemWatcherFor = void 0;
|
|
10937
11203
|
var filesystem_1 = require_filesystem();
|
|
10938
|
-
exports2
|
|
11204
|
+
Object.defineProperty(exports2, "getFilesystemWatcherFor", { enumerable: true, get: function() {
|
|
11205
|
+
return filesystem_1.getFilesystemWatcherFor;
|
|
11206
|
+
} });
|
|
10939
11207
|
}
|
|
10940
11208
|
});
|
|
10941
11209
|
|
|
@@ -10943,14 +11211,28 @@ var require_data_access = __commonJS({
|
|
|
10943
11211
|
var require_dist4 = __commonJS({
|
|
10944
11212
|
"../lib/store/dist/index.js"(exports2) {
|
|
10945
11213
|
"use strict";
|
|
10946
|
-
function
|
|
11214
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
11215
|
+
if (k2 === void 0)
|
|
11216
|
+
k2 = k;
|
|
11217
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
11218
|
+
return m[k];
|
|
11219
|
+
} });
|
|
11220
|
+
} : function(o, m, k, k2) {
|
|
11221
|
+
if (k2 === void 0)
|
|
11222
|
+
k2 = k;
|
|
11223
|
+
o[k2] = m[k];
|
|
11224
|
+
});
|
|
11225
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
10947
11226
|
for (var p in m)
|
|
10948
|
-
if (!
|
|
10949
|
-
|
|
10950
|
-
}
|
|
11227
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
11228
|
+
__createBinding(exports3, m, p);
|
|
11229
|
+
};
|
|
10951
11230
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11231
|
+
exports2.Entity = exports2.getFilesystemWatcherFor = exports2.getService = void 0;
|
|
10952
11232
|
var contants_1 = require_contants();
|
|
10953
|
-
exports2
|
|
11233
|
+
Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
|
|
11234
|
+
return contants_1.Entity;
|
|
11235
|
+
} });
|
|
10954
11236
|
var i18n_1 = require_i18n();
|
|
10955
11237
|
var backend_system_1 = require_backend_system3();
|
|
10956
11238
|
var services = {
|
|
@@ -10966,11 +11248,13 @@ var require_dist4 = __commonJS({
|
|
|
10966
11248
|
}
|
|
10967
11249
|
}
|
|
10968
11250
|
exports2.getService = getService;
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
11251
|
+
__exportStar(require_services(), exports2);
|
|
11252
|
+
__exportStar(require_secure_store(), exports2);
|
|
11253
|
+
__exportStar(require_backend_system(), exports2);
|
|
10972
11254
|
var data_access_1 = require_data_access();
|
|
10973
|
-
exports2
|
|
11255
|
+
Object.defineProperty(exports2, "getFilesystemWatcherFor", { enumerable: true, get: function() {
|
|
11256
|
+
return data_access_1.getFilesystemWatcherFor;
|
|
11257
|
+
} });
|
|
10974
11258
|
}
|
|
10975
11259
|
});
|
|
10976
11260
|
|
|
@@ -10979,6 +11263,7 @@ var require_config = __commonJS({
|
|
|
10979
11263
|
"../lib/odata-client/dist/config.js"(exports2) {
|
|
10980
11264
|
"use strict";
|
|
10981
11265
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11266
|
+
exports2.hasHTML5DynamicDestinationAttrib = exports2.hasFullUrlDestAttribute = exports2.hasDestinationAttrib = exports2.destinationPropertyId = exports2.DestinationAttributeProperty = exports2.DestinationProperties = exports2.AuthenticationType = exports2.ServiceName = void 0;
|
|
10982
11267
|
var ServiceName;
|
|
10983
11268
|
(function(ServiceName2) {
|
|
10984
11269
|
ServiceName2["SystemInfo"] = "fiori/system/info";
|
|
@@ -10986,7 +11271,9 @@ var require_config = __commonJS({
|
|
|
10986
11271
|
ServiceName2["ApiHub"] = "fiori/system/apiHub";
|
|
10987
11272
|
})(ServiceName = exports2.ServiceName || (exports2.ServiceName = {}));
|
|
10988
11273
|
var ux_store_1 = require_dist4();
|
|
10989
|
-
exports2
|
|
11274
|
+
Object.defineProperty(exports2, "AuthenticationType", { enumerable: true, get: function() {
|
|
11275
|
+
return ux_store_1.AuthenticationType;
|
|
11276
|
+
} });
|
|
10990
11277
|
var DestinationProperties;
|
|
10991
11278
|
(function(DestinationProperties2) {
|
|
10992
11279
|
DestinationProperties2["WebIDEUsage"] = "WebIDEUsage";
|
|
@@ -11999,121 +12286,6 @@ var require_browser2 = __commonJS({
|
|
|
11999
12286
|
}
|
|
12000
12287
|
});
|
|
12001
12288
|
|
|
12002
|
-
// ../../node_modules/has-flag/index.js
|
|
12003
|
-
var require_has_flag2 = __commonJS({
|
|
12004
|
-
"../../node_modules/has-flag/index.js"(exports2, module2) {
|
|
12005
|
-
"use strict";
|
|
12006
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
12007
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
12008
|
-
const position = argv.indexOf(prefix + flag);
|
|
12009
|
-
const terminatorPosition = argv.indexOf("--");
|
|
12010
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
12011
|
-
};
|
|
12012
|
-
}
|
|
12013
|
-
});
|
|
12014
|
-
|
|
12015
|
-
// ../../node_modules/supports-color/index.js
|
|
12016
|
-
var require_supports_color2 = __commonJS({
|
|
12017
|
-
"../../node_modules/supports-color/index.js"(exports2, module2) {
|
|
12018
|
-
"use strict";
|
|
12019
|
-
var os = require("os");
|
|
12020
|
-
var tty = require("tty");
|
|
12021
|
-
var hasFlag = require_has_flag2();
|
|
12022
|
-
var { env } = process;
|
|
12023
|
-
var forceColor;
|
|
12024
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
12025
|
-
forceColor = 0;
|
|
12026
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
12027
|
-
forceColor = 1;
|
|
12028
|
-
}
|
|
12029
|
-
if ("FORCE_COLOR" in env) {
|
|
12030
|
-
if (env.FORCE_COLOR === "true") {
|
|
12031
|
-
forceColor = 1;
|
|
12032
|
-
} else if (env.FORCE_COLOR === "false") {
|
|
12033
|
-
forceColor = 0;
|
|
12034
|
-
} else {
|
|
12035
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
12036
|
-
}
|
|
12037
|
-
}
|
|
12038
|
-
function translateLevel(level) {
|
|
12039
|
-
if (level === 0) {
|
|
12040
|
-
return false;
|
|
12041
|
-
}
|
|
12042
|
-
return {
|
|
12043
|
-
level,
|
|
12044
|
-
hasBasic: true,
|
|
12045
|
-
has256: level >= 2,
|
|
12046
|
-
has16m: level >= 3
|
|
12047
|
-
};
|
|
12048
|
-
}
|
|
12049
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
12050
|
-
if (forceColor === 0) {
|
|
12051
|
-
return 0;
|
|
12052
|
-
}
|
|
12053
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
12054
|
-
return 3;
|
|
12055
|
-
}
|
|
12056
|
-
if (hasFlag("color=256")) {
|
|
12057
|
-
return 2;
|
|
12058
|
-
}
|
|
12059
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
12060
|
-
return 0;
|
|
12061
|
-
}
|
|
12062
|
-
const min = forceColor || 0;
|
|
12063
|
-
if (env.TERM === "dumb") {
|
|
12064
|
-
return min;
|
|
12065
|
-
}
|
|
12066
|
-
if (process.platform === "win32") {
|
|
12067
|
-
const osRelease = os.release().split(".");
|
|
12068
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
12069
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
12070
|
-
}
|
|
12071
|
-
return 1;
|
|
12072
|
-
}
|
|
12073
|
-
if ("CI" in env) {
|
|
12074
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
12075
|
-
return 1;
|
|
12076
|
-
}
|
|
12077
|
-
return min;
|
|
12078
|
-
}
|
|
12079
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
12080
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
12081
|
-
}
|
|
12082
|
-
if (env.COLORTERM === "truecolor") {
|
|
12083
|
-
return 3;
|
|
12084
|
-
}
|
|
12085
|
-
if ("TERM_PROGRAM" in env) {
|
|
12086
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
12087
|
-
switch (env.TERM_PROGRAM) {
|
|
12088
|
-
case "iTerm.app":
|
|
12089
|
-
return version >= 3 ? 3 : 2;
|
|
12090
|
-
case "Apple_Terminal":
|
|
12091
|
-
return 2;
|
|
12092
|
-
}
|
|
12093
|
-
}
|
|
12094
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
12095
|
-
return 2;
|
|
12096
|
-
}
|
|
12097
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
12098
|
-
return 1;
|
|
12099
|
-
}
|
|
12100
|
-
if ("COLORTERM" in env) {
|
|
12101
|
-
return 1;
|
|
12102
|
-
}
|
|
12103
|
-
return min;
|
|
12104
|
-
}
|
|
12105
|
-
function getSupportLevel(stream) {
|
|
12106
|
-
const level = supportsColor(stream, stream && stream.isTTY);
|
|
12107
|
-
return translateLevel(level);
|
|
12108
|
-
}
|
|
12109
|
-
module2.exports = {
|
|
12110
|
-
supportsColor: getSupportLevel,
|
|
12111
|
-
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
12112
|
-
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
12113
|
-
};
|
|
12114
|
-
}
|
|
12115
|
-
});
|
|
12116
|
-
|
|
12117
12289
|
// ../../node_modules/debug/src/node.js
|
|
12118
12290
|
var require_node2 = __commonJS({
|
|
12119
12291
|
"../../node_modules/debug/src/node.js"(exports2, module2) {
|
|
@@ -12127,7 +12299,7 @@ var require_node2 = __commonJS({
|
|
|
12127
12299
|
exports2.useColors = useColors;
|
|
12128
12300
|
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
12129
12301
|
try {
|
|
12130
|
-
const supportsColor =
|
|
12302
|
+
const supportsColor = require_supports_color();
|
|
12131
12303
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
12132
12304
|
exports2.colors = [
|
|
12133
12305
|
20,
|
|
@@ -13600,6 +13772,7 @@ var require_cookies2 = __commonJS({
|
|
|
13600
13772
|
"../lib/odata-client/dist/connection/cookies.js"(exports2) {
|
|
13601
13773
|
"use strict";
|
|
13602
13774
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13775
|
+
exports2.Cookies = void 0;
|
|
13603
13776
|
var Cookies = class {
|
|
13604
13777
|
constructor() {
|
|
13605
13778
|
this.cookies = {};
|
|
@@ -13838,6 +14011,7 @@ var require_common3 = __commonJS({
|
|
|
13838
14011
|
"../lib/odata-client/dist/connection/common.js"(exports2) {
|
|
13839
14012
|
"use strict";
|
|
13840
14013
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14014
|
+
exports2.CSRF = void 0;
|
|
13841
14015
|
var CSRF;
|
|
13842
14016
|
(function(CSRF2) {
|
|
13843
14017
|
CSRF2["requestHeaderName"] = "X-Csrf-Token";
|
|
@@ -13852,6 +14026,7 @@ var require_static = __commonJS({
|
|
|
13852
14026
|
"../lib/odata-client/dist/static/index.js"(exports2) {
|
|
13853
14027
|
"use strict";
|
|
13854
14028
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14029
|
+
exports2.redirectSuccessHtml = exports2.globalRootCaPem = void 0;
|
|
13855
14030
|
exports2.globalRootCaPem = `
|
|
13856
14031
|
-----BEGIN CERTIFICATE-----
|
|
13857
14032
|
MIIGTDCCBDSgAwIBAgIQXQPZPTFhXY9Iizlwx48bmTANBgkqhkiG9w0BAQsFADBO
|
|
@@ -13890,7 +14065,7 @@ Xn+IfM6K/pbDar/y6uI9rHlyWu4iJ6cg7DAPJ2CCklw/YHJXhDHGwheO/qSrKtgz
|
|
|
13890
14065
|
PGHZoN9jcvvvWDLUGtJkEotMgdFpEA2XWR83H4fVFVc=
|
|
13891
14066
|
-----END CERTIFICATE-----
|
|
13892
14067
|
`;
|
|
13893
|
-
|
|
14068
|
+
var redirectSuccessHtml = (logoutUrl, systemId) => `
|
|
13894
14069
|
<html>
|
|
13895
14070
|
|
|
13896
14071
|
<head>
|
|
@@ -14013,6 +14188,7 @@ PGHZoN9jcvvvWDLUGtJkEotMgdFpEA2XWR83H4fVFVc=
|
|
|
14013
14188
|
|
|
14014
14189
|
</html>
|
|
14015
14190
|
`;
|
|
14191
|
+
exports2.redirectSuccessHtml = redirectSuccessHtml;
|
|
14016
14192
|
}
|
|
14017
14193
|
});
|
|
14018
14194
|
|
|
@@ -14021,6 +14197,7 @@ var require_error = __commonJS({
|
|
|
14021
14197
|
"../lib/odata-client/dist/error.js"(exports2) {
|
|
14022
14198
|
"use strict";
|
|
14023
14199
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14200
|
+
exports2.UnknownSystemAuthenticationType = exports2.BaseError = void 0;
|
|
14024
14201
|
var BaseError = class extends Error {
|
|
14025
14202
|
constructor(message, cause) {
|
|
14026
14203
|
super(message);
|
|
@@ -14043,6 +14220,7 @@ var require_error2 = __commonJS({
|
|
|
14043
14220
|
"../lib/odata-client/dist/connection/error.js"(exports2) {
|
|
14044
14221
|
"use strict";
|
|
14045
14222
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14223
|
+
exports2.UAATimeoutError = exports2.TimeoutError = exports2.ConnectionError = void 0;
|
|
14046
14224
|
var error_1 = require_error();
|
|
14047
14225
|
var ConnectionError = class extends error_1.BaseError {
|
|
14048
14226
|
constructor(message, cause) {
|
|
@@ -14656,8 +14834,9 @@ var require_utils6 = __commonJS({
|
|
|
14656
14834
|
"../lib/odata-client/dist/connection/utils.js"(exports2) {
|
|
14657
14835
|
"use strict";
|
|
14658
14836
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14837
|
+
exports2.timeString = exports2.timeoutMs = void 0;
|
|
14659
14838
|
exports2.timeoutMs = 60 * 1e3;
|
|
14660
|
-
|
|
14839
|
+
var timeString = (ms = exports2.timeoutMs) => {
|
|
14661
14840
|
const min = ms / 60 / 1e3;
|
|
14662
14841
|
if (min > 1) {
|
|
14663
14842
|
return `${min} minutes`;
|
|
@@ -14667,6 +14846,7 @@ var require_utils6 = __commonJS({
|
|
|
14667
14846
|
return `${ms / 1e3} seconds`;
|
|
14668
14847
|
}
|
|
14669
14848
|
};
|
|
14849
|
+
exports2.timeString = timeString;
|
|
14670
14850
|
}
|
|
14671
14851
|
});
|
|
14672
14852
|
|
|
@@ -14678,6 +14858,7 @@ var require_uaaOauth = __commonJS({
|
|
|
14678
14858
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
14679
14859
|
};
|
|
14680
14860
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14861
|
+
exports2.connectUsingUaaClientCredential = exports2.connectUsingUaa = exports2.defaultUtils = exports2.getServiceInfo = void 0;
|
|
14681
14862
|
var open = require_open();
|
|
14682
14863
|
var http_1 = __importDefault(require("http"));
|
|
14683
14864
|
var axios_1 = __importDefault(require_axios2());
|
|
@@ -15020,6 +15201,7 @@ var require_connectWithReentranceTicket = __commonJS({
|
|
|
15020
15201
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
15021
15202
|
};
|
|
15022
15203
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15204
|
+
exports2.connectWithReentranceTicket = void 0;
|
|
15023
15205
|
var axios_1 = __importDefault(require_axios2());
|
|
15024
15206
|
var common_1 = require_common3();
|
|
15025
15207
|
var express_1 = __importDefault(require("express"));
|
|
@@ -15276,7 +15458,7 @@ var require_lib2 = __commonJS({
|
|
|
15276
15458
|
});
|
|
15277
15459
|
|
|
15278
15460
|
// ../../node_modules/@sap/cf-tools/out/src/types.js
|
|
15279
|
-
var
|
|
15461
|
+
var require_types3 = __commonJS({
|
|
15280
15462
|
"../../node_modules/@sap/cf-tools/out/src/types.js"(exports2) {
|
|
15281
15463
|
"use strict";
|
|
15282
15464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -28461,7 +28643,7 @@ var require_cli = __commonJS({
|
|
|
28461
28643
|
var child_process_1 = require("child_process");
|
|
28462
28644
|
var comment_json_1 = require_src4();
|
|
28463
28645
|
var _45 = require_lodash();
|
|
28464
|
-
var types_1 =
|
|
28646
|
+
var types_1 = require_types3();
|
|
28465
28647
|
var Cli = class {
|
|
28466
28648
|
static execute(args, options2, token2) {
|
|
28467
28649
|
token2 = token2 || { isCancellationRequested: false, onCancellationRequested: () => {
|
|
@@ -28596,7 +28778,7 @@ var require_utils7 = __commonJS({
|
|
|
28596
28778
|
var path = require("path");
|
|
28597
28779
|
var comment_json_1 = require_src4();
|
|
28598
28780
|
var messages_1 = require_messages();
|
|
28599
|
-
var types_1 =
|
|
28781
|
+
var types_1 = require_types3();
|
|
28600
28782
|
function dataContentAsObject(filePath) {
|
|
28601
28783
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28602
28784
|
try {
|
|
@@ -28758,7 +28940,7 @@ var require_cf_local = __commonJS({
|
|
|
28758
28940
|
var _45 = require_lodash();
|
|
28759
28941
|
var cli_1 = require_cli();
|
|
28760
28942
|
var messages_1 = require_messages();
|
|
28761
|
-
var types_1 =
|
|
28943
|
+
var types_1 = require_types3();
|
|
28762
28944
|
var utils_1 = require_utils7();
|
|
28763
28945
|
var url_1 = require("url");
|
|
28764
28946
|
var baseParams = [
|
|
@@ -29381,7 +29563,7 @@ var require_cfServicesUtil = __commonJS({
|
|
|
29381
29563
|
exports2.isTargetSet = exports2.getInstanceMetadata = exports2.createServiceInstance = exports2.getInstanceCredentials = exports2.getServicesInstancesFilteredByType = void 0;
|
|
29382
29564
|
var cli_1 = require_cli();
|
|
29383
29565
|
var _45 = require_lodash();
|
|
29384
|
-
var types_1 =
|
|
29566
|
+
var types_1 = require_types3();
|
|
29385
29567
|
var cf_local_1 = require_cf_local();
|
|
29386
29568
|
function getServicesInstancesFilteredByType(serviceTypes) {
|
|
29387
29569
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -29465,7 +29647,7 @@ var require_src5 = __commonJS({
|
|
|
29465
29647
|
};
|
|
29466
29648
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
29467
29649
|
exports2.apiGetInstanceMetadata = exports2.apiCreateServiceInstance = exports2.apiGetInstanceCredentials = exports2.apiGetServicesInstancesFilteredByType = void 0;
|
|
29468
|
-
__exportStar(
|
|
29650
|
+
__exportStar(require_types3(), exports2);
|
|
29469
29651
|
__exportStar(require_cli(), exports2);
|
|
29470
29652
|
__exportStar(require_cf_local(), exports2);
|
|
29471
29653
|
__exportStar(require_messages(), exports2);
|
|
@@ -29506,6 +29688,7 @@ var require_destination = __commonJS({
|
|
|
29506
29688
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
29507
29689
|
};
|
|
29508
29690
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
29691
|
+
exports2.updateSystemConfig = exports2.replaceUrlForAppStudio = exports2.listDestinations = void 0;
|
|
29509
29692
|
var axios_1 = __importDefault(require_axios2());
|
|
29510
29693
|
var config_1 = require_config();
|
|
29511
29694
|
var ux_common_utils_1 = require_dist3();
|
|
@@ -29587,18 +29770,32 @@ var require_destination = __commonJS({
|
|
|
29587
29770
|
var require_connection = __commonJS({
|
|
29588
29771
|
"../lib/odata-client/dist/connection/index.js"(exports2) {
|
|
29589
29772
|
"use strict";
|
|
29590
|
-
function
|
|
29773
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
29774
|
+
if (k2 === void 0)
|
|
29775
|
+
k2 = k;
|
|
29776
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
29777
|
+
return m[k];
|
|
29778
|
+
} });
|
|
29779
|
+
} : function(o, m, k, k2) {
|
|
29780
|
+
if (k2 === void 0)
|
|
29781
|
+
k2 = k;
|
|
29782
|
+
o[k2] = m[k];
|
|
29783
|
+
});
|
|
29784
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
29591
29785
|
for (var p in m)
|
|
29592
|
-
if (!
|
|
29593
|
-
|
|
29594
|
-
}
|
|
29786
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
29787
|
+
__createBinding(exports3, m, p);
|
|
29788
|
+
};
|
|
29595
29789
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
29596
29790
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
29597
29791
|
};
|
|
29598
29792
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
29793
|
+
exports2.Cookies = exports2.connect = exports2.SAP_CLIENT = void 0;
|
|
29599
29794
|
var axios_1 = __importDefault(require_axios2());
|
|
29600
29795
|
var cookies_1 = require_cookies2();
|
|
29601
|
-
exports2
|
|
29796
|
+
Object.defineProperty(exports2, "Cookies", { enumerable: true, get: function() {
|
|
29797
|
+
return cookies_1.Cookies;
|
|
29798
|
+
} });
|
|
29602
29799
|
var config_1 = require_config();
|
|
29603
29800
|
var ux_common_utils_1 = require_dist3();
|
|
29604
29801
|
var uaaOauth_1 = require_uaaOauth();
|
|
@@ -29716,8 +29913,8 @@ var require_connection = __commonJS({
|
|
|
29716
29913
|
}
|
|
29717
29914
|
}
|
|
29718
29915
|
exports2.connect = connect;
|
|
29719
|
-
|
|
29720
|
-
|
|
29916
|
+
__exportStar(require_destination(), exports2);
|
|
29917
|
+
__exportStar(require_error2(), exports2);
|
|
29721
29918
|
}
|
|
29722
29919
|
});
|
|
29723
29920
|
|
|
@@ -29729,6 +29926,7 @@ var require_httpClient = __commonJS({
|
|
|
29729
29926
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
29730
29927
|
};
|
|
29731
29928
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
29929
|
+
exports2.newHttpClient = void 0;
|
|
29732
29930
|
var axios_1 = __importDefault(require_axios2());
|
|
29733
29931
|
var connection_1 = require_connection();
|
|
29734
29932
|
var https_1 = __importDefault(require("https"));
|
|
@@ -31022,7 +31220,7 @@ var require_source = __commonJS({
|
|
|
31022
31220
|
"../../node_modules/chalk/source/index.js"(exports2, module2) {
|
|
31023
31221
|
"use strict";
|
|
31024
31222
|
var ansiStyles = require_ansi_styles();
|
|
31025
|
-
var { stdout: stdoutColor, stderr: stderrColor } =
|
|
31223
|
+
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
31026
31224
|
var {
|
|
31027
31225
|
stringReplaceAll,
|
|
31028
31226
|
stringEncaseCRLFWithFirstIndex
|
|
@@ -31200,6 +31398,7 @@ var require_message = __commonJS({
|
|
|
31200
31398
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
31201
31399
|
};
|
|
31202
31400
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31401
|
+
exports2.printErrorDetails = exports2.prettyPrintError = exports2.prettyPrintMessage = void 0;
|
|
31203
31402
|
var chalk_1 = __importDefault(require_source());
|
|
31204
31403
|
function prettyPrintMessage(msg, log3, logData) {
|
|
31205
31404
|
logLevel(msg.severity, msg.message, log3);
|
|
@@ -31273,6 +31472,7 @@ var require_patchTls = __commonJS({
|
|
|
31273
31472
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
31274
31473
|
};
|
|
31275
31474
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
31475
|
+
exports2.TlsPatch = void 0;
|
|
31276
31476
|
var tls_1 = __importDefault(require("tls"));
|
|
31277
31477
|
var static_1 = require_static();
|
|
31278
31478
|
var TlsPatch = class {
|
|
@@ -32275,6 +32475,7 @@ var require_utils8 = __commonJS({
|
|
|
32275
32475
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32276
32476
|
};
|
|
32277
32477
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32478
|
+
exports2.hasServices = exports2.isSystemNameValid = exports2.getBTPSystem = exports2.getOnPremSystem = exports2.guessAuthType = exports2.xmlToJson = void 0;
|
|
32278
32479
|
var fast_xml_parser_1 = __importDefault(require_parser());
|
|
32279
32480
|
var config_1 = require_config();
|
|
32280
32481
|
var __1 = require_dist5();
|
|
@@ -32384,6 +32585,7 @@ var require_oDataClient = __commonJS({
|
|
|
32384
32585
|
"../lib/odata-client/dist/client/oDataClient.js"(exports2) {
|
|
32385
32586
|
"use strict";
|
|
32386
32587
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32588
|
+
exports2.ODataClient = void 0;
|
|
32387
32589
|
var config_1 = require_config();
|
|
32388
32590
|
var ux_common_utils_1 = require_dist3();
|
|
32389
32591
|
var httpClient_1 = require_httpClient();
|
|
@@ -32485,6 +32687,7 @@ var require_constants3 = __commonJS({
|
|
|
32485
32687
|
"../lib/odata-client/dist/constants.js"(exports2) {
|
|
32486
32688
|
"use strict";
|
|
32487
32689
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32690
|
+
exports2.DEFAULT_SERVICE_PATH = exports2.abapUrlReplaceMap = exports2.API_HUB_API_KEY = void 0;
|
|
32488
32691
|
exports2.API_HUB_API_KEY = "API_HUB_API_KEY";
|
|
32489
32692
|
exports2.abapUrlReplaceMap = /* @__PURE__ */ new Map([
|
|
32490
32693
|
[/\.abap\./, ".abap-web."],
|
|
@@ -32500,10 +32703,22 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
32500
32703
|
"../lib/odata-client/dist/client/ui5AbapRepository.js"(exports2) {
|
|
32501
32704
|
"use strict";
|
|
32502
32705
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32706
|
+
exports2.Ui5AbapRepository = void 0;
|
|
32503
32707
|
var oDataClient_1 = require_oDataClient();
|
|
32504
32708
|
var fs_1 = require("fs");
|
|
32505
32709
|
var message_1 = require_message();
|
|
32506
32710
|
var constants_1 = require_constants3();
|
|
32711
|
+
var xmlReplaceMap = {
|
|
32712
|
+
"&": "&",
|
|
32713
|
+
'"': """,
|
|
32714
|
+
"'": "'",
|
|
32715
|
+
"<": "<",
|
|
32716
|
+
">": ">"
|
|
32717
|
+
};
|
|
32718
|
+
var xmlReplaceRegex = /[<>&"']/g;
|
|
32719
|
+
function encodeXmlValue(xmlValue) {
|
|
32720
|
+
return xmlValue.replace(xmlReplaceRegex, (c) => xmlReplaceMap[c]);
|
|
32721
|
+
}
|
|
32507
32722
|
var Ui5AbapRepository2 = class extends oDataClient_1.ODataClient {
|
|
32508
32723
|
constructor({ system, credentials = void 0, log: log3 = console, connection = void 0, ignoreCertError, postConnectionCallback }) {
|
|
32509
32724
|
var _a2;
|
|
@@ -32589,7 +32804,8 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
32589
32804
|
createPayload(archive, name, description, abapPackage, httpClient) {
|
|
32590
32805
|
const base64Data = fs_1.readFileSync(archive, { encoding: "base64" });
|
|
32591
32806
|
const time = new Date().toISOString();
|
|
32592
|
-
|
|
32807
|
+
const escapedName = encodeXmlValue(name);
|
|
32808
|
+
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>`;
|
|
32593
32809
|
}
|
|
32594
32810
|
async updateRepoRequest(isExisting, appName, httpClient, payload, config2, tryCount = 1) {
|
|
32595
32811
|
var _a2, _b;
|
|
@@ -32642,6 +32858,7 @@ var require_common5 = __commonJS({
|
|
|
32642
32858
|
"../lib/odata-client/dist/client/catalog/common.js"(exports2) {
|
|
32643
32859
|
"use strict";
|
|
32644
32860
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32861
|
+
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;
|
|
32645
32862
|
var oDataClient_1 = require_oDataClient();
|
|
32646
32863
|
exports2.V2_CATALOG_URL_PATH = "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2";
|
|
32647
32864
|
exports2.V4_CATALOG_URL_PATH_DEV = "/sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0001";
|
|
@@ -32676,6 +32893,7 @@ var require_atoCatalog = __commonJS({
|
|
|
32676
32893
|
"../lib/odata-client/dist/client/catalog/atoCatalog.js"(exports2) {
|
|
32677
32894
|
"use strict";
|
|
32678
32895
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32896
|
+
exports2.AtoCatalog = void 0;
|
|
32679
32897
|
var utils_1 = require_utils8();
|
|
32680
32898
|
var oDataClient_1 = require_oDataClient();
|
|
32681
32899
|
var common_1 = require_common5();
|
|
@@ -32731,6 +32949,7 @@ var require_utils9 = __commonJS({
|
|
|
32731
32949
|
"../lib/odata-client/dist/client/catalog/utils.js"(exports2) {
|
|
32732
32950
|
"use strict";
|
|
32733
32951
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32952
|
+
exports2.isS4HanaCloudSystem = void 0;
|
|
32734
32953
|
function isS4HanaCloudSystem(atoSettings) {
|
|
32735
32954
|
return atoSettings.tenantType === "CUSTOMER" && atoSettings.operationsType === "C" && atoSettings.isExtensibilityDevSystem === true && atoSettings.devPrefix !== "" && atoSettings.devPackage !== "";
|
|
32736
32955
|
}
|
|
@@ -32743,6 +32962,7 @@ var require_v2Catalog = __commonJS({
|
|
|
32743
32962
|
"../lib/odata-client/dist/client/catalog/v2Catalog.js"(exports2) {
|
|
32744
32963
|
"use strict";
|
|
32745
32964
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32965
|
+
exports2.V2Catalog = void 0;
|
|
32746
32966
|
var uaaOauth_1 = require_uaaOauth();
|
|
32747
32967
|
var atoCatalog_1 = require_atoCatalog();
|
|
32748
32968
|
var common_1 = require_common5();
|
|
@@ -32850,6 +33070,7 @@ var require_v4Catalog = __commonJS({
|
|
|
32850
33070
|
"../lib/odata-client/dist/client/catalog/v4Catalog.js"(exports2) {
|
|
32851
33071
|
"use strict";
|
|
32852
33072
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33073
|
+
exports2.V4Catalog = void 0;
|
|
32853
33074
|
var uaaOauth_1 = require_uaaOauth();
|
|
32854
33075
|
var common_1 = require_common5();
|
|
32855
33076
|
var V4Catalog = class extends common_1.Catalog {
|
|
@@ -32903,18 +33124,30 @@ var require_v4Catalog = __commonJS({
|
|
|
32903
33124
|
var require_catalog = __commonJS({
|
|
32904
33125
|
"../lib/odata-client/dist/client/catalog/index.js"(exports2) {
|
|
32905
33126
|
"use strict";
|
|
32906
|
-
function
|
|
33127
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
33128
|
+
if (k2 === void 0)
|
|
33129
|
+
k2 = k;
|
|
33130
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
33131
|
+
return m[k];
|
|
33132
|
+
} });
|
|
33133
|
+
} : function(o, m, k, k2) {
|
|
33134
|
+
if (k2 === void 0)
|
|
33135
|
+
k2 = k;
|
|
33136
|
+
o[k2] = m[k];
|
|
33137
|
+
});
|
|
33138
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
32907
33139
|
for (var p in m)
|
|
32908
|
-
if (!
|
|
32909
|
-
|
|
32910
|
-
}
|
|
33140
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
33141
|
+
__createBinding(exports3, m, p);
|
|
33142
|
+
};
|
|
32911
33143
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33144
|
+
exports2.getCatalog = void 0;
|
|
32912
33145
|
var __1 = require_client();
|
|
32913
|
-
|
|
32914
|
-
|
|
32915
|
-
|
|
32916
|
-
|
|
32917
|
-
|
|
33146
|
+
__exportStar(require_common5(), exports2);
|
|
33147
|
+
__exportStar(require_atoCatalog(), exports2);
|
|
33148
|
+
__exportStar(require_v2Catalog(), exports2);
|
|
33149
|
+
__exportStar(require_v4Catalog(), exports2);
|
|
33150
|
+
__exportStar(require_utils9(), exports2);
|
|
32918
33151
|
function getCatalog(options2) {
|
|
32919
33152
|
return options2.odataVersion === __1.ODataVersion.v4 ? new __1.V4Catalog(options2) : new __1.V2Catalog(options2);
|
|
32920
33153
|
}
|
|
@@ -32926,17 +33159,28 @@ var require_catalog = __commonJS({
|
|
|
32926
33159
|
var require_client = __commonJS({
|
|
32927
33160
|
"../lib/odata-client/dist/client/index.js"(exports2) {
|
|
32928
33161
|
"use strict";
|
|
32929
|
-
function
|
|
33162
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
33163
|
+
if (k2 === void 0)
|
|
33164
|
+
k2 = k;
|
|
33165
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
33166
|
+
return m[k];
|
|
33167
|
+
} });
|
|
33168
|
+
} : function(o, m, k, k2) {
|
|
33169
|
+
if (k2 === void 0)
|
|
33170
|
+
k2 = k;
|
|
33171
|
+
o[k2] = m[k];
|
|
33172
|
+
});
|
|
33173
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
32930
33174
|
for (var p in m)
|
|
32931
|
-
if (!
|
|
32932
|
-
|
|
32933
|
-
}
|
|
33175
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
33176
|
+
__createBinding(exports3, m, p);
|
|
33177
|
+
};
|
|
32934
33178
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32935
|
-
|
|
32936
|
-
|
|
32937
|
-
|
|
32938
|
-
|
|
32939
|
-
|
|
33179
|
+
__exportStar(require_oDataClient(), exports2);
|
|
33180
|
+
__exportStar(require_ui5AbapRepository(), exports2);
|
|
33181
|
+
__exportStar(require_catalog(), exports2);
|
|
33182
|
+
__exportStar(require_message(), exports2);
|
|
33183
|
+
__exportStar(require_patchTls(), exports2);
|
|
32940
33184
|
}
|
|
32941
33185
|
});
|
|
32942
33186
|
|
|
@@ -32945,6 +33189,7 @@ var require_api_hub = __commonJS({
|
|
|
32945
33189
|
"../lib/odata-client/dist/api-hub/index.js"(exports2) {
|
|
32946
33190
|
"use strict";
|
|
32947
33191
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33192
|
+
exports2.saveApiHubApiKey = exports2.getApiHubApiKey = void 0;
|
|
32948
33193
|
var config_1 = require_config();
|
|
32949
33194
|
var ux_store_1 = require_dist4();
|
|
32950
33195
|
var constants_1 = require_constants3();
|
|
@@ -32972,10 +33217,11 @@ var require_api_hub = __commonJS({
|
|
|
32972
33217
|
});
|
|
32973
33218
|
|
|
32974
33219
|
// ../lib/odata-client/dist/types.js
|
|
32975
|
-
var
|
|
33220
|
+
var require_types4 = __commonJS({
|
|
32976
33221
|
"../lib/odata-client/dist/types.js"(exports2) {
|
|
32977
33222
|
"use strict";
|
|
32978
33223
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33224
|
+
exports2.SystemType = void 0;
|
|
32979
33225
|
var SystemType;
|
|
32980
33226
|
(function(SystemType2) {
|
|
32981
33227
|
SystemType2["OnPremise"] = "abap_onpremise";
|
|
@@ -32989,12 +33235,13 @@ var require_sapSystem = __commonJS({
|
|
|
32989
33235
|
"../lib/odata-client/dist/system/sapSystem.js"(exports2) {
|
|
32990
33236
|
"use strict";
|
|
32991
33237
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33238
|
+
exports2.stripOldSCPSuffix = exports2.SapSystem = void 0;
|
|
32992
33239
|
var ux_store_1 = require_dist4();
|
|
32993
33240
|
var __1 = require_dist5();
|
|
32994
33241
|
var client_1 = require_client();
|
|
32995
33242
|
var config_1 = require_config();
|
|
32996
33243
|
var ux_common_utils_1 = require_dist3();
|
|
32997
|
-
var types_1 =
|
|
33244
|
+
var types_1 = require_types4();
|
|
32998
33245
|
var NEW_SCP_SUFFIX = " (BTP)";
|
|
32999
33246
|
var SapSystem2 = class {
|
|
33000
33247
|
constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
|
|
@@ -33026,10 +33273,19 @@ var require_sapSystem = __commonJS({
|
|
|
33026
33273
|
refreshToken: s.refreshToken
|
|
33027
33274
|
} : void 0;
|
|
33028
33275
|
const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || __1.guessAuthType({ credentials, fallback: false });
|
|
33029
|
-
return new SapSystem2(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName);
|
|
33276
|
+
return new SapSystem2(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName, void 0, void 0);
|
|
33030
33277
|
}
|
|
33031
|
-
|
|
33032
|
-
return
|
|
33278
|
+
getConnection() {
|
|
33279
|
+
return this.connection;
|
|
33280
|
+
}
|
|
33281
|
+
clone({ retainConnection } = { retainConnection: false }) {
|
|
33282
|
+
var _a2;
|
|
33283
|
+
const copy3 = SapSystem2.fromSerialized(this.serialize());
|
|
33284
|
+
if (retainConnection) {
|
|
33285
|
+
copy3.connection = this.connection;
|
|
33286
|
+
copy3.config.destination = (_a2 = this.config) == null ? void 0 : _a2.destination;
|
|
33287
|
+
}
|
|
33288
|
+
return copy3;
|
|
33033
33289
|
}
|
|
33034
33290
|
get refreshToken() {
|
|
33035
33291
|
var _a2;
|
|
@@ -33255,6 +33511,7 @@ var require_systemStore = __commonJS({
|
|
|
33255
33511
|
"../lib/odata-client/dist/system/systemStore.js"(exports2) {
|
|
33256
33512
|
"use strict";
|
|
33257
33513
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33514
|
+
exports2.getSystemStore = void 0;
|
|
33258
33515
|
var sapSystem_1 = require_sapSystem();
|
|
33259
33516
|
var ux_store_1 = require_dist4();
|
|
33260
33517
|
var DefaultImplementation = class {
|
|
@@ -33302,9 +33559,10 @@ var require_systemStore = __commonJS({
|
|
|
33302
33559
|
await this.storeService.partialUpdate(new ux_store_1.BackendSystemKey({ url, client }), update);
|
|
33303
33560
|
}
|
|
33304
33561
|
};
|
|
33305
|
-
|
|
33562
|
+
var getSystemStore = async (log3 = console) => {
|
|
33306
33563
|
return DefaultImplementation.createInstance(log3);
|
|
33307
33564
|
};
|
|
33565
|
+
exports2.getSystemStore = getSystemStore;
|
|
33308
33566
|
}
|
|
33309
33567
|
});
|
|
33310
33568
|
|
|
@@ -33313,10 +33571,13 @@ var require_system = __commonJS({
|
|
|
33313
33571
|
"../lib/odata-client/dist/system/index.js"(exports2) {
|
|
33314
33572
|
"use strict";
|
|
33315
33573
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33574
|
+
exports2.SapSystem = exports2.deleteSapSystem = exports2.saveSapSystem = exports2.newSapSystemForDestinaton = exports2.newS4HCSystem = exports2.newSapSystemForSteampunk = exports2.newSapSystemForServiceUrl = exports2.newSapSystem = exports2.getSapSystem = exports2.isSystemNameInUse = exports2.listSAPSystems = void 0;
|
|
33316
33575
|
var connection_1 = require_connection();
|
|
33317
33576
|
var ux_common_utils_1 = require_dist3();
|
|
33318
33577
|
var sapSystem_1 = require_sapSystem();
|
|
33319
|
-
exports2
|
|
33578
|
+
Object.defineProperty(exports2, "SapSystem", { enumerable: true, get: function() {
|
|
33579
|
+
return sapSystem_1.SapSystem;
|
|
33580
|
+
} });
|
|
33320
33581
|
var systemStore_1 = require_systemStore();
|
|
33321
33582
|
var url_1 = require("url");
|
|
33322
33583
|
var __1 = require_dist5();
|
|
@@ -33469,18 +33730,29 @@ var require_system = __commonJS({
|
|
|
33469
33730
|
var require_dist5 = __commonJS({
|
|
33470
33731
|
"../lib/odata-client/dist/index.js"(exports2) {
|
|
33471
33732
|
"use strict";
|
|
33472
|
-
function
|
|
33733
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
33734
|
+
if (k2 === void 0)
|
|
33735
|
+
k2 = k;
|
|
33736
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
33737
|
+
return m[k];
|
|
33738
|
+
} });
|
|
33739
|
+
} : function(o, m, k, k2) {
|
|
33740
|
+
if (k2 === void 0)
|
|
33741
|
+
k2 = k;
|
|
33742
|
+
o[k2] = m[k];
|
|
33743
|
+
});
|
|
33744
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
33473
33745
|
for (var p in m)
|
|
33474
|
-
if (!
|
|
33475
|
-
|
|
33476
|
-
}
|
|
33746
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
33747
|
+
__createBinding(exports3, m, p);
|
|
33748
|
+
};
|
|
33477
33749
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
33478
|
-
|
|
33479
|
-
|
|
33480
|
-
|
|
33481
|
-
|
|
33482
|
-
|
|
33483
|
-
|
|
33750
|
+
__exportStar(require_client(), exports2);
|
|
33751
|
+
__exportStar(require_utils8(), exports2);
|
|
33752
|
+
__exportStar(require_config(), exports2);
|
|
33753
|
+
__exportStar(require_connection(), exports2);
|
|
33754
|
+
__exportStar(require_api_hub(), exports2);
|
|
33755
|
+
__exportStar(require_system(), exports2);
|
|
33484
33756
|
}
|
|
33485
33757
|
});
|
|
33486
33758
|
|
|
@@ -40174,13 +40446,15 @@ var require_system2 = __commonJS({
|
|
|
40174
40446
|
"../lib/telemetry/dist/src/util/system.js"(exports2) {
|
|
40175
40447
|
"use strict";
|
|
40176
40448
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40177
|
-
exports2.processMatchingPaths =
|
|
40449
|
+
exports2.processMatchingPaths = void 0;
|
|
40450
|
+
var processMatchingPaths = (matchingPaths) => {
|
|
40178
40451
|
const matchPaths = matchingPaths;
|
|
40179
40452
|
matchPaths.forEach((matchingPath) => {
|
|
40180
40453
|
matchingPath.patterns = matchingPath.patterns.map((pattern) => new RegExp(`[\\w\\s-./:@!]+${pattern}`, "gi"));
|
|
40181
40454
|
});
|
|
40182
40455
|
return matchPaths;
|
|
40183
40456
|
};
|
|
40457
|
+
exports2.processMatchingPaths = processMatchingPaths;
|
|
40184
40458
|
}
|
|
40185
40459
|
});
|
|
40186
40460
|
|
|
@@ -40192,17 +40466,19 @@ var require_cloudDebugger = __commonJS({
|
|
|
40192
40466
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
40193
40467
|
};
|
|
40194
40468
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40469
|
+
exports2.debug = void 0;
|
|
40195
40470
|
var fs_1 = __importDefault(require("fs"));
|
|
40196
40471
|
var os_1 = __importDefault(require("os"));
|
|
40197
40472
|
var path_1 = __importDefault(require("path"));
|
|
40198
40473
|
var homedir = os_1.default.homedir();
|
|
40199
40474
|
var debugFilePath = path_1.default.join(homedir, "theiadebug.txt");
|
|
40200
|
-
|
|
40475
|
+
var debug = (message, active = false) => {
|
|
40201
40476
|
if (active) {
|
|
40202
40477
|
fs_1.default.appendFileSync(debugFilePath, `${message}
|
|
40203
40478
|
`, "utf8");
|
|
40204
40479
|
}
|
|
40205
40480
|
};
|
|
40481
|
+
exports2.debug = debug;
|
|
40206
40482
|
}
|
|
40207
40483
|
});
|
|
40208
40484
|
|
|
@@ -40211,14 +40487,18 @@ var require_EventName = __commonJS({
|
|
|
40211
40487
|
"../lib/telemetry/dist/src/client/model/EventName.js"(exports2) {
|
|
40212
40488
|
"use strict";
|
|
40213
40489
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40490
|
+
exports2.EventName = void 0;
|
|
40214
40491
|
var EventName2;
|
|
40215
40492
|
(function(EventName3) {
|
|
40216
40493
|
EventName3["Test"] = "test";
|
|
40217
40494
|
EventName3["TELEMETRY_SETTINGS_INIT_FAILED"] = "TELEMETRY_SETTINGS_INIT_FAILED";
|
|
40218
40495
|
EventName3["DISABLE_TELEMETRY"] = "DISABLE_TELEMETRY";
|
|
40219
|
-
EventName3["
|
|
40220
|
-
EventName3["
|
|
40221
|
-
EventName3["
|
|
40496
|
+
EventName3["GD_GUIDE_ACTION"] = "GUIDE_ACTION";
|
|
40497
|
+
EventName3["GD_PANEL_LOAD"] = "PANEL_LOAD";
|
|
40498
|
+
EventName3["GD_LAUNCH"] = "LAUNCH_GD";
|
|
40499
|
+
EventName3["GD_SIDE_BY_SIDE"] = "GD_SIDE_BY_SIDE";
|
|
40500
|
+
EventName3["GD_WIZARD"] = "GD_WIZARD";
|
|
40501
|
+
EventName3["GD_DESCMODE"] = "GD_DESCMODE";
|
|
40222
40502
|
EventName3["PAGEMAP"] = "PAGEMAP";
|
|
40223
40503
|
EventName3["APP_ACTIONS"] = "ACTIONS";
|
|
40224
40504
|
EventName3["PAGE_EDITOR"] = "PAGE_EDITOR";
|
|
@@ -51900,7 +52180,7 @@ var require_package6 = __commonJS({
|
|
|
51900
52180
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
51901
52181
|
module2.exports = {
|
|
51902
52182
|
name: "@sap/ux-telemetry",
|
|
51903
|
-
version: "1.7.
|
|
52183
|
+
version: "1.7.4",
|
|
51904
52184
|
description: "SAP Fiori tools telemetry library",
|
|
51905
52185
|
main: "dist/src/index.js",
|
|
51906
52186
|
author: "SAP SE",
|
|
@@ -51925,17 +52205,17 @@ var require_package6 = __commonJS({
|
|
|
51925
52205
|
},
|
|
51926
52206
|
dependencies: {
|
|
51927
52207
|
"@sap-ux/store": "0.3.0",
|
|
51928
|
-
"@sap/ux-cds": "1.7.
|
|
51929
|
-
"@sap/ux-common-utils": "1.7.
|
|
51930
|
-
"@sap/ux-feature-toggle": "1.7.
|
|
51931
|
-
"@sap/ux-project-access": "1.7.
|
|
52208
|
+
"@sap/ux-cds": "1.7.4",
|
|
52209
|
+
"@sap/ux-common-utils": "1.7.4",
|
|
52210
|
+
"@sap/ux-feature-toggle": "1.7.4",
|
|
52211
|
+
"@sap/ux-project-access": "1.7.4",
|
|
51932
52212
|
applicationinsights: "1.4.1",
|
|
51933
52213
|
"performance-now": "2.1.0",
|
|
51934
52214
|
yaml: "2.0.0-10"
|
|
51935
52215
|
},
|
|
51936
52216
|
devDependencies: {
|
|
51937
52217
|
"ts-node": "8.5.2",
|
|
51938
|
-
typescript: "3.
|
|
52218
|
+
typescript: "4.3.5"
|
|
51939
52219
|
},
|
|
51940
52220
|
files: [
|
|
51941
52221
|
"dist/"
|
|
@@ -51971,6 +52251,7 @@ var require_telemetryClientConfig = __commonJS({
|
|
|
51971
52251
|
"../lib/telemetry/dist/src/util/telemetryClientConfig.js"(exports2) {
|
|
51972
52252
|
"use strict";
|
|
51973
52253
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52254
|
+
exports2.configAzureTelemetryClient = void 0;
|
|
51974
52255
|
function configAzureTelemetryClient(client) {
|
|
51975
52256
|
client.channel.setUseDiskRetryCaching(true);
|
|
51976
52257
|
client.addTelemetryProcessor((envelope) => {
|
|
@@ -51989,19 +52270,36 @@ var require_telemetryClientConfig = __commonJS({
|
|
|
51989
52270
|
var require_reporting = __commonJS({
|
|
51990
52271
|
"../lib/telemetry/dist/src/util/reporting.js"(exports2) {
|
|
51991
52272
|
"use strict";
|
|
52273
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
52274
|
+
if (k2 === void 0)
|
|
52275
|
+
k2 = k;
|
|
52276
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
52277
|
+
return m[k];
|
|
52278
|
+
} });
|
|
52279
|
+
} : function(o, m, k, k2) {
|
|
52280
|
+
if (k2 === void 0)
|
|
52281
|
+
k2 = k;
|
|
52282
|
+
o[k2] = m[k];
|
|
52283
|
+
});
|
|
52284
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
52285
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
52286
|
+
} : function(o, v) {
|
|
52287
|
+
o["default"] = v;
|
|
52288
|
+
});
|
|
51992
52289
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
51993
52290
|
if (mod && mod.__esModule)
|
|
51994
52291
|
return mod;
|
|
51995
52292
|
var result2 = {};
|
|
51996
52293
|
if (mod != null) {
|
|
51997
52294
|
for (var k in mod)
|
|
51998
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
51999
|
-
result2
|
|
52295
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
52296
|
+
__createBinding(result2, mod, k);
|
|
52000
52297
|
}
|
|
52001
|
-
result2
|
|
52298
|
+
__setModuleDefault(result2, mod);
|
|
52002
52299
|
return result2;
|
|
52003
52300
|
};
|
|
52004
52301
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52302
|
+
exports2.reportEnableTelemetryOnOff = exports2.reportRuntimeError = void 0;
|
|
52005
52303
|
var EventName_1 = require_EventName();
|
|
52006
52304
|
var appInsights = __importStar(require_applicationinsights());
|
|
52007
52305
|
var telemetryPackageJSON = __importStar(require_package6());
|
|
@@ -52042,7 +52340,7 @@ var require_reporting = __commonJS({
|
|
|
52042
52340
|
};
|
|
52043
52341
|
var reportingTelemetryClient = new appInsights.TelemetryClient(telemetryPackageJSON.azureInstrumentationKey);
|
|
52044
52342
|
telemetryClientConfig_1.configAzureTelemetryClient(reportingTelemetryClient);
|
|
52045
|
-
|
|
52343
|
+
var reportRuntimeError = (error3) => {
|
|
52046
52344
|
const properties = { message: error3.message };
|
|
52047
52345
|
if (error3.stack) {
|
|
52048
52346
|
const parsedStack = parseErrorStack(error3.stack);
|
|
@@ -52059,7 +52357,8 @@ var require_reporting = __commonJS({
|
|
|
52059
52357
|
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
52060
52358
|
}
|
|
52061
52359
|
};
|
|
52062
|
-
exports2.
|
|
52360
|
+
exports2.reportRuntimeError = reportRuntimeError;
|
|
52361
|
+
var reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
52063
52362
|
const telemetryEvent = {
|
|
52064
52363
|
name: EventName_1.EventName.DISABLE_TELEMETRY,
|
|
52065
52364
|
properties: {
|
|
@@ -52072,6 +52371,7 @@ var require_reporting = __commonJS({
|
|
|
52072
52371
|
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
52073
52372
|
}
|
|
52074
52373
|
};
|
|
52374
|
+
exports2.reportEnableTelemetryOnOff = reportEnableTelemetryOnOff;
|
|
52075
52375
|
}
|
|
52076
52376
|
});
|
|
52077
52377
|
|
|
@@ -52083,6 +52383,7 @@ var require_system3 = __commonJS({
|
|
|
52083
52383
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
52084
52384
|
};
|
|
52085
52385
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52386
|
+
exports2.TelemetrySystem = void 0;
|
|
52086
52387
|
var fs_1 = __importDefault(require("fs"));
|
|
52087
52388
|
var system_1 = require_system2();
|
|
52088
52389
|
var cloudDebugger_1 = require_cloudDebugger();
|
|
@@ -52195,6 +52496,7 @@ var require_client2 = __commonJS({
|
|
|
52195
52496
|
"../lib/telemetry/dist/src/client/client.js"(exports2) {
|
|
52196
52497
|
"use strict";
|
|
52197
52498
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52499
|
+
exports2.Client = void 0;
|
|
52198
52500
|
var Client = class {
|
|
52199
52501
|
constructor() {
|
|
52200
52502
|
this.applicationKey = "";
|
|
@@ -52220,6 +52522,7 @@ var require_EventHeader = __commonJS({
|
|
|
52220
52522
|
"../lib/telemetry/dist/src/client/model/EventHeader.js"(exports2) {
|
|
52221
52523
|
"use strict";
|
|
52222
52524
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52525
|
+
exports2.EventHeader = void 0;
|
|
52223
52526
|
var EventHeader = class {
|
|
52224
52527
|
constructor(extensionName, eventName) {
|
|
52225
52528
|
this.extensionName = extensionName;
|
|
@@ -52244,6 +52547,7 @@ var require_SampleRate = __commonJS({
|
|
|
52244
52547
|
"../lib/telemetry/dist/src/client/model/SampleRate.js"(exports2) {
|
|
52245
52548
|
"use strict";
|
|
52246
52549
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52550
|
+
exports2.SampleRate = void 0;
|
|
52247
52551
|
var SampleRate2;
|
|
52248
52552
|
(function(SampleRate3) {
|
|
52249
52553
|
SampleRate3[SampleRate3["OnePercent"] = 0] = "OnePercent";
|
|
@@ -52257,19 +52561,36 @@ var require_SampleRate = __commonJS({
|
|
|
52257
52561
|
var require_appInsightClient = __commonJS({
|
|
52258
52562
|
"../lib/telemetry/dist/src/client/appInsightClient.js"(exports2) {
|
|
52259
52563
|
"use strict";
|
|
52564
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
52565
|
+
if (k2 === void 0)
|
|
52566
|
+
k2 = k;
|
|
52567
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
52568
|
+
return m[k];
|
|
52569
|
+
} });
|
|
52570
|
+
} : function(o, m, k, k2) {
|
|
52571
|
+
if (k2 === void 0)
|
|
52572
|
+
k2 = k;
|
|
52573
|
+
o[k2] = m[k];
|
|
52574
|
+
});
|
|
52575
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
52576
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
52577
|
+
} : function(o, v) {
|
|
52578
|
+
o["default"] = v;
|
|
52579
|
+
});
|
|
52260
52580
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
52261
52581
|
if (mod && mod.__esModule)
|
|
52262
52582
|
return mod;
|
|
52263
52583
|
var result2 = {};
|
|
52264
52584
|
if (mod != null) {
|
|
52265
52585
|
for (var k in mod)
|
|
52266
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
52267
|
-
result2
|
|
52586
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
52587
|
+
__createBinding(result2, mod, k);
|
|
52268
52588
|
}
|
|
52269
|
-
result2
|
|
52589
|
+
__setModuleDefault(result2, mod);
|
|
52270
52590
|
return result2;
|
|
52271
52591
|
};
|
|
52272
52592
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52593
|
+
exports2.ApplicationInsightClient = void 0;
|
|
52273
52594
|
var client_1 = require_client2();
|
|
52274
52595
|
var appInsights = __importStar(require_applicationinsights());
|
|
52275
52596
|
var EventHeader_1 = require_EventHeader();
|
|
@@ -52341,10 +52662,12 @@ var require_date = __commonJS({
|
|
|
52341
52662
|
"../lib/telemetry/dist/src/util/date.js"(exports2) {
|
|
52342
52663
|
"use strict";
|
|
52343
52664
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52344
|
-
exports2.localDatetimeToUTC =
|
|
52665
|
+
exports2.localDatetimeToUTC = void 0;
|
|
52666
|
+
var localDatetimeToUTC = () => {
|
|
52345
52667
|
const timeInMs = new Date().getTime();
|
|
52346
52668
|
return new Date(timeInMs).toISOString();
|
|
52347
52669
|
};
|
|
52670
|
+
exports2.localDatetimeToUTC = localDatetimeToUTC;
|
|
52348
52671
|
}
|
|
52349
52672
|
});
|
|
52350
52673
|
|
|
@@ -52353,6 +52676,7 @@ var require_toolsSuiteTelemetryClient = __commonJS({
|
|
|
52353
52676
|
"../lib/telemetry/dist/src/toolsSuiteTelemetry/toolsSuiteTelemetryClient.js"(exports2) {
|
|
52354
52677
|
"use strict";
|
|
52355
52678
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
52679
|
+
exports2.ToolsSuiteTelemetryClient = void 0;
|
|
52356
52680
|
var appInsightClient_1 = require_appInsightClient();
|
|
52357
52681
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
52358
52682
|
var date_1 = require_date();
|
|
@@ -52858,6 +53182,7 @@ var require_i18n3 = __commonJS({
|
|
|
52858
53182
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
52859
53183
|
};
|
|
52860
53184
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
53185
|
+
exports2.initI18n = exports2.i18n = void 0;
|
|
52861
53186
|
var i18next_1 = __importDefault((init_i18next(), __toCommonJS(i18next_exports)));
|
|
52862
53187
|
var i18n_json_1 = __importDefault(require_i18n2());
|
|
52863
53188
|
exports2.i18n = i18next_1.default.createInstance();
|
|
@@ -53275,19 +53600,36 @@ var init_esm = __esm({
|
|
|
53275
53600
|
var require_file2 = __commonJS({
|
|
53276
53601
|
"../lib/project-access/core/dist/common/file.js"(exports2) {
|
|
53277
53602
|
"use strict";
|
|
53603
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
53604
|
+
if (k2 === void 0)
|
|
53605
|
+
k2 = k;
|
|
53606
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
53607
|
+
return m[k];
|
|
53608
|
+
} });
|
|
53609
|
+
} : function(o, m, k, k2) {
|
|
53610
|
+
if (k2 === void 0)
|
|
53611
|
+
k2 = k;
|
|
53612
|
+
o[k2] = m[k];
|
|
53613
|
+
});
|
|
53614
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
53615
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
53616
|
+
} : function(o, v) {
|
|
53617
|
+
o["default"] = v;
|
|
53618
|
+
});
|
|
53278
53619
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
53279
53620
|
if (mod && mod.__esModule)
|
|
53280
53621
|
return mod;
|
|
53281
53622
|
var result2 = {};
|
|
53282
53623
|
if (mod != null) {
|
|
53283
53624
|
for (var k in mod)
|
|
53284
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
53285
|
-
result2
|
|
53625
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
53626
|
+
__createBinding(result2, mod, k);
|
|
53286
53627
|
}
|
|
53287
|
-
result2
|
|
53628
|
+
__setModuleDefault(result2, mod);
|
|
53288
53629
|
return result2;
|
|
53289
53630
|
};
|
|
53290
53631
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
53632
|
+
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;
|
|
53291
53633
|
var fs2 = __importStar(require("fs"));
|
|
53292
53634
|
var path_1 = require("path");
|
|
53293
53635
|
var vscode_uri_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
@@ -55256,6 +55598,7 @@ var require_file3 = __commonJS({
|
|
|
55256
55598
|
"../lib/ux-cds/dist/utils/file.js"(exports2) {
|
|
55257
55599
|
"use strict";
|
|
55258
55600
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
55601
|
+
exports2.fileExists = exports2.readFile = void 0;
|
|
55259
55602
|
var fs_1 = require("fs");
|
|
55260
55603
|
async function readFile2(path) {
|
|
55261
55604
|
const data2 = await fs_1.promises.readFile(path);
|
|
@@ -55279,6 +55622,7 @@ var require_capProject = __commonJS({
|
|
|
55279
55622
|
"../lib/ux-cds/dist/utils/capProject.js"(exports2) {
|
|
55280
55623
|
"use strict";
|
|
55281
55624
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
55625
|
+
exports2.toReferenceUri = exports2.toAbsoluteUri = exports2.isCapJavaProject = exports2.isCapNodeJsProject = exports2.isCapProject = exports2.CAP_DB_FOLDER = exports2.CAP_APPS_FOLDER = exports2.CAP_SERVICES_FOLDER = void 0;
|
|
55282
55626
|
var path_1 = require("path");
|
|
55283
55627
|
var file_1 = require_file3();
|
|
55284
55628
|
exports2.CAP_SERVICES_FOLDER = "srv";
|
|
@@ -55312,8 +55656,9 @@ var require_capProject = __commonJS({
|
|
|
55312
55656
|
return file_1.fileExists(path_1.join(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
|
|
55313
55657
|
}
|
|
55314
55658
|
exports2.isCapJavaProject = isCapJavaProject;
|
|
55315
|
-
|
|
55316
|
-
exports2.
|
|
55659
|
+
var toAbsoluteUri = (project, relativeUri) => path_1.join(project.root, relativeUri);
|
|
55660
|
+
exports2.toAbsoluteUri = toAbsoluteUri;
|
|
55661
|
+
var toReferenceUri = async (project, relativeUriFrom, relativeUriTo) => {
|
|
55317
55662
|
let relativeUri = "";
|
|
55318
55663
|
const indexNodeModules = relativeUriTo.lastIndexOf("node_modules");
|
|
55319
55664
|
if (indexNodeModules >= 0) {
|
|
@@ -55342,6 +55687,7 @@ var require_capProject = __commonJS({
|
|
|
55342
55687
|
}
|
|
55343
55688
|
return relativeUri.split(path_1.sep).join("/");
|
|
55344
55689
|
};
|
|
55690
|
+
exports2.toReferenceUri = toReferenceUri;
|
|
55345
55691
|
async function getPackageNameInFolder(baseUri, relativeUri) {
|
|
55346
55692
|
const refUriParts = relativeUri.split(path_1.sep);
|
|
55347
55693
|
const result2 = { packageName: "", packageFolder: relativeUri };
|
|
@@ -55375,19 +55721,36 @@ var require_capProject = __commonJS({
|
|
|
55375
55721
|
var require_webapp2 = __commonJS({
|
|
55376
55722
|
"../lib/project-access/core/dist/project/webapp.js"(exports2) {
|
|
55377
55723
|
"use strict";
|
|
55724
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
55725
|
+
if (k2 === void 0)
|
|
55726
|
+
k2 = k;
|
|
55727
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
55728
|
+
return m[k];
|
|
55729
|
+
} });
|
|
55730
|
+
} : function(o, m, k, k2) {
|
|
55731
|
+
if (k2 === void 0)
|
|
55732
|
+
k2 = k;
|
|
55733
|
+
o[k2] = m[k];
|
|
55734
|
+
});
|
|
55735
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
55736
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
55737
|
+
} : function(o, v) {
|
|
55738
|
+
o["default"] = v;
|
|
55739
|
+
});
|
|
55378
55740
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
55379
55741
|
if (mod && mod.__esModule)
|
|
55380
55742
|
return mod;
|
|
55381
55743
|
var result2 = {};
|
|
55382
55744
|
if (mod != null) {
|
|
55383
55745
|
for (var k in mod)
|
|
55384
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
55385
|
-
result2
|
|
55746
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
55747
|
+
__createBinding(result2, mod, k);
|
|
55386
55748
|
}
|
|
55387
|
-
result2
|
|
55749
|
+
__setModuleDefault(result2, mod);
|
|
55388
55750
|
return result2;
|
|
55389
55751
|
};
|
|
55390
55752
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
55753
|
+
exports2.getUi5CustomWebappPath = void 0;
|
|
55391
55754
|
var file_1 = require_file2();
|
|
55392
55755
|
var path_1 = require("path");
|
|
55393
55756
|
var project_spec_1 = require_dist2();
|
|
@@ -55412,6 +55775,7 @@ var require_commandRunner = __commonJS({
|
|
|
55412
55775
|
"../lib/ui5-info/core/dist/commandRunner.js"(exports2) {
|
|
55413
55776
|
"use strict";
|
|
55414
55777
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
55778
|
+
exports2.CommandRunner = void 0;
|
|
55415
55779
|
var child_process_1 = require("child_process");
|
|
55416
55780
|
var CommandRunner = class {
|
|
55417
55781
|
run(cmd, args = []) {
|
|
@@ -57733,10 +58097,11 @@ var require_semver5 = __commonJS({
|
|
|
57733
58097
|
});
|
|
57734
58098
|
|
|
57735
58099
|
// ../lib/ui5-info/core/dist/types.js
|
|
57736
|
-
var
|
|
58100
|
+
var require_types5 = __commonJS({
|
|
57737
58101
|
"../lib/ui5-info/core/dist/types.js"(exports2) {
|
|
57738
58102
|
"use strict";
|
|
57739
58103
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58104
|
+
exports2.inMaintenance = exports2.minUI5VersionForLocalDev = exports2.FioriElementsVersion = exports2.UI5Info = void 0;
|
|
57740
58105
|
var UI5Info2;
|
|
57741
58106
|
(function(UI5Info3) {
|
|
57742
58107
|
UI5Info3["OfficialUrl"] = "https://ui5.sap.com";
|
|
@@ -57765,10 +58130,11 @@ var require_ui5_info = __commonJS({
|
|
|
57765
58130
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
57766
58131
|
};
|
|
57767
58132
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58133
|
+
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;
|
|
57768
58134
|
var semver_compare_1 = __importDefault(require_semver_compare());
|
|
57769
58135
|
var semver_1 = require_semver5();
|
|
57770
58136
|
var ux_odata_client_1 = require_dist5();
|
|
57771
|
-
var types_1 =
|
|
58137
|
+
var types_1 = require_types5();
|
|
57772
58138
|
var commandRunner_1 = require_commandRunner();
|
|
57773
58139
|
var axios_1 = __importDefault(require_axios2());
|
|
57774
58140
|
var https_1 = __importDefault(require("https"));
|
|
@@ -57778,6 +58144,7 @@ var require_ui5_info = __commonJS({
|
|
|
57778
58144
|
exports2.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE = "1.99.0";
|
|
57779
58145
|
exports2.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE = "1.90.0";
|
|
57780
58146
|
exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = "1.96.8";
|
|
58147
|
+
exports2.MIN_UI5_VERSION_FPM_TEMPLATE = "1.94.0";
|
|
57781
58148
|
var MIN_UI5_VERSION_V2_TEMPLATE = "1.76.0";
|
|
57782
58149
|
var MIN_UI5_DARK_THEME = "1.72.0";
|
|
57783
58150
|
var MIN_UI5_VERSION_HORIZON_THEME = "1.102.0";
|
|
@@ -58069,7 +58436,7 @@ var require_ui5_info = __commonJS({
|
|
|
58069
58436
|
return result2;
|
|
58070
58437
|
}
|
|
58071
58438
|
exports2.parseUI5VersionsOverview = parseUI5VersionsOverview;
|
|
58072
|
-
|
|
58439
|
+
var retrieveUI5VersionsCache = async (type, useCache = false) => {
|
|
58073
58440
|
if (!useCache) {
|
|
58074
58441
|
switch (type) {
|
|
58075
58442
|
case "officialVersions":
|
|
@@ -58095,6 +58462,7 @@ var require_ui5_info = __commonJS({
|
|
|
58095
58462
|
}
|
|
58096
58463
|
return exports2.ui5VersionsCache[type];
|
|
58097
58464
|
};
|
|
58465
|
+
exports2.retrieveUI5VersionsCache = retrieveUI5VersionsCache;
|
|
58098
58466
|
async function retrieveUI5Versions(filterOptions, logger = consoleLogger3, returnLatestValue) {
|
|
58099
58467
|
let officialVersions = [];
|
|
58100
58468
|
let snapshotVersions = [];
|
|
@@ -58291,6 +58659,18 @@ var require_ui5_info = __commonJS({
|
|
|
58291
58659
|
return version;
|
|
58292
58660
|
}
|
|
58293
58661
|
exports2.getLatestSapui5Version = getLatestSapui5Version;
|
|
58662
|
+
function getSpecTagVersion(ui5Version) {
|
|
58663
|
+
if (ui5Version) {
|
|
58664
|
+
if (semver_1.valid(ui5Version)) {
|
|
58665
|
+
return `UI5-${semver_1.major(ui5Version)}.${semver_1.minor(ui5Version)}`;
|
|
58666
|
+
} else if (ui5Version.includes("snapshot") && ui5Version.includes(".")) {
|
|
58667
|
+
const snapshotVersion = ui5Version.split("snapshot-")[1];
|
|
58668
|
+
return `UI5-${snapshotVersion}`;
|
|
58669
|
+
}
|
|
58670
|
+
}
|
|
58671
|
+
return "latest";
|
|
58672
|
+
}
|
|
58673
|
+
exports2.getSpecTagVersion = getSpecTagVersion;
|
|
58294
58674
|
}
|
|
58295
58675
|
});
|
|
58296
58676
|
|
|
@@ -58299,29 +58679,76 @@ var require_dist7 = __commonJS({
|
|
|
58299
58679
|
"../lib/ui5-info/core/dist/index.js"(exports2) {
|
|
58300
58680
|
"use strict";
|
|
58301
58681
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58682
|
+
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;
|
|
58302
58683
|
var commandRunner_1 = require_commandRunner();
|
|
58303
|
-
exports2
|
|
58684
|
+
Object.defineProperty(exports2, "CommandRunner", { enumerable: true, get: function() {
|
|
58685
|
+
return commandRunner_1.CommandRunner;
|
|
58686
|
+
} });
|
|
58304
58687
|
var ui5_info_1 = require_ui5_info();
|
|
58305
|
-
exports2
|
|
58306
|
-
|
|
58307
|
-
|
|
58308
|
-
exports2
|
|
58309
|
-
|
|
58310
|
-
|
|
58311
|
-
exports2
|
|
58312
|
-
|
|
58313
|
-
|
|
58314
|
-
exports2
|
|
58315
|
-
|
|
58316
|
-
|
|
58317
|
-
exports2
|
|
58318
|
-
|
|
58319
|
-
|
|
58320
|
-
exports2
|
|
58321
|
-
|
|
58322
|
-
|
|
58323
|
-
exports2
|
|
58324
|
-
|
|
58688
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
58689
|
+
return ui5_info_1.MIN_UI5_VERSION_V4_TEMPLATE;
|
|
58690
|
+
} });
|
|
58691
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION", { enumerable: true, get: function() {
|
|
58692
|
+
return ui5_info_1.MIN_UI5_VERSION;
|
|
58693
|
+
} });
|
|
58694
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_ALP_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
58695
|
+
return ui5_info_1.MIN_UI5_VERSION_ALP_V4_TEMPLATE;
|
|
58696
|
+
} });
|
|
58697
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE", { enumerable: true, get: function() {
|
|
58698
|
+
return ui5_info_1.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE;
|
|
58699
|
+
} });
|
|
58700
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
58701
|
+
return ui5_info_1.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE;
|
|
58702
|
+
} });
|
|
58703
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE", { enumerable: true, get: function() {
|
|
58704
|
+
return ui5_info_1.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE;
|
|
58705
|
+
} });
|
|
58706
|
+
Object.defineProperty(exports2, "MIN_UI5_VERSION_FPM_TEMPLATE", { enumerable: true, get: function() {
|
|
58707
|
+
return ui5_info_1.MIN_UI5_VERSION_FPM_TEMPLATE;
|
|
58708
|
+
} });
|
|
58709
|
+
Object.defineProperty(exports2, "retrieveUI5Versions", { enumerable: true, get: function() {
|
|
58710
|
+
return ui5_info_1.retrieveUI5Versions;
|
|
58711
|
+
} });
|
|
58712
|
+
Object.defineProperty(exports2, "getUi5Themes", { enumerable: true, get: function() {
|
|
58713
|
+
return ui5_info_1.getUi5Themes;
|
|
58714
|
+
} });
|
|
58715
|
+
Object.defineProperty(exports2, "getDefaultTheme", { enumerable: true, get: function() {
|
|
58716
|
+
return ui5_info_1.getDefaultTheme;
|
|
58717
|
+
} });
|
|
58718
|
+
Object.defineProperty(exports2, "getManifestVersion", { enumerable: true, get: function() {
|
|
58719
|
+
return ui5_info_1.getManifestVersion;
|
|
58720
|
+
} });
|
|
58721
|
+
Object.defineProperty(exports2, "uI5VersionsWithCodeAssist", { enumerable: true, get: function() {
|
|
58722
|
+
return ui5_info_1.uI5VersionsWithCodeAssist;
|
|
58723
|
+
} });
|
|
58724
|
+
Object.defineProperty(exports2, "parseUI5Versions", { enumerable: true, get: function() {
|
|
58725
|
+
return ui5_info_1.parseUI5Versions;
|
|
58726
|
+
} });
|
|
58727
|
+
Object.defineProperty(exports2, "getSapSystemUI5Version", { enumerable: true, get: function() {
|
|
58728
|
+
return ui5_info_1.getSapSystemUI5Version;
|
|
58729
|
+
} });
|
|
58730
|
+
Object.defineProperty(exports2, "getUI5VersionsEnhanced", { enumerable: true, get: function() {
|
|
58731
|
+
return ui5_info_1.getUI5VersionsEnhanced;
|
|
58732
|
+
} });
|
|
58733
|
+
Object.defineProperty(exports2, "parseUI5VersionsOverview", { enumerable: true, get: function() {
|
|
58734
|
+
return ui5_info_1.parseUI5VersionsOverview;
|
|
58735
|
+
} });
|
|
58736
|
+
Object.defineProperty(exports2, "getLatestSapui5Version", { enumerable: true, get: function() {
|
|
58737
|
+
return ui5_info_1.getLatestSapui5Version;
|
|
58738
|
+
} });
|
|
58739
|
+
Object.defineProperty(exports2, "getSpecTagVersion", { enumerable: true, get: function() {
|
|
58740
|
+
return ui5_info_1.getSpecTagVersion;
|
|
58741
|
+
} });
|
|
58742
|
+
var types_1 = require_types5();
|
|
58743
|
+
Object.defineProperty(exports2, "FioriElementsVersion", { enumerable: true, get: function() {
|
|
58744
|
+
return types_1.FioriElementsVersion;
|
|
58745
|
+
} });
|
|
58746
|
+
Object.defineProperty(exports2, "minUI5VersionForLocalDev", { enumerable: true, get: function() {
|
|
58747
|
+
return types_1.minUI5VersionForLocalDev;
|
|
58748
|
+
} });
|
|
58749
|
+
Object.defineProperty(exports2, "UI5Info", { enumerable: true, get: function() {
|
|
58750
|
+
return types_1.UI5Info;
|
|
58751
|
+
} });
|
|
58325
58752
|
}
|
|
58326
58753
|
});
|
|
58327
58754
|
|
|
@@ -58329,19 +58756,36 @@ var require_dist7 = __commonJS({
|
|
|
58329
58756
|
var require_yamlFile = __commonJS({
|
|
58330
58757
|
"../lib/project-access/core/dist/project/ui5Config/yamlFile.js"(exports2) {
|
|
58331
58758
|
"use strict";
|
|
58759
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
58760
|
+
if (k2 === void 0)
|
|
58761
|
+
k2 = k;
|
|
58762
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
58763
|
+
return m[k];
|
|
58764
|
+
} });
|
|
58765
|
+
} : function(o, m, k, k2) {
|
|
58766
|
+
if (k2 === void 0)
|
|
58767
|
+
k2 = k;
|
|
58768
|
+
o[k2] = m[k];
|
|
58769
|
+
});
|
|
58770
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
58771
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
58772
|
+
} : function(o, v) {
|
|
58773
|
+
o["default"] = v;
|
|
58774
|
+
});
|
|
58332
58775
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
58333
58776
|
if (mod && mod.__esModule)
|
|
58334
58777
|
return mod;
|
|
58335
58778
|
var result2 = {};
|
|
58336
58779
|
if (mod != null) {
|
|
58337
58780
|
for (var k in mod)
|
|
58338
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
58339
|
-
result2
|
|
58781
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
58782
|
+
__createBinding(result2, mod, k);
|
|
58340
58783
|
}
|
|
58341
|
-
result2
|
|
58784
|
+
__setModuleDefault(result2, mod);
|
|
58342
58785
|
return result2;
|
|
58343
58786
|
};
|
|
58344
58787
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58788
|
+
exports2.getParsedUi5YamlConfig = exports2.readUi5YamlConfig = void 0;
|
|
58345
58789
|
var path_1 = require("path");
|
|
58346
58790
|
var yaml = __importStar(require_Yaml());
|
|
58347
58791
|
var file_1 = require_file2();
|
|
@@ -58355,10 +58799,36 @@ var require_yamlFile = __commonJS({
|
|
|
58355
58799
|
}
|
|
58356
58800
|
exports2.readUi5YamlConfig = readUi5YamlConfig;
|
|
58357
58801
|
async function getParsedUi5YamlConfig(dirPath, filename) {
|
|
58802
|
+
var _a2;
|
|
58358
58803
|
const contents = await readUi5YamlConfig(dirPath, filename);
|
|
58359
58804
|
if (contents) {
|
|
58360
58805
|
try {
|
|
58361
|
-
|
|
58806
|
+
const parsed = yaml.parse(contents);
|
|
58807
|
+
if (((_a2 = parsed == null ? void 0 : parsed.server) == null ? void 0 : _a2.customMiddleware) && Array.isArray(parsed.server.customMiddleware)) {
|
|
58808
|
+
for (const middleware of parsed.server.customMiddleware) {
|
|
58809
|
+
const configuration = middleware == null ? void 0 : middleware.configuration;
|
|
58810
|
+
const services = [];
|
|
58811
|
+
if (Array.isArray(configuration == null ? void 0 : configuration.service)) {
|
|
58812
|
+
services.push(...configuration.service);
|
|
58813
|
+
} else if (configuration == null ? void 0 : configuration.service) {
|
|
58814
|
+
services.push(configuration.service);
|
|
58815
|
+
}
|
|
58816
|
+
if (Array.isArray(configuration == null ? void 0 : configuration.services)) {
|
|
58817
|
+
services.push(...configuration.services);
|
|
58818
|
+
} else if (configuration == null ? void 0 : configuration.services) {
|
|
58819
|
+
services.push(configuration.services);
|
|
58820
|
+
}
|
|
58821
|
+
for (const service of services) {
|
|
58822
|
+
if (service.mockdataRootPath) {
|
|
58823
|
+
service.mockdataPath = service.mockdataRootPath;
|
|
58824
|
+
}
|
|
58825
|
+
if (service.metadataXmlPath) {
|
|
58826
|
+
service.metadataPath = service.metadataXmlPath;
|
|
58827
|
+
}
|
|
58828
|
+
}
|
|
58829
|
+
}
|
|
58830
|
+
}
|
|
58831
|
+
return parsed;
|
|
58362
58832
|
} catch (e) {
|
|
58363
58833
|
throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: path_1.join(dirPath, filename), parsingError: e.message }));
|
|
58364
58834
|
}
|
|
@@ -58373,19 +58843,36 @@ var require_yamlFile = __commonJS({
|
|
|
58373
58843
|
var require_mockServer = __commonJS({
|
|
58374
58844
|
"../lib/project-access/core/dist/project/ui5Config/mockServer.js"(exports2) {
|
|
58375
58845
|
"use strict";
|
|
58846
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
58847
|
+
if (k2 === void 0)
|
|
58848
|
+
k2 = k;
|
|
58849
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
58850
|
+
return m[k];
|
|
58851
|
+
} });
|
|
58852
|
+
} : function(o, m, k, k2) {
|
|
58853
|
+
if (k2 === void 0)
|
|
58854
|
+
k2 = k;
|
|
58855
|
+
o[k2] = m[k];
|
|
58856
|
+
});
|
|
58857
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
58858
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
58859
|
+
} : function(o, v) {
|
|
58860
|
+
o["default"] = v;
|
|
58861
|
+
});
|
|
58376
58862
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
58377
58863
|
if (mod && mod.__esModule)
|
|
58378
58864
|
return mod;
|
|
58379
58865
|
var result2 = {};
|
|
58380
58866
|
if (mod != null) {
|
|
58381
58867
|
for (var k in mod)
|
|
58382
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
58383
|
-
result2
|
|
58868
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
58869
|
+
__createBinding(result2, mod, k);
|
|
58384
58870
|
}
|
|
58385
|
-
result2
|
|
58871
|
+
__setModuleDefault(result2, mod);
|
|
58386
58872
|
return result2;
|
|
58387
58873
|
};
|
|
58388
58874
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58875
|
+
exports2.findMockServiceByMetadataPath = exports2.matchMockServiceByMetadataPath = exports2.getMockServicesConfiguration = exports2.getMockServerConfig = void 0;
|
|
58389
58876
|
var path_1 = require("path");
|
|
58390
58877
|
var project_spec_1 = require_dist2();
|
|
58391
58878
|
var yamlFile_1 = require_yamlFile();
|
|
@@ -58446,10 +58933,10 @@ var require_mockServer = __commonJS({
|
|
|
58446
58933
|
}
|
|
58447
58934
|
return (services == null ? void 0 : services.length) ? services : null;
|
|
58448
58935
|
}
|
|
58449
|
-
function matchMockServiceByMetadataPath(mockService,
|
|
58450
|
-
const {
|
|
58451
|
-
if (
|
|
58452
|
-
return
|
|
58936
|
+
function matchMockServiceByMetadataPath(mockService, path) {
|
|
58937
|
+
const { metadataPath } = mockService;
|
|
58938
|
+
if (metadataPath) {
|
|
58939
|
+
return path.endsWith(path_1.normalize(metadataPath));
|
|
58453
58940
|
}
|
|
58454
58941
|
return false;
|
|
58455
58942
|
}
|
|
@@ -58477,10 +58964,17 @@ var require_ui5Config = __commonJS({
|
|
|
58477
58964
|
"../lib/project-access/core/dist/project/ui5Config/index.js"(exports2) {
|
|
58478
58965
|
"use strict";
|
|
58479
58966
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58967
|
+
exports2.getMockServicesConfiguration = exports2.getMockServerConfig = exports2.findMockServiceByMetadataPath = void 0;
|
|
58480
58968
|
var mockServer_1 = require_mockServer();
|
|
58481
|
-
exports2
|
|
58482
|
-
|
|
58483
|
-
|
|
58969
|
+
Object.defineProperty(exports2, "findMockServiceByMetadataPath", { enumerable: true, get: function() {
|
|
58970
|
+
return mockServer_1.findMockServiceByMetadataPath;
|
|
58971
|
+
} });
|
|
58972
|
+
Object.defineProperty(exports2, "getMockServerConfig", { enumerable: true, get: function() {
|
|
58973
|
+
return mockServer_1.getMockServerConfig;
|
|
58974
|
+
} });
|
|
58975
|
+
Object.defineProperty(exports2, "getMockServicesConfiguration", { enumerable: true, get: function() {
|
|
58976
|
+
return mockServer_1.getMockServicesConfiguration;
|
|
58977
|
+
} });
|
|
58484
58978
|
}
|
|
58485
58979
|
});
|
|
58486
58980
|
|
|
@@ -58488,22 +58982,39 @@ var require_ui5Config = __commonJS({
|
|
|
58488
58982
|
var require_utils10 = __commonJS({
|
|
58489
58983
|
"../lib/project-access/core/dist/project/utils.js"(exports2) {
|
|
58490
58984
|
"use strict";
|
|
58491
|
-
var
|
|
58492
|
-
|
|
58493
|
-
|
|
58985
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
58986
|
+
if (k2 === void 0)
|
|
58987
|
+
k2 = k;
|
|
58988
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
58989
|
+
return m[k];
|
|
58990
|
+
} });
|
|
58991
|
+
} : function(o, m, k, k2) {
|
|
58992
|
+
if (k2 === void 0)
|
|
58993
|
+
k2 = k;
|
|
58994
|
+
o[k2] = m[k];
|
|
58995
|
+
});
|
|
58996
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
58997
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
58998
|
+
} : function(o, v) {
|
|
58999
|
+
o["default"] = v;
|
|
59000
|
+
});
|
|
58494
59001
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
58495
59002
|
if (mod && mod.__esModule)
|
|
58496
59003
|
return mod;
|
|
58497
59004
|
var result2 = {};
|
|
58498
59005
|
if (mod != null) {
|
|
58499
59006
|
for (var k in mod)
|
|
58500
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
58501
|
-
result2
|
|
59007
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
59008
|
+
__createBinding(result2, mod, k);
|
|
58502
59009
|
}
|
|
58503
|
-
result2
|
|
59010
|
+
__setModuleDefault(result2, mod);
|
|
58504
59011
|
return result2;
|
|
58505
59012
|
};
|
|
59013
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
59014
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
59015
|
+
};
|
|
58506
59016
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
59017
|
+
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;
|
|
58507
59018
|
var fs_1 = require("fs");
|
|
58508
59019
|
var findit2_1 = __importDefault(require_findit2());
|
|
58509
59020
|
var fast_xml_parser_1 = __importDefault(require_parser());
|
|
@@ -58598,7 +59109,8 @@ var require_utils10 = __commonJS({
|
|
|
58598
59109
|
function isWorkspaceFolder(value) {
|
|
58599
59110
|
return value && value.length > 0 && value[0].uri !== void 0;
|
|
58600
59111
|
}
|
|
58601
|
-
|
|
59112
|
+
var hasDependency = (packageJson, dependency) => packageJson.dependencies && packageJson.dependencies[dependency] !== void 0 || packageJson.devDependencies && packageJson.devDependencies[dependency] !== void 0;
|
|
59113
|
+
exports2.hasDependency = hasDependency;
|
|
58602
59114
|
var hasScript = (packageJson) => {
|
|
58603
59115
|
if (packageJson.scripts) {
|
|
58604
59116
|
let scriptExists = false;
|
|
@@ -58800,7 +59312,7 @@ var require_utils10 = __commonJS({
|
|
|
58800
59312
|
return result2;
|
|
58801
59313
|
}
|
|
58802
59314
|
exports2.findAllApps = findAllApps;
|
|
58803
|
-
|
|
59315
|
+
var findRunnableProjects = async (workspaceRoots, logger) => {
|
|
58804
59316
|
const result2 = [];
|
|
58805
59317
|
const roots = await findAllProjectRoots(workspaceRoots, false);
|
|
58806
59318
|
for (const root of roots) {
|
|
@@ -58816,6 +59328,7 @@ var require_utils10 = __commonJS({
|
|
|
58816
59328
|
}
|
|
58817
59329
|
return result2;
|
|
58818
59330
|
};
|
|
59331
|
+
exports2.findRunnableProjects = findRunnableProjects;
|
|
58819
59332
|
async function checkPackageJson(root, dependency, sapux) {
|
|
58820
59333
|
const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
|
|
58821
59334
|
if (packageJson.dependencies && packageJson.dependencies[dependency] !== void 0 || packageJson.devDependencies && packageJson.devDependencies[dependency] !== void 0) {
|
|
@@ -59058,8 +59571,9 @@ var require_utils10 = __commonJS({
|
|
|
59058
59571
|
} else if ((_b = (_a2 = manifest["sap.ui5"]) == null ? void 0 : _a2.routing) == null ? void 0 : _b.targets) {
|
|
59059
59572
|
let hasV4pPages = false;
|
|
59060
59573
|
Object.keys((_d = (_c = manifest["sap.ui5"]) == null ? void 0 : _c.routing) == null ? void 0 : _d.targets).forEach((target) => {
|
|
59061
|
-
var _a3, _b2, _c2;
|
|
59062
|
-
|
|
59574
|
+
var _a3, _b2, _c2, _d2;
|
|
59575
|
+
const ui5RoutingTarget = (_b2 = (_a3 = manifest["sap.ui5"]) == null ? void 0 : _a3.routing) == null ? void 0 : _b2.targets[target];
|
|
59576
|
+
if (((_c2 = ui5RoutingTarget.name) == null ? void 0 : _c2.startsWith("sap.fe.templates.")) || ((_d2 = ui5RoutingTarget.name) == null ? void 0 : _d2.startsWith("sap.fe.core.fpm"))) {
|
|
59063
59577
|
hasV4pPages = true;
|
|
59064
59578
|
}
|
|
59065
59579
|
});
|
|
@@ -59236,9 +59750,9 @@ var require_utils10 = __commonJS({
|
|
|
59236
59750
|
const { services, mockFolder } = await ui5Config_1.getMockServicesConfiguration(configDir, config2);
|
|
59237
59751
|
if (services) {
|
|
59238
59752
|
const mockService = ui5Config_1.findMockServiceByMetadataPath(services, serviceMetadataPath);
|
|
59239
|
-
if (mockService == null ? void 0 : mockService.
|
|
59753
|
+
if (mockService == null ? void 0 : mockService.mockdataPath) {
|
|
59240
59754
|
const servicesConfigFilePath = mockFolder ? path_1.resolve(configDir, mockFolder) : configDir;
|
|
59241
|
-
return path_1.resolve(servicesConfigFilePath, mockService.
|
|
59755
|
+
return path_1.resolve(servicesConfigFilePath, mockService.mockdataPath);
|
|
59242
59756
|
}
|
|
59243
59757
|
}
|
|
59244
59758
|
}
|
|
@@ -59248,10 +59762,16 @@ var require_utils10 = __commonJS({
|
|
|
59248
59762
|
});
|
|
59249
59763
|
|
|
59250
59764
|
// ../lib/telemetry/dist/src/toolsSuiteTelemetry/types.js
|
|
59251
|
-
var
|
|
59765
|
+
var require_types6 = __commonJS({
|
|
59252
59766
|
"../lib/telemetry/dist/src/toolsSuiteTelemetry/types.js"(exports2) {
|
|
59253
59767
|
"use strict";
|
|
59254
59768
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
59769
|
+
exports2.CommonProperties = exports2.DeployTarget = exports2.ODataSource = exports2.ToolsId = void 0;
|
|
59770
|
+
var ToolsId;
|
|
59771
|
+
(function(ToolsId2) {
|
|
59772
|
+
ToolsId2["UNKNOWN"] = "UNKNOWN";
|
|
59773
|
+
ToolsId2["NO_TOOLS_ID"] = "NO_TOOLS_ID";
|
|
59774
|
+
})(ToolsId = exports2.ToolsId || (exports2.ToolsId = {}));
|
|
59255
59775
|
var ODataSource;
|
|
59256
59776
|
(function(ODataSource2) {
|
|
59257
59777
|
ODataSource2["CAPJava"] = "CAPJava";
|
|
@@ -59276,6 +59796,7 @@ var require_types5 = __commonJS({
|
|
|
59276
59796
|
CommonProperties2["TemplateType"] = "cmn.template";
|
|
59277
59797
|
CommonProperties2["DeployTargetType"] = "cmn.deployTarget";
|
|
59278
59798
|
CommonProperties2["ODataSourceType"] = "cmn.odataSource";
|
|
59799
|
+
CommonProperties2["AppToolsId"] = "cmn.toolsId";
|
|
59279
59800
|
})(CommonProperties = exports2.CommonProperties || (exports2.CommonProperties = {}));
|
|
59280
59801
|
}
|
|
59281
59802
|
});
|
|
@@ -59285,6 +59806,7 @@ var require_featureToggle = __commonJS({
|
|
|
59285
59806
|
"../lib/feature-toggle/dist/featureToggle.js"(exports2) {
|
|
59286
59807
|
"use strict";
|
|
59287
59808
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
59809
|
+
exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.enableFeature = exports2.FeatureToggleAccess = exports2.ExperimentalFeatures = exports2.FeatureToggleKey = void 0;
|
|
59288
59810
|
var vscode = void 0;
|
|
59289
59811
|
try {
|
|
59290
59812
|
vscode = require("vscode");
|
|
@@ -59301,7 +59823,6 @@ var require_featureToggle = __commonJS({
|
|
|
59301
59823
|
};
|
|
59302
59824
|
var tokenToggleGuid = {
|
|
59303
59825
|
"dummy.test.testBetaFeatures.someTokenFeature": "77e0469d-1448-42bf-8d47-0944896dd9ed",
|
|
59304
|
-
"sap.ux.applicationModeler.testBetaFeatures.enableFPMFeatures": "438b6071-479e-49b4-81bf-c8a016b71c75",
|
|
59305
59826
|
"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
|
|
59306
59827
|
"sap.ux.help.testBetaFeatures.enableAbapCdsSupport": "794cae98-3456-491a-ae20-3215a98b56df",
|
|
59307
59828
|
"sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3"
|
|
@@ -59400,13 +59921,26 @@ var require_dist8 = __commonJS({
|
|
|
59400
59921
|
"../lib/feature-toggle/dist/index.js"(exports2) {
|
|
59401
59922
|
"use strict";
|
|
59402
59923
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
59924
|
+
exports2.ExperimentalFeatures = exports2.enableFeature = exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.FeatureToggleKey = exports2.FeatureToggleAccess = void 0;
|
|
59403
59925
|
var featureToggle_1 = require_featureToggle();
|
|
59404
|
-
exports2
|
|
59405
|
-
|
|
59406
|
-
|
|
59407
|
-
exports2
|
|
59408
|
-
|
|
59409
|
-
|
|
59926
|
+
Object.defineProperty(exports2, "FeatureToggleAccess", { enumerable: true, get: function() {
|
|
59927
|
+
return featureToggle_1.FeatureToggleAccess;
|
|
59928
|
+
} });
|
|
59929
|
+
Object.defineProperty(exports2, "FeatureToggleKey", { enumerable: true, get: function() {
|
|
59930
|
+
return featureToggle_1.FeatureToggleKey;
|
|
59931
|
+
} });
|
|
59932
|
+
Object.defineProperty(exports2, "isFeatureEnabled", { enumerable: true, get: function() {
|
|
59933
|
+
return featureToggle_1.isFeatureEnabled;
|
|
59934
|
+
} });
|
|
59935
|
+
Object.defineProperty(exports2, "isInternalFeaturesSettingEnabled", { enumerable: true, get: function() {
|
|
59936
|
+
return featureToggle_1.isInternalFeaturesSettingEnabled;
|
|
59937
|
+
} });
|
|
59938
|
+
Object.defineProperty(exports2, "enableFeature", { enumerable: true, get: function() {
|
|
59939
|
+
return featureToggle_1.enableFeature;
|
|
59940
|
+
} });
|
|
59941
|
+
Object.defineProperty(exports2, "ExperimentalFeatures", { enumerable: true, get: function() {
|
|
59942
|
+
return featureToggle_1.ExperimentalFeatures;
|
|
59943
|
+
} });
|
|
59410
59944
|
}
|
|
59411
59945
|
});
|
|
59412
59946
|
|
|
@@ -59418,6 +59952,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
59418
59952
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
59419
59953
|
};
|
|
59420
59954
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
59955
|
+
exports2.getCommonProperties = exports2.processToolsSuiteTelemetry = void 0;
|
|
59421
59956
|
var ux_common_utils_1 = require_dist3();
|
|
59422
59957
|
var axios_1 = __importDefault(require_axios2());
|
|
59423
59958
|
var fs_1 = __importDefault(require("fs"));
|
|
@@ -59425,7 +59960,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
59425
59960
|
var yaml_1 = __importDefault(require_dist6());
|
|
59426
59961
|
var utils_1 = require_utils10();
|
|
59427
59962
|
var capProject_1 = require_capProject();
|
|
59428
|
-
var types_1 =
|
|
59963
|
+
var types_1 = require_types6();
|
|
59429
59964
|
var ux_feature_toggle_1 = require_dist8();
|
|
59430
59965
|
async function processToolsSuiteTelemetry(telemetryHelperProperties) {
|
|
59431
59966
|
const commonProperties = await getCommonProperties();
|
|
@@ -59471,10 +60006,12 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
59471
60006
|
const templateType = await getTemplateType(appPath);
|
|
59472
60007
|
const deployTarget = await getDeployTarget(appPath);
|
|
59473
60008
|
const odataSource = await getODataSource(appPath);
|
|
60009
|
+
const toolsId = await getToolsId(appPath);
|
|
59474
60010
|
const output3 = {};
|
|
59475
60011
|
output3[types_1.CommonProperties.TemplateType] = templateType;
|
|
59476
60012
|
output3[types_1.CommonProperties.DeployTargetType] = deployTarget;
|
|
59477
60013
|
output3[types_1.CommonProperties.ODataSourceType] = odataSource;
|
|
60014
|
+
output3[types_1.CommonProperties.AppToolsId] = toolsId;
|
|
59478
60015
|
return output3;
|
|
59479
60016
|
}
|
|
59480
60017
|
async function getTemplateType(appPath) {
|
|
@@ -59559,6 +60096,20 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
59559
60096
|
function getInternalVsExternal() {
|
|
59560
60097
|
return ux_feature_toggle_1.isInternalFeaturesSettingEnabled() ? "internal" : "external";
|
|
59561
60098
|
}
|
|
60099
|
+
async function getToolsId(appPath) {
|
|
60100
|
+
var _a2, _b, _c;
|
|
60101
|
+
try {
|
|
60102
|
+
const manifestPath = path_1.default.join(appPath, "webapp", "manifest.json");
|
|
60103
|
+
if (fs_1.default.existsSync(manifestPath)) {
|
|
60104
|
+
const manifest = JSON.parse(fs_1.default.readFileSync(manifestPath, "utf-8"));
|
|
60105
|
+
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;
|
|
60106
|
+
}
|
|
60107
|
+
return types_1.ToolsId.NO_TOOLS_ID;
|
|
60108
|
+
} catch (err) {
|
|
60109
|
+
console.log(`[Telemetry]: ${err.message}`);
|
|
60110
|
+
return types_1.ToolsId.NO_TOOLS_ID;
|
|
60111
|
+
}
|
|
60112
|
+
}
|
|
59562
60113
|
}
|
|
59563
60114
|
});
|
|
59564
60115
|
|
|
@@ -62334,7 +62885,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
62334
62885
|
});
|
|
62335
62886
|
|
|
62336
62887
|
// ../../node_modules/@sap-ux/store/dist/secure-store/types.js
|
|
62337
|
-
var
|
|
62888
|
+
var require_types7 = __commonJS({
|
|
62338
62889
|
"../../node_modules/@sap-ux/store/dist/secure-store/types.js"(exports2) {
|
|
62339
62890
|
"use strict";
|
|
62340
62891
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -62404,7 +62955,7 @@ var require_secure_store2 = __commonJS({
|
|
|
62404
62955
|
return keytar ? new keytar_store_1.KeytarStore(log3, keytar) : new dummy_store_1.DummyStore(log3);
|
|
62405
62956
|
}
|
|
62406
62957
|
};
|
|
62407
|
-
__exportStar(
|
|
62958
|
+
__exportStar(require_types7(), exports2);
|
|
62408
62959
|
}
|
|
62409
62960
|
});
|
|
62410
62961
|
|
|
@@ -65074,7 +65625,7 @@ var require_cloneDeep = __commonJS({
|
|
|
65074
65625
|
});
|
|
65075
65626
|
|
|
65076
65627
|
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js
|
|
65077
|
-
var
|
|
65628
|
+
var require_types8 = __commonJS({
|
|
65078
65629
|
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
65079
65630
|
"use strict";
|
|
65080
65631
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -65107,7 +65658,7 @@ var require_transport = __commonJS({
|
|
|
65107
65658
|
"use strict";
|
|
65108
65659
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
65109
65660
|
exports2.VSCodeTransport = exports2.StringArrayTransport = exports2.FileTransport = exports2.NullTransport = exports2.UI5ToolingTransport = exports2.ConsoleTransport = void 0;
|
|
65110
|
-
var types_1 =
|
|
65661
|
+
var types_1 = require_types8();
|
|
65111
65662
|
var ConsoleTransport = class extends types_1.Transport {
|
|
65112
65663
|
constructor(opts = {}) {
|
|
65113
65664
|
super();
|
|
@@ -65293,7 +65844,7 @@ var require_styles = __commonJS({
|
|
|
65293
65844
|
});
|
|
65294
65845
|
|
|
65295
65846
|
// ../../node_modules/@colors/colors/lib/system/has-flag.js
|
|
65296
|
-
var
|
|
65847
|
+
var require_has_flag2 = __commonJS({
|
|
65297
65848
|
"../../node_modules/@colors/colors/lib/system/has-flag.js"(exports2, module2) {
|
|
65298
65849
|
"use strict";
|
|
65299
65850
|
module2.exports = function(flag, argv) {
|
|
@@ -65311,7 +65862,7 @@ var require_supports_colors = __commonJS({
|
|
|
65311
65862
|
"../../node_modules/@colors/colors/lib/system/supports-colors.js"(exports2, module2) {
|
|
65312
65863
|
"use strict";
|
|
65313
65864
|
var os = require("os");
|
|
65314
|
-
var hasFlag =
|
|
65865
|
+
var hasFlag = require_has_flag2();
|
|
65315
65866
|
var env = process.env;
|
|
65316
65867
|
var forceColor = void 0;
|
|
65317
65868
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
@@ -66943,7 +67494,7 @@ var require_logstash = __commonJS({
|
|
|
66943
67494
|
});
|
|
66944
67495
|
|
|
66945
67496
|
// ../../node_modules/logform/metadata.js
|
|
66946
|
-
var
|
|
67497
|
+
var require_metadata2 = __commonJS({
|
|
66947
67498
|
"../../node_modules/logform/metadata.js"(exports2, module2) {
|
|
66948
67499
|
"use strict";
|
|
66949
67500
|
var format2 = require_format2();
|
|
@@ -67618,7 +68169,7 @@ var require_logform = __commonJS({
|
|
|
67618
68169
|
return require_logstash();
|
|
67619
68170
|
});
|
|
67620
68171
|
exposeFormat("metadata", function() {
|
|
67621
|
-
return
|
|
68172
|
+
return require_metadata2();
|
|
67622
68173
|
});
|
|
67623
68174
|
exposeFormat("ms", function() {
|
|
67624
68175
|
return require_ms2();
|
|
@@ -79954,7 +80505,7 @@ var require_source2 = __commonJS({
|
|
|
79954
80505
|
"../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js"(exports2, module2) {
|
|
79955
80506
|
"use strict";
|
|
79956
80507
|
var ansiStyles = require_ansi_styles();
|
|
79957
|
-
var { stdout: stdoutColor, stderr: stderrColor } =
|
|
80508
|
+
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
79958
80509
|
var {
|
|
79959
80510
|
stringReplaceAll,
|
|
79960
80511
|
stringEncaseCRLFWithFirstIndex
|
|
@@ -80173,7 +80724,7 @@ var require_adapter = __commonJS({
|
|
|
80173
80724
|
};
|
|
80174
80725
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
80175
80726
|
exports2.toWinstonTransport = exports2.toWinstonLogLevel = void 0;
|
|
80176
|
-
var types_1 =
|
|
80727
|
+
var types_1 = require_types8();
|
|
80177
80728
|
var winston_1 = __importStar(require_winston());
|
|
80178
80729
|
var transports_1 = require_transports();
|
|
80179
80730
|
var null_transport_1 = require_null_transport();
|
|
@@ -80311,7 +80862,7 @@ var require_logger2 = __commonJS({
|
|
|
80311
80862
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
80312
80863
|
exports2.WinstonLogger = void 0;
|
|
80313
80864
|
var transports_1 = require_transports();
|
|
80314
|
-
var types_1 =
|
|
80865
|
+
var types_1 = require_types8();
|
|
80315
80866
|
var winston_1 = __importStar(require_winston());
|
|
80316
80867
|
var adapter_1 = require_adapter();
|
|
80317
80868
|
var utils_1 = require_utils12();
|
|
@@ -80453,7 +81004,7 @@ var require_dist9 = __commonJS({
|
|
|
80453
81004
|
};
|
|
80454
81005
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
80455
81006
|
exports2.ToolsLogger = void 0;
|
|
80456
|
-
__exportStar(
|
|
81007
|
+
__exportStar(require_types8(), exports2);
|
|
80457
81008
|
__exportStar(require_transports(), exports2);
|
|
80458
81009
|
var winston_logger_1 = require_winston_logger();
|
|
80459
81010
|
Object.defineProperty(exports2, "ToolsLogger", { enumerable: true, get: function() {
|
|
@@ -80597,6 +81148,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80597
81148
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
80598
81149
|
};
|
|
80599
81150
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81151
|
+
exports2.initTelemetrySettings = exports2.getTelemetrySetting = exports2.setEnableTelemetry = void 0;
|
|
80600
81152
|
var reporting_1 = require_reporting();
|
|
80601
81153
|
var cloudDebugger_1 = require_cloudDebugger();
|
|
80602
81154
|
var system_1 = require_system3();
|
|
@@ -80634,7 +81186,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80634
81186
|
const homedir = os_1.default.homedir();
|
|
80635
81187
|
return path_1.default.join(homedir, settingsPath);
|
|
80636
81188
|
};
|
|
80637
|
-
|
|
81189
|
+
var setEnableTelemetry = async (enableTelemetry) => {
|
|
80638
81190
|
const storeService = await store_1.getService({
|
|
80639
81191
|
entityName: "telemetrySetting"
|
|
80640
81192
|
});
|
|
@@ -80644,7 +81196,8 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80644
81196
|
const commonProperties = await toolsSuiteTelemetryDataProcessor_1.getCommonProperties();
|
|
80645
81197
|
reporting_1.reportEnableTelemetryOnOff(enableTelemetry, commonProperties);
|
|
80646
81198
|
};
|
|
80647
|
-
exports2.
|
|
81199
|
+
exports2.setEnableTelemetry = setEnableTelemetry;
|
|
81200
|
+
var getTelemetrySetting = async () => {
|
|
80648
81201
|
let setting;
|
|
80649
81202
|
try {
|
|
80650
81203
|
const storeService = await store_1.getService({
|
|
@@ -80655,6 +81208,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80655
81208
|
}
|
|
80656
81209
|
return setting;
|
|
80657
81210
|
};
|
|
81211
|
+
exports2.getTelemetrySetting = getTelemetrySetting;
|
|
80658
81212
|
var readEnableTelemetryFromSetting = async () => {
|
|
80659
81213
|
const storeService = await store_1.getService({
|
|
80660
81214
|
entityName: "telemetrySetting"
|
|
@@ -80707,7 +81261,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80707
81261
|
system_1.TelemetrySystem.manifest = options2.modulePackageJson;
|
|
80708
81262
|
await initToolsSuiteTelemetrySettings();
|
|
80709
81263
|
};
|
|
80710
|
-
|
|
81264
|
+
var initTelemetrySettings2 = async (options2) => {
|
|
80711
81265
|
try {
|
|
80712
81266
|
if (options2 && options2.modulePackageJson) {
|
|
80713
81267
|
await initWithInputManifest(options2);
|
|
@@ -80718,6 +81272,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80718
81272
|
reporting_1.reportRuntimeError(err);
|
|
80719
81273
|
}
|
|
80720
81274
|
};
|
|
81275
|
+
exports2.initTelemetrySettings = initTelemetrySettings2;
|
|
80721
81276
|
}
|
|
80722
81277
|
});
|
|
80723
81278
|
|
|
@@ -80725,17 +81280,31 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
80725
81280
|
var require_toolsSuiteTelemetry = __commonJS({
|
|
80726
81281
|
"../lib/telemetry/dist/src/toolsSuiteTelemetry/index.js"(exports2) {
|
|
80727
81282
|
"use strict";
|
|
80728
|
-
function
|
|
81283
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
81284
|
+
if (k2 === void 0)
|
|
81285
|
+
k2 = k;
|
|
81286
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
81287
|
+
return m[k];
|
|
81288
|
+
} });
|
|
81289
|
+
} : function(o, m, k, k2) {
|
|
81290
|
+
if (k2 === void 0)
|
|
81291
|
+
k2 = k;
|
|
81292
|
+
o[k2] = m[k];
|
|
81293
|
+
});
|
|
81294
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
80729
81295
|
for (var p in m)
|
|
80730
|
-
if (!
|
|
80731
|
-
|
|
80732
|
-
}
|
|
81296
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
81297
|
+
__createBinding(exports3, m, p);
|
|
81298
|
+
};
|
|
80733
81299
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
80734
|
-
|
|
81300
|
+
exports2.processToolsSuiteTelemetry = void 0;
|
|
81301
|
+
__exportStar(require_toolsSuiteTelemetryClient(), exports2);
|
|
80735
81302
|
var toolsSuiteTelemetryDataProcessor_1 = require_toolsSuiteTelemetryDataProcessor();
|
|
80736
|
-
exports2
|
|
80737
|
-
|
|
80738
|
-
|
|
81303
|
+
Object.defineProperty(exports2, "processToolsSuiteTelemetry", { enumerable: true, get: function() {
|
|
81304
|
+
return toolsSuiteTelemetryDataProcessor_1.processToolsSuiteTelemetry;
|
|
81305
|
+
} });
|
|
81306
|
+
__exportStar(require_toolsSuiteTelemetrySettings(), exports2);
|
|
81307
|
+
__exportStar(require_types6(), exports2);
|
|
80739
81308
|
}
|
|
80740
81309
|
});
|
|
80741
81310
|
|
|
@@ -80743,19 +81312,36 @@ var require_toolsSuiteTelemetry = __commonJS({
|
|
|
80743
81312
|
var require_client3 = __commonJS({
|
|
80744
81313
|
"../lib/telemetry/dist/src/client/index.js"(exports2) {
|
|
80745
81314
|
"use strict";
|
|
81315
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
81316
|
+
if (k2 === void 0)
|
|
81317
|
+
k2 = k;
|
|
81318
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
81319
|
+
return m[k];
|
|
81320
|
+
} });
|
|
81321
|
+
} : function(o, m, k, k2) {
|
|
81322
|
+
if (k2 === void 0)
|
|
81323
|
+
k2 = k;
|
|
81324
|
+
o[k2] = m[k];
|
|
81325
|
+
});
|
|
81326
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
81327
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
81328
|
+
} : function(o, v) {
|
|
81329
|
+
o["default"] = v;
|
|
81330
|
+
});
|
|
80746
81331
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
80747
81332
|
if (mod && mod.__esModule)
|
|
80748
81333
|
return mod;
|
|
80749
81334
|
var result2 = {};
|
|
80750
81335
|
if (mod != null) {
|
|
80751
81336
|
for (var k in mod)
|
|
80752
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
80753
|
-
result2
|
|
81337
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
81338
|
+
__createBinding(result2, mod, k);
|
|
80754
81339
|
}
|
|
80755
|
-
result2
|
|
81340
|
+
__setModuleDefault(result2, mod);
|
|
80756
81341
|
return result2;
|
|
80757
81342
|
};
|
|
80758
81343
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81344
|
+
exports2.ClientFactory = void 0;
|
|
80759
81345
|
var system_1 = require_system3();
|
|
80760
81346
|
var telemetryPackageJSON = __importStar(require_package6());
|
|
80761
81347
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
@@ -80787,6 +81373,7 @@ var require_ClientType = __commonJS({
|
|
|
80787
81373
|
"../lib/telemetry/dist/src/client/model/ClientType.js"(exports2) {
|
|
80788
81374
|
"use strict";
|
|
80789
81375
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81376
|
+
exports2.ClientType = void 0;
|
|
80790
81377
|
var ClientType;
|
|
80791
81378
|
(function(ClientType2) {
|
|
80792
81379
|
ClientType2[ClientType2["AzureApplicationInsights"] = 0] = "AzureApplicationInsights";
|
|
@@ -80795,10 +81382,11 @@ var require_ClientType = __commonJS({
|
|
|
80795
81382
|
});
|
|
80796
81383
|
|
|
80797
81384
|
// ../lib/telemetry/dist/src/performance/types.js
|
|
80798
|
-
var
|
|
81385
|
+
var require_types9 = __commonJS({
|
|
80799
81386
|
"../lib/telemetry/dist/src/performance/types.js"(exports2) {
|
|
80800
81387
|
"use strict";
|
|
80801
81388
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81389
|
+
exports2.PerformanceMeasurement = exports2.EntryType = void 0;
|
|
80802
81390
|
var EntryType;
|
|
80803
81391
|
(function(EntryType2) {
|
|
80804
81392
|
EntryType2["START_MARK"] = "START_MARK";
|
|
@@ -80817,7 +81405,8 @@ var require_entries = __commonJS({
|
|
|
80817
81405
|
"../lib/telemetry/dist/src/performance/entries.js"(exports2) {
|
|
80818
81406
|
"use strict";
|
|
80819
81407
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
80820
|
-
|
|
81408
|
+
exports2.Measurement = exports2.Mark = void 0;
|
|
81409
|
+
var types_1 = require_types9();
|
|
80821
81410
|
var Mark = class {
|
|
80822
81411
|
constructor(name, type, startTime) {
|
|
80823
81412
|
this.startTime = startTime;
|
|
@@ -80887,8 +81476,9 @@ var require_api = __commonJS({
|
|
|
80887
81476
|
"../lib/telemetry/dist/src/performance/api.js"(exports2) {
|
|
80888
81477
|
"use strict";
|
|
80889
81478
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81479
|
+
exports2.PerformanceMeasurementAPI = void 0;
|
|
80890
81480
|
var entries_1 = require_entries();
|
|
80891
|
-
var types_1 =
|
|
81481
|
+
var types_1 = require_types9();
|
|
80892
81482
|
var performanceNow = require_performance_now();
|
|
80893
81483
|
var PerformanceMeasurementAPI = class extends types_1.PerformanceMeasurement {
|
|
80894
81484
|
static initialize() {
|
|
@@ -80955,6 +81545,7 @@ var require_paramProcessing = __commonJS({
|
|
|
80955
81545
|
"../lib/telemetry/dist/src/util/paramProcessing.js"(exports2) {
|
|
80956
81546
|
"use strict";
|
|
80957
81547
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81548
|
+
exports2.getParamsData = exports2.paramsProcessing = exports2.getValue = exports2.wrongPathErr = exports2.ParamRecordConfig = exports2.ParamRecordConfigField = void 0;
|
|
80958
81549
|
var ParamRecordConfigField = class {
|
|
80959
81550
|
constructor(path) {
|
|
80960
81551
|
this.path = path;
|
|
@@ -80969,8 +81560,9 @@ var require_paramProcessing = __commonJS({
|
|
|
80969
81560
|
}
|
|
80970
81561
|
};
|
|
80971
81562
|
exports2.ParamRecordConfig = ParamRecordConfig;
|
|
80972
|
-
|
|
80973
|
-
exports2.
|
|
81563
|
+
var wrongPathErr = (field, index) => new Error(`Wrong path for '${field}' field is specified in instructions with index - ${index}`);
|
|
81564
|
+
exports2.wrongPathErr = wrongPathErr;
|
|
81565
|
+
var getValue = (obj, path, field, paramIndex) => {
|
|
80974
81566
|
const pathArr = path.split("/");
|
|
80975
81567
|
let node = obj, i = 0;
|
|
80976
81568
|
while (i < pathArr.length) {
|
|
@@ -80982,7 +81574,8 @@ var require_paramProcessing = __commonJS({
|
|
|
80982
81574
|
}
|
|
80983
81575
|
return node;
|
|
80984
81576
|
};
|
|
80985
|
-
exports2.
|
|
81577
|
+
exports2.getValue = getValue;
|
|
81578
|
+
var paramsProcessing = (params, instructions) => {
|
|
80986
81579
|
const processedDimensions = {};
|
|
80987
81580
|
const processedMeasurements = {};
|
|
80988
81581
|
let param = null;
|
|
@@ -81005,7 +81598,8 @@ var require_paramProcessing = __commonJS({
|
|
|
81005
81598
|
}
|
|
81006
81599
|
return [processedDimensions, processedMeasurements];
|
|
81007
81600
|
};
|
|
81008
|
-
exports2.
|
|
81601
|
+
exports2.paramsProcessing = paramsProcessing;
|
|
81602
|
+
var getParamsData = (params, instructions) => {
|
|
81009
81603
|
let processedDimensions, processedMeasurements;
|
|
81010
81604
|
let customDimensions = {};
|
|
81011
81605
|
let customMeasurements = {};
|
|
@@ -81026,6 +81620,7 @@ var require_paramProcessing = __commonJS({
|
|
|
81026
81620
|
}
|
|
81027
81621
|
return [customDimensions, customMeasurements];
|
|
81028
81622
|
};
|
|
81623
|
+
exports2.getParamsData = getParamsData;
|
|
81029
81624
|
}
|
|
81030
81625
|
});
|
|
81031
81626
|
|
|
@@ -81034,10 +81629,11 @@ var require_interceptor = __commonJS({
|
|
|
81034
81629
|
"../lib/telemetry/dist/src/interceptor/index.js"(exports2) {
|
|
81035
81630
|
"use strict";
|
|
81036
81631
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81632
|
+
exports2.captureParamAsync = exports2.captureParam = exports2.durationAsync = exports2.duration = exports2.notifyAsync = exports2.notify = void 0;
|
|
81037
81633
|
var client_1 = require_client3();
|
|
81038
81634
|
var api_1 = require_api();
|
|
81039
81635
|
var paramProcessing_1 = require_paramProcessing();
|
|
81040
|
-
|
|
81636
|
+
var notify = (target, originalFn, evtName, sampleRate) => {
|
|
81041
81637
|
return (...args) => {
|
|
81042
81638
|
const result2 = originalFn.apply(target, args);
|
|
81043
81639
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
@@ -81045,7 +81641,8 @@ var require_interceptor = __commonJS({
|
|
|
81045
81641
|
return result2;
|
|
81046
81642
|
};
|
|
81047
81643
|
};
|
|
81048
|
-
exports2.
|
|
81644
|
+
exports2.notify = notify;
|
|
81645
|
+
var notifyAsync = (target, originalFn, evtName, sampleRate) => {
|
|
81049
81646
|
return async (...args) => {
|
|
81050
81647
|
const result2 = await originalFn.apply(target, args);
|
|
81051
81648
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
@@ -81053,31 +81650,34 @@ var require_interceptor = __commonJS({
|
|
|
81053
81650
|
return result2;
|
|
81054
81651
|
};
|
|
81055
81652
|
};
|
|
81056
|
-
exports2.
|
|
81653
|
+
exports2.notifyAsync = notifyAsync;
|
|
81654
|
+
var duration = (target, originalFn, evtName, sampleRate) => {
|
|
81057
81655
|
return (...args) => {
|
|
81058
81656
|
const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
|
|
81059
81657
|
const result2 = originalFn.apply(target, args);
|
|
81060
81658
|
api_1.PerformanceMeasurementAPI.endMark(markName);
|
|
81061
81659
|
api_1.PerformanceMeasurementAPI.measure(markName);
|
|
81062
|
-
const
|
|
81660
|
+
const duration2 = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
|
|
81063
81661
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
81064
|
-
appinsightClient.report(evtName, {}, { ms:
|
|
81662
|
+
appinsightClient.report(evtName, {}, { ms: duration2 }, sampleRate);
|
|
81065
81663
|
return result2;
|
|
81066
81664
|
};
|
|
81067
81665
|
};
|
|
81068
|
-
exports2.
|
|
81666
|
+
exports2.duration = duration;
|
|
81667
|
+
var durationAsync = (target, originalFn, evtName, sampleRate) => {
|
|
81069
81668
|
return async (...args) => {
|
|
81070
81669
|
const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
|
|
81071
81670
|
const result2 = await originalFn.apply(target, args);
|
|
81072
81671
|
api_1.PerformanceMeasurementAPI.endMark(markName);
|
|
81073
81672
|
api_1.PerformanceMeasurementAPI.measure(markName);
|
|
81074
|
-
const
|
|
81673
|
+
const duration2 = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
|
|
81075
81674
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
81076
|
-
appinsightClient.report(evtName, {}, { ms:
|
|
81675
|
+
appinsightClient.report(evtName, {}, { ms: duration2 }, sampleRate);
|
|
81077
81676
|
return result2;
|
|
81078
81677
|
};
|
|
81079
81678
|
};
|
|
81080
|
-
exports2.
|
|
81679
|
+
exports2.durationAsync = durationAsync;
|
|
81680
|
+
var captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
|
|
81081
81681
|
return (...args) => {
|
|
81082
81682
|
const result2 = originalFn.apply(target, args);
|
|
81083
81683
|
const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
|
|
@@ -81086,7 +81686,8 @@ var require_interceptor = __commonJS({
|
|
|
81086
81686
|
return result2;
|
|
81087
81687
|
};
|
|
81088
81688
|
};
|
|
81089
|
-
exports2.
|
|
81689
|
+
exports2.captureParam = captureParam;
|
|
81690
|
+
var captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
|
|
81090
81691
|
return async (...args) => {
|
|
81091
81692
|
const result2 = await originalFn.apply(target, args);
|
|
81092
81693
|
const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
|
|
@@ -81095,6 +81696,7 @@ var require_interceptor = __commonJS({
|
|
|
81095
81696
|
return result2;
|
|
81096
81697
|
};
|
|
81097
81698
|
};
|
|
81699
|
+
exports2.captureParamAsync = captureParamAsync;
|
|
81098
81700
|
}
|
|
81099
81701
|
});
|
|
81100
81702
|
|
|
@@ -81102,19 +81704,36 @@ var require_interceptor = __commonJS({
|
|
|
81102
81704
|
var require_config4 = __commonJS({
|
|
81103
81705
|
"../lib/telemetry/dist/src/interceptor/config.js"(exports2) {
|
|
81104
81706
|
"use strict";
|
|
81707
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
81708
|
+
if (k2 === void 0)
|
|
81709
|
+
k2 = k;
|
|
81710
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
81711
|
+
return m[k];
|
|
81712
|
+
} });
|
|
81713
|
+
} : function(o, m, k, k2) {
|
|
81714
|
+
if (k2 === void 0)
|
|
81715
|
+
k2 = k;
|
|
81716
|
+
o[k2] = m[k];
|
|
81717
|
+
});
|
|
81718
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
81719
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
81720
|
+
} : function(o, v) {
|
|
81721
|
+
o["default"] = v;
|
|
81722
|
+
});
|
|
81105
81723
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
81106
81724
|
if (mod && mod.__esModule)
|
|
81107
81725
|
return mod;
|
|
81108
81726
|
var result2 = {};
|
|
81109
81727
|
if (mod != null) {
|
|
81110
81728
|
for (var k in mod)
|
|
81111
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
81112
|
-
result2
|
|
81729
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
81730
|
+
__createBinding(result2, mod, k);
|
|
81113
81731
|
}
|
|
81114
|
-
result2
|
|
81732
|
+
__setModuleDefault(result2, mod);
|
|
81115
81733
|
return result2;
|
|
81116
81734
|
};
|
|
81117
81735
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81736
|
+
exports2.asyncInterceptorTypesMapping = exports2.interceptorTypesMapping = exports2.interceptorTypes = void 0;
|
|
81118
81737
|
var interceptors = __importStar(require_interceptor());
|
|
81119
81738
|
var interceptorTypes;
|
|
81120
81739
|
(function(interceptorTypes2) {
|
|
@@ -81140,6 +81759,7 @@ var require_decorator = __commonJS({
|
|
|
81140
81759
|
"../lib/telemetry/dist/src/decorator/index.js"(exports2) {
|
|
81141
81760
|
"use strict";
|
|
81142
81761
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81762
|
+
exports2.logTelemetryAsync = exports2.logTelemetry = void 0;
|
|
81143
81763
|
var config_1 = require_config4();
|
|
81144
81764
|
var decorCommon = (isAsync, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
|
|
81145
81765
|
const originalMethod = descriptor.value;
|
|
@@ -81147,16 +81767,18 @@ var require_decorator = __commonJS({
|
|
|
81147
81767
|
const interceptor = interceptorTypesMap.get(interceptorType);
|
|
81148
81768
|
descriptor.value = interceptor(target, originalMethod, evtName, sampleRate, paramsCapturingInstructions);
|
|
81149
81769
|
};
|
|
81150
|
-
|
|
81770
|
+
var logTelemetry = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
|
|
81151
81771
|
return (target, functionName, descriptor) => {
|
|
81152
81772
|
decorCommon(false, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
|
|
81153
81773
|
};
|
|
81154
81774
|
};
|
|
81155
|
-
exports2.
|
|
81775
|
+
exports2.logTelemetry = logTelemetry;
|
|
81776
|
+
var logTelemetryAsync = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
|
|
81156
81777
|
return (target, functionName, descriptor) => {
|
|
81157
81778
|
decorCommon(true, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
|
|
81158
81779
|
};
|
|
81159
81780
|
};
|
|
81781
|
+
exports2.logTelemetryAsync = logTelemetryAsync;
|
|
81160
81782
|
}
|
|
81161
81783
|
});
|
|
81162
81784
|
|
|
@@ -81165,37 +81787,74 @@ var require_src7 = __commonJS({
|
|
|
81165
81787
|
"../lib/telemetry/dist/src/index.js"(exports2) {
|
|
81166
81788
|
"use strict";
|
|
81167
81789
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
81790
|
+
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;
|
|
81168
81791
|
var index_1 = require_client3();
|
|
81169
|
-
exports2
|
|
81792
|
+
Object.defineProperty(exports2, "ClientFactory", { enumerable: true, get: function() {
|
|
81793
|
+
return index_1.ClientFactory;
|
|
81794
|
+
} });
|
|
81170
81795
|
var client_1 = require_client2();
|
|
81171
|
-
exports2
|
|
81796
|
+
Object.defineProperty(exports2, "Client", { enumerable: true, get: function() {
|
|
81797
|
+
return client_1.Client;
|
|
81798
|
+
} });
|
|
81172
81799
|
var ClientType_1 = require_ClientType();
|
|
81173
|
-
exports2
|
|
81800
|
+
Object.defineProperty(exports2, "ClientType", { enumerable: true, get: function() {
|
|
81801
|
+
return ClientType_1.ClientType;
|
|
81802
|
+
} });
|
|
81174
81803
|
var appInsightClient_1 = require_appInsightClient();
|
|
81175
|
-
exports2
|
|
81804
|
+
Object.defineProperty(exports2, "ApplicationInsightClient", { enumerable: true, get: function() {
|
|
81805
|
+
return appInsightClient_1.ApplicationInsightClient;
|
|
81806
|
+
} });
|
|
81176
81807
|
var system_1 = require_system3();
|
|
81177
|
-
exports2
|
|
81808
|
+
Object.defineProperty(exports2, "TelemetrySystem", { enumerable: true, get: function() {
|
|
81809
|
+
return system_1.TelemetrySystem;
|
|
81810
|
+
} });
|
|
81178
81811
|
var EventHeader_1 = require_EventHeader();
|
|
81179
|
-
exports2
|
|
81812
|
+
Object.defineProperty(exports2, "EventHeader", { enumerable: true, get: function() {
|
|
81813
|
+
return EventHeader_1.EventHeader;
|
|
81814
|
+
} });
|
|
81180
81815
|
var EventName_1 = require_EventName();
|
|
81181
|
-
exports2
|
|
81816
|
+
Object.defineProperty(exports2, "EventName", { enumerable: true, get: function() {
|
|
81817
|
+
return EventName_1.EventName;
|
|
81818
|
+
} });
|
|
81182
81819
|
var SampleRate_1 = require_SampleRate();
|
|
81183
|
-
exports2
|
|
81820
|
+
Object.defineProperty(exports2, "SampleRate", { enumerable: true, get: function() {
|
|
81821
|
+
return SampleRate_1.SampleRate;
|
|
81822
|
+
} });
|
|
81184
81823
|
var config_1 = require_config4();
|
|
81185
|
-
exports2
|
|
81824
|
+
Object.defineProperty(exports2, "interceptorTypes", { enumerable: true, get: function() {
|
|
81825
|
+
return config_1.interceptorTypes;
|
|
81826
|
+
} });
|
|
81186
81827
|
var api_1 = require_api();
|
|
81187
|
-
exports2
|
|
81828
|
+
Object.defineProperty(exports2, "PerformanceMeasurementAPI", { enumerable: true, get: function() {
|
|
81829
|
+
return api_1.PerformanceMeasurementAPI;
|
|
81830
|
+
} });
|
|
81188
81831
|
var paramProcessing_1 = require_paramProcessing();
|
|
81189
|
-
exports2
|
|
81190
|
-
|
|
81832
|
+
Object.defineProperty(exports2, "ParamRecordConfig", { enumerable: true, get: function() {
|
|
81833
|
+
return paramProcessing_1.ParamRecordConfig;
|
|
81834
|
+
} });
|
|
81835
|
+
Object.defineProperty(exports2, "ParamRecordConfigField", { enumerable: true, get: function() {
|
|
81836
|
+
return paramProcessing_1.ParamRecordConfigField;
|
|
81837
|
+
} });
|
|
81191
81838
|
var decorator_1 = require_decorator();
|
|
81192
|
-
exports2
|
|
81193
|
-
|
|
81839
|
+
Object.defineProperty(exports2, "logTelemetry", { enumerable: true, get: function() {
|
|
81840
|
+
return decorator_1.logTelemetry;
|
|
81841
|
+
} });
|
|
81842
|
+
Object.defineProperty(exports2, "logTelemetryAsync", { enumerable: true, get: function() {
|
|
81843
|
+
return decorator_1.logTelemetryAsync;
|
|
81844
|
+
} });
|
|
81194
81845
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
81195
|
-
exports2
|
|
81196
|
-
|
|
81197
|
-
|
|
81198
|
-
exports2
|
|
81846
|
+
Object.defineProperty(exports2, "initTelemetrySettings", { enumerable: true, get: function() {
|
|
81847
|
+
return toolsSuiteTelemetry_1.initTelemetrySettings;
|
|
81848
|
+
} });
|
|
81849
|
+
Object.defineProperty(exports2, "ToolsSuiteTelemetryClient", { enumerable: true, get: function() {
|
|
81850
|
+
return toolsSuiteTelemetry_1.ToolsSuiteTelemetryClient;
|
|
81851
|
+
} });
|
|
81852
|
+
Object.defineProperty(exports2, "setEnableTelemetry", { enumerable: true, get: function() {
|
|
81853
|
+
return toolsSuiteTelemetry_1.setEnableTelemetry;
|
|
81854
|
+
} });
|
|
81855
|
+
Object.defineProperty(exports2, "getTelemetrySetting", { enumerable: true, get: function() {
|
|
81856
|
+
return toolsSuiteTelemetry_1.getTelemetrySetting;
|
|
81857
|
+
} });
|
|
81199
81858
|
exports2.TelemetrySettings = {};
|
|
81200
81859
|
}
|
|
81201
81860
|
});
|