@or-sdk/hitl 0.27.1-beta.574.0 → 0.28.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,19 @@
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.28.0](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.27.0...@or-sdk/hitl@0.28.0) (2022-08-23)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * **hitl:** Add listeners, commands and session events API
12
+
13
+ ### Features
14
+
15
+ * **hitl:** Add listeners, commands and session events API ([4096619](https://gitlab.com/onereach/platform/or-sdk-next/commit/409661989d6d85958f62e338f83fa828fabb03aa))
16
+
17
+
18
+
6
19
  ## [0.27.0](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.26.0...@or-sdk/hitl@0.27.0) (2022-07-27)
7
20
 
8
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"Commands.js","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuB;AAIvB,uCAAsC;AAEtC;IAA8B,4BAAQ;IAAtC;;IAwBA,CAAC;IArBqB,8BAAqB,GAAzC,UACE,OAA6B;;;;gBAEvB,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACjC,MAAM,GAAG,gBAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;gBACnD,IAAI,GAAG,gBAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;gBAEvC,WAAO,IAAI,CAAC,OAAO,CAAC;wBAClB,MAAM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"}
@@ -1 +1 @@
1
- {"version":3,"file":"Commands.js","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAIvB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAG7B,MAAM,CAAO,qBAAqB,CACvC,OAA6B;;YAE7B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;YACzD,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;YAEvC,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,MAAM,EAAE,MAAM;gBACd,KAAK;gBACL,MAAM;gBACN,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;IAES,MAAM,CAAC,UAAU,CAAC,OAA0B;QACpD,OAAO,QAAQ,CAAC,UAAU,iCACrB,OAAO,KACV,MAAM,EAAE,IAAI,CAAC,UAAU,IACvB,CAAC;IACL,CAAC;;AAtBgB,mBAAU,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"Commands.js","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAIvB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAG7B,MAAM,CAAO,qBAAqB,CACvC,OAA4B;;YAE5B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;YACzD,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;YAEvC,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,MAAM,EAAE,MAAM;gBACd,KAAK;gBACL,MAAM;gBACN,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;IAES,MAAM,CAAC,UAAU,CAAC,OAA0B;QACpD,OAAO,QAAQ,CAAC,UAAU,iCACrB,OAAO,KACV,MAAM,EAAE,IAAI,CAAC,UAAU,IACvB,CAAC;IACL,CAAC;;AAtBgB,mBAAU,GAAG,UAAU,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { ApiVersionOptions } from '../types';
2
- import { ApplyCommandsOptions } from '../types/commands';
2
+ import { ApplyCommandOptions } from '../types/commands';
3
3
  import { HITLBase } from './HITLBase';
4
4
  export declare class Commands extends HITLBase {
5
5
  protected static MODULE_URL: string;
6
- static applyCommandToSession(options: ApplyCommandsOptions): Promise<void>;
6
+ static applyCommandToSession(options: ApplyCommandOptions): Promise<void>;
7
7
  protected static getBaseUrl(options: ApiVersionOptions): string;
8
8
  }
9
9
  //# sourceMappingURL=Commands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Commands.d.ts","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAc;WAErB,qBAAqB,CACvC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC;IAahB,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM;CAMhE"}
1
+ {"version":3,"file":"Commands.d.ts","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAc;WAErB,qBAAqB,CACvC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC;IAahB,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM;CAMhE"}
@@ -1,4 +1,4 @@
1
1
  import { Commands } from '@onereach/types-hitl-api';
2
2
  import { ApiVersionOptions } from './common';
3
- export declare type ApplyCommandsOptions = ApiVersionOptions & Commands.IApplyCommandQuery & Commands.IApplyCommandBody;
3
+ export declare type ApplyCommandOptions = ApiVersionOptions & Commands.IApplyCommandQuery & Commands.IApplyCommandBody;
4
4
  //# sourceMappingURL=commands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/types/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,oBAAY,oBAAoB,GAAG,iBAAiB,GAChD,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,CAAC"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/types/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,oBAAY,mBAAmB,GAAG,iBAAiB,GAC/C,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/hitl",
3
- "version": "0.27.1-beta.574.0",
3
+ "version": "0.28.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -29,5 +29,6 @@
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
32
- }
32
+ },
33
+ "gitHead": "462ec410f0729024bc57b77d3ebce8cef30b340d"
33
34
  }
@@ -1,14 +1,14 @@
1
1
  import _ from 'lodash';
2
2
 
3
3
  import { ApiVersionOptions } from '../types';
4
- import { ApplyCommandsOptions } from '../types/commands';
4
+ import { ApplyCommandOptions } from '../types/commands';
5
5
  import { HITLBase } from './HITLBase';
6
6
 
7
7
  export class Commands extends HITLBase {
8
8
  protected static MODULE_URL = 'commands';
9
9
 
10
10
  public static async applyCommandToSession(
11
- options: ApplyCommandsOptions
11
+ options: ApplyCommandOptions
12
12
  ): Promise<void> {
13
13
  const route = this.getBaseUrl(options);
14
14
  const params = _.pick(options, ['command', 'sessionId']);
@@ -2,6 +2,6 @@ import { Commands } from '@onereach/types-hitl-api';
2
2
  import { ApiVersionOptions } from './common';
3
3
 
4
4
  /* eslint-disable @typescript-eslint/indent */
5
- export type ApplyCommandsOptions = ApiVersionOptions
5
+ export type ApplyCommandOptions = ApiVersionOptions
6
6
  & Commands.IApplyCommandQuery
7
7
  & Commands.IApplyCommandBody;