@findhotel/sapi 0.23.14 → 0.24.2
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/README.md +14 -1
- package/dist/index.js +1 -1
- package/dist/types/packages/core/src/app-config.d.ts +1 -7
- package/dist/types/packages/core/src/hotel.d.ts +2 -2
- package/dist/types/packages/core/src/offers.d.ts +3 -3
- package/dist/types/packages/core/src/override.d.ts +4 -0
- package/dist/types/packages/core/src/rooms.d.ts +2 -2
- package/dist/types/packages/core/src/sapi.d.ts +6 -10
- package/dist/types/packages/core/src/search.d.ts +23 -13
- package/dist/types/packages/core/src/types/config.d.ts +11 -0
- package/dist/types/packages/core/src/types/index.d.ts +1 -0
- package/dist/types/packages/core/src/types/rooms.d.ts +3 -0
- package/dist/types/packages/core/src/types/sapi-client.d.ts +1 -1
- package/dist/types/packages/core/src/types/types.d.ts +2 -0
- package/dist/types/packages/core/src/{algolia/utils.d.ts → utils/algolia.d.ts} +1 -17
- package/dist/types/packages/core/src/{algolia/configs.test.d.ts → utils/algolia.test.d.ts} +0 -0
- package/dist/types/packages/core/src/utils/dates.d.ts +1 -1
- package/dist/types/packages/core/src/utils/index.d.ts +1 -0
- package/dist/types/packages/core/src/utils/search-id.d.ts +2 -13
- package/package.json +1 -1
- package/dist/types/packages/core/src/algolia/configs.d.ts +0 -70
- package/dist/types/packages/core/src/algolia/geo-search.d.ts +0 -27
- package/dist/types/packages/core/src/algolia/get-anchor.d.ts +0 -26
- package/dist/types/packages/core/src/algolia/index.d.ts +0 -6
- package/dist/types/packages/core/src/algolia/load-suggests.d.ts +0 -10
- package/dist/types/packages/core/src/algolia/pricing.d.ts +0 -26
- package/dist/types/packages/core/src/algolia/utils.test.d.ts +0 -1
- package/dist/types/packages/core/src/backend-search.d.ts +0 -23
- package/dist/types/packages/core/src/backend-search.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
1. [Glossary](#glossary)
|
|
5
5
|
2. [Tutorials](#tutorials)
|
|
6
6
|
1. [Getting Started](#getting-started)
|
|
7
|
-
2. [
|
|
7
|
+
2. [React Native](#react-native)
|
|
8
|
+
3. [Usage](#usage)
|
|
8
9
|
1. [Search](#tutorial-hotels-search)
|
|
9
10
|
2. [Get hotel's rooms offers](#tutorial-get-rooms)
|
|
10
11
|
3. [Get hotel](#tutorial-get-hotel)
|
|
@@ -78,6 +79,18 @@ Now SAPI client is ready to be used in your application.
|
|
|
78
79
|
For full documentation and supported options check [client api](#sapi-client).
|
|
79
80
|
|
|
80
81
|
|
|
82
|
+
<a id="react-native"></a>
|
|
83
|
+
|
|
84
|
+
## React Native
|
|
85
|
+
|
|
86
|
+
Sapi SDK uses `uuid` for generation of random strings. `uuid` uses a global `crypto` object
|
|
87
|
+
which is not available in React Native environment.
|
|
88
|
+
|
|
89
|
+
To add support, `crypto` polyfill should be installed on the consumer side.
|
|
90
|
+
We recommend installing just `crypto.getRandomValues` polyfill if you don’t use other `crypto` methods.
|
|
91
|
+
More information about polyfill can be found [here](https://www.npmjs.com/package/react-native-get-random-values)
|
|
92
|
+
|
|
93
|
+
|
|
81
94
|
<a id="usage"></a>
|
|
82
95
|
|
|
83
96
|
## Usage
|