whio-api-sdk 1.0.238-beta-staging → 1.0.239-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/session.module.d.ts +2 -1
- package/dist/src/sdk/modules/session.module.js +5 -0
- package/dist/src/sdk/sdk.d.ts +1 -0
- package/dist/src/sdk/sdk.js +5 -0
- package/dist/src/sdk/types/session.types.d.ts +4 -0
- package/package.json +1 -1
- package/src/sdk/modules/session.module.ts +5 -1
- package/src/sdk/sdk.ts +4 -0
- package/src/sdk/types/session.types.ts +5 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient } from './base-client';
|
|
2
|
-
import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto } from '../types';
|
|
2
|
+
import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto, ForwardToTiakiResponse } from '../types';
|
|
3
3
|
export declare class SessionModule extends BaseClient {
|
|
4
4
|
createSession(sessionData: CreateSessionDto): Promise<Session>;
|
|
5
5
|
getSessions(): Promise<Session[]>;
|
|
@@ -14,4 +14,5 @@ export declare class SessionModule extends BaseClient {
|
|
|
14
14
|
sessionId: string;
|
|
15
15
|
}>;
|
|
16
16
|
setAudioStreamStatus(data: SetAudioStreamStatusDto): Promise<Session>;
|
|
17
|
+
forwardToTiaki(sessionId: string): Promise<ForwardToTiakiResponse>;
|
|
17
18
|
}
|
|
@@ -60,4 +60,9 @@ export class SessionModule extends BaseClient {
|
|
|
60
60
|
return this.request(`${urls.sessions}/set-audio-stream-status`, 'PATCH', data);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
+
forwardToTiaki(sessionId) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
return this.request(`${urls.sessions}/forward-to-tiaki/${sessionId}`, 'POST');
|
|
66
|
+
});
|
|
67
|
+
}
|
|
63
68
|
}
|
package/dist/src/sdk/sdk.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export declare class ApiSDK extends BaseClient {
|
|
|
131
131
|
sessionId: string;
|
|
132
132
|
}>;
|
|
133
133
|
setAudioStreamStatus(...args: Parameters<SessionModule['setAudioStreamStatus']>): Promise<import("./types").Session>;
|
|
134
|
+
forwardToTiaki(...args: Parameters<SessionModule['forwardToTiaki']>): Promise<import("./types").ForwardToTiakiResponse>;
|
|
134
135
|
createAgent(...args: Parameters<AgentModule['createAgent']>): Promise<import("./types").Agent>;
|
|
135
136
|
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").Agent[]>;
|
|
136
137
|
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").Agent>;
|
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -516,6 +516,11 @@ export class ApiSDK extends BaseClient {
|
|
|
516
516
|
return this.sessions.setAudioStreamStatus(...args);
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
+
forwardToTiaki(...args) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
521
|
+
return this.sessions.forwardToTiaki(...args);
|
|
522
|
+
});
|
|
523
|
+
}
|
|
519
524
|
// Agent methods
|
|
520
525
|
createAgent(...args) {
|
|
521
526
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient } from './base-client';
|
|
2
|
-
import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto } from '../types';
|
|
2
|
+
import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto, ForwardToTiakiResponse } from '../types';
|
|
3
3
|
import urls from '../urls';
|
|
4
4
|
|
|
5
5
|
export class SessionModule extends BaseClient {
|
|
@@ -42,4 +42,8 @@ export class SessionModule extends BaseClient {
|
|
|
42
42
|
public async setAudioStreamStatus(data: SetAudioStreamStatusDto): Promise<Session> {
|
|
43
43
|
return this.request<Session>(`${urls.sessions}/set-audio-stream-status`, 'PATCH', data);
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
public async forwardToTiaki(sessionId: string): Promise<ForwardToTiakiResponse> {
|
|
47
|
+
return this.request<ForwardToTiakiResponse>(`${urls.sessions}/forward-to-tiaki/${sessionId}`, 'POST');
|
|
48
|
+
}
|
|
45
49
|
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -462,6 +462,10 @@ export class ApiSDK extends BaseClient {
|
|
|
462
462
|
return this.sessions.setAudioStreamStatus(...args);
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
+
public async forwardToTiaki(...args: Parameters<SessionModule['forwardToTiaki']>) {
|
|
466
|
+
return this.sessions.forwardToTiaki(...args);
|
|
467
|
+
}
|
|
468
|
+
|
|
465
469
|
// Agent methods
|
|
466
470
|
public async createAgent(...args: Parameters<AgentModule['createAgent']>) {
|
|
467
471
|
return this.agents.createAgent(...args);
|