@servicenow/sdk - v4.7.0
Preparing search index...
@servicenow/sdk/api
Plugin
Interface Plugin
interface
Plugin
{
commit
(
shape
:
Shape
,
target
:
Node
,
context
:
Omit
<
CommitContext
,
"self"
>
,
)
:
Promise
<
CommitResult
>
;
computeDiff
(
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
existing
:
Database
;
incoming
:
Database
;
mergedDatabase
:
Database
;
mode
:
"explicit"
|
"catch-all"
;
visitedRecords
:
Database
;
}
,
)
:
Promise
<
Record
[]
>
;
fileToRecord
(
file
:
File
,
context
:
Omit
<
Context
,
"self"
>
,
)
:
Promise
<
Result
<
Record
>
>
;
getCoalesceStrategy
(
table
:
string
)
:
CoalesceStrategy
|
undefined
;
getCoalesceTables
()
:
string
[]
;
getConfig
()
:
PluginConfig
;
getDescendants
(
parent
:
Record
,
database
:
Database
)
:
Record
[]
;
getEntryPoints
()
:
EntryPoints
;
getName
()
:
string
;
getReferenceColumns
(
table
:
string
)
:
{
[
column
:
string
]:
string
}
;
getRelationships
()
:
SearchableRelationships
;
getTables
(
relationships
?:
Relationships
,
tables
?:
string
[]
)
:
Set
<
string
>
;
getTarget
(
shape
:
Shape
,
context
:
Omit
<
Context
,
"self"
>
,
)
:
Promise
<
Result
<
Node
<
tsc
.
Node
>
>
>
;
getUpdateName
(
record
:
Record
,
context
:
Omit
<
Context
,
"self"
>
,
)
:
Promise
<
Result
<
string
>
>
;
inspect
(
shape
:
Shape
,
context
:
Omit
<
Context
,
"self"
>
)
:
void
;
isComposite
(
table
:
string
)
:
boolean
;
recordsToFiles
(
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
database
:
Database
;
handledGuids
:
Set
<
string
>
;
mode
:
"explicit"
|
"catch-all"
;
}
,
)
:
Promise
<
Result
<
OutputFile
[]
>
>
;
recordsToShapes
(
__namedParameters
:
{
changedOnly
?:
boolean
;
context
:
Omit
<
Context
,
"self"
>
;
creatorOnly
:
boolean
;
database
:
Database
;
existingDatabase
?:
Database
;
handledRecords
:
Database
;
mode
:
"explicit"
|
"catch-all"
;
}
,
)
:
Promise
<
Result
<
Shape
<
unknown
>
[]
>
>
;
recordToFile
(
record
:
Record
,
context
:
Omit
<
RecordContext
,
"self"
>
,
)
:
Promise
<
Result
<
OutputFile
|
OutputFile
[]
>
>
;
recordToShape
(
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
database
:
Database
;
existingDatabase
?:
Database
;
record
:
Record
;
}
,
)
:
Promise
<
Result
<
Shape
<
unknown
>
>
>
;
}
Index
Methods
commit
compute
Diff
file
To
Record
get
Coalesce
Strategy
get
Coalesce
Tables
get
Config
get
Descendants
get
Entry
Points
get
Name
get
Reference
Columns
get
Relationships
get
Tables
get
Target
get
Update
Name
inspect
is
Composite
records
To
Files
records
To
Shapes
record
To
File
record
To
Shape
Methods
commit
commit
(
shape
:
Shape
,
target
:
Node
,
context
:
Omit
<
CommitContext
,
"self"
>
,
)
:
Promise
<
CommitResult
>
Parameters
shape
:
Shape
target
:
Node
context
:
Omit
<
CommitContext
,
"self"
>
Returns
Promise
<
CommitResult
>
compute
Diff
computeDiff
(
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
existing
:
Database
;
incoming
:
Database
;
mergedDatabase
:
Database
;
mode
:
"explicit"
|
"catch-all"
;
visitedRecords
:
Database
;
}
,
)
:
Promise
<
Record
[]
>
Parameters
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
existing
:
Database
;
incoming
:
Database
;
mergedDatabase
:
Database
;
mode
:
"explicit"
|
"catch-all"
;
visitedRecords
:
Database
;
}
Returns
Promise
<
Record
[]
>
file
To
Record
fileToRecord
(
file
:
File
,
context
:
Omit
<
Context
,
"self"
>
,
)
:
Promise
<
Result
<
Record
>
>
Parameters
file
:
File
context
:
Omit
<
Context
,
"self"
>
Returns
Promise
<
Result
<
Record
>
>
get
Coalesce
Strategy
getCoalesceStrategy
(
table
:
string
)
:
CoalesceStrategy
|
undefined
Parameters
table
:
string
Returns
CoalesceStrategy
|
undefined
get
Coalesce
Tables
getCoalesceTables
()
:
string
[]
Returns
string
[]
get
Config
getConfig
()
:
PluginConfig
Returns
PluginConfig
get
Descendants
getDescendants
(
parent
:
Record
,
database
:
Database
)
:
Record
[]
Parameters
parent
:
Record
database
:
Database
Returns
Record
[]
get
Entry
Points
getEntryPoints
()
:
EntryPoints
Returns
EntryPoints
get
Name
getName
()
:
string
Returns
string
get
Reference
Columns
getReferenceColumns
(
table
:
string
)
:
{
[
column
:
string
]:
string
}
Parameters
table
:
string
Returns
{
[
column
:
string
]:
string
}
get
Relationships
getRelationships
()
:
SearchableRelationships
Returns
SearchableRelationships
get
Tables
getTables
(
relationships
?:
Relationships
,
tables
?:
string
[]
)
:
Set
<
string
>
Parameters
Optional
relationships
:
Relationships
Optional
tables
:
string
[]
Returns
Set
<
string
>
get
Target
getTarget
(
shape
:
Shape
,
context
:
Omit
<
Context
,
"self"
>
,
)
:
Promise
<
Result
<
Node
<
tsc
.
Node
>
>
>
Parameters
shape
:
Shape
context
:
Omit
<
Context
,
"self"
>
Returns
Promise
<
Result
<
Node
<
tsc
.
Node
>
>
>
get
Update
Name
getUpdateName
(
record
:
Record
,
context
:
Omit
<
Context
,
"self"
>
,
)
:
Promise
<
Result
<
string
>
>
Parameters
record
:
Record
context
:
Omit
<
Context
,
"self"
>
Returns
Promise
<
Result
<
string
>
>
inspect
inspect
(
shape
:
Shape
,
context
:
Omit
<
Context
,
"self"
>
)
:
void
Parameters
shape
:
Shape
context
:
Omit
<
Context
,
"self"
>
Returns
void
is
Composite
isComposite
(
table
:
string
)
:
boolean
Parameters
table
:
string
Returns
boolean
records
To
Files
recordsToFiles
(
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
database
:
Database
;
handledGuids
:
Set
<
string
>
;
mode
:
"explicit"
|
"catch-all"
;
}
,
)
:
Promise
<
Result
<
OutputFile
[]
>
>
Parameters
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
database
:
Database
;
handledGuids
:
Set
<
string
>
;
mode
:
"explicit"
|
"catch-all"
;
}
Returns
Promise
<
Result
<
OutputFile
[]
>
>
records
To
Shapes
recordsToShapes
(
__namedParameters
:
{
changedOnly
?:
boolean
;
context
:
Omit
<
Context
,
"self"
>
;
creatorOnly
:
boolean
;
database
:
Database
;
existingDatabase
?:
Database
;
handledRecords
:
Database
;
mode
:
"explicit"
|
"catch-all"
;
}
,
)
:
Promise
<
Result
<
Shape
<
unknown
>
[]
>
>
Parameters
__namedParameters
:
{
changedOnly
?:
boolean
;
context
:
Omit
<
Context
,
"self"
>
;
creatorOnly
:
boolean
;
database
:
Database
;
existingDatabase
?:
Database
;
handledRecords
:
Database
;
mode
:
"explicit"
|
"catch-all"
;
}
Returns
Promise
<
Result
<
Shape
<
unknown
>
[]
>
>
record
To
File
recordToFile
(
record
:
Record
,
context
:
Omit
<
RecordContext
,
"self"
>
,
)
:
Promise
<
Result
<
OutputFile
|
OutputFile
[]
>
>
Parameters
record
:
Record
context
:
Omit
<
RecordContext
,
"self"
>
Returns
Promise
<
Result
<
OutputFile
|
OutputFile
[]
>
>
record
To
Shape
recordToShape
(
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
database
:
Database
;
existingDatabase
?:
Database
;
record
:
Record
;
}
,
)
:
Promise
<
Result
<
Shape
<
unknown
>
>
>
Parameters
__namedParameters
:
{
context
:
Omit
<
Context
,
"self"
>
;
database
:
Database
;
existingDatabase
?:
Database
;
record
:
Record
;
}
Returns
Promise
<
Result
<
Shape
<
unknown
>
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
commit
compute
Diff
file
To
Record
get
Coalesce
Strategy
get
Coalesce
Tables
get
Config
get
Descendants
get
Entry
Points
get
Name
get
Reference
Columns
get
Relationships
get
Tables
get
Target
get
Update
Name
inspect
is
Composite
records
To
Files
records
To
Shapes
record
To
File
record
To
Shape
@servicenow/sdk - v4.7.0
Loading...