@lengors/protoscout-schemas 2.1.4-dev.2 → 2.1.5-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/scraper-response-error.d.ts +12 -2
- package/dist/scrapers/scraper-response-error.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-error.js +17 -2
- package/dist/scrapers/scraper-response-error.js.map +1 -1
- package/dist/scrapers/scraper-response-result.d.ts +8 -8
- package/dist/scrapers/scraper-response-result.d.ts.map +1 -1
- package/dist/scrapers/scraper-response-result.js +15 -14
- package/dist/scrapers/scraper-response-result.js.map +1 -1
- package/dist/scrapers/scraper-response.d.ts +20 -10
- package/dist/scrapers/scraper-response.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { z } from "zod/mini";
|
|
|
4
4
|
*
|
|
5
5
|
* @author lengors
|
|
6
6
|
*/
|
|
7
|
-
export declare const ScraperResponseError: z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
7
|
+
export declare const ScraperResponseError: z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
8
8
|
code: z.ZodMiniEnum<{
|
|
9
9
|
specification_not_found: "specification_not_found";
|
|
10
10
|
invalid_input: "invalid_input";
|
|
@@ -22,6 +22,16 @@ export declare const ScraperResponseError: z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
|
22
22
|
specification_name: z.ZodMiniString<string>;
|
|
23
23
|
handler_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
24
24
|
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
25
|
-
}, z.core.$strip
|
|
25
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
26
|
+
code: "specification_not_found" | "invalid_input" | "input_missing" | "compute_input" | "compute_default_gates" | "compute_handler" | "handler_not_found" | "compute_flat_expression" | "compute_maps_expression" | "compute_request" | "compute_response" | "compute_return";
|
|
27
|
+
message?: string | undefined;
|
|
28
|
+
specificationName: string;
|
|
29
|
+
handlerName: string | undefined;
|
|
30
|
+
}, Readonly<{
|
|
31
|
+
code: "specification_not_found" | "invalid_input" | "input_missing" | "compute_input" | "compute_default_gates" | "compute_handler" | "handler_not_found" | "compute_flat_expression" | "compute_maps_expression" | "compute_request" | "compute_response" | "compute_return";
|
|
32
|
+
specification_name: string;
|
|
33
|
+
handler_name?: string | undefined;
|
|
34
|
+
message?: string | undefined;
|
|
35
|
+
}>>>;
|
|
26
36
|
export type ScraperResponseError = z.infer<typeof ScraperResponseError>;
|
|
27
37
|
//# sourceMappingURL=scraper-response-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-response-error.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"scraper-response-error.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+ChC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { z } from "zod/mini";
|
|
2
13
|
import { ScraperResponseErrorCode } from "./scraper-response-error-code.js";
|
|
3
14
|
/**
|
|
@@ -5,7 +16,7 @@ import { ScraperResponseErrorCode } from "./scraper-response-error-code.js";
|
|
|
5
16
|
*
|
|
6
17
|
* @author lengors
|
|
7
18
|
*/
|
|
8
|
-
export const ScraperResponseError = z
|
|
19
|
+
export const ScraperResponseError = z.pipe(z
|
|
9
20
|
.readonly(z.object({
|
|
10
21
|
code: ScraperResponseErrorCode,
|
|
11
22
|
["specification_name"]: z.string().register(z.globalRegistry, {
|
|
@@ -31,5 +42,9 @@ export const ScraperResponseError = z
|
|
|
31
42
|
"io.github.lengors.protoscout.domain.scrapers.models.ScraperResponse",
|
|
32
43
|
],
|
|
33
44
|
additionalProperties: false,
|
|
34
|
-
})
|
|
45
|
+
}), z.transform((_a) => {
|
|
46
|
+
var { specification_name: specificationName, handler_name: handlerName } = _a, data = __rest(_a, ["specification_name", "handler_name"]);
|
|
47
|
+
return (Object.assign({ specificationName,
|
|
48
|
+
handlerName }, data));
|
|
49
|
+
}));
|
|
35
50
|
//# sourceMappingURL=scraper-response-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-response-error.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"scraper-response-error.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-error.ts"],"names":[],"mappings":";;;;;;;;;;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AiB;QACjB,WAAW,IACR,IAAI,EACP,CAAA;CAAA,CACH,CACF,CAAC"}
|
|
@@ -136,7 +136,6 @@ export declare const ScraperResponseResult: z.ZodMiniPipe<z.ZodMiniReadonly<z.Zo
|
|
|
136
136
|
}, z.core.$strip>>]>>>>;
|
|
137
137
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
138
138
|
url: string;
|
|
139
|
-
specificationName: string;
|
|
140
139
|
description: string;
|
|
141
140
|
brand: Readonly<{
|
|
142
141
|
description: string;
|
|
@@ -146,8 +145,8 @@ export declare const ScraperResponseResult: z.ZodMiniPipe<z.ZodMiniReadonly<z.Zo
|
|
|
146
145
|
amount: number;
|
|
147
146
|
unit: string;
|
|
148
147
|
}>;
|
|
149
|
-
image
|
|
150
|
-
stocks
|
|
148
|
+
image?: string | undefined;
|
|
149
|
+
stocks?: readonly {
|
|
151
150
|
availability: Readonly<{
|
|
152
151
|
amount: number;
|
|
153
152
|
modifier: "exact" | "at_least" | "at_most";
|
|
@@ -167,11 +166,11 @@ export declare const ScraperResponseResult: z.ZodMiniPipe<z.ZodMiniReadonly<z.Zo
|
|
|
167
166
|
}>;
|
|
168
167
|
}> | undefined;
|
|
169
168
|
}[] | undefined;
|
|
170
|
-
grip
|
|
171
|
-
noise
|
|
172
|
-
decibels
|
|
173
|
-
consumption
|
|
174
|
-
details
|
|
169
|
+
grip?: "a" | "b" | "c" | "d" | "e" | undefined;
|
|
170
|
+
noise?: "a" | "b" | "c" | undefined;
|
|
171
|
+
decibels?: number | undefined;
|
|
172
|
+
consumption?: "a" | "b" | "c" | "d" | "e" | undefined;
|
|
173
|
+
details?: readonly (Readonly<{
|
|
175
174
|
name: string;
|
|
176
175
|
image: string;
|
|
177
176
|
}> | Readonly<{
|
|
@@ -179,6 +178,7 @@ export declare const ScraperResponseResult: z.ZodMiniPipe<z.ZodMiniReadonly<z.Zo
|
|
|
179
178
|
description: string;
|
|
180
179
|
image?: string | undefined;
|
|
181
180
|
}>)[] | undefined;
|
|
181
|
+
specificationName: string;
|
|
182
182
|
}, Readonly<{
|
|
183
183
|
url: string;
|
|
184
184
|
specification_name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-response-result.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAQ7B;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"scraper-response-result.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAQ7B;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoEjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { z } from "zod/mini";
|
|
2
13
|
import { ScraperResponseResultBrand } from "./scraper-response-result-brand.js";
|
|
3
14
|
import { ScraperResponseResultPrice } from "./scraper-response-result-price.js";
|
|
@@ -60,18 +71,8 @@ export const ScraperResponseResult = z.pipe(z
|
|
|
60
71
|
"io.github.lengors.protoscout.domain.scrapers.models.ScraperResponse",
|
|
61
72
|
],
|
|
62
73
|
additionalProperties: false,
|
|
63
|
-
}), z.transform((
|
|
64
|
-
|
|
65
|
-
specificationName
|
|
66
|
-
|
|
67
|
-
brand: data.brand,
|
|
68
|
-
price: data.price,
|
|
69
|
-
image: data.image,
|
|
70
|
-
stocks: data.stocks,
|
|
71
|
-
grip: data.grip,
|
|
72
|
-
noise: data.noise,
|
|
73
|
-
decibels: data.decibels,
|
|
74
|
-
consumption: data.consumption,
|
|
75
|
-
details: data.details,
|
|
76
|
-
})));
|
|
74
|
+
}), z.transform((_a) => {
|
|
75
|
+
var { specification_name: specificationName } = _a, data = __rest(_a, ["specification_name"]);
|
|
76
|
+
return (Object.assign({ specificationName }, data));
|
|
77
|
+
}));
|
|
77
78
|
//# sourceMappingURL=scraper-response-result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-response-result.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EA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AAC,CAAC,CAAC,cAAc,EAAE;QAC1B,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,yCAAyC;KACvD,CAAC,CACL;IACD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAClB,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QACnC,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,iDAAiD;KAC/D,CAAC,CACH;IACD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACrD,OAAO,EAAE,CAAC,CAAC,QAAQ,CACjB,CAAC;SACE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;QAC1B,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE,0CAA0C;KACxD,CAAC,CACL;CACF,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE;IAC1B,OAAO,EAAE,wCAAwC;IACjD,EAAE,EAAE,kFAAkF;IACtF,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EACN,2EAA2E;IAC7E,cAAc,EAAE;QACd,qEAAqE;KACtE;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC,EACJ,CAAC,CAAC,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"scraper-response-result.js","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response-result.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,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nion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
7
|
+
export declare const ScraperResponse: z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
8
8
|
code: z.ZodMiniEnum<{
|
|
9
9
|
specification_not_found: "specification_not_found";
|
|
10
10
|
invalid_input: "invalid_input";
|
|
@@ -22,7 +22,17 @@ export declare const ScraperResponse: z.ZodMiniUnion<readonly [z.ZodMiniReadonly
|
|
|
22
22
|
specification_name: z.ZodMiniString<string>;
|
|
23
23
|
handler_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
24
24
|
message: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
25
|
-
}, z.core.$strip>>, z.
|
|
25
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
26
|
+
code: "specification_not_found" | "invalid_input" | "input_missing" | "compute_input" | "compute_default_gates" | "compute_handler" | "handler_not_found" | "compute_flat_expression" | "compute_maps_expression" | "compute_request" | "compute_response" | "compute_return";
|
|
27
|
+
message?: string | undefined;
|
|
28
|
+
specificationName: string;
|
|
29
|
+
handlerName: string | undefined;
|
|
30
|
+
}, Readonly<{
|
|
31
|
+
code: "specification_not_found" | "invalid_input" | "input_missing" | "compute_input" | "compute_default_gates" | "compute_handler" | "handler_not_found" | "compute_flat_expression" | "compute_maps_expression" | "compute_request" | "compute_response" | "compute_return";
|
|
32
|
+
specification_name: string;
|
|
33
|
+
handler_name?: string | undefined;
|
|
34
|
+
message?: string | undefined;
|
|
35
|
+
}>>>, z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
26
36
|
url: z.ZodMiniString<string>;
|
|
27
37
|
specification_name: z.ZodMiniString<string>;
|
|
28
38
|
description: z.ZodMiniString<string>;
|
|
@@ -154,7 +164,6 @@ export declare const ScraperResponse: z.ZodMiniUnion<readonly [z.ZodMiniReadonly
|
|
|
154
164
|
}, z.core.$strip>>]>>>>;
|
|
155
165
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
156
166
|
url: string;
|
|
157
|
-
specificationName: string;
|
|
158
167
|
description: string;
|
|
159
168
|
brand: Readonly<{
|
|
160
169
|
description: string;
|
|
@@ -164,8 +173,8 @@ export declare const ScraperResponse: z.ZodMiniUnion<readonly [z.ZodMiniReadonly
|
|
|
164
173
|
amount: number;
|
|
165
174
|
unit: string;
|
|
166
175
|
}>;
|
|
167
|
-
image
|
|
168
|
-
stocks
|
|
176
|
+
image?: string | undefined;
|
|
177
|
+
stocks?: readonly {
|
|
169
178
|
availability: Readonly<{
|
|
170
179
|
amount: number;
|
|
171
180
|
modifier: "exact" | "at_least" | "at_most";
|
|
@@ -185,11 +194,11 @@ export declare const ScraperResponse: z.ZodMiniUnion<readonly [z.ZodMiniReadonly
|
|
|
185
194
|
}>;
|
|
186
195
|
}> | undefined;
|
|
187
196
|
}[] | undefined;
|
|
188
|
-
grip
|
|
189
|
-
noise
|
|
190
|
-
decibels
|
|
191
|
-
consumption
|
|
192
|
-
details
|
|
197
|
+
grip?: "a" | "b" | "c" | "d" | "e" | undefined;
|
|
198
|
+
noise?: "a" | "b" | "c" | undefined;
|
|
199
|
+
decibels?: number | undefined;
|
|
200
|
+
consumption?: "a" | "b" | "c" | "d" | "e" | undefined;
|
|
201
|
+
details?: readonly (Readonly<{
|
|
193
202
|
name: string;
|
|
194
203
|
image: string;
|
|
195
204
|
}> | Readonly<{
|
|
@@ -197,6 +206,7 @@ export declare const ScraperResponse: z.ZodMiniUnion<readonly [z.ZodMiniReadonly
|
|
|
197
206
|
description: string;
|
|
198
207
|
image?: string | undefined;
|
|
199
208
|
}>)[] | undefined;
|
|
209
|
+
specificationName: string;
|
|
200
210
|
}, Readonly<{
|
|
201
211
|
url: string;
|
|
202
212
|
specification_name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper-response.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAI7B;;;;GAIG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"scraper-response.d.ts","sourceRoot":"","sources":["../../src/main/ts/scrapers/scraper-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAI7B;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;AAEL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|