@tenonhq/dovetail-servicenow 0.0.58 → 0.0.59
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/README.md +3 -1
- package/dist/mcp/registry.js +2 -2
- package/dist/table/buildTableSave.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -670,7 +670,9 @@ graph + the physical table + seeded ACLs. Before the save it switches the form
|
|
|
670
670
|
session's **current application** to the target scope (the new table's scope is
|
|
671
671
|
governed by the session app, not a form field), so the table, columns, ACLs, and
|
|
672
672
|
module all land in `--scope`. Friendly column types are mapped to ServiceNow
|
|
673
|
-
internal types (`string` → `string_full_utf8`, Studio's real String type
|
|
673
|
+
internal types (`string` → `string_full_utf8`, Studio's real String type; `phone` →
|
|
674
|
+
`phone_number_e164`, the E.164 Phone Number type). Any ServiceNow internal type on the
|
|
675
|
+
allow-list in `buildTableSave.ts` also passes through as-is.
|
|
674
676
|
|
|
675
677
|
`--dry-run` returns the plan + the column XML + the projected graph with no session
|
|
676
678
|
and no writes. **Validated live 2026-06-13** (tenonworkstudio): a 6-column create
|
package/dist/mcp/registry.js
CHANGED
|
@@ -449,7 +449,7 @@ function buildDescriptors(deps = {}) {
|
|
|
449
449
|
"(POST /sys_db_object.do) so the real 36-record graph + the physical table + seeded ACLs " +
|
|
450
450
|
"are created. name (x_scope_*), label, scope, and columns[] are required; extendsTable " +
|
|
451
451
|
"defaults to sys_metadata; friendly column types are mapped to internal types " +
|
|
452
|
-
"(string -> string_full_utf8). A reference column gets sys_dictionary.attributes " +
|
|
452
|
+
"(string -> string_full_utf8, phone -> phone_number_e164). A reference column gets sys_dictionary.attributes " +
|
|
453
453
|
"readonly_clickthrough=true by default (team rule; column.readonly_clickthrough:false opts " +
|
|
454
454
|
"out); column.attributes ('k=v,k2=v2' or a map) adds more. After a live save every column " +
|
|
455
455
|
"with attributes is READ BACK and merge-patched once into updateSetSysId if they did not land " +
|
|
@@ -489,7 +489,7 @@ function buildDescriptors(deps = {}) {
|
|
|
489
489
|
"failed, not created). table is the table name or its sys_db_object sys_id; column is " +
|
|
490
490
|
"{ label, type, name?, max_length?, reference?, mandatory?, default?, dependent_on_field?, " +
|
|
491
491
|
"attributes?, readonly_clickthrough? } with " +
|
|
492
|
-
"friendly types mapped to internal types (string -> string_full_utf8) and reference = the target " +
|
|
492
|
+
"friendly types mapped to internal types (string -> string_full_utf8, phone -> phone_number_e164) and reference = the target " +
|
|
493
493
|
"table NAME; element is derived from label unless column.name is given. dependent_on_field names " +
|
|
494
494
|
"the sibling column a document_id column resolves against (its table_name column) — it must " +
|
|
495
495
|
"already exist on the table, is verified on the read-back, and is refused when absent. " +
|
|
@@ -37,7 +37,10 @@ exports.TYPE_MAP = {
|
|
|
37
37
|
url: "url",
|
|
38
38
|
email: "email",
|
|
39
39
|
html: "html",
|
|
40
|
-
journal: "journal"
|
|
40
|
+
journal: "journal",
|
|
41
|
+
// Phone Number (E.164): the platform type Studio offers as "Phone Number (E164)".
|
|
42
|
+
// Stores the E.164 string and formats it per territory in forms and lists.
|
|
43
|
+
phone: "phone_number_e164"
|
|
41
44
|
};
|
|
42
45
|
/** Internal types that are valid as-is (a caller may pass the SN type directly). */
|
|
43
46
|
var KNOWN_INTERNAL = {
|
|
@@ -46,7 +49,7 @@ var KNOWN_INTERNAL = {
|
|
|
46
49
|
reference: true, choice: true, translated_text: true, html: true, url: true,
|
|
47
50
|
email: true, journal: true, journal_input: true, currency: true, price: true,
|
|
48
51
|
percent_complete: true, sys_class_name: true, document_id: true, field_name: true,
|
|
49
|
-
table_name: true, json: true, script: true,
|
|
52
|
+
table_name: true, json: true, script: true, phone_number_e164: true,
|
|
50
53
|
// A condition-builder column (pair it with dependent_on_field = its table_name column),
|
|
51
54
|
// and the two domain-separation columns a domain-aware table carries (sys_domain /
|
|
52
55
|
// sys_domain_path).
|