@odynn/awayz-core 0.2.26 → 0.2.28

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.
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ "data": [
3
+ {
4
+ "_id": "682c5c6f91cb31217e4bf851",
5
+ "name": "IHG Rewards Club Premier",
6
+ "signupBonus": 140000,
7
+ "cashBonus": 0,
8
+ "minimumSpend": 3000,
9
+ "daysToSpend": 90,
10
+ "annual_fee": 89,
11
+ "annualFeeWaived": true,
12
+ "cashPerks": 0,
13
+ "bank": { "name": "Chase" },
14
+ "rewards_currency": "IHG Rewards Club",
15
+ "bisCard": false,
16
+ "chargeCard": false,
17
+ "cardFamily": 22,
18
+ "websiteUrl": "https://yourbestcreditcards.com/card/ihg-rewards-club-premier-credit-card?ccid=ccref",
19
+ "network": { "name": "Visa" },
20
+ "_modified": "2022-09-02T00:29:39.722Z",
21
+ "colour": "#C8C8C8",
22
+ "region": "US",
23
+ "faredrop_card_id": "ihg-rewards-premier-credit-card",
24
+ "alternateRegions": [],
25
+ "card_id": "IHGcard",
26
+ "user_id": "680b71a42475d482dbd24c7e",
27
+ "active_card": true
28
+ }
29
+ ],
30
+ "success": true
31
+ }
32
+ ;
33
+
34
+ export default _default;
@@ -0,0 +1,15 @@
1
+ interface ISetAwardPointsRequest {
2
+ programId: string;
3
+ awardsAmount: number;
4
+ }
5
+ export declare const useWallet: () => {
6
+ allPrograms: import('../../main').ILoyaltyProgram[];
7
+ hotelPrograms: import('../../main').ILoyaltyProgram[];
8
+ airlinePrograms: import('../../main').ILoyaltyProgram[];
9
+ bankPrograms: import('../../main').ILoyaltyProgram[];
10
+ updatePoints: import('@tanstack/react-query').UseMutateFunction<void, Error, ISetAwardPointsRequest, unknown>;
11
+ getProgramById: (programId: string) => import('../../main').ILoyaltyProgram | null;
12
+ banks: import('../../main').IBank[] | undefined;
13
+ cards: import('../../main').ICard[] | undefined;
14
+ };
15
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,11 +1,11 @@
1
1
  export * from './providers/AwayzProvider';
2
2
  export * from './hooks/useAwayzContext';
3
3
  export * from './hooks/useSearchLimit';
4
- export * from './hooks/useWallet';
4
+ export * from './hooks/useWallet/useWallet';
5
5
  export * from './types';
6
6
  export * from './services/instance';
7
7
  export * from './configs/awayzClient';
8
8
  export * from './components';
9
9
  export * from './services/currency/CurrencyService';
10
10
  export { getBaseUrl } from './configs/baseUrl';
11
- export type * from './services/wallet/WalletService.types';
11
+ export * from './services/wallet/WalletService.types';
@@ -55,7 +55,11 @@ export interface ICard {
55
55
  network: {
56
56
  name: string;
57
57
  };
58
+ modified: string;
58
59
  colour: string;
59
60
  region: string;
60
61
  alternateRegions: string[];
62
+ cardId: string;
63
+ userId: string;
64
+ activeCard: boolean;
61
65
  }
@@ -0,0 +1,7 @@
1
+ declare const customRenderHook: <TResult extends any, TProps = unknown>(hook: (props: TProps) => TResult, initialProps?: TProps) => {
2
+ result: {
3
+ current: TResult;
4
+ };
5
+ };
6
+ export * from '@testing-library/react';
7
+ export { customRenderHook as renderHook };