@jibb-open/jssdk 3.5.13 → 3.5.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jibb-open/jssdk",
3
- "version": "3.5.13",
3
+ "version": "3.5.14",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "LOG_LEVEL=error mocha --timeout 10000 ",
@@ -43,7 +43,9 @@
43
43
  "@babel/preset-env": "^7.19.4",
44
44
  "@babel/runtime": "^7.20.0",
45
45
  "babel-loader": "^8.2.5",
46
+ "babel-minify": "^0.5.2",
46
47
  "babel-plugin-add-module-exports": "^1.0.4",
48
+ "babel-plugin-remove-comments": "^2.0.0",
47
49
  "babel-plugin-transform-import-ignore": "^1.1.0",
48
50
  "babel-plugin-transform-inline-environment-variables": "^0.4.4",
49
51
  "babel-plugin-uglify": "^1.0.2",
@@ -1,43 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PostProcessing = void 0;
7
- require("core-js/modules/es.promise.js");
8
- var _config = require("./config.js");
9
- var _auth = require("./auth.js");
10
- var _index = _interopRequireDefault(require("../http/index.js"));
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- class PostProcessing {
13
- async createPDFNotes(sourceUrl) {
14
- let customCorners = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
15
- let headers = {
16
- "Content-Type": "application/json",
17
- "Accept": "application/json",
18
- "x-jibb-user-jwt": await _auth.Auth.getUserToken()
19
- };
20
- let body = {
21
- "config": {
22
- "surfaceType": "WHITEBOARD"
23
- },
24
- "runtimeConfig": {
25
- "enable_estimation": true,
26
- "fixed_corners": true,
27
- "flip_up_down": false,
28
- "flip_left_right": false,
29
- "rotation": "RATATE_0",
30
- "enableColor": false
31
- },
32
- "sourceUrl": sourceUrl
33
- };
34
- if (customCorners) {
35
- body["runtimeConfig"]["customCorners"] = customCorners;
36
- }
37
- let response = await _index.default.post("".concat(_config.Config.apiBaseURL, "/v1/ipsa-post-processing/run"), body, {
38
- headers
39
- });
40
- return response.data;
41
- }
42
- }
43
- exports.PostProcessing = PostProcessing;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PostProcessing=void 0,require("core-js/modules/es.promise.js");var _config=require("./config.js"),_auth=require("./auth.js"),_index=_interopRequireDefault(require("../http/index.js"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}class PostProcessing{async createPDFNotes(a){let b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:void 0,c={"Content-Type":"application/json",Accept:"application/json","x-jibb-user-jwt":await _auth.Auth.getUserToken()},d={config:{surfaceType:"WHITEBOARD"},runtimeConfig:{enable_estimation:!0,fixed_corners:!0,flip_up_down:!1,flip_left_right:!1,rotation:"RATATE_0",enableColor:!1},sourceUrl:a};b&&(d.runtimeConfig.customCorners=b);let e=await _index.default.post("".concat(_config.Config.apiBaseURL,"/v1/ipsa-post-processing/run"),d,{headers:c});return e.data}}exports.PostProcessing=PostProcessing;
@@ -1,55 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PermissionDeniedError = exports.NotStartedError = exports.NotFoundError = exports.NotConnectedError = exports.InvalidArgumentError = exports.AlreadyStartedError = exports.AlreadyConnectedError = void 0;
7
- class NotFoundError extends Error {
8
- constructor(message) {
9
- super(message);
10
- this.name = "NotFoundError";
11
- }
12
- }
13
- exports.NotFoundError = NotFoundError;
14
- class NotStartedError extends Error {
15
- constructor(message) {
16
- super(message);
17
- this.name = "NotStartedError";
18
- }
19
- }
20
- exports.NotStartedError = NotStartedError;
21
- class NotConnectedError extends Error {
22
- constructor(message) {
23
- super(message);
24
- this.name = "NotConnectedError";
25
- }
26
- }
27
- exports.NotConnectedError = NotConnectedError;
28
- class AlreadyStartedError extends Error {
29
- constructor(message) {
30
- super(message);
31
- this.name = "AlreadyStartedError";
32
- }
33
- }
34
- exports.AlreadyStartedError = AlreadyStartedError;
35
- class AlreadyConnectedError extends Error {
36
- constructor(message) {
37
- super(message);
38
- this.name = "AlreadyConnectedError";
39
- }
40
- }
41
- exports.AlreadyConnectedError = AlreadyConnectedError;
42
- class PermissionDeniedError extends Error {
43
- constructor(message) {
44
- super(message);
45
- this.name = "PermissionDeniedError";
46
- }
47
- }
48
- exports.PermissionDeniedError = PermissionDeniedError;
49
- class InvalidArgumentError extends Error {
50
- constructor(message) {
51
- super(message);
52
- this.name = "InvalidArgumentError";
53
- }
54
- }
55
- exports.InvalidArgumentError = InvalidArgumentError;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PermissionDeniedError=exports.NotStartedError=exports.NotFoundError=exports.NotConnectedError=exports.InvalidArgumentError=exports.AlreadyStartedError=exports.AlreadyConnectedError=void 0;class NotFoundError extends Error{constructor(a){super(a),this.name="NotFoundError"}}exports.NotFoundError=NotFoundError;class NotStartedError extends Error{constructor(a){super(a),this.name="NotStartedError"}}exports.NotStartedError=NotStartedError;class NotConnectedError extends Error{constructor(a){super(a),this.name="NotConnectedError"}}exports.NotConnectedError=NotConnectedError;class AlreadyStartedError extends Error{constructor(a){super(a),this.name="AlreadyStartedError"}}exports.AlreadyStartedError=AlreadyStartedError;class AlreadyConnectedError extends Error{constructor(a){super(a),this.name="AlreadyConnectedError"}}exports.AlreadyConnectedError=AlreadyConnectedError;class PermissionDeniedError extends Error{constructor(a){super(a),this.name="PermissionDeniedError"}}exports.PermissionDeniedError=PermissionDeniedError;class InvalidArgumentError extends Error{constructor(a){super(a),this.name="InvalidArgumentError"}}exports.InvalidArgumentError=InvalidArgumentError;