@secrecy/trpc-api-types 1.43.0-fix-billing-ending.1 → 1.43.0-fix-org-subscription-status.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +18 -11
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -114,7 +114,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
114
114
  hasDatabase: boolean;
115
115
  devsCount: bigint;
116
116
  usersCount: bigint;
117
- } & {
118
117
  totalDataCount: bigint;
119
118
  totalDataSize: bigint;
120
119
  downloadBandwidth: bigint;
@@ -189,12 +188,11 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
189
188
  paidByApp?: boolean | undefined;
190
189
  userIds?: string[] | undefined;
191
190
  };
192
- output: ({
191
+ output: {
193
192
  lastReset: Date;
194
193
  hasDatabase: boolean;
195
194
  devsCount: bigint;
196
195
  usersCount: bigint;
197
- } & {
198
196
  totalDataCount: bigint;
199
197
  totalDataSize: bigint;
200
198
  downloadBandwidth: bigint;
@@ -204,11 +202,12 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
204
202
  sentMailCount: bigint;
205
203
  sentMailDataCount: bigint;
206
204
  sentMailDataSize: bigint;
207
- }) | {
205
+ type: "application";
206
+ } | {
207
+ type: "details";
208
208
  lastReset: Date;
209
- details: ({
209
+ details: {
210
210
  userId: string;
211
- } & {
212
211
  totalDataCount: bigint;
213
212
  totalDataSize: bigint;
214
213
  downloadBandwidth: bigint;
@@ -218,7 +217,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
218
217
  sentMailCount: bigint;
219
218
  sentMailDataCount: bigint;
220
219
  sentMailDataSize: bigint;
221
- })[];
220
+ }[];
222
221
  };
223
222
  meta: any;
224
223
  }>;
@@ -5682,6 +5681,12 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5682
5681
  trialStart: number | null;
5683
5682
  metadata: Record<string, string>;
5684
5683
  } | null;
5684
+ planKind: "free" | "basic" | "advanced" | "pro";
5685
+ billing: {
5686
+ stripeCustomerId: string;
5687
+ isPayer: boolean;
5688
+ payerName: string;
5689
+ } | null;
5685
5690
  };
5686
5691
  meta: any;
5687
5692
  }>;
@@ -5717,7 +5722,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5717
5722
  metrics: {
5718
5723
  lastReset: Date;
5719
5724
  membersCount: bigint;
5720
- } & {
5721
5725
  totalDataCount: bigint;
5722
5726
  totalDataSize: bigint;
5723
5727
  downloadBandwidth: bigint;
@@ -5755,10 +5759,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5755
5759
  paidByApp?: boolean | undefined;
5756
5760
  userIds?: string[] | undefined;
5757
5761
  };
5758
- output: ({
5762
+ output: {
5759
5763
  lastReset: Date;
5760
5764
  membersCount: bigint;
5761
- } & {
5762
5765
  totalDataCount: bigint;
5763
5766
  totalDataSize: bigint;
5764
5767
  downloadBandwidth: bigint;
@@ -5768,7 +5771,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5768
5771
  sentMailCount: bigint;
5769
5772
  sentMailDataCount: bigint;
5770
5773
  sentMailDataSize: bigint;
5771
- }) | {
5774
+ type: "organization";
5775
+ } | {
5776
+ type: "details";
5772
5777
  lastReset: Date;
5773
5778
  details: {
5774
5779
  totalDataCount: bigint;
@@ -5780,6 +5785,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5780
5785
  sentMailCount: bigint;
5781
5786
  sentMailDataCount: bigint;
5782
5787
  sentMailDataSize: bigint;
5788
+ userId?: string | undefined;
5789
+ appId?: string | undefined;
5783
5790
  }[];
5784
5791
  };
5785
5792
  meta: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.43.0-fix-billing-ending.1",
3
+ "version": "1.43.0-fix-org-subscription-status.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"