@lustre/sdk 2.0.1-dev.2 → 2.0.1-dev.4

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.
Files changed (292) hide show
  1. package/dist/api/FetchOptions.js +2 -2
  2. package/dist/api/QueryError.js +54 -54
  3. package/dist/api/QueryResolver.js +98 -98
  4. package/dist/api/WrappedQuery.js +2 -2
  5. package/dist/api/fast1a64utf.js +135 -135
  6. package/dist/api/fetchEntity.js +41 -41
  7. package/dist/api/fetchQuery.js +31 -31
  8. package/dist/api/getHash.js +27 -27
  9. package/dist/api/getQueryHash.js +9 -9
  10. package/dist/index.js +39 -39
  11. package/dist/schema/builtins.js +433 -433
  12. package/dist/schema/entities/alias.js +2 -2
  13. package/dist/schema/entities/brand.js +2 -2
  14. package/dist/schema/entities/category.js +2 -2
  15. package/dist/schema/entities/crawl.js +2 -2
  16. package/dist/schema/entities/index.js +29 -29
  17. package/dist/schema/entities/media.js +2 -2
  18. package/dist/schema/entities/offer.js +2 -2
  19. package/dist/schema/entities/productConfiguration.js +2 -2
  20. package/dist/schema/entities/productFamily.js +2 -2
  21. package/dist/schema/entities/productGeneration.js +2 -2
  22. package/dist/schema/entities/productType.js +2 -2
  23. package/dist/schema/entities/rating.js +2 -2
  24. package/dist/schema/entities/source.js +2 -2
  25. package/dist/schema/entities/spec.js +2 -2
  26. package/dist/schema/entities/specType.js +2 -2
  27. package/dist/schema/entities/specTypeChoice.js +2 -2
  28. package/dist/schema/entities/storePage.js +2 -2
  29. package/dist/schema/entities/storePageQueueGroup.js +2 -2
  30. package/dist/schema/entities/user.js +2 -2
  31. package/dist/schema/index.js +29 -29
  32. package/dist/schema/mutations/createBrand.js +2 -2
  33. package/dist/schema/mutations/createCategory.js +2 -2
  34. package/dist/schema/mutations/createProductConfiguration.js +2 -2
  35. package/dist/schema/mutations/createProductFamily.js +2 -2
  36. package/dist/schema/mutations/createProductGeneration.js +2 -2
  37. package/dist/schema/mutations/createProductType.js +2 -2
  38. package/dist/schema/mutations/createUser.js +2 -2
  39. package/dist/schema/mutations/storePageQueueClaimById.js +2 -2
  40. package/dist/schema/mutations/storePageQueueClaimNext.js +2 -2
  41. package/dist/schema/mutations/storePageQueueHandle.js +2 -2
  42. package/dist/schema/mutations/storePageQueueHandleStorePageIdSet.js +2 -2
  43. package/dist/schema/mutations/updateAlias.js +2 -2
  44. package/dist/schema/mutations/updateBrand.js +2 -2
  45. package/dist/schema/mutations/updateCategory.js +2 -2
  46. package/dist/schema/mutations/updateOffer.js +2 -2
  47. package/dist/schema/mutations/updateProductConfiguration.js +2 -2
  48. package/dist/schema/mutations/updateProductConfigurationProductType.js +2 -2
  49. package/dist/schema/mutations/updateProductFamily.js +2 -2
  50. package/dist/schema/mutations/updateProductFamilyBrand.js +2 -2
  51. package/dist/schema/mutations/updateProductGeneration.js +2 -2
  52. package/dist/schema/mutations/updateProductGenerationProductFamily.js +2 -2
  53. package/dist/schema/mutations/updateProductType.js +2 -2
  54. package/dist/schema/mutations/updateProductTypeProductGeneration.js +2 -2
  55. package/dist/schema/mutations/updateSource.js +2 -2
  56. package/dist/schema/mutations/updateStorePage.js +2 -2
  57. package/dist/schema/queries/affiliateUrl.js +2 -2
  58. package/dist/schema/queries/aliasIdListBySomeId.js +2 -2
  59. package/dist/schema/queries/analyticsTrack.js +2 -2
  60. package/dist/schema/queries/appliedCategoryIdListBySomeId.js +2 -2
  61. package/dist/schema/queries/baseScore.js +2 -2
  62. package/dist/schema/queries/baseScoreRatingIdList.js +2 -2
  63. package/dist/schema/queries/baseScoresByCategoryId.js +2 -2
  64. package/dist/schema/queries/bestInClass.js +2 -2
  65. package/dist/schema/queries/brandAliasResolution.js +2 -2
  66. package/dist/schema/queries/brandCategoryRankings.js +2 -2
  67. package/dist/schema/queries/brandIdBySomeId.js +2 -2
  68. package/dist/schema/queries/brandIdList.js +2 -2
  69. package/dist/schema/queries/brandIdListBySearch.js +2 -2
  70. package/dist/schema/queries/brandSocialMediaPostList.js +2 -2
  71. package/dist/schema/queries/categoryAliasResolution.js +2 -2
  72. package/dist/schema/queries/categoryDisplayMode.js +2 -2
  73. package/dist/schema/queries/categoryIdByUrlSlug.js +2 -2
  74. package/dist/schema/queries/categoryIdList.js +2 -2
  75. package/dist/schema/queries/categoryIdListBySomeId.js +2 -2
  76. package/dist/schema/queries/categoryIdListBySourceId.js +2 -2
  77. package/dist/schema/queries/categoryModifierSearchList.js +2 -2
  78. package/dist/schema/queries/categoryRankings.js +2 -2
  79. package/dist/schema/queries/categorySearchList.js +2 -2
  80. package/dist/schema/queries/categoryStatusList.js +2 -2
  81. package/dist/schema/queries/crawlIdList.js +2 -2
  82. package/dist/schema/queries/crawlIdListByUrl.js +2 -2
  83. package/dist/schema/queries/descriptionMarkdown.js +2 -2
  84. package/dist/schema/queries/entityType.js +2 -2
  85. package/dist/schema/queries/fallbackPriceByProductTypeId.js +2 -2
  86. package/dist/schema/queries/inputLayerVersion.js +2 -2
  87. package/dist/schema/queries/latestRatingIdList.js +2 -2
  88. package/dist/schema/queries/latestRatingIdListBySomeId.js +2 -2
  89. package/dist/schema/queries/mediaIdListBySomeId.js +2 -2
  90. package/dist/schema/queries/mlCategoryDisplayMode.js +2 -2
  91. package/dist/schema/queries/noteMarkdown.js +2 -2
  92. package/dist/schema/queries/offerIdListByStorePageId.js +2 -2
  93. package/dist/schema/queries/possibleAliasIdListBySomeId.js +2 -2
  94. package/dist/schema/queries/possibleStorePageIdListBySomeId.js +2 -2
  95. package/dist/schema/queries/preferredCategoryIdListByProductId.js +2 -2
  96. package/dist/schema/queries/preferredLatestRatingIdListBySomeId.js +2 -2
  97. package/dist/schema/queries/preferredStorePageList.js +2 -2
  98. package/dist/schema/queries/priceHistoryLookup.js +2 -2
  99. package/dist/schema/queries/pricePointCompetitors.js +2 -2
  100. package/dist/schema/queries/priceRangeByCategoryId.js +2 -2
  101. package/dist/schema/queries/productConfigurationIdListBySomeId.js +2 -2
  102. package/dist/schema/queries/productDealList.js +2 -2
  103. package/dist/schema/queries/productDocumentByStoreUrl.js +2 -2
  104. package/dist/schema/queries/productDocumentsByProductIds.js +2 -2
  105. package/dist/schema/queries/productFamilyIdBySomeId.js +2 -2
  106. package/dist/schema/queries/productFamilyIdListBySomeId.js +2 -2
  107. package/dist/schema/queries/productGenerationIdBySomeId.js +2 -2
  108. package/dist/schema/queries/productGenerationIdListBySomeId.js +2 -2
  109. package/dist/schema/queries/productListSort.js +2 -2
  110. package/dist/schema/queries/productPricePointList.js +2 -2
  111. package/dist/schema/queries/productSearchList.js +2 -2
  112. package/dist/schema/queries/productTypeIdBySomeId.js +2 -2
  113. package/dist/schema/queries/productTypeIdByStoreUrl.js +2 -2
  114. package/dist/schema/queries/productTypeIdListByCategoryId.js +2 -2
  115. package/dist/schema/queries/productTypeIdListByModifiers.js +2 -2
  116. package/dist/schema/queries/productTypeIdListBySomeId.js +2 -2
  117. package/dist/schema/queries/saleMetrics.js +2 -2
  118. package/dist/schema/queries/searchSuggestionList.js +2 -2
  119. package/dist/schema/queries/sectionDataByCrawlId.js +2 -2
  120. package/dist/schema/queries/sourceIdList.js +2 -2
  121. package/dist/schema/queries/specIdListBySomeId.js +2 -2
  122. package/dist/schema/queries/specTypeIdList.js +2 -2
  123. package/dist/schema/queries/specTypeValidValues.js +2 -2
  124. package/dist/schema/queries/specValueRangeListByCategoryId.js +2 -2
  125. package/dist/schema/queries/stablePriceByProductId.js +2 -2
  126. package/dist/schema/queries/stablePriceByProductIdAndStoreName.js +2 -2
  127. package/dist/schema/queries/stablePriceByStorePageId.js +2 -2
  128. package/dist/schema/queries/storePageFetchData.js +2 -2
  129. package/dist/schema/queries/storePageIdByUrl.js +2 -2
  130. package/dist/schema/queries/storePageIdListBySomeId.js +2 -2
  131. package/dist/schema/queries/storePageInfo.js +2 -2
  132. package/dist/schema/queries/storePageInfoBySku.js +2 -2
  133. package/dist/schema/queries/storePageScrapeData.js +2 -2
  134. package/dist/schema/queries/subCategoryIdListByCategoryId.js +2 -2
  135. package/dist/schema/queries/subsetModifierDataByModifiers.js +2 -2
  136. package/dist/schema/queries/topProductDocumentList.js +2 -2
  137. package/dist/schema/queries/unstableMediaIdListByCategoryId.js +2 -2
  138. package/dist/schema/queries/unstableSourceTrust.js +2 -2
  139. package/dist/schema/queries/userIdList.js +2 -2
  140. package/dist/schema/queries/userPermissionsByUserId.js +2 -2
  141. package/dist/schema/queries/userRestictedData.js +2 -2
  142. package/dist/schema/queries/userReviewAnalysis.js +2 -2
  143. package/dist/schema/queries/whoAmI.js +2 -2
  144. package/dist/schema/queries.js +2 -2
  145. package/dist/schema/responses.js +2 -2
  146. package/package.json +1 -1
  147. package/types/api/FetchOptions.d.ts +5 -5
  148. package/types/api/QueryError.d.ts +29 -29
  149. package/types/api/QueryResolver.d.ts +31 -31
  150. package/types/api/WrappedQuery.d.ts +8 -8
  151. package/types/api/fast1a64utf.d.ts +2 -2
  152. package/types/api/fetchEntity.d.ts +6 -6
  153. package/types/api/fetchQuery.d.ts +6 -6
  154. package/types/api/getHash.d.ts +6 -6
  155. package/types/api/getQueryHash.d.ts +2 -2
  156. package/types/index.d.ts +10 -10
  157. package/types/schema/builtins.d.ts +123 -123
  158. package/types/schema/entities/alias.d.ts +5 -5
  159. package/types/schema/entities/brand.d.ts +4 -4
  160. package/types/schema/entities/category.d.ts +6 -6
  161. package/types/schema/entities/crawl.d.ts +11 -11
  162. package/types/schema/entities/index.d.ts +17 -17
  163. package/types/schema/entities/media.d.ts +5 -5
  164. package/types/schema/entities/offer.d.ts +10 -10
  165. package/types/schema/entities/productConfiguration.d.ts +4 -4
  166. package/types/schema/entities/productFamily.d.ts +4 -4
  167. package/types/schema/entities/productGeneration.d.ts +4 -4
  168. package/types/schema/entities/productType.d.ts +4 -4
  169. package/types/schema/entities/rating.d.ts +52 -52
  170. package/types/schema/entities/source.d.ts +7 -7
  171. package/types/schema/entities/spec.d.ts +21 -21
  172. package/types/schema/entities/specType.d.ts +5 -5
  173. package/types/schema/entities/specTypeChoice.d.ts +6 -6
  174. package/types/schema/entities/storePage.d.ts +7 -7
  175. package/types/schema/entities/storePageQueueGroup.d.ts +5 -5
  176. package/types/schema/entities/user.d.ts +4 -4
  177. package/types/schema/index.d.ts +259 -259
  178. package/types/schema/mutations/createBrand.d.ts +8 -8
  179. package/types/schema/mutations/createCategory.d.ts +8 -8
  180. package/types/schema/mutations/createProductConfiguration.d.ts +9 -9
  181. package/types/schema/mutations/createProductFamily.d.ts +9 -9
  182. package/types/schema/mutations/createProductGeneration.d.ts +9 -9
  183. package/types/schema/mutations/createProductType.d.ts +9 -9
  184. package/types/schema/mutations/createUser.d.ts +9 -9
  185. package/types/schema/mutations/storePageQueueClaimById.d.ts +16 -16
  186. package/types/schema/mutations/storePageQueueClaimNext.d.ts +14 -14
  187. package/types/schema/mutations/storePageQueueHandle.d.ts +14 -14
  188. package/types/schema/mutations/storePageQueueHandleStorePageIdSet.d.ts +14 -14
  189. package/types/schema/mutations/updateAlias.d.ts +7 -7
  190. package/types/schema/mutations/updateBrand.d.ts +7 -7
  191. package/types/schema/mutations/updateCategory.d.ts +9 -9
  192. package/types/schema/mutations/updateOffer.d.ts +7 -7
  193. package/types/schema/mutations/updateProductConfiguration.d.ts +7 -7
  194. package/types/schema/mutations/updateProductConfigurationProductType.d.ts +7 -7
  195. package/types/schema/mutations/updateProductFamily.d.ts +7 -7
  196. package/types/schema/mutations/updateProductFamilyBrand.d.ts +7 -7
  197. package/types/schema/mutations/updateProductGeneration.d.ts +7 -7
  198. package/types/schema/mutations/updateProductGenerationProductFamily.d.ts +7 -7
  199. package/types/schema/mutations/updateProductType.d.ts +7 -7
  200. package/types/schema/mutations/updateProductTypeProductGeneration.d.ts +7 -7
  201. package/types/schema/mutations/updateSource.d.ts +9 -9
  202. package/types/schema/mutations/updateStorePage.d.ts +7 -7
  203. package/types/schema/queries/affiliateUrl.d.ts +11 -11
  204. package/types/schema/queries/aliasIdListBySomeId.d.ts +6 -6
  205. package/types/schema/queries/analyticsTrack.d.ts +5 -5
  206. package/types/schema/queries/appliedCategoryIdListBySomeId.d.ts +6 -6
  207. package/types/schema/queries/baseScore.d.ts +8 -8
  208. package/types/schema/queries/baseScoreRatingIdList.d.ts +7 -7
  209. package/types/schema/queries/baseScoresByCategoryId.d.ts +11 -11
  210. package/types/schema/queries/bestInClass.d.ts +19 -19
  211. package/types/schema/queries/brandAliasResolution.d.ts +10 -10
  212. package/types/schema/queries/brandCategoryRankings.d.ts +36 -29
  213. package/types/schema/queries/brandCategoryRankings.d.ts.map +1 -1
  214. package/types/schema/queries/brandIdBySomeId.d.ts +5 -5
  215. package/types/schema/queries/brandIdList.d.ts +8 -8
  216. package/types/schema/queries/brandIdListBySearch.d.ts +6 -6
  217. package/types/schema/queries/brandSocialMediaPostList.d.ts +21 -21
  218. package/types/schema/queries/categoryAliasResolution.d.ts +12 -12
  219. package/types/schema/queries/categoryDisplayMode.d.ts +10 -10
  220. package/types/schema/queries/categoryIdByUrlSlug.d.ts +5 -5
  221. package/types/schema/queries/categoryIdList.d.ts +8 -8
  222. package/types/schema/queries/categoryIdListBySomeId.d.ts +10 -10
  223. package/types/schema/queries/categoryIdListBySourceId.d.ts +6 -6
  224. package/types/schema/queries/categoryModifierSearchList.d.ts +21 -21
  225. package/types/schema/queries/categoryRankings.d.ts +13 -13
  226. package/types/schema/queries/categorySearchList.d.ts +16 -16
  227. package/types/schema/queries/categoryStatusList.d.ts +9 -9
  228. package/types/schema/queries/crawlIdList.d.ts +11 -11
  229. package/types/schema/queries/crawlIdListByUrl.d.ts +6 -6
  230. package/types/schema/queries/descriptionMarkdown.d.ts +5 -5
  231. package/types/schema/queries/entityType.d.ts +54 -54
  232. package/types/schema/queries/fallbackPriceByProductTypeId.d.ts +6 -6
  233. package/types/schema/queries/inputLayerVersion.d.ts +5 -5
  234. package/types/schema/queries/latestRatingIdList.d.ts +6 -6
  235. package/types/schema/queries/latestRatingIdListBySomeId.d.ts +6 -6
  236. package/types/schema/queries/mediaIdListBySomeId.d.ts +6 -6
  237. package/types/schema/queries/mlCategoryDisplayMode.d.ts +8 -8
  238. package/types/schema/queries/noteMarkdown.d.ts +5 -5
  239. package/types/schema/queries/offerIdListByStorePageId.d.ts +12 -12
  240. package/types/schema/queries/possibleAliasIdListBySomeId.d.ts +6 -6
  241. package/types/schema/queries/possibleStorePageIdListBySomeId.d.ts +6 -6
  242. package/types/schema/queries/preferredCategoryIdListByProductId.d.ts +6 -6
  243. package/types/schema/queries/preferredLatestRatingIdListBySomeId.d.ts +6 -6
  244. package/types/schema/queries/preferredStorePageList.d.ts +11 -11
  245. package/types/schema/queries/priceHistoryLookup.d.ts +16 -16
  246. package/types/schema/queries/pricePointCompetitors.d.ts +16 -16
  247. package/types/schema/queries/priceRangeByCategoryId.d.ts +10 -10
  248. package/types/schema/queries/productConfigurationIdListBySomeId.d.ts +6 -6
  249. package/types/schema/queries/productDealList.d.ts +13 -13
  250. package/types/schema/queries/productDocumentByStoreUrl.d.ts +7 -7
  251. package/types/schema/queries/productDocumentsByProductIds.d.ts +6 -6
  252. package/types/schema/queries/productFamilyIdBySomeId.d.ts +5 -5
  253. package/types/schema/queries/productFamilyIdListBySomeId.d.ts +6 -6
  254. package/types/schema/queries/productGenerationIdBySomeId.d.ts +5 -5
  255. package/types/schema/queries/productGenerationIdListBySomeId.d.ts +6 -6
  256. package/types/schema/queries/productListSort.d.ts +9 -9
  257. package/types/schema/queries/productPricePointList.d.ts +13 -13
  258. package/types/schema/queries/productSearchList.d.ts +39 -39
  259. package/types/schema/queries/productTypeIdBySomeId.d.ts +5 -5
  260. package/types/schema/queries/productTypeIdByStoreUrl.d.ts +6 -6
  261. package/types/schema/queries/productTypeIdListByCategoryId.d.ts +10 -10
  262. package/types/schema/queries/productTypeIdListByModifiers.d.ts +7 -7
  263. package/types/schema/queries/productTypeIdListBySomeId.d.ts +6 -6
  264. package/types/schema/queries/saleMetrics.d.ts +8 -8
  265. package/types/schema/queries/searchSuggestionList.d.ts +9 -9
  266. package/types/schema/queries/sectionDataByCrawlId.d.ts +19 -19
  267. package/types/schema/queries/sourceIdList.d.ts +4 -4
  268. package/types/schema/queries/specIdListBySomeId.d.ts +6 -6
  269. package/types/schema/queries/specTypeIdList.d.ts +12 -12
  270. package/types/schema/queries/specTypeValidValues.d.ts +15 -15
  271. package/types/schema/queries/specValueRangeListByCategoryId.d.ts +36 -36
  272. package/types/schema/queries/stablePriceByProductId.d.ts +6 -6
  273. package/types/schema/queries/stablePriceByProductIdAndStoreName.d.ts +7 -7
  274. package/types/schema/queries/stablePriceByStorePageId.d.ts +6 -6
  275. package/types/schema/queries/storePageFetchData.d.ts +12 -12
  276. package/types/schema/queries/storePageIdByUrl.d.ts +6 -6
  277. package/types/schema/queries/storePageIdListBySomeId.d.ts +6 -6
  278. package/types/schema/queries/storePageInfo.d.ts +11 -11
  279. package/types/schema/queries/storePageInfoBySku.d.ts +20 -20
  280. package/types/schema/queries/storePageScrapeData.d.ts +9 -9
  281. package/types/schema/queries/subCategoryIdListByCategoryId.d.ts +6 -6
  282. package/types/schema/queries/subsetModifierDataByModifiers.d.ts +12 -12
  283. package/types/schema/queries/topProductDocumentList.d.ts +8 -8
  284. package/types/schema/queries/unstableMediaIdListByCategoryId.d.ts +6 -6
  285. package/types/schema/queries/unstableSourceTrust.d.ts +9 -9
  286. package/types/schema/queries/userIdList.d.ts +4 -4
  287. package/types/schema/queries/userPermissionsByUserId.d.ts +7 -7
  288. package/types/schema/queries/userRestictedData.d.ts +10 -10
  289. package/types/schema/queries/userReviewAnalysis.d.ts +37 -37
  290. package/types/schema/queries/whoAmI.d.ts +5 -5
  291. package/types/schema/queries.d.ts +82 -82
  292. package/types/schema/responses.d.ts +82 -82
@@ -1,20 +1,20 @@
1
- import { ListResponse, Nullable, Url } from "../builtins";
2
- import { Crawl } from "../entities/crawl";
3
- import { Alias } from "../entities/alias";
4
- import { Rating } from "../entities/rating";
5
- import { StorePage } from "../entities/storePage";
6
- export interface SectionDataByCrawlIdQuery {
7
- crawlId: Crawl["id"];
8
- }
9
- export declare type SectionDataByCrawlIdResponse = ListResponse<SectionData>;
10
- interface SectionData {
11
- aliasId: Nullable<Alias["id"]>;
12
- ratingIds: Rating["id"][];
13
- buyUrls: BuyUrlData[];
14
- }
15
- interface BuyUrlData {
16
- originalUrl: Url;
17
- storePageId: Nullable<StorePage["id"]>;
18
- }
19
- export {};
1
+ import { ListResponse, Nullable, Url } from "../builtins";
2
+ import { Crawl } from "../entities/crawl";
3
+ import { Alias } from "../entities/alias";
4
+ import { Rating } from "../entities/rating";
5
+ import { StorePage } from "../entities/storePage";
6
+ export interface SectionDataByCrawlIdQuery {
7
+ crawlId: Crawl["id"];
8
+ }
9
+ export declare type SectionDataByCrawlIdResponse = ListResponse<SectionData>;
10
+ interface SectionData {
11
+ aliasId: Nullable<Alias["id"]>;
12
+ ratingIds: Rating["id"][];
13
+ buyUrls: BuyUrlData[];
14
+ }
15
+ interface BuyUrlData {
16
+ originalUrl: Url;
17
+ storePageId: Nullable<StorePage["id"]>;
18
+ }
19
+ export {};
20
20
  //# sourceMappingURL=sectionDataByCrawlId.d.ts.map
@@ -1,5 +1,5 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { Source } from "../entities";
3
- export declare type SourceIdListQuery = ListQuery;
4
- export declare type SourceIdListResponse = ListResponse<Source["id"]>;
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { Source } from "../entities";
3
+ export declare type SourceIdListQuery = ListQuery;
4
+ export declare type SourceIdListResponse = ListResponse<Source["id"]>;
5
5
  //# sourceMappingURL=sourceIdList.d.ts.map
@@ -1,7 +1,7 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { ProductType, Spec } from "../entities";
3
- export interface SpecIdListBySomeIdQuery extends ListQuery {
4
- someId: ProductType["id"];
5
- }
6
- export declare type SpecIdListBySomeIdResponse = ListResponse<Spec["id"]>;
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { ProductType, Spec } from "../entities";
3
+ export interface SpecIdListBySomeIdQuery extends ListQuery {
4
+ someId: ProductType["id"];
5
+ }
6
+ export declare type SpecIdListBySomeIdResponse = ListResponse<Spec["id"]>;
7
7
  //# sourceMappingURL=specIdListBySomeId.d.ts.map
@@ -1,13 +1,13 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { Category, ProductType, SpecType } from "../entities";
3
- export declare type SpecTypeIdListQuery = ListQuery<Filters>;
4
- export declare type SpecTypeIdListResponse = ListResponse<SpecType["id"]>;
5
- declare type Filters = {
6
- type: "category";
7
- categoryId: Category["id"];
8
- } | {
9
- type: "product";
10
- productId: ProductType["id"];
11
- };
12
- export {};
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { Category, ProductType, SpecType } from "../entities";
3
+ export declare type SpecTypeIdListQuery = ListQuery<Filters>;
4
+ export declare type SpecTypeIdListResponse = ListResponse<SpecType["id"]>;
5
+ declare type Filters = {
6
+ type: "category";
7
+ categoryId: Category["id"];
8
+ } | {
9
+ type: "product";
10
+ productId: ProductType["id"];
11
+ };
12
+ export {};
13
13
  //# sourceMappingURL=specTypeIdList.d.ts.map
@@ -1,16 +1,16 @@
1
- import { SpecType, SpecTypeChoice } from "../entities";
2
- export interface SpecTypeValidValuesQuery {
3
- specTypeId: SpecType["id"];
4
- }
5
- export declare type SpecTypeValidValuesResponse = {
6
- type: "number";
7
- } | {
8
- type: "bool";
9
- } | {
10
- type: "enum";
11
- choices: SpecTypeChoice["id"][];
12
- } | {
13
- type: "set";
14
- choices: SpecTypeChoice["id"][];
15
- };
1
+ import { SpecType, SpecTypeChoice } from "../entities";
2
+ export interface SpecTypeValidValuesQuery {
3
+ specTypeId: SpecType["id"];
4
+ }
5
+ export declare type SpecTypeValidValuesResponse = {
6
+ type: "number";
7
+ } | {
8
+ type: "bool";
9
+ } | {
10
+ type: "enum";
11
+ choices: SpecTypeChoice["id"][];
12
+ } | {
13
+ type: "set";
14
+ choices: SpecTypeChoice["id"][];
15
+ };
16
16
  //# sourceMappingURL=specTypeValidValues.d.ts.map
@@ -1,37 +1,37 @@
1
- import { ListQuery, ListResponse, SpecFilter } from "../builtins";
2
- import { Category, SpecType, SpecTypeChoice } from "../entities";
3
- export interface SpecValueRangeListByCategoryIdQuery extends ListQuery<Filters> {
4
- categoryId: Category["id"];
5
- }
6
- export declare type SpecValueRangeListByCategoryIdResponse = ListResponse<SpecValueRange>;
7
- interface Filters {
8
- specFilters?: SpecFilter[];
9
- }
10
- declare type SpecValueRange = SpecValueNumberRange | SpecValueBoolRange | SpecValueEnumRange | SpecValueSetRange;
11
- interface SpecValueNumberRange {
12
- specTypeId: SpecType["id"];
13
- type: "number";
14
- values: SpecValueNumberRangeBin[];
15
- }
16
- interface SpecValueNumberRangeBin {
17
- count: number;
18
- value: number;
19
- }
20
- interface SpecValueBoolRange {
21
- specTypeId: SpecType["id"];
22
- type: "bool";
23
- true: boolean;
24
- false: boolean;
25
- }
26
- interface SpecValueEnumRange {
27
- specTypeId: SpecType["id"];
28
- type: "enum";
29
- choices: SpecTypeChoice["id"][];
30
- }
31
- interface SpecValueSetRange {
32
- specTypeId: SpecType["id"];
33
- type: "set";
34
- choices: SpecTypeChoice["id"][];
35
- }
36
- export {};
1
+ import { ListQuery, ListResponse, SpecFilter } from "../builtins";
2
+ import { Category, SpecType, SpecTypeChoice } from "../entities";
3
+ export interface SpecValueRangeListByCategoryIdQuery extends ListQuery<Filters> {
4
+ categoryId: Category["id"];
5
+ }
6
+ export declare type SpecValueRangeListByCategoryIdResponse = ListResponse<SpecValueRange>;
7
+ interface Filters {
8
+ specFilters?: SpecFilter[];
9
+ }
10
+ declare type SpecValueRange = SpecValueNumberRange | SpecValueBoolRange | SpecValueEnumRange | SpecValueSetRange;
11
+ interface SpecValueNumberRange {
12
+ specTypeId: SpecType["id"];
13
+ type: "number";
14
+ values: SpecValueNumberRangeBin[];
15
+ }
16
+ interface SpecValueNumberRangeBin {
17
+ count: number;
18
+ value: number;
19
+ }
20
+ interface SpecValueBoolRange {
21
+ specTypeId: SpecType["id"];
22
+ type: "bool";
23
+ true: boolean;
24
+ false: boolean;
25
+ }
26
+ interface SpecValueEnumRange {
27
+ specTypeId: SpecType["id"];
28
+ type: "enum";
29
+ choices: SpecTypeChoice["id"][];
30
+ }
31
+ interface SpecValueSetRange {
32
+ specTypeId: SpecType["id"];
33
+ type: "set";
34
+ choices: SpecTypeChoice["id"][];
35
+ }
36
+ export {};
37
37
  //# sourceMappingURL=specValueRangeListByCategoryId.d.ts.map
@@ -1,7 +1,7 @@
1
- import { Money } from "../builtins";
2
- import { ProductType } from "../entities";
3
- export interface StablePriceByProductIdQuery {
4
- productId: ProductType["id"];
5
- }
6
- export declare type StablePriceByProductIdResponse = Money;
1
+ import { Money } from "../builtins";
2
+ import { ProductType } from "../entities";
3
+ export interface StablePriceByProductIdQuery {
4
+ productId: ProductType["id"];
5
+ }
6
+ export declare type StablePriceByProductIdResponse = Money;
7
7
  //# sourceMappingURL=stablePriceByProductId.d.ts.map
@@ -1,8 +1,8 @@
1
- import { Money } from "../builtins";
2
- import { ProductType } from "../entities";
3
- export interface StablePriceByProductIdAndStoreNameQuery {
4
- productTypeId: ProductType["id"];
5
- storeName: string;
6
- }
7
- export declare type StablePriceByProductIdAndStoreNameResponse = Money;
1
+ import { Money } from "../builtins";
2
+ import { ProductType } from "../entities";
3
+ export interface StablePriceByProductIdAndStoreNameQuery {
4
+ productTypeId: ProductType["id"];
5
+ storeName: string;
6
+ }
7
+ export declare type StablePriceByProductIdAndStoreNameResponse = Money;
8
8
  //# sourceMappingURL=stablePriceByProductIdAndStoreName.d.ts.map
@@ -1,7 +1,7 @@
1
- import { Money } from "../builtins";
2
- import { StorePage } from "../entities";
3
- export interface StablePriceByStorePageIdQuery {
4
- storePageId: StorePage["id"];
5
- }
6
- export declare type StablePriceByStorePageIdResponse = Money;
1
+ import { Money } from "../builtins";
2
+ import { StorePage } from "../entities";
3
+ export interface StablePriceByStorePageIdQuery {
4
+ storePageId: StorePage["id"];
5
+ }
6
+ export declare type StablePriceByStorePageIdResponse = Money;
7
7
  //# sourceMappingURL=stablePriceByStorePageId.d.ts.map
@@ -1,13 +1,13 @@
1
- import { Nullable, TimeInterval, Timestamp } from "../builtins";
2
- import { StorePage } from "../entities/storePage";
3
- export interface StorePageFetchDataQuery {
4
- storePageId: StorePage["id"];
5
- }
6
- export interface StorePageFetchDataResponse {
7
- fetchFailureCount: number;
8
- fetchInterval: TimeInterval;
9
- isApiRestricted: boolean;
10
- isInvalid: boolean;
11
- nextFetchAt: Nullable<Timestamp>;
12
- }
1
+ import { Nullable, TimeInterval, Timestamp } from "../builtins";
2
+ import { StorePage } from "../entities/storePage";
3
+ export interface StorePageFetchDataQuery {
4
+ storePageId: StorePage["id"];
5
+ }
6
+ export interface StorePageFetchDataResponse {
7
+ fetchFailureCount: number;
8
+ fetchInterval: TimeInterval;
9
+ isApiRestricted: boolean;
10
+ isInvalid: boolean;
11
+ nextFetchAt: Nullable<Timestamp>;
12
+ }
13
13
  //# sourceMappingURL=storePageFetchData.d.ts.map
@@ -1,7 +1,7 @@
1
- import { Url } from "../builtins";
2
- import { StorePage } from "../entities";
3
- export interface StorePageIdByUrlQuery {
4
- url: Url;
5
- }
6
- export declare type StorePageIdByUrlResponse = StorePage["id"];
1
+ import { Url } from "../builtins";
2
+ import { StorePage } from "../entities";
3
+ export interface StorePageIdByUrlQuery {
4
+ url: Url;
5
+ }
6
+ export declare type StorePageIdByUrlResponse = StorePage["id"];
7
7
  //# sourceMappingURL=storePageIdByUrl.d.ts.map
@@ -1,7 +1,7 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { ProductType, StorePage } from "../entities";
3
- export interface StorePageIdListBySomeIdQuery extends ListQuery {
4
- someId: ProductType["id"];
5
- }
6
- export declare type StorePageIdListBySomeIdResponse = ListResponse<StorePage["id"]>;
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { ProductType, StorePage } from "../entities";
3
+ export interface StorePageIdListBySomeIdQuery extends ListQuery {
4
+ someId: ProductType["id"];
5
+ }
6
+ export declare type StorePageIdListBySomeIdResponse = ListResponse<StorePage["id"]>;
7
7
  //# sourceMappingURL=storePageIdListBySomeId.d.ts.map
@@ -1,12 +1,12 @@
1
- import { Url } from "../builtins";
2
- export interface StorePageInfoQuery {
3
- domain: string;
4
- sku: string;
5
- }
6
- export interface StorePageInfoResponse {
7
- name: string | null;
8
- url: Url | null;
9
- brand: string | null;
10
- categories: string[];
11
- }
1
+ import { Url } from "../builtins";
2
+ export interface StorePageInfoQuery {
3
+ domain: string;
4
+ sku: string;
5
+ }
6
+ export interface StorePageInfoResponse {
7
+ name: string | null;
8
+ url: Url | null;
9
+ brand: string | null;
10
+ categories: string[];
11
+ }
12
12
  //# sourceMappingURL=storePageInfo.d.ts.map
@@ -1,21 +1,21 @@
1
- import { HtmlString, IsoCountry } from "../builtins";
2
- export interface StorePageInfoBySkuQuery {
3
- store: "amazon" | string;
4
- sku: string;
5
- country: IsoCountry;
6
- isStrictSearchMatch?: boolean;
7
- }
8
- export interface StorePageInfoBySkuResponse {
9
- store: string;
10
- sku: string;
11
- name: string | null;
12
- url: string | null;
13
- description: HtmlString | null;
14
- searchMatch: {
15
- search: string;
16
- modifiers: string[];
17
- } | null;
18
- brand: string | null;
19
- categories: string[];
20
- }
1
+ import { HtmlString, IsoCountry } from "../builtins";
2
+ export interface StorePageInfoBySkuQuery {
3
+ store: "amazon" | string;
4
+ sku: string;
5
+ country: IsoCountry;
6
+ isStrictSearchMatch?: boolean;
7
+ }
8
+ export interface StorePageInfoBySkuResponse {
9
+ store: string;
10
+ sku: string;
11
+ name: string | null;
12
+ url: string | null;
13
+ description: HtmlString | null;
14
+ searchMatch: {
15
+ search: string;
16
+ modifiers: string[];
17
+ } | null;
18
+ brand: string | null;
19
+ categories: string[];
20
+ }
21
21
  //# sourceMappingURL=storePageInfoBySku.d.ts.map
@@ -1,10 +1,10 @@
1
- import { Url } from "../builtins";
2
- import { StorePage } from "../entities";
3
- export interface StorePageScrapeDataQuery {
4
- storePageId: StorePage["id"];
5
- }
6
- export interface StorePageScrapeDataResponse {
7
- directUrl: Url;
8
- productName: string;
9
- }
1
+ import { Url } from "../builtins";
2
+ import { StorePage } from "../entities";
3
+ export interface StorePageScrapeDataQuery {
4
+ storePageId: StorePage["id"];
5
+ }
6
+ export interface StorePageScrapeDataResponse {
7
+ directUrl: Url;
8
+ productName: string;
9
+ }
10
10
  //# sourceMappingURL=storePageScrapeData.d.ts.map
@@ -1,7 +1,7 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { Category } from "../entities";
3
- export interface SubCategoryIdListByCategoryIdQuery extends ListQuery {
4
- categoryId: Category["id"];
5
- }
6
- export declare type SubCategoryIdListByCategoryIdResponse = ListResponse<Category["id"]>;
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { Category } from "../entities";
3
+ export interface SubCategoryIdListByCategoryIdQuery extends ListQuery {
4
+ categoryId: Category["id"];
5
+ }
6
+ export declare type SubCategoryIdListByCategoryIdResponse = ListResponse<Category["id"]>;
7
7
  //# sourceMappingURL=subCategoryIdListByCategoryId.d.ts.map
@@ -1,13 +1,13 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { Category } from "../entities";
3
- export interface SubsetModifierDataByModifiersQuery extends ListQuery {
4
- categoryId: Category["id"];
5
- modifiers: string[];
6
- }
7
- export declare type SubsetModifierDataByModifiersResponse = ListResponse<ModifierData>;
8
- interface ModifierData {
9
- modifier: string;
10
- productCount: number;
11
- }
12
- export {};
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { Category } from "../entities";
3
+ export interface SubsetModifierDataByModifiersQuery extends ListQuery {
4
+ categoryId: Category["id"];
5
+ modifiers: string[];
6
+ }
7
+ export declare type SubsetModifierDataByModifiersResponse = ListResponse<ModifierData>;
8
+ interface ModifierData {
9
+ modifier: string;
10
+ productCount: number;
11
+ }
12
+ export {};
13
13
  //# sourceMappingURL=subsetModifierDataByModifiers.d.ts.map
@@ -1,9 +1,9 @@
1
- import { ListQuery, ListResponse, ProductDocument } from "../builtins";
2
- export interface TopProductDocumentListQuery extends ListQuery {
3
- page?: number;
4
- pageSize?: number;
5
- }
6
- export interface TopProductDocumentListResponse extends ListResponse<ProductDocument> {
7
- hitCount: number;
8
- }
1
+ import { ListQuery, ListResponse, ProductDocument } from "../builtins";
2
+ export interface TopProductDocumentListQuery extends ListQuery {
3
+ page?: number;
4
+ pageSize?: number;
5
+ }
6
+ export interface TopProductDocumentListResponse extends ListResponse<ProductDocument> {
7
+ hitCount: number;
8
+ }
9
9
  //# sourceMappingURL=topProductDocumentList.d.ts.map
@@ -1,7 +1,7 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { Media, Category } from "../entities";
3
- export interface UnstableMediaIdListByCategoryIdQuery extends ListQuery {
4
- categoryId: Category["id"];
5
- }
6
- export declare type UnstableMediaIdListByCategoryIdResponse = ListResponse<Media["id"]>;
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { Media, Category } from "../entities";
3
+ export interface UnstableMediaIdListByCategoryIdQuery extends ListQuery {
4
+ categoryId: Category["id"];
5
+ }
6
+ export declare type UnstableMediaIdListByCategoryIdResponse = ListResponse<Media["id"]>;
7
7
  //# sourceMappingURL=unstableMediaIdListByCategoryId.d.ts.map
@@ -1,10 +1,10 @@
1
- import { Source } from "../entities/source";
2
- export interface UnstableSourceTrustQuery {
3
- sourceId: Source["id"];
4
- }
5
- export interface UnstableSourceTrustResponse {
6
- analysisDepth: 0 | 1 | 2 | 3 | null;
7
- doesTesting: boolean | null;
8
- trustScore: 0 | 1 | 2 | 3 | null;
9
- }
1
+ import { Source } from "../entities/source";
2
+ export interface UnstableSourceTrustQuery {
3
+ sourceId: Source["id"];
4
+ }
5
+ export interface UnstableSourceTrustResponse {
6
+ analysisDepth: 0 | 1 | 2 | 3 | null;
7
+ doesTesting: boolean | null;
8
+ trustScore: 0 | 1 | 2 | 3 | null;
9
+ }
10
10
  //# sourceMappingURL=unstableSourceTrust.d.ts.map
@@ -1,5 +1,5 @@
1
- import { ListQuery, ListResponse } from "../builtins";
2
- import { User } from "../entities";
3
- export declare type UserIdListQuery = ListQuery;
4
- export declare type UserIdListResponse = ListResponse<User["id"]>;
1
+ import { ListQuery, ListResponse } from "../builtins";
2
+ import { User } from "../entities";
3
+ export declare type UserIdListQuery = ListQuery;
4
+ export declare type UserIdListResponse = ListResponse<User["id"]>;
5
5
  //# sourceMappingURL=userIdList.d.ts.map
@@ -1,8 +1,8 @@
1
- import { User } from "../entities";
2
- export interface UserPermissionsByUserIdQuery {
3
- userId: User["id"];
4
- }
5
- export declare type UserPermissionsByUserIdResponse = UserPermission[];
6
- declare type UserPermission = "read" | "write" | "admin_slant" | "edit_permissions";
7
- export {};
1
+ import { User } from "../entities";
2
+ export interface UserPermissionsByUserIdQuery {
3
+ userId: User["id"];
4
+ }
5
+ export declare type UserPermissionsByUserIdResponse = UserPermission[];
6
+ declare type UserPermission = "read" | "write" | "admin_slant" | "edit_permissions";
7
+ export {};
8
8
  //# sourceMappingURL=userPermissionsByUserId.d.ts.map
@@ -1,11 +1,11 @@
1
- import { User } from "../entities";
2
- export interface UserRestrictedDataQuery {
3
- userId: User["id"];
4
- }
5
- export interface UserRestrictedDataResponse {
6
- email: string;
7
- permissions: UserPermission[];
8
- }
9
- declare type UserPermission = "read" | "write" | "admin_slant" | "edit_permissions";
10
- export {};
1
+ import { User } from "../entities";
2
+ export interface UserRestrictedDataQuery {
3
+ userId: User["id"];
4
+ }
5
+ export interface UserRestrictedDataResponse {
6
+ email: string;
7
+ permissions: UserPermission[];
8
+ }
9
+ declare type UserPermission = "read" | "write" | "admin_slant" | "edit_permissions";
10
+ export {};
11
11
  //# sourceMappingURL=userRestictedData.d.ts.map
@@ -1,38 +1,38 @@
1
- import { BadgeStates, MarkdownString, Url } from "../builtins";
2
- export interface UserReviewAnalysisQuery {
3
- domain: string;
4
- sku: string;
5
- }
6
- export interface UserReviewAnalysisResponse {
7
- badge: BadgeStates;
8
- ratingDistribution: {
9
- sentiment: "positive" | "neutral" | "negative";
10
- percentage: number;
11
- }[];
12
- ratingCount: number | null;
13
- aspects: TradeoffSection[];
14
- }
15
- declare type TradeoffSection = {
16
- sentimentKind: "positive" | "negative";
17
- criteria: {
18
- title: string | null;
19
- body: MarkdownString | null;
20
- citations: {
21
- reviewIndex: number;
22
- snippet: string | null;
23
- }[];
24
- }[];
25
- reviews: Review[];
26
- };
27
- interface BaseReview<T extends string> {
28
- kind: T;
29
- url: Url | null;
30
- domain: string;
31
- title: string | null;
32
- body: string | null;
33
- scaledRating: number | null;
34
- }
35
- declare type UserReview = BaseReview<"user_review">;
36
- declare type Review = UserReview;
37
- export {};
1
+ import { BadgeStates, MarkdownString, Url } from "../builtins";
2
+ export interface UserReviewAnalysisQuery {
3
+ domain: string;
4
+ sku: string;
5
+ }
6
+ export interface UserReviewAnalysisResponse {
7
+ badge: BadgeStates;
8
+ ratingDistribution: {
9
+ sentiment: "positive" | "neutral" | "negative";
10
+ percentage: number;
11
+ }[];
12
+ ratingCount: number | null;
13
+ aspects: TradeoffSection[];
14
+ }
15
+ declare type TradeoffSection = {
16
+ sentimentKind: "positive" | "negative";
17
+ criteria: {
18
+ title: string | null;
19
+ body: MarkdownString | null;
20
+ citations: {
21
+ reviewIndex: number;
22
+ snippet: string | null;
23
+ }[];
24
+ }[];
25
+ reviews: Review[];
26
+ };
27
+ interface BaseReview<T extends string> {
28
+ kind: T;
29
+ url: Url | null;
30
+ domain: string;
31
+ title: string | null;
32
+ body: string | null;
33
+ scaledRating: number | null;
34
+ }
35
+ declare type UserReview = BaseReview<"user_review">;
36
+ declare type Review = UserReview;
37
+ export {};
38
38
  //# sourceMappingURL=userReviewAnalysis.d.ts.map
@@ -1,6 +1,6 @@
1
- import { User } from "../entities";
2
- export declare type WhoAmIQuery = Record<string, never>;
3
- export interface WhoAmIResponse {
4
- id: User["id"];
5
- }
1
+ import { User } from "../entities";
2
+ export declare type WhoAmIQuery = Record<string, never>;
3
+ export interface WhoAmIResponse {
4
+ id: User["id"];
5
+ }
6
6
  //# sourceMappingURL=whoAmI.d.ts.map