@lengors/protoscout-schemas 2.0.0-alpha.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.
Files changed (213) hide show
  1. package/dist/scrapers/index.d.ts +22 -0
  2. package/dist/scrapers/index.d.ts.map +1 -0
  3. package/dist/scrapers/index.js +38 -0
  4. package/dist/scrapers/index.js.map +1 -0
  5. package/dist/scrapers/scraper-inputs.d.ts +9 -0
  6. package/dist/scrapers/scraper-inputs.d.ts.map +1 -0
  7. package/dist/scrapers/scraper-inputs.js +23 -0
  8. package/dist/scrapers/scraper-inputs.js.map +1 -0
  9. package/dist/scrapers/scraper-profile.d.ts +18 -0
  10. package/dist/scrapers/scraper-profile.d.ts.map +1 -0
  11. package/dist/scrapers/scraper-profile.js +31 -0
  12. package/dist/scrapers/scraper-profile.js.map +1 -0
  13. package/dist/scrapers/scraper-request.d.ts +33 -0
  14. package/dist/scrapers/scraper-request.d.ts.map +1 -0
  15. package/dist/scrapers/scraper-request.js +36 -0
  16. package/dist/scrapers/scraper-request.js.map +1 -0
  17. package/dist/scrapers/scraper-response-error-code.d.ts +22 -0
  18. package/dist/scrapers/scraper-response-error-code.d.ts.map +1 -0
  19. package/dist/scrapers/scraper-response-error-code.js +33 -0
  20. package/dist/scrapers/scraper-response-error-code.js.map +1 -0
  21. package/dist/scrapers/scraper-response-error.d.ts +27 -0
  22. package/dist/scrapers/scraper-response-error.d.ts.map +1 -0
  23. package/dist/scrapers/scraper-response-error.js +38 -0
  24. package/dist/scrapers/scraper-response-error.js.map +1 -0
  25. package/dist/scrapers/scraper-response-result-brand.d.ts +12 -0
  26. package/dist/scrapers/scraper-response-result-brand.d.ts.map +1 -0
  27. package/dist/scrapers/scraper-response-result-brand.js +30 -0
  28. package/dist/scrapers/scraper-response-result-brand.js.map +1 -0
  29. package/dist/scrapers/scraper-response-result-date-time-instant-grain.d.ts +18 -0
  30. package/dist/scrapers/scraper-response-result-date-time-instant-grain.d.ts.map +1 -0
  31. package/dist/scrapers/scraper-response-result-date-time-instant-grain.js +19 -0
  32. package/dist/scrapers/scraper-response-result-date-time-instant-grain.js.map +1 -0
  33. package/dist/scrapers/scraper-response-result-date-time-instant.d.ts +21 -0
  34. package/dist/scrapers/scraper-response-result-date-time-instant.d.ts.map +1 -0
  35. package/dist/scrapers/scraper-response-result-date-time-instant.js +30 -0
  36. package/dist/scrapers/scraper-response-result-date-time-instant.js.map +1 -0
  37. package/dist/scrapers/scraper-response-result-date-time-range.d.ts +36 -0
  38. package/dist/scrapers/scraper-response-result-date-time-range.d.ts.map +1 -0
  39. package/dist/scrapers/scraper-response-result-date-time-range.js +27 -0
  40. package/dist/scrapers/scraper-response-result-date-time-range.js.map +1 -0
  41. package/dist/scrapers/scraper-response-result-date-time.d.ts +48 -0
  42. package/dist/scrapers/scraper-response-result-date-time.d.ts.map +1 -0
  43. package/dist/scrapers/scraper-response-result-date-time.js +22 -0
  44. package/dist/scrapers/scraper-response-result-date-time.js.map +1 -0
  45. package/dist/scrapers/scraper-response-result-descriptionless-detail.d.ts +12 -0
  46. package/dist/scrapers/scraper-response-result-descriptionless-detail.d.ts.map +1 -0
  47. package/dist/scrapers/scraper-response-result-descriptionless-detail.js +32 -0
  48. package/dist/scrapers/scraper-response-result-descriptionless-detail.js.map +1 -0
  49. package/dist/scrapers/scraper-response-result-descriptive-detail.d.ts +13 -0
  50. package/dist/scrapers/scraper-response-result-descriptive-detail.d.ts.map +1 -0
  51. package/dist/scrapers/scraper-response-result-descriptive-detail.js +36 -0
  52. package/dist/scrapers/scraper-response-result-descriptive-detail.js.map +1 -0
  53. package/dist/scrapers/scraper-response-result-detail.d.ts +16 -0
  54. package/dist/scrapers/scraper-response-result-detail.d.ts.map +1 -0
  55. package/dist/scrapers/scraper-response-result-detail.js +22 -0
  56. package/dist/scrapers/scraper-response-result-detail.js.map +1 -0
  57. package/dist/scrapers/scraper-response-result-grading.d.ts +15 -0
  58. package/dist/scrapers/scraper-response-result-grading.d.ts.map +1 -0
  59. package/dist/scrapers/scraper-response-result-grading.js +20 -0
  60. package/dist/scrapers/scraper-response-result-grading.js.map +1 -0
  61. package/dist/scrapers/scraper-response-result-noise-level.d.ts +13 -0
  62. package/dist/scrapers/scraper-response-result-noise-level.d.ts.map +1 -0
  63. package/dist/scrapers/scraper-response-result-noise-level.js +20 -0
  64. package/dist/scrapers/scraper-response-result-noise-level.js.map +1 -0
  65. package/dist/scrapers/scraper-response-result-price.d.ts +12 -0
  66. package/dist/scrapers/scraper-response-result-price.d.ts.map +1 -0
  67. package/dist/scrapers/scraper-response-result-price.js +30 -0
  68. package/dist/scrapers/scraper-response-result-price.js.map +1 -0
  69. package/dist/scrapers/scraper-response-result-quantity-modifier.d.ts +13 -0
  70. package/dist/scrapers/scraper-response-result-quantity-modifier.d.ts.map +1 -0
  71. package/dist/scrapers/scraper-response-result-quantity-modifier.js +20 -0
  72. package/dist/scrapers/scraper-response-result-quantity-modifier.js.map +1 -0
  73. package/dist/scrapers/scraper-response-result-quantity.d.ts +16 -0
  74. package/dist/scrapers/scraper-response-result-quantity.d.ts.map +1 -0
  75. package/dist/scrapers/scraper-response-result-quantity.js +28 -0
  76. package/dist/scrapers/scraper-response-result-quantity.js.map +1 -0
  77. package/dist/scrapers/scraper-response-result-stock.d.ts +97 -0
  78. package/dist/scrapers/scraper-response-result-stock.d.ts.map +1 -0
  79. package/dist/scrapers/scraper-response-result-stock.js +34 -0
  80. package/dist/scrapers/scraper-response-result-stock.js.map +1 -0
  81. package/dist/scrapers/scraper-response-result.d.ts +229 -0
  82. package/dist/scrapers/scraper-response-result.d.ts.map +1 -0
  83. package/dist/scrapers/scraper-response-result.js +80 -0
  84. package/dist/scrapers/scraper-response-result.js.map +1 -0
  85. package/dist/scrapers/scraper-response.d.ts +247 -0
  86. package/dist/scrapers/scraper-response.d.ts.map +1 -0
  87. package/dist/scrapers/scraper-response.js +19 -0
  88. package/dist/scrapers/scraper-response.js.map +1 -0
  89. package/dist/scrapers/specifications/index.d.ts +31 -0
  90. package/dist/scrapers/specifications/index.d.ts.map +1 -0
  91. package/dist/scrapers/specifications/index.js +47 -0
  92. package/dist/scrapers/specifications/index.js.map +1 -0
  93. package/dist/scrapers/specifications/scraper-specification-data-payload.d.ts +13 -0
  94. package/dist/scrapers/specifications/scraper-specification-data-payload.d.ts.map +1 -0
  95. package/dist/scrapers/specifications/scraper-specification-data-payload.js +26 -0
  96. package/dist/scrapers/specifications/scraper-specification-data-payload.js.map +1 -0
  97. package/dist/scrapers/specifications/scraper-specification-defaults.d.ts +38 -0
  98. package/dist/scrapers/specifications/scraper-specification-defaults.d.ts.map +1 -0
  99. package/dist/scrapers/specifications/scraper-specification-defaults.js +33 -0
  100. package/dist/scrapers/specifications/scraper-specification-defaults.js.map +1 -0
  101. package/dist/scrapers/specifications/scraper-specification-expression.d.ts +11 -0
  102. package/dist/scrapers/specifications/scraper-specification-expression.d.ts.map +1 -0
  103. package/dist/scrapers/specifications/scraper-specification-expression.js +24 -0
  104. package/dist/scrapers/specifications/scraper-specification-expression.js.map +1 -0
  105. package/dist/scrapers/specifications/scraper-specification-flat-action.d.ts +13 -0
  106. package/dist/scrapers/specifications/scraper-specification-flat-action.d.ts.map +1 -0
  107. package/dist/scrapers/specifications/scraper-specification-flat-action.js +26 -0
  108. package/dist/scrapers/specifications/scraper-specification-flat-action.js.map +1 -0
  109. package/dist/scrapers/specifications/scraper-specification-gates.d.ts +19 -0
  110. package/dist/scrapers/specifications/scraper-specification-gates.d.ts.map +1 -0
  111. package/dist/scrapers/specifications/scraper-specification-gates.js +41 -0
  112. package/dist/scrapers/specifications/scraper-specification-gates.js.map +1 -0
  113. package/dist/scrapers/specifications/scraper-specification-handler.d.ts +207 -0
  114. package/dist/scrapers/specifications/scraper-specification-handler.d.ts.map +1 -0
  115. package/dist/scrapers/specifications/scraper-specification-handler.js +44 -0
  116. package/dist/scrapers/specifications/scraper-specification-handler.js.map +1 -0
  117. package/dist/scrapers/specifications/scraper-specification-header-map.d.ts +11 -0
  118. package/dist/scrapers/specifications/scraper-specification-header-map.d.ts.map +1 -0
  119. package/dist/scrapers/specifications/scraper-specification-header-map.js +21 -0
  120. package/dist/scrapers/specifications/scraper-specification-header-map.js.map +1 -0
  121. package/dist/scrapers/specifications/scraper-specification-jexl-specification.d.ts +11 -0
  122. package/dist/scrapers/specifications/scraper-specification-jexl-specification.d.ts.map +1 -0
  123. package/dist/scrapers/specifications/scraper-specification-jexl-specification.js +29 -0
  124. package/dist/scrapers/specifications/scraper-specification-jexl-specification.js.map +1 -0
  125. package/dist/scrapers/specifications/scraper-specification-json-payload.d.ts +13 -0
  126. package/dist/scrapers/specifications/scraper-specification-json-payload.d.ts.map +1 -0
  127. package/dist/scrapers/specifications/scraper-specification-json-payload.js +26 -0
  128. package/dist/scrapers/specifications/scraper-specification-json-payload.js.map +1 -0
  129. package/dist/scrapers/specifications/scraper-specification-map-action.d.ts +15 -0
  130. package/dist/scrapers/specifications/scraper-specification-map-action.d.ts.map +1 -0
  131. package/dist/scrapers/specifications/scraper-specification-map-action.js +26 -0
  132. package/dist/scrapers/specifications/scraper-specification-map-action.js.map +1 -0
  133. package/dist/scrapers/specifications/scraper-specification-map.d.ts +13 -0
  134. package/dist/scrapers/specifications/scraper-specification-map.d.ts.map +1 -0
  135. package/dist/scrapers/specifications/scraper-specification-map.js +26 -0
  136. package/dist/scrapers/specifications/scraper-specification-map.js.map +1 -0
  137. package/dist/scrapers/specifications/scraper-specification-payload-map.d.ts +11 -0
  138. package/dist/scrapers/specifications/scraper-specification-payload-map.d.ts.map +1 -0
  139. package/dist/scrapers/specifications/scraper-specification-payload-map.js +21 -0
  140. package/dist/scrapers/specifications/scraper-specification-payload-map.js.map +1 -0
  141. package/dist/scrapers/specifications/scraper-specification-request-action.d.ts +64 -0
  142. package/dist/scrapers/specifications/scraper-specification-request-action.d.ts.map +1 -0
  143. package/dist/scrapers/specifications/scraper-specification-request-action.js +28 -0
  144. package/dist/scrapers/specifications/scraper-specification-request-action.js.map +1 -0
  145. package/dist/scrapers/specifications/scraper-specification-request-method.d.ts +16 -0
  146. package/dist/scrapers/specifications/scraper-specification-request-method.d.ts.map +1 -0
  147. package/dist/scrapers/specifications/scraper-specification-request-method.js +19 -0
  148. package/dist/scrapers/specifications/scraper-specification-request-method.js.map +1 -0
  149. package/dist/scrapers/specifications/scraper-specification-request-parser.d.ts +13 -0
  150. package/dist/scrapers/specifications/scraper-specification-request-parser.d.ts.map +1 -0
  151. package/dist/scrapers/specifications/scraper-specification-request-parser.js +19 -0
  152. package/dist/scrapers/specifications/scraper-specification-request-parser.js.map +1 -0
  153. package/dist/scrapers/specifications/scraper-specification-request.d.ts +57 -0
  154. package/dist/scrapers/specifications/scraper-specification-request.d.ts.map +1 -0
  155. package/dist/scrapers/specifications/scraper-specification-request.js +40 -0
  156. package/dist/scrapers/specifications/scraper-specification-request.js.map +1 -0
  157. package/dist/scrapers/specifications/scraper-specification-requirement-type.d.ts +13 -0
  158. package/dist/scrapers/specifications/scraper-specification-requirement-type.d.ts.map +1 -0
  159. package/dist/scrapers/specifications/scraper-specification-requirement-type.js +19 -0
  160. package/dist/scrapers/specifications/scraper-specification-requirement-type.js.map +1 -0
  161. package/dist/scrapers/specifications/scraper-specification-requirement.d.ts +17 -0
  162. package/dist/scrapers/specifications/scraper-specification-requirement.d.ts.map +1 -0
  163. package/dist/scrapers/specifications/scraper-specification-requirement.js +32 -0
  164. package/dist/scrapers/specifications/scraper-specification-requirement.js.map +1 -0
  165. package/dist/scrapers/specifications/scraper-specification-return-action.d.ts +125 -0
  166. package/dist/scrapers/specifications/scraper-specification-return-action.d.ts.map +1 -0
  167. package/dist/scrapers/specifications/scraper-specification-return-action.js +26 -0
  168. package/dist/scrapers/specifications/scraper-specification-return-action.js.map +1 -0
  169. package/dist/scrapers/specifications/scraper-specification-return-brand.d.ts +16 -0
  170. package/dist/scrapers/specifications/scraper-specification-return-brand.d.ts.map +1 -0
  171. package/dist/scrapers/specifications/scraper-specification-return-brand.js +25 -0
  172. package/dist/scrapers/specifications/scraper-specification-return-brand.js.map +1 -0
  173. package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.d.ts +16 -0
  174. package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.d.ts.map +1 -0
  175. package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.js +27 -0
  176. package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.js.map +1 -0
  177. package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.d.ts +19 -0
  178. package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.d.ts.map +1 -0
  179. package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.js +28 -0
  180. package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.js.map +1 -0
  181. package/dist/scrapers/specifications/scraper-specification-return-detail.d.ts +26 -0
  182. package/dist/scrapers/specifications/scraper-specification-return-detail.d.ts.map +1 -0
  183. package/dist/scrapers/specifications/scraper-specification-return-detail.js +22 -0
  184. package/dist/scrapers/specifications/scraper-specification-return-detail.js.map +1 -0
  185. package/dist/scrapers/specifications/scraper-specification-return-extract-stock.d.ts +39 -0
  186. package/dist/scrapers/specifications/scraper-specification-return-extract-stock.d.ts.map +1 -0
  187. package/dist/scrapers/specifications/scraper-specification-return-extract-stock.js +32 -0
  188. package/dist/scrapers/specifications/scraper-specification-return-extract-stock.js.map +1 -0
  189. package/dist/scrapers/specifications/scraper-specification-return-flat-stock.d.ts +44 -0
  190. package/dist/scrapers/specifications/scraper-specification-return-flat-stock.d.ts.map +1 -0
  191. package/dist/scrapers/specifications/scraper-specification-return-flat-stock.js +28 -0
  192. package/dist/scrapers/specifications/scraper-specification-return-flat-stock.js.map +1 -0
  193. package/dist/scrapers/specifications/scraper-specification-return.d.ts +123 -0
  194. package/dist/scrapers/specifications/scraper-specification-return.d.ts.map +1 -0
  195. package/dist/scrapers/specifications/scraper-specification-return.js +54 -0
  196. package/dist/scrapers/specifications/scraper-specification-return.js.map +1 -0
  197. package/dist/scrapers/specifications/scraper-specification-settings.d.ts +56 -0
  198. package/dist/scrapers/specifications/scraper-specification-settings.d.ts.map +1 -0
  199. package/dist/scrapers/specifications/scraper-specification-settings.js +43 -0
  200. package/dist/scrapers/specifications/scraper-specification-settings.js.map +1 -0
  201. package/dist/scrapers/specifications/scraper-specification-url-parameter.d.ts +16 -0
  202. package/dist/scrapers/specifications/scraper-specification-url-parameter.d.ts.map +1 -0
  203. package/dist/scrapers/specifications/scraper-specification-url-parameter.js +25 -0
  204. package/dist/scrapers/specifications/scraper-specification-url-parameter.js.map +1 -0
  205. package/dist/scrapers/specifications/scraper-specification-url.d.ts +30 -0
  206. package/dist/scrapers/specifications/scraper-specification-url.d.ts.map +1 -0
  207. package/dist/scrapers/specifications/scraper-specification-url.js +34 -0
  208. package/dist/scrapers/specifications/scraper-specification-url.js.map +1 -0
  209. package/dist/scrapers/specifications/scraper-specification.d.ts +258 -0
  210. package/dist/scrapers/specifications/scraper-specification.d.ts.map +1 -0
  211. package/dist/scrapers/specifications/scraper-specification.js +35 -0
  212. package/dist/scrapers/specifications/scraper-specification.js.map +1 -0
  213. package/package.json +58 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scraper-response-result-stock.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-result-stock.ts"],"names":[],"mappings":";;;AAAA,yCAAgC;AAChC,yFAAmF;AACnF,2FAAoF;AAEpF;;;;GAIG;AACU,QAAA,0BAA0B,GAAG,WAAC,CAAC,IAAI,CAC9C,WAAC;KACE,QAAQ,CACP,WAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,gEAA6B;IAC3C,OAAO,EAAE,WAAC,CAAC,QAAQ,CACjB,WAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,WAAC,CAAC,cAAc,EAAE;QACpC,KAAK,EAAE,8BAA8B;QACrC,WAAW,EACT,gEAAgE;KACnE,CAAC,CACH;IACD,CAAC,eAAe,CAAC,EAAE,WAAC,CAAC,QAAQ,CAAC,iEAA6B,CAAC;CAC7D,CAAC,CACH;KACA,QAAQ,CAAC,WAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,wFAAwF;IAC5F,KAAK,EAAE,gCAAgC;IACvC,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EACN,gFAAgF;IAClF,cAAc,EAAE,CAAC,sBAAsB,CAAC;IACxC,oBAAoB,EAAE,KAAK;CAC5B,CAAC,EACJ,WAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACrB,YAAY,EAAE,IAAI,CAAC,YAAY;IAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,YAAY,EAAE,IAAI,CAAC,aAAa;CACjC,CAAC,CAAC,CACJ,CAAC"}
@@ -0,0 +1,229 @@
1
+ import { z } from "zod/v4-mini";
2
+ /**
3
+ * Represents the result of a scraper response.
4
+ *
5
+ * @author lengors
6
+ */
7
+ export declare const ScraperResponseResult: z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniObject<{
8
+ url: z.ZodMiniString<string>;
9
+ specification_name: z.ZodMiniString<string>;
10
+ description: z.ZodMiniString<string>;
11
+ brand: z.ZodMiniReadonly<z.ZodMiniObject<{
12
+ description: z.ZodMiniString<string>;
13
+ image: z.ZodMiniOptional<z.ZodMiniString<string>>;
14
+ }, z.core.$strip>>;
15
+ price: z.ZodMiniReadonly<z.ZodMiniObject<{
16
+ amount: z.ZodMiniString<string>;
17
+ unit: z.ZodMiniString<string>;
18
+ }, z.core.$strip>>;
19
+ image: z.ZodMiniOptional<z.ZodMiniString<string>>;
20
+ stocks: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniObject<{
21
+ availability: z.ZodMiniReadonly<z.ZodMiniObject<{
22
+ amount: z.ZodMiniNumberFormat;
23
+ modifier: z.ZodMiniEnum<{
24
+ exact: "exact";
25
+ at_least: "at_least";
26
+ at_most: "at_most";
27
+ }>;
28
+ }, z.core.$strip>>;
29
+ storage: z.ZodMiniOptional<z.ZodMiniString<string>>;
30
+ delivering_on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
31
+ value: z.iso.ZodMiniISODateTime;
32
+ grain: z.ZodMiniEnum<{
33
+ second: "second";
34
+ minute: "minute";
35
+ hour: "hour";
36
+ day: "day";
37
+ week: "week";
38
+ month: "month";
39
+ quarter: "quarter";
40
+ year: "year";
41
+ }>;
42
+ }, z.core.$strip>>, z.ZodMiniReadonly<z.ZodMiniObject<{
43
+ from: z.ZodMiniReadonly<z.ZodMiniObject<{
44
+ value: z.iso.ZodMiniISODateTime;
45
+ grain: z.ZodMiniEnum<{
46
+ second: "second";
47
+ minute: "minute";
48
+ hour: "hour";
49
+ day: "day";
50
+ week: "week";
51
+ month: "month";
52
+ quarter: "quarter";
53
+ year: "year";
54
+ }>;
55
+ }, z.core.$strip>>;
56
+ grain: z.ZodMiniReadonly<z.ZodMiniObject<{
57
+ value: z.iso.ZodMiniISODateTime;
58
+ grain: z.ZodMiniEnum<{
59
+ second: "second";
60
+ minute: "minute";
61
+ hour: "hour";
62
+ day: "day";
63
+ week: "week";
64
+ month: "month";
65
+ quarter: "quarter";
66
+ year: "year";
67
+ }>;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>>]>>;
70
+ }, z.core.$strip>>, z.ZodMiniTransform<{
71
+ availability: Readonly<{
72
+ amount: number;
73
+ modifier: "exact" | "at_least" | "at_most";
74
+ }>;
75
+ storage: string | undefined;
76
+ deliveringOn: Readonly<{
77
+ value: string;
78
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
79
+ }> | Readonly<{
80
+ from: Readonly<{
81
+ value: string;
82
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
83
+ }>;
84
+ grain: Readonly<{
85
+ value: string;
86
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
87
+ }>;
88
+ }> | undefined;
89
+ }, Readonly<{
90
+ availability: Readonly<{
91
+ amount: number;
92
+ modifier: "exact" | "at_least" | "at_most";
93
+ }>;
94
+ storage?: string | undefined;
95
+ delivering_on?: Readonly<{
96
+ value: string;
97
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
98
+ }> | Readonly<{
99
+ from: Readonly<{
100
+ value: string;
101
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
102
+ }>;
103
+ grain: Readonly<{
104
+ value: string;
105
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
106
+ }>;
107
+ }> | undefined;
108
+ }>>>>>>;
109
+ grip: z.ZodMiniOptional<z.ZodMiniEnum<{
110
+ a: "a";
111
+ b: "b";
112
+ c: "c";
113
+ d: "d";
114
+ e: "e";
115
+ }>>;
116
+ noise: z.ZodMiniOptional<z.ZodMiniEnum<{
117
+ a: "a";
118
+ b: "b";
119
+ c: "c";
120
+ }>>;
121
+ decibels: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
122
+ consumption: z.ZodMiniOptional<z.ZodMiniEnum<{
123
+ a: "a";
124
+ b: "b";
125
+ c: "c";
126
+ d: "d";
127
+ e: "e";
128
+ }>>;
129
+ details: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
130
+ name: z.ZodMiniString<string>;
131
+ image: z.ZodMiniString<string>;
132
+ }, z.core.$strip>>, z.ZodMiniReadonly<z.ZodMiniObject<{
133
+ name: z.ZodMiniString<string>;
134
+ description: z.ZodMiniString<string>;
135
+ image: z.ZodMiniOptional<z.ZodMiniString<string>>;
136
+ }, z.core.$strip>>]>>>>;
137
+ }, z.core.$strip>>, z.ZodMiniTransform<{
138
+ url: string;
139
+ specificationName: string;
140
+ description: string;
141
+ brand: Readonly<{
142
+ description: string;
143
+ image?: string | undefined;
144
+ }>;
145
+ price: Readonly<{
146
+ amount: string;
147
+ unit: string;
148
+ }>;
149
+ image: string | undefined;
150
+ stocks: readonly {
151
+ availability: Readonly<{
152
+ amount: number;
153
+ modifier: "exact" | "at_least" | "at_most";
154
+ }>;
155
+ storage: string | undefined;
156
+ deliveringOn: Readonly<{
157
+ value: string;
158
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
159
+ }> | Readonly<{
160
+ from: Readonly<{
161
+ value: string;
162
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
163
+ }>;
164
+ grain: Readonly<{
165
+ value: string;
166
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
167
+ }>;
168
+ }> | undefined;
169
+ }[] | undefined;
170
+ grip: "a" | "b" | "c" | "d" | "e" | undefined;
171
+ noise: "a" | "b" | "c" | undefined;
172
+ decibels: number | undefined;
173
+ consumption: "a" | "b" | "c" | "d" | "e" | undefined;
174
+ details: readonly (Readonly<{
175
+ name: string;
176
+ image: string;
177
+ }> | Readonly<{
178
+ name: string;
179
+ description: string;
180
+ image?: string | undefined;
181
+ }>)[] | undefined;
182
+ }, Readonly<{
183
+ url: string;
184
+ specification_name: string;
185
+ description: string;
186
+ brand: Readonly<{
187
+ description: string;
188
+ image?: string | undefined;
189
+ }>;
190
+ price: Readonly<{
191
+ amount: string;
192
+ unit: string;
193
+ }>;
194
+ image?: string | undefined;
195
+ stocks?: readonly {
196
+ availability: Readonly<{
197
+ amount: number;
198
+ modifier: "exact" | "at_least" | "at_most";
199
+ }>;
200
+ storage: string | undefined;
201
+ deliveringOn: Readonly<{
202
+ value: string;
203
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
204
+ }> | Readonly<{
205
+ from: Readonly<{
206
+ value: string;
207
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
208
+ }>;
209
+ grain: Readonly<{
210
+ value: string;
211
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
212
+ }>;
213
+ }> | undefined;
214
+ }[] | undefined;
215
+ grip?: "a" | "b" | "c" | "d" | "e" | undefined;
216
+ noise?: "a" | "b" | "c" | undefined;
217
+ decibels?: number | undefined;
218
+ consumption?: "a" | "b" | "c" | "d" | "e" | undefined;
219
+ details?: readonly (Readonly<{
220
+ name: string;
221
+ image: string;
222
+ }> | Readonly<{
223
+ name: string;
224
+ description: string;
225
+ image?: string | undefined;
226
+ }>)[] | undefined;
227
+ }>>>;
228
+ export type ScraperResponseResult = z.infer<typeof ScraperResponseResult>;
229
+ //# sourceMappingURL=scraper-response-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scraper-response-result.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAQhC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8EjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScraperResponseResult = void 0;
4
+ const v4_mini_1 = require("zod/v4-mini");
5
+ const scraper_response_result_brand_1 = require("./scraper-response-result-brand");
6
+ const scraper_response_result_price_1 = require("./scraper-response-result-price");
7
+ const scraper_response_result_stock_1 = require("./scraper-response-result-stock");
8
+ const scraper_response_result_grading_1 = require("./scraper-response-result-grading");
9
+ const scraper_response_result_noise_level_1 = require("./scraper-response-result-noise-level");
10
+ const scraper_response_result_detail_1 = require("./scraper-response-result-detail");
11
+ /**
12
+ * Represents the result of a scraper response.
13
+ *
14
+ * @author lengors
15
+ */
16
+ exports.ScraperResponseResult = v4_mini_1.z.pipe(v4_mini_1.z
17
+ .readonly(v4_mini_1.z.object({
18
+ url: v4_mini_1.z.string().register(v4_mini_1.z.globalRegistry, {
19
+ title: "Default url.",
20
+ description: "Default url used for scraping result.",
21
+ }),
22
+ ["specification_name"]: v4_mini_1.z.string().register(v4_mini_1.z.globalRegistry, {
23
+ title: "Specification's name.",
24
+ description: "Specification's name responsible for generating this result.",
25
+ }),
26
+ description: v4_mini_1.z.string().register(v4_mini_1.z.globalRegistry, {
27
+ title: "Result description.",
28
+ description: "Description of scrapped result.",
29
+ }),
30
+ brand: scraper_response_result_brand_1.ScraperResponseResultBrand,
31
+ price: scraper_response_result_price_1.ScraperResponseResultPrice,
32
+ image: v4_mini_1.z.optional(v4_mini_1.z.string().register(v4_mini_1.z.globalRegistry, {
33
+ title: "Result image.",
34
+ description: "Image associated with scrapped result.",
35
+ })),
36
+ stocks: v4_mini_1.z.optional(v4_mini_1.z
37
+ .readonly(v4_mini_1.z.array(scraper_response_result_stock_1.ScraperResponseResultStock))
38
+ .register(v4_mini_1.z.globalRegistry, {
39
+ title: "Result stock data list.",
40
+ description: "Stock data list associated with result.",
41
+ })),
42
+ grip: v4_mini_1.z.optional(scraper_response_result_grading_1.ScraperResponseResultGrading),
43
+ noise: v4_mini_1.z.optional(scraper_response_result_noise_level_1.ScraperResponseResultNoiseLevel),
44
+ decibels: v4_mini_1.z.optional(v4_mini_1.z.int32().register(v4_mini_1.z.globalRegistry, {
45
+ title: "Result decibels.",
46
+ description: "Decibels value associated with scrapped result.",
47
+ })),
48
+ consumption: v4_mini_1.z.optional(scraper_response_result_grading_1.ScraperResponseResultGrading),
49
+ details: v4_mini_1.z.optional(v4_mini_1.z
50
+ .readonly(v4_mini_1.z.array(scraper_response_result_detail_1.ScraperResponseResultDetail))
51
+ .register(v4_mini_1.z.globalRegistry, {
52
+ title: "Result detail data list.",
53
+ description: "Detail data list associated with result.",
54
+ })),
55
+ }))
56
+ .register(v4_mini_1.z.globalRegistry, {
57
+ $schema: "http://json-schema.org/draft-07/schema",
58
+ id: "io/github/lengors/protoscout/domain/scrapers/models/scraper-response-result.json",
59
+ title: "Scraper response result.",
60
+ description: "Response with result of scraper.",
61
+ javaType: "io.github.lengors.protoscout.domain.scrapers.models.ScraperResponseResult",
62
+ javaInterfaces: [
63
+ "io.github.lengors.protoscout.domain.scrapers.models.ScraperResponse",
64
+ ],
65
+ additionalProperties: false,
66
+ }), v4_mini_1.z.transform((data) => ({
67
+ url: data.url,
68
+ specificationName: data.specification_name,
69
+ description: data.description,
70
+ brand: data.brand,
71
+ price: data.price,
72
+ image: data.image,
73
+ stocks: data.stocks,
74
+ grip: data.grip,
75
+ noise: data.noise,
76
+ decibels: data.decibels,
77
+ consumption: data.consumption,
78
+ details: data.details,
79
+ })));
80
+ //# sourceMappingURL=scraper-response-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scraper-response-result.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-result.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,247 @@
1
+ import { z } from "zod/v4-mini";
2
+ /**
3
+ * Represents the response from a scraper, which can either be an error or a successful result.
4
+ *
5
+ * @author lengors
6
+ */
7
+ export declare const ScraperResponse: z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
8
+ code: z.ZodMiniEnum<{
9
+ specification_not_found: "specification_not_found";
10
+ invalid_input: "invalid_input";
11
+ input_missing: "input_missing";
12
+ compute_input: "compute_input";
13
+ compute_default_gates: "compute_default_gates";
14
+ compute_handler: "compute_handler";
15
+ handler_not_found: "handler_not_found";
16
+ compute_flat_expression: "compute_flat_expression";
17
+ compute_maps_expression: "compute_maps_expression";
18
+ compute_request: "compute_request";
19
+ compute_response: "compute_response";
20
+ compute_return: "compute_return";
21
+ }>;
22
+ specification_name: z.ZodMiniString<string>;
23
+ handler_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
24
+ message: z.ZodMiniOptional<z.ZodMiniString<string>>;
25
+ }, z.core.$strip>>, z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniObject<{
26
+ url: z.ZodMiniString<string>;
27
+ specification_name: z.ZodMiniString<string>;
28
+ description: z.ZodMiniString<string>;
29
+ brand: z.ZodMiniReadonly<z.ZodMiniObject<{
30
+ description: z.ZodMiniString<string>;
31
+ image: z.ZodMiniOptional<z.ZodMiniString<string>>;
32
+ }, z.core.$strip>>;
33
+ price: z.ZodMiniReadonly<z.ZodMiniObject<{
34
+ amount: z.ZodMiniString<string>;
35
+ unit: z.ZodMiniString<string>;
36
+ }, z.core.$strip>>;
37
+ image: z.ZodMiniOptional<z.ZodMiniString<string>>;
38
+ stocks: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniObject<{
39
+ availability: z.ZodMiniReadonly<z.ZodMiniObject<{
40
+ amount: z.ZodMiniNumberFormat;
41
+ modifier: z.ZodMiniEnum<{
42
+ exact: "exact";
43
+ at_least: "at_least";
44
+ at_most: "at_most";
45
+ }>;
46
+ }, z.core.$strip>>;
47
+ storage: z.ZodMiniOptional<z.ZodMiniString<string>>;
48
+ delivering_on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
49
+ value: z.iso.ZodMiniISODateTime;
50
+ grain: z.ZodMiniEnum<{
51
+ second: "second";
52
+ minute: "minute";
53
+ hour: "hour";
54
+ day: "day";
55
+ week: "week";
56
+ month: "month";
57
+ quarter: "quarter";
58
+ year: "year";
59
+ }>;
60
+ }, z.core.$strip>>, z.ZodMiniReadonly<z.ZodMiniObject<{
61
+ from: z.ZodMiniReadonly<z.ZodMiniObject<{
62
+ value: z.iso.ZodMiniISODateTime;
63
+ grain: z.ZodMiniEnum<{
64
+ second: "second";
65
+ minute: "minute";
66
+ hour: "hour";
67
+ day: "day";
68
+ week: "week";
69
+ month: "month";
70
+ quarter: "quarter";
71
+ year: "year";
72
+ }>;
73
+ }, z.core.$strip>>;
74
+ grain: z.ZodMiniReadonly<z.ZodMiniObject<{
75
+ value: z.iso.ZodMiniISODateTime;
76
+ grain: z.ZodMiniEnum<{
77
+ second: "second";
78
+ minute: "minute";
79
+ hour: "hour";
80
+ day: "day";
81
+ week: "week";
82
+ month: "month";
83
+ quarter: "quarter";
84
+ year: "year";
85
+ }>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>>]>>;
88
+ }, z.core.$strip>>, z.ZodMiniTransform<{
89
+ availability: Readonly<{
90
+ amount: number;
91
+ modifier: "exact" | "at_least" | "at_most";
92
+ }>;
93
+ storage: string | undefined;
94
+ deliveringOn: Readonly<{
95
+ value: string;
96
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
97
+ }> | Readonly<{
98
+ from: Readonly<{
99
+ value: string;
100
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
101
+ }>;
102
+ grain: Readonly<{
103
+ value: string;
104
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
105
+ }>;
106
+ }> | undefined;
107
+ }, Readonly<{
108
+ availability: Readonly<{
109
+ amount: number;
110
+ modifier: "exact" | "at_least" | "at_most";
111
+ }>;
112
+ storage?: string | undefined;
113
+ delivering_on?: Readonly<{
114
+ value: string;
115
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
116
+ }> | Readonly<{
117
+ from: Readonly<{
118
+ value: string;
119
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
120
+ }>;
121
+ grain: Readonly<{
122
+ value: string;
123
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
124
+ }>;
125
+ }> | undefined;
126
+ }>>>>>>;
127
+ grip: z.ZodMiniOptional<z.ZodMiniEnum<{
128
+ a: "a";
129
+ b: "b";
130
+ c: "c";
131
+ d: "d";
132
+ e: "e";
133
+ }>>;
134
+ noise: z.ZodMiniOptional<z.ZodMiniEnum<{
135
+ a: "a";
136
+ b: "b";
137
+ c: "c";
138
+ }>>;
139
+ decibels: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
140
+ consumption: z.ZodMiniOptional<z.ZodMiniEnum<{
141
+ a: "a";
142
+ b: "b";
143
+ c: "c";
144
+ d: "d";
145
+ e: "e";
146
+ }>>;
147
+ details: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
148
+ name: z.ZodMiniString<string>;
149
+ image: z.ZodMiniString<string>;
150
+ }, z.core.$strip>>, z.ZodMiniReadonly<z.ZodMiniObject<{
151
+ name: z.ZodMiniString<string>;
152
+ description: z.ZodMiniString<string>;
153
+ image: z.ZodMiniOptional<z.ZodMiniString<string>>;
154
+ }, z.core.$strip>>]>>>>;
155
+ }, z.core.$strip>>, z.ZodMiniTransform<{
156
+ url: string;
157
+ specificationName: string;
158
+ description: string;
159
+ brand: Readonly<{
160
+ description: string;
161
+ image?: string | undefined;
162
+ }>;
163
+ price: Readonly<{
164
+ amount: string;
165
+ unit: string;
166
+ }>;
167
+ image: string | undefined;
168
+ stocks: readonly {
169
+ availability: Readonly<{
170
+ amount: number;
171
+ modifier: "exact" | "at_least" | "at_most";
172
+ }>;
173
+ storage: string | undefined;
174
+ deliveringOn: Readonly<{
175
+ value: string;
176
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
177
+ }> | Readonly<{
178
+ from: Readonly<{
179
+ value: string;
180
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
181
+ }>;
182
+ grain: Readonly<{
183
+ value: string;
184
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
185
+ }>;
186
+ }> | undefined;
187
+ }[] | undefined;
188
+ grip: "a" | "b" | "c" | "d" | "e" | undefined;
189
+ noise: "a" | "b" | "c" | undefined;
190
+ decibels: number | undefined;
191
+ consumption: "a" | "b" | "c" | "d" | "e" | undefined;
192
+ details: readonly (Readonly<{
193
+ name: string;
194
+ image: string;
195
+ }> | Readonly<{
196
+ name: string;
197
+ description: string;
198
+ image?: string | undefined;
199
+ }>)[] | undefined;
200
+ }, Readonly<{
201
+ url: string;
202
+ specification_name: string;
203
+ description: string;
204
+ brand: Readonly<{
205
+ description: string;
206
+ image?: string | undefined;
207
+ }>;
208
+ price: Readonly<{
209
+ amount: string;
210
+ unit: string;
211
+ }>;
212
+ image?: string | undefined;
213
+ stocks?: readonly {
214
+ availability: Readonly<{
215
+ amount: number;
216
+ modifier: "exact" | "at_least" | "at_most";
217
+ }>;
218
+ storage: string | undefined;
219
+ deliveringOn: Readonly<{
220
+ value: string;
221
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
222
+ }> | Readonly<{
223
+ from: Readonly<{
224
+ value: string;
225
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
226
+ }>;
227
+ grain: Readonly<{
228
+ value: string;
229
+ grain: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
230
+ }>;
231
+ }> | undefined;
232
+ }[] | undefined;
233
+ grip?: "a" | "b" | "c" | "d" | "e" | undefined;
234
+ noise?: "a" | "b" | "c" | undefined;
235
+ decibels?: number | undefined;
236
+ consumption?: "a" | "b" | "c" | "d" | "e" | undefined;
237
+ details?: readonly (Readonly<{
238
+ name: string;
239
+ image: string;
240
+ }> | Readonly<{
241
+ name: string;
242
+ description: string;
243
+ image?: string | undefined;
244
+ }>)[] | undefined;
245
+ }>>>]>;
246
+ export type ScraperResponse = z.infer<typeof ScraperResponse>;
247
+ //# sourceMappingURL=scraper-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scraper-response.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAIhC;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;AAEL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScraperResponse = void 0;
4
+ const v4_mini_1 = require("zod/v4-mini");
5
+ const scraper_response_error_1 = require("./scraper-response-error");
6
+ const scraper_response_result_1 = require("./scraper-response-result");
7
+ /**
8
+ * Represents the response from a scraper, which can either be an error or a successful result.
9
+ *
10
+ * @author lengors
11
+ */
12
+ exports.ScraperResponse = v4_mini_1.z
13
+ .union([scraper_response_error_1.ScraperResponseError, scraper_response_result_1.ScraperResponseResult])
14
+ .register(v4_mini_1.z.globalRegistry, {
15
+ $schema: "http://json-schema.org/draft-07/schema",
16
+ id: "io/github/lengors/protoscout/domain/scrapers/models/scraper-response.json",
17
+ existingJavaType: "io.github.lengors.protoscout.domain.scrapers.models.ScraperResponse",
18
+ });
19
+ //# sourceMappingURL=scraper-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scraper-response.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response.ts"],"names":[],"mappings":";;;AAAA,yCAAgC;AAChC,qEAAgE;AAChE,uEAAkE;AAElE;;;;GAIG;AACU,QAAA,eAAe,GAAG,WAAC;KAC7B,KAAK,CAAC,CAAC,6CAAoB,EAAE,+CAAqB,CAAC,CAAC;KACpD,QAAQ,CAAC,WAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,2EAA2E;IAC/E,gBAAgB,EACd,qEAAqE;CACxE,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ export * from "./scraper-specification-data-payload";
2
+ export * from "./scraper-specification-defaults";
3
+ export * from "./scraper-specification-expression";
4
+ export * from "./scraper-specification-flat-action";
5
+ export * from "./scraper-specification-gates";
6
+ export * from "./scraper-specification-handler";
7
+ export * from "./scraper-specification-header-map";
8
+ export * from "./scraper-specification-jexl-specification";
9
+ export * from "./scraper-specification-json-payload";
10
+ export * from "./scraper-specification-map-action";
11
+ export * from "./scraper-specification-map";
12
+ export * from "./scraper-specification-payload-map";
13
+ export * from "./scraper-specification-request-action";
14
+ export * from "./scraper-specification-request-method";
15
+ export * from "./scraper-specification-request-parser";
16
+ export * from "./scraper-specification-request";
17
+ export * from "./scraper-specification-requirement-type";
18
+ export * from "./scraper-specification-requirement";
19
+ export * from "./scraper-specification-return-action";
20
+ export * from "./scraper-specification-return-brand";
21
+ export * from "./scraper-specification-return-descriptionless-detail";
22
+ export * from "./scraper-specification-return-descriptive-detail";
23
+ export * from "./scraper-specification-return-detail";
24
+ export * from "./scraper-specification-return-extract-stock";
25
+ export * from "./scraper-specification-return-flat-stock";
26
+ export * from "./scraper-specification-return";
27
+ export * from "./scraper-specification-settings";
28
+ export * from "./scraper-specification-url-parameter";
29
+ export * from "./scraper-specification-url";
30
+ export * from "./scraper-specification";
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uDAAuD,CAAC;AACtE,cAAc,mDAAmD,CAAC;AAClE,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC"}