@onereach/types-hitl-api 0.0.30-rc.2 → 0.0.30

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.
Files changed (55) hide show
  1. package/dist/types/constants/{api.d.ts → index.d.ts} +0 -5
  2. package/dist/types/constants/{api.js → index.js} +2 -8
  3. package/dist/types/constants/index.js.map +1 -0
  4. package/dist/types/index.types.d.ts +2 -2
  5. package/dist/types/index.types.js +2 -2
  6. package/dist/types/index.types.js.map +1 -1
  7. package/dist/types/interfaces/{api/agents.d.ts → agents.d.ts} +1 -1
  8. package/dist/types/interfaces/{api/agents.js → agents.js} +0 -0
  9. package/dist/types/interfaces/{api/agents.js.map → agents.js.map} +1 -1
  10. package/dist/types/interfaces/{api/canned-messages.d.ts → canned-messages.d.ts} +8 -8
  11. package/dist/types/interfaces/{api/canned-messages.js → canned-messages.js} +0 -0
  12. package/dist/types/interfaces/canned-messages.js.map +1 -0
  13. package/dist/types/interfaces/{api/common.d.ts → common.d.ts} +0 -7
  14. package/dist/types/interfaces/{api/common.js → common.js} +0 -0
  15. package/dist/types/interfaces/{api/common.js.map → common.js.map} +1 -1
  16. package/dist/types/interfaces/{api/conferences.d.ts → conferences.d.ts} +5 -5
  17. package/dist/types/interfaces/{api/conferences.js → conferences.js} +0 -0
  18. package/dist/types/interfaces/conferences.js.map +1 -0
  19. package/dist/types/interfaces/{api/event-templates.d.ts → event-templates.d.ts} +2 -2
  20. package/dist/types/interfaces/{api/event-templates.js → event-templates.js} +0 -0
  21. package/dist/types/interfaces/event-templates.js.map +1 -0
  22. package/dist/types/interfaces/{api/filters.d.ts → filters.d.ts} +5 -5
  23. package/dist/types/interfaces/{api/filters.js → filters.js} +0 -0
  24. package/dist/types/interfaces/filters.js.map +1 -0
  25. package/dist/types/interfaces/{api/index.d.ts → index.types.d.ts} +4 -3
  26. package/dist/types/interfaces/{api/index.js → index.types.js} +6 -5
  27. package/dist/types/interfaces/index.types.js.map +1 -0
  28. package/dist/types/interfaces/{api/migrations.d.ts → migrations.d.ts} +0 -0
  29. package/dist/types/interfaces/{api/migrations.js → migrations.js} +0 -0
  30. package/dist/types/interfaces/migrations.js.map +1 -0
  31. package/dist/types/interfaces/{api/rule-groups.d.ts → rule-groups.d.ts} +3 -2
  32. package/dist/types/interfaces/{api/rule-groups.js → rule-groups.js} +0 -0
  33. package/dist/types/interfaces/rule-groups.js.map +1 -0
  34. package/dist/types/interfaces/{api/settings.d.ts → settings.d.ts} +2 -2
  35. package/dist/types/interfaces/{api/settings.js → settings.js} +0 -0
  36. package/dist/types/interfaces/settings.js.map +1 -0
  37. package/package.json +1 -1
  38. package/dist/types/constants/api.js.map +0 -1
  39. package/dist/types/interfaces/api/canned-messages.js.map +0 -1
  40. package/dist/types/interfaces/api/conferences.js.map +0 -1
  41. package/dist/types/interfaces/api/event-templates.js.map +0 -1
  42. package/dist/types/interfaces/api/filters.js.map +0 -1
  43. package/dist/types/interfaces/api/index.js.map +0 -1
  44. package/dist/types/interfaces/api/listeners.d.ts +0 -37
  45. package/dist/types/interfaces/api/listeners.js +0 -10
  46. package/dist/types/interfaces/api/listeners.js.map +0 -1
  47. package/dist/types/interfaces/api/migrations.js.map +0 -1
  48. package/dist/types/interfaces/api/rule-groups.js.map +0 -1
  49. package/dist/types/interfaces/api/session-events.d.ts +0 -24
  50. package/dist/types/interfaces/api/session-events.js +0 -3
  51. package/dist/types/interfaces/api/session-events.js.map +0 -1
  52. package/dist/types/interfaces/api/sessions.d.ts +0 -69
  53. package/dist/types/interfaces/api/sessions.js +0 -3
  54. package/dist/types/interfaces/api/sessions.js.map +0 -1
  55. package/dist/types/interfaces/api/settings.js.map +0 -1
@@ -3,11 +3,6 @@ export declare enum AGENT_STATUS {
3
3
  BUSY = "BUSY",
4
4
  OFFLINE = "OFFLINE"
5
5
  }
6
- export declare enum SESSION_STATUS {
7
- CLAIMED = "CLAIMED",
8
- ONGOING = "ONGOING",
9
- CLOSED = "CLOSED"
10
- }
11
6
  export declare enum CALL_MEMBER_STATUS {
12
7
  JOINED = "JOINED",
13
8
  CONNECTED = "CONNECTED",
@@ -1,18 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.APP_ERROR_TYPE = exports.CALL_MEMBER_TYPE = exports.CALL_MEMBER_STATUS = exports.SESSION_STATUS = exports.AGENT_STATUS = void 0;
3
+ exports.APP_ERROR_TYPE = exports.CALL_MEMBER_TYPE = exports.CALL_MEMBER_STATUS = exports.AGENT_STATUS = void 0;
4
4
  var AGENT_STATUS;
5
5
  (function (AGENT_STATUS) {
6
6
  AGENT_STATUS["AVAILABLE"] = "AVAILABLE";
7
7
  AGENT_STATUS["BUSY"] = "BUSY";
8
8
  AGENT_STATUS["OFFLINE"] = "OFFLINE";
9
9
  })(AGENT_STATUS = exports.AGENT_STATUS || (exports.AGENT_STATUS = {}));
10
- var SESSION_STATUS;
11
- (function (SESSION_STATUS) {
12
- SESSION_STATUS["CLAIMED"] = "CLAIMED";
13
- SESSION_STATUS["ONGOING"] = "ONGOING";
14
- SESSION_STATUS["CLOSED"] = "CLOSED";
15
- })(SESSION_STATUS = exports.SESSION_STATUS || (exports.SESSION_STATUS = {}));
16
10
  var CALL_MEMBER_STATUS;
17
11
  (function (CALL_MEMBER_STATUS) {
18
12
  CALL_MEMBER_STATUS["JOINED"] = "JOINED";
@@ -45,4 +39,4 @@ var APP_ERROR_TYPE;
45
39
  APP_ERROR_TYPE["MIGRATION_CONFLICT"] = "migrations-already-running";
46
40
  APP_ERROR_TYPE["MIGRATION_DATA_COPY"] = "migration-data-copy";
47
41
  })(APP_ERROR_TYPE = exports.APP_ERROR_TYPE || (exports.APP_ERROR_TYPE = {}));
48
- //# sourceMappingURL=api.js.map
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"}
@@ -1,2 +1,2 @@
1
- export * from './constants/api';
2
- export * from './interfaces/api';
1
+ export * from './constants';
2
+ export * from './interfaces/index.types';
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./constants/api"), exports);
18
- __exportStar(require("./interfaces/api"), exports);
17
+ __exportStar(require("./constants"), exports);
18
+ __exportStar(require("./interfaces/index.types"), exports);
19
19
  //# sourceMappingURL=index.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC"}
1
+ {"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2DAAyC"}
@@ -1,4 +1,4 @@
1
- import { AGENT_STATUS } from '@/constants/api';
1
+ import { AGENT_STATUS } from '../constants';
2
2
  export interface IAgentStatus {
3
3
  readonly agentId?: string;
4
4
  readonly status: AGENT_STATUS;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../../src/interfaces/api/agents.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/interfaces/agents.ts"],"names":[],"mappings":""}
@@ -1,12 +1,12 @@
1
1
  import { ITargetAccountId, ITargetUserId, ITimestamps } from './common';
2
- export interface ICannedMessage extends ITimestamps {
2
+ export interface ICannedMessagesModel extends ITimestamps {
3
3
  readonly id: string;
4
4
  readonly category: string;
5
5
  readonly text: string;
6
- readonly userId: string;
7
- readonly label: string;
8
- readonly ruleTags: string[];
9
- readonly attachments: ICannedMessageAttachment[];
6
+ readonly userId?: string;
7
+ readonly label?: string;
8
+ readonly ruleTags?: string[];
9
+ readonly attachments?: ICannedMessageAttachment[];
10
10
  }
11
11
  export interface ICannedMessageAttachment {
12
12
  readonly key: string;
@@ -18,14 +18,14 @@ export interface IGetCannedMessagesQuery extends ITargetAccountId, ITargetUserId
18
18
  readonly ignoreRuleTags?: boolean;
19
19
  }
20
20
  export interface IGetCannedMessagesResponse {
21
- readonly data: ICannedMessage[];
21
+ readonly data: ICannedMessagesModel[];
22
22
  }
23
23
  export interface ICreateCannedMessageQuery extends ITargetAccountId, ITargetUserId {
24
24
  readonly isCommon?: boolean;
25
25
  }
26
- export declare type ICreateCannedMessageBody = Pick<ICannedMessage, 'category' | 'text'> & Pick<Partial<ICannedMessage>, 'label' | 'ruleTags' | 'attachments'>;
26
+ export declare type ICreateCannedMessageBody = Pick<ICannedMessagesModel, 'category' | 'text'> & Pick<Partial<ICannedMessagesModel>, 'label' | 'ruleTags' | 'attachments'>;
27
27
  export declare type IUpdateCannedMessageQuery = ITargetAccountId;
28
- export declare type IUpdateCannedMessageBody = Pick<ICannedMessage, 'id'> & Omit<Partial<ICannedMessage>, 'id' | 'userId'>;
28
+ export declare type IUpdateCannedMessageBody = Pick<ICannedMessagesModel, 'id'> & Omit<Partial<ICannedMessagesModel>, 'id' | 'userId'>;
29
29
  export interface IDeleteCannedMessageQuery {
30
30
  readonly id: string;
31
31
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canned-messages.js","sourceRoot":"","sources":["../../../src/interfaces/canned-messages.ts"],"names":[],"mappings":""}
@@ -15,10 +15,3 @@ export interface ITargetAccountId {
15
15
  export interface ITargetUserId {
16
16
  readonly agentId?: string;
17
17
  }
18
- export interface IPageOptions {
19
- readonly gt?: string;
20
- readonly gte?: string;
21
- readonly lt?: string;
22
- readonly lte?: string;
23
- readonly uniqueId?: string;
24
- }
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/interfaces/api/common.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/interfaces/common.ts"],"names":[],"mappings":""}
@@ -1,13 +1,13 @@
1
1
  import { ITargetAccountId } from './common';
2
- import { CALL_MEMBER_STATUS, CALL_MEMBER_TYPE } from '@/constants/api';
3
- export interface IConferenceMember {
2
+ import { CALL_MEMBER_STATUS, CALL_MEMBER_TYPE } from '../constants';
3
+ export interface IConferencesModel {
4
4
  readonly hitlSessionId: string;
5
5
  readonly memberId: string;
6
6
  readonly identifier: string;
7
7
  readonly type: CALL_MEMBER_TYPE;
8
8
  readonly status: CALL_MEMBER_STATUS;
9
9
  readonly state: IConferenceMemberState;
10
- readonly joinedAt: Date;
10
+ readonly joinedAt?: Date;
11
11
  readonly disconnectedAt?: Date;
12
12
  }
13
13
  export interface IConferenceMemberState {
@@ -19,10 +19,10 @@ export interface IGetConferenceMembersQuery extends ITargetAccountId {
19
19
  readonly memberId?: string;
20
20
  }
21
21
  export interface IGetConferenceMembersResponse {
22
- readonly data: IConferenceMember[];
22
+ readonly data: IConferencesModel[];
23
23
  }
24
24
  export declare type IAddOrUpdateConferenceMemberQuery = ITargetAccountId;
25
- export declare type IAddOrUpdateConferenceMemberBody = Pick<IConferenceMember, 'hitlSessionId' | 'memberId'> & Omit<Partial<IConferenceMember>, 'hitlSessionId' | 'memberId' | 'joinedAt'>;
25
+ export declare type IAddOrUpdateConferenceMemberBody = Pick<IConferencesModel, 'hitlSessionId' | 'memberId'> & Omit<Partial<IConferencesModel>, 'hitlSessionId' | 'memberId' | 'joinedAt'>;
26
26
  export interface ICleanUpConferenceQuery extends ITargetAccountId {
27
27
  readonly memberId?: string;
28
28
  readonly hitlSessionId?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conferences.js","sourceRoot":"","sources":["../../../src/interfaces/conferences.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { ITargetAccountId } from './common';
2
- export interface IEventTemplate {
2
+ export interface IEventTemplatesModel {
3
3
  readonly templateId: string;
4
4
  readonly eventType: string;
5
5
  readonly rule: string;
@@ -17,7 +17,7 @@ export interface IGetEventTemplatesQuery extends ITargetAccountId {
17
17
  readonly templateId?: string;
18
18
  }
19
19
  export interface IGetEventTemplatesResponse {
20
- readonly data: IEventTemplate[];
20
+ readonly data: IEventTemplatesModel[];
21
21
  }
22
22
  export declare type ICreateEventTemplateQuery = ITargetAccountId;
23
23
  export interface ICreateEventTemplateBody {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-templates.js","sourceRoot":"","sources":["../../../src/interfaces/event-templates.ts"],"names":[],"mappings":""}
@@ -1,22 +1,22 @@
1
1
  import { JSONType, ITimestamps, ITargetAccountId, ITargetUserId } from './common';
2
- export interface IFilter<T = JSONType> extends ITimestamps {
2
+ export interface IFiltersModel<T = JSONType> extends ITimestamps {
3
3
  readonly id: string;
4
- readonly userId: string;
4
+ readonly userId?: string;
5
5
  readonly name: string;
6
6
  readonly settings: T;
7
7
  readonly order: number;
8
- readonly isDefault: boolean;
8
+ readonly isDefault?: boolean;
9
9
  }
10
10
  export interface IGetFiltersQuery extends ITargetAccountId, ITargetUserId {
11
11
  readonly id?: string;
12
12
  }
13
13
  export interface IGetFiltersResponse {
14
- readonly data: IFilter[];
14
+ readonly data: IFiltersModel[];
15
15
  }
16
16
  export interface ICreateFilterQuery extends ITargetAccountId, ITargetUserId {
17
17
  readonly isCommon?: boolean;
18
18
  }
19
- export declare type ICreateFilterBody = Pick<IFilter, 'name' | 'settings' | 'order' | 'isDefault'>;
19
+ export declare type ICreateFilterBody = Pick<IFiltersModel, 'name' | 'settings' | 'order' | 'isDefault'>;
20
20
  export declare type IUpdateFilterQuery = ITargetAccountId;
21
21
  export interface IUpdateFilterBody extends Partial<ICreateFilterBody> {
22
22
  readonly id: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/interfaces/filters.ts"],"names":[],"mappings":""}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * TODO: Right now only includes types for available features.
3
+ * Should be removed later, when all features are enabled.
4
+ */
1
5
  export * from './common';
2
6
  export * as Settings from './settings';
3
7
  export * as Migrations from './migrations';
@@ -7,6 +11,3 @@ export * as EventTemplates from './event-templates';
7
11
  export * as Conferences from './conferences';
8
12
  export * as Filters from './filters';
9
13
  export * as CannedMessages from './canned-messages';
10
- export * as Listeners from './listeners';
11
- export * as Sessions from './sessions';
12
- export * as SessionEvents from './session-events';
@@ -26,7 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- 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.CannedMessages = exports.Filters = exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
30
+ /**
31
+ * TODO: Right now only includes types for available features.
32
+ * Should be removed later, when all features are enabled.
33
+ */
30
34
  __exportStar(require("./common"), exports);
31
35
  exports.Settings = __importStar(require("./settings"));
32
36
  exports.Migrations = __importStar(require("./migrations"));
@@ -36,7 +40,4 @@ exports.EventTemplates = __importStar(require("./event-templates"));
36
40
  exports.Conferences = __importStar(require("./conferences"));
37
41
  exports.Filters = __importStar(require("./filters"));
38
42
  exports.CannedMessages = __importStar(require("./canned-messages"));
39
- exports.Listeners = __importStar(require("./listeners"));
40
- exports.Sessions = __importStar(require("./sessions"));
41
- exports.SessionEvents = __importStar(require("./session-events"));
42
- //# sourceMappingURL=index.js.map
43
+ //# 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;AACrC,oEAAoD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../src/interfaces/migrations.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { ITimestamps, ITargetAccountId } from './common';
2
- export interface IRuleGroup extends ITimestamps {
2
+ export interface IRuleGroupsModel extends ITimestamps {
3
3
  readonly groupId: string;
4
4
  readonly name: string;
5
5
  readonly rules: string[];
@@ -7,6 +7,7 @@ export interface IRuleGroup extends ITimestamps {
7
7
  export interface ISearchRuleGroupsQuery extends ITargetAccountId {
8
8
  readonly groupId?: string;
9
9
  readonly search?: string;
10
+ readonly searchBy?: string[];
10
11
  readonly offset?: number;
11
12
  readonly limit?: number;
12
13
  readonly orderBy?: string;
@@ -18,7 +19,7 @@ export interface ISearchRuleGroupsBody {
18
19
  readonly groupIdList?: string[];
19
20
  }
20
21
  export interface ISearchRuleGroupsResponse {
21
- readonly data: IRuleGroup[];
22
+ readonly data: IRuleGroupsModel[];
22
23
  }
23
24
  export declare type ICreateRuleGroupQuery = ITargetAccountId;
24
25
  export interface ICreateRuleGroupBody {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-groups.js","sourceRoot":"","sources":["../../../src/interfaces/rule-groups.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { ITargetAccountId, JSONType } from './common';
2
- export interface ISettings {
2
+ export interface ISettingsModel {
3
3
  readonly category: string;
4
4
  readonly userId: string;
5
5
  readonly data: JSONType;
@@ -12,7 +12,7 @@ export interface IGetSettingsQuery extends IUpdateSettingsQuery {
12
12
  readonly categories?: string[];
13
13
  }
14
14
  export interface IGetOrUpdateSettingsResponse {
15
- readonly data: Record<string, ISettings>;
15
+ readonly data: Record<string, ISettingsModel>;
16
16
  }
17
17
  /**
18
18
  * Multiple categories can be updated or created in a single request
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/interfaces/settings.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.30-rc.2",
3
+ "version": "0.0.30",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",
@@ -1 +0,0 @@
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,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"canned-messages.js","sourceRoot":"","sources":["../../../../src/interfaces/api/canned-messages.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"conferences.js","sourceRoot":"","sources":["../../../../src/interfaces/api/conferences.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-templates.js","sourceRoot":"","sources":["../../../../src/interfaces/api/event-templates.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../src/interfaces/api/filters.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
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"}
@@ -1,37 +0,0 @@
1
- import { ChannelType } from '@onereach/orbes/services/channels/channel';
2
- import { ITargetAccountId, ITargetUserId, ITimestamps } from './common';
3
- export interface IListener extends ITimestamps {
4
- readonly callbackId: string;
5
- readonly callback: IListenerCallback;
6
- readonly hitlSessionIds: string[];
7
- readonly type: CALLBACK_TYPE;
8
- readonly userId: string;
9
- readonly version: string;
10
- }
11
- /** Implicitly inherits ChannelTarget interface from Orbes */
12
- export interface IListenerCallback {
13
- readonly type: ChannelType;
14
- readonly expire?: number;
15
- readonly name?: string;
16
- readonly v: 0;
17
- readonly appId?: string;
18
- readonly deviceId?: number;
19
- }
20
- export declare enum CALLBACK_TYPE {
21
- CALLBACK = "callback",
22
- EVENT = "event",
23
- APPS = "apps"
24
- }
25
- export interface IGetListenersQuery extends ITargetAccountId, ITargetUserId {
26
- readonly callbackId?: string;
27
- }
28
- export interface IGetListenersResponse {
29
- readonly data: IListener[];
30
- }
31
- export declare type ICreateListenerQuery = ITargetAccountId & ITargetUserId;
32
- export declare type ICreateListenerBody = Pick<IListener, 'callback'> & Pick<Partial<IListener>, 'type' | 'version' | 'hitlSessionIds'>;
33
- export declare type IUpdateListenerQuery = ITargetAccountId;
34
- export declare type IUpdateListenerBody = Pick<IListener, 'callbackId' | 'hitlSessionIds'>;
35
- export interface IDeleteListenerQuery extends ITargetAccountId {
36
- readonly callbackId: string;
37
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CALLBACK_TYPE = void 0;
4
- var CALLBACK_TYPE;
5
- (function (CALLBACK_TYPE) {
6
- CALLBACK_TYPE["CALLBACK"] = "callback";
7
- CALLBACK_TYPE["EVENT"] = "event";
8
- CALLBACK_TYPE["APPS"] = "apps";
9
- })(CALLBACK_TYPE = exports.CALLBACK_TYPE || (exports.CALLBACK_TYPE = {}));
10
- //# sourceMappingURL=listeners.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listeners.js","sourceRoot":"","sources":["../../../../src/interfaces/api/listeners.ts"],"names":[],"mappings":";;;AAsBA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../../src/interfaces/api/migrations.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rule-groups.js","sourceRoot":"","sources":["../../../../src/interfaces/api/rule-groups.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- import { ITargetAccountId, JSONType } from './common';
2
- export interface ISessionEvent {
3
- readonly eventId: string;
4
- readonly accountId?: string;
5
- readonly botId?: string;
6
- readonly event: string;
7
- readonly eventCategory: string;
8
- readonly eventValue: JSONType;
9
- readonly flowId?: string;
10
- readonly hitlSessionId: string;
11
- readonly notify: boolean;
12
- readonly sessionId?: string;
13
- readonly stepId?: string;
14
- readonly tags: JSONType;
15
- readonly timestamp: string;
16
- readonly transactionId?: string;
17
- readonly version?: number;
18
- }
19
- export interface IGetSessionEventsQuery extends ITargetAccountId {
20
- readonly hitlSessionId: string;
21
- }
22
- export interface IGetSessionEventsResponse {
23
- readonly data: ISessionEvent[];
24
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=session-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session-events.js","sourceRoot":"","sources":["../../../../src/interfaces/api/session-events.ts"],"names":[],"mappings":""}
@@ -1,69 +0,0 @@
1
- import { JSONType, ITimestamps, ITargetAccountId, ITargetUserId, IPageOptions } from './common';
2
- import { SESSION_STATUS } from '@/constants/api';
3
- export interface ISession extends ITimestamps {
4
- readonly hitlSessionId: string;
5
- readonly claimedBy: string[];
6
- readonly claimedByHistory: string[];
7
- readonly contactId: string;
8
- readonly closedAt?: string;
9
- readonly isArchived: boolean;
10
- readonly needsAction: boolean;
11
- readonly needsActionFrom: string[];
12
- readonly contactVisibilityTags: string[];
13
- readonly meta?: JSONType;
14
- readonly transferToBot?: ITransferToBot;
15
- readonly ruleTags: string[];
16
- readonly commands: ICommand[];
17
- readonly status: SESSION_STATUS;
18
- readonly tags: string[];
19
- readonly transcripts?: string;
20
- readonly eventTimestamp?: Date;
21
- readonly type: string;
22
- }
23
- export interface ITransferToBot {
24
- readonly formSchema: JSONType;
25
- readonly actions: string[];
26
- readonly buttonName: string;
27
- }
28
- export interface ICommand {
29
- readonly params: ICommandParam[];
30
- readonly name: string;
31
- readonly ruleTags: string[];
32
- readonly allowUnclaimed: boolean;
33
- }
34
- interface ICommandParam {
35
- readonly properties: ICommandParamProperties;
36
- readonly name: string;
37
- }
38
- interface ICommandParamProperties {
39
- readonly source: string;
40
- readonly type: string;
41
- readonly options: string[];
42
- readonly queryParams: JSONType;
43
- }
44
- export interface IGetSessionByIdOptions {
45
- readonly accountId: string;
46
- readonly hitlSessionId: string;
47
- readonly agentId: string;
48
- readonly projection?: string[];
49
- }
50
- export interface IGetSessionsOptions {
51
- readonly accountId: string;
52
- readonly agentId: string;
53
- readonly contactId?: string;
54
- readonly projection?: string[];
55
- readonly limit?: number;
56
- readonly status?: string[];
57
- readonly order?: string;
58
- readonly orderBy?: string;
59
- readonly page?: IPageOptions;
60
- }
61
- export declare type IGetSessionsQuery = IGetSessionByIdOptions & IGetSessionsOptions & ITargetAccountId & ITargetUserId;
62
- export interface IGetSessionsResponse {
63
- readonly data: ISession[];
64
- readonly page?: {
65
- readonly value: string;
66
- readonly uniqueId?: string;
67
- };
68
- }
69
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=sessions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../../src/interfaces/api/sessions.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interfaces/api/settings.ts"],"names":[],"mappings":""}