@brostark/solutions-client 1.0.0 → 1.0.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/dist/api/v1/search.d.ts +22 -0
- package/dist/api/v1/search.d.ts.map +1 -0
- package/dist/api/v1/search.js +33 -0
- package/dist/api/v1/upload.d.ts +1 -0
- package/dist/api/v1/upload.d.ts.map +1 -0
- package/dist/api/v1/upload.js +1 -0
- package/dist/api/v1/video.d.ts +40 -0
- package/dist/api/v1/video.d.ts.map +1 -0
- package/dist/api/v1/video.js +62 -0
- package/dist/client.d.ts +30 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +20 -0
- package/dist/constant.d.ts +19 -0
- package/dist/constant.d.ts.map +1 -0
- package/dist/constant.js +22 -0
- package/dist/helper.d.ts +9 -0
- package/dist/helper.d.ts.map +1 -0
- package/dist/helper.js +14 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/httpRequest.d.ts +53 -0
- package/dist/lib/httpRequest.d.ts.map +1 -0
- package/dist/lib/httpRequest.js +129 -0
- package/dist/lib/security.d.ts +1 -0
- package/dist/lib/security.d.ts.map +1 -0
- package/dist/lib/security.js +1 -0
- package/dist/lib/types.d.ts +31 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +2 -0
- package/package.json +1 -2
- package/src/api/v1/search.ts +34 -0
- package/src/client.ts +2 -0
- package/src/constant.ts +1 -1
- package/src/lib/httpRequest.ts +16 -0
- package/src/lib/types.ts +29 -0
- package/package-lock.json +0 -4983
package/src/lib/types.ts
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
export interface ListOptions {
|
|
2
2
|
limit?: number;
|
|
3
3
|
startAfter?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export namespace BrostarkSolutions {
|
|
8
|
+
export namespace Search {
|
|
9
|
+
export type FieldType = "string" | "int32" | "int64" | "float" | "bool" | "geopoint" | "geopolygon" | "geopoint[]" | "string[]" | "int32[]" | "int64[]" | "float[]" | "bool[]" | "object" | "object[]" | "auto" | "string*" | "image";
|
|
10
|
+
export interface CollectionField {
|
|
11
|
+
name: string;
|
|
12
|
+
type: FieldType;
|
|
13
|
+
optional?: boolean;
|
|
14
|
+
facet?: boolean;
|
|
15
|
+
index?: boolean;
|
|
16
|
+
sort?: boolean;
|
|
17
|
+
locale?: string;
|
|
18
|
+
infix?: boolean;
|
|
19
|
+
stem?: boolean;
|
|
20
|
+
num_dim?: number;
|
|
21
|
+
store?: boolean;
|
|
22
|
+
range_index?: boolean;
|
|
23
|
+
[t: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CreateCollectionParams {
|
|
27
|
+
name: string;
|
|
28
|
+
fields: CollectionField[];
|
|
29
|
+
defaultSortingField?: string;
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
4
33
|
}
|