@onereach/types-hitl-api 0.0.35-rc.10 → 0.0.35-rc.12

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.
@@ -86,19 +86,24 @@ export interface IPutAgentRuleGroupsOptions {
86
86
  }
87
87
  export declare type IPutAgentRuleGroupsQuery = ISetAgentStatusQuery;
88
88
  export declare type IPutAgentRuleGroupsBody = Omit<IPutAgentRuleGroupsOptions, 'accountId' | 'agentId'>;
89
- export interface ISetAgentStatusOptions {
89
+ export interface IStatusChangeContext {
90
+ readonly actionType?: string;
91
+ readonly reason?: string;
92
+ readonly source?: string;
93
+ }
94
+ export interface ISetAgentStatusOptions<T extends IStatusChangeContext = IStatusChangeContext> {
90
95
  readonly accountId: string;
91
96
  readonly agentId: string;
92
97
  readonly statusData: Pick<IAgentStatus, 'status' | 'busyReason'>;
93
98
  readonly notifyStatusChange: boolean;
94
- readonly ctx?: object;
99
+ readonly statusChangeContext?: T;
95
100
  }
96
101
  export interface ISetAgentStatusQuery extends ITargetAccountId {
97
102
  agentId: string;
98
103
  }
99
104
  export declare type ISetAgentStatusBody = Omit<ISetAgentStatusOptions, 'accountId' | 'agentId'>;
100
105
  export declare type IUpdateAgentsStatusQuery = ITargetAccountId;
101
- export interface IUpdateAgentsStatusBody {
106
+ export interface IUpdateAgentsStatusBody<T extends IStatusChangeContext = IStatusChangeContext> {
102
107
  readonly query: string;
103
- readonly ctx?: object;
108
+ readonly statusChangeContext?: T;
104
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.35-rc.10",
3
+ "version": "0.0.35-rc.12",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",