@kubb/plugin-ts 4.29.1 → 4.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/package.json +9 -8
  2. package/dist/types-BX_NNqoT.d.ts +0 -171
  3. package/src/generators/__snapshots__/ACHDetailsResponse.ts +0 -19
  4. package/src/generators/__snapshots__/bodyTest.ts +0 -11
  5. package/src/generators/__snapshots__/bodyUploadFileApiAssetsPost.ts +0 -14
  6. package/src/generators/__snapshots__/catDogDiscriminator.ts +0 -18
  7. package/src/generators/__snapshots__/catDogDiscriminatorWithoutMapping.ts +0 -15
  8. package/src/generators/__snapshots__/catTypeAsConst.ts +0 -22
  9. package/src/generators/__snapshots__/createPet.ts +0 -47
  10. package/src/generators/__snapshots__/createPetWithEmptySchemaTypeUnknown.ts +0 -47
  11. package/src/generators/__snapshots__/createPetWithEmptySchemaTypeVoid.ts +0 -47
  12. package/src/generators/__snapshots__/createPetWithUnknownTypeUnknown.ts +0 -47
  13. package/src/generators/__snapshots__/createPetWithUnknownTypeVoid.ts +0 -47
  14. package/src/generators/__snapshots__/deletePet.ts +0 -11
  15. package/src/generators/__snapshots__/discriminatorInheritVehicle.ts +0 -17
  16. package/src/generators/__snapshots__/discriminatorStrictVehicle.ts +0 -11
  17. package/src/generators/__snapshots__/dogTypeAsConst.ts +0 -22
  18. package/src/generators/__snapshots__/enumAllOf.ts +0 -18
  19. package/src/generators/__snapshots__/enumArray.ts +0 -8
  20. package/src/generators/__snapshots__/enumArray20.ts +0 -20
  21. package/src/generators/__snapshots__/enumInObject.ts +0 -18
  22. package/src/generators/__snapshots__/enumItems.ts +0 -13
  23. package/src/generators/__snapshots__/enumNames.ts +0 -11
  24. package/src/generators/__snapshots__/enumNamesCamelCase.ts +0 -11
  25. package/src/generators/__snapshots__/enumNamesConst.ts +0 -11
  26. package/src/generators/__snapshots__/enumNamesInlineLiteral.ts +0 -6
  27. package/src/generators/__snapshots__/enumNamesLiteral.ts +0 -8
  28. package/src/generators/__snapshots__/enumNamesPascalCase.ts +0 -11
  29. package/src/generators/__snapshots__/enumNamesPascalConst.ts +0 -13
  30. package/src/generators/__snapshots__/enumNamesScreamingSnakeCase.ts +0 -11
  31. package/src/generators/__snapshots__/enumNamesSnakeCase.ts +0 -11
  32. package/src/generators/__snapshots__/enumNamesType.ts +0 -13
  33. package/src/generators/__snapshots__/enumNullableMember.ts +0 -13
  34. package/src/generators/__snapshots__/enumNullableType.ts +0 -13
  35. package/src/generators/__snapshots__/enumString.ts +0 -15
  36. package/src/generators/__snapshots__/enumStringScreamingSnakeCase.ts +0 -15
  37. package/src/generators/__snapshots__/enumVarNamesType.ts +0 -13
  38. package/src/generators/__snapshots__/findArtifactsWithMixedQueryParams.ts +0 -49
  39. package/src/generators/__snapshots__/fooBase.ts +0 -16
  40. package/src/generators/__snapshots__/fooNumber.ts +0 -16
  41. package/src/generators/__snapshots__/getPets.ts +0 -30
  42. package/src/generators/__snapshots__/mixedValueTypeConst.ts +0 -14
  43. package/src/generators/__snapshots__/nullConstNull.ts +0 -11
  44. package/src/generators/__snapshots__/nullable.ts +0 -11
  45. package/src/generators/__snapshots__/numberValueConst.ts +0 -14
  46. package/src/generators/__snapshots__/pascalEnum.ts +0 -13
  47. package/src/generators/__snapshots__/paymentAccountDetailsResponse.ts +0 -12
  48. package/src/generators/__snapshots__/performActionTestingWithSnakeCaseParamsAndParamsCasingCamelcase.ts +0 -45
  49. package/src/generators/__snapshots__/petDict.ts +0 -16
  50. package/src/generators/__snapshots__/petIntegerTypeNumber.ts +0 -35
  51. package/src/generators/__snapshots__/petMapper.ts +0 -23
  52. package/src/generators/__snapshots__/petQuestionToken.ts +0 -35
  53. package/src/generators/__snapshots__/petQuestionTokenAndUndefined.ts +0 -37
  54. package/src/generators/__snapshots__/petUndefined.ts +0 -37
  55. package/src/generators/__snapshots__/pets.ts +0 -19
  56. package/src/generators/__snapshots__/petsInterface.ts +0 -19
  57. package/src/generators/__snapshots__/petsStoreAdvancedDiscriminator.ts +0 -33
  58. package/src/generators/__snapshots__/petsStoreDiscriminator.ts +0 -18
  59. package/src/generators/__snapshots__/petsStoreNotifcationDiscriminator.ts +0 -26
  60. package/src/generators/__snapshots__/petsStoreRef.ts +0 -6
  61. package/src/generators/__snapshots__/plainDateDate.ts +0 -9
  62. package/src/generators/__snapshots__/plainDateString.ts +0 -9
  63. package/src/generators/__snapshots__/plainEmail.ts +0 -9
  64. package/src/generators/__snapshots__/plainFile.ts +0 -9
  65. package/src/generators/__snapshots__/plainTimeDate.ts +0 -9
  66. package/src/generators/__snapshots__/plainUuid.ts +0 -9
  67. package/src/generators/__snapshots__/readOnly.ts +0 -25
  68. package/src/generators/__snapshots__/showPetById.ts +0 -36
  69. package/src/generators/__snapshots__/stringValueConst.ts +0 -14
  70. package/src/generators/__snapshots__/systemsWithExplodeForm.ts +0 -24
@@ -1,18 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumInObjectReasonEnum = {
7
- created_at: 'created_at',
8
- description: 'description',
9
- } as const
10
-
11
- export type EnumInObjectReasonEnumKey = (typeof enumInObjectReasonEnum)[keyof typeof enumInObjectReasonEnum]
12
-
13
- export type enumInObject = {
14
- /**
15
- * @type string | undefined
16
- */
17
- reason?: EnumInObjectReasonEnumKey
18
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumItemsEnum = {
7
- created_at: 'created_at',
8
- description: 'description',
9
- } as const
10
-
11
- export type EnumItemsEnumKey = (typeof enumItemsEnum)[keyof typeof enumItemsEnum]
12
-
13
- export type enumItems = EnumItemsEnumKey[]
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export enum EnumNamesTypeEnum {
7
- Pending = 0,
8
- Received = 1,
9
- }
10
-
11
- export type enumNamesType = EnumNamesTypeEnum
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export enum EnumNamesTypeEnum {
7
- pending = 0,
8
- received = 1,
9
- }
10
-
11
- export type enumNamesType = EnumNamesTypeEnum
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enum EnumNamesTypeEnum {
7
- Pending = 0,
8
- Received = 1,
9
- }
10
-
11
- export type enumNamesType = EnumNamesTypeEnum
@@ -1,6 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export type enumNamesType = 0 | 1
@@ -1,8 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export type EnumNamesTypeEnum = 0 | 1
7
-
8
- export type enumNamesType = EnumNamesTypeEnum
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export enum EnumNamesTypeEnum {
7
- Pending = 0,
8
- Received = 1,
9
- }
10
-
11
- export type enumNamesType = EnumNamesTypeEnum
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const EnumNamesType = {
7
- Pending: 0,
8
- Received: 1,
9
- } as const
10
-
11
- export type EnumNamesTypeEnumKey = (typeof EnumNamesType)[keyof typeof EnumNamesType]
12
-
13
- export type enumNamesType = EnumNamesTypeEnumKey
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export enum EnumNamesTypeEnum {
7
- PENDING = 0,
8
- RECEIVED = 1,
9
- }
10
-
11
- export type enumNamesType = EnumNamesTypeEnum
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export enum EnumNamesTypeEnum {
7
- pending = 0,
8
- received = 1,
9
- }
10
-
11
- export type enumNamesType = EnumNamesTypeEnum
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumNamesType = {
7
- Pending: 0,
8
- Received: 1,
9
- } as const
10
-
11
- export type EnumNamesTypeEnumKey = (typeof enumNamesType)[keyof typeof enumNamesType]
12
-
13
- export type enumNamesType = EnumNamesTypeEnumKey
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumNullableMemberEnum = {
7
- first: 'first',
8
- second: 'second',
9
- } as const
10
-
11
- export type EnumNullableMemberEnumKey = (typeof enumNullableMemberEnum)[keyof typeof enumNullableMemberEnum]
12
-
13
- export type enumNullableMember = EnumNullableMemberEnumKey | null
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumNullableTypeEnum = {
7
- first: 'first',
8
- second: 'second',
9
- } as const
10
-
11
- export type EnumNullableTypeEnumKey = (typeof enumNullableTypeEnum)[keyof typeof enumNullableTypeEnum]
12
-
13
- export type enumNullableType = EnumNullableTypeEnumKey | null
@@ -1,15 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumStringEnum = {
7
- 'created at': 'created at',
8
- description: 'description',
9
- 'FILE.UPLOADED': 'FILE.UPLOADED',
10
- 'FILE.DOWNLOADED': 'FILE.DOWNLOADED',
11
- } as const
12
-
13
- export type EnumStringEnumKey = (typeof enumStringEnum)[keyof typeof enumStringEnum]
14
-
15
- export type enumString = EnumStringEnumKey
@@ -1,15 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumStringEnum = {
7
- CREATED_AT: 'created at',
8
- DESCRIPTION: 'description',
9
- FILE_UPLOADED: 'FILE.UPLOADED',
10
- FILE_DOWNLOADED: 'FILE.DOWNLOADED',
11
- } as const
12
-
13
- export type EnumStringEnumKey = (typeof enumStringEnum)[keyof typeof enumStringEnum]
14
-
15
- export type enumString = EnumStringEnumKey
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const enumVarNamesTypeEnum = {
7
- Pending: 0,
8
- Received: 1,
9
- } as const
10
-
11
- export type EnumVarNamesTypeEnumKey = (typeof enumVarNamesTypeEnum)[keyof typeof enumVarNamesTypeEnum]
12
-
13
- export type enumVarNamesType = EnumVarNamesTypeEnumKey
@@ -1,49 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const findArtifactsQueryParamsInclude = {
7
- author: 'author',
8
- tags: 'tags',
9
- } as const
10
-
11
- export type FindArtifactsQueryParamsIncludeKey = (typeof findArtifactsQueryParamsInclude)[keyof typeof findArtifactsQueryParamsInclude]
12
-
13
- export type FindArtifactsQueryParams = {
14
- /**
15
- * @type string | undefined
16
- */
17
- include?: FindArtifactsQueryParamsIncludeKey
18
- /**
19
- * @type string | undefined
20
- */
21
- sort?: string
22
- /**
23
- * @type object | undefined
24
- */
25
- page?: {
26
- /**
27
- * @type integer | undefined
28
- */
29
- number?: number
30
- /**
31
- * @type integer | undefined
32
- */
33
- size?: number
34
- }
35
- [key: string]: unknown
36
- }
37
-
38
- /**
39
- * @description OK
40
- */
41
- export type FindArtifacts200 = object
42
-
43
- export type FindArtifactsQueryResponse = findArtifacts200
44
-
45
- export type FindArtifactsQuery = {
46
- Response: findArtifacts200
47
- QueryParams: findArtifactsQueryParams
48
- Errors: any
49
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export type FooBasetypeEnum = 'type-string' | 'type-number'
7
-
8
- /**
9
- * FooBase
10
- */
11
- export type fooBase = {
12
- /**
13
- * @type string
14
- */
15
- $type: FooBasetypeEnum
16
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * FooNumber
8
- */
9
- export type fooNumber = (fooBase & {
10
- $type: 'type-number'
11
- }) & {
12
- /**
13
- * @type number
14
- */
15
- value: number
16
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export type ListPetsQueryParams = {
7
- /**
8
- * @description How many items to return at one time (max 100)
9
- * @type string | undefined
10
- */
11
- limit?: string
12
- }
13
-
14
- /**
15
- * @description A paged array of pets
16
- */
17
- export type ListPets200 = pets
18
-
19
- /**
20
- * @description unexpected error
21
- */
22
- export type ListPetsError = error
23
-
24
- export type ListPetsQueryResponse = listPets200
25
-
26
- export type ListPetsQuery = {
27
- Response: listPets200
28
- QueryParams: listPetsQueryParams
29
- Errors: any
30
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * MixedValueTypeConst
8
- */
9
- export type mixedValueTypeConst = {
10
- /**
11
- * @type number
12
- */
13
- foobar: 42
14
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * NullConst
8
- */
9
- export type nullConst = {
10
- withoutValue: null
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export type nullable = {
7
- /**
8
- * @type string
9
- */
10
- foo?: string | null
11
- } | null
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * NumberValueConst
8
- */
9
- export type numberValueConst = {
10
- /**
11
- * @type number
12
- */
13
- foobar: 42
14
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export const PASCALEnumsTypeEnum = {
7
- first: 'first',
8
- second: 'second',
9
- } as const
10
-
11
- export type PASCALEnumsTypeEnumKey = (typeof PASCALEnumsTypeEnum)[keyof typeof PASCALEnumsTypeEnum]
12
-
13
- export type PASCALEnumsType = PASCALEnumsTypeEnumKey | null
@@ -1,12 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export type paymentAccountDetailsResponse =
7
- | (ACHDetailsResponse & {
8
- type: 'ACH'
9
- })
10
- | (domesticWireDetailsResponse & {
11
- type: 'DOMESTIC_WIRE'
12
- })
@@ -1,45 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- export type PerformActionTestingPathParams = {
7
- /**
8
- * @type string
9
- */
10
- testId: string
11
- }
12
-
13
- export type PerformActionTestingQueryParams = {
14
- /**
15
- * @type number | undefined
16
- */
17
- secondaryTestingParam?: number
18
- }
19
-
20
- /**
21
- * @description Success
22
- */
23
- export type PerformActionTesting200 = {
24
- /**
25
- * @type string | undefined
26
- */
27
- result?: string
28
- }
29
-
30
- export type PerformActionTestingMutationRequest = {
31
- /**
32
- * @type string | undefined
33
- */
34
- testData?: string
35
- }
36
-
37
- export type PerformActionTestingMutationResponse = performActionTesting200
38
-
39
- export type PerformActionTestingMutation = {
40
- Response: performActionTesting200
41
- Request: performActionTestingMutationRequest
42
- PathParams: performActionTestingPathParams
43
- QueryParams: performActionTestingQueryParams
44
- Errors: any
45
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * PetDict
8
- */
9
- export type petDict = {
10
- /**
11
- * @type object
12
- */
13
- matrix: {
14
- [key: string]: pet
15
- }
16
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * Pet
8
- */
9
- export type pet = {
10
- /**
11
- * @type integer, int64
12
- */
13
- id: number
14
- /**
15
- * @type string
16
- */
17
- name: string
18
- /**
19
- * @type string | undefined
20
- */
21
- tag?: string
22
- /**
23
- * @type object | undefined
24
- */
25
- category?: {
26
- /**
27
- * @type integer | undefined, int64
28
- */
29
- id?: number
30
- /**
31
- * @type string | undefined
32
- */
33
- name?: string
34
- }
35
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * Pet
8
- */
9
- export type pet = {
10
- /**
11
- * @type integer, int64
12
- */
13
- id: bigint
14
- /**
15
- * @type string
16
- */
17
- name: string
18
- /**
19
- * @type string | undefined
20
- */
21
- tag?: string
22
- category?: string
23
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * Pet
8
- */
9
- export type pet = {
10
- /**
11
- * @type integer, int64
12
- */
13
- id: bigint
14
- /**
15
- * @type string
16
- */
17
- name: string
18
- /**
19
- * @type string | undefined
20
- */
21
- tag?: string
22
- /**
23
- * @type object | undefined
24
- */
25
- category?: {
26
- /**
27
- * @type integer | undefined, int64
28
- */
29
- id?: bigint
30
- /**
31
- * @type string | undefined
32
- */
33
- name?: string
34
- }
35
- }
@@ -1,37 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * Pet
8
- */
9
- export type pet = {
10
- /**
11
- * @type integer, int64
12
- */
13
- id: bigint
14
- /**
15
- * @type string
16
- */
17
- name: string
18
- /**
19
- * @type string | undefined
20
- */
21
- tag?: string | undefined
22
- /**
23
- * @type object | undefined
24
- */
25
- category?:
26
- | {
27
- /**
28
- * @type integer | undefined, int64
29
- */
30
- id?: bigint | undefined
31
- /**
32
- * @type string | undefined
33
- */
34
- name?: string | undefined
35
- }
36
- | undefined
37
- }
@@ -1,37 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
-
6
- /**
7
- * Pet
8
- */
9
- export type pet = {
10
- /**
11
- * @type integer, int64
12
- */
13
- id: bigint
14
- /**
15
- * @type string
16
- */
17
- name: string
18
- /**
19
- * @type string | undefined
20
- */
21
- tag: string | undefined
22
- /**
23
- * @type object | undefined
24
- */
25
- category:
26
- | {
27
- /**
28
- * @type integer | undefined, int64
29
- */
30
- id: bigint | undefined
31
- /**
32
- * @type string | undefined
33
- */
34
- name: string | undefined
35
- }
36
- | undefined
37
- }