@onereach/types-hitl-api 0.0.32-rc.4 → 0.0.32-rc.7
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/types/constants/api.d.ts +2 -0
- package/dist/types/constants/api.js +2 -0
- package/dist/types/constants/api.js.map +1 -1
- package/dist/types/interfaces/api/helpers.d.ts +21 -0
- package/dist/types/interfaces/api/helpers.js +3 -0
- package/dist/types/interfaces/api/helpers.js.map +1 -0
- package/dist/types/interfaces/api/index.d.ts +1 -0
- package/dist/types/interfaces/api/index.js +2 -1
- package/dist/types/interfaces/api/index.js.map +1 -1
- package/dist/types/interfaces/api/listeners.d.ts +6 -13
- package/dist/types/interfaces/api/listeners.js.map +1 -1
- package/dist/types/interfaces/api/sessions.d.ts +8 -8
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/constants/api.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,mCAAmB,CAAA;AACrB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,kBAaX;AAbD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,mCAAa,CAAA;IACb,qDAA+B,CAAA;IAC/B,mDAA6B,CAAA;IAC7B,yCAAmB,CAAA;AACrB,CAAC,EAbW,kBAAkB,GAA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CAAA;AACrB,CAAC,EAbW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAa7B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;AAC3B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,cASX;AATD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,6CAA2B,CAAA;IAC3B,2CAAyB,CAAA;IACzB,uDAAqC,CAAA;IACrC,uDAAqC,CAAA;IACrC,mEAAiD,CAAA;IACjD,6DAA2C,CAAA;AAC7C,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAED,oEAAoE;AACvD,QAAA,gBAAgB,GAAG;IAC9B,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,YAAY,EAAE,cAAc;CAC7B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IIdentifier {
|
|
2
|
+
readonly val: string;
|
|
3
|
+
readonly type: string[];
|
|
4
|
+
}
|
|
5
|
+
export interface IContact {
|
|
6
|
+
readonly contactId: string;
|
|
7
|
+
readonly name?: string;
|
|
8
|
+
readonly firstName?: string;
|
|
9
|
+
readonly lastName?: string;
|
|
10
|
+
readonly companyName?: string;
|
|
11
|
+
readonly phoneNumbers?: IIdentifier[];
|
|
12
|
+
readonly emails?: IIdentifier[];
|
|
13
|
+
readonly visibilityTags?: string[];
|
|
14
|
+
readonly tags?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface ICleanUpDuplicatesResponse {
|
|
17
|
+
[key: string]: {
|
|
18
|
+
originalContactId: string;
|
|
19
|
+
delContactIds: string[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/interfaces/api/helpers.ts"],"names":[],"mappings":""}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Commands = exports.Meta = exports.ReadEvents = exports.SessionEvents = exports.Sessions = exports.Listeners = exports.CannedMessages = exports.Filters = exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
|
|
29
|
+
exports.Helpers = exports.Commands = exports.Meta = exports.ReadEvents = exports.SessionEvents = exports.Sessions = exports.Listeners = exports.CannedMessages = exports.Filters = exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
|
|
30
30
|
__exportStar(require("./common"), exports);
|
|
31
31
|
exports.Settings = __importStar(require("./settings"));
|
|
32
32
|
exports.Migrations = __importStar(require("./migrations"));
|
|
@@ -42,4 +42,5 @@ exports.SessionEvents = __importStar(require("./session-events"));
|
|
|
42
42
|
exports.ReadEvents = __importStar(require("./read-events"));
|
|
43
43
|
exports.Meta = __importStar(require("./meta"));
|
|
44
44
|
exports.Commands = __importStar(require("./commands"));
|
|
45
|
+
exports.Helpers = __importStar(require("./helpers"));
|
|
45
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,uDAAuC;AACvC,2DAA2C;AAC3C,mDAAmC;AACnC,4DAA4C;AAC5C,oEAAoD;AACpD,6DAA6C;AAC7C,qDAAqC;AACrC,oEAAoD;AACpD,yDAAyC;AACzC,uDAAuC;AACvC,kEAAkD;AAClD,4DAA4C;AAC5C,+CAA+B;AAC/B,uDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,uDAAuC;AACvC,2DAA2C;AAC3C,mDAAmC;AACnC,4DAA4C;AAC5C,oEAAoD;AACpD,6DAA6C;AAC7C,qDAAqC;AACrC,oEAAoD;AACpD,yDAAyC;AACzC,uDAAuC;AACvC,kEAAkD;AAClD,4DAA4C;AAC5C,+CAA+B;AAC/B,uDAAuC;AACvC,qDAAqC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChannelType } from '@onereach/orbes/services/channels/channel';
|
|
2
|
-
import { ITargetAccountId, ITargetUserId, ITimestamps } from './common';
|
|
2
|
+
import { ITargetAccountId, ITargetUserId, ITimestamps, ICommonArrayResponse } from './common';
|
|
3
3
|
export interface IListener extends ITimestamps {
|
|
4
4
|
readonly callbackId: string;
|
|
5
5
|
readonly callback: IListenerCallback;
|
|
@@ -22,19 +22,12 @@ export declare enum CALLBACK_TYPE {
|
|
|
22
22
|
EVENT = "event",
|
|
23
23
|
APPS = "apps"
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export interface IGetListenersResponse {
|
|
29
|
-
readonly data: IListener[];
|
|
25
|
+
export declare type ITargetCallbackId = Partial<ICallbackId>;
|
|
26
|
+
export interface ICallbackId {
|
|
27
|
+
readonly callbackId: string;
|
|
30
28
|
}
|
|
29
|
+
export declare type IGetListenersQuery = ITargetAccountId & ITargetUserId;
|
|
30
|
+
export declare type IGetListenersResponse = ICommonArrayResponse<IListener>;
|
|
31
31
|
export declare type ICreateListenerQuery = ITargetAccountId & ITargetUserId;
|
|
32
32
|
export declare type ICreateListenerBody = Pick<IListener, 'callback'> & Pick<Partial<IListener>, 'type' | 'version' | 'sessionIds'>;
|
|
33
|
-
export declare type IUpdateListenerParams = Pick<IListener, 'callbackId'>;
|
|
34
|
-
export declare type IUpdateListenerQuery = ITargetAccountId;
|
|
35
33
|
export declare type IUpdateListenerBody = Pick<IListener, 'sessionIds'>;
|
|
36
|
-
export declare type IUpdateListenerOptions = IUpdateListenerParams & IUpdateListenerBody;
|
|
37
|
-
export declare type IDeleteListenerQuery = ITargetAccountId;
|
|
38
|
-
export interface IDeleteListenerParams {
|
|
39
|
-
readonly callbackId: string;
|
|
40
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listeners.js","sourceRoot":"","sources":["../../../../src/interfaces/api/listeners.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"listeners.js","sourceRoot":"","sources":["../../../../src/interfaces/api/listeners.ts"],"names":[],"mappings":";;;AA2BA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
|
|
@@ -32,11 +32,11 @@ export interface ICommand {
|
|
|
32
32
|
readonly ruleTags: string[];
|
|
33
33
|
readonly allowUnclaimed: boolean;
|
|
34
34
|
}
|
|
35
|
-
interface ICommandParam {
|
|
35
|
+
export interface ICommandParam {
|
|
36
36
|
readonly properties: ICommandParamProperties;
|
|
37
37
|
readonly name: string;
|
|
38
38
|
}
|
|
39
|
-
interface ICommandParamProperties {
|
|
39
|
+
export interface ICommandParamProperties {
|
|
40
40
|
readonly source: string;
|
|
41
41
|
readonly type: string;
|
|
42
42
|
readonly options: string[];
|
|
@@ -59,7 +59,8 @@ export interface IGetSessionsOptions {
|
|
|
59
59
|
readonly orderBy?: string;
|
|
60
60
|
readonly page?: IPageOptions;
|
|
61
61
|
}
|
|
62
|
-
export declare type IGetSessionsQuery =
|
|
62
|
+
export declare type IGetSessionsQuery = Partial<IGetSessionsOptions> & ITargetAccountId & ITargetUserId;
|
|
63
|
+
export declare type IGetSessionByIdQuery = Partial<IGetSessionByIdOptions> & ITargetAccountId & ITargetUserId;
|
|
63
64
|
export interface IGetSessionsResponse {
|
|
64
65
|
readonly data: ISession[];
|
|
65
66
|
readonly page?: {
|
|
@@ -100,7 +101,7 @@ export interface ISearchSessionsOptions {
|
|
|
100
101
|
readonly meta?: Record<string, string>;
|
|
101
102
|
readonly sessionsSearchOptions?: ISessionSearchOptions;
|
|
102
103
|
}
|
|
103
|
-
export declare type ISearchSessionsQuery = ISearchSessionsOptions & ITargetAccountId & ITargetUserId;
|
|
104
|
+
export declare type ISearchSessionsQuery = Partial<ISearchSessionsOptions> & ITargetAccountId & ITargetUserId;
|
|
104
105
|
export interface ISearchSessionsWithContactsResponse {
|
|
105
106
|
readonly data: ISession[];
|
|
106
107
|
readonly page?: {
|
|
@@ -128,19 +129,19 @@ export interface ISearchSessionsWithContactsOptions {
|
|
|
128
129
|
readonly sessionsSearchOptions?: ISessionSearchOptions;
|
|
129
130
|
readonly contactsSearchOptions?: IContactSearchOptions;
|
|
130
131
|
}
|
|
131
|
-
export declare type ISearchSessionsWithContactsQuery = ISearchSessionsWithContactsOptions & ITargetAccountId & ITargetUserId;
|
|
132
|
+
export declare type ISearchSessionsWithContactsQuery = Partial<ISearchSessionsWithContactsOptions> & ITargetAccountId & ITargetUserId;
|
|
132
133
|
export interface IGetQueueSessionOptions {
|
|
133
134
|
readonly accountId: string;
|
|
134
135
|
readonly agentId: string;
|
|
135
136
|
readonly ruleTags?: string[];
|
|
136
137
|
}
|
|
137
|
-
export declare type IGetQueueSessionQuery = IGetQueueSessionOptions & ITargetAccountId;
|
|
138
|
+
export declare type IGetQueueSessionQuery = Partial<IGetQueueSessionOptions> & ITargetAccountId;
|
|
138
139
|
export interface IGetQueueSessionResponse {
|
|
139
140
|
readonly data: ISession | null;
|
|
140
141
|
}
|
|
141
142
|
export declare type IGetInitTriggersResponse = ITriggersResponse[];
|
|
142
143
|
export interface IClaimSessionQuery extends ITargetAccountId {
|
|
143
|
-
readonly claimBy
|
|
144
|
+
readonly claimBy?: string[];
|
|
144
145
|
}
|
|
145
146
|
export interface IClaimSessionBody {
|
|
146
147
|
readonly params?: object;
|
|
@@ -159,4 +160,3 @@ export interface IInitConversationQuery extends ITargetAccountId {
|
|
|
159
160
|
export interface IInitConversationBody {
|
|
160
161
|
readonly params?: object;
|
|
161
162
|
}
|
|
162
|
-
export {};
|