@or-sdk/hitl 0.33.5-beta.1147.0 → 0.33.6-beta.1153.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.33.5](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.33.4...@or-sdk/hitl@0.33.5) (2023-03-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **hitl:** sessions types ([bab24fc](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/bab24fc531a68d66cbd379abc6474d9a71684eae))
12
+
13
+
14
+
6
15
  ## [0.33.4](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.33.3...@or-sdk/hitl@0.33.4) (2023-03-16)
7
16
 
8
17
 
@@ -3,15 +3,21 @@ import { ApiVersionOptions, NoAccountId } from './common';
3
3
  export type Session = IDateToString<Sessions.ISession>;
4
4
  export type TransferToBot = Sessions.ITransferToBot;
5
5
  export type Command = Sessions.ICommand;
6
- export type ICommandParam = Sessions.ICommandParam;
7
- export type ICommandParamProperties = Sessions.ICommandParamProperties;
6
+ export type CommandParam = Sessions.ICommandParam;
7
+ export type CommandParamProperties = Sessions.ICommandParamProperties;
8
8
  export type GetSessionsOptions = ApiVersionOptions & NoAccountId<Sessions.IGetSessionsQuery>;
9
- export type GetSessionsResponse = Sessions.IGetSessionsResponse;
9
+ export interface GetSessionsResponse extends Omit<Sessions.IGetSessionsResponse, 'data'> {
10
+ data: Session[];
11
+ }
10
12
  export type GetSessionByIdOptions = ApiVersionOptions & ISessionId & NoAccountId<Sessions.IGetSessionByIdQuery>;
11
13
  export type SearchSessionsOptions = ApiVersionOptions & NoAccountId<Sessions.ISearchSessionsQuery> & Sessions.ISearchSessionsBody;
12
- export type SearchSessionsResponse = Sessions.IGetSessionsResponse;
14
+ export interface SearchSessionsResponse extends Omit<Sessions.IGetSessionsResponse, 'data'> {
15
+ data: Session[];
16
+ }
13
17
  export type SearchSessionsWithContactsOptions = ApiVersionOptions & NoAccountId<Sessions.ISearchSessionsWithContactsQuery> & Sessions.ISearchSessionsWithContactsBody;
14
- export type SearchSessionsWithContactsResponse = Sessions.ISearchSessionsWithContactsResponse;
18
+ export interface SearchSessionsWithContactsResponse extends Omit<Sessions.ISearchSessionsWithContactsResponse, 'data'> {
19
+ data: Session[];
20
+ }
15
21
  export type GetQueueSessionOptions = ApiVersionOptions & NoAccountId<Sessions.IGetQueueSessionQuery>;
16
22
  export type GetQueueSessionResponse = Sessions.IGetQueueSessionResponse;
17
23
  export type ClaimSessionByAgentOptions = ApiVersionOptions & ISessionId & NoAccountId<Sessions.IClaimSessionQuery> & Sessions.IClaimSessionBody;
@@ -21,4 +27,8 @@ export type UpdateSessionOptions = ApiVersionOptions & ISessionId & Sessions.IUp
21
27
  export type CloseSessionOptions = ApiVersionOptions & ISessionId;
22
28
  export type GetInitTriggersOptions = ApiVersionOptions;
23
29
  export type GetInitTriggersResponse = Sessions.IGetInitTriggersResponse;
30
+ export interface TriggersResponse {
31
+ readonly label: string;
32
+ readonly value: string;
33
+ }
24
34
  //# sourceMappingURL=sessions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/types/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC;AACpD,MAAM,MAAM,OAAO,GA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B;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/hitl",
3
- "version": "0.33.5-beta.1147.0",
3
+ "version": "0.33.6-beta.1153.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "dev": "pnpm build:watch:esm"
18
18
  },
19
19
  "dependencies": {
20
- "@onereach/types-hitl-api": "0.0.41-rc.5",
21
- "@or-sdk/base": "^0.28.2-beta.1147.0",
20
+ "@onereach/types-hitl-api": "0.0.42-rc.1",
21
+ "@or-sdk/base": "^0.28.1",
22
22
  "@types/lodash": "^4.14.191",
23
23
  "@types/urijs": "^1.19.18",
24
24
  "urijs": "^1.19.8"
@@ -4,13 +4,16 @@ import { ApiVersionOptions, NoAccountId } from './common';
4
4
  export type Session = IDateToString<Sessions.ISession>;
5
5
  export type TransferToBot = Sessions.ITransferToBot;
6
6
  export type Command = Sessions.ICommand;
7
- export type ICommandParam = Sessions.ICommandParam;
8
- export type ICommandParamProperties = Sessions.ICommandParamProperties;
7
+ export type CommandParam = Sessions.ICommandParam;
8
+ export type CommandParamProperties = Sessions.ICommandParamProperties;
9
9
 
10
10
  /* eslint-disable @typescript-eslint/indent */
11
11
  export type GetSessionsOptions = ApiVersionOptions
12
12
  & NoAccountId<Sessions.IGetSessionsQuery>;
13
- export type GetSessionsResponse = Sessions.IGetSessionsResponse;
13
+
14
+ export interface GetSessionsResponse extends Omit<Sessions.IGetSessionsResponse, 'data'> {
15
+ data: Session[];
16
+ }
14
17
 
15
18
  export type GetSessionByIdOptions = ApiVersionOptions
16
19
  & ISessionId
@@ -19,13 +22,16 @@ export type GetSessionByIdOptions = ApiVersionOptions
19
22
  export type SearchSessionsOptions = ApiVersionOptions
20
23
  & NoAccountId<Sessions.ISearchSessionsQuery>
21
24
  & Sessions.ISearchSessionsBody;
22
- export type SearchSessionsResponse = Sessions.IGetSessionsResponse;
25
+ export interface SearchSessionsResponse extends Omit<Sessions.IGetSessionsResponse, 'data'> {
26
+ data: Session[];
27
+ }
23
28
 
24
29
  export type SearchSessionsWithContactsOptions = ApiVersionOptions
25
30
  & NoAccountId<Sessions.ISearchSessionsWithContactsQuery>
26
31
  & Sessions.ISearchSessionsWithContactsBody;
27
- export type SearchSessionsWithContactsResponse
28
- = Sessions.ISearchSessionsWithContactsResponse;
32
+ export interface SearchSessionsWithContactsResponse extends Omit<Sessions.ISearchSessionsWithContactsResponse, 'data'> {
33
+ data: Session[];
34
+ }
29
35
 
30
36
  export type GetQueueSessionOptions = ApiVersionOptions
31
37
  & NoAccountId<Sessions.IGetQueueSessionQuery>;
@@ -53,3 +59,8 @@ export type CloseSessionOptions = ApiVersionOptions & ISessionId;
53
59
 
54
60
  export type GetInitTriggersOptions = ApiVersionOptions;
55
61
  export type GetInitTriggersResponse = Sessions.IGetInitTriggersResponse;
62
+
63
+ export interface TriggersResponse {
64
+ readonly label: string;
65
+ readonly value: string;
66
+ }