@algolia/ingestion 1.0.0-alpha.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/dist/builds/browser.d.ts +6 -0
- package/dist/builds/browser.d.ts.map +1 -0
- package/dist/builds/node.d.ts +6 -0
- package/dist/builds/node.d.ts.map +1 -0
- package/dist/ingestion.cjs.js +815 -0
- package/dist/ingestion.esm.browser.js +1450 -0
- package/dist/ingestion.esm.node.js +810 -0
- package/dist/ingestion.umd.js +2 -0
- package/dist/model/actionType.d.ts +2 -0
- package/dist/model/actionType.d.ts.map +1 -0
- package/dist/model/authAPIKey.d.ts +4 -0
- package/dist/model/authAPIKey.d.ts.map +1 -0
- package/dist/model/authAlgolia.d.ts +5 -0
- package/dist/model/authAlgolia.d.ts.map +1 -0
- package/dist/model/authBasic.d.ts +5 -0
- package/dist/model/authBasic.d.ts.map +1 -0
- package/dist/model/authGoogleServiceAccount.d.ts +5 -0
- package/dist/model/authGoogleServiceAccount.d.ts.map +1 -0
- package/dist/model/authInput.d.ts +7 -0
- package/dist/model/authInput.d.ts.map +1 -0
- package/dist/model/authOAuth.d.ts +7 -0
- package/dist/model/authOAuth.d.ts.map +1 -0
- package/dist/model/authentication.d.ts +19 -0
- package/dist/model/authentication.d.ts.map +1 -0
- package/dist/model/authenticationCreate.d.ts +10 -0
- package/dist/model/authenticationCreate.d.ts.map +1 -0
- package/dist/model/authenticationCreateResponse.d.ts +9 -0
- package/dist/model/authenticationCreateResponse.d.ts.map +1 -0
- package/dist/model/authenticationType.d.ts +2 -0
- package/dist/model/authenticationType.d.ts.map +1 -0
- package/dist/model/authenticationUpdate.d.ts +10 -0
- package/dist/model/authenticationUpdate.d.ts.map +1 -0
- package/dist/model/authenticationUpdateResponse.d.ts +9 -0
- package/dist/model/authenticationUpdateResponse.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +265 -0
- package/dist/model/clientMethodProps.d.ts.map +1 -0
- package/dist/model/deleteResponse.d.ts +7 -0
- package/dist/model/deleteResponse.d.ts.map +1 -0
- package/dist/model/destination.d.ts +18 -0
- package/dist/model/destination.d.ts.map +1 -0
- package/dist/model/destinationCreate.d.ts +9 -0
- package/dist/model/destinationCreate.d.ts.map +1 -0
- package/dist/model/destinationCreateResponse.d.ts +9 -0
- package/dist/model/destinationCreateResponse.d.ts.map +1 -0
- package/dist/model/destinationIndexName.d.ts +4 -0
- package/dist/model/destinationIndexName.d.ts.map +1 -0
- package/dist/model/destinationIndexPrefix.d.ts +4 -0
- package/dist/model/destinationIndexPrefix.d.ts.map +1 -0
- package/dist/model/destinationInput.d.ts +4 -0
- package/dist/model/destinationInput.d.ts.map +1 -0
- package/dist/model/destinationType.d.ts +2 -0
- package/dist/model/destinationType.d.ts.map +1 -0
- package/dist/model/destinationUpdate.d.ts +9 -0
- package/dist/model/destinationUpdate.d.ts.map +1 -0
- package/dist/model/destinationUpdateResponse.d.ts +9 -0
- package/dist/model/destinationUpdateResponse.d.ts.map +1 -0
- package/dist/model/errorBase.d.ts +7 -0
- package/dist/model/errorBase.d.ts.map +1 -0
- package/dist/model/event.d.ts +15 -0
- package/dist/model/event.d.ts.map +1 -0
- package/dist/model/eventStatus.d.ts +2 -0
- package/dist/model/eventStatus.d.ts.map +1 -0
- package/dist/model/eventType.d.ts +2 -0
- package/dist/model/eventType.d.ts.map +1 -0
- package/dist/model/index.d.ts +59 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/listAuthenticationsResponse.d.ts +7 -0
- package/dist/model/listAuthenticationsResponse.d.ts.map +1 -0
- package/dist/model/listDestinationsResponse.d.ts +7 -0
- package/dist/model/listDestinationsResponse.d.ts.map +1 -0
- package/dist/model/listEventsResponse.d.ts +7 -0
- package/dist/model/listEventsResponse.d.ts.map +1 -0
- package/dist/model/listSourcesResponse.d.ts +7 -0
- package/dist/model/listSourcesResponse.d.ts.map +1 -0
- package/dist/model/listTasksResponse.d.ts +7 -0
- package/dist/model/listTasksResponse.d.ts.map +1 -0
- package/dist/model/pagination.d.ts +7 -0
- package/dist/model/pagination.d.ts.map +1 -0
- package/dist/model/platformType.d.ts +2 -0
- package/dist/model/platformType.d.ts.map +1 -0
- package/dist/model/run.d.ts +30 -0
- package/dist/model/run.d.ts.map +1 -0
- package/dist/model/runListResponse.d.ts +7 -0
- package/dist/model/runListResponse.d.ts.map +1 -0
- package/dist/model/runOutcome.d.ts +2 -0
- package/dist/model/runOutcome.d.ts.map +1 -0
- package/dist/model/runProgress.d.ts +5 -0
- package/dist/model/runProgress.d.ts.map +1 -0
- package/dist/model/runResponse.d.ts +8 -0
- package/dist/model/runResponse.d.ts.map +1 -0
- package/dist/model/runStatus.d.ts +2 -0
- package/dist/model/runStatus.d.ts.map +1 -0
- package/dist/model/runType.d.ts +2 -0
- package/dist/model/runType.d.ts.map +1 -0
- package/dist/model/source.d.ts +18 -0
- package/dist/model/source.d.ts.map +1 -0
- package/dist/model/sourceBigCommerce.d.ts +4 -0
- package/dist/model/sourceBigCommerce.d.ts.map +1 -0
- package/dist/model/sourceCommercetools.d.ts +6 -0
- package/dist/model/sourceCommercetools.d.ts.map +1 -0
- package/dist/model/sourceCreate.d.ts +9 -0
- package/dist/model/sourceCreate.d.ts.map +1 -0
- package/dist/model/sourceCreateResponse.d.ts +9 -0
- package/dist/model/sourceCreateResponse.d.ts.map +1 -0
- package/dist/model/sourceInput.d.ts +4 -0
- package/dist/model/sourceInput.d.ts.map +1 -0
- package/dist/model/sourceType.d.ts +2 -0
- package/dist/model/sourceType.d.ts.map +1 -0
- package/dist/model/sourceUpdate.d.ts +9 -0
- package/dist/model/sourceUpdate.d.ts.map +1 -0
- package/dist/model/sourceUpdateResponse.d.ts +9 -0
- package/dist/model/sourceUpdateResponse.d.ts.map +1 -0
- package/dist/model/task.d.ts +21 -0
- package/dist/model/task.d.ts.map +1 -0
- package/dist/model/taskCreate.d.ts +10 -0
- package/dist/model/taskCreate.d.ts.map +1 -0
- package/dist/model/taskCreateResponse.d.ts +8 -0
- package/dist/model/taskCreateResponse.d.ts.map +1 -0
- package/dist/model/taskUpdate.d.ts +7 -0
- package/dist/model/taskUpdate.d.ts.map +1 -0
- package/dist/model/taskUpdateResponse.d.ts +8 -0
- package/dist/model/taskUpdateResponse.d.ts.map +1 -0
- package/dist/model/trigger.d.ts +6 -0
- package/dist/model/trigger.d.ts.map +1 -0
- package/dist/model/triggerType.d.ts +2 -0
- package/dist/model/triggerType.d.ts.map +1 -0
- package/dist/src/ingestionClient.d.ts +322 -0
- package/dist/src/ingestionClient.d.ts.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/model/actionType.ts +3 -0
- package/model/authAPIKey.ts +5 -0
- package/model/authAlgolia.ts +7 -0
- package/model/authBasic.ts +7 -0
- package/model/authGoogleServiceAccount.ts +7 -0
- package/model/authInput.ts +14 -0
- package/model/authOAuth.ts +11 -0
- package/model/authentication.ts +27 -0
- package/model/authenticationCreate.ts +15 -0
- package/model/authenticationCreateResponse.ts +12 -0
- package/model/authenticationType.ts +8 -0
- package/model/authenticationUpdate.ts +15 -0
- package/model/authenticationUpdateResponse.ts +12 -0
- package/model/clientMethodProps.ts +290 -0
- package/model/deleteResponse.ts +8 -0
- package/model/destination.ts +26 -0
- package/model/destinationCreate.ts +14 -0
- package/model/destinationCreateResponse.ts +12 -0
- package/model/destinationIndexName.ts +5 -0
- package/model/destinationIndexPrefix.ts +5 -0
- package/model/destinationInput.ts +6 -0
- package/model/destinationType.ts +3 -0
- package/model/destinationUpdate.ts +14 -0
- package/model/destinationUpdateResponse.ts +12 -0
- package/model/errorBase.ts +8 -0
- package/model/event.ts +23 -0
- package/model/eventStatus.ts +8 -0
- package/model/eventType.ts +3 -0
- package/model/index.ts +60 -0
- package/model/listAuthenticationsResponse.ts +10 -0
- package/model/listDestinationsResponse.ts +10 -0
- package/model/listEventsResponse.ts +10 -0
- package/model/listSourcesResponse.ts +10 -0
- package/model/listTasksResponse.ts +10 -0
- package/model/pagination.ts +11 -0
- package/model/platformType.ts +3 -0
- package/model/run.ts +42 -0
- package/model/runListResponse.ts +10 -0
- package/model/runOutcome.ts +3 -0
- package/model/runProgress.ts +7 -0
- package/model/runResponse.ts +10 -0
- package/model/runStatus.ts +3 -0
- package/model/runType.ts +3 -0
- package/model/source.ts +26 -0
- package/model/sourceBigCommerce.ts +5 -0
- package/model/sourceCommercetools.ts +9 -0
- package/model/sourceCreate.ts +14 -0
- package/model/sourceCreateResponse.ts +12 -0
- package/model/sourceInput.ts +6 -0
- package/model/sourceType.ts +3 -0
- package/model/sourceUpdate.ts +14 -0
- package/model/sourceUpdateResponse.ts +12 -0
- package/model/task.ts +32 -0
- package/model/taskCreate.ts +16 -0
- package/model/taskCreateResponse.ts +10 -0
- package/model/taskUpdate.ts +11 -0
- package/model/taskUpdateResponse.ts +10 -0
- package/model/trigger.ts +9 -0
- package/model/triggerType.ts +3 -0
- package/package.json +53 -0
package/model/source.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { SourceInput } from './sourceInput';
|
|
4
|
+
import type { SourceType } from './sourceType';
|
|
5
|
+
|
|
6
|
+
export type Source = {
|
|
7
|
+
sourceID: string;
|
|
8
|
+
|
|
9
|
+
type: SourceType;
|
|
10
|
+
|
|
11
|
+
name: string;
|
|
12
|
+
|
|
13
|
+
input: SourceInput;
|
|
14
|
+
|
|
15
|
+
authenticationID: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Date of creation (RFC3339 format).
|
|
19
|
+
*/
|
|
20
|
+
createdAt: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Date of last update (RFC3339 format).
|
|
24
|
+
*/
|
|
25
|
+
updatedAt?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { SourceInput } from './sourceInput';
|
|
4
|
+
import type { SourceType } from './sourceType';
|
|
5
|
+
|
|
6
|
+
export type SourceCreate = {
|
|
7
|
+
type: SourceType;
|
|
8
|
+
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
input: SourceInput;
|
|
12
|
+
|
|
13
|
+
authenticationID: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type SourceCreateResponse = {
|
|
4
|
+
sourceID: string;
|
|
5
|
+
|
|
6
|
+
name: string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Date of creation (RFC3339 format).
|
|
10
|
+
*/
|
|
11
|
+
createdAt: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { SourceBigCommerce } from './sourceBigCommerce';
|
|
4
|
+
import type { SourceCommercetools } from './sourceCommercetools';
|
|
5
|
+
|
|
6
|
+
export type SourceInput = SourceBigCommerce | SourceCommercetools;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { SourceInput } from './sourceInput';
|
|
4
|
+
import type { SourceType } from './sourceType';
|
|
5
|
+
|
|
6
|
+
export type SourceUpdate = {
|
|
7
|
+
type?: SourceType;
|
|
8
|
+
|
|
9
|
+
name?: string;
|
|
10
|
+
|
|
11
|
+
input?: SourceInput;
|
|
12
|
+
|
|
13
|
+
authenticationID?: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type SourceUpdateResponse = {
|
|
4
|
+
sourceID: string;
|
|
5
|
+
|
|
6
|
+
name: string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Date of last update (RFC3339 format).
|
|
10
|
+
*/
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
};
|
package/model/task.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { ActionType } from './actionType';
|
|
4
|
+
import type { Trigger } from './trigger';
|
|
5
|
+
|
|
6
|
+
export type Task = {
|
|
7
|
+
taskID: string;
|
|
8
|
+
|
|
9
|
+
sourceID: string;
|
|
10
|
+
|
|
11
|
+
destinationID: string;
|
|
12
|
+
|
|
13
|
+
trigger?: Trigger;
|
|
14
|
+
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
|
|
17
|
+
action: ActionType;
|
|
18
|
+
|
|
19
|
+
lastRun?: string;
|
|
20
|
+
|
|
21
|
+
nextRun?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Date of creation (RFC3339 format).
|
|
25
|
+
*/
|
|
26
|
+
createdAt: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Date of last update (RFC3339 format).
|
|
30
|
+
*/
|
|
31
|
+
updatedAt?: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { ActionType } from './actionType';
|
|
4
|
+
import type { Trigger } from './trigger';
|
|
5
|
+
|
|
6
|
+
export type TaskCreate = {
|
|
7
|
+
sourceID: string;
|
|
8
|
+
|
|
9
|
+
destinationID: string;
|
|
10
|
+
|
|
11
|
+
trigger: Trigger;
|
|
12
|
+
|
|
13
|
+
action: ActionType;
|
|
14
|
+
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { Trigger } from './trigger';
|
|
4
|
+
|
|
5
|
+
export type TaskUpdate = {
|
|
6
|
+
destinationID?: string;
|
|
7
|
+
|
|
8
|
+
trigger?: Trigger;
|
|
9
|
+
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
};
|
package/model/trigger.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@algolia/ingestion",
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
|
+
"description": "JavaScript client for ingestion",
|
|
5
|
+
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Algolia",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"node": {
|
|
11
|
+
"import": "./dist/ingestion.esm.node.js",
|
|
12
|
+
"module": "./dist/ingestion.esm.node.js",
|
|
13
|
+
"require": "./dist/ingestion.cjs.js",
|
|
14
|
+
"default": "./dist/ingestion.cjs.js"
|
|
15
|
+
},
|
|
16
|
+
"default": {
|
|
17
|
+
"umd": "./dist/ingestion.umd.js",
|
|
18
|
+
"module": "./dist/ingestion.esm.browser.js",
|
|
19
|
+
"import": "./dist/ingestion.esm.browser.js",
|
|
20
|
+
"default": "./dist/ingestion.umd.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./src/*": "./src/*.ts",
|
|
24
|
+
"./model": "./model/index.ts"
|
|
25
|
+
},
|
|
26
|
+
"jsdelivr": "./dist/ingestion.umd.js",
|
|
27
|
+
"unpkg": "./dist/ingestion.umd.js",
|
|
28
|
+
"browser": "./dist/ingestion.umd.js",
|
|
29
|
+
"types": "./index.d.ts",
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"model",
|
|
33
|
+
"index.js",
|
|
34
|
+
"index.d.ts"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "yarn clean && rollup --config",
|
|
38
|
+
"clean": "rm -rf ./dist || true"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@algolia/client-common": "5.0.0-alpha.28",
|
|
42
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.28",
|
|
43
|
+
"@algolia/requester-node-http": "5.0.0-alpha.28"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/node": "16.11.59",
|
|
47
|
+
"rollup": "2.79.1",
|
|
48
|
+
"typescript": "4.8.3"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">= 14.0.0"
|
|
52
|
+
}
|
|
53
|
+
}
|