typia 5.1.0-dev.20230922 → 5.1.0-dev.20230924
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/lib/factories/MetadataCollection.js +1 -1
- package/lib/factories/MetadataCollection.js.map +1 -1
- package/lib/functional/$HeadersReader.d.ts +6 -0
- package/lib/functional/$HeadersReader.js +17 -0
- package/lib/functional/$HeadersReader.js.map +1 -0
- package/lib/functional/$QueryReader.d.ts +7 -0
- package/lib/functional/$QueryReader.js +37 -0
- package/lib/functional/$QueryReader.js.map +1 -0
- package/lib/functional/Namespace.js +7 -0
- package/lib/functional/Namespace.js.map +1 -1
- package/lib/http.d.ts +872 -0
- package/lib/http.js +110 -0
- package/lib/http.js.map +1 -0
- package/lib/json.js +2 -2
- package/lib/json.js.map +1 -1
- package/lib/misc.js +2 -2
- package/lib/misc.js.map +1 -1
- package/lib/module.d.ts +1 -0
- package/lib/module.js +2 -1
- package/lib/module.js.map +1 -1
- package/lib/programmers/helpers/HttpMetadataUtil.d.ts +5 -0
- package/lib/programmers/helpers/HttpMetadataUtil.js +44 -0
- package/lib/programmers/helpers/HttpMetadataUtil.js.map +1 -0
- package/lib/programmers/http/HttpAssertHeadersProgrammer.d.ts +5 -0
- package/lib/programmers/http/HttpAssertHeadersProgrammer.js +41 -0
- package/lib/programmers/http/HttpAssertHeadersProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpAssertQueryProgrammer.d.ts +5 -0
- package/lib/programmers/http/HttpAssertQueryProgrammer.js +41 -0
- package/lib/programmers/http/HttpAssertQueryProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpHeadersProgrammer.d.ts +6 -0
- package/lib/programmers/http/HttpHeadersProgrammer.js +235 -0
- package/lib/programmers/http/HttpHeadersProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpIsHeadersProgrammer.d.ts +5 -0
- package/lib/programmers/http/HttpIsHeadersProgrammer.js +45 -0
- package/lib/programmers/http/HttpIsHeadersProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpIsQueryProgrammer.d.ts +5 -0
- package/lib/programmers/http/HttpIsQueryProgrammer.js +45 -0
- package/lib/programmers/http/HttpIsQueryProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpParameterProgrammer.d.ts +5 -0
- package/lib/programmers/http/HttpParameterProgrammer.js +120 -0
- package/lib/programmers/http/HttpParameterProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpQueryProgrammer.d.ts +6 -0
- package/lib/programmers/http/HttpQueryProgrammer.js +177 -0
- package/lib/programmers/http/HttpQueryProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpValidateHeadersProgrammer.d.ts +5 -0
- package/lib/programmers/http/HttpValidateHeadersProgrammer.js +41 -0
- package/lib/programmers/http/HttpValidateHeadersProgrammer.js.map +1 -0
- package/lib/programmers/http/HttpValidateQueryProgrammer.d.ts +5 -0
- package/lib/programmers/http/HttpValidateQueryProgrammer.js +41 -0
- package/lib/programmers/http/HttpValidateQueryProgrammer.js.map +1 -0
- package/lib/protobuf.d.ts +24 -24
- package/lib/protobuf.js +4 -4
- package/lib/protobuf.js.map +1 -1
- package/lib/transformers/CallExpressionTransformer.js +40 -0
- package/lib/transformers/CallExpressionTransformer.js.map +1 -1
- package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.js +12 -0
- package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.js +12 -0
- package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpHeadersTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpHeadersTransformer.js +10 -0
- package/lib/transformers/features/http/CreateHttpHeadersTransformer.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.js +10 -0
- package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpIsQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpIsQueryTransformer.js +10 -0
- package/lib/transformers/features/http/CreateHttpIsQueryTransformer.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpParameterTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpParameterTransformer.js +10 -0
- package/lib/transformers/features/http/CreateHttpParameterTransformer.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpQueryTransformer.js +10 -0
- package/lib/transformers/features/http/CreateHttpQueryTransformer.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer copy.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer copy.js +12 -0
- package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer copy.js.map +1 -0
- package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.js +12 -0
- package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpAssertHeadersTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpAssertHeadersTransformer.js +12 -0
- package/lib/transformers/features/http/HttpAssertHeadersTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpAssertQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpAssertQueryTransformer.js +12 -0
- package/lib/transformers/features/http/HttpAssertQueryTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpHeadersTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpHeadersTransformer.js +10 -0
- package/lib/transformers/features/http/HttpHeadersTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpIsHeadersTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpIsHeadersTransformer.js +10 -0
- package/lib/transformers/features/http/HttpIsHeadersTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpIsQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpIsQueryTransformer.js +10 -0
- package/lib/transformers/features/http/HttpIsQueryTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpParameterTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpParameterTransformer.js +10 -0
- package/lib/transformers/features/http/HttpParameterTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpQueryTransformer.js +10 -0
- package/lib/transformers/features/http/HttpQueryTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpValidateHeadersTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpValidateHeadersTransformer.js +12 -0
- package/lib/transformers/features/http/HttpValidateHeadersTransformer.js.map +1 -0
- package/lib/transformers/features/http/HttpValidateQueryTransformer.d.ts +4 -0
- package/lib/transformers/features/http/HttpValidateQueryTransformer.js +12 -0
- package/lib/transformers/features/http/HttpValidateQueryTransformer.js.map +1 -0
- package/package.json +1 -1
- package/src/factories/MetadataCollection.ts +274 -274
- package/src/functional/$HeadersReader.ts +9 -0
- package/src/functional/$QueryReader.ts +32 -0
- package/src/functional/Namespace.ts +7 -0
- package/src/http.ts +1141 -0
- package/src/json.ts +2 -2
- package/src/misc.ts +2 -2
- package/src/module.ts +1 -0
- package/src/programmers/helpers/HttpMetadataUtil.ts +21 -0
- package/src/programmers/http/HttpAssertHeadersProgrammer.ts +77 -0
- package/src/programmers/http/HttpAssertQueryProgrammer.ts +77 -0
- package/src/programmers/http/HttpHeadersProgrammer.ts +321 -0
- package/src/programmers/http/HttpIsHeadersProgrammer.ts +87 -0
- package/src/programmers/http/HttpIsQueryProgrammer.ts +87 -0
- package/src/programmers/http/HttpParameterProgrammer.ts +168 -0
- package/src/programmers/http/HttpQueryProgrammer.ts +267 -0
- package/src/programmers/http/HttpValidateHeadersProgrammer.ts +77 -0
- package/src/programmers/http/HttpValidateQueryProgrammer.ts +77 -0
- package/src/protobuf.ts +34 -28
- package/src/transformers/CallExpressionTransformer.ts +46 -0
- package/src/transformers/features/http/CreateHttpAssertHeadersTransformer.ts +12 -0
- package/src/transformers/features/http/CreateHttpAssertQueryTransformer.ts +12 -0
- package/src/transformers/features/http/CreateHttpHeadersTransformer.ts +9 -0
- package/src/transformers/features/http/CreateHttpIsHeadersTransformer.ts +9 -0
- package/src/transformers/features/http/CreateHttpIsQueryTransformer.ts +9 -0
- package/src/transformers/features/http/CreateHttpParameterTransformer.ts +9 -0
- package/src/transformers/features/http/CreateHttpQueryTransformer.ts +9 -0
- package/src/transformers/features/http/CreateHttpValidateHeadersTransformer copy.ts +12 -0
- package/src/transformers/features/http/CreateHttpValidateQueryTransformer.ts +12 -0
- package/src/transformers/features/http/HttpAssertHeadersTransformer.ts +10 -0
- package/src/transformers/features/http/HttpAssertQueryTransformer.ts +10 -0
- package/src/transformers/features/http/HttpHeadersTransformer.ts +9 -0
- package/src/transformers/features/http/HttpIsHeadersTransformer.ts +9 -0
- package/src/transformers/features/http/HttpIsQueryTransformer.ts +9 -0
- package/src/transformers/features/http/HttpParameterTransformer.ts +9 -0
- package/src/transformers/features/http/HttpQueryTransformer.ts +9 -0
- package/src/transformers/features/http/HttpValidateHeadersTransformer.ts +10 -0
- package/src/transformers/features/http/HttpValidateQueryTransformer.ts +10 -0
package/src/protobuf.ts
CHANGED
|
@@ -24,7 +24,7 @@ import { Resolved } from "./Resolved";
|
|
|
24
24
|
* For reference, Protocol Buffer has lots of restrictions, so that expression power
|
|
25
25
|
* of Protocol Buffer is not enough strong to fully meet the TypeScript type specs.
|
|
26
26
|
* In such reason, if you put a TypeScript type that is not compatible with Protocol
|
|
27
|
-
* Buffer, this function would throw
|
|
27
|
+
* Buffer, this function would throw compilation errors.
|
|
28
28
|
*
|
|
29
29
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
30
30
|
*
|
|
@@ -45,7 +45,7 @@ export function message(): never;
|
|
|
45
45
|
* For reference, Protocol Buffer has lots of restrictions, so that expression power
|
|
46
46
|
* of Protocol Buffer is not enough strong to fully meet the TypeScript type specs.
|
|
47
47
|
* In such reason, if you put a TypeScript type that is not compatible with Protocol
|
|
48
|
-
* Buffer, this function would throw
|
|
48
|
+
* Buffer, this function would throw compilation errors.
|
|
49
49
|
*
|
|
50
50
|
* @template T Target type
|
|
51
51
|
* @returns Protocol Buffer Message Schema.
|
|
@@ -88,7 +88,7 @@ export function message(): never {
|
|
|
88
88
|
* [custom tags](https://typia.io/docs/validators/tags). Thus, I repeat that,
|
|
89
89
|
* you've to ensure the type safety when using decoder functions.
|
|
90
90
|
*
|
|
91
|
-
* @
|
|
91
|
+
* @template T Expected type of decoded value
|
|
92
92
|
* @param input Protobuf Buffer binary data
|
|
93
93
|
* @returns Decoded value
|
|
94
94
|
*
|
|
@@ -118,7 +118,7 @@ export function decode(input: Uint8Array): never;
|
|
|
118
118
|
* [custom tags](https://typia.io/docs/validators/tags). Thus, I repeat that,
|
|
119
119
|
* you've to ensure the type safety when using decoder functions.
|
|
120
120
|
*
|
|
121
|
-
* @
|
|
121
|
+
* @template T Expected type of decoded value
|
|
122
122
|
* @param input Protobuf Buffer binary data
|
|
123
123
|
* @returns Decoded value
|
|
124
124
|
*
|
|
@@ -157,7 +157,7 @@ Object.assign(decode, Namespace.protobuf.decode("decode"));
|
|
|
157
157
|
* - {@link isEncode}
|
|
158
158
|
* - {@link validateEncode}
|
|
159
159
|
*
|
|
160
|
-
* @
|
|
160
|
+
* @template T Expected type of decoded value
|
|
161
161
|
* @param input Protobuf Buffer binary data
|
|
162
162
|
* @returns Decoded value
|
|
163
163
|
*
|
|
@@ -186,7 +186,7 @@ export function assertDecode(input: Uint8Array): never;
|
|
|
186
186
|
* - {@link isEncode}
|
|
187
187
|
* - {@link validateEncode}
|
|
188
188
|
*
|
|
189
|
-
* @
|
|
189
|
+
* @template T Expected type of decoded value
|
|
190
190
|
* @param input Protobuf Buffer binary data
|
|
191
191
|
* @returns Decoded value
|
|
192
192
|
*
|
|
@@ -200,7 +200,7 @@ export function assertDecode<T>(input: Uint8Array): Resolved<T>;
|
|
|
200
200
|
export function assertDecode(): never {
|
|
201
201
|
halt("assertDecode");
|
|
202
202
|
}
|
|
203
|
-
Object.assign(assertDecode, Namespace.assert("assertDecode"));
|
|
203
|
+
Object.assign(assertDecode, Namespace.assert("protobuf.assertDecode"));
|
|
204
204
|
Object.assign(assertDecode, Namespace.protobuf.decode("assertDecode"));
|
|
205
205
|
|
|
206
206
|
/**
|
|
@@ -226,7 +226,7 @@ Object.assign(assertDecode, Namespace.protobuf.decode("assertDecode"));
|
|
|
226
226
|
* - {@link isEncode}
|
|
227
227
|
* - {@link validateEncode}
|
|
228
228
|
*
|
|
229
|
-
* @
|
|
229
|
+
* @template T Expected type of decoded value
|
|
230
230
|
* @param input Protobuf Buffer binary data
|
|
231
231
|
* @returns Decoded value
|
|
232
232
|
*
|
|
@@ -255,7 +255,7 @@ export function isDecode(input: Uint8Array): never;
|
|
|
255
255
|
* - {@link isEncode}
|
|
256
256
|
* - {@link validateEncode}
|
|
257
257
|
*
|
|
258
|
-
* @
|
|
258
|
+
* @template T Expected type of decoded value
|
|
259
259
|
* @param input Protobuf Buffer binary data
|
|
260
260
|
* @returns Decoded value
|
|
261
261
|
*
|
|
@@ -296,7 +296,7 @@ Object.assign(isDecode, Namespace.protobuf.decode("isDecode"));
|
|
|
296
296
|
* - {@link isEncode}
|
|
297
297
|
* - {@link validateEncode}
|
|
298
298
|
*
|
|
299
|
-
* @
|
|
299
|
+
* @template T Expected type of decoded value
|
|
300
300
|
* @param input Protobuf Buffer binary data
|
|
301
301
|
* @returns Decoded value
|
|
302
302
|
*
|
|
@@ -326,7 +326,7 @@ export function validateDecode(input: Uint8Array): never;
|
|
|
326
326
|
* - {@link isEncode}
|
|
327
327
|
* - {@link validateEncode}
|
|
328
328
|
*
|
|
329
|
-
* @
|
|
329
|
+
* @template T Expected type of decoded value
|
|
330
330
|
* @param input Protobuf Buffer binary data
|
|
331
331
|
* @returns Decoded value
|
|
332
332
|
*
|
|
@@ -362,8 +362,8 @@ Object.assign(validateDecode, Namespace.protobuf.decode("validateDecode"));
|
|
|
362
362
|
*
|
|
363
363
|
* By the way, you know what? Expression power of Protocol Buffer is not enough strong
|
|
364
364
|
* to fully meet the TypeScript type specs. In such reason, if you put a TypeScript
|
|
365
|
-
* type that is not compatible with Protocol Buffer, this function would throw
|
|
366
|
-
* compilation
|
|
365
|
+
* type that is not compatible with Protocol Buffer, this function would throw
|
|
366
|
+
* compilation errors.
|
|
367
367
|
*
|
|
368
368
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
369
369
|
*
|
|
@@ -403,8 +403,8 @@ Object.assign(encode, Namespace.protobuf.encode("encode"));
|
|
|
403
403
|
*
|
|
404
404
|
* By the way, you know what? Expression power of Protocol Buffer is not enough strong
|
|
405
405
|
* to fully meet the TypeScript type specs. In such reason, if you put a TypeScript
|
|
406
|
-
* type that is not compatible with Protocol Buffer, this function would throw
|
|
407
|
-
* compilation
|
|
406
|
+
* type that is not compatible with Protocol Buffer, this function would throw
|
|
407
|
+
* compilation errors.
|
|
408
408
|
*
|
|
409
409
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
410
410
|
*
|
|
@@ -436,8 +436,8 @@ export function assertEncode<T>(input: T): Uint8Array;
|
|
|
436
436
|
*
|
|
437
437
|
* By the way, you know what? Expression power of Protocol Buffer is not enough strong
|
|
438
438
|
* to fully meet the TypeScript type specs. In such reason, if you put a TypeScript
|
|
439
|
-
* type that is not compatible with Protocol Buffer, this function would throw
|
|
440
|
-
* compilation
|
|
439
|
+
* type that is not compatible with Protocol Buffer, this function would throw
|
|
440
|
+
* compilation errors.
|
|
441
441
|
*
|
|
442
442
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
443
443
|
*
|
|
@@ -455,7 +455,7 @@ export function assertEncode<T>(input: unknown): Uint8Array;
|
|
|
455
455
|
export function assertEncode(): never {
|
|
456
456
|
halt("assertEncode");
|
|
457
457
|
}
|
|
458
|
-
Object.assign(assertEncode, Namespace.assert("assertEncode"));
|
|
458
|
+
Object.assign(assertEncode, Namespace.assert("protobuf.assertEncode"));
|
|
459
459
|
Object.assign(assertEncode, Namespace.protobuf.encode("assertEncode"));
|
|
460
460
|
|
|
461
461
|
/**
|
|
@@ -478,8 +478,8 @@ Object.assign(assertEncode, Namespace.protobuf.encode("assertEncode"));
|
|
|
478
478
|
*
|
|
479
479
|
* By the way, you know what? Expression power of Protocol Buffer is not enough strong
|
|
480
480
|
* to fully meet the TypeScript type specs. In such reason, if you put a TypeScript
|
|
481
|
-
* type that is not compatible with Protocol Buffer, this function would throw
|
|
482
|
-
* compilation
|
|
481
|
+
* type that is not compatible with Protocol Buffer, this function would throw
|
|
482
|
+
* compilation errors.
|
|
483
483
|
*
|
|
484
484
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
485
485
|
*
|
|
@@ -511,8 +511,8 @@ export function isEncode<T>(input: T): Uint8Array | null;
|
|
|
511
511
|
*
|
|
512
512
|
* By the way, you know what? Expression power of Protocol Buffer is not enough strong
|
|
513
513
|
* to fully meet the TypeScript type specs. In such reason, if you put a TypeScript
|
|
514
|
-
* type that is not compatible with Protocol Buffer, this function would throw
|
|
515
|
-
* compilation
|
|
514
|
+
* type that is not compatible with Protocol Buffer, this function would throw
|
|
515
|
+
* compilation errors.
|
|
516
516
|
*
|
|
517
517
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
518
518
|
*
|
|
@@ -554,8 +554,8 @@ Object.assign(isEncode, Namespace.protobuf.encode("isEncode"));
|
|
|
554
554
|
*
|
|
555
555
|
* By the way, you know what? Expression power of Protocol Buffer is not enough strong
|
|
556
556
|
* to fully meet the TypeScript type specs. In such reason, if you put a TypeScript
|
|
557
|
-
* type that is not compatible with Protocol Buffer, this function would throw
|
|
558
|
-
* compilation
|
|
557
|
+
* type that is not compatible with Protocol Buffer, this function would throw
|
|
558
|
+
* compilation errors.
|
|
559
559
|
*
|
|
560
560
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
561
561
|
*
|
|
@@ -588,8 +588,8 @@ export function validateEncode<T>(input: T): IValidation<Uint8Array>;
|
|
|
588
588
|
*
|
|
589
589
|
* By the way, you know what? Expression power of Protocol Buffer is not enough strong
|
|
590
590
|
* to fully meet the TypeScript type specs. In such reason, if you put a TypeScript
|
|
591
|
-
* type that is not compatible with Protocol Buffer, this function would throw
|
|
592
|
-
* compilation
|
|
591
|
+
* type that is not compatible with Protocol Buffer, this function would throw
|
|
592
|
+
* compilation errors.
|
|
593
593
|
*
|
|
594
594
|
* - [Restrictions of Protocol Buffer](https://typia.io/docs/protobuf/message/#restrictions)
|
|
595
595
|
*
|
|
@@ -699,7 +699,10 @@ export function createAssertDecode<T>(): (input: Uint8Array) => Resolved<T>;
|
|
|
699
699
|
export function createAssertDecode<T>(): (input: Uint8Array) => Resolved<T> {
|
|
700
700
|
halt("createAssertDecode");
|
|
701
701
|
}
|
|
702
|
-
Object.assign(
|
|
702
|
+
Object.assign(
|
|
703
|
+
createAssertDecode,
|
|
704
|
+
Namespace.assert("protobuf.createAssertDecode"),
|
|
705
|
+
);
|
|
703
706
|
Object.assign(
|
|
704
707
|
createAssertDecode,
|
|
705
708
|
Namespace.protobuf.decode("createAssertDecode"),
|
|
@@ -828,7 +831,10 @@ export function createAssertEncode<T>(): (input: T) => Uint8Array;
|
|
|
828
831
|
export function createAssertEncode<T>(): (input: T) => Uint8Array {
|
|
829
832
|
halt("createAssertEncode");
|
|
830
833
|
}
|
|
831
|
-
Object.assign(
|
|
834
|
+
Object.assign(
|
|
835
|
+
createAssertEncode,
|
|
836
|
+
Namespace.assert("protobuf.createAssertEncode"),
|
|
837
|
+
);
|
|
832
838
|
Object.assign(
|
|
833
839
|
createAssertEncode,
|
|
834
840
|
Namespace.protobuf.encode("createAssertEncode"),
|
|
@@ -10,6 +10,24 @@ import { CreateValidateTransformer } from "./features/CreateValidateTransformer"
|
|
|
10
10
|
import { IsTransformer } from "./features/IsTransformer";
|
|
11
11
|
import { RandomTransformer } from "./features/RandomTransformer";
|
|
12
12
|
import { ValidateTransformer } from "./features/ValidateTransformer";
|
|
13
|
+
import { CreateHttpAssertHeadersTransformer } from "./features/http/CreateHttpAssertHeadersTransformer";
|
|
14
|
+
import { CreateHttpAssertQueryTransformer } from "./features/http/CreateHttpAssertQueryTransformer";
|
|
15
|
+
import { CreateHttpHeadersTransformer } from "./features/http/CreateHttpHeadersTransformer";
|
|
16
|
+
import { CreateHttpIsHeadersTransformer } from "./features/http/CreateHttpIsHeadersTransformer";
|
|
17
|
+
import { CreateHttpIsQueryTransformer } from "./features/http/CreateHttpIsQueryTransformer";
|
|
18
|
+
import { CreateHttpParameterTransformer } from "./features/http/CreateHttpParameterTransformer";
|
|
19
|
+
import { CreateHttpQueryTransformer } from "./features/http/CreateHttpQueryTransformer";
|
|
20
|
+
import { CreateHttpValidateHeadersTransformer } from "./features/http/CreateHttpValidateHeadersTransformer copy";
|
|
21
|
+
import { CreateHttpValidateQueryTransformer } from "./features/http/CreateHttpValidateQueryTransformer";
|
|
22
|
+
import { HttpAssertHeadersTransformer } from "./features/http/HttpAssertHeadersTransformer";
|
|
23
|
+
import { HttpAssertQueryTransformer } from "./features/http/HttpAssertQueryTransformer";
|
|
24
|
+
import { HttpHeadersTransformer } from "./features/http/HttpHeadersTransformer";
|
|
25
|
+
import { HttpIsHeadersTransformer } from "./features/http/HttpIsHeadersTransformer";
|
|
26
|
+
import { HttpIsQueryTransformer } from "./features/http/HttpIsQueryTransformer";
|
|
27
|
+
import { HttpParameterTransformer } from "./features/http/HttpParameterTransformer";
|
|
28
|
+
import { HttpQueryTransformer } from "./features/http/HttpQueryTransformer";
|
|
29
|
+
import { HttpValidateHeadersTransformer } from "./features/http/HttpValidateHeadersTransformer";
|
|
30
|
+
import { HttpValidateQueryTransformer } from "./features/http/HttpValidateQueryTransformer";
|
|
13
31
|
import { JsonApplicationTransformer } from "./features/json/JsonApplicationTransformer";
|
|
14
32
|
import { JsonAssertParseTransformer } from "./features/json/JsonAssertParseTransformer";
|
|
15
33
|
import { JsonAssertStringifyTransformer } from "./features/json/JsonAssertStringifyTransformer";
|
|
@@ -158,6 +176,34 @@ const FUNCTORS: Record<string, Record<string, () => Task>> = {
|
|
|
158
176
|
createValidateEquals: () => CreateValidateTransformer.transform(true),
|
|
159
177
|
createRandom: () => CreateRandomTransformer.transform,
|
|
160
178
|
},
|
|
179
|
+
http: {
|
|
180
|
+
// HEADERS
|
|
181
|
+
headers: () => HttpHeadersTransformer.transform,
|
|
182
|
+
isHeaders: () => HttpIsHeadersTransformer.transform,
|
|
183
|
+
assertHeaders: () => HttpAssertHeadersTransformer.transform,
|
|
184
|
+
validateHeaders: () => HttpValidateHeadersTransformer.transform,
|
|
185
|
+
|
|
186
|
+
// PARAMETER
|
|
187
|
+
parameter: () => HttpParameterTransformer.transform,
|
|
188
|
+
|
|
189
|
+
// QUERY
|
|
190
|
+
query: () => HttpQueryTransformer.transform,
|
|
191
|
+
isQuery: () => HttpIsQueryTransformer.transform,
|
|
192
|
+
assertQuery: () => HttpAssertQueryTransformer.transform,
|
|
193
|
+
validateQuery: () => HttpValidateQueryTransformer.transform,
|
|
194
|
+
|
|
195
|
+
// FACTORIES
|
|
196
|
+
createHeaders: () => CreateHttpHeadersTransformer.transform,
|
|
197
|
+
createIsHeaders: () => CreateHttpIsHeadersTransformer.transform,
|
|
198
|
+
createAssertHeaders: () => CreateHttpAssertHeadersTransformer.transform,
|
|
199
|
+
createValidateHeaders: () =>
|
|
200
|
+
CreateHttpValidateHeadersTransformer.transform,
|
|
201
|
+
createParameter: () => CreateHttpParameterTransformer.transform,
|
|
202
|
+
createQuery: () => CreateHttpQueryTransformer.transform,
|
|
203
|
+
createIsQuery: () => CreateHttpIsQueryTransformer.transform,
|
|
204
|
+
createAssertQuery: () => CreateHttpAssertQueryTransformer.transform,
|
|
205
|
+
createValidateQuery: () => CreateHttpValidateQueryTransformer.transform,
|
|
206
|
+
},
|
|
161
207
|
json: {
|
|
162
208
|
// SCHEMA
|
|
163
209
|
application: () => (P) => () => JsonApplicationTransformer.transform(P),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpAssertHeadersProgrammer } from "../../../programmers/http/HttpAssertHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpAssertHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory(
|
|
7
|
+
"http.createAssertHeaders",
|
|
8
|
+
)(
|
|
9
|
+
(project) => (modulo) =>
|
|
10
|
+
HttpAssertHeadersProgrammer.write(project)(modulo),
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpAssertQueryProgrammer } from "../../../programmers/http/HttpAssertQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpAssertQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory(
|
|
7
|
+
"http.createAssertQuery",
|
|
8
|
+
)(
|
|
9
|
+
(project) => (modulo) =>
|
|
10
|
+
HttpAssertQueryProgrammer.write(project)(modulo),
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpHeadersProgrammer } from "../../../programmers/http/HttpHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory("http.createHeaders")(
|
|
7
|
+
(project) => (modulo) => HttpHeadersProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpIsHeadersProgrammer } from "../../../programmers/http/HttpIsHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpIsHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory("http.createIsHeaders")(
|
|
7
|
+
(project) => (modulo) => HttpIsHeadersProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpIsQueryProgrammer } from "../../../programmers/http/HttpIsQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpIsQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory("http.createIsQuery")(
|
|
7
|
+
(project) => (modulo) => HttpIsQueryProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpParameterProgrammer } from "../../../programmers/http/HttpParameterProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpParameterTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory("http.createParameter")(
|
|
7
|
+
(project) => (modulo) => HttpParameterProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpQueryProgrammer } from "../../../programmers/http/HttpQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory("http.createQuery")(
|
|
7
|
+
(project) => (modulo) => HttpQueryProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpValidateHeadersProgrammer } from "../../../programmers/http/HttpValidateHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpValidateHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory(
|
|
7
|
+
"http.createValidateHeaders",
|
|
8
|
+
)(
|
|
9
|
+
(project) => (modulo) =>
|
|
10
|
+
HttpValidateHeadersProgrammer.write(project)(modulo),
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpValidateQueryProgrammer } from "../../../programmers/http/HttpValidateQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace CreateHttpValidateQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.factory(
|
|
7
|
+
"http.createValidateQuery",
|
|
8
|
+
)(
|
|
9
|
+
(project) => (modulo) =>
|
|
10
|
+
HttpValidateQueryProgrammer.write(project)(modulo),
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpAssertHeadersProgrammer } from "../../../programmers/http/HttpAssertHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpAssertHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.assertHeaders")(
|
|
7
|
+
(project) => (modulo) =>
|
|
8
|
+
HttpAssertHeadersProgrammer.write(project)(modulo),
|
|
9
|
+
);
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpAssertQueryProgrammer } from "../../../programmers/http/HttpAssertQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpAssertQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.assertQuery")(
|
|
7
|
+
(project) => (modulo) =>
|
|
8
|
+
HttpAssertQueryProgrammer.write(project)(modulo),
|
|
9
|
+
);
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpHeadersProgrammer } from "../../../programmers/http/HttpHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.headers")(
|
|
7
|
+
(project) => (modulo) => HttpHeadersProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpIsHeadersProgrammer } from "../../../programmers/http/HttpIsHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpIsHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.isHeaders")(
|
|
7
|
+
(project) => (modulo) => HttpIsHeadersProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpIsQueryProgrammer } from "../../../programmers/http/HttpIsQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpIsQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.isQuery")(
|
|
7
|
+
(project) => (modulo) => HttpIsQueryProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpParameterProgrammer } from "../../../programmers/http/HttpParameterProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpParameterTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.parameter")(
|
|
7
|
+
(project) => (modulo) => HttpParameterProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpQueryProgrammer } from "../../../programmers/http/HttpQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.query")(
|
|
7
|
+
(project) => (modulo) => HttpQueryProgrammer.write(project)(modulo),
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpValidateHeadersProgrammer } from "../../../programmers/http/HttpValidateHeadersProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpValidateHeadersTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.validateHeaders")(
|
|
7
|
+
(project) => (modulo) =>
|
|
8
|
+
HttpValidateHeadersProgrammer.write(project)(modulo),
|
|
9
|
+
);
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpValidateQueryProgrammer } from "../../../programmers/http/HttpValidateQueryProgrammer";
|
|
2
|
+
|
|
3
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
4
|
+
|
|
5
|
+
export namespace HttpValidateQueryTransformer {
|
|
6
|
+
export const transform = GenericTransformer.scalar("http.validateQuery")(
|
|
7
|
+
(project) => (modulo) =>
|
|
8
|
+
HttpValidateQueryProgrammer.write(project)(modulo),
|
|
9
|
+
);
|
|
10
|
+
}
|