@lengors/protoscout-schemas 2.2.0-dev.1 → 2.3.0-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/specifications/scraper-specification-return-detail-array.d.ts +5 -0
- package/dist/scrapers/specifications/scraper-specification-return-detail-array.d.ts.map +1 -0
- package/dist/scrapers/specifications/scraper-specification-return-detail-array.js +12 -0
- package/dist/scrapers/specifications/scraper-specification-return-detail-array.js.map +1 -0
- package/dist/scrapers/specifications/scraper-specification-return-flat-detail.d.ts +2 -2
- package/dist/scrapers/specifications/scraper-specification-return-flat-detail.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-flat-detail.js +2 -2
- package/dist/scrapers/specifications/scraper-specification-return-flat-detail.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.d.ts +2 -2
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.js +2 -2
- package/dist/scrapers/specifications/scraper-specification-return-flat-stock.js.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return-stock-array.d.ts +5 -0
- package/dist/scrapers/specifications/scraper-specification-return-stock-array.d.ts.map +1 -0
- package/dist/scrapers/specifications/scraper-specification-return-stock-array.js +12 -0
- package/dist/scrapers/specifications/scraper-specification-return-stock-array.js.map +1 -0
- package/dist/scrapers/specifications/scraper-specification-return.d.ts +2 -4
- package/dist/scrapers/specifications/scraper-specification-return.d.ts.map +1 -1
- package/dist/scrapers/specifications/scraper-specification-return.js +4 -14
- package/dist/scrapers/specifications/scraper-specification-return.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationReturnDetail } from "./scraper-specification-return-detail.js";
|
|
3
|
+
export declare const ScraperSpecificationReturnDetailArray: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<ScraperSpecificationReturnDetail, unknown, z.core.$ZodTypeInternals<ScraperSpecificationReturnDetail, unknown>>>>;
|
|
4
|
+
export type ScraperSpecificationReturnDetailArray = z.infer<typeof ScraperSpecificationReturnDetailArray>;
|
|
5
|
+
//# sourceMappingURL=scraper-specification-return-detail-array.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-detail-array.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-detail-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAE5F,eAAO,MAAM,qCAAqC,kKAS9C,CAAC;AAEL,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationReturnDetail } from "./scraper-specification-return-detail.js";
|
|
3
|
+
export const ScraperSpecificationReturnDetailArray = z
|
|
4
|
+
.readonly(z.array(ScraperSpecificationReturnDetail))
|
|
5
|
+
.register(z.globalRegistry, {
|
|
6
|
+
$schema: "http://json-schema.org/draft-07/schema",
|
|
7
|
+
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-return-detail-array.json",
|
|
8
|
+
title: "Scraper return detail data list.",
|
|
9
|
+
description: "List of detail data to be returned by scraper.",
|
|
10
|
+
existingJavaType: "java.util.List<io.github.lengors.protoscout.domain.scrapers.specifications.models.ScraperSpecificationReturnDetail>",
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=scraper-specification-return-detail-array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-detail-array.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-detail-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAE5F,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC;KACnD,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;KACnD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,mHAAmH;IACvH,KAAK,EAAE,kCAAkC;IACzC,WAAW,EAAE,gDAAgD;IAC7D,gBAAgB,EACd,qHAAqH;CACxH,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
import { ScraperSpecificationReturnDetail } from "./scraper-specification-return-detail.js";
|
|
3
2
|
import { ScraperSpecificationFlat } from "./scraper-specification-flat.js";
|
|
3
|
+
import { ScraperSpecificationReturnDetailArray } from "./scraper-specification-return-detail-array.js";
|
|
4
4
|
export interface ScraperSpecificationReturnFlatDetail {
|
|
5
5
|
readonly flattens: ScraperSpecificationFlat;
|
|
6
|
-
readonly extracts:
|
|
6
|
+
readonly extracts: ScraperSpecificationReturnDetailArray;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Represents a detail data specification to be returned by a scraper, including flattening of the detail data.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return-flat-detail.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-flat-detail.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG,MAAM,WAAW,oCAAoC;IACnD,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,QAAQ,EAAE,qCAAqC,CAAC;CAC1D;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAAC,oCAAoC,CAoB/F,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
import { ScraperSpecificationReturnDetail } from "./scraper-specification-return-detail.js";
|
|
3
2
|
import { ScraperSpecificationFlat } from "./scraper-specification-flat.js";
|
|
3
|
+
import { ScraperSpecificationReturnDetailArray } from "./scraper-specification-return-detail-array.js";
|
|
4
4
|
/**
|
|
5
5
|
* Represents a detail data specification to be returned by a scraper, including flattening of the detail data.
|
|
6
6
|
*
|
|
@@ -9,7 +9,7 @@ import { ScraperSpecificationFlat } from "./scraper-specification-flat.js";
|
|
|
9
9
|
export const ScraperSpecificationReturnFlatDetail = z
|
|
10
10
|
.readonly(z.object({
|
|
11
11
|
flattens: ScraperSpecificationFlat,
|
|
12
|
-
extracts: z.lazy(() =>
|
|
12
|
+
extracts: z.lazy(() => ScraperSpecificationReturnDetailArray),
|
|
13
13
|
}))
|
|
14
14
|
.register(z.globalRegistry, {
|
|
15
15
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return-flat-detail.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-flat-detail.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAOvG;;;;GAIG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAC/C,CAAC;KACE,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,wBAAwB;IAClC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;CAC9D,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,kHAAkH;IACtH,KAAK,EAAE,sCAAsC;IAC7C,WAAW,EACT,oEAAoE;IACtE,QAAQ,EACN,yGAAyG;IAC3G,cAAc,EAAE;QACd,qGAAqG;KACtG;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
import { ScraperSpecificationReturnStock } from "./scraper-specification-return-stock.js";
|
|
3
2
|
import { ScraperSpecificationFlat } from "./scraper-specification-flat.js";
|
|
3
|
+
import { ScraperSpecificationReturnStockArray } from "./scraper-specification-return-stock-array.js";
|
|
4
4
|
export interface ScraperSpecificationReturnFlatStock {
|
|
5
5
|
readonly flattens: ScraperSpecificationFlat;
|
|
6
|
-
readonly extracts:
|
|
6
|
+
readonly extracts: ScraperSpecificationReturnStockArray;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Represents a stock data specification to be returned by a scraper, including flattening of the stock data.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return-flat-stock.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-stock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-flat-stock.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-stock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,+CAA+C,CAAC;AAErG,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,QAAQ,EAAE,oCAAoC,CAAC;CACzD;AAED;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAAC,mCAAmC,CAoB7F,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
import { ScraperSpecificationReturnStock } from "./scraper-specification-return-stock.js";
|
|
3
2
|
import { ScraperSpecificationFlat } from "./scraper-specification-flat.js";
|
|
3
|
+
import { ScraperSpecificationReturnStockArray } from "./scraper-specification-return-stock-array.js";
|
|
4
4
|
/**
|
|
5
5
|
* Represents a stock data specification to be returned by a scraper, including flattening of the stock data.
|
|
6
6
|
*
|
|
@@ -9,7 +9,7 @@ import { ScraperSpecificationFlat } from "./scraper-specification-flat.js";
|
|
|
9
9
|
export const ScraperSpecificationReturnFlatStock = z
|
|
10
10
|
.readonly(z.object({
|
|
11
11
|
flattens: ScraperSpecificationFlat,
|
|
12
|
-
extracts: z.lazy(() =>
|
|
12
|
+
extracts: z.lazy(() => ScraperSpecificationReturnStockArray),
|
|
13
13
|
}))
|
|
14
14
|
.register(z.globalRegistry, {
|
|
15
15
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return-flat-stock.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-stock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-flat-stock.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-flat-stock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,+CAA+C,CAAC;AAOrG;;;;GAIG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAC9C,CAAC;KACE,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,wBAAwB;IAClC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;CAC7D,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,iHAAiH;IACrH,KAAK,EAAE,qCAAqC;IAC5C,WAAW,EACT,mEAAmE;IACrE,QAAQ,EACN,wGAAwG;IAC1G,cAAc,EAAE;QACd,oGAAoG;KACrG;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationReturnStock } from "./scraper-specification-return-stock.js";
|
|
3
|
+
export declare const ScraperSpecificationReturnStockArray: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<ScraperSpecificationReturnStock, unknown, z.core.$ZodTypeInternals<ScraperSpecificationReturnStock, unknown>>>>;
|
|
4
|
+
export type ScraperSpecificationReturnStockArray = z.infer<typeof ScraperSpecificationReturnStockArray>;
|
|
5
|
+
//# sourceMappingURL=scraper-specification-return-stock-array.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-stock-array.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-stock-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAE1F,eAAO,MAAM,oCAAoC,gKAS7C,CAAC;AAEL,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { ScraperSpecificationReturnStock } from "./scraper-specification-return-stock.js";
|
|
3
|
+
export const ScraperSpecificationReturnStockArray = z
|
|
4
|
+
.readonly(z.array(ScraperSpecificationReturnStock))
|
|
5
|
+
.register(z.globalRegistry, {
|
|
6
|
+
$schema: "http://json-schema.org/draft-07/schema",
|
|
7
|
+
id: "io/github/lengors/protoscout/domain/scrapers/specifications/models/scraper-specification-return-stock-array.json",
|
|
8
|
+
title: "Scraper return stock data list.",
|
|
9
|
+
description: "List of stock data to be returned by scraper.",
|
|
10
|
+
existingJavaType: "java.util.List<io.github.lengors.protoscout.domain.scrapers.specifications.models.ScraperSpecificationReturnStock>",
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=scraper-specification-return-stock-array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scraper-specification-return-stock-array.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return-stock-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAE1F,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,kHAAkH;IACtH,KAAK,EAAE,iCAAiC;IACxC,WAAW,EAAE,+CAA+C;IAC5D,gBAAgB,EACd,oHAAoH;CACvH,CAAC,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
import { ScraperSpecificationReturnDetail } from "./scraper-specification-return-detail.js";
|
|
3
|
-
import { ScraperSpecificationReturnStock } from "./scraper-specification-return-stock.js";
|
|
4
2
|
/**
|
|
5
3
|
* Represents a return data specification to be returned by a scraper.
|
|
6
4
|
*
|
|
@@ -24,7 +22,7 @@ export declare const ScraperSpecificationReturn: z.ZodMiniReadonly<z.ZodMiniObje
|
|
|
24
22
|
image: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
25
23
|
jexl: z.ZodMiniString<string>;
|
|
26
24
|
}, z.core.$strip>>]>>;
|
|
27
|
-
stocks: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<ScraperSpecificationReturnStock, unknown, z.core.$ZodTypeInternals<ScraperSpecificationReturnStock, unknown>>>>>;
|
|
25
|
+
stocks: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("./scraper-specification-return-stock.js").ScraperSpecificationReturnStock, unknown, z.core.$ZodTypeInternals<import("./scraper-specification-return-stock.js").ScraperSpecificationReturnStock, unknown>>>>>;
|
|
28
26
|
grip: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
29
27
|
jexl: z.ZodMiniString<string>;
|
|
30
28
|
}, z.core.$strip>>]>>;
|
|
@@ -37,7 +35,7 @@ export declare const ScraperSpecificationReturn: z.ZodMiniReadonly<z.ZodMiniObje
|
|
|
37
35
|
consumption: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
38
36
|
jexl: z.ZodMiniString<string>;
|
|
39
37
|
}, z.core.$strip>>]>>;
|
|
40
|
-
details: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<ScraperSpecificationReturnDetail, unknown, z.core.$ZodTypeInternals<ScraperSpecificationReturnDetail, unknown>>>>>;
|
|
38
|
+
details: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("./scraper-specification-return-detail.js").ScraperSpecificationReturnDetail, unknown, z.core.$ZodTypeInternals<import("./scraper-specification-return-detail.js").ScraperSpecificationReturnDetail, unknown>>>>>;
|
|
41
39
|
}, z.core.$strip>>;
|
|
42
40
|
export type ScraperSpecificationReturn = z.infer<typeof ScraperSpecificationReturn>;
|
|
43
41
|
//# sourceMappingURL=scraper-specification-return.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"scraper-specification-return.d.ts","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAM7B;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwBnC,CAAC;AAEL,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
2
|
import { ScraperSpecificationExpression } from "./scraper-specification-expression.js";
|
|
3
3
|
import { ScraperSpecificationReturnBrand } from "./scraper-specification-return-brand.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ScraperSpecificationReturnStockArray } from "./scraper-specification-return-stock-array.js";
|
|
5
|
+
import { ScraperSpecificationReturnDetailArray } from "./scraper-specification-return-detail-array.js";
|
|
6
6
|
/**
|
|
7
7
|
* Represents a return data specification to be returned by a scraper.
|
|
8
8
|
*
|
|
@@ -14,22 +14,12 @@ export const ScraperSpecificationReturn = z
|
|
|
14
14
|
brand: ScraperSpecificationReturnBrand,
|
|
15
15
|
price: ScraperSpecificationExpression,
|
|
16
16
|
image: z.optional(ScraperSpecificationExpression),
|
|
17
|
-
stocks: z.optional(
|
|
18
|
-
.readonly(z.array(ScraperSpecificationReturnStock))
|
|
19
|
-
.register(z.globalRegistry, {
|
|
20
|
-
title: "Scraper return stock data list.",
|
|
21
|
-
description: "List of stock data to be returned by scraper.",
|
|
22
|
-
})),
|
|
17
|
+
stocks: z.optional(ScraperSpecificationReturnStockArray),
|
|
23
18
|
grip: z.optional(ScraperSpecificationExpression),
|
|
24
19
|
noise: z.optional(ScraperSpecificationExpression),
|
|
25
20
|
decibels: z.optional(ScraperSpecificationExpression),
|
|
26
21
|
consumption: z.optional(ScraperSpecificationExpression),
|
|
27
|
-
details: z.optional(
|
|
28
|
-
.readonly(z.array(ScraperSpecificationReturnDetail))
|
|
29
|
-
.register(z.globalRegistry, {
|
|
30
|
-
title: "Scraper return detail data list.",
|
|
31
|
-
description: "List of detail data to be returned by scraper.",
|
|
32
|
-
})),
|
|
22
|
+
details: z.optional(ScraperSpecificationReturnDetailArray),
|
|
33
23
|
}))
|
|
34
24
|
.register(z.globalRegistry, {
|
|
35
25
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-specification-return.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"scraper-specification-return.js","sourceRoot":"","sources":["../../../src/main/ts/scrapers/specifications/scraper-specification-return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,oCAAoC,EAAE,MAAM,+CAA+C,CAAC;AACrG,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,QAAQ,CACP,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,8BAA8B;IAC3C,KAAK,EAAE,+BAA+B;IACtC,KAAK,EAAE,8BAA8B;IACrC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAChD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACjD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACpD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACvD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CAC3D,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,sGAAsG;IAC1G,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EACN,+FAA+F;IACjG,cAAc,EAAE,CAAC,sBAAsB,CAAC;IACxC,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC"}
|