@lengors/protoscout-schemas 2.1.0 → 2.1.1-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.
- package/dist/scrapers/index.js +21 -37
- package/dist/scrapers/index.js.map +1 -1
- package/dist/scrapers/scraper-inputs.d.ts +1 -1
- package/dist/scrapers/scraper-inputs.d.ts.map +1 -1
- package/dist/scrapers/scraper-inputs.js +4 -7
- package/dist/scrapers/scraper-inputs.js.map +1 -1
- package/dist/scrapers/scraper-profile.d.ts +1 -1
- package/dist/scrapers/scraper-profile.d.ts.map +1 -1
- package/dist/scrapers/scraper-profile.js +8 -11
- package/dist/scrapers/scraper-profile.js.map +1 -1
- package/dist/scrapers/scraper-request.d.ts +1 -1
- package/dist/scrapers/scraper-request.d.ts.map +1 -1
- package/dist/scrapers/scraper-request.js +10 -13
- package/dist/scrapers/scraper-request.js.map +1 -1
- package/dist/scrapers/scraper-response-error-code.d.ts +1 -1
- package/dist/scrapers/scraper-response-error-code.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-error-code.js +3 -6
- package/dist/scrapers/scraper-response-error-code.js.map +1 -1
- package/dist/scrapers/scraper-response-error.d.ts +1 -1
- package/dist/scrapers/scraper-response-error.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-error.js +9 -12
- package/dist/scrapers/scraper-response-error.js.map +1 -1
- package/dist/scrapers/scraper-response-result-brand.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-brand.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-brand.js +6 -9
- package/dist/scrapers/scraper-response-result-brand.js.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time-instant-grain.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-date-time-instant-grain.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time-instant-grain.js +3 -6
- package/dist/scrapers/scraper-response-result-date-time-instant-grain.js.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time-instant.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-date-time-instant.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time-instant.js +7 -10
- package/dist/scrapers/scraper-response-result-date-time-instant.js.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time-range.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-date-time-range.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time-range.js +7 -10
- package/dist/scrapers/scraper-response-result-date-time-range.js.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-date-time.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-date-time.js +7 -10
- package/dist/scrapers/scraper-response-result-date-time.js.map +1 -1
- package/dist/scrapers/scraper-response-result-descriptionless-detail.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-descriptionless-detail.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-descriptionless-detail.js +6 -9
- package/dist/scrapers/scraper-response-result-descriptionless-detail.js.map +1 -1
- package/dist/scrapers/scraper-response-result-descriptive-detail.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-descriptive-detail.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-descriptive-detail.js +7 -10
- package/dist/scrapers/scraper-response-result-descriptive-detail.js.map +1 -1
- package/dist/scrapers/scraper-response-result-detail.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-detail.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-detail.js +7 -10
- package/dist/scrapers/scraper-response-result-detail.js.map +1 -1
- package/dist/scrapers/scraper-response-result-grading.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-grading.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-grading.js +3 -6
- package/dist/scrapers/scraper-response-result-grading.js.map +1 -1
- package/dist/scrapers/scraper-response-result-noise-level.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-noise-level.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-noise-level.js +3 -6
- package/dist/scrapers/scraper-response-result-noise-level.js.map +1 -1
- package/dist/scrapers/scraper-response-result-price.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-price.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-price.js +6 -9
- package/dist/scrapers/scraper-response-result-price.js.map +1 -1
- package/dist/scrapers/scraper-response-result-quantity-modifier.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-quantity-modifier.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-quantity-modifier.js +3 -6
- package/dist/scrapers/scraper-response-result-quantity-modifier.js.map +1 -1
- package/dist/scrapers/scraper-response-result-quantity.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-quantity.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-quantity.js +7 -10
- package/dist/scrapers/scraper-response-result-quantity.js.map +1 -1
- package/dist/scrapers/scraper-response-result-stock.d.ts +1 -1
- package/dist/scrapers/scraper-response-result-stock.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result-stock.js +10 -13
- package/dist/scrapers/scraper-response-result-stock.js.map +1 -1
- package/dist/scrapers/scraper-response-result.d.ts +1 -1
- package/dist/scrapers/scraper-response-result.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result.js +27 -30
- package/dist/scrapers/scraper-response-result.js.map +1 -1
- package/dist/scrapers/scraper-response.d.ts +1 -1
- package/dist/scrapers/scraper-response.d.ts.map +1 -1
- package/dist/scrapers/scraper-response.js +6 -9
- package/dist/scrapers/scraper-response.js.map +1 -1
- package/dist/scrapers/specifications/index.js +30 -46
- package/dist/scrapers/specifications/index.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-data-payload.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-data-payload.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-data-payload.js +6 -9
- package/dist/scrapers/specifications/scraper-specification-data-payload.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-defaults.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-defaults.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-defaults.js +12 -15
- package/dist/scrapers/specifications/scraper-specification-defaults.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-expression.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-expression.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-expression.js +6 -9
- package/dist/scrapers/specifications/scraper-specification-expression.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-flat-action.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-flat-action.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-flat-action.js +6 -9
- package/dist/scrapers/specifications/scraper-specification-flat-action.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-gates.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-gates.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-gates.js +14 -17
- package/dist/scrapers/specifications/scraper-specification-gates.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-handler.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-handler.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-handler.js +19 -22
- package/dist/scrapers/specifications/scraper-specification-handler.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-header-map.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-header-map.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-header-map.js +5 -8
- package/dist/scrapers/specifications/scraper-specification-header-map.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-jexl-specification.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-jexl-specification.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-jexl-specification.js +5 -8
- package/dist/scrapers/specifications/scraper-specification-jexl-specification.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-json-payload.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-json-payload.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-json-payload.js +6 -9
- package/dist/scrapers/specifications/scraper-specification-json-payload.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-map-action.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-map-action.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-map-action.js +6 -9
- package/dist/scrapers/specifications/scraper-specification-map-action.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-map.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-map.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-map.js +8 -11
- package/dist/scrapers/specifications/scraper-specification-map.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-payload-map.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-payload-map.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-payload-map.js +5 -8
- package/dist/scrapers/specifications/scraper-specification-payload-map.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-action.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-action.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-action.js +8 -11
- package/dist/scrapers/specifications/scraper-specification-request-action.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-method.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-method.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-method.js +3 -6
- package/dist/scrapers/specifications/scraper-specification-request-method.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-parser.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-parser.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request-parser.js +3 -6
- package/dist/scrapers/specifications/scraper-specification-request-parser.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-request.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-request.js +18 -21
- package/dist/scrapers/specifications/scraper-specification-request.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-requirement-type.d.ts +2 -2
- package/dist/scrapers/specifications/scraper-specification-requirement-type.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-requirement-type.js +3 -6
- package/dist/scrapers/specifications/scraper-specification-requirement-type.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-requirement.d.ts +2 -2
- package/dist/scrapers/specifications/scraper-specification-requirement.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-requirement.js +8 -11
- package/dist/scrapers/specifications/scraper-specification-requirement.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-action.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-action.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-action.js +6 -9
- package/dist/scrapers/specifications/scraper-specification-return-action.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-brand.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-brand.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-brand.js +7 -10
- package/dist/scrapers/specifications/scraper-specification-return-brand.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.js +7 -10
- package/dist/scrapers/specifications/scraper-specification-return-descriptionless-detail.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.js +8 -11
- package/dist/scrapers/specifications/scraper-specification-return-descriptive-detail.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-detail.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-detail.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-detail.js +7 -10
- package/dist/scrapers/specifications/scraper-specification-return-detail.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-extract-stock.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-extract-stock.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-extract-stock.js +9 -12
- package/dist/scrapers/specifications/scraper-specification-return-extract-stock.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.js +8 -11
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-return.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return.js +26 -29
- package/dist/scrapers/specifications/scraper-specification-return.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-settings.d.ts +2 -2
- package/dist/scrapers/specifications/scraper-specification-settings.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-settings.js +16 -19
- package/dist/scrapers/specifications/scraper-specification-settings.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-url-parameter.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-url-parameter.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-url-parameter.js +7 -10
- package/dist/scrapers/specifications/scraper-specification-url-parameter.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-url.d.ts +1 -1
- package/dist/scrapers/specifications/scraper-specification-url.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-url.js +13 -16
- package/dist/scrapers/specifications/scraper-specification-url.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification.d.ts +2 -2
- package/dist/scrapers/specifications/scraper-specification.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification.js +11 -14
- package/dist/scrapers/specifications/scraper-specification.js.map +1 -1
- package/package.json +6 -7
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperResponseError } from "./scraper-response-error";
|
|
3
|
+
import { ScraperResponseResult } from "./scraper-response-result";
|
|
7
4
|
/**
|
|
8
5
|
* Represents the response from a scraper, which can either be an error or a successful result.
|
|
9
6
|
*
|
|
10
7
|
* @author lengors
|
|
11
8
|
*/
|
|
12
|
-
|
|
13
|
-
.union([
|
|
14
|
-
.register(
|
|
9
|
+
export const ScraperResponse = z
|
|
10
|
+
.union([ScraperResponseError, ScraperResponseResult])
|
|
11
|
+
.register(z.globalRegistry, {
|
|
15
12
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
16
13
|
id: "io/github/lengors/protoscout/domain/scrapers/models/scraper-response.json",
|
|
17
14
|
existingJavaType: "io.github.lengors.protoscout.domain.scrapers.models.ScraperResponse",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-response.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-response.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,KAAK,CAAC,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,CAAC;KACpD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,2EAA2E;IAC/E,gBAAgB,EACd,qEAAqE;CACxE,CAAC,CAAC"}
|
|
@@ -1,47 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
__exportStar(require("./scraper-specification-request-parser"), exports);
|
|
32
|
-
__exportStar(require("./scraper-specification-request"), exports);
|
|
33
|
-
__exportStar(require("./scraper-specification-requirement-type"), exports);
|
|
34
|
-
__exportStar(require("./scraper-specification-requirement"), exports);
|
|
35
|
-
__exportStar(require("./scraper-specification-return-action"), exports);
|
|
36
|
-
__exportStar(require("./scraper-specification-return-brand"), exports);
|
|
37
|
-
__exportStar(require("./scraper-specification-return-descriptionless-detail"), exports);
|
|
38
|
-
__exportStar(require("./scraper-specification-return-descriptive-detail"), exports);
|
|
39
|
-
__exportStar(require("./scraper-specification-return-detail"), exports);
|
|
40
|
-
__exportStar(require("./scraper-specification-return-extract-stock"), exports);
|
|
41
|
-
__exportStar(require("./scraper-specification-return-flat-stock"), exports);
|
|
42
|
-
__exportStar(require("./scraper-specification-return"), exports);
|
|
43
|
-
__exportStar(require("./scraper-specification-settings"), exports);
|
|
44
|
-
__exportStar(require("./scraper-specification-url-parameter"), exports);
|
|
45
|
-
__exportStar(require("./scraper-specification-url"), exports);
|
|
46
|
-
__exportStar(require("./scraper-specification"), exports);
|
|
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";
|
|
47
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-data-payload.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-data-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-data-payload.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-data-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;;kBAiBxC,CAAC;AAEL,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationDataPayload = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_payload_map_1 = require("./scraper-specification-payload-map");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationPayloadMap } from "./scraper-specification-payload-map";
|
|
6
3
|
/**
|
|
7
4
|
* Represents a data payload to be used by scraper's web request.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
data:
|
|
8
|
+
export const ScraperSpecificationDataPayload = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
data: ScraperSpecificationPayloadMap,
|
|
14
11
|
}))
|
|
15
|
-
.register(
|
|
12
|
+
.register(z.globalRegistry, {
|
|
16
13
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
17
14
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-data-payload.json",
|
|
18
15
|
title: "Scraper web request data payload.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-data-payload.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-data-payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-data-payload.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-data-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,8BAA8B;CACrC,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,4GAA4G;IAChH,KAAK,EAAE,mCAAmC;IAC1C,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EACN,oGAAoG;IACtG,cAAc,EAAE;QACd,gGAAgG;KACjG;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-defaults.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-defaults.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAK7B;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsBrC,CAAC;AAEL,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC"}
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const scraper_specification_url_1 = require("./scraper-specification-url");
|
|
6
|
-
const scraper_specification_header_map_1 = require("./scraper-specification-header-map");
|
|
7
|
-
const scraper_specification_expression_1 = require("./scraper-specification-expression");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationUrl } from "./scraper-specification-url";
|
|
3
|
+
import { ScraperSpecificationHeaderMap } from "./scraper-specification-header-map";
|
|
4
|
+
import { ScraperSpecificationExpression } from "./scraper-specification-expression";
|
|
8
5
|
/**
|
|
9
6
|
* Represents the default values to inject into the scraper context.
|
|
10
7
|
*
|
|
11
8
|
* @author lengors
|
|
12
9
|
*/
|
|
13
|
-
|
|
14
|
-
.readonly(
|
|
15
|
-
url:
|
|
16
|
-
headers:
|
|
17
|
-
gates:
|
|
18
|
-
.readonly(
|
|
19
|
-
.register(
|
|
10
|
+
export const ScraperSpecificationDefaults = z
|
|
11
|
+
.readonly(z.object({
|
|
12
|
+
url: ScraperSpecificationUrl,
|
|
13
|
+
headers: z.optional(ScraperSpecificationHeaderMap),
|
|
14
|
+
gates: z
|
|
15
|
+
.readonly(z.array(ScraperSpecificationExpression))
|
|
16
|
+
.register(z.globalRegistry, {
|
|
20
17
|
title: "Scraper's settings default gates.",
|
|
21
18
|
description: "List of gates initially injected into the scraper.",
|
|
22
19
|
}),
|
|
23
20
|
}))
|
|
24
|
-
.register(
|
|
21
|
+
.register(z.globalRegistry, {
|
|
25
22
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
26
23
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-defaults.json",
|
|
27
24
|
title: "Scraper default values.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-defaults.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-defaults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-defaults.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,uBAAuB;IAC5B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAClD,KAAK,EAAE,CAAC;SACL,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,KAAK,EAAE,mCAAmC;QAC1C,WAAW,EAAE,oDAAoD;KAClE,CAAC;CACL,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,wGAAwG;IAC5G,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EACN,iGAAiG;IACnG,cAAc,EAAE,CAAC,sBAAsB,CAAC;IACxC,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-expression.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-expression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-expression.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-expression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;oBAavC,CAAC;AAEL,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationExpression = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_jexl_specification_1 = require("./scraper-specification-jexl-specification");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationJexlExpression } from "./scraper-specification-jexl-specification";
|
|
6
3
|
/**
|
|
7
4
|
* Represents an expression to be used by scraper's computable properties.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
8
|
+
export const ScraperSpecificationExpression = z
|
|
12
9
|
.union([
|
|
13
|
-
|
|
10
|
+
z.string().register(z.globalRegistry, {
|
|
14
11
|
title: "Scraper's expression value.",
|
|
15
12
|
description: "Expression value to use on scraper computable properties.",
|
|
16
13
|
}),
|
|
17
|
-
|
|
14
|
+
ScraperSpecificationJexlExpression,
|
|
18
15
|
])
|
|
19
|
-
.register(
|
|
16
|
+
.register(z.globalRegistry, {
|
|
20
17
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
21
18
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-expression.json",
|
|
22
19
|
existingJavaType: "io.github.lengors.protoscout.domain.scrapers.specifications.models.ScraperSpecificationJexlExpression",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-expression.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-expression.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-expression.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-expression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAEhG;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC5C,KAAK,CAAC;IACL,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QACpC,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,2DAA2D;KACzE,CAAC;IACF,kCAAkC;CACnC,CAAC;KACD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,0GAA0G;IAC9G,gBAAgB,EACd,uGAAuG;CAC1G,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-flat-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-flat-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-flat-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-flat-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;kBAiBvC,CAAC;AAEL,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationFlatAction = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_jexl_specification_1 = require("./scraper-specification-jexl-specification");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationJexlExpression } from "./scraper-specification-jexl-specification";
|
|
6
3
|
/**
|
|
7
4
|
* Represents an action that flattens the result of a scraper specification.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
flattens:
|
|
8
|
+
export const ScraperSpecificationFlatAction = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
flattens: ScraperSpecificationJexlExpression,
|
|
14
11
|
}))
|
|
15
|
-
.register(
|
|
12
|
+
.register(z.globalRegistry, {
|
|
16
13
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
17
14
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-flat-action.json",
|
|
18
15
|
title: "Scraper specification handler's flatting action.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-flat-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-flat-action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-flat-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-flat-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAEhG;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC5C,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,kCAAkC;CAC7C,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,2GAA2G;IAC/G,KAAK,EAAE,kDAAkD;IACzD,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EACN,mGAAmG;IACrG,cAAc,EAAE;QACd,+FAA+F;KAChG;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-gates.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-gates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-gates.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-gates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;kBAoClC,CAAC;AAEL,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAC"}
|
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationGates = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_expression_1 = require("./scraper-specification-expression");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationExpression } from "./scraper-specification-expression";
|
|
6
3
|
/**
|
|
7
4
|
* Represents the gates for a scraper specification handler.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
opens:
|
|
14
|
-
.readonly(
|
|
15
|
-
.register(
|
|
8
|
+
export const ScraperSpecificationGates = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
opens: z.optional(z
|
|
11
|
+
.readonly(z.array(ScraperSpecificationExpression))
|
|
12
|
+
.register(z.globalRegistry, {
|
|
16
13
|
title: "Scraper's opening gates.",
|
|
17
14
|
description: "List of gates to open when the handler is applied.",
|
|
18
15
|
})),
|
|
19
|
-
closes:
|
|
20
|
-
.readonly(
|
|
21
|
-
.register(
|
|
16
|
+
closes: z.optional(z
|
|
17
|
+
.readonly(z.array(ScraperSpecificationExpression))
|
|
18
|
+
.register(z.globalRegistry, {
|
|
22
19
|
title: "Scraper's closing gates.",
|
|
23
20
|
description: "List of gates to close when the handler is applied.",
|
|
24
21
|
})),
|
|
25
|
-
requires:
|
|
26
|
-
.readonly(
|
|
27
|
-
.register(
|
|
22
|
+
requires: z
|
|
23
|
+
.readonly(z.array(ScraperSpecificationExpression))
|
|
24
|
+
.register(z.globalRegistry, {
|
|
28
25
|
title: "Scraper's required gates.",
|
|
29
26
|
description: "List of gates required for handler to be applicable.",
|
|
30
27
|
}),
|
|
31
28
|
}))
|
|
32
|
-
.register(
|
|
29
|
+
.register(z.globalRegistry, {
|
|
33
30
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
34
31
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-gates.json",
|
|
35
32
|
title: "Scraper's gates.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-gates.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-gates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-gates.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-gates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,QAAQ,CACf,CAAC;SACE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE,oDAAoD;KAClE,CAAC,CACL;IACD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC;SACE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE,qDAAqD;KACnE,CAAC,CACL;IACD,QAAQ,EAAE,CAAC;SACR,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,KAAK,EAAE,2BAA2B;QAClC,WAAW,EAAE,sDAAsD;KACpE,CAAC;CACL,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,qGAAqG;IACzG,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EACN,8FAA8F;IAChG,cAAc,EAAE,CAAC,sBAAsB,CAAC;IACxC,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-handler.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-handler.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAQ7B;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA+BpC,CAAC;AAEL,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const scraper_specification_map_action_1 = require("./scraper-specification-map-action");
|
|
9
|
-
const scraper_specification_request_action_1 = require("./scraper-specification-request-action");
|
|
10
|
-
const scraper_specification_return_action_1 = require("./scraper-specification-return-action");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationJexlExpression } from "./scraper-specification-jexl-specification";
|
|
3
|
+
import { ScraperSpecificationGates } from "./scraper-specification-gates";
|
|
4
|
+
import { ScraperSpecificationFlatAction } from "./scraper-specification-flat-action";
|
|
5
|
+
import { ScraperSpecificationMapAction } from "./scraper-specification-map-action";
|
|
6
|
+
import { ScraperSpecificationRequestAction } from "./scraper-specification-request-action";
|
|
7
|
+
import { ScraperSpecificationReturnAction } from "./scraper-specification-return-action";
|
|
11
8
|
/**
|
|
12
9
|
* Represents a handler used by scraper for handling current context.
|
|
13
10
|
*
|
|
14
11
|
* @author lengors
|
|
15
12
|
*/
|
|
16
|
-
|
|
17
|
-
.readonly(
|
|
18
|
-
name:
|
|
13
|
+
export const ScraperSpecificationHandler = z
|
|
14
|
+
.readonly(z.object({
|
|
15
|
+
name: z.string().register(z.globalRegistry, {
|
|
19
16
|
title: "Scraper's handler's name.",
|
|
20
17
|
description: "Name of scraper's handler.",
|
|
21
18
|
}),
|
|
22
|
-
matches:
|
|
23
|
-
gates:
|
|
24
|
-
action:
|
|
19
|
+
matches: z.optional(ScraperSpecificationJexlExpression),
|
|
20
|
+
gates: ScraperSpecificationGates,
|
|
21
|
+
action: z
|
|
25
22
|
.union([
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
ScraperSpecificationFlatAction,
|
|
24
|
+
ScraperSpecificationMapAction,
|
|
25
|
+
ScraperSpecificationRequestAction,
|
|
26
|
+
ScraperSpecificationReturnAction,
|
|
30
27
|
])
|
|
31
|
-
.register(
|
|
28
|
+
.register(z.globalRegistry, {
|
|
32
29
|
existingJavaType: "io.github.lengors.protoscout.domain.scrapers.specifications.models.ScraperSpecificationAction",
|
|
33
30
|
}),
|
|
34
31
|
}))
|
|
35
|
-
.register(
|
|
32
|
+
.register(z.globalRegistry, {
|
|
36
33
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
37
34
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-handler.json",
|
|
38
35
|
title: "Scraper specification handler.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-handler.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-handler.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1C,KAAK,EAAE,2BAA2B;QAClC,WAAW,EAAE,4BAA4B;KAC1C,CAAC;IACF,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IACvD,KAAK,EAAE,yBAAyB;IAChC,MAAM,EAAE,CAAC;SACN,KAAK,CAAC;QACL,8BAA8B;QAC9B,6BAA6B;QAC7B,iCAAiC;QACjC,gCAAgC;KACjC,CAAC;SACD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,gBAAgB,EACd,+FAA+F;KAClG,CAAC;CACL,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,uGAAuG;IAC3G,KAAK,EAAE,gCAAgC;IACvC,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EACN,gGAAgG;IAClG,cAAc,EAAE,CAAC,sBAAsB,CAAC;IACxC,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-header-map.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-header-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-header-map.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-header-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;sBAUtC,CAAC;AAEL,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationHeaderMap = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_expression_1 = require("./scraper-specification-expression");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationExpression } from "./scraper-specification-expression";
|
|
6
3
|
/**
|
|
7
4
|
* Represents a map of headers to be used by a scraper's web request.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
.register(
|
|
8
|
+
export const ScraperSpecificationHeaderMap = z
|
|
9
|
+
.readonly(z.record(z.string(), ScraperSpecificationExpression))
|
|
10
|
+
.register(z.globalRegistry, {
|
|
14
11
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
15
12
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-header-map.json",
|
|
16
13
|
title: "Scraper web request header map.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-header-map.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-header-map.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-header-map.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-header-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,8BAA8B,CAAC,CAAC;KAC9D,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,0GAA0G;IAC9G,KAAK,EAAE,iCAAiC;IACxC,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EACN,kGAAkG;IACpG,cAAc,EAAE,CAAC,sBAAsB,CAAC;CACzC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-jexl-specification.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-jexl-specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-jexl-specification.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-jexl-specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;kBAqB3C,CAAC;AAEL,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,CAAC"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScraperSpecificationJexlExpression = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
1
|
+
import { z } from "zod/mini";
|
|
5
2
|
/**
|
|
6
3
|
* Represents an expression used in a scraper specification, typically written in JEXL (Java Expression Language).
|
|
7
4
|
*
|
|
8
5
|
* @author lengors
|
|
9
6
|
*/
|
|
10
|
-
|
|
11
|
-
.readonly(
|
|
12
|
-
jexl:
|
|
7
|
+
export const ScraperSpecificationJexlExpression = z
|
|
8
|
+
.readonly(z.object({
|
|
9
|
+
jexl: z.string().register(z.globalRegistry, {
|
|
13
10
|
title: "Scraper's jexl expression.",
|
|
14
11
|
description: "A jexl expression used for some property of scraper.",
|
|
15
12
|
}),
|
|
16
13
|
}))
|
|
17
|
-
.register(
|
|
14
|
+
.register(z.globalRegistry, {
|
|
18
15
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
19
16
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-jexl-expression.json",
|
|
20
17
|
title: "Scraper specification JEXL expression.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-jexl-specification.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-jexl-specification.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-jexl-specification.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-jexl-specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1C,KAAK,EAAE,4BAA4B;QACnC,WAAW,EAAE,sDAAsD;KACpE,CAAC;CACH,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,+GAA+G;IACnH,KAAK,EAAE,wCAAwC;IAC/C,WAAW,EAAE,wDAAwD;IACrE,QAAQ,EACN,uGAAuG;IACzG,cAAc,EAAE;QACd,sBAAsB;QACtB,6EAA6E;KAC9E;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-json-payload.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-json-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-json-payload.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-json-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;;kBAiBxC,CAAC;AAEL,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC"}
|