@depict-ai/ui 0.0.55 → 0.0.57
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/index.d.ts +29 -6
- package/dist/main.js +23 -14
- package/dist/module.js +23 -15
- package/dist/moduule.js +7872 -0
- package/package.json +5 -3
- package/styles.scss +1 -0
- 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,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
|
-
}
|