@amgix/amgix-client 1.0.0-beta1
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/LICENSE +202 -0
- package/dist/apis/AmgixApi.d.ts +236 -0
- package/dist/apis/AmgixApi.d.ts.map +1 -0
- package/dist/apis/AmgixApi.js +554 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.d.ts.map +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/models/BulkUploadRequest.d.ts +34 -0
- package/dist/models/BulkUploadRequest.d.ts.map +1 -0
- package/dist/models/BulkUploadRequest.js +51 -0
- package/dist/models/CollectionConfig.d.ts +47 -0
- package/dist/models/CollectionConfig.d.ts.map +1 -0
- package/dist/models/CollectionConfig.js +56 -0
- package/dist/models/CustomDocumentVector.d.ts +55 -0
- package/dist/models/CustomDocumentVector.d.ts.map +1 -0
- package/dist/models/CustomDocumentVector.js +68 -0
- package/dist/models/CustomVector.d.ts +40 -0
- package/dist/models/CustomVector.d.ts.map +1 -0
- package/dist/models/CustomVector.js +55 -0
- package/dist/models/Document.d.ts +80 -0
- package/dist/models/Document.d.ts.map +1 -0
- package/dist/models/Document.js +69 -0
- package/dist/models/DocumentStatus.d.ts +67 -0
- package/dist/models/DocumentStatus.d.ts.map +1 -0
- package/dist/models/DocumentStatus.js +70 -0
- package/dist/models/DocumentStatusResponse.d.ts +34 -0
- package/dist/models/DocumentStatusResponse.d.ts.map +1 -0
- package/dist/models/DocumentStatusResponse.js +51 -0
- package/dist/models/HTTPValidationError.d.ts +34 -0
- package/dist/models/HTTPValidationError.d.ts.map +1 -0
- package/dist/models/HTTPValidationError.js +49 -0
- package/dist/models/MetadataFilter.d.ts +74 -0
- package/dist/models/MetadataFilter.d.ts.map +1 -0
- package/dist/models/MetadataFilter.js +69 -0
- package/dist/models/MetadataIndex.d.ts +50 -0
- package/dist/models/MetadataIndex.d.ts.map +1 -0
- package/dist/models/MetadataIndex.js +65 -0
- package/dist/models/OkResponse.d.ts +33 -0
- package/dist/models/OkResponse.d.ts.map +1 -0
- package/dist/models/OkResponse.js +50 -0
- package/dist/models/QueueInfo.d.ts +52 -0
- package/dist/models/QueueInfo.d.ts.map +1 -0
- package/dist/models/QueueInfo.js +62 -0
- package/dist/models/SearchQuery.d.ts +86 -0
- package/dist/models/SearchQuery.d.ts.map +1 -0
- package/dist/models/SearchQuery.js +69 -0
- package/dist/models/SearchResult.d.ts +87 -0
- package/dist/models/SearchResult.d.ts.map +1 -0
- package/dist/models/SearchResult.js +74 -0
- package/dist/models/ValidationError.d.ts +46 -0
- package/dist/models/ValidationError.d.ts.map +1 -0
- package/dist/models/ValidationError.js +59 -0
- package/dist/models/ValidationErrorLocInner.d.ts +27 -0
- package/dist/models/ValidationErrorLocInner.d.ts.map +1 -0
- package/dist/models/ValidationErrorLocInner.js +38 -0
- package/dist/models/Vector.d.ts +27 -0
- package/dist/models/Vector.d.ts.map +1 -0
- package/dist/models/Vector.js +38 -0
- package/dist/models/VectorConfig.d.ts +154 -0
- package/dist/models/VectorConfig.d.ts.map +1 -0
- package/dist/models/VectorConfig.js +113 -0
- package/dist/models/VectorScore.d.ts +51 -0
- package/dist/models/VectorScore.d.ts.map +1 -0
- package/dist/models/VectorScore.js +62 -0
- package/dist/models/VectorSearchWeight.d.ts +56 -0
- package/dist/models/VectorSearchWeight.d.ts.map +1 -0
- package/dist/models/VectorSearchWeight.js +67 -0
- package/dist/models/VersionResponse.d.ts +33 -0
- package/dist/models/VersionResponse.d.ts.map +1 -0
- package/dist/models/VersionResponse.js +50 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +39 -0
- package/dist/runtime.d.ts +185 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +338 -0
- package/package.json +27 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amalgam Index API
|
|
6
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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.instanceOfQueueInfo = instanceOfQueueInfo;
|
|
17
|
+
exports.QueueInfoFromJSON = QueueInfoFromJSON;
|
|
18
|
+
exports.QueueInfoFromJSONTyped = QueueInfoFromJSONTyped;
|
|
19
|
+
exports.QueueInfoToJSON = QueueInfoToJSON;
|
|
20
|
+
exports.QueueInfoToJSONTyped = QueueInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the QueueInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfQueueInfo(value) {
|
|
25
|
+
if (!('queued' in value) || value['queued'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('requeued' in value) || value['requeued'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('failed' in value) || value['failed'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function QueueInfoFromJSON(json) {
|
|
36
|
+
return QueueInfoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function QueueInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'queued': json['queued'],
|
|
44
|
+
'requeued': json['requeued'],
|
|
45
|
+
'failed': json['failed'],
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function QueueInfoToJSON(json) {
|
|
50
|
+
return QueueInfoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function QueueInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'queued': value['queued'],
|
|
58
|
+
'requeued': value['requeued'],
|
|
59
|
+
'failed': value['failed'],
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amalgam Index API
|
|
3
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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 { VectorSearchWeight } from './VectorSearchWeight';
|
|
13
|
+
import type { CustomVector } from './CustomVector';
|
|
14
|
+
import type { MetadataFilter } from './MetadataFilter';
|
|
15
|
+
/**
|
|
16
|
+
* Configuration for a search query.
|
|
17
|
+
* Defines the query string and vector weights.
|
|
18
|
+
* This is the model that will be sent by end users to the search API endpoint.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SearchQuery
|
|
21
|
+
*/
|
|
22
|
+
export interface SearchQuery {
|
|
23
|
+
/**
|
|
24
|
+
* The search query string (max 10000 characters)
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SearchQuery
|
|
27
|
+
*/
|
|
28
|
+
query: string;
|
|
29
|
+
/**
|
|
30
|
+
* List of vectors, fields, and weights to use for searching. If empty, equal weights will be auto-generated for all available vectors.
|
|
31
|
+
* @type {Array<VectorSearchWeight>}
|
|
32
|
+
* @memberof SearchQuery
|
|
33
|
+
*/
|
|
34
|
+
vector_weights?: Array<VectorSearchWeight>;
|
|
35
|
+
/**
|
|
36
|
+
* Pre-generated custom vectors for this search query (optional)
|
|
37
|
+
* @type {Array<CustomVector>}
|
|
38
|
+
* @memberof SearchQuery
|
|
39
|
+
*/
|
|
40
|
+
custom_vectors?: Array<CustomVector>;
|
|
41
|
+
/**
|
|
42
|
+
* Maximum number of results to return (1 to 100)
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof SearchQuery
|
|
45
|
+
*/
|
|
46
|
+
limit?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Optional minimum score threshold. Results below this score will be excluded
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof SearchQuery
|
|
51
|
+
*/
|
|
52
|
+
score_threshold?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Optional filter to include only documents with specific tags (max 50 tags, each max 100 characters; cannot contain pipe characters)
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof SearchQuery
|
|
57
|
+
*/
|
|
58
|
+
document_tags?: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
* If True, documents must have ALL specified tags (AND). If False, documents must have ANY of the specified tags (OR).
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof SearchQuery
|
|
63
|
+
*/
|
|
64
|
+
document_tags_match_all?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Optional recursive metadata filter. Only fields declared in collection metadata_indexes can be filtered.
|
|
67
|
+
* @type {MetadataFilter}
|
|
68
|
+
* @memberof SearchQuery
|
|
69
|
+
*/
|
|
70
|
+
metadata_filter?: MetadataFilter;
|
|
71
|
+
/**
|
|
72
|
+
* Whether to include individual vector scores in results
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof SearchQuery
|
|
75
|
+
*/
|
|
76
|
+
raw_scores?: boolean;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the SearchQuery interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfSearchQuery(value: object): value is SearchQuery;
|
|
82
|
+
export declare function SearchQueryFromJSON(json: any): SearchQuery;
|
|
83
|
+
export declare function SearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchQuery;
|
|
84
|
+
export declare function SearchQueryToJSON(json: any): SearchQuery;
|
|
85
|
+
export declare function SearchQueryToJSONTyped(value?: SearchQuery | null, ignoreDiscriminator?: boolean): any;
|
|
86
|
+
//# sourceMappingURL=SearchQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchQuery.d.ts","sourceRoot":"","sources":["../../models/SearchQuery.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAgB7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiB5G"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amalgam Index API
|
|
6
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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.instanceOfSearchQuery = instanceOfSearchQuery;
|
|
17
|
+
exports.SearchQueryFromJSON = SearchQueryFromJSON;
|
|
18
|
+
exports.SearchQueryFromJSONTyped = SearchQueryFromJSONTyped;
|
|
19
|
+
exports.SearchQueryToJSON = SearchQueryToJSON;
|
|
20
|
+
exports.SearchQueryToJSONTyped = SearchQueryToJSONTyped;
|
|
21
|
+
const VectorSearchWeight_1 = require("./VectorSearchWeight");
|
|
22
|
+
const CustomVector_1 = require("./CustomVector");
|
|
23
|
+
const MetadataFilter_1 = require("./MetadataFilter");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the SearchQuery interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfSearchQuery(value) {
|
|
28
|
+
if (!('query' in value) || value['query'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function SearchQueryFromJSON(json) {
|
|
33
|
+
return SearchQueryFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function SearchQueryFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'query': json['query'],
|
|
41
|
+
'vector_weights': json['vector_weights'] == null ? undefined : (json['vector_weights'].map(VectorSearchWeight_1.VectorSearchWeightFromJSON)),
|
|
42
|
+
'custom_vectors': json['custom_vectors'] == null ? undefined : (json['custom_vectors'].map(CustomVector_1.CustomVectorFromJSON)),
|
|
43
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
44
|
+
'score_threshold': json['score_threshold'] == null ? undefined : json['score_threshold'],
|
|
45
|
+
'document_tags': json['document_tags'] == null ? undefined : json['document_tags'],
|
|
46
|
+
'document_tags_match_all': json['document_tags_match_all'] == null ? undefined : json['document_tags_match_all'],
|
|
47
|
+
'metadata_filter': json['metadata_filter'] == null ? undefined : (0, MetadataFilter_1.MetadataFilterFromJSON)(json['metadata_filter']),
|
|
48
|
+
'raw_scores': json['raw_scores'] == null ? undefined : json['raw_scores'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function SearchQueryToJSON(json) {
|
|
52
|
+
return SearchQueryToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function SearchQueryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'query': value['query'],
|
|
60
|
+
'vector_weights': value['vector_weights'] == null ? undefined : (value['vector_weights'].map(VectorSearchWeight_1.VectorSearchWeightToJSON)),
|
|
61
|
+
'custom_vectors': value['custom_vectors'] == null ? undefined : (value['custom_vectors'].map(CustomVector_1.CustomVectorToJSON)),
|
|
62
|
+
'limit': value['limit'],
|
|
63
|
+
'score_threshold': value['score_threshold'],
|
|
64
|
+
'document_tags': value['document_tags'],
|
|
65
|
+
'document_tags_match_all': value['document_tags_match_all'],
|
|
66
|
+
'metadata_filter': (0, MetadataFilter_1.MetadataFilterToJSON)(value['metadata_filter']),
|
|
67
|
+
'raw_scores': value['raw_scores'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amalgam Index API
|
|
3
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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 { VectorScore } from './VectorScore';
|
|
13
|
+
import type { CustomDocumentVector } from './CustomDocumentVector';
|
|
14
|
+
/**
|
|
15
|
+
* A search result containing document information and its relevance score.
|
|
16
|
+
* Inherits from Document but excludes content field and adds score.
|
|
17
|
+
*
|
|
18
|
+
* Validation is disabled for SearchResult as it is constructed internally from validated data.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SearchResult
|
|
21
|
+
*/
|
|
22
|
+
export interface SearchResult {
|
|
23
|
+
[key: string]: any | any;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the document (max 100 characters)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SearchResult
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* UTC timestamp when the document was created/updated
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof SearchResult
|
|
34
|
+
*/
|
|
35
|
+
timestamp: Date;
|
|
36
|
+
/**
|
|
37
|
+
* List of document tags (max 50 items; each max 100 characters; cannot contain pipe characters)
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof SearchResult
|
|
40
|
+
*/
|
|
41
|
+
tags?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Document name (max 1500 characters)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SearchResult
|
|
46
|
+
*/
|
|
47
|
+
name?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Brief description of the document (max 3000 characters)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SearchResult
|
|
52
|
+
*/
|
|
53
|
+
description?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Dictionary of metadata key-value pairs. Values can be simple types (string, int, float, bool) or MetaValue objects (required for datetime)
|
|
56
|
+
* @type {object}
|
|
57
|
+
* @memberof SearchResult
|
|
58
|
+
*/
|
|
59
|
+
metadata?: object;
|
|
60
|
+
/**
|
|
61
|
+
* Pre-generated custom vectors for this document (optional)
|
|
62
|
+
* @type {Array<CustomDocumentVector>}
|
|
63
|
+
* @memberof SearchResult
|
|
64
|
+
*/
|
|
65
|
+
custom_vectors?: Array<CustomDocumentVector>;
|
|
66
|
+
/**
|
|
67
|
+
* The relevance score for this document
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof SearchResult
|
|
70
|
+
*/
|
|
71
|
+
score: number;
|
|
72
|
+
/**
|
|
73
|
+
* Raw per-vector scores with field, vector, score, and rank information
|
|
74
|
+
* @type {Array<VectorScore>}
|
|
75
|
+
* @memberof SearchResult
|
|
76
|
+
*/
|
|
77
|
+
vector_scores?: Array<VectorScore>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the SearchResult interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfSearchResult(value: object): value is SearchResult;
|
|
83
|
+
export declare function SearchResultFromJSON(json: any): SearchResult;
|
|
84
|
+
export declare function SearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResult;
|
|
85
|
+
export declare function SearchResultToJSON(json: any): SearchResult;
|
|
86
|
+
export declare function SearchResultToJSONTyped(value?: SearchResult | null, ignoreDiscriminator?: boolean): any;
|
|
87
|
+
//# sourceMappingURL=SearchResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchResult.d.ts","sourceRoot":"","sources":["../../models/SearchResult.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC7C;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAK3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAiB/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkB9G"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amalgam Index API
|
|
6
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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.instanceOfSearchResult = instanceOfSearchResult;
|
|
17
|
+
exports.SearchResultFromJSON = SearchResultFromJSON;
|
|
18
|
+
exports.SearchResultFromJSONTyped = SearchResultFromJSONTyped;
|
|
19
|
+
exports.SearchResultToJSON = SearchResultToJSON;
|
|
20
|
+
exports.SearchResultToJSONTyped = SearchResultToJSONTyped;
|
|
21
|
+
const VectorScore_1 = require("./VectorScore");
|
|
22
|
+
const CustomDocumentVector_1 = require("./CustomDocumentVector");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the SearchResult interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfSearchResult(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SearchResultFromJSON(json) {
|
|
36
|
+
return SearchResultFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SearchResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
...json,
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
46
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
47
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
48
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
49
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
50
|
+
'custom_vectors': json['custom_vectors'] == null ? undefined : (json['custom_vectors'].map(CustomDocumentVector_1.CustomDocumentVectorFromJSON)),
|
|
51
|
+
'score': json['score'],
|
|
52
|
+
'vector_scores': json['vector_scores'] == null ? undefined : (json['vector_scores'].map(VectorScore_1.VectorScoreFromJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function SearchResultToJSON(json) {
|
|
56
|
+
return SearchResultToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function SearchResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
...value,
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'timestamp': ((value['timestamp']).toISOString()),
|
|
66
|
+
'tags': value['tags'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'description': value['description'],
|
|
69
|
+
'metadata': value['metadata'],
|
|
70
|
+
'custom_vectors': value['custom_vectors'] == null ? undefined : (value['custom_vectors'].map(CustomDocumentVector_1.CustomDocumentVectorToJSON)),
|
|
71
|
+
'score': value['score'],
|
|
72
|
+
'vector_scores': value['vector_scores'] == null ? undefined : (value['vector_scores'].map(VectorScore_1.VectorScoreToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amalgam Index API
|
|
3
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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 { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ValidationError
|
|
17
|
+
*/
|
|
18
|
+
export interface ValidationError {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
22
|
+
* @memberof ValidationError
|
|
23
|
+
*/
|
|
24
|
+
loc: Array<ValidationErrorLocInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ValidationError
|
|
29
|
+
*/
|
|
30
|
+
msg: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ValidationError
|
|
35
|
+
*/
|
|
36
|
+
type: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ValidationError interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfValidationError(value: object): value is ValidationError;
|
|
42
|
+
export declare function ValidationErrorFromJSON(json: any): ValidationError;
|
|
43
|
+
export declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError;
|
|
44
|
+
export declare function ValidationErrorToJSON(json: any): ValidationError;
|
|
45
|
+
export declare function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=ValidationError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationError.d.ts","sourceRoot":"","sources":["../../models/ValidationError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAQzE;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,GAAG,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACpC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAKjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAUrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpH"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amalgam Index API
|
|
6
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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.instanceOfValidationError = instanceOfValidationError;
|
|
17
|
+
exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
|
|
18
|
+
exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
|
|
19
|
+
exports.ValidationErrorToJSON = ValidationErrorToJSON;
|
|
20
|
+
exports.ValidationErrorToJSONTyped = ValidationErrorToJSONTyped;
|
|
21
|
+
const ValidationErrorLocInner_1 = require("./ValidationErrorLocInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ValidationError interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfValidationError(value) {
|
|
26
|
+
if (!('loc' in value) || value['loc'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('msg' in value) || value['msg'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ValidationErrorFromJSON(json) {
|
|
35
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'loc': (json['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerFromJSON)),
|
|
43
|
+
'msg': json['msg'],
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function ValidationErrorToJSON(json) {
|
|
48
|
+
return ValidationErrorToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'loc': (value['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerToJSON)),
|
|
56
|
+
'msg': value['msg'],
|
|
57
|
+
'type': value['type'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amalgam Index API
|
|
3
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ValidationErrorLocInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ValidationErrorLocInner {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner;
|
|
23
|
+
export declare function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner;
|
|
24
|
+
export declare function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner;
|
|
25
|
+
export declare function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner;
|
|
26
|
+
export declare function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator?: boolean): any;
|
|
27
|
+
//# sourceMappingURL=ValidationErrorLocInner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationErrorLocInner.d.ts","sourceRoot":"","sources":["../../models/ValidationErrorLocInner.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;CACvC;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAEjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAErH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAEpI"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amalgam Index API
|
|
6
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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.instanceOfValidationErrorLocInner = instanceOfValidationErrorLocInner;
|
|
17
|
+
exports.ValidationErrorLocInnerFromJSON = ValidationErrorLocInnerFromJSON;
|
|
18
|
+
exports.ValidationErrorLocInnerFromJSONTyped = ValidationErrorLocInnerFromJSONTyped;
|
|
19
|
+
exports.ValidationErrorLocInnerToJSON = ValidationErrorLocInnerToJSON;
|
|
20
|
+
exports.ValidationErrorLocInnerToJSONTyped = ValidationErrorLocInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfValidationErrorLocInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ValidationErrorLocInnerFromJSON(json) {
|
|
28
|
+
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ValidationErrorLocInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
function ValidationErrorLocInnerToJSON(json) {
|
|
34
|
+
return ValidationErrorLocInnerToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ValidationErrorLocInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amalgam Index API
|
|
3
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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
|
+
/**
|
|
13
|
+
* Vector data: dense (list of floats) or sparse (list of (index, value) tuples)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Vector
|
|
16
|
+
*/
|
|
17
|
+
export interface Vector {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the Vector interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfVector(value: object): value is Vector;
|
|
23
|
+
export declare function VectorFromJSON(json: any): Vector;
|
|
24
|
+
export declare function VectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vector;
|
|
25
|
+
export declare function VectorToJSON(json: any): Vector;
|
|
26
|
+
export declare function VectorToJSONTyped(value?: Vector | null, ignoreDiscriminator?: boolean): any;
|
|
27
|
+
//# sourceMappingURL=Vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["../../models/Vector.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,MAAM;CACtB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,MAAM,CAE/D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAEnF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAE9C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAElG"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amalgam Index API
|
|
6
|
+
* Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0-dev
|
|
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.instanceOfVector = instanceOfVector;
|
|
17
|
+
exports.VectorFromJSON = VectorFromJSON;
|
|
18
|
+
exports.VectorFromJSONTyped = VectorFromJSONTyped;
|
|
19
|
+
exports.VectorToJSON = VectorToJSON;
|
|
20
|
+
exports.VectorToJSONTyped = VectorToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Vector interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVector(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function VectorFromJSON(json) {
|
|
28
|
+
return VectorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function VectorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
function VectorToJSON(json) {
|
|
34
|
+
return VectorToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function VectorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|