@lengors/protoscout-schemas 2.0.0-dev.1 → 2.1.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationJsonPayload = 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 json payload to be used by scraper's web request.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
json:
|
|
8
|
+
export const ScraperSpecificationJsonPayload = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
json: 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-json-payload.json",
|
|
18
15
|
title: "Scraper web request JSON payload.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-json-payload.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-json-payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-json-payload.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-json-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-map-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-map-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;;kBAiBtC,CAAC;AAEL,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationMapAction = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_map_1 = require("./scraper-specification-map");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationMap } from "./scraper-specification-map";
|
|
6
3
|
/**
|
|
7
4
|
* Represents a mapping action performed by a scraper specification handler.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
maps:
|
|
8
|
+
export const ScraperSpecificationMapAction = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
maps: ScraperSpecificationMap,
|
|
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-map-action.json",
|
|
18
15
|
title: "Scraper specification handler's mapping action.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-map-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map-action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-map-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,uBAAuB;CAC9B,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,0GAA0G;IAC9G,KAAK,EAAE,iDAAiD;IACxD,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EACN,kGAAkG;IACpG,cAAc,EAAE;QACd,+FAA+F;KAChG;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-map.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-map.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;sBAehC,CAAC;AAEL,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationMap = 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 a mapping of expressions used in a scraper specification.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
8
|
+
export const ScraperSpecificationMap = z
|
|
12
9
|
.union([
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.readonly(
|
|
16
|
-
.register(
|
|
10
|
+
ScraperSpecificationJexlExpression,
|
|
11
|
+
z
|
|
12
|
+
.readonly(z.array(ScraperSpecificationJexlExpression))
|
|
13
|
+
.register(z.globalRegistry, {
|
|
17
14
|
title: "Scraper specification handler's mapping expressions.",
|
|
18
15
|
description: "List of mapping expressions to perform and zip together.",
|
|
19
16
|
}),
|
|
20
17
|
])
|
|
21
|
-
.register(
|
|
18
|
+
.register(z.globalRegistry, {
|
|
22
19
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
23
20
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-map.json",
|
|
24
21
|
existingJavaType: "java.util.List<io.github.lengors.protoscout.domain.scrapers.specifications.models.ScraperSpecificationJexlExpression>",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-map.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-map.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-map.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,uBAAuB,GAAG,CAAC;KACrC,KAAK,CAAC;IACL,kCAAkC;IAClC,CAAC;SACE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;SACrD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,KAAK,EAAE,sDAAsD;QAC7D,WAAW,EAAE,0DAA0D;KACxE,CAAC;CACL,CAAC;KACD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,mGAAmG;IACvG,gBAAgB,EACd,uHAAuH;CAC1H,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-payload-map.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-payload-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-payload-map.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-payload-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;sBAUvC,CAAC;AAEL,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationPayloadMap = 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 payload map 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 ScraperSpecificationPayloadMap = 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-payload-map.json",
|
|
16
13
|
title: "Scraper web request payload.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-payload-map.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-payload-map.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-payload-map.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-payload-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,8BAA8B,GAAG,CAAC;KAC5C,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,2GAA2G;IAC/G,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,8CAA8C;IAC3D,QAAQ,EACN,mGAAmG;IACrG,cAAc,EAAE,CAAC,sBAAsB,CAAC;CACzC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-request-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAI7B;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkB1C,CAAC;AAEL,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_map_1 = require("./scraper-specification-map");
|
|
6
|
-
const scraper_specification_request_1 = require("./scraper-specification-request");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationMap } from "./scraper-specification-map";
|
|
3
|
+
import { ScraperSpecificationRequest } from "./scraper-specification-request";
|
|
7
4
|
/**
|
|
8
5
|
* Represents a web request action to be used by scraper's handler.
|
|
9
6
|
*
|
|
10
7
|
* @author lengors
|
|
11
8
|
*/
|
|
12
|
-
|
|
13
|
-
.readonly(
|
|
14
|
-
requests:
|
|
15
|
-
maps:
|
|
9
|
+
export const ScraperSpecificationRequestAction = z
|
|
10
|
+
.readonly(z.object({
|
|
11
|
+
requests: ScraperSpecificationRequest,
|
|
12
|
+
maps: z.optional(ScraperSpecificationMap),
|
|
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-request-action.json",
|
|
20
17
|
title: "Scraper specification handler's request action.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-request-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,2BAA2B;IACrC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CAC1C,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,8GAA8G;IAClH,KAAK,EAAE,iDAAiD;IACxD,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EACN,sGAAsG;IACxG,cAAc,EAAE;QACd,+FAA+F;KAChG;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request-method.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-request-method.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;EAS1C,CAAC;AAEL,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScraperSpecificationRequestMethod = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
1
|
+
import { z } from "zod/mini";
|
|
5
2
|
/**
|
|
6
3
|
* Represents a request HTTP method used by a scraper.
|
|
7
4
|
*
|
|
8
5
|
* @author lengors
|
|
9
6
|
*/
|
|
10
|
-
|
|
7
|
+
export const ScraperSpecificationRequestMethod = z
|
|
11
8
|
.enum(["get", "head", "post", "put", "delete", "patch"])
|
|
12
|
-
.register(
|
|
9
|
+
.register(z.globalRegistry, {
|
|
13
10
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
14
11
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-request-method.json",
|
|
15
12
|
title: "Scraper's request HTTP method.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request-method.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-method.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-request-method.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KACvD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,8GAA8G;IAClH,KAAK,EAAE,gCAAgC;IACvC,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EACN,sGAAsG;CACzG,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request-parser.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-request-parser.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;EAS1C,CAAC;AAEL,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScraperSpecificationRequestParser = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
1
|
+
import { z } from "zod/mini";
|
|
5
2
|
/**
|
|
6
3
|
* Represents a parser for the response of a scraper's request.
|
|
7
4
|
*
|
|
8
5
|
* @author lengors
|
|
9
6
|
*/
|
|
10
|
-
|
|
7
|
+
export const ScraperSpecificationRequestParser = z
|
|
11
8
|
.enum(["html", "json", "text"])
|
|
12
|
-
.register(
|
|
9
|
+
.register(z.globalRegistry, {
|
|
13
10
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
14
11
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-request-parser.json",
|
|
15
12
|
title: "Scraper's request response parser.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request-parser.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-parser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-request-parser.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;KAC9B,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,8GAA8G;IAClH,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EACN,sGAAsG;CACzG,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-request.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAQ7B;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6BpC,CAAC;AAEL,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const scraper_specification_data_payload_1 = require("./scraper-specification-data-payload");
|
|
9
|
-
const scraper_specification_json_payload_1 = require("./scraper-specification-json-payload");
|
|
10
|
-
const scraper_specification_request_parser_1 = require("./scraper-specification-request-parser");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationUrl } from "./scraper-specification-url";
|
|
3
|
+
import { ScraperSpecificationRequestMethod } from "./scraper-specification-request-method";
|
|
4
|
+
import { ScraperSpecificationHeaderMap } from "./scraper-specification-header-map";
|
|
5
|
+
import { ScraperSpecificationDataPayload } from "./scraper-specification-data-payload";
|
|
6
|
+
import { ScraperSpecificationJsonPayload } from "./scraper-specification-json-payload";
|
|
7
|
+
import { ScraperSpecificationRequestParser } from "./scraper-specification-request-parser";
|
|
11
8
|
/**
|
|
12
9
|
* Represents a web request specification to be used by scraper's handler.
|
|
13
10
|
*
|
|
14
11
|
* @author lengors
|
|
15
12
|
*/
|
|
16
|
-
|
|
17
|
-
.readonly(
|
|
18
|
-
url:
|
|
19
|
-
method:
|
|
20
|
-
headers:
|
|
21
|
-
payload:
|
|
13
|
+
export const ScraperSpecificationRequest = z
|
|
14
|
+
.readonly(z.object({
|
|
15
|
+
url: ScraperSpecificationUrl,
|
|
16
|
+
method: ScraperSpecificationRequestMethod,
|
|
17
|
+
headers: z.optional(ScraperSpecificationHeaderMap),
|
|
18
|
+
payload: z.optional(z
|
|
22
19
|
.union([
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
ScraperSpecificationDataPayload,
|
|
21
|
+
ScraperSpecificationJsonPayload,
|
|
25
22
|
])
|
|
26
|
-
.register(
|
|
23
|
+
.register(z.globalRegistry, {
|
|
27
24
|
existingJavaType: "io.github.lengors.protoscout.domain.scrapers.specifications.models.ScraperSpecificationPayload",
|
|
28
25
|
})),
|
|
29
|
-
parser:
|
|
26
|
+
parser: ScraperSpecificationRequestParser,
|
|
30
27
|
}))
|
|
31
|
-
.register(
|
|
28
|
+
.register(z.globalRegistry, {
|
|
32
29
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
33
30
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-request.json",
|
|
34
31
|
title: "Scraper web request specification.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-request.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-request.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,uBAAuB;IAC5B,MAAM,EAAE,iCAAiC;IACzC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,QAAQ,CACjB,CAAC;SACE,KAAK,CAAC;QACL,+BAA+B;QAC/B,+BAA+B;KAChC,CAAC;SACD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,gBAAgB,EACd,gGAAgG;KACnG,CAAC,CACL;IACD,MAAM,EAAE,iCAAiC;CAC1C,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,uGAAuG;IAC3G,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EACN,gGAAgG;IAClG,cAAc,EAAE,CAAC,sBAAsB,CAAC;IACxC,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { z } from "zod/
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
2
|
/**
|
|
3
3
|
* Represents a requirement type for a scraper's specification.
|
|
4
4
|
*
|
|
5
5
|
* @author lengors
|
|
6
6
|
*/
|
|
7
7
|
export declare const ScraperSpecificationRequirementType: z.ZodMiniEnum<{
|
|
8
|
-
email: "email";
|
|
9
8
|
text: "text";
|
|
10
9
|
password: "password";
|
|
10
|
+
email: "email";
|
|
11
11
|
}>;
|
|
12
12
|
export type ScraperSpecificationRequirementType = z.infer<typeof ScraperSpecificationRequirementType>;
|
|
13
13
|
//# sourceMappingURL=scraper-specification-requirement-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-requirement-type.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-requirement-type.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;;;;EAS5C,CAAC;AAEL,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAC"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScraperSpecificationRequirementType = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
1
|
+
import { z } from "zod/mini";
|
|
5
2
|
/**
|
|
6
3
|
* Represents a requirement type for a scraper's specification.
|
|
7
4
|
*
|
|
8
5
|
* @author lengors
|
|
9
6
|
*/
|
|
10
|
-
|
|
7
|
+
export const ScraperSpecificationRequirementType = z
|
|
11
8
|
.enum(["text", "password", "email"])
|
|
12
|
-
.register(
|
|
9
|
+
.register(z.globalRegistry, {
|
|
13
10
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
14
11
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-requirement-type.json",
|
|
15
12
|
title: "Scraper's requirement type.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-requirement-type.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-requirement-type.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC;KACjD,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;KACnC,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,gHAAgH;IACpH,KAAK,EAAE,6BAA6B;IACpC,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EACN,wGAAwG;CAC3G,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod/
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
2
|
/**
|
|
3
3
|
* Represents a requirement for a scraper's specification.
|
|
4
4
|
*
|
|
@@ -7,9 +7,9 @@ import { z } from "zod/v4-mini";
|
|
|
7
7
|
export declare const ScraperSpecificationRequirement: z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
8
8
|
name: z.ZodMiniString<string>;
|
|
9
9
|
type: z.ZodMiniEnum<{
|
|
10
|
-
email: "email";
|
|
11
10
|
text: "text";
|
|
12
11
|
password: "password";
|
|
12
|
+
email: "email";
|
|
13
13
|
}>;
|
|
14
14
|
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
15
15
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-requirement.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-requirement.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;kBA0BxC,CAAC;AAEL,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC"}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationRequirement = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_requirement_type_1 = require("./scraper-specification-requirement-type");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationRequirementType } from "./scraper-specification-requirement-type";
|
|
6
3
|
/**
|
|
7
4
|
* Represents a requirement for a scraper's specification.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
name:
|
|
8
|
+
export const ScraperSpecificationRequirement = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
name: z.string().register(z.globalRegistry, {
|
|
14
11
|
title: "Scraper's requirement name.",
|
|
15
12
|
description: "Name of requirement for scraper.",
|
|
16
13
|
}),
|
|
17
|
-
type:
|
|
18
|
-
default:
|
|
14
|
+
type: ScraperSpecificationRequirementType,
|
|
15
|
+
default: z.optional(z.string().register(z.globalRegistry, {
|
|
19
16
|
title: "Scraper's requirement default value.",
|
|
20
17
|
description: "Default value to fill requirement with, if not specified.",
|
|
21
18
|
})),
|
|
22
19
|
}))
|
|
23
|
-
.register(
|
|
20
|
+
.register(z.globalRegistry, {
|
|
24
21
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
25
22
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-requirement.json",
|
|
26
23
|
title: "Scraper specification's requirement.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-requirement.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-requirement.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAE/F;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1C,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,kCAAkC;KAChD,CAAC;IACF,IAAI,EAAE,mCAAmC;IACzC,OAAO,EAAE,CAAC,CAAC,QAAQ,CACjB,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QACpC,KAAK,EAAE,sCAAsC;QAC7C,WAAW,EACT,2DAA2D;KAC9D,CAAC,CACH;CACF,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,2GAA2G;IAC/G,KAAK,EAAE,sCAAsC;IAC7C,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EACN,oGAAoG;IACtG,cAAc,EAAE,CAAC,sBAAsB,CAAC;IACxC,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-action.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBzC,CAAC;AAEL,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationReturnAction = void 0;
|
|
4
|
-
const v4_mini_1 = require("zod/v4-mini");
|
|
5
|
-
const scraper_specification_return_1 = require("./scraper-specification-return");
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationReturn } from "./scraper-specification-return";
|
|
6
3
|
/**
|
|
7
4
|
* Represents a returning action performed by a scraper specification handler.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
returns:
|
|
8
|
+
export const ScraperSpecificationReturnAction = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
returns: ScraperSpecificationReturn,
|
|
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-return-action.json",
|
|
18
15
|
title: "Scraper specification handler's returning action.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-action.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,0BAA0B;CACpC,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,6GAA6G;IACjH,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EACN,qGAAqG;IACvG,cAAc,EAAE;QACd,+FAA+F;KAChG;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return-brand.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-brand.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;;;;;kBAgBxC,CAAC;AAEL,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScraperSpecificationReturnBrand = 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 brand data specification to be returned by a scraper.
|
|
8
5
|
*
|
|
9
6
|
* @author lengors
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
.readonly(
|
|
13
|
-
description:
|
|
14
|
-
image:
|
|
8
|
+
export const ScraperSpecificationReturnBrand = z
|
|
9
|
+
.readonly(z.object({
|
|
10
|
+
description: ScraperSpecificationExpression,
|
|
11
|
+
image: z.optional(ScraperSpecificationExpression),
|
|
15
12
|
}))
|
|
16
|
-
.register(
|
|
13
|
+
.register(z.globalRegistry, {
|
|
17
14
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
18
15
|
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-return-brand.json",
|
|
19
16
|
title: "Scraper return brand data.",
|