@bytexbyte/ike-app-api 1.0.50 → 1.0.52

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,6 +1,6 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
2
  import { CheckReadedInAppNotificationsResult, CreateInAppNotificationResult, DeleteInAppNotificationResult, DeleteInAppNotificationsResult, InAppNotificationType, PutInAppNotificationResult, PutInAppNotificationsResult } from './type';
3
- declare class IKEApInAppNotificationApi extends BxBApi {
3
+ declare class IKEAppInAppNotificationApi extends BxBApi {
4
4
  constructor({ host, secretKey, secret, onSuccess, onError, }: {
5
5
  host: string;
6
6
  secretKey?: string;
@@ -21,4 +21,4 @@ declare class IKEApInAppNotificationApi extends BxBApi {
21
21
  deleteInAppNotifications(): Promise<DeleteInAppNotificationsResult>;
22
22
  checkReadedInAppNotifications(): Promise<CheckReadedInAppNotificationsResult>;
23
23
  }
24
- export default IKEApInAppNotificationApi;
24
+ export default IKEAppInAppNotificationApi;
@@ -52,20 +52,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
52
52
  };
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  var bxb_api_1 = require("@bytexbyte/bxb-api");
55
- var IKEApInAppNotificationApi = /** @class */ (function (_super) {
56
- __extends(IKEApInAppNotificationApi, _super);
57
- function IKEApInAppNotificationApi(_a) {
55
+ var config_1 = require("../config");
56
+ var IKEAppInAppNotificationApi = /** @class */ (function (_super) {
57
+ __extends(IKEAppInAppNotificationApi, _super);
58
+ function IKEAppInAppNotificationApi(_a) {
58
59
  var host = _a.host, secretKey = _a.secretKey, secret = _a.secret, onSuccess = _a.onSuccess, onError = _a.onError;
59
60
  return _super.call(this, {
60
61
  host: host,
61
- secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : '',
62
- secret: secret !== null && secret !== void 0 ? secret : '',
62
+ secretKey: config_1.localSecretKey,
63
+ secret: '',
63
64
  moduleName: 'in-app-notification',
64
65
  onSuccess: onSuccess,
65
66
  onError: onError,
66
67
  }) || this;
67
68
  }
68
- IKEApInAppNotificationApi.prototype.createInAppNotification = function (body) {
69
+ IKEAppInAppNotificationApi.prototype.createInAppNotification = function (body) {
69
70
  return __awaiter(this, void 0, void 0, function () {
70
71
  var response;
71
72
  return __generator(this, function (_a) {
@@ -84,7 +85,7 @@ var IKEApInAppNotificationApi = /** @class */ (function (_super) {
84
85
  });
85
86
  });
86
87
  };
87
- IKEApInAppNotificationApi.prototype.putInAppNotification = function (notificationId) {
88
+ IKEAppInAppNotificationApi.prototype.putInAppNotification = function (notificationId) {
88
89
  return __awaiter(this, void 0, void 0, function () {
89
90
  var response;
90
91
  return __generator(this, function (_a) {
@@ -102,7 +103,7 @@ var IKEApInAppNotificationApi = /** @class */ (function (_super) {
102
103
  });
103
104
  });
104
105
  };
105
- IKEApInAppNotificationApi.prototype.deleteInAppNotification = function (notificationId) {
106
+ IKEAppInAppNotificationApi.prototype.deleteInAppNotification = function (notificationId) {
106
107
  return __awaiter(this, void 0, void 0, function () {
107
108
  var response;
108
109
  return __generator(this, function (_a) {
@@ -120,7 +121,7 @@ var IKEApInAppNotificationApi = /** @class */ (function (_super) {
120
121
  });
121
122
  });
122
123
  };
123
- IKEApInAppNotificationApi.prototype.putInAppNotifications = function () {
124
+ IKEAppInAppNotificationApi.prototype.putInAppNotifications = function () {
124
125
  return __awaiter(this, void 0, void 0, function () {
125
126
  var response;
126
127
  return __generator(this, function (_a) {
@@ -138,7 +139,7 @@ var IKEApInAppNotificationApi = /** @class */ (function (_super) {
138
139
  });
139
140
  });
140
141
  };
141
- IKEApInAppNotificationApi.prototype.deleteInAppNotifications = function () {
142
+ IKEAppInAppNotificationApi.prototype.deleteInAppNotifications = function () {
142
143
  return __awaiter(this, void 0, void 0, function () {
143
144
  var response;
144
145
  return __generator(this, function (_a) {
@@ -156,7 +157,7 @@ var IKEApInAppNotificationApi = /** @class */ (function (_super) {
156
157
  });
157
158
  });
158
159
  };
159
- IKEApInAppNotificationApi.prototype.checkReadedInAppNotifications = function () {
160
+ IKEAppInAppNotificationApi.prototype.checkReadedInAppNotifications = function () {
160
161
  return __awaiter(this, void 0, void 0, function () {
161
162
  var response;
162
163
  return __generator(this, function (_a) {
@@ -174,6 +175,6 @@ var IKEApInAppNotificationApi = /** @class */ (function (_super) {
174
175
  });
175
176
  });
176
177
  };
177
- return IKEApInAppNotificationApi;
178
+ return IKEAppInAppNotificationApi;
178
179
  }(bxb_api_1.default));
179
- exports.default = IKEApInAppNotificationApi;
180
+ exports.default = IKEAppInAppNotificationApi;
package/lib/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import IKEAppBleConnectionErrorLogApi from './BleConnectionErrorLog';
5
5
  import IKEAppContractApi from './Contract';
6
6
  import IKEAppDigitalCustomizationApi from './DigitalCustomization';
7
7
  import IKEAppFileApi from './File';
8
- import IKEApInAppNotificationApi from './InAppNotification';
8
+ import IKEAppInAppNotificationApi from './InAppNotification';
9
9
  import IKEAppIncodeApi from './Incode';
10
10
  import IKEAppMfaApi from './Mfa';
11
11
  import IKEAppProductApi from './Product';
@@ -30,7 +30,7 @@ declare class IKEAppApi {
30
30
  tags: IKEAppTagsApi;
31
31
  digitalCustomization: IKEAppDigitalCustomizationApi;
32
32
  contract: IKEAppContractApi;
33
- inAppNotification: IKEApInAppNotificationApi;
33
+ inAppNotification: IKEAppInAppNotificationApi;
34
34
  incode: IKEAppIncodeApi;
35
35
  rsa: IKEAppRsaApi;
36
36
  bleConnectionErrorLog: IKEAppBleConnectionErrorLogApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",