fix(core): update
This commit is contained in:
2
ts/index.ts
Normal file
2
ts/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './sio-interfaces.data';
|
||||
export * from './sio-interfaces.requests';
|
5
ts/interfaces.plugins.ts
Normal file
5
ts/interfaces.plugins.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
|
||||
|
||||
export {
|
||||
typedrequestInterfaces
|
||||
}
|
37
ts/sio-interfaces.data.ts
Normal file
37
ts/sio-interfaces.data.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import * as plugins from './interfaces.plugins';
|
||||
|
||||
// Basic Conversation
|
||||
export interface ISioConversationParty {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface ISioConversationBlock {
|
||||
partyId: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export interface ISioConversation {
|
||||
parties: ISioConversationParty[];
|
||||
conversationBlocks: ISioConversationBlock[];
|
||||
}
|
||||
|
||||
// Sessions
|
||||
export interface ISioSession {
|
||||
tenantId: string;
|
||||
active: boolean;
|
||||
abandoned: boolean;
|
||||
markedForDeletion: boolean;
|
||||
profileInfo?: {
|
||||
profileId: string;
|
||||
name: string;
|
||||
email: string;
|
||||
mobilePhone: string;
|
||||
|
||||
};
|
||||
conversations: ISioConversation[];
|
||||
}
|
||||
|
||||
// tenant
|
||||
export interface ISioTenant {}
|
39
ts/sio-interfaces.requests.ts
Normal file
39
ts/sio-interfaces.requests.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import * as plugins from './interfaces.plugins';
|
||||
|
||||
export interface IRequest_GetSocialSession extends plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IRequest_GetSocialSession
|
||||
> {
|
||||
method: 'getSocialSession';
|
||||
request: {
|
||||
existingSessionId?: string;
|
||||
};
|
||||
response: {
|
||||
newSessionId: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IRequest_AttachProfileId extends plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IRequest_AttachProfileId
|
||||
> {
|
||||
method: 'attachProfileId';
|
||||
request: {
|
||||
sessionId: string;
|
||||
profileId: string;
|
||||
};
|
||||
response: {
|
||||
newSessionId: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IRequest_GetConversations extends plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IRequest_GetConversations
|
||||
> {
|
||||
method: 'getConversations';
|
||||
request: {
|
||||
sessionId: string;
|
||||
};
|
||||
response: {};
|
||||
}
|
Reference in New Issue
Block a user