@onereach/types-hitl-api 0.0.45-rc.1 → 0.0.45-rc.3

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.
@@ -12,16 +12,27 @@ export interface IUpdateSettingsQuery extends ITargetAccountId {
12
12
  export interface IGetSettingsQuery extends IUpdateSettingsQuery {
13
13
  /** Skip this argument to return all saved settings */
14
14
  readonly categories?: string[];
15
+ readonly ignoreRuleTags?: boolean;
15
16
  }
16
17
  export interface IGetOrUpdateSettingsResponse {
17
18
  readonly data: Record<string, ISettings | ISettings[]>;
18
19
  }
20
+ export interface IUpdateSettings<Data = any> {
21
+ readonly category: string;
22
+ readonly categoryItemId?: string;
23
+ readonly ruleTags?: string[];
24
+ readonly data: Data;
25
+ }
19
26
  /**
20
27
  * Multiple categories can be updated or created in a single request
21
28
  * by providing { "avatar": { ... }, "notifications": { ... }, ... } using data
22
29
  * or pass array of settings with additional fields categoryItemId and ruleTags using settings
23
30
  */
24
31
  export interface IUpdateSettingsBody<Data = any> {
25
- readonly settings?: Omit<ISettings<Data>, 'userId'>[];
32
+ readonly settings?: IUpdateSettings[];
26
33
  readonly data?: Record<string, Data>;
27
34
  }
35
+ export interface IDeleteSettingQuery extends IUpdateSettingsQuery {
36
+ readonly category: string;
37
+ readonly categoryItemId?: string;
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.45-rc.1",
3
+ "version": "0.0.45-rc.3",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",