@onereach/types-hitl-api 0.0.19 → 0.0.20
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/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 +2 -1
- package/dist/types/interfaces/index.types.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSONType, ITimestamps, ITargetAccountId, ITargetUserId } from './common';
|
|
2
|
+
export interface IFiltersModel extends ITimestamps {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly userId: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly settings: JSONType;
|
|
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, ITargetUserId {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/interfaces/filters.ts"],"names":[],"mappings":""}
|
|
@@ -22,7 +22,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
|
|
25
|
+
exports.Filters = exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
|
|
26
26
|
/**
|
|
27
27
|
* TODO: Right now only includes types for available features.
|
|
28
28
|
* Should be removed later, when all features are enabled.
|
|
@@ -34,4 +34,5 @@ exports.Agents = __importStar(require("./agents"));
|
|
|
34
34
|
exports.RuleGroups = __importStar(require("./rule-groups"));
|
|
35
35
|
exports.EventTemplates = __importStar(require("./event-templates"));
|
|
36
36
|
exports.Conferences = __importStar(require("./conferences"));
|
|
37
|
+
exports.Filters = __importStar(require("./filters"));
|
|
37
38
|
//# 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"}
|
|
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"}
|