@onereach/types-hitl-api 0.0.23 → 0.0.26

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.
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2DAAyC"}
1
+ {"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2DAAyC"}
@@ -0,0 +1,31 @@
1
+ import { ITargetAccountId, ITargetUserId, ITimestamps } from './common';
2
+ export interface ICannedMessagesModel extends ITimestamps {
3
+ readonly id: string;
4
+ readonly category: string;
5
+ readonly text: string;
6
+ readonly userId?: string;
7
+ readonly label?: string;
8
+ readonly ruleTags?: string[];
9
+ readonly attachments?: ICannedMessageAttachment[];
10
+ }
11
+ export interface ICannedMessageAttachment {
12
+ readonly key: string;
13
+ }
14
+ export interface IGetCannedMessagesQuery extends ITargetAccountId, ITargetUserId {
15
+ readonly id?: string;
16
+ readonly categories?: string[];
17
+ readonly isCommon?: boolean;
18
+ readonly ignoreRuleTags?: boolean;
19
+ }
20
+ export interface IGetCannedMessagesResponse {
21
+ readonly data: ICannedMessagesModel[];
22
+ }
23
+ export interface ICreateCannedMessageQuery extends ITargetAccountId, ITargetUserId {
24
+ readonly isCommon?: boolean;
25
+ }
26
+ export declare type ICreateCannedMessageBody = Pick<ICannedMessagesModel, 'category' | 'text'> & Pick<Partial<ICannedMessagesModel>, 'label' | 'ruleTags' | 'attachments'>;
27
+ export declare type IUpdateCannedMessageQuery = ITargetAccountId;
28
+ export declare type IUpdateCannedMessageBody = Pick<ICannedMessagesModel, 'id'> & Omit<Partial<ICannedMessagesModel>, 'id' | 'userId'>;
29
+ export interface IDeleteCannedMessageQuery {
30
+ readonly id: string;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=canned-messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canned-messages.js","sourceRoot":"","sources":["../../../src/interfaces/canned-messages.ts"],"names":[],"mappings":""}
@@ -10,3 +10,4 @@ export * as RuleGroups from './rule-groups';
10
10
  export * as EventTemplates from './event-templates';
11
11
  export * as Conferences from './conferences';
12
12
  export * as Filters from './filters';
13
+ export * as CannedMessages from './canned-messages';
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -22,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
26
  return result;
23
27
  };
24
28
  Object.defineProperty(exports, "__esModule", { value: true });
25
- 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;
26
30
  /**
27
31
  * TODO: Right now only includes types for available features.
28
32
  * Should be removed later, when all features are enabled.
@@ -35,4 +39,5 @@ exports.RuleGroups = __importStar(require("./rule-groups"));
35
39
  exports.EventTemplates = __importStar(require("./event-templates"));
36
40
  exports.Conferences = __importStar(require("./conferences"));
37
41
  exports.Filters = __importStar(require("./filters"));
42
+ exports.CannedMessages = __importStar(require("./canned-messages"));
38
43
  //# sourceMappingURL=index.types.js.map
@@ -1 +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"}
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"}
@@ -20,10 +20,12 @@ export interface ISearchRuleGroupsBody {
20
20
  export interface ISearchRuleGroupsResponse {
21
21
  readonly data: IRuleGroupsModel[];
22
22
  }
23
- export interface ICreateRuleGroupBody extends ITargetAccountId {
23
+ export declare type ICreateRuleGroupQuery = ITargetAccountId;
24
+ export interface ICreateRuleGroupBody {
24
25
  readonly name: string;
25
26
  readonly rules: string[];
26
27
  }
28
+ export declare type IUpdateRuleGroupQuery = ITargetAccountId;
27
29
  export interface IUpdateRuleGroupBody extends ICreateRuleGroupBody {
28
30
  readonly groupId: string;
29
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.23",
3
+ "version": "0.0.26",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",