@depict-ai/ui 1.0.8 → 1.0.9
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 +3 -3
- package/dist/index.d.ts +542 -542
- package/dist/main.js +73 -73
- package/dist/module.js +73 -73
- package/locales/index.d.ts +89 -89
- package/locales/index.js +2 -2
- package/locales/require.js +2 -2
- package/package.json +4 -4
- package/styles.scss +1 -1
- package/dist/typescript_schema/BaseSearchRequest.d.ts +0 -197
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +0 -14
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +0 -10
- package/dist/typescript_schema/ProductListingRequest.d.ts +0 -221
- package/dist/typescript_schema/ProductListingResponse.d.ts +0 -232
- package/dist/typescript_schema/RecommendResponse.d.ts +0 -15
- package/dist/typescript_schema/SearchRequest.d.ts +0 -213
- package/dist/typescript_schema/SearchResponse.d.ts +0 -192
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +0 -18
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +0 -182
- package/dist/typescript_schema/TrackV2Request.d.ts +0 -115
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* An enumeration.
|
|
10
|
-
*/
|
|
11
|
-
export type ECategoryType = "TAG" | "CATEGORY" | "TENANT_CATEGORY" | "TENANT_SECONDARY_CATEGORY" | "CAMPAIGN";
|
|
12
|
-
|
|
13
|
-
export interface SearchSuggestionsResponse {
|
|
14
|
-
suggestions_request_id: string;
|
|
15
|
-
/**
|
|
16
|
-
* List of suggestions for search queries that should be shown to the user while they are typing.
|
|
17
|
-
*/
|
|
18
|
-
suggestions: (QuerySuggestion | CategorySuggestion)[];
|
|
19
|
-
}
|
|
20
|
-
export interface QuerySuggestion {
|
|
21
|
-
type?: "query";
|
|
22
|
-
/**
|
|
23
|
-
* Title for suggestion.
|
|
24
|
-
*/
|
|
25
|
-
title: string;
|
|
26
|
-
suggestions_result_id: string;
|
|
27
|
-
}
|
|
28
|
-
export interface CategorySuggestion {
|
|
29
|
-
/**
|
|
30
|
-
* Unique identifier of the category.
|
|
31
|
-
*/
|
|
32
|
-
category_id: string;
|
|
33
|
-
/**
|
|
34
|
-
* The title of the category
|
|
35
|
-
*/
|
|
36
|
-
title: string;
|
|
37
|
-
/**
|
|
38
|
-
* The full URL to the category page
|
|
39
|
-
*/
|
|
40
|
-
page_url: string;
|
|
41
|
-
/**
|
|
42
|
-
* Optionally a unique query ID for the category
|
|
43
|
-
*/
|
|
44
|
-
query_id?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The type of category, for example CAMPAIGN, TAG, or CATEGORY
|
|
47
|
-
*/
|
|
48
|
-
category_type?: ECategoryType & string;
|
|
49
|
-
/**
|
|
50
|
-
* type
|
|
51
|
-
*/
|
|
52
|
-
type?: "category";
|
|
53
|
-
filter: SearchFilter;
|
|
54
|
-
suggestions_result_id: string;
|
|
55
|
-
[k: string]: unknown;
|
|
56
|
-
}
|
|
57
|
-
export interface SearchFilter {
|
|
58
|
-
/**
|
|
59
|
-
* The field to filter by.
|
|
60
|
-
*/
|
|
61
|
-
field: string;
|
|
62
|
-
/**
|
|
63
|
-
* The operation used for filtering. The filtering should be read as `field op data`, for example `brand in ["Nike", "Adidas"]`.
|
|
64
|
-
*/
|
|
65
|
-
op: "eq" | "neq" | "in" | "nin" | "leq" | "geq" | "inrange";
|
|
66
|
-
/**
|
|
67
|
-
* Data for the filter.
|
|
68
|
-
*/
|
|
69
|
-
data?:
|
|
70
|
-
| ("true" | "false")
|
|
71
|
-
| number
|
|
72
|
-
| number
|
|
73
|
-
| string
|
|
74
|
-
| [number, number]
|
|
75
|
-
| [number, number]
|
|
76
|
-
| [number, number]
|
|
77
|
-
| [number, number]
|
|
78
|
-
| (
|
|
79
|
-
| ("true" | "false")
|
|
80
|
-
| number
|
|
81
|
-
| number
|
|
82
|
-
| string
|
|
83
|
-
| [number, number]
|
|
84
|
-
| [number, number]
|
|
85
|
-
| [number, number]
|
|
86
|
-
| [number, number]
|
|
87
|
-
)[]
|
|
88
|
-
| (("true" | "false") | number | number | string)[][];
|
|
89
|
-
/**
|
|
90
|
-
* Metadata about the filter that can be used for rendering. For example, this could contain the possible values to filter by and their counts in the results.
|
|
91
|
-
*/
|
|
92
|
-
meta?: RangeFilterMeta | ValuesFilterMeta | HierarchicalValuesFilterMeta;
|
|
93
|
-
/**
|
|
94
|
-
* ID of the filter. If multiple filters share the same ID, they should be grouped together in the UI.
|
|
95
|
-
*/
|
|
96
|
-
id?: string;
|
|
97
|
-
}
|
|
98
|
-
export interface RangeFilterMeta {
|
|
99
|
-
/**
|
|
100
|
-
* Title of the group, where a group consists of all the filters that share an ID.
|
|
101
|
-
*/
|
|
102
|
-
group_title?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Whether the filter group should be expanded by default or not.
|
|
105
|
-
*/
|
|
106
|
-
group_expanded?: boolean;
|
|
107
|
-
type?: "range";
|
|
108
|
-
/**
|
|
109
|
-
* The minimum value that can be selected in the range.
|
|
110
|
-
*/
|
|
111
|
-
min: number;
|
|
112
|
-
/**
|
|
113
|
-
* The maximum value that can be selected in the range.
|
|
114
|
-
*/
|
|
115
|
-
max: number;
|
|
116
|
-
/**
|
|
117
|
-
* The unit of the range values.
|
|
118
|
-
*/
|
|
119
|
-
unit?: string;
|
|
120
|
-
/**
|
|
121
|
-
* The currency of the range values.
|
|
122
|
-
*/
|
|
123
|
-
currency?: string;
|
|
124
|
-
}
|
|
125
|
-
export interface ValuesFilterMeta {
|
|
126
|
-
/**
|
|
127
|
-
* Title of the group, where a group consists of all the filters that share an ID.
|
|
128
|
-
*/
|
|
129
|
-
group_title?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Whether the filter group should be expanded by default or not.
|
|
132
|
-
*/
|
|
133
|
-
group_expanded?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Type of filter.
|
|
136
|
-
*/
|
|
137
|
-
type?: "radio" | "checkbox" | "checkbox-grid";
|
|
138
|
-
/**
|
|
139
|
-
* Selectable values
|
|
140
|
-
*/
|
|
141
|
-
values: (
|
|
142
|
-
| ("true" | "false")
|
|
143
|
-
| number
|
|
144
|
-
| number
|
|
145
|
-
| string
|
|
146
|
-
| [number, number]
|
|
147
|
-
| [number, number]
|
|
148
|
-
| [number, number]
|
|
149
|
-
| [number, number]
|
|
150
|
-
)[];
|
|
151
|
-
/**
|
|
152
|
-
* Counts for values
|
|
153
|
-
*/
|
|
154
|
-
counts?: number[];
|
|
155
|
-
/**
|
|
156
|
-
* Names for values
|
|
157
|
-
*/
|
|
158
|
-
names?: string[];
|
|
159
|
-
}
|
|
160
|
-
export interface HierarchicalValuesFilterMeta {
|
|
161
|
-
/**
|
|
162
|
-
* Title of the group, where a group consists of all the filters that share an ID.
|
|
163
|
-
*/
|
|
164
|
-
group_title?: string;
|
|
165
|
-
/**
|
|
166
|
-
* Whether the filter group should be expanded by default or not.
|
|
167
|
-
*/
|
|
168
|
-
group_expanded?: boolean;
|
|
169
|
-
type?: "checkbox-hierarchical";
|
|
170
|
-
/**
|
|
171
|
-
* Selectable hierarchical values
|
|
172
|
-
*/
|
|
173
|
-
values: (("true" | "false") | number | number | string)[][];
|
|
174
|
-
/**
|
|
175
|
-
* Counts for values
|
|
176
|
-
*/
|
|
177
|
-
counts?: number[];
|
|
178
|
-
/**
|
|
179
|
-
* Names for hierarchical values
|
|
180
|
-
*/
|
|
181
|
-
names?: string[];
|
|
182
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* An enumeration.
|
|
10
|
-
*/
|
|
11
|
-
export type EUnavailabilityType = "out_of_stock" | "missing";
|
|
12
|
-
|
|
13
|
-
export interface TrackV2Request {
|
|
14
|
-
/**
|
|
15
|
-
* Identifier associated with the API integration
|
|
16
|
-
*/
|
|
17
|
-
tenant: string;
|
|
18
|
-
/**
|
|
19
|
-
* Market identifier
|
|
20
|
-
*/
|
|
21
|
-
market: string;
|
|
22
|
-
events: (UserTransactionMappingEvent | PurchaseEvent | ProductUnavailableEvent)[];
|
|
23
|
-
}
|
|
24
|
-
export interface UserTransactionMappingEvent {
|
|
25
|
-
/**
|
|
26
|
-
* User Id. Persistent between devices, typically on a logged in user.
|
|
27
|
-
*/
|
|
28
|
-
user_id?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Session Id. Unique to a browser/app and stored locally, e.g. cookie or localStorage.
|
|
31
|
-
*/
|
|
32
|
-
session_id?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Populated for integrations performed by Depict.ai only. Depict.ai Session Id.
|
|
35
|
-
*/
|
|
36
|
-
dsid?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Unique identifier for the transaction.
|
|
39
|
-
*/
|
|
40
|
-
transaction_id: string;
|
|
41
|
-
/**
|
|
42
|
-
* The type identifier for this event: transaction_mapping.
|
|
43
|
-
*/
|
|
44
|
-
event_type?: "transaction_mapping";
|
|
45
|
-
}
|
|
46
|
-
export interface PurchaseEvent {
|
|
47
|
-
/**
|
|
48
|
-
* User Id. Persistent between devices, typically on a logged in user.
|
|
49
|
-
*/
|
|
50
|
-
user_id?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Session Id. Unique to a browser/app and stored locally, e.g. cookie or localStorage.
|
|
53
|
-
*/
|
|
54
|
-
session_id?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Populated for integrations performed by Depict.ai only. Depict.ai Session Id.
|
|
57
|
-
*/
|
|
58
|
-
dsid?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Unique identifier for the transaction.
|
|
61
|
-
*/
|
|
62
|
-
transaction_id: string;
|
|
63
|
-
/**
|
|
64
|
-
* The type identifier for this event: purchase.
|
|
65
|
-
*/
|
|
66
|
-
event_type?: "purchase";
|
|
67
|
-
/**
|
|
68
|
-
* Currency the purchase was paid in
|
|
69
|
-
*/
|
|
70
|
-
currency: string;
|
|
71
|
-
/**
|
|
72
|
-
* All the products purchased in this transaction
|
|
73
|
-
*/
|
|
74
|
-
products: PurchasedProduct[];
|
|
75
|
-
}
|
|
76
|
-
export interface PurchasedProduct {
|
|
77
|
-
/**
|
|
78
|
-
* Stock keeping unit, a distinct item for sale. If you are using Google Analytics, it should be the same id used for products there.
|
|
79
|
-
*/
|
|
80
|
-
sku: string;
|
|
81
|
-
/**
|
|
82
|
-
* Price per unit. If there are discounts because of quantity, the unit price should be adjusted accordingly.
|
|
83
|
-
*/
|
|
84
|
-
price: number;
|
|
85
|
-
/**
|
|
86
|
-
* The number of times the product was purchased.
|
|
87
|
-
*/
|
|
88
|
-
quantity: number;
|
|
89
|
-
}
|
|
90
|
-
export interface ProductUnavailableEvent {
|
|
91
|
-
/**
|
|
92
|
-
* User Id. Persistent between devices, typically on a logged in user.
|
|
93
|
-
*/
|
|
94
|
-
user_id?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Session Id. Unique to a browser/app and stored locally, e.g. cookie or localStorage.
|
|
97
|
-
*/
|
|
98
|
-
session_id?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Populated for integrations performed by Depict.ai only. Depict.ai Session Id.
|
|
101
|
-
*/
|
|
102
|
-
dsid?: string;
|
|
103
|
-
/**
|
|
104
|
-
* The type identifier for this event: product_unavailable.
|
|
105
|
-
*/
|
|
106
|
-
event_type: "product_unavailable";
|
|
107
|
-
/**
|
|
108
|
-
* Main product identifier
|
|
109
|
-
*/
|
|
110
|
-
product_id: string;
|
|
111
|
-
/**
|
|
112
|
-
* Reason the product isn't available for purchase
|
|
113
|
-
*/
|
|
114
|
-
unavailability_type: EUnavailabilityType;
|
|
115
|
-
}
|