api-farmer 0.0.8 → 0.0.9
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/{chunk-L33J46FJ.js → chunk-ZOF4QGMP.js} +6 -11
- package/dist/cli.cjs +6 -11
- package/dist/cli.js +1 -1
- package/dist/{generate-C3K2GRQJ.js → generate-KEVAHIZH.js} +1 -1
- package/dist/index.cjs +6 -11
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -22776,11 +22776,8 @@ function transformType({ verb, entity }) {
|
|
|
22776
22776
|
function transformTypeValue({ path: path13, method }) {
|
|
22777
22777
|
return `paths['${path13}']['${method}']`;
|
|
22778
22778
|
}
|
|
22779
|
-
function transformTypeQuery({
|
|
22780
|
-
|
|
22781
|
-
entity
|
|
22782
|
-
}) {
|
|
22783
|
-
return `Api${verb}${entity}Query`;
|
|
22779
|
+
function transformTypeQuery({ type: type2 }) {
|
|
22780
|
+
return `${type2}Query`;
|
|
22784
22781
|
}
|
|
22785
22782
|
function transformTypeQueryValue({
|
|
22786
22783
|
type: type2
|
|
@@ -22788,10 +22785,9 @@ function transformTypeQueryValue({
|
|
|
22788
22785
|
return `${type2}['parameters']['query']`;
|
|
22789
22786
|
}
|
|
22790
22787
|
function transformTypeRequestBody({
|
|
22791
|
-
|
|
22792
|
-
entity
|
|
22788
|
+
type: type2
|
|
22793
22789
|
}) {
|
|
22794
|
-
return
|
|
22790
|
+
return `${type2}RequestBody`;
|
|
22795
22791
|
}
|
|
22796
22792
|
function transformTypeRequestBodyValue({
|
|
22797
22793
|
type: type2,
|
|
@@ -22800,10 +22796,9 @@ function transformTypeRequestBodyValue({
|
|
|
22800
22796
|
return required ? `${type2}['requestBody']['content']['application/json']` : `NonNullable<${type2}['requestBody']>['content']['application/json'] | undefined`;
|
|
22801
22797
|
}
|
|
22802
22798
|
function transformTypeResponseBody({
|
|
22803
|
-
|
|
22804
|
-
entity
|
|
22799
|
+
type: type2
|
|
22805
22800
|
}) {
|
|
22806
|
-
return
|
|
22801
|
+
return `${type2}ResponseBody`;
|
|
22807
22802
|
}
|
|
22808
22803
|
function transformTypeResponseBodyValue({
|
|
22809
22804
|
type: type2,
|
package/dist/cli.cjs
CHANGED
|
@@ -102036,11 +102036,8 @@ function transformType({ verb, entity }) {
|
|
|
102036
102036
|
function transformTypeValue({ path: path13, method }) {
|
|
102037
102037
|
return `paths['${path13}']['${method}']`;
|
|
102038
102038
|
}
|
|
102039
|
-
function transformTypeQuery({
|
|
102040
|
-
|
|
102041
|
-
entity
|
|
102042
|
-
}) {
|
|
102043
|
-
return `Api${verb}${entity}Query`;
|
|
102039
|
+
function transformTypeQuery({ type: type2 }) {
|
|
102040
|
+
return `${type2}Query`;
|
|
102044
102041
|
}
|
|
102045
102042
|
function transformTypeQueryValue({
|
|
102046
102043
|
type: type2
|
|
@@ -102048,10 +102045,9 @@ function transformTypeQueryValue({
|
|
|
102048
102045
|
return `${type2}['parameters']['query']`;
|
|
102049
102046
|
}
|
|
102050
102047
|
function transformTypeRequestBody({
|
|
102051
|
-
|
|
102052
|
-
entity
|
|
102048
|
+
type: type2
|
|
102053
102049
|
}) {
|
|
102054
|
-
return
|
|
102050
|
+
return `${type2}RequestBody`;
|
|
102055
102051
|
}
|
|
102056
102052
|
function transformTypeRequestBodyValue({
|
|
102057
102053
|
type: type2,
|
|
@@ -102060,10 +102056,9 @@ function transformTypeRequestBodyValue({
|
|
|
102060
102056
|
return required ? `${type2}['requestBody']['content']['application/json']` : `NonNullable<${type2}['requestBody']>['content']['application/json'] | undefined`;
|
|
102061
102057
|
}
|
|
102062
102058
|
function transformTypeResponseBody({
|
|
102063
|
-
|
|
102064
|
-
entity
|
|
102059
|
+
type: type2
|
|
102065
102060
|
}) {
|
|
102066
|
-
return
|
|
102061
|
+
return `${type2}ResponseBody`;
|
|
102067
102062
|
}
|
|
102068
102063
|
function transformTypeResponseBodyValue({
|
|
102069
102064
|
type: type2,
|
package/dist/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Command } from "commander";
|
|
|
9
9
|
var program = new Command();
|
|
10
10
|
program.version(getCliVersion());
|
|
11
11
|
program.action(async () => {
|
|
12
|
-
const { generate } = await import("./generate-
|
|
12
|
+
const { generate } = await import("./generate-KEVAHIZH.js");
|
|
13
13
|
return generate();
|
|
14
14
|
});
|
|
15
15
|
program.parse();
|
package/dist/index.cjs
CHANGED
|
@@ -79300,11 +79300,8 @@ function transformType({ verb, entity }) {
|
|
|
79300
79300
|
function transformTypeValue({ path: path13, method }) {
|
|
79301
79301
|
return `paths['${path13}']['${method}']`;
|
|
79302
79302
|
}
|
|
79303
|
-
function transformTypeQuery({
|
|
79304
|
-
|
|
79305
|
-
entity
|
|
79306
|
-
}) {
|
|
79307
|
-
return `Api${verb}${entity}Query`;
|
|
79303
|
+
function transformTypeQuery({ type: type2 }) {
|
|
79304
|
+
return `${type2}Query`;
|
|
79308
79305
|
}
|
|
79309
79306
|
function transformTypeQueryValue({
|
|
79310
79307
|
type: type2
|
|
@@ -79312,10 +79309,9 @@ function transformTypeQueryValue({
|
|
|
79312
79309
|
return `${type2}['parameters']['query']`;
|
|
79313
79310
|
}
|
|
79314
79311
|
function transformTypeRequestBody({
|
|
79315
|
-
|
|
79316
|
-
entity
|
|
79312
|
+
type: type2
|
|
79317
79313
|
}) {
|
|
79318
|
-
return
|
|
79314
|
+
return `${type2}RequestBody`;
|
|
79319
79315
|
}
|
|
79320
79316
|
function transformTypeRequestBodyValue({
|
|
79321
79317
|
type: type2,
|
|
@@ -79324,10 +79320,9 @@ function transformTypeRequestBodyValue({
|
|
|
79324
79320
|
return required ? `${type2}['requestBody']['content']['application/json']` : `NonNullable<${type2}['requestBody']>['content']['application/json'] | undefined`;
|
|
79325
79321
|
}
|
|
79326
79322
|
function transformTypeResponseBody({
|
|
79327
|
-
|
|
79328
|
-
entity
|
|
79323
|
+
type: type2
|
|
79329
79324
|
}) {
|
|
79330
|
-
return
|
|
79325
|
+
return `${type2}ResponseBody`;
|
|
79331
79326
|
}
|
|
79332
79327
|
function transformTypeResponseBodyValue({
|
|
79333
79328
|
type: type2,
|
package/dist/index.d.cts
CHANGED
|
@@ -31,7 +31,7 @@ declare function transformTypeValue({ path, method }: {
|
|
|
31
31
|
verb: string;
|
|
32
32
|
entity: string;
|
|
33
33
|
} & TransformerBaseArgs): string;
|
|
34
|
-
declare function transformTypeQuery({
|
|
34
|
+
declare function transformTypeQuery({ type }: {
|
|
35
35
|
type: string;
|
|
36
36
|
verb: string;
|
|
37
37
|
entity: string;
|
|
@@ -41,7 +41,7 @@ declare function transformTypeQueryValue({ type, }: {
|
|
|
41
41
|
verb: string;
|
|
42
42
|
entity: string;
|
|
43
43
|
} & TransformerBaseArgs): string;
|
|
44
|
-
declare function transformTypeRequestBody({
|
|
44
|
+
declare function transformTypeRequestBody({ type, }: {
|
|
45
45
|
type: string;
|
|
46
46
|
verb: string;
|
|
47
47
|
entity: string;
|
|
@@ -52,7 +52,7 @@ declare function transformTypeRequestBodyValue({ type, required, }: {
|
|
|
52
52
|
entity: string;
|
|
53
53
|
required: boolean;
|
|
54
54
|
} & TransformerBaseArgs): string;
|
|
55
|
-
declare function transformTypeResponseBody({
|
|
55
|
+
declare function transformTypeResponseBody({ type, }: {
|
|
56
56
|
type: string;
|
|
57
57
|
verb: string;
|
|
58
58
|
entity: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare function transformTypeValue({ path, method }: {
|
|
|
31
31
|
verb: string;
|
|
32
32
|
entity: string;
|
|
33
33
|
} & TransformerBaseArgs): string;
|
|
34
|
-
declare function transformTypeQuery({
|
|
34
|
+
declare function transformTypeQuery({ type }: {
|
|
35
35
|
type: string;
|
|
36
36
|
verb: string;
|
|
37
37
|
entity: string;
|
|
@@ -41,7 +41,7 @@ declare function transformTypeQueryValue({ type, }: {
|
|
|
41
41
|
verb: string;
|
|
42
42
|
entity: string;
|
|
43
43
|
} & TransformerBaseArgs): string;
|
|
44
|
-
declare function transformTypeRequestBody({
|
|
44
|
+
declare function transformTypeRequestBody({ type, }: {
|
|
45
45
|
type: string;
|
|
46
46
|
verb: string;
|
|
47
47
|
entity: string;
|
|
@@ -52,7 +52,7 @@ declare function transformTypeRequestBodyValue({ type, required, }: {
|
|
|
52
52
|
entity: string;
|
|
53
53
|
required: boolean;
|
|
54
54
|
} & TransformerBaseArgs): string;
|
|
55
|
-
declare function transformTypeResponseBody({
|
|
55
|
+
declare function transformTypeResponseBody({ type, }: {
|
|
56
56
|
type: string;
|
|
57
57
|
verb: string;
|
|
58
58
|
entity: string;
|
package/dist/index.js
CHANGED