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) {