@bytexbyte/ike-app-api 1.0.21 → 1.0.22

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.
@@ -1,7 +1,7 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
2
  import { GetOcrDataBody } from './type';
3
- declare class BerifyAppCollectionApi extends BxBApi {
4
- constructor({ host, secretKey, secret, onSuccess, onError }: {
3
+ declare class IKEAppIncodeApi extends BxBApi {
4
+ constructor({ host, secretKey, secret, onSuccess, onError, }: {
5
5
  host: string;
6
6
  secretKey?: string;
7
7
  secret?: string;
@@ -10,4 +10,4 @@ declare class BerifyAppCollectionApi extends BxBApi {
10
10
  });
11
11
  getOcrData(form: GetOcrDataBody): Promise<any>;
12
12
  }
13
- export default BerifyAppCollectionApi;
13
+ export default IKEAppIncodeApi;
@@ -53,9 +53,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  var bxb_api_1 = require("@bytexbyte/bxb-api");
55
55
  var config_1 = require("../config");
56
- var BerifyAppCollectionApi = /** @class */ (function (_super) {
57
- __extends(BerifyAppCollectionApi, _super);
58
- function BerifyAppCollectionApi(_a) {
56
+ var IKEAppIncodeApi = /** @class */ (function (_super) {
57
+ __extends(IKEAppIncodeApi, _super);
58
+ function IKEAppIncodeApi(_a) {
59
59
  var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, onSuccess = _a.onSuccess, onError = _a.onError;
60
60
  return _super.call(this, {
61
61
  host: host,
@@ -63,10 +63,10 @@ var BerifyAppCollectionApi = /** @class */ (function (_super) {
63
63
  secret: secret !== null && secret !== void 0 ? secret : '',
64
64
  moduleName: 'incode',
65
65
  onSuccess: onSuccess,
66
- onError: onError
66
+ onError: onError,
67
67
  }) || this;
68
68
  }
69
- BerifyAppCollectionApi.prototype.getOcrData = function (form) {
69
+ IKEAppIncodeApi.prototype.getOcrData = function (form) {
70
70
  return __awaiter(this, void 0, void 0, function () {
71
71
  var response;
72
72
  return __generator(this, function (_a) {
@@ -74,7 +74,7 @@ var BerifyAppCollectionApi = /** @class */ (function (_super) {
74
74
  case 0: return [4 /*yield*/, this.bxbFetch({
75
75
  method: 'POST',
76
76
  headers: {
77
- 'Content-Type': 'application/json'
77
+ 'Content-Type': 'application/json',
78
78
  },
79
79
  body: JSON.stringify(form),
80
80
  }, 'getOcrData')];
@@ -85,6 +85,6 @@ var BerifyAppCollectionApi = /** @class */ (function (_super) {
85
85
  });
86
86
  });
87
87
  };
88
- return BerifyAppCollectionApi;
88
+ return IKEAppIncodeApi;
89
89
  }(bxb_api_1.default));
90
- exports.default = BerifyAppCollectionApi;
90
+ exports.default = IKEAppIncodeApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",