@secrecy/lib 1.39.0-feat-custom-tech-plan.3 → 1.39.0-fix-dashboard-lp-tech-fixes--lib.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.
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
package/dist/lib/client/index.js
CHANGED
|
@@ -9,6 +9,7 @@ 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';
|
|
12
13
|
import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
|
|
13
14
|
export const encryptName = async (name, nameKey) => {
|
|
14
15
|
const { data } = await encryptSecretStream(sodium.from_hex(nameKey), sodium.from_string(name));
|
|
@@ -17,6 +18,7 @@ export const encryptName = async (name, nameKey) => {
|
|
|
17
18
|
};
|
|
18
19
|
export class SecrecyClient extends BaseClient {
|
|
19
20
|
#keys;
|
|
21
|
+
care;
|
|
20
22
|
cloud;
|
|
21
23
|
mail;
|
|
22
24
|
app;
|
|
@@ -36,6 +38,7 @@ export class SecrecyClient extends BaseClient {
|
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
40
|
this.#keys = uaKeys;
|
|
41
|
+
this.care = new SecrecyCareClient(this, this.#keys, this.client);
|
|
39
42
|
this.cloud = new SecrecyCloudClient(this, this.#keys, this.client);
|
|
40
43
|
this.mail = new SecrecyMailClient(this, this.#keys, this.client);
|
|
41
44
|
this.app = new SecrecyAppClient(uaJwt, this, this.#keys, this.client);
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -9,12 +9,14 @@ 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';
|
|
12
13
|
import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
|
|
13
14
|
export type NewMail = Pick<RouterInputs['mail']['createDraft'], 'body' | 'subject' | 'senderFiles' | 'recipients' | 'replyToId'>;
|
|
14
15
|
export type ProgressCallback = (progress: Progress) => Promise<void>;
|
|
15
16
|
export declare const encryptName: (name: string, nameKey: string) => Promise<string>;
|
|
16
17
|
export declare class SecrecyClient extends BaseClient {
|
|
17
18
|
#private;
|
|
19
|
+
care: SecrecyCareClient;
|
|
18
20
|
cloud: SecrecyCloudClient;
|
|
19
21
|
mail: SecrecyMailClient;
|
|
20
22
|
app: SecrecyAppClient;
|
package/dist/types/client.d.ts
CHANGED
|
@@ -631,7 +631,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
631
631
|
kind: string;
|
|
632
632
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
633
633
|
descriptorId: string;
|
|
634
|
-
isCustomPlan: boolean;
|
|
635
634
|
};
|
|
636
635
|
_output_out: {
|
|
637
636
|
codes: string[];
|
|
@@ -639,7 +638,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
639
638
|
kind: string;
|
|
640
639
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
641
640
|
descriptorId: string;
|
|
642
|
-
isCustomPlan: boolean;
|
|
643
641
|
};
|
|
644
642
|
}, unknown>>;
|
|
645
643
|
};
|
|
@@ -697,7 +695,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
697
695
|
kind: string;
|
|
698
696
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
699
697
|
descriptorId: string;
|
|
700
|
-
isCustomPlan: boolean;
|
|
701
698
|
} & {
|
|
702
699
|
descriptor: {
|
|
703
700
|
devsBase: bigint | null;
|
|
@@ -730,7 +727,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
730
727
|
kind: string;
|
|
731
728
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
732
729
|
descriptorId: string;
|
|
733
|
-
isCustomPlan: boolean;
|
|
734
730
|
} & {
|
|
735
731
|
descriptor: {
|
|
736
732
|
devsBase: bigint | null;
|
|
@@ -2368,6 +2364,414 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2368
2364
|
}, unknown>>;
|
|
2369
2365
|
};
|
|
2370
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
|
+
};
|
|
2371
2775
|
cloud: {
|
|
2372
2776
|
addDataToHistory: {
|
|
2373
2777
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
@@ -15724,7 +16128,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15724
16128
|
kind: string;
|
|
15725
16129
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
15726
16130
|
descriptorId: string;
|
|
15727
|
-
isCustomPlan: boolean;
|
|
15728
16131
|
} & {
|
|
15729
16132
|
descriptor: {
|
|
15730
16133
|
devsBase: bigint | null;
|
|
@@ -15775,7 +16178,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15775
16178
|
kind: string;
|
|
15776
16179
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
15777
16180
|
descriptorId: string;
|
|
15778
|
-
isCustomPlan: boolean;
|
|
15779
16181
|
} & {
|
|
15780
16182
|
descriptor: {
|
|
15781
16183
|
devsBase: bigint | null;
|
|
@@ -15808,7 +16210,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15808
16210
|
kind: string;
|
|
15809
16211
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
15810
16212
|
descriptorId: string;
|
|
15811
|
-
isCustomPlan: boolean;
|
|
15812
16213
|
} & {
|
|
15813
16214
|
descriptor: {
|
|
15814
16215
|
devsBase: bigint | null;
|
|
@@ -15859,7 +16260,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15859
16260
|
kind: string;
|
|
15860
16261
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
15861
16262
|
descriptorId: string;
|
|
15862
|
-
isCustomPlan: boolean;
|
|
15863
16263
|
} & {
|
|
15864
16264
|
descriptor: {
|
|
15865
16265
|
devsBase: bigint | null;
|
|
@@ -15946,7 +16346,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15946
16346
|
kind: string;
|
|
15947
16347
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
15948
16348
|
descriptorId: string;
|
|
15949
|
-
isCustomPlan: boolean;
|
|
15950
16349
|
} & {
|
|
15951
16350
|
descriptor: {
|
|
15952
16351
|
devsBase: bigint | null;
|
|
@@ -15997,7 +16396,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15997
16396
|
kind: string;
|
|
15998
16397
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
15999
16398
|
descriptorId: string;
|
|
16000
|
-
isCustomPlan: boolean;
|
|
16001
16399
|
} & {
|
|
16002
16400
|
descriptor: {
|
|
16003
16401
|
devsBase: bigint | null;
|
|
@@ -16030,7 +16428,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16030
16428
|
kind: string;
|
|
16031
16429
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
16032
16430
|
descriptorId: string;
|
|
16033
|
-
isCustomPlan: boolean;
|
|
16034
16431
|
} & {
|
|
16035
16432
|
descriptor: {
|
|
16036
16433
|
devsBase: bigint | null;
|
|
@@ -16081,7 +16478,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
16081
16478
|
kind: string;
|
|
16082
16479
|
relatedTo: "secrecy" | "secrecy_tech";
|
|
16083
16480
|
descriptorId: string;
|
|
16084
|
-
isCustomPlan: boolean;
|
|
16085
16481
|
} & {
|
|
16086
16482
|
descriptor: {
|
|
16087
16483
|
devsBase: bigint | null;
|
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.39.0-
|
|
5
|
+
"version": "1.39.0-fix-dashboard-lp-tech-fixes--lib.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"semantic-release": "semantic-release"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@commitlint/cli": "^19.
|
|
53
|
-
"@commitlint/config-conventional": "^19.
|
|
54
|
-
"@prisma/client": "5.
|
|
52
|
+
"@commitlint/cli": "^19.3.0",
|
|
53
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
54
|
+
"@prisma/client": "5.18.0",
|
|
55
55
|
"@types/bun": "^1.1.8",
|
|
56
56
|
"@types/jsonwebtoken": "^9.0.6",
|
|
57
57
|
"@types/spark-md5": "^3.0.4",
|
|
@@ -61,29 +61,29 @@
|
|
|
61
61
|
"eslint-config-love": "^63.0.0",
|
|
62
62
|
"eslint-config-prettier": "^9.1.0",
|
|
63
63
|
"eslint-plugin-import": "^2.29.1",
|
|
64
|
-
"eslint-plugin-n": "^17.
|
|
64
|
+
"eslint-plugin-n": "^17.9.0",
|
|
65
65
|
"eslint-plugin-promise": "^7.1.0",
|
|
66
|
-
"husky": "^9.
|
|
66
|
+
"husky": "^9.0.11",
|
|
67
67
|
"npm-run-all": "^4.1.5",
|
|
68
68
|
"prettier": "^3.3.3",
|
|
69
69
|
"rimraf": "^6.0.1",
|
|
70
|
-
"semantic-release": "^24.
|
|
71
|
-
"typedoc": "^0.26.
|
|
70
|
+
"semantic-release": "^24.0.0",
|
|
71
|
+
"typedoc": "^0.26.4",
|
|
72
72
|
"typedoc-plugin-missing-exports": "^3.0.0",
|
|
73
|
-
"typescript": "^5.5.
|
|
73
|
+
"typescript": "^5.5.3"
|
|
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.dashboard-lp-tech-fixes.1",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|
|
81
|
-
"axios": "^1.7.
|
|
81
|
+
"axios": "^1.7.5",
|
|
82
82
|
"bson": "^6.8.0",
|
|
83
|
-
"ethers": "^6.13.
|
|
83
|
+
"ethers": "^6.13.1",
|
|
84
84
|
"jsonwebtoken": "^9.0.2",
|
|
85
|
-
"ky": "^1.
|
|
86
|
-
"libsodium-wrappers-sumo": "^0.7.
|
|
85
|
+
"ky": "^1.4.0",
|
|
86
|
+
"libsodium-wrappers-sumo": "^0.7.14",
|
|
87
87
|
"lru-cache": "^11.0.0",
|
|
88
88
|
"spark-md5": "^3.0.2",
|
|
89
89
|
"superjson": "2.2.1",
|