@lustre/sdk 3.20.2 → 3.20.4-dev.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/schema/queries/productTradeoffsV2.js +3 -0
- package/dist/schema/queries/productTradeoffsV2.js.map +1 -0
- package/package.json +1 -1
- package/types/schema/mutations/createProductBookmark.d.ts +1 -0
- package/types/schema/mutations/createProductBookmark.d.ts.map +1 -1
- package/types/schema/queries/productTradeoffsV2.d.ts +35 -0
- package/types/schema/queries/productTradeoffsV2.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productTradeoffsV2.js","sourceRoot":"","sources":["../../../src/schema/queries/productTradeoffsV2.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { Effect, Mutation, ResearchedProduct, ResearchedProductV2 } from "../bui
|
|
|
2
2
|
export interface CreateProductBookmarkMutation extends Mutation {
|
|
3
3
|
userId: string;
|
|
4
4
|
product: ResearchedProduct | ResearchedProductV2;
|
|
5
|
+
threadId: string;
|
|
5
6
|
}
|
|
6
7
|
export interface CreateProductBookmarkEffect extends Effect {
|
|
7
8
|
productBookmarkId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createProductBookmark.d.ts","sourceRoot":"","sources":["../../../src/schema/mutations/createProductBookmark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAyB;AAE5F,MAAM,WAAW,6BAA8B,SAAQ,QAAQ;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,iBAAiB,GAAG,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"createProductBookmark.d.ts","sourceRoot":"","sources":["../../../src/schema/mutations/createProductBookmark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAyB;AAE5F,MAAM,WAAW,6BAA8B,SAAQ,QAAQ;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,iBAAiB,GAAG,mBAAmB,CAAA;IAChD,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,2BAA4B,SAAQ,MAAM;IACzD,iBAAiB,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BadgeStates, IsoCountry, Url } from "../builtins";
|
|
2
|
+
export interface ProductTradeoffsV2Query {
|
|
3
|
+
storePageUrl: Url;
|
|
4
|
+
localization?: IsoCountry;
|
|
5
|
+
}
|
|
6
|
+
export interface ProductTradeoffsV2Response {
|
|
7
|
+
tradeoffs: {
|
|
8
|
+
badge: BadgeStates;
|
|
9
|
+
ratingDistribution: {
|
|
10
|
+
sentiment: "positive" | "neutral" | "negative";
|
|
11
|
+
percentage: number;
|
|
12
|
+
}[];
|
|
13
|
+
ratingCount: number | null;
|
|
14
|
+
aspects: Aspect[];
|
|
15
|
+
reviews: Review[];
|
|
16
|
+
} | null;
|
|
17
|
+
summary: string | null;
|
|
18
|
+
}
|
|
19
|
+
type Aspect = {
|
|
20
|
+
sentiment: "positive" | "negative";
|
|
21
|
+
title: string;
|
|
22
|
+
reviewIndices: number[];
|
|
23
|
+
};
|
|
24
|
+
interface BaseReview<T extends string> {
|
|
25
|
+
kind: T;
|
|
26
|
+
url: Url | null;
|
|
27
|
+
domain: string;
|
|
28
|
+
title: string | null;
|
|
29
|
+
body: string | null;
|
|
30
|
+
scaledRating: number | null;
|
|
31
|
+
}
|
|
32
|
+
type UserReview = BaseReview<"user_review">;
|
|
33
|
+
type Review = UserReview;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=productTradeoffsV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productTradeoffsV2.d.ts","sourceRoot":"","sources":["../../../src/schema/queries/productTradeoffsV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,EAAE,oBAAyB;AAEhE,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,GAAG,CAAA;IACjB,YAAY,CAAC,EAAE,UAAU,CAAA;CAC1B;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE;QACT,KAAK,EAAE,WAAW,CAAA;QAClB,kBAAkB,EAAE;YAClB,SAAS,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;YAC9C,UAAU,EAAE,MAAM,CAAA;SACnB,EAAE,CAAA;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;QAC1B,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,OAAO,EAAE,MAAM,EAAE,CAAA;KAClB,GAAG,IAAI,CAAA;IACR,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB;AAED,KAAK,MAAM,GAAG;IACZ,SAAS,EAAE,UAAU,GAAG,UAAU,CAAA;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB,CAAA;AAED,UAAU,UAAU,CAAC,CAAC,SAAS,MAAM;IACnC,IAAI,EAAE,CAAC,CAAA;IACP,GAAG,EAAE,GAAG,GAAG,IAAI,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED,KAAK,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC,CAAA;AAE3C,KAAK,MAAM,GAAG,UAAU,CAAA"}
|