@kubb/plugin-ts 3.0.0-alpha.17 → 3.0.0-alpha.18
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/README.md +0 -4
- package/dist/{chunk-YVI4OC7Y.cjs → chunk-7R43PFSO.cjs} +4 -4
- package/dist/{chunk-YVI4OC7Y.cjs.map → chunk-7R43PFSO.cjs.map} +1 -1
- package/dist/{chunk-EWI2PAND.js → chunk-RSQ6MDNS.js} +4 -4
- package/dist/{chunk-EWI2PAND.js.map → chunk-RSQ6MDNS.js.map} +1 -1
- package/dist/{chunk-LKQDTRGL.cjs → chunk-WHKHMJYJ.cjs} +11 -11
- package/dist/{chunk-LKQDTRGL.cjs.map → chunk-WHKHMJYJ.cjs.map} +1 -1
- package/dist/{chunk-4UQ7WF6J.js → chunk-ZLZM6ARE.js} +3 -3
- package/dist/{chunk-4UQ7WF6J.js.map → chunk-ZLZM6ARE.js.map} +1 -1
- package/dist/components.cjs +3 -3
- package/dist/components.js +1 -1
- package/dist/generators.cjs +4 -4
- package/dist/generators.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/package.json +10 -12
- package/src/generators/__snapshots__/bodyUploadFileApiAssetsPost.ts +5 -5
- package/src/generators/__snapshots__/catTypeAsConst.ts +10 -10
- package/src/generators/__snapshots__/createPet.ts +26 -26
- package/src/generators/__snapshots__/createPetWithUnknownTypeUnknown.ts +26 -26
- package/src/generators/__snapshots__/deletePet.ts +4 -4
- package/src/generators/__snapshots__/dogTypeAsConst.ts +10 -10
- package/src/generators/__snapshots__/enumAllOf.ts +7 -7
- package/src/generators/__snapshots__/enumArray.ts +16 -12
- package/src/generators/__snapshots__/enumInObject.ts +10 -10
- package/src/generators/__snapshots__/enumItems.ts +5 -5
- package/src/generators/__snapshots__/enumNames.ts +3 -3
- package/src/generators/__snapshots__/enumNamesConst.ts +3 -3
- package/src/generators/__snapshots__/enumNamesLiteral.ts +2 -2
- package/src/generators/__snapshots__/enumNamesPascalConst.ts +5 -5
- package/src/generators/__snapshots__/enumNamesType.ts +5 -5
- package/src/generators/__snapshots__/enumNullableMember.ts +5 -5
- package/src/generators/__snapshots__/enumNullableType.ts +5 -5
- package/src/generators/__snapshots__/enumString.ts +7 -7
- package/src/generators/__snapshots__/enumVarNamesType.ts +5 -5
- package/src/generators/__snapshots__/getPets.ts +19 -19
- package/src/generators/__snapshots__/mixedValueTypeConst.ts +6 -6
- package/src/generators/__snapshots__/nullConstNull.ts +3 -3
- package/src/generators/__snapshots__/numberValueConst.ts +6 -6
- package/src/generators/__snapshots__/petMapper.ts +14 -14
- package/src/generators/__snapshots__/petQuestionToken.ts +14 -14
- package/src/generators/__snapshots__/petQuestionTokenAndUndefined.ts +14 -14
- package/src/generators/__snapshots__/petUndefined.ts +14 -14
- package/src/generators/__snapshots__/pets.ts +13 -13
- package/src/generators/__snapshots__/petsStoreDiscriminator.ts +10 -10
- package/src/generators/__snapshots__/petsStoreRef.ts +1 -1
- package/src/generators/__snapshots__/plainDateDate.ts +1 -1
- package/src/generators/__snapshots__/plainDateString.ts +1 -1
- package/src/generators/__snapshots__/plainEmail.ts +1 -1
- package/src/generators/__snapshots__/plainFile.ts +1 -1
- package/src/generators/__snapshots__/plainTimeDate.ts +1 -1
- package/src/generators/__snapshots__/plainUuid.ts +1 -1
- package/src/generators/__snapshots__/showPetById.ts +24 -24
- package/src/generators/__snapshots__/stringValueConst.ts +6 -6
- package/src/types.ts +1 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type dog = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* @type string, uuid
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* @type number | undefined
|
|
8
|
+
*/
|
|
9
|
+
bark?: number;
|
|
10
|
+
type: "Dog";
|
|
11
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const enumAllOfReasonEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"created_at": "created_at",
|
|
3
|
+
"description": "description"
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
export type EnumAllOfReasonEnum2 = (typeof enumAllOfReasonEnum2)[keyof typeof enumAllOfReasonEnum2]
|
|
6
|
+
export type EnumAllOfReasonEnum2 = (typeof enumAllOfReasonEnum2)[keyof typeof enumAllOfReasonEnum2];
|
|
7
7
|
|
|
8
|
-
export type enumAllOf = {
|
|
9
|
-
|
|
10
|
-
}
|
|
8
|
+
export type enumAllOf = {
|
|
9
|
+
reason?: EnumAllOfReasonEnum2;
|
|
10
|
+
};
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
export const enumArrayIdentifierEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} as const
|
|
2
|
+
"NW": "NW",
|
|
3
|
+
"NE": "NE",
|
|
4
|
+
"SW": "SW",
|
|
5
|
+
"SE": "SE"
|
|
6
|
+
} as const;
|
|
7
7
|
|
|
8
|
-
export type EnumArrayIdentifierEnum2 = (typeof enumArrayIdentifierEnum2)[keyof typeof enumArrayIdentifierEnum2]
|
|
8
|
+
export type EnumArrayIdentifierEnum2 = (typeof enumArrayIdentifierEnum2)[keyof typeof enumArrayIdentifierEnum2];
|
|
9
9
|
|
|
10
|
-
export type enumArray = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
export type enumArray = {
|
|
11
|
+
/**
|
|
12
|
+
* @type array | undefined
|
|
13
|
+
*/
|
|
14
|
+
identifier?: [
|
|
15
|
+
number,
|
|
16
|
+
string,
|
|
17
|
+
EnumArrayIdentifierEnum2
|
|
18
|
+
];
|
|
19
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export const enumInObjectReasonEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"created_at": "created_at",
|
|
3
|
+
"description": "description"
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
export type EnumInObjectReasonEnum2 = (typeof enumInObjectReasonEnum2)[keyof typeof enumInObjectReasonEnum2]
|
|
6
|
+
export type EnumInObjectReasonEnum2 = (typeof enumInObjectReasonEnum2)[keyof typeof enumInObjectReasonEnum2];
|
|
7
7
|
|
|
8
|
-
export type enumInObject = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
8
|
+
export type enumInObject = {
|
|
9
|
+
/**
|
|
10
|
+
* @type string | undefined
|
|
11
|
+
*/
|
|
12
|
+
reason?: EnumInObjectReasonEnum2;
|
|
13
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const enumItemsEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"created_at": "created_at",
|
|
3
|
+
"description": "description"
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
export type EnumItemsEnum2 = (typeof enumItemsEnum2)[keyof typeof enumItemsEnum2]
|
|
6
|
+
export type EnumItemsEnum2 = (typeof enumItemsEnum2)[keyof typeof enumItemsEnum2];
|
|
7
7
|
|
|
8
|
-
export type enumItems = EnumItemsEnum2[]
|
|
8
|
+
export type enumItems = EnumItemsEnum2[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type EnumNamesTypeEnum2 = 0 | 1
|
|
1
|
+
export type EnumNamesTypeEnum2 = 0 | 1;
|
|
2
2
|
|
|
3
|
-
export type enumNamesType = EnumNamesTypeEnum2
|
|
3
|
+
export type enumNamesType = EnumNamesTypeEnum2;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const EnumNamesTypeEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"Pending": 0,
|
|
3
|
+
"Received": 1
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
type EnumNamesTypeEnum2 = (typeof EnumNamesTypeEnum2)[keyof typeof EnumNamesTypeEnum2]
|
|
6
|
+
type EnumNamesTypeEnum2 = (typeof EnumNamesTypeEnum2)[keyof typeof EnumNamesTypeEnum2];
|
|
7
7
|
|
|
8
|
-
export type enumNamesType = EnumNamesTypeEnum2
|
|
8
|
+
export type enumNamesType = EnumNamesTypeEnum2;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const enumNamesType = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"Pending": 0,
|
|
3
|
+
"Received": 1
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
export type EnumNamesTypeEnum2 = (typeof enumNamesType)[keyof typeof enumNamesType]
|
|
6
|
+
export type EnumNamesTypeEnum2 = (typeof enumNamesType)[keyof typeof enumNamesType];
|
|
7
7
|
|
|
8
|
-
export type enumNamesType = EnumNamesTypeEnum2
|
|
8
|
+
export type enumNamesType = EnumNamesTypeEnum2;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const enumNullableMemberEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"first": "first",
|
|
3
|
+
"second": "second"
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
export type EnumNullableMemberEnum2 = (typeof enumNullableMemberEnum2)[keyof typeof enumNullableMemberEnum2]
|
|
6
|
+
export type EnumNullableMemberEnum2 = (typeof enumNullableMemberEnum2)[keyof typeof enumNullableMemberEnum2];
|
|
7
7
|
|
|
8
|
-
export type enumNullableMember = EnumNullableMemberEnum2 | null
|
|
8
|
+
export type enumNullableMember = EnumNullableMemberEnum2 | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const enumNullableTypeEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"first": "first",
|
|
3
|
+
"second": "second"
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
export type EnumNullableTypeEnum2 = (typeof enumNullableTypeEnum2)[keyof typeof enumNullableTypeEnum2]
|
|
6
|
+
export type EnumNullableTypeEnum2 = (typeof enumNullableTypeEnum2)[keyof typeof enumNullableTypeEnum2];
|
|
7
7
|
|
|
8
|
-
export type enumNullableType = EnumNullableTypeEnum2 | null
|
|
8
|
+
export type enumNullableType = EnumNullableTypeEnum2 | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const enumStringEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} as const
|
|
2
|
+
"created_at": "created_at",
|
|
3
|
+
"description": "description",
|
|
4
|
+
"FILE.UPLOADED": "FILE.UPLOADED",
|
|
5
|
+
"FILE.DOWNLOADED": "FILE.DOWNLOADED"
|
|
6
|
+
} as const;
|
|
7
7
|
|
|
8
|
-
export type EnumStringEnum2 = (typeof enumStringEnum2)[keyof typeof enumStringEnum2]
|
|
8
|
+
export type EnumStringEnum2 = (typeof enumStringEnum2)[keyof typeof enumStringEnum2];
|
|
9
9
|
|
|
10
|
-
export type enumString = EnumStringEnum2
|
|
10
|
+
export type enumString = EnumStringEnum2;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const enumVarNamesTypeEnum2 = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} as const
|
|
2
|
+
"Pending": 0,
|
|
3
|
+
"Received": 1
|
|
4
|
+
} as const;
|
|
5
5
|
|
|
6
|
-
export type EnumVarNamesTypeEnum2 = (typeof enumVarNamesTypeEnum2)[keyof typeof enumVarNamesTypeEnum2]
|
|
6
|
+
export type EnumVarNamesTypeEnum2 = (typeof enumVarNamesTypeEnum2)[keyof typeof enumVarNamesTypeEnum2];
|
|
7
7
|
|
|
8
|
-
export type enumVarNamesType = EnumVarNamesTypeEnum2
|
|
8
|
+
export type enumVarNamesType = EnumVarNamesTypeEnum2;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export type ListPetsQueryParams = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* @description How many items to return at one time (max 100)
|
|
4
|
+
* @type string | undefined
|
|
5
|
+
*/
|
|
6
|
+
limit?: string;
|
|
7
|
+
};
|
|
8
8
|
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
10
|
* @description A paged array of pets
|
|
11
|
-
|
|
12
|
-
export type ListPets200 = pets
|
|
11
|
+
*/
|
|
12
|
+
export type ListPets200 = pets;
|
|
13
13
|
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
15
|
* @description unexpected error
|
|
16
|
-
|
|
17
|
-
export type ListPetsError = error
|
|
16
|
+
*/
|
|
17
|
+
export type ListPetsError = error;
|
|
18
18
|
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
20
|
* @description A paged array of pets
|
|
21
|
-
|
|
22
|
-
export type ListPetsQueryResponse = pets
|
|
21
|
+
*/
|
|
22
|
+
export type ListPetsQueryResponse = pets;
|
|
23
23
|
|
|
24
|
-
export type listPetsQuery = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
24
|
+
export type listPetsQuery = {
|
|
25
|
+
Response: listPetsQueryResponse;
|
|
26
|
+
QueryParams: listPetsQueryParams;
|
|
27
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description The value of this keyword MAY be null. \nUse of this keyword is functionally equivalent to an \"enum\" (Section 6.1.2) with a single value.\nAn instance validates successfully against this keyword if its value is equal to the value of the keyword.\n
|
|
3
|
-
|
|
3
|
+
*/
|
|
4
4
|
export type nullConst = {
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
withoutValue?: null;
|
|
6
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export type pet = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* @type integer, int64
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* @type string
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* @type string | undefined
|
|
12
|
+
*/
|
|
13
|
+
tag?: string;
|
|
14
|
+
category?: string;
|
|
15
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export type pet = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* @type integer, int64
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* @type string
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* @type string | undefined
|
|
12
|
+
*/
|
|
13
|
+
tag?: string;
|
|
14
|
+
category?: category;
|
|
15
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export type pet = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* @type integer, int64
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* @type string
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* @type string | undefined
|
|
12
|
+
*/
|
|
13
|
+
tag?: string | undefined;
|
|
14
|
+
category?: category | undefined;
|
|
15
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export type pet = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* @type integer, int64
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* @type string
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* @type string | undefined
|
|
12
|
+
*/
|
|
13
|
+
tag: string | undefined;
|
|
14
|
+
category: category | undefined;
|
|
15
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type pets = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}[]
|
|
2
|
+
/**
|
|
3
|
+
* @type integer, int64
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* @type string
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* @type string | undefined
|
|
12
|
+
*/
|
|
13
|
+
tag?: string;
|
|
14
|
+
}[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description A project is an analysis project. It has a name, an id, and has a dataset
|
|
3
|
-
|
|
3
|
+
*/
|
|
4
4
|
export type petstore = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
5
|
+
/**
|
|
6
|
+
* @type integer
|
|
7
|
+
*/
|
|
8
|
+
id: number;
|
|
9
|
+
/**
|
|
10
|
+
* @type array | undefined
|
|
11
|
+
*/
|
|
12
|
+
pets?: (cat | dog)[];
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type pets = pet[]
|
|
1
|
+
export type pets = pet[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type plainDate = Date
|
|
1
|
+
export type plainDate = Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type plainDate = string
|
|
1
|
+
export type plainDate = string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type plainEmail = string
|
|
1
|
+
export type plainEmail = string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type plainFile = Blob
|
|
1
|
+
export type plainFile = Blob;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type plainTime = Date
|
|
1
|
+
export type plainTime = Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type plainUuid = string
|
|
1
|
+
export type plainUuid = string;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
export type ShowPetByIdPathParams = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* @description The id of the pet to retrieve
|
|
4
|
+
* @type string
|
|
5
|
+
*/
|
|
6
|
+
petId: string;
|
|
7
|
+
/**
|
|
8
|
+
* @description The id of the pet to retrieve
|
|
9
|
+
* @type string
|
|
10
|
+
*/
|
|
11
|
+
testId: string;
|
|
12
|
+
};
|
|
13
13
|
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
15
|
* @description Expected response to a valid request
|
|
16
|
-
|
|
17
|
-
export type ShowPetById200 = pet
|
|
16
|
+
*/
|
|
17
|
+
export type ShowPetById200 = pet;
|
|
18
18
|
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
20
|
* @description unexpected error
|
|
21
|
-
|
|
22
|
-
export type ShowPetByIdError = error
|
|
21
|
+
*/
|
|
22
|
+
export type ShowPetByIdError = error;
|
|
23
23
|
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
25
|
* @description Expected response to a valid request
|
|
26
|
-
|
|
27
|
-
export type ShowPetByIdQueryResponse = pet
|
|
26
|
+
*/
|
|
27
|
+
export type ShowPetByIdQueryResponse = pet;
|
|
28
28
|
|
|
29
|
-
export type showPetByIdQuery = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
29
|
+
export type showPetByIdQuery = {
|
|
30
|
+
Response: showPetByIdQueryResponse;
|
|
31
|
+
PathParams: showPetByIdPathParams;
|
|
32
|
+
};
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PluginFactoryOptions, ResolveNameParams } from '@kubb/core'
|
|
2
2
|
import type * as KubbFile from '@kubb/fs/types'
|
|
3
3
|
import type { ts } from '@kubb/parser-ts'
|
|
4
4
|
import type { Exclude, Include, Override, ResolvePathOptions } from '@kubb/plugin-oas'
|
|
@@ -122,10 +122,4 @@ type ResolvedOptions = {
|
|
|
122
122
|
mapper: Record<string, any>
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
export type FileMeta = {
|
|
126
|
-
pluginKey?: Plugin['key']
|
|
127
|
-
name?: string
|
|
128
|
-
tag?: string
|
|
129
|
-
}
|
|
130
|
-
|
|
131
125
|
export type PluginTs = PluginFactoryOptions<'plugin-ts', Options, ResolvedOptions, never, ResolvePathOptions>
|