@algolia/ingestion 1.46.4 → 1.48.0
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 +4 -4
- package/dist/browser.d.ts +11 -4
- package/dist/builds/browser.js +2 -2
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +2 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +2 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +11 -4
- package/dist/node.d.cts +11 -4
- package/dist/node.d.ts +11 -4
- package/dist/src/ingestionClient.cjs +1 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +6 -13
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +11 -4
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -40,11 +40,11 @@ All of our clients comes with type definition, and are available for both browse
|
|
|
40
40
|
### With a package manager
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
yarn add @algolia/ingestion@1.
|
|
43
|
+
yarn add @algolia/ingestion@1.48.0
|
|
44
44
|
# or
|
|
45
|
-
npm install @algolia/ingestion@1.
|
|
45
|
+
npm install @algolia/ingestion@1.48.0
|
|
46
46
|
# or
|
|
47
|
-
pnpm add @algolia/ingestion@1.
|
|
47
|
+
pnpm add @algolia/ingestion@1.48.0
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### Without a package manager
|
|
@@ -52,7 +52,7 @@ pnpm add @algolia/ingestion@1.46.4
|
|
|
52
52
|
Add the following JavaScript snippet to the <head> of your website:
|
|
53
53
|
|
|
54
54
|
```html
|
|
55
|
-
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.
|
|
55
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.48.0/dist/builds/browser.umd.js"></script>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ type AuthOAuthPartial = {
|
|
|
83
83
|
* Client secret. This field is `null` in the API response.
|
|
84
84
|
*/
|
|
85
85
|
client_secret?: string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Authorization code. Used during an `authorization_code` grant type flow, to request an access_token when creating/updating the authentication. This field is not returned in the API response.
|
|
88
|
+
*/
|
|
89
|
+
code?: string | undefined;
|
|
86
90
|
/**
|
|
87
91
|
* OAuth scope.
|
|
88
92
|
*/
|
|
@@ -209,11 +213,15 @@ type AuthOAuth = {
|
|
|
209
213
|
/**
|
|
210
214
|
* Client ID.
|
|
211
215
|
*/
|
|
212
|
-
client_id
|
|
216
|
+
client_id?: string | undefined;
|
|
213
217
|
/**
|
|
214
218
|
* Client secret. This field is `null` in the API response.
|
|
215
219
|
*/
|
|
216
|
-
client_secret
|
|
220
|
+
client_secret?: string | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Authorization code. Used during an `authorization_code` grant type flow, to request an access_token when creating/updating the authentication. This field is not returned in the API response.
|
|
223
|
+
*/
|
|
224
|
+
code?: string | undefined;
|
|
217
225
|
/**
|
|
218
226
|
* OAuth scope.
|
|
219
227
|
*/
|
|
@@ -1519,7 +1527,6 @@ type AuthenticationSortKeys = 'name' | 'type' | 'platform' | 'updatedAt' | 'crea
|
|
|
1519
1527
|
* Request body for updating an authentication resource.
|
|
1520
1528
|
*/
|
|
1521
1529
|
type AuthenticationUpdate = {
|
|
1522
|
-
type?: AuthenticationType | undefined;
|
|
1523
1530
|
/**
|
|
1524
1531
|
* Descriptive name for the resource.
|
|
1525
1532
|
*/
|
|
@@ -2494,7 +2501,7 @@ type ChunkedPushOptions = {
|
|
|
2494
2501
|
objects: Array<Record<string, unknown>>;
|
|
2495
2502
|
};
|
|
2496
2503
|
|
|
2497
|
-
declare const apiClientVersion = "1.
|
|
2504
|
+
declare const apiClientVersion = "1.48.0";
|
|
2498
2505
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2499
2506
|
type Region = (typeof REGIONS)[number];
|
|
2500
2507
|
type RegionOptions = {
|
package/dist/builds/browser.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// builds/browser.ts
|
|
2
|
-
import { createXhrRequester } from "@algolia/requester-browser-xhr";
|
|
3
2
|
import {
|
|
4
3
|
createBrowserLocalStorageCache,
|
|
5
4
|
createFallbackableCache,
|
|
6
5
|
createMemoryCache,
|
|
7
6
|
createNullLogger
|
|
8
7
|
} from "@algolia/client-common";
|
|
8
|
+
import { createXhrRequester } from "@algolia/requester-browser-xhr";
|
|
9
9
|
|
|
10
10
|
// src/ingestionClient.ts
|
|
11
11
|
import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
12
|
-
var apiClientVersion = "1.
|
|
12
|
+
var apiClientVersion = "1.48.0";
|
|
13
13
|
var REGIONS = ["eu", "us"];
|
|
14
14
|
function getDefaultHosts(region) {
|
|
15
15
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|