Skip to content

Commit dc91262

Browse files
authored
Merge pull request #50 from replicatedhq/divolgin/sc-100946/integration-mode-is-messy-for-the-sdk-developer
Allow specifying dev mode when creating customers
2 parents 30d4e26 + 427799f commit dc91262

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/customers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class KubernetesDistribution {
2727
isAirgap: boolean;
2828
}
2929

30-
export async function createCustomer(vendorPortalApi: VendorPortalApi, appSlug: string, name: string, email: string, licenseType: string, channelSlug: string, expiresIn: number, entitlementValues?: entitlementValue[], isKotsInstallEnabled?: boolean): Promise<Customer> {
30+
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<Customer> {
3131
try {
3232
const app = await getApplicationDetails(vendorPortalApi, appSlug);
3333

@@ -59,6 +59,9 @@ export async function createCustomer(vendorPortalApi: VendorPortalApi, appSlug:
5959
if (entitlementValues) {
6060
createCustomerReqBody["entitlementValues"] = entitlementValues;
6161
}
62+
if (isDevModeEnabled !== undefined) {
63+
createCustomerReqBody["is_dev_mode_enabled"] = isDevModeEnabled;
64+
}
6265

6366
const createCustomerRes = await http.post(createCustomerUri, JSON.stringify(createCustomerReqBody));
6467
if (createCustomerRes.message.statusCode != 201) {

0 commit comments

Comments
 (0)