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.
Files changed (148) hide show
  1. package/lib/factories/MetadataCollection.js +1 -1
  2. package/lib/factories/MetadataCollection.js.map +1 -1
  3. package/lib/functional/$HeadersReader.d.ts +6 -0
  4. package/lib/functional/$HeadersReader.js +17 -0
  5. package/lib/functional/$HeadersReader.js.map +1 -0
  6. package/lib/functional/$QueryReader.d.ts +7 -0
  7. package/lib/functional/$QueryReader.js +37 -0
  8. package/lib/functional/$QueryReader.js.map +1 -0
  9. package/lib/functional/Namespace.js +7 -0
  10. package/lib/functional/Namespace.js.map +1 -1
  11. package/lib/http.d.ts +872 -0
  12. package/lib/http.js +110 -0
  13. package/lib/http.js.map +1 -0
  14. package/lib/json.js +2 -2
  15. package/lib/json.js.map +1 -1
  16. package/lib/misc.js +2 -2
  17. package/lib/misc.js.map +1 -1
  18. package/lib/module.d.ts +1 -0
  19. package/lib/module.js +2 -1
  20. package/lib/module.js.map +1 -1
  21. package/lib/programmers/helpers/HttpMetadataUtil.d.ts +5 -0
  22. package/lib/programmers/helpers/HttpMetadataUtil.js +44 -0
  23. package/lib/programmers/helpers/HttpMetadataUtil.js.map +1 -0
  24. package/lib/programmers/http/HttpAssertHeadersProgrammer.d.ts +5 -0
  25. package/lib/programmers/http/HttpAssertHeadersProgrammer.js +41 -0
  26. package/lib/programmers/http/HttpAssertHeadersProgrammer.js.map +1 -0
  27. package/lib/programmers/http/HttpAssertQueryProgrammer.d.ts +5 -0
  28. package/lib/programmers/http/HttpAssertQueryProgrammer.js +41 -0
  29. package/lib/programmers/http/HttpAssertQueryProgrammer.js.map +1 -0
  30. package/lib/programmers/http/HttpHeadersProgrammer.d.ts +6 -0
  31. package/lib/programmers/http/HttpHeadersProgrammer.js +235 -0
  32. package/lib/programmers/http/HttpHeadersProgrammer.js.map +1 -0
  33. package/lib/programmers/http/HttpIsHeadersProgrammer.d.ts +5 -0
  34. package/lib/programmers/http/HttpIsHeadersProgrammer.js +45 -0
  35. package/lib/programmers/http/HttpIsHeadersProgrammer.js.map +1 -0
  36. package/lib/programmers/http/HttpIsQueryProgrammer.d.ts +5 -0
  37. package/lib/programmers/http/HttpIsQueryProgrammer.js +45 -0
  38. package/lib/programmers/http/HttpIsQueryProgrammer.js.map +1 -0
  39. package/lib/programmers/http/HttpParameterProgrammer.d.ts +5 -0
  40. package/lib/programmers/http/HttpParameterProgrammer.js +120 -0
  41. package/lib/programmers/http/HttpParameterProgrammer.js.map +1 -0
  42. package/lib/programmers/http/HttpQueryProgrammer.d.ts +6 -0
  43. package/lib/programmers/http/HttpQueryProgrammer.js +177 -0
  44. package/lib/programmers/http/HttpQueryProgrammer.js.map +1 -0
  45. package/lib/programmers/http/HttpValidateHeadersProgrammer.d.ts +5 -0
  46. package/lib/programmers/http/HttpValidateHeadersProgrammer.js +41 -0
  47. package/lib/programmers/http/HttpValidateHeadersProgrammer.js.map +1 -0
  48. package/lib/programmers/http/HttpValidateQueryProgrammer.d.ts +5 -0
  49. package/lib/programmers/http/HttpValidateQueryProgrammer.js +41 -0
  50. package/lib/programmers/http/HttpValidateQueryProgrammer.js.map +1 -0
  51. package/lib/protobuf.d.ts +24 -24
  52. package/lib/protobuf.js +4 -4
  53. package/lib/protobuf.js.map +1 -1
  54. package/lib/transformers/CallExpressionTransformer.js +40 -0
  55. package/lib/transformers/CallExpressionTransformer.js.map +1 -1
  56. package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.d.ts +4 -0
  57. package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.js +12 -0
  58. package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.js.map +1 -0
  59. package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.d.ts +4 -0
  60. package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.js +12 -0
  61. package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.js.map +1 -0
  62. package/lib/transformers/features/http/CreateHttpHeadersTransformer.d.ts +4 -0
  63. package/lib/transformers/features/http/CreateHttpHeadersTransformer.js +10 -0
  64. package/lib/transformers/features/http/CreateHttpHeadersTransformer.js.map +1 -0
  65. package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.d.ts +4 -0
  66. package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.js +10 -0
  67. package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.js.map +1 -0
  68. package/lib/transformers/features/http/CreateHttpIsQueryTransformer.d.ts +4 -0
  69. package/lib/transformers/features/http/CreateHttpIsQueryTransformer.js +10 -0
  70. package/lib/transformers/features/http/CreateHttpIsQueryTransformer.js.map +1 -0
  71. package/lib/transformers/features/http/CreateHttpParameterTransformer.d.ts +4 -0
  72. package/lib/transformers/features/http/CreateHttpParameterTransformer.js +10 -0
  73. package/lib/transformers/features/http/CreateHttpParameterTransformer.js.map +1 -0
  74. package/lib/transformers/features/http/CreateHttpQueryTransformer.d.ts +4 -0
  75. package/lib/transformers/features/http/CreateHttpQueryTransformer.js +10 -0
  76. package/lib/transformers/features/http/CreateHttpQueryTransformer.js.map +1 -0
  77. package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer copy.d.ts +4 -0
  78. package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer copy.js +12 -0
  79. package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer copy.js.map +1 -0
  80. package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.d.ts +4 -0
  81. package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.js +12 -0
  82. package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.js.map +1 -0
  83. package/lib/transformers/features/http/HttpAssertHeadersTransformer.d.ts +4 -0
  84. package/lib/transformers/features/http/HttpAssertHeadersTransformer.js +12 -0
  85. package/lib/transformers/features/http/HttpAssertHeadersTransformer.js.map +1 -0
  86. package/lib/transformers/features/http/HttpAssertQueryTransformer.d.ts +4 -0
  87. package/lib/transformers/features/http/HttpAssertQueryTransformer.js +12 -0
  88. package/lib/transformers/features/http/HttpAssertQueryTransformer.js.map +1 -0
  89. package/lib/transformers/features/http/HttpHeadersTransformer.d.ts +4 -0
  90. package/lib/transformers/features/http/HttpHeadersTransformer.js +10 -0
  91. package/lib/transformers/features/http/HttpHeadersTransformer.js.map +1 -0
  92. package/lib/transformers/features/http/HttpIsHeadersTransformer.d.ts +4 -0
  93. package/lib/transformers/features/http/HttpIsHeadersTransformer.js +10 -0
  94. package/lib/transformers/features/http/HttpIsHeadersTransformer.js.map +1 -0
  95. package/lib/transformers/features/http/HttpIsQueryTransformer.d.ts +4 -0
  96. package/lib/transformers/features/http/HttpIsQueryTransformer.js +10 -0
  97. package/lib/transformers/features/http/HttpIsQueryTransformer.js.map +1 -0
  98. package/lib/transformers/features/http/HttpParameterTransformer.d.ts +4 -0
  99. package/lib/transformers/features/http/HttpParameterTransformer.js +10 -0
  100. package/lib/transformers/features/http/HttpParameterTransformer.js.map +1 -0
  101. package/lib/transformers/features/http/HttpQueryTransformer.d.ts +4 -0
  102. package/lib/transformers/features/http/HttpQueryTransformer.js +10 -0
  103. package/lib/transformers/features/http/HttpQueryTransformer.js.map +1 -0
  104. package/lib/transformers/features/http/HttpValidateHeadersTransformer.d.ts +4 -0
  105. package/lib/transformers/features/http/HttpValidateHeadersTransformer.js +12 -0
  106. package/lib/transformers/features/http/HttpValidateHeadersTransformer.js.map +1 -0
  107. package/lib/transformers/features/http/HttpValidateQueryTransformer.d.ts +4 -0
  108. package/lib/transformers/features/http/HttpValidateQueryTransformer.js +12 -0
  109. package/lib/transformers/features/http/HttpValidateQueryTransformer.js.map +1 -0
  110. package/package.json +1 -1
  111. package/src/factories/MetadataCollection.ts +274 -274
  112. package/src/functional/$HeadersReader.ts +9 -0
  113. package/src/functional/$QueryReader.ts +32 -0
  114. package/src/functional/Namespace.ts +7 -0
  115. package/src/http.ts +1141 -0
  116. package/src/json.ts +2 -2
  117. package/src/misc.ts +2 -2
  118. package/src/module.ts +1 -0
  119. package/src/programmers/helpers/HttpMetadataUtil.ts +21 -0
  120. package/src/programmers/http/HttpAssertHeadersProgrammer.ts +77 -0
  121. package/src/programmers/http/HttpAssertQueryProgrammer.ts +77 -0
  122. package/src/programmers/http/HttpHeadersProgrammer.ts +321 -0
  123. package/src/programmers/http/HttpIsHeadersProgrammer.ts +87 -0
  124. package/src/programmers/http/HttpIsQueryProgrammer.ts +87 -0
  125. package/src/programmers/http/HttpParameterProgrammer.ts +168 -0
  126. package/src/programmers/http/HttpQueryProgrammer.ts +267 -0
  127. package/src/programmers/http/HttpValidateHeadersProgrammer.ts +77 -0
  128. package/src/programmers/http/HttpValidateQueryProgrammer.ts +77 -0
  129. package/src/protobuf.ts +34 -28
  130. package/src/transformers/CallExpressionTransformer.ts +46 -0
  131. package/src/transformers/features/http/CreateHttpAssertHeadersTransformer.ts +12 -0
  132. package/src/transformers/features/http/CreateHttpAssertQueryTransformer.ts +12 -0
  133. package/src/transformers/features/http/CreateHttpHeadersTransformer.ts +9 -0
  134. package/src/transformers/features/http/CreateHttpIsHeadersTransformer.ts +9 -0
  135. package/src/transformers/features/http/CreateHttpIsQueryTransformer.ts +9 -0
  136. package/src/transformers/features/http/CreateHttpParameterTransformer.ts +9 -0
  137. package/src/transformers/features/http/CreateHttpQueryTransformer.ts +9 -0
  138. package/src/transformers/features/http/CreateHttpValidateHeadersTransformer copy.ts +12 -0
  139. package/src/transformers/features/http/CreateHttpValidateQueryTransformer.ts +12 -0
  140. package/src/transformers/features/http/HttpAssertHeadersTransformer.ts +10 -0
  141. package/src/transformers/features/http/HttpAssertQueryTransformer.ts +10 -0
  142. package/src/transformers/features/http/HttpHeadersTransformer.ts +9 -0
  143. package/src/transformers/features/http/HttpIsHeadersTransformer.ts +9 -0
  144. package/src/transformers/features/http/HttpIsQueryTransformer.ts +9 -0
  145. package/src/transformers/features/http/HttpParameterTransformer.ts +9 -0
  146. package/src/transformers/features/http/HttpQueryTransformer.ts +9 -0
  147. package/src/transformers/features/http/HttpValidateHeadersTransformer.ts +10 -0
  148. 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 a compilation error.
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 a compilation error.
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
- * @tempate Expected type of decoded value
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
- * @tempate Expected type of decoded value
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
- * @tempate Expected type of decoded value
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
- * @tempate Expected type of decoded value
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
- * @tempate Expected type of decoded value
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
- * @tempate Expected type of decoded value
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
- * @tempate Expected type of decoded value
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
- * @tempate Expected type of decoded value
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 a
366
- * compilation error.
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 a
407
- * compilation error.
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 a
440
- * compilation error.
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 a
482
- * compilation error.
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 a
515
- * compilation error.
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 a
558
- * compilation error.
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 a
592
- * compilation error.
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(createAssertDecode, Namespace.assert("createAssertDecode"));
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(createAssertEncode, Namespace.assert("createAssertEncode"));
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
+ }