@servicenow/sdk-build-plugins 3.0.3 → 4.0.1
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 +39 -0
- package/dist/atf/step-configs.js +2334 -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 +600 -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 +164 -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 +2384 -0
- package/src/atf/test-plugin.ts +739 -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 +179 -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 +658 -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 -1630
- 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 -2072
- 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,190 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const RestRouteHeaderMap: z.ZodObject<{
|
|
3
|
-
web_service_operation: z.ZodString;
|
|
4
|
-
web_service_header: z.ZodString;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
web_service_header: string;
|
|
7
|
-
web_service_operation: string;
|
|
8
|
-
}, {
|
|
9
|
-
web_service_header: string;
|
|
10
|
-
web_service_operation: string;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const RestRouteQueryMap: z.ZodObject<{
|
|
13
|
-
web_service_operation: z.ZodString;
|
|
14
|
-
web_service_query_parameter: z.ZodString;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
web_service_query_parameter: string;
|
|
17
|
-
web_service_operation: string;
|
|
18
|
-
}, {
|
|
19
|
-
web_service_query_parameter: string;
|
|
20
|
-
web_service_operation: string;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const RouteAttrWithOutIdSchema: z.ZodObject<Omit<{
|
|
23
|
-
$id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
24
|
-
name: z.ZodString;
|
|
25
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
-
example_value: z.ZodDefault<z.ZodString>;
|
|
27
|
-
short_description: z.ZodDefault<z.ZodString>;
|
|
28
|
-
}, "$id">, "strip", z.ZodTypeAny, {
|
|
29
|
-
name: string;
|
|
30
|
-
required: boolean;
|
|
31
|
-
short_description: string;
|
|
32
|
-
example_value: string;
|
|
33
|
-
}, {
|
|
34
|
-
name: string;
|
|
35
|
-
required?: boolean | undefined;
|
|
36
|
-
short_description?: string | undefined;
|
|
37
|
-
example_value?: string | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
export declare const VersionWithOutIdSchema: z.ZodObject<Omit<{
|
|
40
|
-
$id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
41
|
-
version: z.ZodNumber;
|
|
42
|
-
active: z.ZodDefault<z.ZodBoolean>;
|
|
43
|
-
deprecated: z.ZodDefault<z.ZodBoolean>;
|
|
44
|
-
short_description: z.ZodDefault<z.ZodString>;
|
|
45
|
-
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
-
}, "$id">, "strip", z.ZodTypeAny, {
|
|
47
|
-
active: boolean;
|
|
48
|
-
version: number;
|
|
49
|
-
deprecated: boolean;
|
|
50
|
-
is_default: boolean;
|
|
51
|
-
short_description: string;
|
|
52
|
-
}, {
|
|
53
|
-
version: number;
|
|
54
|
-
active?: boolean | undefined;
|
|
55
|
-
deprecated?: boolean | undefined;
|
|
56
|
-
is_default?: boolean | undefined;
|
|
57
|
-
short_description?: string | undefined;
|
|
58
|
-
}>;
|
|
59
|
-
export declare const RestDefinitionTransformer: z.ZodEffects<z.ZodObject<{
|
|
60
|
-
name: z.ZodOptional<z.ZodString>;
|
|
61
|
-
active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
62
|
-
short_description: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
63
|
-
consumes: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
64
|
-
produces: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
65
|
-
service_id: z.ZodOptional<z.ZodString>;
|
|
66
|
-
doc_link: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
67
|
-
enforce_acl: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
68
|
-
sys_policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["", "read", "protected"]>>>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
name?: string | undefined;
|
|
71
|
-
active?: boolean | undefined;
|
|
72
|
-
short_description?: string | undefined;
|
|
73
|
-
consumes?: string | undefined;
|
|
74
|
-
produces?: string | undefined;
|
|
75
|
-
service_id?: string | undefined;
|
|
76
|
-
doc_link?: string | undefined;
|
|
77
|
-
enforce_acl?: string | undefined;
|
|
78
|
-
sys_policy?: "" | "protected" | "read" | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
name?: string | undefined;
|
|
81
|
-
active?: boolean | undefined;
|
|
82
|
-
short_description?: string | undefined;
|
|
83
|
-
consumes?: string | undefined;
|
|
84
|
-
produces?: string | undefined;
|
|
85
|
-
service_id?: string | undefined;
|
|
86
|
-
doc_link?: string | undefined;
|
|
87
|
-
enforce_acl?: string | undefined;
|
|
88
|
-
sys_policy?: "" | "protected" | "read" | undefined;
|
|
89
|
-
}>, {
|
|
90
|
-
policy?: "protected" | "read";
|
|
91
|
-
enforce_acl?: string[];
|
|
92
|
-
name?: string | undefined;
|
|
93
|
-
active?: boolean | undefined;
|
|
94
|
-
short_description?: string | undefined;
|
|
95
|
-
consumes?: string | undefined;
|
|
96
|
-
produces?: string | undefined;
|
|
97
|
-
service_id?: string | undefined;
|
|
98
|
-
doc_link?: string | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
name?: string | undefined;
|
|
101
|
-
active?: boolean | undefined;
|
|
102
|
-
short_description?: string | undefined;
|
|
103
|
-
consumes?: string | undefined;
|
|
104
|
-
produces?: string | undefined;
|
|
105
|
-
service_id?: string | undefined;
|
|
106
|
-
doc_link?: string | undefined;
|
|
107
|
-
enforce_acl?: string | undefined;
|
|
108
|
-
sys_policy?: "" | "protected" | "read" | undefined;
|
|
109
|
-
}>;
|
|
110
|
-
export declare const RestRouteTransformer: z.ZodEffects<z.ZodObject<{
|
|
111
|
-
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
112
|
-
active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
113
|
-
short_description: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
114
|
-
consumes: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
115
|
-
produces: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
116
|
-
request_example: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
117
|
-
operation_script: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
118
|
-
http_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
|
|
119
|
-
relative_path: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
120
|
-
requires_acl_authorization: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
121
|
-
requires_authentication: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
122
|
-
requires_snc_internal_role: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
123
|
-
sys_policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["", "read", "protected"]>>>;
|
|
124
|
-
enforce_acl: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
125
|
-
web_service_version: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
126
|
-
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
name?: string | undefined;
|
|
128
|
-
active?: boolean | undefined;
|
|
129
|
-
short_description?: string | undefined;
|
|
130
|
-
consumes?: string | undefined;
|
|
131
|
-
produces?: string | undefined;
|
|
132
|
-
request_example?: string | undefined;
|
|
133
|
-
operation_script?: string | undefined;
|
|
134
|
-
http_method?: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | undefined;
|
|
135
|
-
relative_path?: string | undefined;
|
|
136
|
-
requires_acl_authorization?: boolean | undefined;
|
|
137
|
-
requires_authentication?: boolean | undefined;
|
|
138
|
-
requires_snc_internal_role?: boolean | undefined;
|
|
139
|
-
sys_policy?: "" | "protected" | "read" | undefined;
|
|
140
|
-
enforce_acl?: string | undefined;
|
|
141
|
-
web_service_version?: string | undefined;
|
|
142
|
-
}, {
|
|
143
|
-
name?: string | undefined;
|
|
144
|
-
active?: boolean | undefined;
|
|
145
|
-
short_description?: string | undefined;
|
|
146
|
-
consumes?: string | undefined;
|
|
147
|
-
produces?: string | undefined;
|
|
148
|
-
request_example?: string | undefined;
|
|
149
|
-
operation_script?: string | undefined;
|
|
150
|
-
http_method?: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | undefined;
|
|
151
|
-
relative_path?: string | undefined;
|
|
152
|
-
requires_acl_authorization?: boolean | undefined;
|
|
153
|
-
requires_authentication?: boolean | undefined;
|
|
154
|
-
requires_snc_internal_role?: boolean | undefined;
|
|
155
|
-
sys_policy?: "" | "protected" | "read" | undefined;
|
|
156
|
-
enforce_acl?: string | undefined;
|
|
157
|
-
web_service_version?: string | undefined;
|
|
158
|
-
}>, {
|
|
159
|
-
policy?: "protected" | "read";
|
|
160
|
-
internalRole?: boolean;
|
|
161
|
-
authentication?: boolean;
|
|
162
|
-
authorization?: boolean;
|
|
163
|
-
path?: string;
|
|
164
|
-
method?: "DELETE" | "GET" | "POST" | "PUT" | "PATCH";
|
|
165
|
-
script?: string;
|
|
166
|
-
enforce_acl?: string[];
|
|
167
|
-
name?: string | undefined;
|
|
168
|
-
active?: boolean | undefined;
|
|
169
|
-
short_description?: string | undefined;
|
|
170
|
-
consumes?: string | undefined;
|
|
171
|
-
produces?: string | undefined;
|
|
172
|
-
request_example?: string | undefined;
|
|
173
|
-
web_service_version?: string | undefined;
|
|
174
|
-
}, {
|
|
175
|
-
name?: string | undefined;
|
|
176
|
-
active?: boolean | undefined;
|
|
177
|
-
short_description?: string | undefined;
|
|
178
|
-
consumes?: string | undefined;
|
|
179
|
-
produces?: string | undefined;
|
|
180
|
-
request_example?: string | undefined;
|
|
181
|
-
operation_script?: string | undefined;
|
|
182
|
-
http_method?: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | undefined;
|
|
183
|
-
relative_path?: string | undefined;
|
|
184
|
-
requires_acl_authorization?: boolean | undefined;
|
|
185
|
-
requires_authentication?: boolean | undefined;
|
|
186
|
-
requires_snc_internal_role?: boolean | undefined;
|
|
187
|
-
sys_policy?: "" | "protected" | "read" | undefined;
|
|
188
|
-
enforce_acl?: string | undefined;
|
|
189
|
-
web_service_version?: string | undefined;
|
|
190
|
-
}>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RestRouteTransformer = exports.RestDefinitionTransformer = exports.VersionWithOutIdSchema = exports.RouteAttrWithOutIdSchema = exports.RestRouteQueryMap = exports.RestRouteHeaderMap = void 0;
|
|
4
|
-
const rest_1 = require("@servicenow/sdk-core/runtime/rest");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
exports.RestRouteHeaderMap = zod_1.z.object({
|
|
7
|
-
web_service_operation: zod_1.z.string(),
|
|
8
|
-
web_service_header: zod_1.z.string(),
|
|
9
|
-
});
|
|
10
|
-
exports.RestRouteQueryMap = zod_1.z.object({
|
|
11
|
-
web_service_operation: zod_1.z.string(),
|
|
12
|
-
web_service_query_parameter: zod_1.z.string(),
|
|
13
|
-
});
|
|
14
|
-
exports.RouteAttrWithOutIdSchema = rest_1.RouteAttributeSchema.omit({ $id: true });
|
|
15
|
-
exports.VersionWithOutIdSchema = rest_1.VersionSchema.omit({ $id: true });
|
|
16
|
-
const RestDefinitionSchema = rest_1.BaseRestApiSchema.omit({ $id: true }).extend({
|
|
17
|
-
enforce_acl: zod_1.z.string().default(''),
|
|
18
|
-
sys_policy: zod_1.z.enum(['', 'read', 'protected']).default(''),
|
|
19
|
-
});
|
|
20
|
-
exports.RestDefinitionTransformer = RestDefinitionSchema.partial().transform((data) => {
|
|
21
|
-
const { sys_policy, enforce_acl, ...rest } = data;
|
|
22
|
-
return {
|
|
23
|
-
...rest,
|
|
24
|
-
...(enforce_acl !== undefined && { enforce_acl: enforce_acl ? enforce_acl.split(',') : [] }),
|
|
25
|
-
...(sys_policy && { policy: sys_policy }),
|
|
26
|
-
};
|
|
27
|
-
});
|
|
28
|
-
const RestRouteSchema = rest_1.BaseRouteSchema.omit({ $id: true }).extend({
|
|
29
|
-
operation_script: zod_1.z.string().default(''),
|
|
30
|
-
http_method: zod_1.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).default('GET'),
|
|
31
|
-
relative_path: zod_1.z.string().default('/'),
|
|
32
|
-
requires_acl_authorization: zod_1.z.boolean().default(true),
|
|
33
|
-
requires_authentication: zod_1.z.boolean().default(true),
|
|
34
|
-
requires_snc_internal_role: zod_1.z.boolean().default(true),
|
|
35
|
-
sys_policy: zod_1.z.enum(['', 'read', 'protected']).default(''),
|
|
36
|
-
enforce_acl: zod_1.z.string().default(''),
|
|
37
|
-
web_service_version: zod_1.z.string().default(''),
|
|
38
|
-
});
|
|
39
|
-
exports.RestRouteTransformer = RestRouteSchema.partial().transform((data) => {
|
|
40
|
-
const { operation_script, http_method, relative_path, requires_acl_authorization, requires_authentication, requires_snc_internal_role, sys_policy, enforce_acl, ...rest } = data;
|
|
41
|
-
return {
|
|
42
|
-
...rest,
|
|
43
|
-
...(enforce_acl !== undefined && { enforce_acl: enforce_acl ? enforce_acl.split(',') : [] }),
|
|
44
|
-
...(operation_script !== undefined && { script: operation_script }),
|
|
45
|
-
...(http_method && { method: http_method }),
|
|
46
|
-
...(relative_path && { path: relative_path }),
|
|
47
|
-
...(requires_acl_authorization !== undefined && { authorization: requires_acl_authorization }),
|
|
48
|
-
...(requires_authentication !== undefined && { authentication: requires_authentication }),
|
|
49
|
-
...(requires_snc_internal_role !== undefined && { internalRole: requires_snc_internal_role }),
|
|
50
|
-
...(sys_policy && { policy: sys_policy }),
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=RestSchemaUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RestSchemaUtils.js","sourceRoot":"","sources":["../../src/scriptedRESTAPI/RestSchemaUtils.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ts } from '@servicenow/sdk-project';
|
|
2
|
-
import { Context, Document, Result, DocumentPointer, EntityData } from '@servicenow/sdk-build-core';
|
|
3
|
-
import { SupportedNode } from '@servicenow/sdk-project';
|
|
4
|
-
export declare const restTables: string[];
|
|
5
|
-
export declare function getRouteAttrMapResult(document: Document, restDocMap: any): Result<DocumentPointer | undefined>;
|
|
6
|
-
/** utility function to get the args node of a call expression node*/
|
|
7
|
-
export declare const getArgs: (document: Document) => ts.ObjectLiteralExpression;
|
|
8
|
-
/**
|
|
9
|
-
* keeps track of all those params records associated with a rest node,
|
|
10
|
-
* so if some m2m records removes all its associations then we would create record call.
|
|
11
|
-
*/
|
|
12
|
-
export declare const potentialRecordCallRouteParams: Set<string>;
|
|
13
|
-
/**
|
|
14
|
-
* There are some of the completely unassociated param records generated when an
|
|
15
|
-
* m2m record swtiches from one rest to another rest entity. we track them to generate records calls
|
|
16
|
-
* if required.
|
|
17
|
-
*/
|
|
18
|
-
export declare const completelyUnassociatedParamIds: Set<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Ids of records which are going to be a record call so need not handle them in rest generator.
|
|
21
|
-
*/
|
|
22
|
-
export declare const unHandledIds: string[];
|
|
23
|
-
/** Based on the result it adds the document id to unHandledIds which is later on used by generator
|
|
24
|
-
* to avoid generating nodes for them since it's expected to be handled by record plugin.
|
|
25
|
-
*/
|
|
26
|
-
export declare function handleAndReturnResult(result: Result<DocumentPointer | undefined>, document: Document): Result<DocumentPointer | undefined>;
|
|
27
|
-
/**
|
|
28
|
-
* Performs the following operations:
|
|
29
|
-
* 1. If the documents associated rest node is the same as the referenced rest in data, let the rest node handle it.
|
|
30
|
-
* 2. If it refernces a different rest node, then clean up the current rest node and its keys. If the referenced rest node
|
|
31
|
-
* has a mapping record to consume this parameter or header let it handle, else make it a record call.
|
|
32
|
-
*/
|
|
33
|
-
export declare function getRouteAttrWithRestNodeResult(document: Document, context: Context, restDocMap: any): Result<DocumentPointer | undefined>;
|
|
34
|
-
/**
|
|
35
|
-
* checks to see if the document is consumed by any rest api. If consumed then
|
|
36
|
-
* remove that record call expression and its associated keys and let rest handle
|
|
37
|
-
* it, else update the record call.
|
|
38
|
-
*/
|
|
39
|
-
export declare function getRouteAttrWithRecordNodeResult(document: Document, context: Context, restDocMap: any): Result<DocumentPointer | undefined>;
|
|
40
|
-
/**
|
|
41
|
-
* Performs the following operations:
|
|
42
|
-
* 1. If the mapping record references a differnt route or query param not part of the app
|
|
43
|
-
* then clean its presence from current rest node and create a record call for it.
|
|
44
|
-
* 2. If if references a different route and query param in same app, the clean current rest
|
|
45
|
-
* and update the new rest node.
|
|
46
|
-
* 3. If references same rest then update it.
|
|
47
|
-
*
|
|
48
|
-
* In addition to that, it also tracks the params unassociated to create record call if needed.
|
|
49
|
-
*/
|
|
50
|
-
export declare function getRouteAttrMapWithRestNodeResult(document: Document, context: Context, restDocMap: any): Result<DocumentPointer | undefined>;
|
|
51
|
-
/**
|
|
52
|
-
* Performs following operation
|
|
53
|
-
* 1. If given mapping record references some routes or param not in app update the record call.
|
|
54
|
-
* 2. If references some existing route and param, then remove the current record call and its keys.
|
|
55
|
-
* Update the new rest node.
|
|
56
|
-
*/
|
|
57
|
-
export declare function getRouteAttrMapWithRecordNodeResult(document: Document, context: Context, restDocMap: any): Result<DocumentPointer | undefined>;
|
|
58
|
-
/**
|
|
59
|
-
* If the incoming parameter or header record is consumed by rest associated it to the rest node, else make it a record call.
|
|
60
|
-
*/
|
|
61
|
-
export declare function getRouteAttrResult(document: Document, restDocMap: any): Result<DocumentPointer | undefined>;
|
|
62
|
-
export declare function getRestDocumentMap(context: Context): any;
|
|
63
|
-
export declare function isParamAssociated(document: Document, eleAttrName: string, context: Context, paramSysId: string): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Helper function that creates a record call for the document passed.
|
|
66
|
-
*/
|
|
67
|
-
export declare function createRecordCall(paramSysId: string, context: Context): void;
|
|
68
|
-
export declare function removeNodeAndCleanUpExport(node: SupportedNode): void;
|
|
69
|
-
export declare function extractNestedIds(entity: EntityData): string[];
|