@databutton/firebase-types 1.40.11 → 1.40.13

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.
@@ -68,21 +68,26 @@ export interface Profile {
68
68
  migratedFromProfileRef?: string;
69
69
  segments: string[];
70
70
  enabledFeatures: string[];
71
- plan?: PayPerPrivateAppPlan | TeamPlan;
71
+ plan?: Plan;
72
72
  }
73
+ export type Plan = TeamPlan | PayAsYouGoPlan | FreePlan;
73
74
  interface PlanBase {
74
75
  lastChangedBy: PerformedBy;
75
76
  }
76
- interface PayPerPrivateAppPlan extends PlanBase {
77
- type: "pay-per-private-app";
78
- quota: {
79
- baseQuota: number;
80
- paidQuota: number;
81
- };
82
- }
83
77
  interface TeamPlan extends PlanBase {
84
78
  type: "team";
85
79
  }
80
+ interface FreePlan extends PlanBase {
81
+ type: "free";
82
+ }
83
+ interface PayAsYouGoPlan extends PlanBase {
84
+ type: "pay-as-you-go";
85
+ appExistenceHourPrice: 0.0274;
86
+ creditsPerBillingPeriod: 20;
87
+ currency: "USD";
88
+ billingPeriodInDays: 30;
89
+ billingPeriodStartDate: Timestamp;
90
+ }
86
91
  export interface FeatureFlagBase {
87
92
  createdBy: PerformedBy;
88
93
  lastChangedBy: PerformedBy;
@@ -804,4 +809,13 @@ export interface WorkspaceConfigVersion {
804
809
  watchdog: string;
805
810
  };
806
811
  }
812
+ export interface UsageRecordBase {
813
+ profileId: string;
814
+ recordedAt: Timestamp;
815
+ }
816
+ export interface AppHourUsageRecord extends UsageRecordBase {
817
+ appCount: number;
818
+ projectIds: string[];
819
+ }
820
+ export type UsageRecord = AppHourUsageRecord;
807
821
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.40.11",
3
+ "version": "1.40.13",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "engines": {