mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-03 10:40:06 +00:00
feat(create-context): add launch context name
This commit is contained in:
@@ -198,6 +198,7 @@ export class SASViyaApiClient {
|
||||
*/
|
||||
public async createContext(
|
||||
contextName: string,
|
||||
launchContextName: string,
|
||||
sharedAccountId: string,
|
||||
autoExecLines: string,
|
||||
accessToken?: string
|
||||
@@ -206,6 +207,10 @@ export class SASViyaApiClient {
|
||||
throw new Error('Missing context name.')
|
||||
}
|
||||
|
||||
if (!launchContextName) {
|
||||
throw new Error('Missing launch context name.')
|
||||
}
|
||||
|
||||
if (!sharedAccountId) {
|
||||
throw new Error('Missing shared account ID.')
|
||||
}
|
||||
@@ -226,6 +231,9 @@ export class SASViyaApiClient {
|
||||
environment: {
|
||||
autoExecLines: autoExecLines || ''
|
||||
},
|
||||
launchContext: {
|
||||
contextName: launchContextName
|
||||
},
|
||||
authorizeAllAuthenticatedUsers: true,
|
||||
attributes: {
|
||||
reuseServerProcesses: true,
|
||||
|
||||
Reference in New Issue
Block a user