From 427799f9f5659f6c10a89069fcd8bb03a4517c25 Mon Sep 17 00:00:00 2001 From: divolgin Date: Fri, 3 Jan 2025 10:45:06 -0800 Subject: [PATCH] Allow specifying dev mode when creating customers --- src/customers.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/customers.ts b/src/customers.ts index 17afec1..9d79675 100644 --- a/src/customers.ts +++ b/src/customers.ts @@ -27,7 +27,7 @@ export class KubernetesDistribution { isAirgap: boolean; } -export async function createCustomer(vendorPortalApi: VendorPortalApi, appSlug: string, name: string, email: string, licenseType: string, channelSlug: string, expiresIn: number, entitlementValues?: entitlementValue[], isKotsInstallEnabled?: boolean): Promise { +export async function createCustomer(vendorPortalApi: VendorPortalApi, appSlug: string, name: string, email: string, licenseType: string, channelSlug: string, expiresIn: number, entitlementValues?: entitlementValue[], isKotsInstallEnabled?: boolean, isDevModeEnabled?: boolean): Promise { try { const app = await getApplicationDetails(vendorPortalApi, appSlug); @@ -59,6 +59,9 @@ export async function createCustomer(vendorPortalApi: VendorPortalApi, appSlug: if (entitlementValues) { createCustomerReqBody["entitlementValues"] = entitlementValues; } + if (isDevModeEnabled !== undefined) { + createCustomerReqBody["is_dev_mode_enabled"] = isDevModeEnabled; + } const createCustomerRes = await http.post(createCustomerUri, JSON.stringify(createCustomerReqBody)); if (createCustomerRes.message.statusCode != 201) {