@likewatt/models-front 1.31.1 → 1.32.0

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.
@@ -0,0 +1,24 @@
1
+ export type SubscriptionStatus = 'active' | 'past_due' | 'canceled' | 'incomplete' | 'trialing';
2
+ export type BillingCycle = 'monthly' | 'yearly';
3
+ export type PlanTier = 'essential' | 'standard' | 'premium';
4
+ export interface SubscriptionAddons {
5
+ projectsPack?: number;
6
+ extraUsers?: number;
7
+ accModule?: boolean;
8
+ }
9
+ export interface Subscription {
10
+ _id?: string;
11
+ userId?: string;
12
+ stripeCustomerId?: string;
13
+ stripeSubscriptionId?: string;
14
+ status?: SubscriptionStatus;
15
+ plan?: PlanTier;
16
+ billingCycle?: BillingCycle;
17
+ currentPeriodStart?: Date;
18
+ currentPeriodEnd?: Date;
19
+ cancelAtPeriodEnd?: boolean;
20
+ addons?: SubscriptionAddons;
21
+ lastSyncedAt?: Date;
22
+ createdAt?: Date;
23
+ updatedAt?: Date;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -89,5 +89,6 @@ export declare class User {
89
89
  updatedAt: Date;
90
90
  startDate?: Date;
91
91
  endDate?: Date;
92
+ stripeCustomerId?: string;
92
93
  _lastConnected?: string;
93
94
  }
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './core/DefaultRate.types';
3
3
  export * from './core/Folder.type';
4
4
  export * from './core/Invitation.types';
5
5
  export * from './core/License.types';
6
+ export * from './core/Subscription.types';
6
7
  export * from './core/Consent.type';
7
8
  export * from './core/Scenario.type';
8
9
  export * from './core/ScenarioDefaultValue.types';
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ __exportStar(require("./core/DefaultRate.types"), exports);
20
20
  __exportStar(require("./core/Folder.type"), exports);
21
21
  __exportStar(require("./core/Invitation.types"), exports);
22
22
  __exportStar(require("./core/License.types"), exports);
23
+ __exportStar(require("./core/Subscription.types"), exports);
23
24
  __exportStar(require("./core/Consent.type"), exports);
24
25
  __exportStar(require("./core/Scenario.type"), exports);
25
26
  __exportStar(require("./core/ScenarioDefaultValue.types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.31.1",
3
+ "version": "1.32.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",