@secrecy/trpc-api-types 1.24.0-dev.6 → 1.24.0-dev.7

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 +148 -0
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -2518,6 +2518,154 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2518
2518
  };
2519
2519
  };
2520
2520
  }, unknown>;
2521
+ update: _trpc_server.BuildProcedure<"mutation", {
2522
+ _config: _trpc_server.RootConfig<{
2523
+ ctx: {
2524
+ req: {
2525
+ headers: Headers;
2526
+ body: ReadableStream<Uint8Array> | null;
2527
+ };
2528
+ res: {
2529
+ headers: Headers;
2530
+ };
2531
+ session: SecrecySession | null;
2532
+ locale: Locales;
2533
+ ls: TranslationFunctions;
2534
+ };
2535
+ meta: object;
2536
+ errorShape: {
2537
+ message: string;
2538
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2539
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2540
+ } | {
2541
+ data: {
2542
+ zodError: zod.typeToFlattenedError<any, string> | null;
2543
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2544
+ httpStatus: number;
2545
+ path?: string;
2546
+ stack?: string;
2547
+ };
2548
+ message: string;
2549
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2550
+ };
2551
+ transformer: typeof superjson.default;
2552
+ }>;
2553
+ _meta: object;
2554
+ _ctx_out: {
2555
+ session: SecrecySession;
2556
+ req: {
2557
+ headers: Headers;
2558
+ body: ReadableStream<Uint8Array> | null;
2559
+ };
2560
+ res: {
2561
+ headers: Headers;
2562
+ };
2563
+ locale: Locales;
2564
+ ls: TranslationFunctions;
2565
+ };
2566
+ _input_in: {
2567
+ status: "active" | "inactive" | "retired" | "suspended";
2568
+ job: string;
2569
+ specialties: string[];
2570
+ activePrescriber: boolean;
2571
+ internationalPrescriberNumber: string | null;
2572
+ institution: string | null;
2573
+ rppsNumber: string;
2574
+ adeliNumber: string;
2575
+ ssNumber: string;
2576
+ };
2577
+ _input_out: {
2578
+ status: "active" | "inactive" | "retired" | "suspended";
2579
+ job: string;
2580
+ specialties: string[];
2581
+ activePrescriber: boolean;
2582
+ internationalPrescriberNumber: string | null;
2583
+ institution: string | null;
2584
+ rppsNumber: string;
2585
+ adeliNumber: string;
2586
+ ssNumber: string;
2587
+ };
2588
+ _output_in: {
2589
+ status: "active" | "inactive" | "retired" | "suspended";
2590
+ job: string;
2591
+ specialties: string[];
2592
+ } & {
2593
+ user: {
2594
+ id: string;
2595
+ lastname: string;
2596
+ firstname: string;
2597
+ avatar: string | null;
2598
+ isSearchable: boolean;
2599
+ };
2600
+ };
2601
+ _output_out: {
2602
+ status: "active" | "inactive" | "retired" | "suspended";
2603
+ job: string;
2604
+ specialties: string[];
2605
+ } & {
2606
+ user: {
2607
+ id: string;
2608
+ lastname: string;
2609
+ firstname: string;
2610
+ avatar: string | null;
2611
+ isSearchable: boolean;
2612
+ };
2613
+ };
2614
+ }, unknown>;
2615
+ delete: _trpc_server.BuildProcedure<"mutation", {
2616
+ _config: _trpc_server.RootConfig<{
2617
+ ctx: {
2618
+ req: {
2619
+ headers: Headers;
2620
+ body: ReadableStream<Uint8Array> | null;
2621
+ };
2622
+ res: {
2623
+ headers: Headers;
2624
+ };
2625
+ session: SecrecySession | null;
2626
+ locale: Locales;
2627
+ ls: TranslationFunctions;
2628
+ };
2629
+ meta: object;
2630
+ errorShape: {
2631
+ message: string;
2632
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2633
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2634
+ } | {
2635
+ data: {
2636
+ zodError: zod.typeToFlattenedError<any, string> | null;
2637
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2638
+ httpStatus: number;
2639
+ path?: string;
2640
+ stack?: string;
2641
+ };
2642
+ message: string;
2643
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2644
+ };
2645
+ transformer: typeof superjson.default;
2646
+ }>;
2647
+ _meta: object;
2648
+ _ctx_out: {
2649
+ session: SecrecySession;
2650
+ req: {
2651
+ headers: Headers;
2652
+ body: ReadableStream<Uint8Array> | null;
2653
+ };
2654
+ res: {
2655
+ headers: Headers;
2656
+ };
2657
+ locale: Locales;
2658
+ ls: TranslationFunctions;
2659
+ };
2660
+ _input_in: {};
2661
+ _input_out: {};
2662
+ _output_in: {
2663
+ success: boolean;
2664
+ };
2665
+ _output_out: {
2666
+ success: boolean;
2667
+ };
2668
+ }, unknown>;
2521
2669
  get: _trpc_server.BuildProcedure<"query", {
2522
2670
  _config: _trpc_server.RootConfig<{
2523
2671
  ctx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.24.0-dev.6",
3
+ "version": "1.24.0-dev.7",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"