@secrecy/trpc-api-types 1.33.0-feat-orgs.15 → 1.33.0-feat-orgs.16

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.cts +153 -13
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -12695,10 +12695,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12695
12695
  _meta: object;
12696
12696
  _ctx_out: {};
12697
12697
  _input_in: {
12698
- planCode: "org_basic_month" | "org_basic_year" | "org_advanced_month" | "org_advanced_year" | "org_pro_month" | "org_pro_year";
12698
+ planCode: "org_basic_month" | "org_advanced_month" | "org_pro_month";
12699
12699
  };
12700
12700
  _input_out: {
12701
- planCode: "org_basic_month" | "org_basic_year" | "org_advanced_month" | "org_advanced_year" | "org_pro_month" | "org_pro_year";
12701
+ planCode: "org_basic_month" | "org_advanced_month" | "org_pro_month";
12702
12702
  };
12703
12703
  _output_in: {
12704
12704
  url: string | null;
@@ -12791,11 +12791,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12791
12791
  description: string | null;
12792
12792
  status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
12793
12793
  metadata: Record<string, string>;
12794
+ created: number;
12794
12795
  billingCycleAnchor: number;
12795
12796
  cancelAt: number | null;
12796
12797
  cancelAtPeriodEnd: boolean;
12797
12798
  canceledAt: number | null;
12798
- created: number;
12799
12799
  daysUntilDue: number | null;
12800
12800
  startDate: number;
12801
12801
  endedAt: number | null;
@@ -12810,11 +12810,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12810
12810
  description: string | null;
12811
12811
  status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
12812
12812
  metadata: Record<string, string>;
12813
+ created: number;
12813
12814
  billingCycleAnchor: number;
12814
12815
  cancelAt: number | null;
12815
12816
  cancelAtPeriodEnd: boolean;
12816
12817
  canceledAt: number | null;
12817
- created: number;
12818
12818
  daysUntilDue: number | null;
12819
12819
  startDate: number;
12820
12820
  endedAt: number | null;
@@ -13256,13 +13256,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13256
13256
  };
13257
13257
  };
13258
13258
  } & {
13259
- price: {
13260
- monthly: number;
13261
- yearly: number;
13262
- };
13259
+ price: number;
13263
13260
  })[];
13264
13261
  _output_out: ({
13265
- codes: ("org_basic_month" | "org_basic_year" | "org_advanced_month" | "org_advanced_year" | "org_pro_month" | "org_pro_year")[];
13262
+ codes: ("org_basic_month" | "org_advanced_month" | "org_pro_month")[];
13266
13263
  id: string;
13267
13264
  quotasId: string;
13268
13265
  stripePricesId: string | null;
@@ -13288,10 +13285,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13288
13285
  };
13289
13286
  };
13290
13287
  } & {
13291
- price: {
13292
- monthly: number;
13293
- yearly: number;
13294
- };
13288
+ price: number;
13295
13289
  })[];
13296
13290
  }, unknown>;
13297
13291
  }>;
@@ -15495,6 +15489,152 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15495
15489
  id: string;
15496
15490
  };
15497
15491
  }, unknown>;
15492
+ createSubscription: _trpc_server.BuildProcedure<"mutation", {
15493
+ _config: _trpc_server.RootConfig<{
15494
+ ctx: {};
15495
+ meta: object;
15496
+ errorShape: {
15497
+ message: string;
15498
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15499
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
15500
+ } | {
15501
+ data: {
15502
+ zodError: zod.typeToFlattenedError<any, string> | null;
15503
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
15504
+ httpStatus: number;
15505
+ path?: string;
15506
+ stack?: string;
15507
+ };
15508
+ message: string;
15509
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15510
+ };
15511
+ transformer: typeof superjson.default;
15512
+ }>;
15513
+ _meta: object;
15514
+ _ctx_out: {
15515
+ session: {
15516
+ app: {
15517
+ id: string;
15518
+ planId: string;
15519
+ fakeUserId: string | undefined;
15520
+ settings: {
15521
+ id: string;
15522
+ devsLimit: bigint | null;
15523
+ usersLimit: bigint | null;
15524
+ perDataSizeLimit: bigint | null;
15525
+ bandwidthLimit: bigint | null;
15526
+ totalStorageSizeLimit: bigint | null;
15527
+ payForUsers: boolean;
15528
+ };
15529
+ };
15530
+ sessionId: string;
15531
+ accountId: string;
15532
+ accountInfosId: string;
15533
+ accountRole: _prisma_client.AccountRole;
15534
+ userId: string;
15535
+ userRole: _prisma_client.UserRole;
15536
+ org: {
15537
+ id: string;
15538
+ name: string;
15539
+ plan: _prisma_client.OrganizationPlanKind;
15540
+ role: _prisma_client.OrganizationRole;
15541
+ };
15542
+ };
15543
+ req: {
15544
+ headers: Headers;
15545
+ };
15546
+ res: {
15547
+ headers: Headers;
15548
+ };
15549
+ locale: Locales;
15550
+ ls: TranslationFunctions;
15551
+ };
15552
+ _input_in: {
15553
+ planName: string;
15554
+ };
15555
+ _input_out: {
15556
+ planName: string;
15557
+ };
15558
+ _output_in: {
15559
+ url: string | null;
15560
+ };
15561
+ _output_out: {
15562
+ url: string | null;
15563
+ };
15564
+ }, unknown>;
15565
+ cancelSubscription: _trpc_server.BuildProcedure<"mutation", {
15566
+ _config: _trpc_server.RootConfig<{
15567
+ ctx: {};
15568
+ meta: object;
15569
+ errorShape: {
15570
+ message: string;
15571
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15572
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
15573
+ } | {
15574
+ data: {
15575
+ zodError: zod.typeToFlattenedError<any, string> | null;
15576
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
15577
+ httpStatus: number;
15578
+ path?: string;
15579
+ stack?: string;
15580
+ };
15581
+ message: string;
15582
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15583
+ };
15584
+ transformer: typeof superjson.default;
15585
+ }>;
15586
+ _meta: object;
15587
+ _ctx_out: {
15588
+ session: {
15589
+ app: {
15590
+ id: string;
15591
+ planId: string;
15592
+ fakeUserId: string | undefined;
15593
+ settings: {
15594
+ id: string;
15595
+ devsLimit: bigint | null;
15596
+ usersLimit: bigint | null;
15597
+ perDataSizeLimit: bigint | null;
15598
+ bandwidthLimit: bigint | null;
15599
+ totalStorageSizeLimit: bigint | null;
15600
+ payForUsers: boolean;
15601
+ };
15602
+ };
15603
+ sessionId: string;
15604
+ accountId: string;
15605
+ accountInfosId: string;
15606
+ accountRole: _prisma_client.AccountRole;
15607
+ userId: string;
15608
+ userRole: _prisma_client.UserRole;
15609
+ org: {
15610
+ id: string;
15611
+ name: string;
15612
+ plan: _prisma_client.OrganizationPlanKind;
15613
+ role: _prisma_client.OrganizationRole;
15614
+ };
15615
+ };
15616
+ req: {
15617
+ headers: Headers;
15618
+ };
15619
+ res: {
15620
+ headers: Headers;
15621
+ };
15622
+ locale: Locales;
15623
+ ls: TranslationFunctions;
15624
+ };
15625
+ _input_in: {
15626
+ waitUntilPeriodEnd: boolean;
15627
+ };
15628
+ _input_out: {
15629
+ waitUntilPeriodEnd: boolean;
15630
+ };
15631
+ _output_in: {
15632
+ isCancelled: boolean;
15633
+ };
15634
+ _output_out: {
15635
+ isCancelled: boolean;
15636
+ };
15637
+ }, unknown>;
15498
15638
  deleteApplication: _trpc_server.BuildProcedure<"mutation", {
15499
15639
  _config: _trpc_server.RootConfig<{
15500
15640
  ctx: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-feat-orgs.15",
3
+ "version": "1.33.0-feat-orgs.16",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"