From a406a008190e76e1892e39b9a467ce5606ed370f Mon Sep 17 00:00:00 2001 From: Santese Smith <43831817+santese@users.noreply.github.com> Date: Tue, 7 Mar 2023 09:20:02 -0800 Subject: [PATCH] fix: fix subscription type --- package.json | 2 +- src/lib/microsoft-partnercenter.ts | 2 +- src/lib/types/subscriptions.types.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9f6657d..6af00a4 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "build:check": "tsc --noEmit", "clean": "rimraf coverage dist tmp", "lint": "eslint \"src/**/*.ts\" --fix", - "_postinstall": "husky install", + "postinstall": "husky install", "prepublishOnly": "pinst --disable", "postpublish": "pinst --enable", "qa": "run-s -l lint test clean build:check", diff --git a/src/lib/microsoft-partnercenter.ts b/src/lib/microsoft-partnercenter.ts index 4a12ff1..a94607c 100644 --- a/src/lib/microsoft-partnercenter.ts +++ b/src/lib/microsoft-partnercenter.ts @@ -61,7 +61,7 @@ export class MicrosoftPartnerCenter { customerId: string, subscriptionId: string, usersQuantity: number, - ): Promise { + ): Promise { const subscription = await this.getCustomerSubscriptionById(customerId, subscriptionId) subscription.quantity = usersQuantity const { data } = await this.httpAgent.patch( diff --git a/src/lib/types/subscriptions.types.ts b/src/lib/types/subscriptions.types.ts index e973ca0..c6f5e34 100644 --- a/src/lib/types/subscriptions.types.ts +++ b/src/lib/types/subscriptions.types.ts @@ -78,6 +78,7 @@ export enum Status { Active = 'active', Deleted = 'deleted', Disabled = 'disabled', + Suspended = 'suspended', } export enum SuspensionReason {