@servicenow/sdk - v4.4.1
Preparing search index...
@servicenow/sdk/api
ProjectFactory
Class ProjectFactory
Index
Constructors
constructor
Methods
create
Configuration
Project
create
Project
create
Project
From
App
create
Project
From
Directory
get
Configuration
Template
get
Original
Files
get
Partial
Templates
get
Project
Templates
create
Npm
Package
Name
Constructors
constructor
new
ProjectFactory
(
fs
:
FileSystem
,
telemetry
?:
Telemetry
)
:
ProjectFactory
Parameters
fs
:
FileSystem
Optional
telemetry
:
Telemetry
Returns
ProjectFactory
Methods
create
Configuration
Project
createConfigurationProject
(
workingDir
:
string
,
connector
:
IConnector
,
scopeOptions
:
{
scope
:
string
|
undefined
;
scopeId
:
string
|
undefined
}
,
options
:
Partial
<
Pick
<
InitOptions
,
"sdkVersion"
|
"packageName"
>
>
,
)
:
Promise
<
Project
>
Parameters
workingDir
:
string
connector
:
IConnector
scopeOptions
:
{
scope
:
string
|
undefined
;
scopeId
:
string
|
undefined
}
options
:
Partial
<
Pick
<
InitOptions
,
"sdkVersion"
|
"packageName"
>
>
Returns
Promise
<
Project
>
create
Project
createProject
(
workingDir
:
string
,
options
:
InitOptions
)
:
Project
Parameters
workingDir
:
string
options
:
InitOptions
Returns
Project
create
Project
From
App
createProjectFromApp
(
workingDir
:
string
,
scopeId
:
string
,
connector
:
IConnector
,
options
:
Partial
<
Pick
<
InitOptions
,
"sdkVersion"
|
"packageName"
>
>
,
)
:
Promise
<
Project
>
Parameters
workingDir
:
string
scopeId
:
string
connector
:
IConnector
options
:
Partial
<
Pick
<
InitOptions
,
"sdkVersion"
|
"packageName"
>
>
Returns
Promise
<
Project
>
create
Project
From
Directory
createProjectFromDirectory
(
workingDir
:
string
,
metadataDir
:
string
,
options
:
Partial
<
Pick
<
InitOptions
,
"sdkVersion"
|
"packageName"
>
>
,
)
:
Promise
<
Project
>
Parameters
workingDir
:
string
metadataDir
:
string
options
:
Partial
<
Pick
<
InitOptions
,
"sdkVersion"
|
"packageName"
>
>
Returns
Promise
<
Project
>
get
Configuration
Template
getConfigurationTemplate
()
:
(
TemplateInfo
&
{
id
:
keyof
Templates
}
)
[]
Returns (
TemplateInfo
&
{
id
:
keyof
Templates
}
)
[]
get
Original
Files
getOriginalFiles
(
workingDir
:
string
)
:
Record
<
string
,
string
>
Parameters
workingDir
:
string
Returns
Record
<
string
,
string
>
get
Partial
Templates
getPartialTemplates
()
:
(
TemplateInfo
&
{
id
:
keyof
Templates
}
)
[]
Returns (
TemplateInfo
&
{
id
:
keyof
Templates
}
)
[]
get
Project
Templates
getProjectTemplates
()
:
(
TemplateInfo
&
{
id
:
keyof
Templates
}
)
[]
Returns (
TemplateInfo
&
{
id
:
keyof
Templates
}
)
[]
Static
create
Npm
Package
Name
createNpmPackageName
(
appName
:
string
)
:
string
Parameters
appName
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
Configuration
Project
create
Project
create
Project
From
App
create
Project
From
Directory
get
Configuration
Template
get
Original
Files
get
Partial
Templates
get
Project
Templates
create
Npm
Package
Name
@servicenow/sdk - v4.4.1
Loading...