@bytexbyte/ike-app-api 1.0.50 → 1.0.51

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,5 +1,29 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
- import { CheckReadedInAppNotificationsResult, CreateInAppNotificationResult, DeleteInAppNotificationResult, DeleteInAppNotificationsResult, InAppNotificationType, PutInAppNotificationResult, PutInAppNotificationsResult } from './type';
2
+ import { InAppNotificationType } from './type';
3
+ declare type CreateInAppNotificationResult = {
4
+ success: 'ok';
5
+ } | {
6
+ error: 'You are not authorized to call this API.' | 'Type is required.' | 'UserId is required.' | 'PushNotificationId is required.';
7
+ };
8
+ declare type PutInAppNotificationsResult = {
9
+ success: 'ok';
10
+ error?: undefined;
11
+ } | {
12
+ success?: undefined;
13
+ error: 'You are not authorized to call this API.';
14
+ };
15
+ declare type DeleteInAppNotificationsResult = PutInAppNotificationsResult;
16
+ declare type PutInAppNotificationResult = PutInAppNotificationsResult | {
17
+ error: 'Id is required.';
18
+ };
19
+ declare type DeleteInAppNotificationResult = PutInAppNotificationResult;
20
+ declare type CheckReadedInAppNotificationsResult = {
21
+ isAllRead: boolean;
22
+ error?: undefined;
23
+ } | {
24
+ isAllRead?: undefined;
25
+ error: 'You are not authorized to call this API.';
26
+ };
3
27
  declare class IKEApInAppNotificationApi extends BxBApi {
4
28
  constructor({ host, secretKey, secret, onSuccess, onError, }: {
5
29
  host: string;
@@ -1,25 +1 @@
1
- export declare type CreateInAppNotificationResult = {
2
- success: 'ok';
3
- } | {
4
- error: 'You are not authorized to call this API.' | 'Type is required.' | 'UserId is required.' | 'PushNotificationId is required.';
5
- };
6
- export declare type PutInAppNotificationsResult = {
7
- success: 'ok';
8
- error?: undefined;
9
- } | {
10
- success?: undefined;
11
- error: 'You are not authorized to call this API.';
12
- };
13
- export declare type DeleteInAppNotificationsResult = PutInAppNotificationsResult;
14
- export declare type PutInAppNotificationResult = PutInAppNotificationsResult | {
15
- error: 'Id is required.';
16
- };
17
- export declare type DeleteInAppNotificationResult = PutInAppNotificationResult;
18
- export declare type CheckReadedInAppNotificationsResult = {
19
- isAllRead: boolean;
20
- error?: undefined;
21
- } | {
22
- isAllRead?: undefined;
23
- error: 'You are not authorized to call this API.';
24
- };
25
1
  export declare type InAppNotificationType = 'pushNotification';
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.51",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",