@secrecy/trpc-api-types 1.33.0-fix-compare-s3-db-dup.1 → 1.33.0-fix-app-context.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 +40 -9
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -559,6 +559,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
559
559
  stripeSubId: string | null;
560
560
  stripeSubPaidUntil: Date | null;
561
561
  billingProfileStripeCustomerId: string | null;
562
+ status: "active" | "inactive" | "pending_for_payment";
562
563
  };
563
564
  meta: any;
564
565
  }>;
@@ -4850,6 +4851,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
4850
4851
  stripeSubId: string | null;
4851
4852
  stripeSubPaidUntil: Date | null;
4852
4853
  billingProfileStripeCustomerId: string | null;
4854
+ status: "active" | "inactive" | "pending_for_payment";
4853
4855
  } & {
4854
4856
  plan: {
4855
4857
  id: string;
@@ -4885,6 +4887,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
4885
4887
  createSubscription: _trpc_server.TRPCMutationProcedure<{
4886
4888
  input: {
4887
4889
  planKind: "free" | "basic" | "advanced" | "pro";
4890
+ orgId?: string | undefined;
4891
+ returnUrl?: string | undefined;
4888
4892
  billingProfileId?: string | undefined;
4889
4893
  };
4890
4894
  output: {
@@ -4895,17 +4899,39 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
4895
4899
  create: _trpc_server.TRPCMutationProcedure<{
4896
4900
  input: {
4897
4901
  name: string;
4902
+ billingProfileId?: string | undefined;
4903
+ planKind?: "free" | "basic" | "advanced" | "pro" | undefined;
4904
+ returnUrl?: string | undefined;
4898
4905
  };
4899
4906
  output: {
4900
- id: string;
4901
- name: string;
4902
- createdAt: Date;
4903
- ownerId: string;
4904
- planId: string;
4905
- quotasId: string;
4906
- stripeSubId: string | null;
4907
- stripeSubPaidUntil: Date | null;
4908
- billingProfileStripeCustomerId: string | null;
4907
+ type: "immediate";
4908
+ organization: {
4909
+ id: string;
4910
+ name: string;
4911
+ createdAt: Date;
4912
+ ownerId: string;
4913
+ planId: string;
4914
+ quotasId: string;
4915
+ stripeSubId: string | null;
4916
+ stripeSubPaidUntil: Date | null;
4917
+ billingProfileStripeCustomerId: string | null;
4918
+ status: "active" | "inactive" | "pending_for_payment";
4919
+ };
4920
+ } | {
4921
+ type: "checkout";
4922
+ url: string;
4923
+ organization: {
4924
+ id: string;
4925
+ name: string;
4926
+ createdAt: Date;
4927
+ ownerId: string;
4928
+ planId: string;
4929
+ quotasId: string;
4930
+ stripeSubId: string | null;
4931
+ stripeSubPaidUntil: Date | null;
4932
+ billingProfileStripeCustomerId: string | null;
4933
+ status: "active" | "inactive" | "pending_for_payment";
4934
+ };
4909
4935
  };
4910
4936
  meta: any;
4911
4937
  }>;
@@ -4923,6 +4949,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
4923
4949
  stripeSubId: string | null;
4924
4950
  stripeSubPaidUntil: Date | null;
4925
4951
  billingProfileStripeCustomerId: string | null;
4952
+ status: "active" | "inactive" | "pending_for_payment";
4926
4953
  };
4927
4954
  meta: any;
4928
4955
  }>;
@@ -4961,6 +4988,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
4961
4988
  stripeSubId: string | null;
4962
4989
  stripeSubPaidUntil: Date | null;
4963
4990
  billingProfileStripeCustomerId: string | null;
4991
+ status: "active" | "inactive" | "pending_for_payment";
4964
4992
  }[];
4965
4993
  meta: any;
4966
4994
  }>;
@@ -5026,6 +5054,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5026
5054
  stripeSubId: string | null;
5027
5055
  stripeSubPaidUntil: Date | null;
5028
5056
  billingProfileStripeCustomerId: string | null;
5057
+ status: "active" | "inactive" | "pending_for_payment";
5029
5058
  };
5030
5059
  meta: any;
5031
5060
  }>;
@@ -5059,6 +5088,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5059
5088
  stripeSubId: string | null;
5060
5089
  stripeSubPaidUntil: Date | null;
5061
5090
  billingProfileStripeCustomerId: string | null;
5091
+ status: "active" | "inactive" | "pending_for_payment";
5062
5092
  };
5063
5093
  meta: any;
5064
5094
  }>;
@@ -5315,6 +5345,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5315
5345
  appUrl: string;
5316
5346
  orgId?: string | undefined;
5317
5347
  appId?: string | undefined;
5348
+ userId?: string | undefined;
5318
5349
  scopes?: {
5319
5350
  email: boolean;
5320
5351
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-fix-compare-s3-db-dup.1",
3
+ "version": "1.33.0-fix-app-context.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"