@onereach/types-hitl-api 0.0.18 → 0.0.21
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/index.d.ts +12 -0
- package/dist/types/constants/index.js +42 -0
- package/dist/types/constants/index.js.map +1 -0
- package/dist/types/index.types.js +15 -0
- package/dist/types/index.types.js.map +1 -0
- package/dist/types/interfaces/agents.js +3 -0
- package/dist/types/interfaces/agents.js.map +1 -0
- package/dist/types/interfaces/common.d.ts +3 -3
- package/dist/types/interfaces/common.js +3 -0
- package/dist/types/interfaces/common.js.map +1 -0
- package/dist/types/interfaces/conferences.js +3 -0
- package/dist/types/interfaces/conferences.js.map +1 -0
- package/dist/types/interfaces/event-templates.js +3 -0
- package/dist/types/interfaces/event-templates.js.map +1 -0
- package/dist/types/interfaces/filters.d.ts +26 -0
- package/dist/types/interfaces/filters.js +3 -0
- package/dist/types/interfaces/filters.js.map +1 -0
- package/dist/types/interfaces/index.types.d.ts +1 -0
- package/dist/types/interfaces/index.types.js +38 -0
- package/dist/types/interfaces/index.types.js.map +1 -0
- package/dist/types/interfaces/migrations.js +3 -0
- package/dist/types/interfaces/migrations.js.map +1 -0
- package/dist/types/interfaces/rule-groups.js +3 -0
- package/dist/types/interfaces/rule-groups.js.map +1 -0
- package/dist/types/interfaces/settings.js +3 -0
- package/dist/types/interfaces/settings.js.map +1 -0
- package/package.json +3 -2
|
@@ -7,6 +7,8 @@ export declare enum CALL_MEMBER_STATUS {
|
|
|
7
7
|
JOINED = "JOINED",
|
|
8
8
|
CONNECTED = "CONNECTED",
|
|
9
9
|
RINGING = "RINGING",
|
|
10
|
+
PICKED_UP = "PICKED_UP",
|
|
11
|
+
ANSWERED = "ANSWERED",
|
|
10
12
|
ON_HOLD = "ON_HOLD",
|
|
11
13
|
MUTED = "MUTED",
|
|
12
14
|
ERROR = "ERROR",
|
|
@@ -20,3 +22,13 @@ export declare enum CALL_MEMBER_TYPE {
|
|
|
20
22
|
CONTACT = "contact",
|
|
21
23
|
THIRD_PARTY = "3rd_party"
|
|
22
24
|
}
|
|
25
|
+
export declare enum APP_ERROR_TYPE {
|
|
26
|
+
INTERNAL = "internal",
|
|
27
|
+
NOT_FOUND = "not-found",
|
|
28
|
+
BAD_REQUEST = "bad-request",
|
|
29
|
+
NOT_UNIQUE = "not-unique",
|
|
30
|
+
DB_VALIDATION = "database-validation",
|
|
31
|
+
INPUT_VALIDATION = "input-validation",
|
|
32
|
+
MIGRATION_CONFLICT = "migrations-already-running",
|
|
33
|
+
MIGRATION_DATA_COPY = "migration-data-copy"
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APP_ERROR_TYPE = exports.CALL_MEMBER_TYPE = exports.CALL_MEMBER_STATUS = exports.AGENT_STATUS = void 0;
|
|
4
|
+
var AGENT_STATUS;
|
|
5
|
+
(function (AGENT_STATUS) {
|
|
6
|
+
AGENT_STATUS["AVAILABLE"] = "AVAILABLE";
|
|
7
|
+
AGENT_STATUS["BUSY"] = "BUSY";
|
|
8
|
+
AGENT_STATUS["OFFLINE"] = "OFFLINE";
|
|
9
|
+
})(AGENT_STATUS = exports.AGENT_STATUS || (exports.AGENT_STATUS = {}));
|
|
10
|
+
var CALL_MEMBER_STATUS;
|
|
11
|
+
(function (CALL_MEMBER_STATUS) {
|
|
12
|
+
CALL_MEMBER_STATUS["JOINED"] = "JOINED";
|
|
13
|
+
CALL_MEMBER_STATUS["CONNECTED"] = "CONNECTED";
|
|
14
|
+
CALL_MEMBER_STATUS["RINGING"] = "RINGING";
|
|
15
|
+
CALL_MEMBER_STATUS["PICKED_UP"] = "PICKED_UP";
|
|
16
|
+
CALL_MEMBER_STATUS["ANSWERED"] = "ANSWERED";
|
|
17
|
+
CALL_MEMBER_STATUS["ON_HOLD"] = "ON_HOLD";
|
|
18
|
+
CALL_MEMBER_STATUS["MUTED"] = "MUTED";
|
|
19
|
+
CALL_MEMBER_STATUS["ERROR"] = "ERROR";
|
|
20
|
+
CALL_MEMBER_STATUS["BUSY"] = "BUSY";
|
|
21
|
+
CALL_MEMBER_STATUS["NOT_CONNECTED"] = "NOT_CONNECTED";
|
|
22
|
+
CALL_MEMBER_STATUS["DISCONNECTED"] = "DISCONNECTED";
|
|
23
|
+
CALL_MEMBER_STATUS["HANG_UP"] = "HANG_UP";
|
|
24
|
+
})(CALL_MEMBER_STATUS = exports.CALL_MEMBER_STATUS || (exports.CALL_MEMBER_STATUS = {}));
|
|
25
|
+
var CALL_MEMBER_TYPE;
|
|
26
|
+
(function (CALL_MEMBER_TYPE) {
|
|
27
|
+
CALL_MEMBER_TYPE["AGENT"] = "agent";
|
|
28
|
+
CALL_MEMBER_TYPE["CONTACT"] = "contact";
|
|
29
|
+
CALL_MEMBER_TYPE["THIRD_PARTY"] = "3rd_party";
|
|
30
|
+
})(CALL_MEMBER_TYPE = exports.CALL_MEMBER_TYPE || (exports.CALL_MEMBER_TYPE = {}));
|
|
31
|
+
var APP_ERROR_TYPE;
|
|
32
|
+
(function (APP_ERROR_TYPE) {
|
|
33
|
+
APP_ERROR_TYPE["INTERNAL"] = "internal";
|
|
34
|
+
APP_ERROR_TYPE["NOT_FOUND"] = "not-found";
|
|
35
|
+
APP_ERROR_TYPE["BAD_REQUEST"] = "bad-request";
|
|
36
|
+
APP_ERROR_TYPE["NOT_UNIQUE"] = "not-unique";
|
|
37
|
+
APP_ERROR_TYPE["DB_VALIDATION"] = "database-validation";
|
|
38
|
+
APP_ERROR_TYPE["INPUT_VALIDATION"] = "input-validation";
|
|
39
|
+
APP_ERROR_TYPE["MIGRATION_CONFLICT"] = "migrations-already-running";
|
|
40
|
+
APP_ERROR_TYPE["MIGRATION_DATA_COPY"] = "migration-data-copy";
|
|
41
|
+
})(APP_ERROR_TYPE = exports.APP_ERROR_TYPE || (exports.APP_ERROR_TYPE = {}));
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.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,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,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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./constants"), exports);
|
|
14
|
+
__exportStar(require("./interfaces/index.types"), exports);
|
|
15
|
+
//# sourceMappingURL=index.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2DAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/interfaces/agents.ts"],"names":[],"mappings":""}
|
|
@@ -2,13 +2,13 @@ export declare type JSONProperty = string | boolean | number | null;
|
|
|
2
2
|
export declare type JSONType = JSONType[] | {
|
|
3
3
|
[key: string]: JSONProperty | JSONType;
|
|
4
4
|
};
|
|
5
|
-
export interface IDefaultPrimaryKey {
|
|
6
|
-
readonly id: number;
|
|
7
|
-
}
|
|
8
5
|
export interface ITimestamps {
|
|
9
6
|
readonly createdAt?: Date;
|
|
10
7
|
readonly updatedAt?: Date;
|
|
11
8
|
}
|
|
9
|
+
export interface IDefaultPrimaryKey {
|
|
10
|
+
readonly id: number;
|
|
11
|
+
}
|
|
12
12
|
export interface ITargetAccountId {
|
|
13
13
|
readonly accountId?: string;
|
|
14
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/interfaces/common.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conferences.js","sourceRoot":"","sources":["../../../src/interfaces/conferences.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-templates.js","sourceRoot":"","sources":["../../../src/interfaces/event-templates.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSONType, ITimestamps, ITargetAccountId, ITargetUserId } from './common';
|
|
2
|
+
export interface IFiltersModel<T = JSONType> extends ITimestamps {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly userId?: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly settings: T;
|
|
7
|
+
readonly order: number;
|
|
8
|
+
readonly isDefault?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface IGetFiltersQuery extends ITargetAccountId, ITargetUserId {
|
|
11
|
+
readonly id?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IGetFiltersResponse {
|
|
14
|
+
readonly data: IFiltersModel[];
|
|
15
|
+
}
|
|
16
|
+
export interface ICreateFilterQuery extends ITargetAccountId, ITargetUserId {
|
|
17
|
+
readonly isCommon?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare type ICreateFilterBody = Pick<IFiltersModel, 'name' | 'settings' | 'order' | 'isDefault'>;
|
|
20
|
+
export declare type IUpdateFilterQuery = ITargetAccountId;
|
|
21
|
+
export interface IUpdateFilterBody extends Partial<ICreateFilterBody> {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IDeleteFilterQuery extends ITargetAccountId {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/interfaces/filters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
+
if (mod && mod.__esModule) return mod;
|
|
19
|
+
var result = {};
|
|
20
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
+
__setModuleDefault(result, mod);
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.Filters = exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
|
|
26
|
+
/**
|
|
27
|
+
* TODO: Right now only includes types for available features.
|
|
28
|
+
* Should be removed later, when all features are enabled.
|
|
29
|
+
*/
|
|
30
|
+
__exportStar(require("./common"), exports);
|
|
31
|
+
exports.Settings = __importStar(require("./settings"));
|
|
32
|
+
exports.Migrations = __importStar(require("./migrations"));
|
|
33
|
+
exports.Agents = __importStar(require("./agents"));
|
|
34
|
+
exports.RuleGroups = __importStar(require("./rule-groups"));
|
|
35
|
+
exports.EventTemplates = __importStar(require("./event-templates"));
|
|
36
|
+
exports.Conferences = __importStar(require("./conferences"));
|
|
37
|
+
exports.Filters = __importStar(require("./filters"));
|
|
38
|
+
//# sourceMappingURL=index.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../../src/interfaces/index.types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,uDAAuC;AACvC,2DAA2C;AAC3C,mDAAmC;AACnC,4DAA4C;AAC5C,oEAAoD;AACpD,6DAA6C;AAC7C,qDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../src/interfaces/migrations.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-groups.js","sourceRoot":"","sources":["../../../src/interfaces/rule-groups.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/interfaces/settings.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/types-hitl-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"author": "OneReach.ai",
|
|
5
|
-
"main": "dist/types/index.types.
|
|
5
|
+
"main": "dist/types/index.types.js",
|
|
6
|
+
"types": "dist/types/index.types.d.ts",
|
|
6
7
|
"files": [
|
|
7
8
|
"dist/types/**/*.*"
|
|
8
9
|
],
|