@servicenow/sdk-build-plugins 3.0.2 → 4.0.0
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/dist/acl-plugin.d.ts +19 -0
- package/dist/acl-plugin.js +210 -0
- package/dist/acl-plugin.js.map +1 -0
- package/dist/application-menu-plugin.d.ts +18 -0
- package/dist/application-menu-plugin.js +104 -0
- package/dist/application-menu-plugin.js.map +1 -0
- package/dist/arrow-function-plugin.d.ts +16 -0
- package/dist/arrow-function-plugin.js +107 -0
- package/dist/arrow-function-plugin.js.map +1 -0
- package/dist/atf/step-configs.d.ts +37 -0
- package/dist/atf/step-configs.js +2236 -0
- package/dist/atf/step-configs.js.map +1 -0
- package/dist/atf/test-plugin.d.ts +4 -0
- package/dist/atf/test-plugin.js +591 -0
- package/dist/atf/test-plugin.js.map +1 -0
- package/dist/basic-syntax-plugin.d.ts +2 -0
- package/dist/basic-syntax-plugin.js +636 -0
- package/dist/basic-syntax-plugin.js.map +1 -0
- package/dist/business-rule-plugin.d.ts +3 -0
- package/dist/business-rule-plugin.js +205 -0
- package/dist/business-rule-plugin.js.map +1 -0
- package/dist/call-expression-plugin.d.ts +2 -0
- package/dist/call-expression-plugin.js +175 -0
- package/dist/call-expression-plugin.js.map +1 -0
- package/dist/client-script-plugin.d.ts +29 -0
- package/dist/client-script-plugin.js +157 -0
- package/dist/client-script-plugin.js.map +1 -0
- package/dist/column/column-helper.d.ts +12 -0
- package/dist/column/column-helper.js +84 -0
- package/dist/column/column-helper.js.map +1 -0
- package/dist/column/column-to-record.d.ts +3 -0
- package/dist/column/column-to-record.js +105 -0
- package/dist/column/column-to-record.js.map +1 -0
- package/dist/column-plugin.d.ts +8 -0
- package/dist/column-plugin.js +453 -0
- package/dist/column-plugin.js.map +1 -0
- package/dist/cross-scope-privilege-plugin.d.ts +15 -0
- package/dist/cross-scope-privilege-plugin.js +82 -0
- package/dist/cross-scope-privilege-plugin.js.map +1 -0
- package/dist/html-import-plugin.d.ts +2 -0
- package/dist/html-import-plugin.js +72 -0
- package/dist/html-import-plugin.js.map +1 -0
- package/dist/index.d.ts +37 -21
- package/dist/index.js +40 -45
- package/dist/index.js.map +1 -1
- package/dist/json-plugin.d.ts +15 -0
- package/dist/json-plugin.js +104 -0
- package/dist/json-plugin.js.map +1 -0
- package/dist/list-plugin.d.ts +2 -0
- package/dist/list-plugin.js +191 -0
- package/dist/list-plugin.js.map +1 -0
- package/dist/now-config-plugin.d.ts +4 -0
- package/dist/now-config-plugin.js +154 -0
- package/dist/now-config-plugin.js.map +1 -0
- package/dist/now-id-plugin.d.ts +11 -0
- package/dist/now-id-plugin.js +71 -0
- package/dist/now-id-plugin.js.map +1 -0
- package/dist/now-include-plugin.d.ts +16 -0
- package/dist/now-include-plugin.js +118 -0
- package/dist/now-include-plugin.js.map +1 -0
- package/dist/now-ref-plugin.d.ts +2 -0
- package/dist/now-ref-plugin.js +43 -0
- package/dist/now-ref-plugin.js.map +1 -0
- package/dist/now-unresolved-plugin.d.ts +2 -0
- package/dist/now-unresolved-plugin.js +32 -0
- package/dist/now-unresolved-plugin.js.map +1 -0
- package/dist/package-json-plugin.d.ts +2 -0
- package/dist/package-json-plugin.js +70 -0
- package/dist/package-json-plugin.js.map +1 -0
- package/dist/property-plugin.d.ts +2 -0
- package/dist/property-plugin.js +105 -0
- package/dist/property-plugin.js.map +1 -0
- package/dist/record-plugin.d.ts +43 -0
- package/dist/record-plugin.js +147 -0
- package/dist/record-plugin.js.map +1 -0
- package/dist/repack/index.d.ts +1 -0
- package/dist/repack/index.js +10 -2
- package/dist/repack/index.js.map +1 -1
- package/dist/repack/lint/Rules.d.ts +1 -1
- package/dist/repack/lint/Rules.js +7 -3
- package/dist/repack/lint/Rules.js.map +1 -1
- package/dist/repack/lint/index.js +1 -1
- package/dist/rest-api-plugin.d.ts +2 -0
- package/dist/rest-api-plugin.js +469 -0
- package/dist/rest-api-plugin.js.map +1 -0
- package/dist/role-plugin.d.ts +2 -0
- package/dist/role-plugin.js +117 -0
- package/dist/role-plugin.js.map +1 -0
- package/dist/script-action-plugin.d.ts +2 -0
- package/dist/script-action-plugin.js +62 -0
- package/dist/script-action-plugin.js.map +1 -0
- package/dist/script-include-plugin.d.ts +2 -0
- package/dist/script-include-plugin.js +102 -0
- package/dist/script-include-plugin.js.map +1 -0
- package/dist/server-module-plugin/index.d.ts +14 -0
- package/dist/server-module-plugin/index.js +378 -0
- package/dist/server-module-plugin/index.js.map +1 -0
- package/dist/server-module-plugin/sbom-builder.d.ts +45 -0
- package/dist/server-module-plugin/sbom-builder.js +179 -0
- package/dist/server-module-plugin/sbom-builder.js.map +1 -0
- package/dist/service-portal/angular-provider-plugin.d.ts +2 -0
- package/dist/service-portal/angular-provider-plugin.js +78 -0
- package/dist/service-portal/angular-provider-plugin.js.map +1 -0
- package/dist/service-portal/dependency-plugin.d.ts +2 -0
- package/dist/service-portal/dependency-plugin.js +235 -0
- package/dist/service-portal/dependency-plugin.js.map +1 -0
- package/dist/service-portal/widget-plugin.d.ts +6 -0
- package/dist/service-portal/widget-plugin.js +230 -0
- package/dist/service-portal/widget-plugin.js.map +1 -0
- package/dist/static-content-plugin.d.ts +2 -0
- package/dist/static-content-plugin.js +272 -0
- package/dist/static-content-plugin.js.map +1 -0
- package/dist/table-plugin.d.ts +3 -0
- package/dist/table-plugin.js +1324 -0
- package/dist/table-plugin.js.map +1 -0
- package/dist/ui-action-plugin.d.ts +2 -0
- package/dist/ui-action-plugin.js +291 -0
- package/dist/ui-action-plugin.js.map +1 -0
- package/dist/ui-page-plugin.d.ts +2 -0
- package/dist/ui-page-plugin.js +165 -0
- package/dist/ui-page-plugin.js.map +1 -0
- package/dist/user-preference-plugin.d.ts +15 -0
- package/dist/user-preference-plugin.js +63 -0
- package/dist/user-preference-plugin.js.map +1 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.js +72 -0
- package/dist/utils.js.map +1 -0
- package/dist/view-plugin.d.ts +2 -0
- package/dist/view-plugin.js +45 -0
- package/dist/view-plugin.js.map +1 -0
- package/package.json +17 -13
- package/src/acl-plugin.ts +256 -0
- package/src/application-menu-plugin.ts +109 -0
- package/src/arrow-function-plugin.ts +127 -0
- package/src/atf/step-configs.ts +2284 -0
- package/src/atf/test-plugin.ts +728 -0
- package/src/basic-syntax-plugin.ts +729 -0
- package/src/business-rule-plugin.ts +266 -0
- package/src/call-expression-plugin.ts +202 -0
- package/src/client-script-plugin.ts +170 -0
- package/src/column/column-helper.ts +119 -0
- package/src/column/column-to-record.ts +131 -0
- package/src/column-plugin.ts +506 -0
- package/src/cross-scope-privilege-plugin.ts +82 -0
- package/src/html-import-plugin.ts +79 -0
- package/src/index.ts +39 -21
- package/src/json-plugin.ts +128 -0
- package/src/list-plugin.ts +222 -0
- package/src/now-config-plugin.ts +194 -0
- package/src/now-id-plugin.ts +78 -0
- package/src/now-include-plugin.ts +140 -0
- package/src/now-ref-plugin.ts +48 -0
- package/src/now-unresolved-plugin.ts +30 -0
- package/src/package-json-plugin.ts +87 -0
- package/src/property-plugin.ts +118 -0
- package/src/record-plugin.ts +171 -0
- package/src/repack/index.ts +10 -1
- package/src/repack/lint/Rules.ts +5 -4
- package/src/repack/lint/index.ts +1 -1
- package/src/rest-api-plugin.ts +651 -0
- package/src/role-plugin.ts +128 -0
- package/src/script-action-plugin.ts +63 -0
- package/src/script-include-plugin.ts +110 -0
- package/src/server-module-plugin/index.ts +470 -0
- package/src/server-module-plugin/sbom-builder.ts +183 -0
- package/src/service-portal/angular-provider-plugin.ts +83 -0
- package/src/service-portal/dependency-plugin.ts +284 -0
- package/src/service-portal/widget-plugin.ts +263 -0
- package/src/static-content-plugin.ts +254 -0
- package/src/table-plugin.ts +1698 -0
- package/src/ui-action-plugin.ts +324 -0
- package/src/ui-page-plugin.ts +168 -0
- package/src/user-preference-plugin.ts +62 -0
- package/src/utils.ts +69 -0
- package/src/view-plugin.ts +46 -0
- package/dist/AttachmentPlugin.d.ts +0 -254
- package/dist/AttachmentPlugin.js +0 -220
- package/dist/AttachmentPlugin.js.map +0 -1
- package/dist/BusinessRulePlugin.d.ts +0 -30
- package/dist/BusinessRulePlugin.js +0 -149
- package/dist/BusinessRulePlugin.js.map +0 -1
- package/dist/CrossScopePrivilegePlugin.d.ts +0 -35
- package/dist/CrossScopePrivilegePlugin.js +0 -80
- package/dist/CrossScopePrivilegePlugin.js.map +0 -1
- package/dist/DefaultPlugin.d.ts +0 -86
- package/dist/DefaultPlugin.js +0 -226
- package/dist/DefaultPlugin.js.map +0 -1
- package/dist/HtmlTemplatePlugin.d.ts +0 -21
- package/dist/HtmlTemplatePlugin.js +0 -29
- package/dist/HtmlTemplatePlugin.js.map +0 -1
- package/dist/IdPlugin.d.ts +0 -28
- package/dist/IdPlugin.js +0 -68
- package/dist/IdPlugin.js.map +0 -1
- package/dist/IncludePlugin.d.ts +0 -34
- package/dist/IncludePlugin.js +0 -155
- package/dist/IncludePlugin.js.map +0 -1
- package/dist/JsonPlugin.d.ts +0 -28
- package/dist/JsonPlugin.js +0 -69
- package/dist/JsonPlugin.js.map +0 -1
- package/dist/ListPlugin.d.ts +0 -93
- package/dist/ListPlugin.js +0 -456
- package/dist/ListPlugin.js.map +0 -1
- package/dist/NowConfigPlugin.d.ts +0 -45
- package/dist/NowConfigPlugin.js +0 -64
- package/dist/NowConfigPlugin.js.map +0 -1
- package/dist/PackageJsonPlugin.d.ts +0 -34
- package/dist/PackageJsonPlugin.js +0 -63
- package/dist/PackageJsonPlugin.js.map +0 -1
- package/dist/PropertyPlugin.d.ts +0 -51
- package/dist/PropertyPlugin.js +0 -181
- package/dist/PropertyPlugin.js.map +0 -1
- package/dist/ScriptTemplatePlugin.d.ts +0 -13
- package/dist/ScriptTemplatePlugin.js +0 -55
- package/dist/ScriptTemplatePlugin.js.map +0 -1
- package/dist/ServerModulePlugin.d.ts +0 -75
- package/dist/ServerModulePlugin.js +0 -368
- package/dist/ServerModulePlugin.js.map +0 -1
- package/dist/UserPreferencePlugin.d.ts +0 -19
- package/dist/UserPreferencePlugin.js +0 -32
- package/dist/UserPreferencePlugin.js.map +0 -1
- package/dist/aclAndRole/AclPlugin.d.ts +0 -82
- package/dist/aclAndRole/AclPlugin.js +0 -262
- package/dist/aclAndRole/AclPlugin.js.map +0 -1
- package/dist/aclAndRole/RolePlugin.d.ts +0 -66
- package/dist/aclAndRole/RolePlugin.js +0 -179
- package/dist/aclAndRole/RolePlugin.js.map +0 -1
- package/dist/aclAndRole/Util.d.ts +0 -3
- package/dist/aclAndRole/Util.js +0 -90
- package/dist/aclAndRole/Util.js.map +0 -1
- package/dist/app/ApplicationMenuPlugin.d.ts +0 -34
- package/dist/app/ApplicationMenuPlugin.js +0 -112
- package/dist/app/ApplicationMenuPlugin.js.map +0 -1
- package/dist/db/ColumnPlugins.d.ts +0 -750
- package/dist/db/ColumnPlugins.js +0 -114
- package/dist/db/ColumnPlugins.js.map +0 -1
- package/dist/db/DBUtils.d.ts +0 -2
- package/dist/db/DBUtils.js +0 -27
- package/dist/db/DBUtils.js.map +0 -1
- package/dist/db/DocumentationPlugin.d.ts +0 -67
- package/dist/db/DocumentationPlugin.js +0 -258
- package/dist/db/DocumentationPlugin.js.map +0 -1
- package/dist/db/LicensingPlugin.d.ts +0 -60
- package/dist/db/LicensingPlugin.js +0 -117
- package/dist/db/LicensingPlugin.js.map +0 -1
- package/dist/db/RecordPlugin.d.ts +0 -133
- package/dist/db/RecordPlugin.js +0 -337
- package/dist/db/RecordPlugin.js.map +0 -1
- package/dist/db/TablePlugin.d.ts +0 -231
- package/dist/db/TablePlugin.js +0 -1628
- package/dist/db/TablePlugin.js.map +0 -1
- package/dist/db/index.d.ts +0 -6
- package/dist/db/index.js +0 -32
- package/dist/db/index.js.map +0 -1
- package/dist/scriptedRESTAPI/RESTDeserializationUtils.d.ts +0 -10
- package/dist/scriptedRESTAPI/RESTDeserializationUtils.js +0 -373
- package/dist/scriptedRESTAPI/RESTDeserializationUtils.js.map +0 -1
- package/dist/scriptedRESTAPI/RESTSerializationUtils.d.ts +0 -13
- package/dist/scriptedRESTAPI/RESTSerializationUtils.js +0 -177
- package/dist/scriptedRESTAPI/RESTSerializationUtils.js.map +0 -1
- package/dist/scriptedRESTAPI/RestApiPlugin.d.ts +0 -81
- package/dist/scriptedRESTAPI/RestApiPlugin.js +0 -345
- package/dist/scriptedRESTAPI/RestApiPlugin.js.map +0 -1
- package/dist/scriptedRESTAPI/RestSchemaUtils.d.ts +0 -190
- package/dist/scriptedRESTAPI/RestSchemaUtils.js +0 -53
- package/dist/scriptedRESTAPI/RestSchemaUtils.js.map +0 -1
- package/dist/scriptedRESTAPI/RestUtils.d.ts +0 -69
- package/dist/scriptedRESTAPI/RestUtils.js +0 -497
- package/dist/scriptedRESTAPI/RestUtils.js.map +0 -1
- package/dist/scripts/ClientScriptPlugin.d.ts +0 -64
- package/dist/scripts/ClientScriptPlugin.js +0 -170
- package/dist/scripts/ClientScriptPlugin.js.map +0 -1
- package/dist/scripts/scriptUtils.d.ts +0 -1
- package/dist/scripts/scriptUtils.js +0 -9
- package/dist/scripts/scriptUtils.js.map +0 -1
- package/dist/uxf/ExperiencePlugin.d.ts +0 -45
- package/dist/uxf/ExperiencePlugin.js +0 -61
- package/dist/uxf/ExperiencePlugin.js.map +0 -1
- package/dist/uxf/RoutesPlugin.d.ts +0 -29
- package/dist/uxf/RoutesPlugin.js +0 -181
- package/dist/uxf/RoutesPlugin.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/cleanUxValue.d.ts +0 -4
- package/dist/uxf/UxfFormulaParser/cleanUxValue.js +0 -65
- package/dist/uxf/UxfFormulaParser/cleanUxValue.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/grammerParser/api.d.ts +0 -189
- package/dist/uxf/UxfFormulaParser/grammerParser/api.js +0 -158
- package/dist/uxf/UxfFormulaParser/grammerParser/api.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.d.ts +0 -13
- package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js +0 -604
- package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.d.ts +0 -12
- package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.js +0 -551
- package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.d.ts +0 -31
- package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.js +0 -64
- package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/index.d.ts +0 -3
- package/dist/uxf/UxfFormulaParser/index.js +0 -11
- package/dist/uxf/UxfFormulaParser/index.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/parser.d.ts +0 -8
- package/dist/uxf/UxfFormulaParser/parser.js +0 -87
- package/dist/uxf/UxfFormulaParser/parser.js.map +0 -1
- package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.d.ts +0 -8
- package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.js +0 -17
- package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.js.map +0 -1
- package/dist/uxf/constants.d.ts +0 -2
- package/dist/uxf/constants.js +0 -8
- package/dist/uxf/constants.js.map +0 -1
- package/dist/uxf/index.d.ts +0 -2
- package/dist/uxf/index.js +0 -11
- package/dist/uxf/index.js.map +0 -1
- package/dist/uxf/tectonicIdGenerator.d.ts +0 -12
- package/dist/uxf/tectonicIdGenerator.js +0 -79
- package/dist/uxf/tectonicIdGenerator.js.map +0 -1
- package/src/AttachmentPlugin.ts +0 -268
- package/src/BusinessRulePlugin.ts +0 -238
- package/src/CrossScopePrivilegePlugin.ts +0 -115
- package/src/DefaultPlugin.ts +0 -288
- package/src/HtmlTemplatePlugin.ts +0 -31
- package/src/IdPlugin.ts +0 -74
- package/src/IncludePlugin.ts +0 -206
- package/src/JsonPlugin.ts +0 -76
- package/src/ListPlugin.ts +0 -570
- package/src/NowConfigPlugin.ts +0 -69
- package/src/PackageJsonPlugin.ts +0 -68
- package/src/PropertyPlugin.ts +0 -237
- package/src/ScriptTemplatePlugin.ts +0 -53
- package/src/ServerModulePlugin.ts +0 -480
- package/src/UserPreferencePlugin.ts +0 -45
- package/src/aclAndRole/AclPlugin.ts +0 -420
- package/src/aclAndRole/RolePlugin.ts +0 -254
- package/src/aclAndRole/Util.ts +0 -113
- package/src/app/ApplicationMenuPlugin.ts +0 -165
- package/src/db/ColumnPlugins.ts +0 -114
- package/src/db/DBUtils.ts +0 -36
- package/src/db/DocumentationPlugin.ts +0 -316
- package/src/db/LicensingPlugin.ts +0 -138
- package/src/db/RecordPlugin.ts +0 -459
- package/src/db/TablePlugin.ts +0 -2070
- package/src/db/index.ts +0 -6
- package/src/scriptedRESTAPI/RESTDeserializationUtils.ts +0 -419
- package/src/scriptedRESTAPI/RESTSerializationUtils.ts +0 -228
- package/src/scriptedRESTAPI/RestApiPlugin.ts +0 -469
- package/src/scriptedRESTAPI/RestSchemaUtils.ts +0 -72
- package/src/scriptedRESTAPI/RestUtils.ts +0 -569
- package/src/scripts/ClientScriptPlugin.ts +0 -257
- package/src/scripts/scriptUtils.ts +0 -5
- package/src/uxf/ExperiencePlugin.ts +0 -67
- package/src/uxf/RoutesPlugin.ts +0 -211
- package/src/uxf/UxfFormulaParser/cleanUxValue.ts +0 -73
- package/src/uxf/UxfFormulaParser/grammerParser/api.js +0 -166
- package/src/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js +0 -606
- package/src/uxf/UxfFormulaParser/grammerParser/grammarParser.js +0 -551
- package/src/uxf/UxfFormulaParser/grammerParser/spanHelpers.js +0 -65
- package/src/uxf/UxfFormulaParser/index.ts +0 -4
- package/src/uxf/UxfFormulaParser/parser.ts +0 -64
- package/src/uxf/UxfFormulaParser/utils/getErrorMsg.ts +0 -13
- package/src/uxf/constants.ts +0 -4
- package/src/uxf/index.ts +0 -2
- package/src/uxf/tectonicIdGenerator.ts +0 -78
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const clientscript_1 = require("@servicenow/sdk-core/runtime/clientscript");
|
|
4
|
-
const sdk_build_core_1 = require("@servicenow/sdk-build-core");
|
|
5
|
-
const db_1 = require("@servicenow/sdk-core/runtime/db");
|
|
6
|
-
const clientscript_2 = require("@servicenow/sdk-core/runtime/clientscript");
|
|
7
|
-
const zod_1 = require("zod");
|
|
8
|
-
const sdk_project_1 = require("@servicenow/sdk-project");
|
|
9
|
-
const ScriptTemplatePlugin_1 = require("../ScriptTemplatePlugin");
|
|
10
|
-
const sdk_project_2 = require("@servicenow/sdk-project");
|
|
11
|
-
const scriptUtils_1 = require("./scriptUtils");
|
|
12
|
-
const util_1 = require("@servicenow/sdk-core/runtime/util");
|
|
13
|
-
const UITypeMapping = {
|
|
14
|
-
desktop: 0,
|
|
15
|
-
mobile_or_service_portal: 1,
|
|
16
|
-
all: 10,
|
|
17
|
-
};
|
|
18
|
-
const ClientScriptXmlSchema = clientscript_2.ClientScriptSchema.extend({
|
|
19
|
-
table: zod_1.z.string(),
|
|
20
|
-
ui_type: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(10)]),
|
|
21
|
-
sys_class_name: zod_1.z.literal('sys_script_client'),
|
|
22
|
-
});
|
|
23
|
-
const PartialClientScriptXMLSchema = ClientScriptXmlSchema.partial();
|
|
24
|
-
exports.default = (0, sdk_build_core_1.Plugin)({
|
|
25
|
-
name: 'ClientScript',
|
|
26
|
-
ownedTables: {
|
|
27
|
-
sys_script_client: { diagnosticLevel: sdk_project_2.Diagnostic.Level.Warn },
|
|
28
|
-
},
|
|
29
|
-
extractors: {
|
|
30
|
-
entity: {
|
|
31
|
-
fluent: {
|
|
32
|
-
CallExpression: (node, context) => {
|
|
33
|
-
const result = (0, sdk_build_core_1.extractCallExpression)(clientscript_1.ClientScript, 'clientScript', node, context, (script) => context.registerExplicitId('sys_script_client', script.$id));
|
|
34
|
-
if (!result.handled || !result.data) {
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
const clientScriptEntityData = result.data;
|
|
38
|
-
const args = node.getArguments()[0];
|
|
39
|
-
if (!args) {
|
|
40
|
-
result.diagnostics.push(new sdk_build_core_1.FluentDiagnostic(node, 'Client script arguments are missing'));
|
|
41
|
-
return result;
|
|
42
|
-
}
|
|
43
|
-
const diagnostics = result.diagnostics;
|
|
44
|
-
const data = clientscript_2.ClientScriptSchema.and(zod_1.z.any()).parse(clientScriptEntityData.getValue());
|
|
45
|
-
const { script, type, field } = data;
|
|
46
|
-
if (field && !type) {
|
|
47
|
-
diagnostics.push(new sdk_build_core_1.FluentDiagnostic(args.getProperty('field'), `Field values are allowed only when type is set to onChange or onCellEdit`));
|
|
48
|
-
}
|
|
49
|
-
if (script && !validateClientSideScripts(script, context)) {
|
|
50
|
-
diagnostics.push(new sdk_build_core_1.FluentDiagnostic(args.getProperty('script'), `Client side scripts cannot import or require modules.`));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Removing this diagnostic : Currently on instance if you empty script field and click update, it would show basic template set
|
|
54
|
-
* for the field but the xml is not updated. Only after saving it again the xml gets updated with basic template.
|
|
55
|
-
*/
|
|
56
|
-
// if (type && !script) {
|
|
57
|
-
// diagnostics.push(
|
|
58
|
-
// new FluentDiagnostic(
|
|
59
|
-
// args.getProperty('type')!,
|
|
60
|
-
// `Cannot have empty script value for type: ${type}`
|
|
61
|
-
// )
|
|
62
|
-
// )
|
|
63
|
-
// }
|
|
64
|
-
const record = createClientScriptRecord(data, script);
|
|
65
|
-
return {
|
|
66
|
-
handled: true,
|
|
67
|
-
diagnostics,
|
|
68
|
-
data: new sdk_build_core_1.EntityData('record', clientScriptEntityData.getGuid(), sdk_build_core_1.ObjectData.fromObjectValue(record, node), node, clientScriptEntityData.getInstallMethod(), clientScriptEntityData.getExplicitIds()),
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
generators: {
|
|
75
|
-
record(document, context) {
|
|
76
|
-
const tableName = document.data['table'];
|
|
77
|
-
if (tableName !== 'sys_script_client') {
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
return (0, sdk_build_core_1.linkDocument)(document, (0, sdk_build_core_1.generateCallExpressionExportForDocument)(context, {
|
|
81
|
-
sourceFile: (0, sdk_build_core_1.getOrCreateEntitySourceFile)(context, (0, sdk_build_core_1.getSysUpdateName)(document, 'sys_script_client')),
|
|
82
|
-
moduleSpecifier: '@servicenow/sdk/core',
|
|
83
|
-
}, clientscript_1.ClientScript, {
|
|
84
|
-
$id: document.guid,
|
|
85
|
-
}).getExpressionIfKindOrThrow(sdk_project_1.ts.SyntaxKind.CallExpression));
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
transformers: {
|
|
89
|
-
record: {
|
|
90
|
-
CallExpression(document) {
|
|
91
|
-
if ((0, sdk_build_core_1.getCallExpressionName)(document.node) !== clientscript_1.ClientScript.name) {
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
if (document.action === 'DELETE') {
|
|
95
|
-
(0, sdk_build_core_1.removeNode)(document.node);
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
const modifiedClientScriptProps = ClientScriptXmlSchema.partial().safeParse(document.changedData.data);
|
|
99
|
-
if (!modifiedClientScriptProps.success) {
|
|
100
|
-
return false;
|
|
101
|
-
}
|
|
102
|
-
(0, sdk_build_core_1.transformCustomizedProperties)(clientscript_1.ClientScript, document.node, document.changedData.data, modifiedClientScriptProps.data);
|
|
103
|
-
return transformClientScriptArguments(document.node, (0, scriptUtils_1.except)(modifiedClientScriptProps.data, (key) => key === 'sys_class_name'));
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
function validateClientSideScripts(script, context) {
|
|
109
|
-
const source = context.compiler.createSourceFile('tmp-file.ts', script);
|
|
110
|
-
const importDeclarations = source.getDescendantsOfKind(sdk_project_1.ts.SyntaxKind.ImportDeclaration);
|
|
111
|
-
const requireCalls = source.getDescendantsOfKind(sdk_project_1.ts.SyntaxKind.CallExpression).filter((callExpression) => {
|
|
112
|
-
return isRequire(callExpression);
|
|
113
|
-
});
|
|
114
|
-
const isValid = !(importDeclarations.length > 0 || requireCalls.length > 0);
|
|
115
|
-
context.compiler.removeSourceFile(source);
|
|
116
|
-
return isValid;
|
|
117
|
-
}
|
|
118
|
-
function getUITypeFromId(id) {
|
|
119
|
-
const type = Object.keys(UITypeMapping).find((e) => UITypeMapping[e] === id);
|
|
120
|
-
if (!type) {
|
|
121
|
-
throw Error('Invalid UI Type encountered, check XML data before transforming again.');
|
|
122
|
-
}
|
|
123
|
-
return type;
|
|
124
|
-
}
|
|
125
|
-
function transformClientScriptArguments(node, data) {
|
|
126
|
-
const argNode = node.getArguments()[0].asKindOrThrow(sdk_project_1.ts.SyntaxKind.ObjectLiteralExpression);
|
|
127
|
-
const { script, table, ui_type, type, ...rest } = data;
|
|
128
|
-
if (type !== undefined) {
|
|
129
|
-
if (type) {
|
|
130
|
-
(0, sdk_build_core_1.writeCustomProperty)(argNode, 'type', '', (0, sdk_build_core_1.stringify)(type));
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
argNode.getProperty('type')?.remove();
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
if (Object.values(UITypeMapping).some((value) => value === ui_type)) {
|
|
137
|
-
const uiType = getUITypeFromId(ui_type);
|
|
138
|
-
(0, sdk_build_core_1.writeCustomProperty)(argNode, 'ui_type', '', (0, sdk_build_core_1.stringify)(uiType));
|
|
139
|
-
}
|
|
140
|
-
if (table) {
|
|
141
|
-
(0, sdk_build_core_1.writeCustomProperty)(argNode, 'table', '{}', (0, sdk_build_core_1.stringify)(table));
|
|
142
|
-
}
|
|
143
|
-
if (script !== undefined) {
|
|
144
|
-
(0, ScriptTemplatePlugin_1.processScript)(argNode, 'script', script);
|
|
145
|
-
}
|
|
146
|
-
(0, sdk_build_core_1.mergeDataIntoObjectLiteral)(argNode, rest);
|
|
147
|
-
return true;
|
|
148
|
-
}
|
|
149
|
-
function createClientScriptRecord(data, script) {
|
|
150
|
-
data.script = script;
|
|
151
|
-
const { $id, ...csData } = clientscript_2.ClientScriptSchema.parse(data);
|
|
152
|
-
const rest = (0, util_1.additionalProperties)(data, clientscript_2.ClientScriptSchema);
|
|
153
|
-
csData.ui_type = getUITypeId(csData.ui_type);
|
|
154
|
-
return (0, db_1.Record)({
|
|
155
|
-
table: 'sys_script_client',
|
|
156
|
-
$id,
|
|
157
|
-
data: { ...csData, ...rest },
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function getUITypeId(value) {
|
|
161
|
-
if (value in UITypeMapping) {
|
|
162
|
-
return UITypeMapping[value];
|
|
163
|
-
}
|
|
164
|
-
throw Error('Invalid ui_type found in xml');
|
|
165
|
-
}
|
|
166
|
-
function isRequire(callExpression) {
|
|
167
|
-
const expression = callExpression.getExpression();
|
|
168
|
-
return sdk_project_1.ts.Node.isIdentifier(expression) && expression.getText() === 'require';
|
|
169
|
-
}
|
|
170
|
-
//# sourceMappingURL=ClientScriptPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientScriptPlugin.js","sourceRoot":"","sources":["../../src/scripts/ClientScriptPlugin.ts"],"names":[],"mappings":";;AAAA,4EAAwE;AACxE,+DAiBmC;AACnC,wDAAwD;AACxD,4EAA8E;AAC9E,6BAAuB;AACvB,yDAA4C;AAC5C,kEAAuD;AACvD,yDAAoD;AACpD,+CAAsC;AACtC,4DAAwE;AAExE,MAAM,aAAa,GAAG;IAClB,OAAO,EAAE,CAAC;IACV,wBAAwB,EAAE,CAAC;IAC3B,GAAG,EAAE,EAAE;CACV,CAAA;AACD,MAAM,qBAAqB,GAAG,iCAAkB,CAAC,MAAM,C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AAG,MAAa,CAAA;IAC3B,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,iCAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACzD,MAAM,IAAI,GAAG,IAAA,2BAAoB,EAAC,IAAI,EAAE,iCAAkB,CAAC,CAAA;IAC3D,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC5C,OAAO,IAAA,WAAM,EAAC;QACV,KAAK,EAAE,mBAAmB;QAC1B,GAAG;QACH,IAAI,EAAE,EAAE,GAAI,MAAc,EAAE,GAAG,IAAI,EAAE;KACxC,CAAC,CAAA;AACN,CAAC;AAED,SAAS,WAAW,CAAC,KAAa;IAC9B,IAAI,KAAK,IAAI,aAAa,EAAE,CAAC;QACzB,OAAO,aAAa,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IACD,MAAM,KAAK,CAAC,8BAA8B,CAAC,CAAA;AAC/C,CAAC;AAED,SAAS,SAAS,CAAC,cAAiC;IAChD,MAAM,UAAU,GAAG,cAAc,CAAC,aAAa,EAAE,CAAA;IACjD,OAAO,gBAAE,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,SAAS,CAAA;AACjF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function except(obj: object, excludePredicate: (string: any) => boolean): {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.except = except;
|
|
4
|
-
function except(obj, excludePredicate) {
|
|
5
|
-
return Object.keys(obj)
|
|
6
|
-
.filter((k) => !excludePredicate(k))
|
|
7
|
-
.reduce((acc, k) => ({ ...acc, [k]: obj[k] }), {});
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=scriptUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scriptUtils.js","sourceRoot":"","sources":["../../src/scripts/scriptUtils.ts"],"names":[],"mappings":";;AAAA,wBAIC;AAJD,SAAgB,MAAM,CAAC,GAAW,EAAE,gBAAqC;IACrE,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SAClB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;SACnC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;AAC1D,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Experience } from '@servicenow/sdk-core/runtime/experience';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
readonly name: "Experience";
|
|
4
|
-
readonly ownedTables: {};
|
|
5
|
-
readonly extractors: {
|
|
6
|
-
readonly entity: {
|
|
7
|
-
readonly fluent: {
|
|
8
|
-
readonly CallExpression: (node: import("ts-morph").CallExpression<import("ts-morph").ts.CallExpression>, context: import("@servicenow/sdk-build-core").Context) => import("@servicenow/sdk-build-core").ExtractionResult<import("@servicenow/sdk-build-core").EntityData<Experience>>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
readonly composers: {
|
|
13
|
-
readonly entity: {
|
|
14
|
-
readonly experience: (entity: import("@servicenow/sdk-build-core").EntityData<globalThis.Record<string, unknown>>, context: import("@servicenow/sdk-build-core").Context) => Promise<{
|
|
15
|
-
kind: string;
|
|
16
|
-
guid: string;
|
|
17
|
-
node: import("ts-morph").CallExpression<import("ts-morph").ts.CallExpression> | import("ts-morph").StringLiteral | import("ts-morph").SourceFile | import("ts-morph").TypeAliasDeclaration | import("ts-morph").TypeReferenceNode | import("ts-morph").TypeLiteralNode | import("ts-morph").PropertySignature | import("ts-morph").TupleTypeNode | import("ts-morph").FunctionExpression | import("ts-morph").FunctionDeclaration | import("ts-morph").ArrayLiteralExpression | import("ts-morph").NumericLiteral | import("ts-morph").TrueLiteral | import("ts-morph").FalseLiteral | import("ts-morph").Identifier | import("ts-morph").VariableDeclaration | import("ts-morph").ClassDeclaration | import("ts-morph").ExportDeclaration | import("ts-morph").ObjectLiteralExpression | import("ts-morph").AsExpression | import("ts-morph").ComputedPropertyName | import("ts-morph").PropertyAssignment | import("ts-morph").ShorthandPropertyAssignment | import("ts-morph").PropertyAccessExpression<import("ts-morph").ts.PropertyAccessExpression> | import("ts-morph").NoSubstitutionTemplateLiteral | import("ts-morph").ExpressionStatement | import("ts-morph").TaggedTemplateExpression | import("ts-morph").ExportAssignment | import("ts-morph").ElementAccessExpression<import("ts-morph").ts.ElementAccessExpression> | import("ts-morph").TemplateExpression | import("ts-morph").ImportClause | import("ts-morph").ImportSpecifier | import("ts-morph").ImportDeclaration | import("ts-morph").NamedImports | import("ts-morph").VariableStatement | import("ts-morph").VariableDeclarationList | import("ts-morph").Node<import("ts-morph").ts.PlusToken> | import("ts-morph").Node<import("ts-morph").ts.EndOfFileToken> | import("ts-morph").Node<import("ts-morph").ts.ExportKeyword> | import("ts-morph").Node<import("ts-morph").ts.KeywordTypeNode<import("ts-morph").ts.SyntaxKind.AnyKeyword>> | import("ts-morph").ModuleDeclaration | import("ts-morph").ModuleBlock | import("ts-morph").Block | import("ts-morph").ParameterDeclaration | import("ts-morph").Node<import("ts-morph").ts.EqualsGreaterThanToken> | import("ts-morph").ArrowFunction | import("ts-morph").TemplateHead | import("ts-morph").TemplateMiddle | import("ts-morph").TemplateSpan | import("ts-morph").TemplateTail | import("ts-morph").PrefixUnaryExpression;
|
|
18
|
-
data: {
|
|
19
|
-
readonly table: "sys_ux_app_config";
|
|
20
|
-
readonly $id: string;
|
|
21
|
-
readonly data: {
|
|
22
|
-
readonly name: string;
|
|
23
|
-
readonly active: boolean;
|
|
24
|
-
readonly base_url_path: string;
|
|
25
|
-
readonly landing_path: string;
|
|
26
|
-
readonly description: string;
|
|
27
|
-
};
|
|
28
|
-
} | {
|
|
29
|
-
readonly table: "sys_ux_page_registry";
|
|
30
|
-
readonly $id: string;
|
|
31
|
-
readonly data: {
|
|
32
|
-
readonly title: string;
|
|
33
|
-
readonly active: boolean;
|
|
34
|
-
readonly admin_panel: any;
|
|
35
|
-
readonly admin_panel_table: "sys_ux_app_config";
|
|
36
|
-
readonly parent_app: "c86a62e2c7022010099a308dc7c26022";
|
|
37
|
-
readonly path: string;
|
|
38
|
-
readonly root_macroponent: "c276387cc331101080d6d3658940ddd2";
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}[]>;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export default _default;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const experience_1 = require("@servicenow/sdk-core/runtime/experience");
|
|
4
|
-
const db_1 = require("@servicenow/sdk-core/runtime/db");
|
|
5
|
-
const sdk_build_core_1 = require("@servicenow/sdk-build-core");
|
|
6
|
-
const constants_1 = require("./constants");
|
|
7
|
-
exports.default = (0, sdk_build_core_1.Plugin)({
|
|
8
|
-
name: 'Experience',
|
|
9
|
-
ownedTables: {
|
|
10
|
-
//TODO:: Uncomment below config once we start supporting Experience plugin.
|
|
11
|
-
//sys_ux_app_config: { diagnosticLevel: Diagnostic.Level.Warn },
|
|
12
|
-
},
|
|
13
|
-
extractors: {
|
|
14
|
-
entity: {
|
|
15
|
-
fluent: {
|
|
16
|
-
CallExpression: (node, context) => (0, sdk_build_core_1.extractCallExpression)(experience_1.Experience, 'experience', node, context, (experience) => context.registerExplicitId('sys_ux_app_config', experience.$id)),
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
composers: {
|
|
21
|
-
entity: {
|
|
22
|
-
experience(entity, context) {
|
|
23
|
-
const node = entity.getNode();
|
|
24
|
-
const data = entity.getValue();
|
|
25
|
-
const guid = entity.getGuid();
|
|
26
|
-
const recordData = experience_1.ExperienceSchema.parse(data);
|
|
27
|
-
const appConfig = (0, db_1.Record)({
|
|
28
|
-
table: 'sys_ux_app_config',
|
|
29
|
-
$id: guid,
|
|
30
|
-
data: {
|
|
31
|
-
name: recordData.name,
|
|
32
|
-
active: recordData.active,
|
|
33
|
-
base_url_path: recordData.baseUrlPath,
|
|
34
|
-
landing_path: recordData.landingPath,
|
|
35
|
-
description: recordData.description,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
const pageRegistry = (0, db_1.Record)({
|
|
39
|
-
table: 'sys_ux_page_registry',
|
|
40
|
-
$id: context.registerExplicitId('sys_ux_page_registry', `${guid}_registry`),
|
|
41
|
-
data: {
|
|
42
|
-
title: recordData.name,
|
|
43
|
-
active: recordData.active,
|
|
44
|
-
admin_panel: appConfig.$id,
|
|
45
|
-
admin_panel_table: 'sys_ux_app_config',
|
|
46
|
-
parent_app: constants_1.PARENT_APP_SHELL_ID,
|
|
47
|
-
path: recordData.baseUrlPath,
|
|
48
|
-
root_macroponent: constants_1.WORKSPACE_APP_SHELL_ID,
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
return Promise.resolve([appConfig, pageRegistry].map((r) => ({
|
|
52
|
-
kind: 'record',
|
|
53
|
-
guid: r.$id,
|
|
54
|
-
node,
|
|
55
|
-
data: r,
|
|
56
|
-
})));
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=ExperiencePlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExperiencePlugin.js","sourceRoot":"","sources":["../../src/uxf/ExperiencePlugin.ts"],"names":[],"mappings":";;AAAA,wEAAsF;AACtF,wDAAwD;AACxD,+DAA0E;AAC1E,2CAAyE;AAEzE,kBAAe,IAAA,uBAAM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C,IAAI;wBACtB,MAAM,EAAE,UAAU,CAAC,MAAM;wBACzB,WAAW,EAAE,SAAS,CAAC,GAAU;wBACjC,iBAAiB,EAAE,mBAAmB;wBACtC,UAAU,EAAE,+BAAmB;wBAC/B,IAAI,EAAE,UAAU,CAAC,WAAW;wBAC5B,gBAAgB,EAAE,kCAAsB;qBAC3C;iBACJ,CAAC,CAAA;gBAEF,OAAO,OAAO,CAAC,OAAO,CAClB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBAClC,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,CAAC,GAAG;oBACX,IAAI;oBACJ,IAAI,EAAE,CAAC;iBACV,CAAC,CAAC,CACN,CAAA;YACL,CAAC;SACJ;KACJ;CACJ,CAAC,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Routes } from '@servicenow/sdk-core/runtime/experience';
|
|
2
|
-
import { Record } from '@servicenow/sdk-core/runtime/db';
|
|
3
|
-
import { Diagnostic } from '@servicenow/sdk-project';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
readonly name: "Routes";
|
|
6
|
-
readonly ownedTables: {
|
|
7
|
-
readonly sys_ux_app_route: {
|
|
8
|
-
readonly diagnosticLevel: Diagnostic.Level.Warn;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
readonly extractors: {
|
|
12
|
-
readonly entity: {
|
|
13
|
-
readonly fluent: {
|
|
14
|
-
readonly CallExpression: (node: import("ts-morph").CallExpression<import("@servicenow/sdk-project").tsc.CallExpression>, context: import("@servicenow/sdk-build-core").Context) => import("@servicenow/sdk-build-core").ExtractionResult<import("@servicenow/sdk-build-core").EntityData<Routes>>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
readonly composers: {
|
|
19
|
-
readonly entity: {
|
|
20
|
-
readonly routes: (entity: import("@servicenow/sdk-build-core").EntityData<globalThis.Record<string, unknown>>, context: import("@servicenow/sdk-build-core").Context) => Promise<{
|
|
21
|
-
kind: string;
|
|
22
|
-
guid: string;
|
|
23
|
-
node: import("ts-morph").CallExpression<import("@servicenow/sdk-project").tsc.CallExpression> | import("ts-morph").StringLiteral | import("ts-morph").SourceFile | import("ts-morph").TypeAliasDeclaration | import("ts-morph").TypeReferenceNode | import("ts-morph").TypeLiteralNode | import("ts-morph").PropertySignature | import("ts-morph").TupleTypeNode | import("ts-morph").FunctionExpression | import("ts-morph").FunctionDeclaration | import("ts-morph").ArrayLiteralExpression | import("ts-morph").NumericLiteral | import("ts-morph").TrueLiteral | import("ts-morph").FalseLiteral | import("ts-morph").Identifier | import("ts-morph").VariableDeclaration | import("ts-morph").ClassDeclaration | import("ts-morph").ExportDeclaration | import("ts-morph").ObjectLiteralExpression | import("ts-morph").AsExpression | import("ts-morph").ComputedPropertyName | import("ts-morph").PropertyAssignment | import("ts-morph").ShorthandPropertyAssignment | import("ts-morph").PropertyAccessExpression<import("@servicenow/sdk-project").tsc.PropertyAccessExpression> | import("ts-morph").NoSubstitutionTemplateLiteral | import("ts-morph").ExpressionStatement | import("ts-morph").TaggedTemplateExpression | import("ts-morph").ExportAssignment | import("ts-morph").ElementAccessExpression<import("@servicenow/sdk-project").tsc.ElementAccessExpression> | import("ts-morph").TemplateExpression | import("ts-morph").ImportClause | import("ts-morph").ImportSpecifier | import("ts-morph").ImportDeclaration | import("ts-morph").NamedImports | import("ts-morph").VariableStatement | import("ts-morph").VariableDeclarationList | import("ts-morph").Node<import("@servicenow/sdk-project").tsc.PlusToken> | import("ts-morph").Node<import("@servicenow/sdk-project").tsc.EndOfFileToken> | import("ts-morph").Node<import("@servicenow/sdk-project").tsc.ExportKeyword> | import("ts-morph").Node<import("@servicenow/sdk-project").tsc.KeywordTypeNode<import("@servicenow/sdk-project").tsc.SyntaxKind.AnyKeyword>> | import("ts-morph").ModuleDeclaration | import("ts-morph").ModuleBlock | import("ts-morph").Block | import("ts-morph").ParameterDeclaration | import("ts-morph").Node<import("@servicenow/sdk-project").tsc.EqualsGreaterThanToken> | import("ts-morph").ArrowFunction | import("ts-morph").TemplateHead | import("ts-morph").TemplateMiddle | import("ts-morph").TemplateSpan | import("ts-morph").TemplateTail | import("ts-morph").PrefixUnaryExpression;
|
|
24
|
-
data: Record;
|
|
25
|
-
}[]>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export default _default;
|
package/dist/uxf/RoutesPlugin.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const experience_1 = require("@servicenow/sdk-core/runtime/experience");
|
|
4
|
-
const db_1 = require("@servicenow/sdk-core/runtime/db");
|
|
5
|
-
const sdk_build_core_1 = require("@servicenow/sdk-build-core");
|
|
6
|
-
const UxfFormulaParser_1 = require("./UxfFormulaParser");
|
|
7
|
-
const tectonicIdGenerator_1 = require("./tectonicIdGenerator");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const sdk_project_1 = require("@servicenow/sdk-project");
|
|
10
|
-
const PAGE_TEMPLATE_SYS_ID = '19be392623033300f4b4c50947bf65ba';
|
|
11
|
-
function getRouteParts(route) {
|
|
12
|
-
const chunks = route.split('/').filter((chunk) => chunk && chunk.length > 0);
|
|
13
|
-
if (chunks.length === 0) {
|
|
14
|
-
throw new Error('Invalid route - routes may not be empty');
|
|
15
|
-
}
|
|
16
|
-
const parts = {
|
|
17
|
-
pathname: chunks[0] || '',
|
|
18
|
-
parameters: {
|
|
19
|
-
required: [],
|
|
20
|
-
optional: [],
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
chunks.forEach((part) => {
|
|
24
|
-
if (part.startsWith(':')) {
|
|
25
|
-
if (part.endsWith('?')) {
|
|
26
|
-
parts.parameters.optional.push(part.slice(1, -1));
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
parts.parameters.required.push(part.slice(1));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
return parts;
|
|
34
|
-
}
|
|
35
|
-
const HARDCODED_LAYOUT = {
|
|
36
|
-
default: {
|
|
37
|
-
children: null,
|
|
38
|
-
items: [{ element_id: 'x', styles: {} }],
|
|
39
|
-
root: null,
|
|
40
|
-
rules: null,
|
|
41
|
-
styles: { 'flex-direction': 'column' },
|
|
42
|
-
templateId: '5832fd4d53c31010e6bcddeeff7b12db',
|
|
43
|
-
type: 'flex',
|
|
44
|
-
},
|
|
45
|
-
version: '3.0.0',
|
|
46
|
-
};
|
|
47
|
-
const createComposition = (component) => {
|
|
48
|
-
const { tagName, properties = {} } = component;
|
|
49
|
-
const componentId = (0, tectonicIdGenerator_1.idGenerator)(tagName);
|
|
50
|
-
const UxfFormulaParser = new UxfFormulaParser_1.parser();
|
|
51
|
-
const propertyValues = Object.keys(properties).reduce((newObj, key) => {
|
|
52
|
-
const parseResult = UxfFormulaParser.parse(properties[key]);
|
|
53
|
-
if (parseResult.errors.length) {
|
|
54
|
-
throw new Error('Failed to parse formula.');
|
|
55
|
-
}
|
|
56
|
-
newObj[key] = (0, UxfFormulaParser_1.cleanUxValue)(parseResult.result.uxValue);
|
|
57
|
-
return newObj;
|
|
58
|
-
}, {});
|
|
59
|
-
return [
|
|
60
|
-
{
|
|
61
|
-
definition: { id: componentId, type: 'MACROPONENT' },
|
|
62
|
-
elementId: 'x',
|
|
63
|
-
elementLabel: tagName,
|
|
64
|
-
eventMappings: [],
|
|
65
|
-
isHidden: { type: 'JSON_LITERAL', value: null },
|
|
66
|
-
preset: null,
|
|
67
|
-
propertyValues,
|
|
68
|
-
slot: null,
|
|
69
|
-
styles: null,
|
|
70
|
-
},
|
|
71
|
-
];
|
|
72
|
-
};
|
|
73
|
-
exports.default = (0, sdk_build_core_1.Plugin)({
|
|
74
|
-
name: 'Routes',
|
|
75
|
-
ownedTables: {
|
|
76
|
-
sys_ux_app_route: { diagnosticLevel: sdk_project_1.Diagnostic.Level.Warn },
|
|
77
|
-
},
|
|
78
|
-
extractors: {
|
|
79
|
-
entity: {
|
|
80
|
-
fluent: {
|
|
81
|
-
// TODO: This needs to extract separate entities for each route and the experience. Currently it is extracting an
|
|
82
|
-
// anonymous "container" entity which goes against the design of the plugin architecture.
|
|
83
|
-
CallExpression: (node, context) => (0, sdk_build_core_1.extractCallExpression)(experience_1.Routes, 'routes', node, context, () => 'NO_GUID_GENERATED'), // TODO: Generate GUID
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
composers: {
|
|
88
|
-
entity: {
|
|
89
|
-
routes(entity, context) {
|
|
90
|
-
const node = entity.getNode();
|
|
91
|
-
const experience = entity.getPropertyOrThrow('experience').getValue();
|
|
92
|
-
const routes = entity.getPropertyOrThrow('routes').getValue();
|
|
93
|
-
const { $id: appConfigId } = experience_1.ExperienceSchema.parse(experience);
|
|
94
|
-
const appConfigSysId = context.registerExplicitId('sys_ux_app_config', appConfigId);
|
|
95
|
-
const records = [];
|
|
96
|
-
for (const [path, route] of Object.entries(routes)) {
|
|
97
|
-
const { $id: routeId, name, component, active, description } = experience_1.BaseUXRouteSchema.parse(route);
|
|
98
|
-
const routeParts = getRouteParts(path);
|
|
99
|
-
const screenType = (0, db_1.Record)({
|
|
100
|
-
table: 'sys_ux_screen_type',
|
|
101
|
-
$id: context.registerExplicitId('sys_ux_screen_type', `${routeId}_screen_type`),
|
|
102
|
-
data: {
|
|
103
|
-
name,
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
const routeRecord = (0, db_1.Record)({
|
|
107
|
-
table: 'sys_ux_app_route',
|
|
108
|
-
$id: context.registerExplicitId('sys_ux_app_route', routeId),
|
|
109
|
-
data: {
|
|
110
|
-
name,
|
|
111
|
-
app_config: appConfigSysId,
|
|
112
|
-
route_type: routeParts.pathname,
|
|
113
|
-
fields: routeParts.parameters.required.join(','),
|
|
114
|
-
optional_parameters: routeParts.parameters.optional.join(','),
|
|
115
|
-
screen_type: screenType.$id,
|
|
116
|
-
},
|
|
117
|
-
});
|
|
118
|
-
const routeParameters = [...routeParts.parameters.required, ...routeParts.parameters.optional];
|
|
119
|
-
const screenMcp = (0, db_1.Record)({
|
|
120
|
-
table: 'sys_ux_macroponent',
|
|
121
|
-
$id: context.registerExplicitId('sys_ux_macroponent', `${routeId}_page`),
|
|
122
|
-
data: {
|
|
123
|
-
category: 'page',
|
|
124
|
-
composition: JSON.stringify(createComposition(component), null, 2),
|
|
125
|
-
extends: PAGE_TEMPLATE_SYS_ID,
|
|
126
|
-
internal_event_mappings: JSON.stringify({}),
|
|
127
|
-
layout: JSON.stringify(HARDCODED_LAYOUT, null, 2),
|
|
128
|
-
name: `${name} - Page`,
|
|
129
|
-
// Injecting Route parameters as props of the page, so that they can be passed into the
|
|
130
|
-
// component in the composition.
|
|
131
|
-
props: JSON.stringify(routeParameters.map((param) => {
|
|
132
|
-
return {
|
|
133
|
-
defaultValue: '',
|
|
134
|
-
description: null,
|
|
135
|
-
disabled: false,
|
|
136
|
-
fieldType: 'string',
|
|
137
|
-
label: param,
|
|
138
|
-
mandatory: false,
|
|
139
|
-
name: param,
|
|
140
|
-
readOnly: true,
|
|
141
|
-
selectable: false,
|
|
142
|
-
typeMetadata: null,
|
|
143
|
-
valueType: 'string',
|
|
144
|
-
};
|
|
145
|
-
}), null, 2),
|
|
146
|
-
schema_version: '1.0.0',
|
|
147
|
-
},
|
|
148
|
-
});
|
|
149
|
-
// TODO(patrick): Still a lot of hardcoded stuff in here - needs
|
|
150
|
-
// to be represented in the config, at least optionally.
|
|
151
|
-
const screen = (0, db_1.Record)({
|
|
152
|
-
table: 'sys_ux_screen',
|
|
153
|
-
$id: context.registerExplicitId('sys_ux_screen', `${routeId}_screen`),
|
|
154
|
-
data: {
|
|
155
|
-
active: active,
|
|
156
|
-
app_config: appConfigSysId,
|
|
157
|
-
description: description,
|
|
158
|
-
disable_auto_reflow: false,
|
|
159
|
-
event_mappings: JSON.stringify([]),
|
|
160
|
-
macroponent: screenMcp.$id,
|
|
161
|
-
macroponent_config: JSON.stringify({}),
|
|
162
|
-
name: `${name} - Default`,
|
|
163
|
-
order: 0,
|
|
164
|
-
parent_macroponent: constants_1.WORKSPACE_APP_SHELL_ID,
|
|
165
|
-
required_translations: JSON.stringify([]),
|
|
166
|
-
screen_type: screenType.$id,
|
|
167
|
-
},
|
|
168
|
-
});
|
|
169
|
-
records.push(screenType, routeRecord, screenMcp, screen);
|
|
170
|
-
}
|
|
171
|
-
return Promise.resolve(records.map((r) => ({
|
|
172
|
-
kind: 'record',
|
|
173
|
-
guid: r.$id,
|
|
174
|
-
node,
|
|
175
|
-
data: r,
|
|
176
|
-
})));
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
});
|
|
181
|
-
//# sourceMappingURL=RoutesPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RoutesPlugin.js","sourceRoot":"","sources":["../../src/uxf/RoutesPlugin.ts"],"names":[],"mappings":";;AAAA,wEAAqG;AACrG,wDAAwD;AACxD,+DAA0E;AAC1E,yDAA0E;AAC1E,+DAAmD;AACnD,2CAAoD;AACpD,yDAAoD;AAEpD,MAAM,oBAAoB,GAAG,kCAAkC,CAAA;AAW/D,SAAS,aAAa,CAAC,KAAa;IAChC,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAC5E,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IAC9D,CAAC;IAED,MAAM,KAAK,GAAe;QACtB,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE;QACzB,UAAU,EAAE;YACR,QAA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
|
-
"use strict";
|
|
2
|
-
// Copied from sn-uxf-formula-parser-library - https://code.devsnc.com/dev/uxf-formula-parser
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.cleanUxValue = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* https://code.devsnc.com/dev/uxf-formula-parser/blob/ci/master/src/uxf-formula-parser/clean/cleanUxValue.js
|
|
7
|
-
*/
|
|
8
|
-
const cleanUxValue = (uxValue) => {
|
|
9
|
-
switch (uxValue?.type) {
|
|
10
|
-
case 'JSON_LITERAL':
|
|
11
|
-
return { type: uxValue.type, value: uxValue.value };
|
|
12
|
-
case 'CONTEXT_BINDING':
|
|
13
|
-
case 'DATA_OUTPUT_BINDING':
|
|
14
|
-
case 'STATE_BINDING':
|
|
15
|
-
case 'EVENT_PAYLOAD_BINDING':
|
|
16
|
-
case 'ELEMENT_BINDING':
|
|
17
|
-
case 'REPEATER_ITEM_BINDING':
|
|
18
|
-
case 'ENV_BINDING':
|
|
19
|
-
return { type: uxValue.type, binding: uxValue.binding };
|
|
20
|
-
case 'CLIENT_TRANSFORM':
|
|
21
|
-
return {
|
|
22
|
-
type: uxValue.type,
|
|
23
|
-
transform: {
|
|
24
|
-
operator: uxValue.transform.operator,
|
|
25
|
-
operands: (0, exports.cleanUxValue)(uxValue.transform.operands),
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
case 'UNARY':
|
|
29
|
-
return {
|
|
30
|
-
type: uxValue.type,
|
|
31
|
-
operation: {
|
|
32
|
-
...uxValue.operation,
|
|
33
|
-
operand: (0, exports.cleanUxValue)(uxValue.operation.operand),
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
case 'BINARY':
|
|
37
|
-
return {
|
|
38
|
-
type: uxValue.type,
|
|
39
|
-
operation: {
|
|
40
|
-
...uxValue.operation,
|
|
41
|
-
operator: uxValue.operation.operator,
|
|
42
|
-
left: (0, exports.cleanUxValue)(uxValue.operation.left),
|
|
43
|
-
right: (0, exports.cleanUxValue)(uxValue.operation.right),
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
case 'LIST_CONTAINER':
|
|
47
|
-
return {
|
|
48
|
-
type: uxValue.type,
|
|
49
|
-
container: uxValue.container.map((item) => (0, exports.cleanUxValue)(item)),
|
|
50
|
-
};
|
|
51
|
-
case 'MAP_CONTAINER':
|
|
52
|
-
return {
|
|
53
|
-
type: uxValue.type,
|
|
54
|
-
container: Object.entries(uxValue.container).reduce((acc, [key, item]) => ({
|
|
55
|
-
...acc,
|
|
56
|
-
[key]: (0, exports.cleanUxValue)(item),
|
|
57
|
-
}), {}),
|
|
58
|
-
};
|
|
59
|
-
case 'TRANSLATION_LITERAL':
|
|
60
|
-
return { type: uxValue.type, value: uxValue.value };
|
|
61
|
-
}
|
|
62
|
-
return uxValue;
|
|
63
|
-
};
|
|
64
|
-
exports.cleanUxValue = cleanUxValue;
|
|
65
|
-
//# sourceMappingURL=cleanUxValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cleanUxValue.js","sourceRoot":"","sources":["../../../src/uxf/UxfFormulaParser/cleanUxValue.ts"],"names":[],"mappings":";AAAA,6FAA6F;;;AAE7F;;GAEG;AAEI,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,EAAE;IACpC,QAAQ,OAAO,EAAE,IAAI,EAAE,CAAC;QACpB,KAAK,cAAc;YACf,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAA;QAEvD,KAAK,iBAAiB,CAAC;QACvB,KAAK,qBAAqB,CAAC;QAC3B,KAAK,eAAe,CAAC;QACrB,KAAK,uBAAuB,CAAC;QAC7B,KAAK,iBAAiB,CAAC;QACvB,KAAK,uBAAuB,CAAC;QAC7B,KAAK,aAAa;YACd,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EA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