@secrecy/lib 1.23.0 → 1.24.0
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.
|
@@ -2,18 +2,17 @@ export class SecrecyCareClient {
|
|
|
2
2
|
#client;
|
|
3
3
|
#keys;
|
|
4
4
|
#apiClient;
|
|
5
|
+
professional;
|
|
5
6
|
constructor(client, keys, apiClient) {
|
|
6
7
|
this.#client = client;
|
|
7
8
|
this.#keys = keys;
|
|
8
9
|
this.#apiClient = apiClient;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
async registerProfessional(input) {
|
|
17
|
-
return await this.#apiClient.care.professional.register.mutate(input);
|
|
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
|
+
};
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -23,9 +23,6 @@ export class SecrecyCloudClient {
|
|
|
23
23
|
this.#keys = keys;
|
|
24
24
|
this.#apiClient = apiClient;
|
|
25
25
|
}
|
|
26
|
-
async searchData(input) {
|
|
27
|
-
return await this.#apiClient.cloud.searchData.query(input);
|
|
28
|
-
}
|
|
29
26
|
async addFileToHistory({ fileId, nodeId, }) {
|
|
30
27
|
const addFileToHistory = await this.#apiClient.cloud.addFileToHistory.mutate({
|
|
31
28
|
fileId,
|
|
@@ -2,8 +2,12 @@ import type { SecrecyClient, KeyPair } from '../index.js';
|
|
|
2
2
|
import type { ApiClient, RouterInputs, RouterOutputs } from '../client.js';
|
|
3
3
|
export declare class SecrecyCareClient {
|
|
4
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
|
+
};
|
|
5
12
|
constructor(client: SecrecyClient, keys: KeyPair, apiClient: ApiClient);
|
|
6
|
-
getProfessional(input: RouterInputs['care']['professional']['get']): Promise<RouterOutputs['care']['professional']['get']>;
|
|
7
|
-
listProfessionals(input: RouterInputs['care']['professional']['list']): Promise<RouterOutputs['care']['professional']['list']>;
|
|
8
|
-
registerProfessional(input: RouterInputs['care']['professional']['register']): Promise<RouterOutputs['care']['professional']['register']>;
|
|
9
13
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { ProgressCallback, SecrecyClient } from '../index.js';
|
|
2
2
|
import type { FileMetadata, KeyPair, Node, NodeFull, NodeType, Rights } from './types/index.js';
|
|
3
|
-
import { type
|
|
3
|
+
import { type ApiClient } from '../client.js';
|
|
4
4
|
import { type DownloadProgress } from '../types.js';
|
|
5
5
|
export declare class SecrecyCloudClient {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(client: SecrecyClient, keys: KeyPair, apiClient: ApiClient);
|
|
8
|
-
searchData(input: RouterInputs['cloud']['searchData']): Promise<RouterOutputs['cloud']['searchData']>;
|
|
9
8
|
addFileToHistory({ fileId, nodeId, }: {
|
|
10
9
|
fileId: string;
|
|
11
10
|
nodeId: string;
|
package/package.json
CHANGED