@secrecy/trpc-api-types 1.33.0-feat-custom-tech-plan.4 → 1.33.0-feat-custom-tech-plan.6

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 +29 -115
  2. package/package.json +3 -3
package/dist/index.d.cts CHANGED
@@ -752,7 +752,19 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
752
752
  }>;
753
753
  _meta: object;
754
754
  _ctx_out: {
755
- session: SecrecySessionWithApp;
755
+ session: {
756
+ appId: string;
757
+ appPlanId: string;
758
+ appFakeUserId: string | undefined;
759
+ sessionId: string;
760
+ accountId: string;
761
+ accountInfosId: string;
762
+ accountRole: _prisma_client.AccountRole;
763
+ userId: string;
764
+ userRole: _prisma_client.UserRole;
765
+ userPlan: _prisma_client.PlanKind;
766
+ isCare?: boolean;
767
+ };
756
768
  req: {
757
769
  headers: Headers;
758
770
  body: ReadableStream<Uint8Array> | null;
@@ -763,12 +775,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
763
775
  locale: Locales;
764
776
  ls: TranslationFunctions;
765
777
  };
766
- _input_in: {} | undefined;
767
- _input_out: {} | undefined;
778
+ _input_in: {
779
+ appId?: string | undefined;
780
+ };
781
+ _input_out: {
782
+ appId?: string | undefined;
783
+ };
768
784
  _output_in: ({
769
785
  id: string;
770
786
  name: string;
771
787
  isCustomPlan?: boolean | undefined;
788
+ canHaveDatabase?: boolean | undefined;
772
789
  } & {
773
790
  descriptor: {
774
791
  devsBase: bigint | null;
@@ -794,11 +811,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
794
811
  };
795
812
  } & {
796
813
  price: number;
814
+ } & {
815
+ isCurrent: boolean;
797
816
  })[];
798
817
  _output_out: ({
799
818
  id: string;
800
819
  name: string;
801
820
  isCustomPlan: boolean;
821
+ canHaveDatabase: boolean;
802
822
  } & {
803
823
  descriptor: {
804
824
  devsBase: bigint | null;
@@ -824,6 +844,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
824
844
  };
825
845
  } & {
826
846
  price: number;
847
+ } & {
848
+ isCurrent: boolean;
827
849
  })[];
828
850
  }, unknown>;
829
851
  settings: _trpc_server.BuildProcedure<"query", {
@@ -16114,6 +16136,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16114
16136
  id: string;
16115
16137
  name: string;
16116
16138
  isCustomPlan?: boolean | undefined;
16139
+ canHaveDatabase?: boolean | undefined;
16117
16140
  } & {
16118
16141
  descriptor: {
16119
16142
  devsBase: bigint | null;
@@ -16158,40 +16181,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16158
16181
  id: string;
16159
16182
  } | null;
16160
16183
  };
16161
- plans: ({
16162
- id: string;
16163
- name: string;
16164
- isCustomPlan?: boolean | undefined;
16165
- } & {
16166
- descriptor: {
16167
- devsBase: bigint | null;
16168
- devsUnit: bigint | null;
16169
- devsPrice: number | null;
16170
- usersBase: bigint | null;
16171
- usersUnit: bigint | null;
16172
- usersPrice: number | null;
16173
- perDataSizeBase: bigint | null;
16174
- perDataSizeUnit: bigint | null;
16175
- perDataSizePrice: number | null;
16176
- bandwidthBase: bigint | null;
16177
- bandwidthUnit: bigint | null;
16178
- bandwidthPrice: number | null;
16179
- totalStorageSizeBase: bigint | null;
16180
- totalStorageSizeUnit: bigint | null;
16181
- totalStorageSizePrice: number | null;
16182
- devsMax: bigint | null;
16183
- usersMax: bigint | null;
16184
- perDataSizeMax: bigint | null;
16185
- bandwidthMax: bigint | null;
16186
- totalStorageSizeMax: bigint | null;
16187
- };
16188
- })[];
16189
16184
  };
16190
16185
  _output_out: {
16191
16186
  plan: {
16192
16187
  id: string;
16193
16188
  name: string;
16194
16189
  isCustomPlan: boolean;
16190
+ canHaveDatabase: boolean;
16195
16191
  } & {
16196
16192
  descriptor: {
16197
16193
  devsBase: bigint | null;
@@ -16236,34 +16232,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16236
16232
  id: string;
16237
16233
  } | null;
16238
16234
  };
16239
- plans: ({
16240
- id: string;
16241
- name: string;
16242
- isCustomPlan: boolean;
16243
- } & {
16244
- descriptor: {
16245
- devsBase: bigint | null;
16246
- devsUnit: bigint | null;
16247
- devsPrice: number | null;
16248
- usersBase: bigint | null;
16249
- usersUnit: bigint | null;
16250
- usersPrice: number | null;
16251
- perDataSizeBase: bigint | null;
16252
- perDataSizeUnit: bigint | null;
16253
- perDataSizePrice: number | null;
16254
- bandwidthBase: bigint | null;
16255
- bandwidthUnit: bigint | null;
16256
- bandwidthPrice: number | null;
16257
- totalStorageSizeBase: bigint | null;
16258
- totalStorageSizeUnit: bigint | null;
16259
- totalStorageSizePrice: number | null;
16260
- devsMax: bigint | null;
16261
- usersMax: bigint | null;
16262
- perDataSizeMax: bigint | null;
16263
- bandwidthMax: bigint | null;
16264
- totalStorageSizeMax: bigint | null;
16265
- };
16266
- })[];
16267
16235
  };
16268
16236
  }, unknown>;
16269
16237
  applications: _trpc_server.BuildProcedure<"query", {
@@ -16322,6 +16290,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16322
16290
  id: string;
16323
16291
  name: string;
16324
16292
  isCustomPlan?: boolean | undefined;
16293
+ canHaveDatabase?: boolean | undefined;
16325
16294
  } & {
16326
16295
  descriptor: {
16327
16296
  devsBase: bigint | null;
@@ -16366,40 +16335,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16366
16335
  id: string;
16367
16336
  } | null;
16368
16337
  };
16369
- plans: ({
16370
- id: string;
16371
- name: string;
16372
- isCustomPlan?: boolean | undefined;
16373
- } & {
16374
- descriptor: {
16375
- devsBase: bigint | null;
16376
- devsUnit: bigint | null;
16377
- devsPrice: number | null;
16378
- usersBase: bigint | null;
16379
- usersUnit: bigint | null;
16380
- usersPrice: number | null;
16381
- perDataSizeBase: bigint | null;
16382
- perDataSizeUnit: bigint | null;
16383
- perDataSizePrice: number | null;
16384
- bandwidthBase: bigint | null;
16385
- bandwidthUnit: bigint | null;
16386
- bandwidthPrice: number | null;
16387
- totalStorageSizeBase: bigint | null;
16388
- totalStorageSizeUnit: bigint | null;
16389
- totalStorageSizePrice: number | null;
16390
- devsMax: bigint | null;
16391
- usersMax: bigint | null;
16392
- perDataSizeMax: bigint | null;
16393
- bandwidthMax: bigint | null;
16394
- totalStorageSizeMax: bigint | null;
16395
- };
16396
- })[];
16397
16338
  }[];
16398
16339
  _output_out: {
16399
16340
  plan: {
16400
16341
  id: string;
16401
16342
  name: string;
16402
16343
  isCustomPlan: boolean;
16344
+ canHaveDatabase: boolean;
16403
16345
  } & {
16404
16346
  descriptor: {
16405
16347
  devsBase: bigint | null;
@@ -16444,34 +16386,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16444
16386
  id: string;
16445
16387
  } | null;
16446
16388
  };
16447
- plans: ({
16448
- id: string;
16449
- name: string;
16450
- isCustomPlan: boolean;
16451
- } & {
16452
- descriptor: {
16453
- devsBase: bigint | null;
16454
- devsUnit: bigint | null;
16455
- devsPrice: number | null;
16456
- usersBase: bigint | null;
16457
- usersUnit: bigint | null;
16458
- usersPrice: number | null;
16459
- perDataSizeBase: bigint | null;
16460
- perDataSizeUnit: bigint | null;
16461
- perDataSizePrice: number | null;
16462
- bandwidthBase: bigint | null;
16463
- bandwidthUnit: bigint | null;
16464
- bandwidthPrice: number | null;
16465
- totalStorageSizeBase: bigint | null;
16466
- totalStorageSizeUnit: bigint | null;
16467
- totalStorageSizePrice: number | null;
16468
- devsMax: bigint | null;
16469
- usersMax: bigint | null;
16470
- perDataSizeMax: bigint | null;
16471
- bandwidthMax: bigint | null;
16472
- totalStorageSizeMax: bigint | null;
16473
- };
16474
- })[];
16475
16389
  }[];
16476
16390
  }, unknown>;
16477
16391
  cancelSubscription: _trpc_server.BuildProcedure<"mutation", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-feat-custom-tech-plan.4",
3
+ "version": "1.33.0-feat-custom-tech-plan.6",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,9 +13,9 @@
13
13
  ],
14
14
  "exports": {
15
15
  ".": {
16
+ "types": "./dist/index.d.cts",
16
17
  "import": "./dist/index.cjs",
17
- "require": "./dist/index.cjs",
18
- "types": "./dist/index.d.cts"
18
+ "require": "./dist/index.cjs"
19
19
  }
20
20
  },
21
21
  "main": "./dist/index.cjs",