@camunda/camunda-composite-components 0.4.1-rc.1 → 0.4.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.4.1-rc.0",
7
+ "version": "0.4.1-rc.1",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -7,12 +7,12 @@ export const APPS = [
7
7
  ];
8
8
  export const getReadableAppName = (appName) => appName.charAt(0).toUpperCase() + appName.slice(1);
9
9
  export const isTrialExpired = (org) => {
10
- console.log("Has org trial expired?: ", org.organizationToSalesPlan?.trialStateExpired, org);
11
- return org.organizationToSalesPlan?.trialStateExpired || false;
10
+ console.log("Has org trial expired?: ", org.salesPlan?.trialExpired, org);
11
+ return org.salesPlan?.trialExpired || false;
12
12
  };
13
13
  export const getOrgSalesPlan = (org) => {
14
- console.log("Get org sales plan: ", org.organizationToSalesPlan?.salesPlan, org);
15
- return org.organizationToSalesPlan?.salesPlan;
14
+ console.log("Get org sales plan: ", org.salesPlan, org);
15
+ return org.salesPlan?.type;
16
16
  };
17
17
  export const canUpgradePlan = (org) => {
18
18
  const orgSalesPlan = getOrgSalesPlan(org);
@@ -4,6 +4,7 @@ export type Organization = {
4
4
  name: string;
5
5
  salesPlan?: {
6
6
  type: string;
7
+ trialExpired: boolean;
7
8
  };
8
9
  permissions: {
9
10
  cluster: {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.4.1-rc.1",
7
+ "version": "0.4.1-rc.2",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",