whio-api-sdk 1.0.230-beta-staging → 1.0.237-beta-staging
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/src/sdk/modules/user.module.d.ts +3 -0
- package/dist/src/sdk/modules/user.module.js +6 -0
- package/dist/src/sdk/sdk.d.ts +3 -0
- package/dist/src/sdk/sdk.js +5 -0
- package/dist/src/sdk/types/session.types.d.ts +2 -0
- package/dist/src/sdk/types/user.types.d.ts +3 -0
- package/package.json +1 -1
- package/src/sdk/modules/user.module.ts +6 -1
- package/src/sdk/sdk.ts +4 -0
- package/src/sdk/types/session.types.ts +2 -0
- package/src/sdk/types/user.types.ts +5 -0
|
@@ -16,4 +16,7 @@ export declare class UserModule extends BaseClient {
|
|
|
16
16
|
updateUser(id: string, data: UpdateUserDto): Promise<User>;
|
|
17
17
|
deleteUser(id: string): Promise<void>;
|
|
18
18
|
updateNames(data: UpdateUserNamesDto): Promise<User>;
|
|
19
|
+
addExpoPushToken(token: string): Promise<{
|
|
20
|
+
message: string;
|
|
21
|
+
}>;
|
|
19
22
|
}
|
|
@@ -114,4 +114,10 @@ export class UserModule extends BaseClient {
|
|
|
114
114
|
return this.request(`${urls.users}/names`, 'PATCH', data);
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
+
addExpoPushToken(token) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
const dto = { token };
|
|
120
|
+
return this.request(`${urls.users}/expo-push-token`, 'POST', dto);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
117
123
|
}
|
package/dist/src/sdk/sdk.d.ts
CHANGED
|
@@ -65,6 +65,9 @@ export declare class ApiSDK extends BaseClient {
|
|
|
65
65
|
updateUser(...args: Parameters<UserModule['updateUser']>): Promise<User>;
|
|
66
66
|
deleteUser(...args: Parameters<UserModule['deleteUser']>): Promise<void>;
|
|
67
67
|
removeRoleFromUser(...args: Parameters<UserModule['removeRoleFromUser']>): Promise<void>;
|
|
68
|
+
addExpoPushToken(...args: Parameters<UserModule['addExpoPushToken']>): Promise<{
|
|
69
|
+
message: string;
|
|
70
|
+
}>;
|
|
68
71
|
createOrganization(...args: Parameters<OrganizationModule['createOrganization']>): Promise<import("./types").Organization>;
|
|
69
72
|
getOrganizations(...args: Parameters<OrganizationModule['getOrganizations']>): Promise<import("./types").Organization[]>;
|
|
70
73
|
getOrganization(...args: Parameters<OrganizationModule['getOrganization']>): Promise<import("./types").Organization>;
|
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -215,6 +215,11 @@ export class ApiSDK extends BaseClient {
|
|
|
215
215
|
return this.users.removeRoleFromUser(...args);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
+
addExpoPushToken(...args) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
return this.users.addExpoPushToken(...args);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
218
223
|
// Organization methods
|
|
219
224
|
createOrganization(...args) {
|
|
220
225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,6 +14,7 @@ export interface Session {
|
|
|
14
14
|
summary?: string;
|
|
15
15
|
sessionName?: string;
|
|
16
16
|
patientName?: string;
|
|
17
|
+
integrationMeta?: any;
|
|
17
18
|
summaryStatus: SummaryStatus;
|
|
18
19
|
audioStreamStatus: AudioStreamStatus;
|
|
19
20
|
createdAt: string;
|
|
@@ -57,6 +58,7 @@ export interface UpdateSessionDto {
|
|
|
57
58
|
summary?: string;
|
|
58
59
|
sessionName?: string;
|
|
59
60
|
patientName?: string;
|
|
61
|
+
integrationMeta?: any;
|
|
60
62
|
summaryStatus?: SummaryStatus;
|
|
61
63
|
audioStreamStatus?: AudioStreamStatus;
|
|
62
64
|
primaryTranscriptionSummaryId?: string;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient } from './base-client';
|
|
2
|
-
import { User, CreateUserDto, UpdateUserDto, UpdateUserNamesDto, Organization, AssignOrganizationRoleDto, OrganizationRoleType } from '../types';
|
|
2
|
+
import { User, CreateUserDto, UpdateUserDto, UpdateUserNamesDto, AddExpoPushTokenDto, Organization, AssignOrganizationRoleDto, OrganizationRoleType } from '../types';
|
|
3
3
|
import urls from '../urls';
|
|
4
4
|
|
|
5
5
|
export class UserModule extends BaseClient {
|
|
@@ -97,4 +97,9 @@ export class UserModule extends BaseClient {
|
|
|
97
97
|
public async updateNames(data: UpdateUserNamesDto): Promise<User> {
|
|
98
98
|
return this.request<User>(`${urls.users}/names`, 'PATCH', data);
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
public async addExpoPushToken(token: string): Promise<{ message: string }> {
|
|
102
|
+
const dto: AddExpoPushTokenDto = { token };
|
|
103
|
+
return this.request<{ message: string }>(`${urls.users}/expo-push-token`, 'POST', dto);
|
|
104
|
+
}
|
|
100
105
|
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -219,6 +219,10 @@ export class ApiSDK extends BaseClient {
|
|
|
219
219
|
return this.users.removeRoleFromUser(...args);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
public async addExpoPushToken(...args: Parameters<UserModule['addExpoPushToken']>) {
|
|
223
|
+
return this.users.addExpoPushToken(...args);
|
|
224
|
+
}
|
|
225
|
+
|
|
222
226
|
// Organization methods
|
|
223
227
|
public async createOrganization(...args: Parameters<OrganizationModule['createOrganization']>) {
|
|
224
228
|
return this.organizations.createOrganization(...args);
|
|
@@ -16,6 +16,7 @@ export interface Session {
|
|
|
16
16
|
summary?: string;
|
|
17
17
|
sessionName?: string;
|
|
18
18
|
patientName?: string;
|
|
19
|
+
integrationMeta?: any;
|
|
19
20
|
summaryStatus: SummaryStatus;
|
|
20
21
|
audioStreamStatus: AudioStreamStatus;
|
|
21
22
|
createdAt: string;
|
|
@@ -66,6 +67,7 @@ export interface UpdateSessionDto {
|
|
|
66
67
|
summary?: string;
|
|
67
68
|
sessionName?: string;
|
|
68
69
|
patientName?: string;
|
|
70
|
+
integrationMeta?: any;
|
|
69
71
|
summaryStatus?: SummaryStatus;
|
|
70
72
|
audioStreamStatus?: AudioStreamStatus;
|
|
71
73
|
primaryTranscriptionSummaryId?: string;
|