@bytexbyte/ike-app-api 1.0.70 → 1.0.71

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/lib/App.d.ts CHANGED
@@ -12,8 +12,9 @@ declare type GetConfig = {
12
12
  isRewardEnabled: boolean;
13
13
  };
14
14
  declare class IKEAppApi extends BxBApi {
15
- constructor({ host, onSuccess, onError }: {
15
+ constructor({ host, credentials, onSuccess, onError }: {
16
16
  host: string;
17
+ credentials?: RequestCredentials;
17
18
  onSuccess?: () => void;
18
19
  onError?: (error: any) => void;
19
20
  });
package/lib/App.js CHANGED
@@ -67,13 +67,13 @@ var config_1 = require("./config");
67
67
  var IKEAppApi = /** @class */ (function (_super) {
68
68
  __extends(IKEAppApi, _super);
69
69
  function IKEAppApi(_a) {
70
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
70
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
71
71
  return _super.call(this, {
72
72
  host: host,
73
73
  secretKey: config_1.localSecretKey,
74
74
  secret: '',
75
75
  moduleName: 'app',
76
- credentials: 'include',
76
+ credentials: credentials,
77
77
  onSuccess: onSuccess,
78
78
  onError: onError,
79
79
  }) || this;
@@ -23,10 +23,11 @@ declare type Session = {
23
23
  user: User;
24
24
  } | null;
25
25
  declare class IKEAppAuthApi extends BxBApi {
26
- constructor({ host, secretKey, secret, onSuccess, onError, }: {
26
+ constructor({ host, secretKey, secret, credentials, onSuccess, onError, }: {
27
27
  host: string;
28
28
  secretKey?: string;
29
29
  secret?: string;
30
+ credentials?: RequestCredentials;
30
31
  onSuccess?: () => void;
31
32
  onError?: (error: any) => void;
32
33
  });
package/lib/Auth/index.js CHANGED
@@ -74,13 +74,13 @@ var toFormUrlencodedString = function (form) {
74
74
  var IKEAppAuthApi = /** @class */ (function (_super) {
75
75
  __extends(IKEAppAuthApi, _super);
76
76
  function IKEAppAuthApi(_a) {
77
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, onSuccess = _a.onSuccess, onError = _a.onError;
77
+ var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
78
78
  return _super.call(this, {
79
79
  host: host,
80
80
  secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : config_1.localSecretKey,
81
81
  secret: secret !== null && secret !== void 0 ? secret : '',
82
82
  moduleName: 'auth',
83
- credentials: 'include',
83
+ credentials: credentials,
84
84
  onSuccess: onSuccess,
85
85
  onError: onError,
86
86
  }) || this;
@@ -12,8 +12,9 @@ declare enum ScanningStatusType {
12
12
  MIXED = 4
13
13
  }
14
14
  declare class IKEAppBatchApi extends BxBApi {
15
- constructor({ host, onSuccess, onError }: {
15
+ constructor({ host, credentials, onSuccess, onError }: {
16
16
  host: string;
17
+ credentials?: RequestCredentials;
17
18
  onSuccess?: () => void;
18
19
  onError?: (error: any) => void;
19
20
  });
@@ -65,13 +65,13 @@ var ScanningStatusType;
65
65
  var IKEAppBatchApi = /** @class */ (function (_super) {
66
66
  __extends(IKEAppBatchApi, _super);
67
67
  function IKEAppBatchApi(_a) {
68
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
68
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
69
69
  return _super.call(this, {
70
70
  host: host,
71
71
  secretKey: config_1.localSecretKey,
72
72
  secret: '',
73
73
  moduleName: 'batch',
74
- credentials: 'include',
74
+ credentials: credentials,
75
75
  onSuccess: onSuccess,
76
76
  onError: onError,
77
77
  }) || this;
@@ -9,8 +9,9 @@ declare type BleConnectionErrorLogResult = {
9
9
  error: 'You are not logged in.' | 'Missing title.' | 'Missing detail.' | 'Server timeout.';
10
10
  };
11
11
  declare class IKEAppBleConnectionErrorLogApi extends BxBApi {
12
- constructor({ host, onSuccess, onError }: {
12
+ constructor({ host, credentials, onSuccess, onError }: {
13
13
  host: string;
14
+ credentials?: RequestCredentials;
14
15
  onSuccess?: () => void;
15
16
  onError?: (error: any) => void;
16
17
  });
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppBleConnectionErrorLogApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppBleConnectionErrorLogApi, _super);
59
59
  function IKEAppBleConnectionErrorLogApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'ble-connection-error-log',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -1,7 +1,8 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
2
  declare class IKEAppContractApi extends BxBApi {
3
- constructor({ host, onSuccess, onError }: {
3
+ constructor({ host, credentials, onSuccess, onError }: {
4
4
  host: string;
5
+ credentials?: RequestCredentials;
5
6
  onSuccess?: () => void;
6
7
  onError?: (error: any) => void;
7
8
  });
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppContractApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppContractApi, _super);
59
59
  function IKEAppContractApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'contract',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -15,8 +15,9 @@ declare type PayReferralPointResult = {
15
15
  error?: 'pay point failed.' | 'Missing digitalCustomizationId.';
16
16
  };
17
17
  declare class IKEAppDigitalCustomizationApi extends BxBApi {
18
- constructor({ host, onSuccess, onError }: {
18
+ constructor({ host, credentials, onSuccess, onError }: {
19
19
  host: string;
20
+ credentials?: RequestCredentials;
20
21
  onSuccess?: () => void;
21
22
  onError?: (error: any) => void;
22
23
  });
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppDigitalCustomizationApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppDigitalCustomizationApi, _super);
59
59
  function IKEAppDigitalCustomizationApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'digitalCustomizations',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -22,8 +22,9 @@ declare type UploadResult = {
22
22
  error: 'fail to upload';
23
23
  };
24
24
  declare class IKEAppFileApi extends BxBApi {
25
- constructor({ host, onSuccess, onError }: {
25
+ constructor({ host, credentials, onSuccess, onError }: {
26
26
  host: string;
27
+ credentials?: RequestCredentials;
27
28
  onSuccess?: () => void;
28
29
  onError?: (error: any) => void;
29
30
  });
package/lib/File/index.js CHANGED
@@ -57,13 +57,13 @@ var UploadFileType_1 = require("./UploadFileType");
57
57
  var IKEAppFileApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppFileApi, _super);
59
59
  function IKEAppFileApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'file',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -1,10 +1,11 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
2
  import { CheckReadedInAppNotificationsResult, CreateInAppNotificationResult, DeleteInAppNotificationResult, DeleteInAppNotificationsResult, InAppNotificationType, PutInAppNotificationResult, PutInAppNotificationsResult } from './type';
3
3
  declare class IKEAppInAppNotificationApi extends BxBApi {
4
- constructor({ host, secretKey, secret, onSuccess, onError, }: {
4
+ constructor({ host, secretKey, secret, credentials, onSuccess, onError, }: {
5
5
  host: string;
6
6
  secretKey?: string;
7
7
  secret?: string;
8
+ credentials?: RequestCredentials;
8
9
  onSuccess?: () => void;
9
10
  onError?: (error: any) => void;
10
11
  });
@@ -56,13 +56,13 @@ var config_1 = require("../config");
56
56
  var IKEAppInAppNotificationApi = /** @class */ (function (_super) {
57
57
  __extends(IKEAppInAppNotificationApi, _super);
58
58
  function IKEAppInAppNotificationApi(_a) {
59
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, onSuccess = _a.onSuccess, onError = _a.onError;
59
+ var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
60
60
  return _super.call(this, {
61
61
  host: host,
62
62
  secretKey: config_1.localSecretKey,
63
63
  secret: '',
64
64
  moduleName: 'in-app-notification',
65
- credentials: 'include',
65
+ credentials: credentials,
66
66
  onSuccess: onSuccess,
67
67
  onError: onError,
68
68
  }) || this;
@@ -1,10 +1,11 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
2
  import { GetOcrDataBody, Session } from './type';
3
3
  declare class IKEAppIncodeApi extends BxBApi {
4
- constructor({ host, secretKey, secret, onSuccess, onError, }: {
4
+ constructor({ host, secretKey, secret, credentials, onSuccess, onError, }: {
5
5
  host: string;
6
6
  secretKey?: string;
7
7
  secret?: string;
8
+ credentials?: RequestCredentials;
8
9
  onSuccess?: () => void;
9
10
  onError?: (error: any) => void;
10
11
  });
@@ -56,13 +56,13 @@ var config_1 = require("../config");
56
56
  var IKEAppIncodeApi = /** @class */ (function (_super) {
57
57
  __extends(IKEAppIncodeApi, _super);
58
58
  function IKEAppIncodeApi(_a) {
59
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, onSuccess = _a.onSuccess, onError = _a.onError;
59
+ var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
60
60
  return _super.call(this, {
61
61
  host: host,
62
62
  secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : config_1.localSecretKey,
63
63
  secret: secret !== null && secret !== void 0 ? secret : '',
64
64
  moduleName: 'incode',
65
- credentials: 'include',
65
+ credentials: credentials,
66
66
  onSuccess: onSuccess,
67
67
  onError: onError,
68
68
  }) || this;
@@ -25,8 +25,9 @@ declare type RedeemResult = {
25
25
  error?: 'Invalid tag.' | 'Missing blockChainTokenId.' | 'Status error.' | 'NFT submission not found.' | 'Contract not found.' | 'Unknown error.' | 'This is not your tag.' | 'You are not logged in.' | 'Transfer failed: no transaction hash returned.';
26
26
  };
27
27
  declare class IKEAppMfaApi extends BxBApi {
28
- constructor({ host, onSuccess, onError }: {
28
+ constructor({ host, credentials, onSuccess, onError }: {
29
29
  host: string;
30
+ credentials?: RequestCredentials;
30
31
  onSuccess?: () => void;
31
32
  onError?: (error: any) => void;
32
33
  });
package/lib/Mfa/index.js CHANGED
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppMfaApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppMfaApi, _super);
59
59
  function IKEAppMfaApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'redeem-nft',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -1,8 +1,9 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
2
  import { Product } from './type';
3
3
  declare class IKEAppProductApi extends BxBApi {
4
- constructor({ host, onSuccess, onError }: {
4
+ constructor({ host, credentials, onSuccess, onError }: {
5
5
  host: string;
6
+ credentials?: RequestCredentials;
6
7
  onSuccess?: () => void;
7
8
  onError?: (error: any) => void;
8
9
  });
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppProductApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppProductApi, _super);
59
59
  function IKEAppProductApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'product',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -13,8 +13,9 @@ declare type RedeemResult = {
13
13
  error?: 'You are not logged in.' | 'Contact email not found.' | 'batch not found.' | 'company not found.' | 'This is not your tag.';
14
14
  };
15
15
  declare class IKEAppRedeemApi extends BxBApi {
16
- constructor({ host, onSuccess, onError }: {
16
+ constructor({ host, credentials, onSuccess, onError }: {
17
17
  host: string;
18
+ credentials?: RequestCredentials;
18
19
  onSuccess?: () => void;
19
20
  onError?: (error: any) => void;
20
21
  });
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppRedeemApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppRedeemApi, _super);
59
59
  function IKEAppRedeemApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'redeem-godenticket',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -9,8 +9,9 @@ declare type RegisterResult = {
9
9
  error?: 'You are not logged in.' | 'Invalid request';
10
10
  };
11
11
  declare class IKEAppRegisterDeviceCodeApi extends BxBApi {
12
- constructor({ host, onSuccess, onError }: {
12
+ constructor({ host, credentials, onSuccess, onError }: {
13
13
  host: string;
14
+ credentials?: RequestCredentials;
14
15
  onSuccess?: () => void;
15
16
  onError?: (error: any) => void;
16
17
  });
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppRegisterDeviceCodeApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppRegisterDeviceCodeApi, _super);
59
59
  function IKEAppRegisterDeviceCodeApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'register-device-code',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -1,7 +1,8 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
2
  declare class IKEAppRsaApi extends BxBApi {
3
- constructor({ host, onSuccess, onError }: {
3
+ constructor({ host, credentials, onSuccess, onError }: {
4
4
  host: string;
5
+ credentials?: RequestCredentials;
5
6
  onSuccess?: () => void;
6
7
  onError?: (error: any) => void;
7
8
  });
package/lib/Rsa/index.js CHANGED
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppRsaApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppRsaApi, _super);
59
59
  function IKEAppRsaApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'rsa',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -26,8 +26,9 @@ declare type UpdateResult = {
26
26
  error?: 'scanId type error.' | 'scanId not found.' | 'This is a IKE tag, You are not authorized to call this API.' | 'Scan not found.';
27
27
  };
28
28
  declare class IKEAppScanApi extends BxBApi {
29
- constructor({ host, onSuccess, onError }: {
29
+ constructor({ host, credentials, onSuccess, onError }: {
30
30
  host: string;
31
+ credentials?: RequestCredentials;
31
32
  onSuccess?: () => void;
32
33
  onError?: (error: any) => void;
33
34
  });
package/lib/Scan/index.js CHANGED
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppScanApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppScanApi, _super);
59
59
  function IKEAppScanApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'scan',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -54,8 +54,9 @@ declare type PutUpdateDisplayNameResult = {
54
54
  };
55
55
  declare type TagCheckListStatus = 'pass' | 'fail' | 'none';
56
56
  declare class IKEAppTagsApi extends BxBApi {
57
- constructor({ host, onSuccess, onError }: {
57
+ constructor({ host, credentials, onSuccess, onError }: {
58
58
  host: string;
59
+ credentials?: RequestCredentials;
59
60
  onSuccess?: () => void;
60
61
  onError?: (error: any) => void;
61
62
  });
package/lib/Tags/index.js CHANGED
@@ -57,13 +57,13 @@ var config_1 = require("../config");
57
57
  var IKEAppTagsApi = /** @class */ (function (_super) {
58
58
  __extends(IKEAppTagsApi, _super);
59
59
  function IKEAppTagsApi(_a) {
60
- var host = _a.host, onSuccess = _a.onSuccess, onError = _a.onError;
60
+ var host = _a.host, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
61
61
  return _super.call(this, {
62
62
  host: host,
63
63
  secretKey: config_1.localSecretKey,
64
64
  secret: '',
65
65
  moduleName: 'tags',
66
- credentials: 'include',
66
+ credentials: credentials,
67
67
  onSuccess: onSuccess,
68
68
  onError: onError,
69
69
  }) || this;
@@ -103,10 +103,11 @@ declare enum RuleType {
103
103
  redeemGoldenTicket = "redeemGoldenTicket"
104
104
  }
105
105
  declare class IKEAppUserApi extends BxBApi {
106
- constructor({ host, secretKey, secret, onSuccess, onError, }: {
106
+ constructor({ host, secretKey, secret, credentials, onSuccess, onError, }: {
107
107
  host: string;
108
108
  secretKey?: string;
109
109
  secret?: string;
110
+ credentials?: RequestCredentials;
110
111
  onSuccess?: () => void;
111
112
  onError?: (error: any) => void;
112
113
  });
package/lib/User/index.js CHANGED
@@ -64,13 +64,13 @@ var RuleType;
64
64
  var IKEAppUserApi = /** @class */ (function (_super) {
65
65
  __extends(IKEAppUserApi, _super);
66
66
  function IKEAppUserApi(_a) {
67
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, onSuccess = _a.onSuccess, onError = _a.onError;
67
+ var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
68
68
  return _super.call(this, {
69
69
  host: host,
70
70
  secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : config_1.localSecretKey,
71
71
  secret: secret !== null && secret !== void 0 ? secret : '',
72
72
  moduleName: 'user',
73
- credentials: 'include',
73
+ credentials: credentials,
74
74
  onSuccess: onSuccess,
75
75
  onError: onError,
76
76
  }) || this;
package/lib/index.d.ts CHANGED
@@ -35,11 +35,12 @@ declare class IKEAppApi {
35
35
  rsa: IKEAppRsaApi;
36
36
  bleConnectionErrorLog: IKEAppBleConnectionErrorLogApi;
37
37
  product: IKEAppProductApi;
38
- constructor({ host, env, secretKey, secret, onSuccess, onError, }: {
38
+ constructor({ host, env, secretKey, secret, credentials, onSuccess, onError, }: {
39
39
  host: string;
40
40
  env: string;
41
41
  secretKey?: string;
42
42
  secret?: string;
43
+ credentials?: RequestCredentials;
43
44
  onSuccess?: () => void;
44
45
  onError?: (error: any) => void;
45
46
  });
package/lib/index.js CHANGED
@@ -66,7 +66,7 @@ var Tags_1 = require("./Tags");
66
66
  var User_1 = require("./User");
67
67
  var IKEAppApi = /** @class */ (function () {
68
68
  function IKEAppApi(_a) {
69
- var host = _a.host, env = _a.env, secretKey = _a.secretKey, secret = _a.secret, onSuccess = _a.onSuccess, onError = _a.onError;
69
+ var host = _a.host, env = _a.env, secretKey = _a.secretKey, secret = _a.secret, credentials = _a.credentials, onSuccess = _a.onSuccess, onError = _a.onError;
70
70
  var _this = this;
71
71
  this.getProps = function (pathname, init) { return __awaiter(_this, void 0, void 0, function () {
72
72
  var res;
@@ -82,23 +82,23 @@ var IKEAppApi = /** @class */ (function () {
82
82
  }); };
83
83
  this.host = host;
84
84
  this.env = env;
85
- this.auth = new Auth_1.default({ host: host, secretKey: secretKey, secret: secret, onSuccess: onSuccess, onError: onError });
86
- this.mfa = new Mfa_1.default({ host: host, onSuccess: onSuccess, onError: onError });
87
- this.redeem = new Redeem_1.default({ host: host, onSuccess: onSuccess, onError: onError });
88
- this.scan = new Scan_1.default({ host: host, onSuccess: onSuccess, onError: onError });
89
- this.user = new User_1.default({ host: host, secretKey: secretKey, secret: secret, onSuccess: onSuccess, onError: onError });
90
- this.app = new App_1.default({ host: host, onSuccess: onSuccess, onError: onError });
91
- this.registerDeviceCode = new RegisterDeviceCode_1.default({ host: host, onSuccess: onSuccess, onError: onError });
92
- this.file = new File_1.default({ host: host, onSuccess: onSuccess, onError: onError });
93
- this.batch = new Batch_1.default({ host: host, onSuccess: onSuccess, onError: onError });
94
- this.tags = new Tags_1.default({ host: host, onSuccess: onSuccess, onError: onError });
95
- this.digitalCustomization = new DigitalCustomization_1.default({ host: host, onSuccess: onSuccess, onError: onError });
96
- this.contract = new Contract_1.default({ host: host, onSuccess: onSuccess, onError: onError });
97
- this.rsa = new Rsa_1.default({ host: host, onSuccess: onSuccess, onError: onError });
98
- this.product = new Product_1.default({ host: host, onSuccess: onSuccess, onError: onError });
99
- this.inAppNotification = new InAppNotification_1.default({ host: host, secretKey: secretKey, secret: secret, onSuccess: onSuccess, onError: onError });
100
- this.incode = new Incode_1.default({ host: host, secretKey: secretKey, secret: secret, onSuccess: onSuccess, onError: onError });
101
- this.bleConnectionErrorLog = new BleConnectionErrorLog_1.default({ host: host, onSuccess: onSuccess, onError: onError });
85
+ this.auth = new Auth_1.default({ host: host, secretKey: secretKey, secret: secret, credentials: credentials, onSuccess: onSuccess, onError: onError });
86
+ this.mfa = new Mfa_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
87
+ this.redeem = new Redeem_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
88
+ this.scan = new Scan_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
89
+ this.user = new User_1.default({ host: host, secretKey: secretKey, secret: secret, credentials: credentials, onSuccess: onSuccess, onError: onError });
90
+ this.app = new App_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
91
+ this.registerDeviceCode = new RegisterDeviceCode_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
92
+ this.file = new File_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
93
+ this.batch = new Batch_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
94
+ this.tags = new Tags_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
95
+ this.digitalCustomization = new DigitalCustomization_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
96
+ this.contract = new Contract_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
97
+ this.rsa = new Rsa_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
98
+ this.product = new Product_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
99
+ this.inAppNotification = new InAppNotification_1.default({ host: host, secretKey: secretKey, secret: secret, credentials: credentials, onSuccess: onSuccess, onError: onError });
100
+ this.incode = new Incode_1.default({ host: host, secretKey: secretKey, secret: secret, credentials: credentials, onSuccess: onSuccess, onError: onError });
101
+ this.bleConnectionErrorLog = new BleConnectionErrorLog_1.default({ host: host, credentials: credentials, onSuccess: onSuccess, onError: onError });
102
102
  }
103
103
  return IKEAppApi;
104
104
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",