@seekora-ai/search-sdk 0.1.1 → 0.2.1
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 +5 -53
- package/cdn/seekora-sdk.js +8524 -3571
- package/cdn/seekora-sdk.min.js +2 -2
- package/dist/client.d.ts +312 -4
- package/dist/client.js +562 -5
- package/dist/config.d.ts +5 -5
- package/dist/config.js +6 -30
- package/dist/context-collector.d.ts +273 -0
- package/dist/context-collector.js +868 -0
- package/dist/event-queue.d.ts +195 -0
- package/dist/event-queue.js +424 -0
- package/dist/generated/api.d.ts +11010 -0
- package/dist/generated/api.js +2837 -0
- package/dist/generated/base.d.ts +42 -0
- package/dist/generated/base.js +48 -0
- package/dist/generated/common.d.ts +35 -0
- package/dist/generated/common.js +123 -0
- package/dist/generated/configuration.d.ts +98 -0
- package/dist/generated/configuration.js +48 -0
- package/dist/generated/index.d.ts +13 -0
- package/dist/generated/index.js +31 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +10 -2
- package/package.json +2 -3
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seekora APIs
|
|
3
|
+
* This is an API with JWT authentication.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
export declare const COLLECTION_FORMATS: {
|
|
16
|
+
csv: string;
|
|
17
|
+
ssv: string;
|
|
18
|
+
tsv: string;
|
|
19
|
+
pipes: string;
|
|
20
|
+
};
|
|
21
|
+
export interface RequestArgs {
|
|
22
|
+
url: string;
|
|
23
|
+
options: RawAxiosRequestConfig;
|
|
24
|
+
}
|
|
25
|
+
export declare class BaseAPI {
|
|
26
|
+
protected basePath: string;
|
|
27
|
+
protected axios: AxiosInstance;
|
|
28
|
+
protected configuration: Configuration | undefined;
|
|
29
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
30
|
+
}
|
|
31
|
+
export declare class RequiredError extends Error {
|
|
32
|
+
field: string;
|
|
33
|
+
constructor(field: string, msg?: string);
|
|
34
|
+
}
|
|
35
|
+
interface ServerMap {
|
|
36
|
+
[key: string]: {
|
|
37
|
+
url: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export declare const operationServerMap: ServerMap;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Seekora APIs
|
|
6
|
+
* This is an API with JWT authentication.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
exports.BASE_PATH = "https://api.seekora.com/api".replace(/\/+$/, "");
|
|
22
|
+
exports.COLLECTION_FORMATS = {
|
|
23
|
+
csv: ",",
|
|
24
|
+
ssv: " ",
|
|
25
|
+
tsv: "\t",
|
|
26
|
+
pipes: "|",
|
|
27
|
+
};
|
|
28
|
+
class BaseAPI {
|
|
29
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
30
|
+
this.basePath = basePath;
|
|
31
|
+
this.axios = axios;
|
|
32
|
+
if (configuration) {
|
|
33
|
+
this.configuration = configuration;
|
|
34
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.BaseAPI = BaseAPI;
|
|
39
|
+
;
|
|
40
|
+
class RequiredError extends Error {
|
|
41
|
+
constructor(field, msg) {
|
|
42
|
+
super(msg);
|
|
43
|
+
this.field = field;
|
|
44
|
+
this.name = "RequiredError";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.RequiredError = RequiredError;
|
|
48
|
+
exports.operationServerMap = {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seekora APIs
|
|
3
|
+
* This is an API with JWT authentication.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
import { URL } from 'url';
|
|
16
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @throws {RequiredError}
|
|
20
|
+
*/
|
|
21
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
22
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
23
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
24
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
25
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
26
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
27
|
+
/**
|
|
28
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
29
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
30
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
31
|
+
*/
|
|
32
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
|
|
33
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
34
|
+
export declare const toPathString: (url: URL) => string;
|
|
35
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Seekora APIs
|
|
6
|
+
* This is an API with JWT authentication.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
|
+
const base_1 = require("./base");
|
|
18
|
+
const url_1 = require("url");
|
|
19
|
+
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
*/
|
|
24
|
+
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
25
|
+
if (paramValue === null || paramValue === undefined) {
|
|
26
|
+
throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.assertParamExists = assertParamExists;
|
|
30
|
+
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
31
|
+
if (configuration && configuration.apiKey) {
|
|
32
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
33
|
+
? await configuration.apiKey(keyParamName)
|
|
34
|
+
: await configuration.apiKey;
|
|
35
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.setApiKeyToObject = setApiKeyToObject;
|
|
39
|
+
const setBasicAuthToObject = function (object, configuration) {
|
|
40
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
41
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
45
|
+
const setBearerAuthToObject = async function (object, configuration) {
|
|
46
|
+
if (configuration && configuration.accessToken) {
|
|
47
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
48
|
+
? await configuration.accessToken()
|
|
49
|
+
: await configuration.accessToken;
|
|
50
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
54
|
+
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
55
|
+
if (configuration && configuration.accessToken) {
|
|
56
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
57
|
+
? await configuration.accessToken(name, scopes)
|
|
58
|
+
: await configuration.accessToken;
|
|
59
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
exports.setOAuthToObject = setOAuthToObject;
|
|
63
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
64
|
+
if (parameter == null)
|
|
65
|
+
return;
|
|
66
|
+
if (typeof parameter === "object") {
|
|
67
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
68
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
if (urlSearchParams.has(key)) {
|
|
76
|
+
urlSearchParams.append(key, parameter);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
urlSearchParams.set(key, parameter);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const setSearchParams = function (url, ...objects) {
|
|
84
|
+
const searchParams = new url_1.URLSearchParams(url.search);
|
|
85
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
86
|
+
url.search = searchParams.toString();
|
|
87
|
+
};
|
|
88
|
+
exports.setSearchParams = setSearchParams;
|
|
89
|
+
/**
|
|
90
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
91
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
92
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
93
|
+
*/
|
|
94
|
+
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
95
|
+
if (value instanceof Set) {
|
|
96
|
+
return Array.from(value);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
103
|
+
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
104
|
+
const nonString = typeof value !== 'string';
|
|
105
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
106
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
107
|
+
: nonString;
|
|
108
|
+
return needsSerialization
|
|
109
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
110
|
+
: (value || "");
|
|
111
|
+
};
|
|
112
|
+
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
113
|
+
const toPathString = function (url) {
|
|
114
|
+
return url.pathname + url.search + url.hash;
|
|
115
|
+
};
|
|
116
|
+
exports.toPathString = toPathString;
|
|
117
|
+
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
118
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
119
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
120
|
+
return axios.request(axiosRequestArgs);
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
exports.createRequestFunction = createRequestFunction;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seekora APIs
|
|
3
|
+
* This is an API with JWT authentication.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface ConfigurationParameters {
|
|
24
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
25
|
+
username?: string;
|
|
26
|
+
password?: string;
|
|
27
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
29
|
+
basePath?: string;
|
|
30
|
+
serverIndex?: number;
|
|
31
|
+
baseOptions?: any;
|
|
32
|
+
formDataCtor?: new () => any;
|
|
33
|
+
}
|
|
34
|
+
export declare class Configuration {
|
|
35
|
+
/**
|
|
36
|
+
* parameter for apiKey security
|
|
37
|
+
* @param name security name
|
|
38
|
+
*/
|
|
39
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
40
|
+
/**
|
|
41
|
+
* parameter for basic security
|
|
42
|
+
*/
|
|
43
|
+
username?: string;
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for oauth2 security
|
|
50
|
+
* @param name security name
|
|
51
|
+
* @param scopes oauth2 scope
|
|
52
|
+
*/
|
|
53
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
68
|
+
basePath?: string;
|
|
69
|
+
/**
|
|
70
|
+
* override server index
|
|
71
|
+
*/
|
|
72
|
+
serverIndex?: number;
|
|
73
|
+
/**
|
|
74
|
+
* base options for axios calls
|
|
75
|
+
*/
|
|
76
|
+
baseOptions?: any;
|
|
77
|
+
/**
|
|
78
|
+
* The FormData constructor that will be used to create multipart form data
|
|
79
|
+
* requests. You can inject this here so that execution environments that
|
|
80
|
+
* do not support the FormData class can still run the generated client.
|
|
81
|
+
*
|
|
82
|
+
* @type {new () => FormData}
|
|
83
|
+
*/
|
|
84
|
+
formDataCtor?: new () => any;
|
|
85
|
+
constructor(param?: ConfigurationParameters);
|
|
86
|
+
/**
|
|
87
|
+
* Check if the given MIME is a JSON MIME.
|
|
88
|
+
* JSON MIME examples:
|
|
89
|
+
* application/json
|
|
90
|
+
* application/json; charset=UTF8
|
|
91
|
+
* APPLICATION/JSON
|
|
92
|
+
* application/vnd.company+json
|
|
93
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
94
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
95
|
+
*/
|
|
96
|
+
isJsonMime(mime: string): boolean;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* Seekora APIs
|
|
5
|
+
* This is an API with JWT authentication.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Configuration = void 0;
|
|
16
|
+
class Configuration {
|
|
17
|
+
constructor(param = {}) {
|
|
18
|
+
this.apiKey = param.apiKey;
|
|
19
|
+
this.username = param.username;
|
|
20
|
+
this.password = param.password;
|
|
21
|
+
this.accessToken = param.accessToken;
|
|
22
|
+
this.awsv4 = param.awsv4;
|
|
23
|
+
this.basePath = param.basePath;
|
|
24
|
+
this.serverIndex = param.serverIndex;
|
|
25
|
+
this.baseOptions = {
|
|
26
|
+
...param.baseOptions,
|
|
27
|
+
headers: {
|
|
28
|
+
...param.baseOptions?.headers,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
this.formDataCtor = param.formDataCtor;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if the given MIME is a JSON MIME.
|
|
35
|
+
* JSON MIME examples:
|
|
36
|
+
* application/json
|
|
37
|
+
* application/json; charset=UTF8
|
|
38
|
+
* APPLICATION/JSON
|
|
39
|
+
* application/vnd.company+json
|
|
40
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
41
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
42
|
+
*/
|
|
43
|
+
isJsonMime(mime) {
|
|
44
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
45
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.Configuration = Configuration;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seekora APIs
|
|
3
|
+
* This is an API with JWT authentication.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Seekora APIs
|
|
6
|
+
* This is an API with JWT authentication.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("./api"), exports);
|
|
31
|
+
__exportStar(require("./configuration"), exports);
|
package/dist/index.d.ts
CHANGED
|
@@ -8,5 +8,7 @@ export type { SeekoraEnvironment } from './config';
|
|
|
8
8
|
export { ENVIRONMENTS, getBaseUrl, getEnvironment, type EnvironmentConfig } from './config';
|
|
9
9
|
export { Logger, createLogger, getLogLevelFromEnv, type LogLevel, type LoggerConfig } from './logger';
|
|
10
10
|
export { loadConfig, loadConfigFromFile, loadConfigFromEnv, type FileConfig } from './config-loader';
|
|
11
|
-
export
|
|
11
|
+
export { ContextCollector, collectBrowserContext, getDefaultContextCollector, type BrowserContext, type ContextCollectorConfig } from './context-collector';
|
|
12
|
+
export { EventQueue, createEventQueue, getDefaultEventQueue, type QueuedEvent, type EventQueueConfig, type EventSender } from './event-queue';
|
|
13
|
+
export * from './generated';
|
|
12
14
|
export { SeekoraClient as default } from './client';
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.default = exports.loadConfigFromEnv = exports.loadConfigFromFile = exports.loadConfig = exports.getLogLevelFromEnv = exports.createLogger = exports.Logger = exports.getEnvironment = exports.getBaseUrl = exports.ENVIRONMENTS = exports.SeekoraClient = void 0;
|
|
22
|
+
exports.default = exports.getDefaultEventQueue = exports.createEventQueue = exports.EventQueue = exports.getDefaultContextCollector = exports.collectBrowserContext = exports.ContextCollector = exports.loadConfigFromEnv = exports.loadConfigFromFile = exports.loadConfig = exports.getLogLevelFromEnv = exports.createLogger = exports.Logger = exports.getEnvironment = exports.getBaseUrl = exports.ENVIRONMENTS = exports.SeekoraClient = void 0;
|
|
23
23
|
var client_1 = require("./client");
|
|
24
24
|
Object.defineProperty(exports, "SeekoraClient", { enumerable: true, get: function () { return client_1.SeekoraClient; } });
|
|
25
25
|
var config_1 = require("./config");
|
|
@@ -34,7 +34,15 @@ var config_loader_1 = require("./config-loader");
|
|
|
34
34
|
Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return config_loader_1.loadConfig; } });
|
|
35
35
|
Object.defineProperty(exports, "loadConfigFromFile", { enumerable: true, get: function () { return config_loader_1.loadConfigFromFile; } });
|
|
36
36
|
Object.defineProperty(exports, "loadConfigFromEnv", { enumerable: true, get: function () { return config_loader_1.loadConfigFromEnv; } });
|
|
37
|
-
|
|
37
|
+
var context_collector_1 = require("./context-collector");
|
|
38
|
+
Object.defineProperty(exports, "ContextCollector", { enumerable: true, get: function () { return context_collector_1.ContextCollector; } });
|
|
39
|
+
Object.defineProperty(exports, "collectBrowserContext", { enumerable: true, get: function () { return context_collector_1.collectBrowserContext; } });
|
|
40
|
+
Object.defineProperty(exports, "getDefaultContextCollector", { enumerable: true, get: function () { return context_collector_1.getDefaultContextCollector; } });
|
|
41
|
+
var event_queue_1 = require("./event-queue");
|
|
42
|
+
Object.defineProperty(exports, "EventQueue", { enumerable: true, get: function () { return event_queue_1.EventQueue; } });
|
|
43
|
+
Object.defineProperty(exports, "createEventQueue", { enumerable: true, get: function () { return event_queue_1.createEventQueue; } });
|
|
44
|
+
Object.defineProperty(exports, "getDefaultEventQueue", { enumerable: true, get: function () { return event_queue_1.getDefaultEventQueue; } });
|
|
45
|
+
__exportStar(require("./generated"), exports);
|
|
38
46
|
// Default export
|
|
39
47
|
var client_2 = require("./client");
|
|
40
48
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return client_2.SeekoraClient; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seekora-ai/search-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Seekora Search SDK for JavaScript/TypeScript",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"README.md"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "tsc
|
|
15
|
-
"build:copy-generated": "rm -rf dist/generated && mkdir -p dist/generated && cp generated/*.{js,d.ts,ts} dist/generated/ 2>/dev/null || true && rm -f dist/generated/package.json",
|
|
14
|
+
"build": "tsc",
|
|
16
15
|
"build:cdn": "npm run build && node scripts/build-cdn.js",
|
|
17
16
|
"build:cdn:prod": "NODE_ENV=production npm run build:cdn",
|
|
18
17
|
"prepack": "npm run build",
|