From a318d61f83ff3fe912c1f1d09e529785d555ac04 Mon Sep 17 00:00:00 2001 From: Krishna Acondy Date: Sun, 6 Sep 2020 21:27:44 +0100 Subject: [PATCH] feat(create-context): add launch context name --- src/SASViyaApiClient.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 4e4d20a..30a5734 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -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,