@secrecy/lib 1.38.1 → 1.39.0-feat-custom-tech-plan.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.
package/dist/lib/client/index.js
CHANGED
|
@@ -9,7 +9,6 @@ import { SecrecyDbClient } from './SecrecyDbClient.js';
|
|
|
9
9
|
import { SecrecyWalletClient } from './SecrecyWalletClient.js';
|
|
10
10
|
import { SecrecyPayClient } from './SecrecyPayClient.js';
|
|
11
11
|
import { SecrecyUserClient } from './SecrecyUserClient.js';
|
|
12
|
-
import { SecrecyCareClient } from './SecrecyCareClient.js';
|
|
13
12
|
import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
|
|
14
13
|
export const encryptName = async (name, nameKey) => {
|
|
15
14
|
const { data } = await encryptSecretStream(sodium.from_hex(nameKey), sodium.from_string(name));
|
|
@@ -18,7 +17,6 @@ export const encryptName = async (name, nameKey) => {
|
|
|
18
17
|
};
|
|
19
18
|
export class SecrecyClient extends BaseClient {
|
|
20
19
|
#keys;
|
|
21
|
-
care;
|
|
22
20
|
cloud;
|
|
23
21
|
mail;
|
|
24
22
|
app;
|
|
@@ -38,7 +36,6 @@ export class SecrecyClient extends BaseClient {
|
|
|
38
36
|
}
|
|
39
37
|
});
|
|
40
38
|
this.#keys = uaKeys;
|
|
41
|
-
this.care = new SecrecyCareClient(this, this.#keys, this.client);
|
|
42
39
|
this.cloud = new SecrecyCloudClient(this, this.#keys, this.client);
|
|
43
40
|
this.mail = new SecrecyMailClient(this, this.#keys, this.client);
|
|
44
41
|
this.app = new SecrecyAppClient(uaJwt, this, this.#keys, this.client);
|
|
@@ -9,14 +9,12 @@ import { SecrecyPayClient } from './SecrecyPayClient.js';
|
|
|
9
9
|
import { type RouterInputs } from '../client.js';
|
|
10
10
|
import { type KeyPair } from './types/index.js';
|
|
11
11
|
import { SecrecyUserClient } from './SecrecyUserClient.js';
|
|
12
|
-
import { SecrecyCareClient } from './SecrecyCareClient.js';
|
|
13
12
|
import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
|
|
14
13
|
export type NewMail = Pick<RouterInputs['mail']['createDraft'], 'body' | 'subject' | 'senderFiles' | 'recipients' | 'replyToId'>;
|
|
15
14
|
export type ProgressCallback = (progress: Progress) => Promise<void>;
|
|
16
15
|
export declare const encryptName: (name: string, nameKey: string) => Promise<string>;
|
|
17
16
|
export declare class SecrecyClient extends BaseClient {
|
|
18
17
|
#private;
|
|
19
|
-
care: SecrecyCareClient;
|
|
20
18
|
cloud: SecrecyCloudClient;
|
|
21
19
|
mail: SecrecyMailClient;
|
|
22
20
|
app: SecrecyAppClient;
|
package/dist/types/client.d.ts
CHANGED
|
@@ -2364,414 +2364,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2364
2364
|
}, unknown>>;
|
|
2365
2365
|
};
|
|
2366
2366
|
};
|
|
2367
|
-
care: {
|
|
2368
|
-
professional: {
|
|
2369
|
-
register: {
|
|
2370
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
2371
|
-
_config: import("@trpc/server").RootConfig<{
|
|
2372
|
-
ctx: {
|
|
2373
|
-
req: {
|
|
2374
|
-
headers: Headers;
|
|
2375
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2376
|
-
};
|
|
2377
|
-
res: {
|
|
2378
|
-
headers: Headers;
|
|
2379
|
-
};
|
|
2380
|
-
session: SecrecySession | null;
|
|
2381
|
-
locale: Locales;
|
|
2382
|
-
ls: TranslationFunctions;
|
|
2383
|
-
};
|
|
2384
|
-
meta: object;
|
|
2385
|
-
errorShape: {
|
|
2386
|
-
message: string;
|
|
2387
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2388
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2389
|
-
} | {
|
|
2390
|
-
data: {
|
|
2391
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
2392
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
2393
|
-
httpStatus: number;
|
|
2394
|
-
path?: string;
|
|
2395
|
-
stack?: string;
|
|
2396
|
-
};
|
|
2397
|
-
message: string;
|
|
2398
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2399
|
-
};
|
|
2400
|
-
transformer: typeof superjson;
|
|
2401
|
-
}>;
|
|
2402
|
-
_meta: object;
|
|
2403
|
-
_ctx_out: {
|
|
2404
|
-
session: SecrecySession;
|
|
2405
|
-
req: {
|
|
2406
|
-
headers: Headers;
|
|
2407
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2408
|
-
};
|
|
2409
|
-
res: {
|
|
2410
|
-
headers: Headers;
|
|
2411
|
-
};
|
|
2412
|
-
locale: Locales;
|
|
2413
|
-
ls: TranslationFunctions;
|
|
2414
|
-
};
|
|
2415
|
-
_input_in: {
|
|
2416
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2417
|
-
job: string;
|
|
2418
|
-
specialties: string[];
|
|
2419
|
-
activePrescriber: boolean;
|
|
2420
|
-
internationalPrescriberNumber: string | null;
|
|
2421
|
-
institution: string | null;
|
|
2422
|
-
rppsNumber: string;
|
|
2423
|
-
adeliNumber: string;
|
|
2424
|
-
ssNumber: string;
|
|
2425
|
-
};
|
|
2426
|
-
_input_out: {
|
|
2427
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2428
|
-
job: string;
|
|
2429
|
-
specialties: string[];
|
|
2430
|
-
activePrescriber: boolean;
|
|
2431
|
-
internationalPrescriberNumber: string | null;
|
|
2432
|
-
institution: string | null;
|
|
2433
|
-
rppsNumber: string;
|
|
2434
|
-
adeliNumber: string;
|
|
2435
|
-
ssNumber: string;
|
|
2436
|
-
};
|
|
2437
|
-
_output_in: {
|
|
2438
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2439
|
-
job: string;
|
|
2440
|
-
specialties: string[];
|
|
2441
|
-
} & {
|
|
2442
|
-
user: {
|
|
2443
|
-
id: string;
|
|
2444
|
-
lastname: string;
|
|
2445
|
-
firstname: string;
|
|
2446
|
-
avatar: string | null;
|
|
2447
|
-
isSearchable: boolean;
|
|
2448
|
-
};
|
|
2449
|
-
};
|
|
2450
|
-
_output_out: {
|
|
2451
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2452
|
-
job: string;
|
|
2453
|
-
specialties: string[];
|
|
2454
|
-
} & {
|
|
2455
|
-
user: {
|
|
2456
|
-
id: string;
|
|
2457
|
-
lastname: string;
|
|
2458
|
-
firstname: string;
|
|
2459
|
-
avatar: string | null;
|
|
2460
|
-
isSearchable: boolean;
|
|
2461
|
-
};
|
|
2462
|
-
};
|
|
2463
|
-
}, unknown>>;
|
|
2464
|
-
};
|
|
2465
|
-
update: {
|
|
2466
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
2467
|
-
_config: import("@trpc/server").RootConfig<{
|
|
2468
|
-
ctx: {
|
|
2469
|
-
req: {
|
|
2470
|
-
headers: Headers;
|
|
2471
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2472
|
-
};
|
|
2473
|
-
res: {
|
|
2474
|
-
headers: Headers;
|
|
2475
|
-
};
|
|
2476
|
-
session: SecrecySession | null;
|
|
2477
|
-
locale: Locales;
|
|
2478
|
-
ls: TranslationFunctions;
|
|
2479
|
-
};
|
|
2480
|
-
meta: object;
|
|
2481
|
-
errorShape: {
|
|
2482
|
-
message: string;
|
|
2483
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2484
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2485
|
-
} | {
|
|
2486
|
-
data: {
|
|
2487
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
2488
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
2489
|
-
httpStatus: number;
|
|
2490
|
-
path?: string;
|
|
2491
|
-
stack?: string;
|
|
2492
|
-
};
|
|
2493
|
-
message: string;
|
|
2494
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2495
|
-
};
|
|
2496
|
-
transformer: typeof superjson;
|
|
2497
|
-
}>;
|
|
2498
|
-
_meta: object;
|
|
2499
|
-
_ctx_out: {
|
|
2500
|
-
session: SecrecySession;
|
|
2501
|
-
req: {
|
|
2502
|
-
headers: Headers;
|
|
2503
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2504
|
-
};
|
|
2505
|
-
res: {
|
|
2506
|
-
headers: Headers;
|
|
2507
|
-
};
|
|
2508
|
-
locale: Locales;
|
|
2509
|
-
ls: TranslationFunctions;
|
|
2510
|
-
};
|
|
2511
|
-
_input_in: {
|
|
2512
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2513
|
-
job: string;
|
|
2514
|
-
specialties: string[];
|
|
2515
|
-
activePrescriber: boolean;
|
|
2516
|
-
internationalPrescriberNumber: string | null;
|
|
2517
|
-
institution: string | null;
|
|
2518
|
-
rppsNumber: string;
|
|
2519
|
-
adeliNumber: string;
|
|
2520
|
-
ssNumber: string;
|
|
2521
|
-
};
|
|
2522
|
-
_input_out: {
|
|
2523
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2524
|
-
job: string;
|
|
2525
|
-
specialties: string[];
|
|
2526
|
-
activePrescriber: boolean;
|
|
2527
|
-
internationalPrescriberNumber: string | null;
|
|
2528
|
-
institution: string | null;
|
|
2529
|
-
rppsNumber: string;
|
|
2530
|
-
adeliNumber: string;
|
|
2531
|
-
ssNumber: string;
|
|
2532
|
-
};
|
|
2533
|
-
_output_in: {
|
|
2534
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2535
|
-
job: string;
|
|
2536
|
-
specialties: string[];
|
|
2537
|
-
} & {
|
|
2538
|
-
user: {
|
|
2539
|
-
id: string;
|
|
2540
|
-
lastname: string;
|
|
2541
|
-
firstname: string;
|
|
2542
|
-
avatar: string | null;
|
|
2543
|
-
isSearchable: boolean;
|
|
2544
|
-
};
|
|
2545
|
-
};
|
|
2546
|
-
_output_out: {
|
|
2547
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2548
|
-
job: string;
|
|
2549
|
-
specialties: string[];
|
|
2550
|
-
} & {
|
|
2551
|
-
user: {
|
|
2552
|
-
id: string;
|
|
2553
|
-
lastname: string;
|
|
2554
|
-
firstname: string;
|
|
2555
|
-
avatar: string | null;
|
|
2556
|
-
isSearchable: boolean;
|
|
2557
|
-
};
|
|
2558
|
-
};
|
|
2559
|
-
}, unknown>>;
|
|
2560
|
-
};
|
|
2561
|
-
delete: {
|
|
2562
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
2563
|
-
_config: import("@trpc/server").RootConfig<{
|
|
2564
|
-
ctx: {
|
|
2565
|
-
req: {
|
|
2566
|
-
headers: Headers;
|
|
2567
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2568
|
-
};
|
|
2569
|
-
res: {
|
|
2570
|
-
headers: Headers;
|
|
2571
|
-
};
|
|
2572
|
-
session: SecrecySession | null;
|
|
2573
|
-
locale: Locales;
|
|
2574
|
-
ls: TranslationFunctions;
|
|
2575
|
-
};
|
|
2576
|
-
meta: object;
|
|
2577
|
-
errorShape: {
|
|
2578
|
-
message: string;
|
|
2579
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2580
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2581
|
-
} | {
|
|
2582
|
-
data: {
|
|
2583
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
2584
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
2585
|
-
httpStatus: number;
|
|
2586
|
-
path?: string;
|
|
2587
|
-
stack?: string;
|
|
2588
|
-
};
|
|
2589
|
-
message: string;
|
|
2590
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2591
|
-
};
|
|
2592
|
-
transformer: typeof superjson;
|
|
2593
|
-
}>;
|
|
2594
|
-
_meta: object;
|
|
2595
|
-
_ctx_out: {
|
|
2596
|
-
session: SecrecySession;
|
|
2597
|
-
req: {
|
|
2598
|
-
headers: Headers;
|
|
2599
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2600
|
-
};
|
|
2601
|
-
res: {
|
|
2602
|
-
headers: Headers;
|
|
2603
|
-
};
|
|
2604
|
-
locale: Locales;
|
|
2605
|
-
ls: TranslationFunctions;
|
|
2606
|
-
};
|
|
2607
|
-
_input_in: {};
|
|
2608
|
-
_input_out: {};
|
|
2609
|
-
_output_in: {
|
|
2610
|
-
success: boolean;
|
|
2611
|
-
};
|
|
2612
|
-
_output_out: {
|
|
2613
|
-
success: boolean;
|
|
2614
|
-
};
|
|
2615
|
-
}, unknown>>;
|
|
2616
|
-
};
|
|
2617
|
-
get: {
|
|
2618
|
-
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
2619
|
-
_config: import("@trpc/server").RootConfig<{
|
|
2620
|
-
ctx: {
|
|
2621
|
-
req: {
|
|
2622
|
-
headers: Headers;
|
|
2623
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2624
|
-
};
|
|
2625
|
-
res: {
|
|
2626
|
-
headers: Headers;
|
|
2627
|
-
};
|
|
2628
|
-
session: SecrecySession | null;
|
|
2629
|
-
locale: Locales;
|
|
2630
|
-
ls: TranslationFunctions;
|
|
2631
|
-
};
|
|
2632
|
-
meta: object;
|
|
2633
|
-
errorShape: {
|
|
2634
|
-
message: string;
|
|
2635
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2636
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2637
|
-
} | {
|
|
2638
|
-
data: {
|
|
2639
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
2640
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
2641
|
-
httpStatus: number;
|
|
2642
|
-
path?: string;
|
|
2643
|
-
stack?: string;
|
|
2644
|
-
};
|
|
2645
|
-
message: string;
|
|
2646
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2647
|
-
};
|
|
2648
|
-
transformer: typeof superjson;
|
|
2649
|
-
}>;
|
|
2650
|
-
_meta: object;
|
|
2651
|
-
_ctx_out: {
|
|
2652
|
-
session: SecrecySession;
|
|
2653
|
-
req: {
|
|
2654
|
-
headers: Headers;
|
|
2655
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2656
|
-
};
|
|
2657
|
-
res: {
|
|
2658
|
-
headers: Headers;
|
|
2659
|
-
};
|
|
2660
|
-
locale: Locales;
|
|
2661
|
-
ls: TranslationFunctions;
|
|
2662
|
-
};
|
|
2663
|
-
_input_in: {
|
|
2664
|
-
id: string;
|
|
2665
|
-
};
|
|
2666
|
-
_input_out: {
|
|
2667
|
-
id: string;
|
|
2668
|
-
};
|
|
2669
|
-
_output_in: {
|
|
2670
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2671
|
-
job: string;
|
|
2672
|
-
specialties: string[];
|
|
2673
|
-
} & {
|
|
2674
|
-
user: {
|
|
2675
|
-
id: string;
|
|
2676
|
-
lastname: string;
|
|
2677
|
-
firstname: string;
|
|
2678
|
-
avatar: string | null;
|
|
2679
|
-
isSearchable: boolean;
|
|
2680
|
-
};
|
|
2681
|
-
};
|
|
2682
|
-
_output_out: {
|
|
2683
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2684
|
-
job: string;
|
|
2685
|
-
specialties: string[];
|
|
2686
|
-
} & {
|
|
2687
|
-
user: {
|
|
2688
|
-
id: string;
|
|
2689
|
-
lastname: string;
|
|
2690
|
-
firstname: string;
|
|
2691
|
-
avatar: string | null;
|
|
2692
|
-
isSearchable: boolean;
|
|
2693
|
-
};
|
|
2694
|
-
};
|
|
2695
|
-
}, unknown>>;
|
|
2696
|
-
};
|
|
2697
|
-
list: {
|
|
2698
|
-
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
2699
|
-
_config: import("@trpc/server").RootConfig<{
|
|
2700
|
-
ctx: {
|
|
2701
|
-
req: {
|
|
2702
|
-
headers: Headers;
|
|
2703
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2704
|
-
};
|
|
2705
|
-
res: {
|
|
2706
|
-
headers: Headers;
|
|
2707
|
-
};
|
|
2708
|
-
session: SecrecySession | null;
|
|
2709
|
-
locale: Locales;
|
|
2710
|
-
ls: TranslationFunctions;
|
|
2711
|
-
};
|
|
2712
|
-
meta: object;
|
|
2713
|
-
errorShape: {
|
|
2714
|
-
message: string;
|
|
2715
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2716
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2717
|
-
} | {
|
|
2718
|
-
data: {
|
|
2719
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
2720
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
2721
|
-
httpStatus: number;
|
|
2722
|
-
path?: string;
|
|
2723
|
-
stack?: string;
|
|
2724
|
-
};
|
|
2725
|
-
message: string;
|
|
2726
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2727
|
-
};
|
|
2728
|
-
transformer: typeof superjson;
|
|
2729
|
-
}>;
|
|
2730
|
-
_meta: object;
|
|
2731
|
-
_ctx_out: {
|
|
2732
|
-
session: SecrecySession;
|
|
2733
|
-
req: {
|
|
2734
|
-
headers: Headers;
|
|
2735
|
-
body: ReadableStream<Uint8Array> | null;
|
|
2736
|
-
};
|
|
2737
|
-
res: {
|
|
2738
|
-
headers: Headers;
|
|
2739
|
-
};
|
|
2740
|
-
locale: Locales;
|
|
2741
|
-
ls: TranslationFunctions;
|
|
2742
|
-
};
|
|
2743
|
-
_input_in: {};
|
|
2744
|
-
_input_out: {};
|
|
2745
|
-
_output_in: ({
|
|
2746
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2747
|
-
job: string;
|
|
2748
|
-
specialties: string[];
|
|
2749
|
-
} & {
|
|
2750
|
-
user: {
|
|
2751
|
-
id: string;
|
|
2752
|
-
lastname: string;
|
|
2753
|
-
firstname: string;
|
|
2754
|
-
avatar: string | null;
|
|
2755
|
-
isSearchable: boolean;
|
|
2756
|
-
};
|
|
2757
|
-
})[];
|
|
2758
|
-
_output_out: ({
|
|
2759
|
-
status: "active" | "inactive" | "retired" | "suspended";
|
|
2760
|
-
job: string;
|
|
2761
|
-
specialties: string[];
|
|
2762
|
-
} & {
|
|
2763
|
-
user: {
|
|
2764
|
-
id: string;
|
|
2765
|
-
lastname: string;
|
|
2766
|
-
firstname: string;
|
|
2767
|
-
avatar: string | null;
|
|
2768
|
-
isSearchable: boolean;
|
|
2769
|
-
};
|
|
2770
|
-
})[];
|
|
2771
|
-
}, unknown>>;
|
|
2772
|
-
};
|
|
2773
|
-
};
|
|
2774
|
-
};
|
|
2775
2367
|
cloud: {
|
|
2776
2368
|
addDataToHistory: {
|
|
2777
2369
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
@@ -16164,6 +15756,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16164
15756
|
logo: string | null;
|
|
16165
15757
|
updatedAt: Date;
|
|
16166
15758
|
origin: string[];
|
|
15759
|
+
isCustomPlan: boolean;
|
|
16167
15760
|
planId: string | null;
|
|
16168
15761
|
quotasId: string;
|
|
16169
15762
|
metricsId: string;
|
|
@@ -16246,6 +15839,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16246
15839
|
logo: string | null;
|
|
16247
15840
|
updatedAt: Date;
|
|
16248
15841
|
origin: string[];
|
|
15842
|
+
isCustomPlan: boolean;
|
|
16249
15843
|
planId: string | null;
|
|
16250
15844
|
quotasId: string;
|
|
16251
15845
|
metricsId: string;
|
|
@@ -16382,6 +15976,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16382
15976
|
logo: string | null;
|
|
16383
15977
|
updatedAt: Date;
|
|
16384
15978
|
origin: string[];
|
|
15979
|
+
isCustomPlan: boolean;
|
|
16385
15980
|
planId: string | null;
|
|
16386
15981
|
quotasId: string;
|
|
16387
15982
|
metricsId: string;
|
|
@@ -16464,6 +16059,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16464
16059
|
logo: string | null;
|
|
16465
16060
|
updatedAt: Date;
|
|
16466
16061
|
origin: string[];
|
|
16062
|
+
isCustomPlan: boolean;
|
|
16467
16063
|
planId: string | null;
|
|
16468
16064
|
quotasId: string;
|
|
16469
16065
|
metricsId: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.39.0-feat-custom-tech-plan.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@secrecy/lib-utils": "^1.0.18",
|
|
77
|
-
"@secrecy/trpc-api-types": "1.33.0",
|
|
77
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-custom-tech-plan.1",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export class SecrecyCareClient {
|
|
2
|
-
#client;
|
|
3
|
-
#keys;
|
|
4
|
-
#apiClient;
|
|
5
|
-
professional;
|
|
6
|
-
constructor(client, keys, apiClient) {
|
|
7
|
-
this.#client = client;
|
|
8
|
-
this.#keys = keys;
|
|
9
|
-
this.#apiClient = apiClient;
|
|
10
|
-
this.professional = {
|
|
11
|
-
register: this.#apiClient.care.professional.register.mutate,
|
|
12
|
-
update: this.#apiClient.care.professional.update.mutate,
|
|
13
|
-
delete: this.#apiClient.care.professional.delete.mutate,
|
|
14
|
-
get: this.#apiClient.care.professional.get.query,
|
|
15
|
-
list: this.#apiClient.care.professional.list.query,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { SecrecyClient, KeyPair } from '../index.js';
|
|
2
|
-
import type { ApiClient, RouterInputs, RouterOutputs } from '../client.js';
|
|
3
|
-
export declare class SecrecyCareClient {
|
|
4
|
-
#private;
|
|
5
|
-
readonly professional: {
|
|
6
|
-
register: (input: RouterInputs['care']['professional']['register']) => Promise<RouterOutputs['care']['professional']['register']>;
|
|
7
|
-
update: (input: RouterInputs['care']['professional']['update']) => Promise<RouterOutputs['care']['professional']['update']>;
|
|
8
|
-
delete: (input: RouterInputs['care']['professional']['delete']) => Promise<RouterOutputs['care']['professional']['delete']>;
|
|
9
|
-
get: (input: RouterInputs['care']['professional']['get']) => Promise<RouterOutputs['care']['professional']['get']>;
|
|
10
|
-
list: (input: RouterInputs['care']['professional']['list']) => Promise<RouterOutputs['care']['professional']['list']>;
|
|
11
|
-
};
|
|
12
|
-
constructor(client: SecrecyClient, keys: KeyPair, apiClient: ApiClient);
|
|
13
|
-
}
|