@flightctl/types 1.0.2 → 1.1.0-rc4
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/imagebuilder/index.d.ts +30 -0
- package/dist/imagebuilder/index.d.ts.map +1 -0
- package/dist/imagebuilder/index.js +15 -0
- package/dist/imagebuilder/index.js.map +1 -0
- package/dist/imagebuilder/models/ApiVersion.d.ts +8 -0
- package/dist/imagebuilder/models/ApiVersion.d.ts.map +1 -0
- package/dist/imagebuilder/models/ApiVersion.js +13 -0
- package/dist/imagebuilder/models/ApiVersion.js.map +1 -0
- package/dist/imagebuilder/models/BindingType.d.ts +8 -0
- package/dist/imagebuilder/models/BindingType.d.ts.map +1 -0
- package/dist/imagebuilder/models/BindingType.js +13 -0
- package/dist/imagebuilder/models/BindingType.js.map +1 -0
- package/dist/imagebuilder/models/EarlyBinding.d.ts +10 -0
- package/dist/imagebuilder/models/EarlyBinding.d.ts.map +1 -0
- package/dist/imagebuilder/models/EarlyBinding.js +2 -0
- package/dist/imagebuilder/models/EarlyBinding.js.map +1 -0
- package/dist/imagebuilder/models/ExportFormatType.d.ts +10 -0
- package/dist/imagebuilder/models/ExportFormatType.d.ts.map +1 -0
- package/dist/imagebuilder/models/ExportFormatType.js +15 -0
- package/dist/imagebuilder/models/ExportFormatType.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuild.d.ts +23 -0
- package/dist/imagebuilder/models/ImageBuild.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuild.js +2 -0
- package/dist/imagebuilder/models/ImageBuild.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildBinding.d.ts +7 -0
- package/dist/imagebuilder/models/ImageBuildBinding.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildBinding.js +2 -0
- package/dist/imagebuilder/models/ImageBuildBinding.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildCondition.d.ts +9 -0
- package/dist/imagebuilder/models/ImageBuildCondition.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildCondition.js +2 -0
- package/dist/imagebuilder/models/ImageBuildCondition.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildConditionReason.d.ts +13 -0
- package/dist/imagebuilder/models/ImageBuildConditionReason.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildConditionReason.js +18 -0
- package/dist/imagebuilder/models/ImageBuildConditionReason.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildConditionType.d.ts +7 -0
- package/dist/imagebuilder/models/ImageBuildConditionType.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildConditionType.js +12 -0
- package/dist/imagebuilder/models/ImageBuildConditionType.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildDestination.d.ts +18 -0
- package/dist/imagebuilder/models/ImageBuildDestination.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildDestination.js +2 -0
- package/dist/imagebuilder/models/ImageBuildDestination.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildList.d.ts +19 -0
- package/dist/imagebuilder/models/ImageBuildList.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildList.js +2 -0
- package/dist/imagebuilder/models/ImageBuildList.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildRefSource.d.ts +14 -0
- package/dist/imagebuilder/models/ImageBuildRefSource.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildRefSource.js +2 -0
- package/dist/imagebuilder/models/ImageBuildRefSource.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildSource.d.ts +18 -0
- package/dist/imagebuilder/models/ImageBuildSource.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildSource.js +2 -0
- package/dist/imagebuilder/models/ImageBuildSource.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildSpec.d.ts +14 -0
- package/dist/imagebuilder/models/ImageBuildSpec.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildSpec.js +2 -0
- package/dist/imagebuilder/models/ImageBuildSpec.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildStatus.d.ts +27 -0
- package/dist/imagebuilder/models/ImageBuildStatus.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildStatus.js +2 -0
- package/dist/imagebuilder/models/ImageBuildStatus.js.map +1 -0
- package/dist/imagebuilder/models/ImageBuildUserConfiguration.d.ts +14 -0
- package/dist/imagebuilder/models/ImageBuildUserConfiguration.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageBuildUserConfiguration.js +2 -0
- package/dist/imagebuilder/models/ImageBuildUserConfiguration.js.map +1 -0
- package/dist/imagebuilder/models/ImageExport.d.ts +18 -0
- package/dist/imagebuilder/models/ImageExport.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExport.js +2 -0
- package/dist/imagebuilder/models/ImageExport.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportCondition.d.ts +9 -0
- package/dist/imagebuilder/models/ImageExportCondition.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportCondition.js +2 -0
- package/dist/imagebuilder/models/ImageExportCondition.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportConditionReason.d.ts +13 -0
- package/dist/imagebuilder/models/ImageExportConditionReason.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportConditionReason.js +18 -0
- package/dist/imagebuilder/models/ImageExportConditionReason.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportConditionType.d.ts +7 -0
- package/dist/imagebuilder/models/ImageExportConditionType.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportConditionType.js +12 -0
- package/dist/imagebuilder/models/ImageExportConditionType.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportFormatPhase.d.ts +11 -0
- package/dist/imagebuilder/models/ImageExportFormatPhase.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportFormatPhase.js +16 -0
- package/dist/imagebuilder/models/ImageExportFormatPhase.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportList.d.ts +19 -0
- package/dist/imagebuilder/models/ImageExportList.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportList.js +2 -0
- package/dist/imagebuilder/models/ImageExportList.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportSource.d.ts +6 -0
- package/dist/imagebuilder/models/ImageExportSource.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportSource.js +2 -0
- package/dist/imagebuilder/models/ImageExportSource.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportSourceType.d.ts +7 -0
- package/dist/imagebuilder/models/ImageExportSourceType.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportSourceType.js +12 -0
- package/dist/imagebuilder/models/ImageExportSourceType.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportSpec.d.ts +10 -0
- package/dist/imagebuilder/models/ImageExportSpec.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportSpec.js +2 -0
- package/dist/imagebuilder/models/ImageExportSpec.js.map +1 -0
- package/dist/imagebuilder/models/ImageExportStatus.d.ts +19 -0
- package/dist/imagebuilder/models/ImageExportStatus.d.ts.map +1 -0
- package/dist/imagebuilder/models/ImageExportStatus.js +2 -0
- package/dist/imagebuilder/models/ImageExportStatus.js.map +1 -0
- package/dist/imagebuilder/models/LateBinding.d.ts +10 -0
- package/dist/imagebuilder/models/LateBinding.d.ts.map +1 -0
- package/dist/imagebuilder/models/LateBinding.js +2 -0
- package/dist/imagebuilder/models/LateBinding.js.map +1 -0
- package/dist/imagebuilder/models/ResourceKind.d.ts +8 -0
- package/dist/imagebuilder/models/ResourceKind.d.ts.map +1 -0
- package/dist/imagebuilder/models/ResourceKind.js +13 -0
- package/dist/imagebuilder/models/ResourceKind.js.map +1 -0
- package/dist/imagebuilder/models/Status.d.ts +28 -0
- package/dist/imagebuilder/models/Status.d.ts.map +1 -0
- package/dist/imagebuilder/models/Status.js +2 -0
- package/dist/imagebuilder/models/Status.js.map +1 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/models/ApiVersion.d.ts +9 -0
- package/dist/models/ApiVersion.d.ts.map +1 -0
- package/dist/models/ApiVersion.js +14 -0
- package/dist/models/ApiVersion.js.map +1 -0
- package/dist/models/AppType.d.ts +2 -1
- package/dist/models/AppType.d.ts.map +1 -1
- package/dist/models/AppType.js +1 -0
- package/dist/models/AppType.js.map +1 -1
- package/dist/models/ApplicationProviderBase.d.ts +12 -0
- package/dist/models/ApplicationProviderBase.d.ts.map +1 -0
- package/dist/models/ApplicationProviderBase.js +2 -0
- package/dist/models/ApplicationProviderBase.js.map +1 -0
- package/dist/models/ApplicationProviderSpec.d.ts +5 -11
- package/dist/models/ApplicationProviderSpec.d.ts.map +1 -1
- package/dist/models/ApplicationUser.d.ts +7 -0
- package/dist/models/ApplicationUser.d.ts.map +1 -0
- package/dist/models/ApplicationUser.js +2 -0
- package/dist/models/ApplicationUser.js.map +1 -0
- package/dist/models/ApplicationVolume.d.ts +2 -0
- package/dist/models/ApplicationVolume.d.ts.map +1 -1
- package/dist/models/ApplicationVolumeReclaimPolicy.d.ts +7 -0
- package/dist/models/ApplicationVolumeReclaimPolicy.d.ts.map +1 -0
- package/dist/models/ApplicationVolumeReclaimPolicy.js +12 -0
- package/dist/models/ApplicationVolumeReclaimPolicy.js.map +1 -0
- package/dist/models/AuthConfig.d.ts +2 -4
- package/dist/models/AuthConfig.d.ts.map +1 -1
- package/dist/models/AuthProvider.d.ts +2 -4
- package/dist/models/AuthProvider.d.ts.map +1 -1
- package/dist/models/AuthProviderList.d.ts +2 -4
- package/dist/models/AuthProviderList.d.ts.map +1 -1
- package/dist/models/CertificateSigningRequest.d.ts +2 -4
- package/dist/models/CertificateSigningRequest.d.ts.map +1 -1
- package/dist/models/CertificateSigningRequestList.d.ts +2 -4
- package/dist/models/CertificateSigningRequestList.d.ts.map +1 -1
- package/dist/models/ComposeApplication.d.ts +7 -0
- package/dist/models/ComposeApplication.d.ts.map +1 -0
- package/dist/models/ComposeApplication.js +2 -0
- package/dist/models/ComposeApplication.js.map +1 -0
- package/dist/models/Condition.d.ts +3 -20
- package/dist/models/Condition.d.ts.map +1 -1
- package/dist/models/ConditionBase.d.ts +24 -0
- package/dist/models/ConditionBase.d.ts.map +1 -0
- package/dist/models/ConditionBase.js +2 -0
- package/dist/models/ConditionBase.js.map +1 -0
- package/dist/models/ContainerApplication.d.ts +18 -0
- package/dist/models/ContainerApplication.d.ts.map +1 -0
- package/dist/models/ContainerApplication.js +2 -0
- package/dist/models/ContainerApplication.js.map +1 -0
- package/dist/models/ContainerApplicationProperties.d.ts +13 -0
- package/dist/models/ContainerApplicationProperties.d.ts.map +1 -0
- package/dist/models/ContainerApplicationProperties.js +2 -0
- package/dist/models/ContainerApplicationProperties.js.map +1 -0
- package/dist/models/Device.d.ts +2 -4
- package/dist/models/Device.d.ts.map +1 -1
- package/dist/models/DeviceApplicationStatus.d.ts +4 -0
- package/dist/models/DeviceApplicationStatus.d.ts.map +1 -1
- package/dist/models/DeviceList.d.ts +2 -4
- package/dist/models/DeviceList.d.ts.map +1 -1
- package/dist/models/DockerAuth.d.ts +15 -0
- package/dist/models/DockerAuth.d.ts.map +1 -0
- package/dist/models/DockerAuth.js +2 -0
- package/dist/models/DockerAuth.js.map +1 -0
- package/dist/models/EnrollmentRequest.d.ts +2 -4
- package/dist/models/EnrollmentRequest.d.ts.map +1 -1
- package/dist/models/EnrollmentRequestList.d.ts +2 -4
- package/dist/models/EnrollmentRequestList.d.ts.map +1 -1
- package/dist/models/Event.d.ts +2 -4
- package/dist/models/Event.d.ts.map +1 -1
- package/dist/models/Event.js.map +1 -1
- package/dist/models/EventList.d.ts +2 -4
- package/dist/models/EventList.d.ts.map +1 -1
- package/dist/models/Fleet.d.ts +2 -4
- package/dist/models/Fleet.d.ts.map +1 -1
- package/dist/models/FleetList.d.ts +2 -4
- package/dist/models/FleetList.d.ts.map +1 -1
- package/dist/models/GitRepoSpec.d.ts +18 -0
- package/dist/models/GitRepoSpec.d.ts.map +1 -0
- package/dist/models/GitRepoSpec.js +2 -0
- package/dist/models/GitRepoSpec.js.map +1 -0
- package/dist/models/HelmApplication.d.ts +20 -0
- package/dist/models/HelmApplication.d.ts.map +1 -0
- package/dist/models/HelmApplication.js +2 -0
- package/dist/models/HelmApplication.js.map +1 -0
- package/dist/models/HttpRepoSpec.d.ts +9 -4
- package/dist/models/HttpRepoSpec.d.ts.map +1 -1
- package/dist/models/ImageApplicationProviderSpec.d.ts +2 -10
- package/dist/models/ImageApplicationProviderSpec.d.ts.map +1 -1
- package/dist/models/InlineApplicationProviderSpec.d.ts +2 -3
- package/dist/models/InlineApplicationProviderSpec.d.ts.map +1 -1
- package/dist/models/K8sProviderSpec.d.ts +4 -0
- package/dist/models/K8sProviderSpec.d.ts.map +1 -1
- package/dist/models/KubernetesSecretProviderSpec.d.ts +8 -0
- package/dist/models/KubernetesSecretProviderSpec.d.ts.map +1 -1
- package/dist/models/OciAuth.d.ts +6 -0
- package/dist/models/OciAuth.d.ts.map +1 -0
- package/dist/models/OciAuth.js +2 -0
- package/dist/models/OciAuth.js.map +1 -0
- package/dist/models/OciAuthType.d.ts +7 -0
- package/dist/models/OciAuthType.d.ts.map +1 -0
- package/dist/models/OciAuthType.js +12 -0
- package/dist/models/OciAuthType.js.map +1 -0
- package/dist/models/OciRepoSpec.d.ts +48 -0
- package/dist/models/OciRepoSpec.d.ts.map +1 -0
- package/dist/models/OciRepoSpec.js +20 -0
- package/dist/models/OciRepoSpec.js.map +1 -0
- package/dist/models/OpenShiftProviderSpec.d.ts +8 -0
- package/dist/models/OpenShiftProviderSpec.d.ts.map +1 -1
- package/dist/models/Organization.d.ts +2 -4
- package/dist/models/Organization.d.ts.map +1 -1
- package/dist/models/OrganizationList.d.ts +2 -4
- package/dist/models/OrganizationList.d.ts.map +1 -1
- package/dist/models/QuadletApplication.d.ts +8 -0
- package/dist/models/QuadletApplication.d.ts.map +1 -0
- package/dist/models/QuadletApplication.js +2 -0
- package/dist/models/QuadletApplication.js.map +1 -0
- package/dist/models/RepoSpecType.d.ts +3 -2
- package/dist/models/RepoSpecType.d.ts.map +1 -1
- package/dist/models/RepoSpecType.js +3 -2
- package/dist/models/RepoSpecType.js.map +1 -1
- package/dist/models/Repository.d.ts +2 -4
- package/dist/models/Repository.d.ts.map +1 -1
- package/dist/models/RepositoryList.d.ts +2 -4
- package/dist/models/RepositoryList.d.ts.map +1 -1
- package/dist/models/RepositorySpec.d.ts +3 -3
- package/dist/models/RepositorySpec.d.ts.map +1 -1
- package/dist/models/ResourceSync.d.ts +2 -4
- package/dist/models/ResourceSync.d.ts.map +1 -1
- package/dist/models/ResourceSyncList.d.ts +2 -4
- package/dist/models/ResourceSyncList.d.ts.map +1 -1
- package/dist/models/Status.d.ts +2 -4
- package/dist/models/Status.d.ts.map +1 -1
- package/dist/models/TemplateVersion.d.ts +2 -4
- package/dist/models/TemplateVersion.d.ts.map +1 -1
- package/dist/models/TemplateVersionList.d.ts +2 -4
- package/dist/models/TemplateVersionList.d.ts.map +1 -1
- package/dist/scripts/openapi-typescript.js +129 -19
- package/dist/scripts/openapi-typescript.js.map +1 -1
- package/dist/scripts/openapi-utils.d.ts +23 -0
- package/dist/scripts/openapi-utils.d.ts.map +1 -0
- package/dist/scripts/openapi-utils.js +213 -0
- package/dist/scripts/openapi-utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/imagebuilder/index.ts +34 -0
- package/imagebuilder/models/ApiVersion.ts +11 -0
- package/imagebuilder/models/BindingType.ts +11 -0
- package/imagebuilder/models/EarlyBinding.ts +14 -0
- package/imagebuilder/models/ExportFormatType.ts +13 -0
- package/imagebuilder/models/ImageBuild.ts +27 -0
- package/imagebuilder/models/ImageBuildBinding.ts +11 -0
- package/imagebuilder/models/ImageBuildCondition.ts +13 -0
- package/imagebuilder/models/ImageBuildConditionReason.ts +16 -0
- package/imagebuilder/models/ImageBuildConditionType.ts +10 -0
- package/imagebuilder/models/ImageBuildDestination.ts +22 -0
- package/imagebuilder/models/ImageBuildList.ts +23 -0
- package/imagebuilder/models/ImageBuildRefSource.ts +18 -0
- package/imagebuilder/models/ImageBuildSource.ts +22 -0
- package/imagebuilder/models/ImageBuildSpec.ts +18 -0
- package/imagebuilder/models/ImageBuildStatus.ts +31 -0
- package/imagebuilder/models/ImageBuildUserConfiguration.ts +18 -0
- package/imagebuilder/models/ImageExport.ts +22 -0
- package/imagebuilder/models/ImageExportCondition.ts +13 -0
- package/imagebuilder/models/ImageExportConditionReason.ts +16 -0
- package/imagebuilder/models/ImageExportConditionType.ts +10 -0
- package/imagebuilder/models/ImageExportFormatPhase.ts +14 -0
- package/imagebuilder/models/ImageExportList.ts +23 -0
- package/imagebuilder/models/ImageExportSource.ts +10 -0
- package/imagebuilder/models/ImageExportSourceType.ts +10 -0
- package/imagebuilder/models/ImageExportSpec.ts +14 -0
- package/imagebuilder/models/ImageExportStatus.ts +23 -0
- package/imagebuilder/models/LateBinding.ts +14 -0
- package/imagebuilder/models/ResourceKind.ts +11 -0
- package/imagebuilder/models/Status.ts +32 -0
- package/index.ts +15 -2
- package/package.json +9 -3
- package/dist/models/GenericRepoSpec.d.ts +0 -9
- package/dist/models/GenericRepoSpec.d.ts.map +0 -1
- package/dist/models/GenericRepoSpec.js +0 -2
- package/dist/models/GenericRepoSpec.js.map +0 -1
- package/dist/models/SshRepoSpec.d.ts +0 -11
- package/dist/models/SshRepoSpec.d.ts.map +0 -1
- package/dist/models/SshRepoSpec.js +0 -2
- package/dist/models/SshRepoSpec.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateVersion.d.ts","sourceRoot":"","sources":["../../models/TemplateVersion.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B
|
|
1
|
+
{"version":3,"file":"TemplateVersion.d.ts","sourceRoot":"","sources":["../../models/TemplateVersion.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,UAAU,CAAC;IACrB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import type { ApiVersion } from './ApiVersion';
|
|
1
2
|
import type { ListMeta } from './ListMeta';
|
|
2
3
|
import type { TemplateVersion } from './TemplateVersion';
|
|
3
4
|
/**
|
|
4
5
|
* TemplateVersionList is a list of TemplateVersions.
|
|
5
6
|
*/
|
|
6
7
|
export type TemplateVersionList = {
|
|
7
|
-
|
|
8
|
-
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
|
|
9
|
-
*/
|
|
10
|
-
apiVersion: string;
|
|
8
|
+
apiVersion: ApiVersion;
|
|
11
9
|
/**
|
|
12
10
|
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
|
|
13
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateVersionList.d.ts","sourceRoot":"","sources":["../../models/TemplateVersionList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC
|
|
1
|
+
{"version":3,"file":"TemplateVersionList.d.ts","sourceRoot":"","sources":["../../models/TemplateVersionList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAC/B,CAAC"}
|
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
13
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
14
|
-
return g =
|
|
13
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
14
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
15
15
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
16
16
|
function step(op) {
|
|
17
17
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -36,9 +36,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
+
var fs = require('fs');
|
|
40
|
+
var fsPromises = require('fs/promises');
|
|
39
41
|
var path = require('path');
|
|
40
42
|
var OpenAPI = require('openapi-typescript-codegen');
|
|
41
43
|
var YAML = require('js-yaml');
|
|
44
|
+
var _a = require('./openapi-utils'), rimraf = _a.rimraf, copyDir = _a.copyDir, fixImagebuilderCoreReferences = _a.fixImagebuilderCoreReferences;
|
|
45
|
+
var CORE_API = 'core';
|
|
46
|
+
var IMAGEBUILDER_API = 'imagebuilder';
|
|
47
|
+
var getSwaggerUrl = function (api) {
|
|
48
|
+
var apiVersion = api === CORE_API ? 'v1beta1' : 'v1alpha1';
|
|
49
|
+
return "https://raw.githubusercontent.com/flightctl/flightctl/main/api/".concat(api, "/").concat(apiVersion, "/openapi.yaml");
|
|
50
|
+
};
|
|
42
51
|
var processJsonAPI = function (jsonString) {
|
|
43
52
|
var json = YAML.load(jsonString);
|
|
44
53
|
if (json.components) {
|
|
@@ -51,30 +60,131 @@ var processJsonAPI = function (jsonString) {
|
|
|
51
60
|
}
|
|
52
61
|
return json;
|
|
53
62
|
};
|
|
63
|
+
// Generate types from OpenAPI spec
|
|
64
|
+
function generateTypes(mode) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66
|
+
var config, _a, swaggerUrl, output, finalDir, response, data, modelsDir, indexPath, imagebuilderDir;
|
|
67
|
+
var _b;
|
|
68
|
+
return __generator(this, function (_c) {
|
|
69
|
+
switch (_c.label) {
|
|
70
|
+
case 0:
|
|
71
|
+
config = (_b = {},
|
|
72
|
+
_b[CORE_API] = {
|
|
73
|
+
swaggerUrl: getSwaggerUrl(CORE_API),
|
|
74
|
+
output: path.resolve(__dirname, '../tmp-types'),
|
|
75
|
+
finalDir: path.resolve(__dirname, '../models'),
|
|
76
|
+
},
|
|
77
|
+
_b[IMAGEBUILDER_API] = {
|
|
78
|
+
swaggerUrl: getSwaggerUrl(IMAGEBUILDER_API),
|
|
79
|
+
output: path.resolve(__dirname, '../tmp-imagebuilder-types'),
|
|
80
|
+
finalDir: path.resolve(__dirname, '../imagebuilder/models'),
|
|
81
|
+
},
|
|
82
|
+
_b);
|
|
83
|
+
if (!config[mode]) {
|
|
84
|
+
throw new Error("Unknown mode: ".concat(mode, ". Use 'core' or 'imagebuilder'"));
|
|
85
|
+
}
|
|
86
|
+
_a = config[mode], swaggerUrl = _a.swaggerUrl, output = _a.output, finalDir = _a.finalDir;
|
|
87
|
+
console.log("Fetching ".concat(mode, " OpenAPI spec from ").concat(swaggerUrl, "..."));
|
|
88
|
+
return [4 /*yield*/, fetch(swaggerUrl)];
|
|
89
|
+
case 1:
|
|
90
|
+
response = _c.sent();
|
|
91
|
+
return [4 /*yield*/, response.text()];
|
|
92
|
+
case 2:
|
|
93
|
+
data = _c.sent();
|
|
94
|
+
console.log("Generating ".concat(mode, " types..."));
|
|
95
|
+
return [4 /*yield*/, OpenAPI.generate({
|
|
96
|
+
input: processJsonAPI(data),
|
|
97
|
+
output: output,
|
|
98
|
+
exportCore: false,
|
|
99
|
+
exportServices: false,
|
|
100
|
+
exportModels: true,
|
|
101
|
+
exportSchemas: false,
|
|
102
|
+
indent: '2',
|
|
103
|
+
})];
|
|
104
|
+
case 3:
|
|
105
|
+
_c.sent();
|
|
106
|
+
if (!(mode === CORE_API)) return [3 /*break*/, 7];
|
|
107
|
+
// Copy the flightctl API types to their final location
|
|
108
|
+
return [4 /*yield*/, rimraf(finalDir)];
|
|
109
|
+
case 4:
|
|
110
|
+
// Copy the flightctl API types to their final location
|
|
111
|
+
_c.sent();
|
|
112
|
+
return [4 /*yield*/, copyDir(output, path.resolve(__dirname, '..'))];
|
|
113
|
+
case 5:
|
|
114
|
+
_c.sent();
|
|
115
|
+
return [4 /*yield*/, rimraf(output)];
|
|
116
|
+
case 6:
|
|
117
|
+
_c.sent();
|
|
118
|
+
return [3 /*break*/, 15];
|
|
119
|
+
case 7:
|
|
120
|
+
// Image builder types need to be fixed before they can be moved to their final location
|
|
121
|
+
return [4 /*yield*/, rimraf(finalDir)];
|
|
122
|
+
case 8:
|
|
123
|
+
// Image builder types need to be fixed before they can be moved to their final location
|
|
124
|
+
_c.sent();
|
|
125
|
+
modelsDir = path.join(output, 'models');
|
|
126
|
+
if (!fs.existsSync(modelsDir)) return [3 /*break*/, 10];
|
|
127
|
+
return [4 /*yield*/, copyDir(modelsDir, finalDir)];
|
|
128
|
+
case 9:
|
|
129
|
+
_c.sent();
|
|
130
|
+
_c.label = 10;
|
|
131
|
+
case 10:
|
|
132
|
+
console.log("Fixing references to core API types...");
|
|
133
|
+
return [4 /*yield*/, fixImagebuilderCoreReferences(finalDir)];
|
|
134
|
+
case 11:
|
|
135
|
+
_c.sent();
|
|
136
|
+
indexPath = path.join(output, 'index.ts');
|
|
137
|
+
if (!fs.existsSync(indexPath)) return [3 /*break*/, 13];
|
|
138
|
+
imagebuilderDir = path.resolve(__dirname, '../imagebuilder');
|
|
139
|
+
if (!fs.existsSync(imagebuilderDir)) {
|
|
140
|
+
fs.mkdirSync(imagebuilderDir, { recursive: true });
|
|
141
|
+
}
|
|
142
|
+
return [4 /*yield*/, fsPromises.copyFile(indexPath, path.join(imagebuilderDir, 'index.ts'))];
|
|
143
|
+
case 12:
|
|
144
|
+
_c.sent();
|
|
145
|
+
_c.label = 13;
|
|
146
|
+
case 13: return [4 /*yield*/, rimraf(output)];
|
|
147
|
+
case 14:
|
|
148
|
+
_c.sent();
|
|
149
|
+
_c.label = 15;
|
|
150
|
+
case 15: return [2 /*return*/];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
}
|
|
54
155
|
function main() {
|
|
55
156
|
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
-
var
|
|
157
|
+
var rootDir, error_1;
|
|
57
158
|
return __generator(this, function (_a) {
|
|
58
159
|
switch (_a.label) {
|
|
59
160
|
case 0:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
161
|
+
_a.trys.push([0, 4, , 5]);
|
|
162
|
+
rootDir = path.resolve(__dirname, '..');
|
|
163
|
+
// Clean up existing directories
|
|
164
|
+
console.log('Cleaning up existing directories...');
|
|
165
|
+
return [4 /*yield*/, Promise.all([
|
|
166
|
+
rimraf(path.join(rootDir, 'models')),
|
|
167
|
+
rimraf(path.join(rootDir, 'imagebuilder')),
|
|
168
|
+
rimraf(path.join(rootDir, 'tmp-types')),
|
|
169
|
+
rimraf(path.join(rootDir, 'tmp-imagebuilder-types')),
|
|
170
|
+
])];
|
|
63
171
|
case 1:
|
|
64
|
-
|
|
65
|
-
|
|
172
|
+
_a.sent();
|
|
173
|
+
console.log('Generating types...');
|
|
174
|
+
return [4 /*yield*/, generateTypes(CORE_API)];
|
|
66
175
|
case 2:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return [
|
|
176
|
+
_a.sent();
|
|
177
|
+
return [4 /*yield*/, generateTypes(IMAGEBUILDER_API)];
|
|
178
|
+
case 3:
|
|
179
|
+
_a.sent();
|
|
180
|
+
console.log('✅ Type generation complete!');
|
|
181
|
+
return [3 /*break*/, 5];
|
|
182
|
+
case 4:
|
|
183
|
+
error_1 = _a.sent();
|
|
184
|
+
console.error('❌ Error generating types:', error_1);
|
|
185
|
+
process.exit(1);
|
|
186
|
+
return [3 /*break*/, 5];
|
|
187
|
+
case 5: return [2 /*return*/];
|
|
78
188
|
}
|
|
79
189
|
});
|
|
80
190
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-typescript.js","sourceRoot":"","sources":["../../scripts/openapi-typescript.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,IAAM,OAAO,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACtD,IAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"openapi-typescript.js","sourceRoot":"","sources":["../../scripts/openapi-typescript.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,IAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC1C,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,IAAM,OAAO,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACtD,IAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAE1B,IAAA,KAAqD,OAAO,CAAC,iBAAiB,CAAC,EAA7E,MAAM,YAAA,EAAE,OAAO,aAAA,EAAE,6BAA6B,mCAA+B,CAAC;AAEtF,IAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,IAAM,gBAAgB,GAAG,cAAc,CAAC;AAExC,IAAM,aAAa,GAAG,UAAC,GAAG;IACxB,IAAM,UAAU,GAAG,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;IAC7D,OAAO,yEAAkE,GAAG,cAAI,UAAU,kBAAe,CAAC;AAC5G,CAAC,CAAC;AAEF,IAAM,cAAc,GAAG,UAAC,UAAU;IAChC,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACpB,MAAM,CAAC,IAAI,C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AC;oBAC9B,qBAAM,aAAa,CAAC,gBAAgB,CAAC,EAAA;;oBAArC,SAAqC,CAAC;oBAEtC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;;;;oBAE3C,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAK,CAAC,CAAC;oBAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;;;;;;CAEnB;AAED,KAAK,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export function rimraf(dir: any): Promise<void>;
|
|
3
|
+
export function copyDir(src: any, dest: any): Promise<void>;
|
|
4
|
+
/**
|
|
5
|
+
* Fixes references from the auto-generated imagebuilder types so they point to the correct types of the "core" API module.
|
|
6
|
+
* The generated types are in the form of:
|
|
7
|
+
* import type { core_v1beta1_openapi_yaml_components_schemas_ObjectMeta } from './core_v1beta1_openapi_yaml_components_schemas_ObjectMeta';
|
|
8
|
+
* type SomeType = {
|
|
9
|
+
* ...
|
|
10
|
+
* someField: core_v1beta1_openapi_yaml_components_schemas_ObjectMeta;
|
|
11
|
+
* }
|
|
12
|
+
*
|
|
13
|
+
* The fixed types will be like this:
|
|
14
|
+
* import type { ObjectMeta } from '../../models/ObjectMeta';
|
|
15
|
+
* type SomeType = {
|
|
16
|
+
* ...
|
|
17
|
+
* someField: ObjectMeta;
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* @param {string} modelsDir - Directory containing TypeScript files to fix
|
|
21
|
+
*/
|
|
22
|
+
export function fixImagebuilderCoreReferences(modelsDir: string): Promise<void>;
|
|
23
|
+
//# sourceMappingURL=openapi-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi-utils.d.ts","sourceRoot":"","sources":["../../scripts/openapi-utils.js"],"names":[],"mappings":";AAMA,gDAgBC;AAGD,4DAqBC;AAsBD;;;;;;;;;;;;;;;;;GAiBG;AACH,yDAFW,MAAM,iBAyBhB"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
13
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
14
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
15
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
16
|
+
function step(op) {
|
|
17
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
18
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
19
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
20
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
21
|
+
switch (op[0]) {
|
|
22
|
+
case 0: case 1: t = op; break;
|
|
23
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
24
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
25
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
26
|
+
default:
|
|
27
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
28
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
29
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
30
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
31
|
+
if (t[2]) _.ops.pop();
|
|
32
|
+
_.trys.pop(); continue;
|
|
33
|
+
}
|
|
34
|
+
op = body.call(thisArg, _);
|
|
35
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
36
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var fs = require('fs');
|
|
40
|
+
var fsPromises = require('fs/promises');
|
|
41
|
+
var path = require('path');
|
|
42
|
+
// Recursively remove directory
|
|
43
|
+
function rimraf(dir) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
45
|
+
var entries;
|
|
46
|
+
var _this = this;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0:
|
|
50
|
+
if (!fs.existsSync(dir)) {
|
|
51
|
+
return [2 /*return*/];
|
|
52
|
+
}
|
|
53
|
+
return [4 /*yield*/, fsPromises.readdir(dir, { withFileTypes: true })];
|
|
54
|
+
case 1:
|
|
55
|
+
entries = _a.sent();
|
|
56
|
+
return [4 /*yield*/, Promise.all(entries.map(function (entry) { return __awaiter(_this, void 0, void 0, function () {
|
|
57
|
+
var fullPath;
|
|
58
|
+
return __generator(this, function (_a) {
|
|
59
|
+
switch (_a.label) {
|
|
60
|
+
case 0:
|
|
61
|
+
fullPath = path.join(dir, entry.name);
|
|
62
|
+
if (!entry.isDirectory()) return [3 /*break*/, 2];
|
|
63
|
+
return [4 /*yield*/, rimraf(fullPath)];
|
|
64
|
+
case 1:
|
|
65
|
+
_a.sent();
|
|
66
|
+
return [3 /*break*/, 4];
|
|
67
|
+
case 2: return [4 /*yield*/, fsPromises.unlink(fullPath)];
|
|
68
|
+
case 3:
|
|
69
|
+
_a.sent();
|
|
70
|
+
_a.label = 4;
|
|
71
|
+
case 4: return [2 /*return*/];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}); }))];
|
|
75
|
+
case 2:
|
|
76
|
+
_a.sent();
|
|
77
|
+
return [4 /*yield*/, fsPromises.rmdir(dir)];
|
|
78
|
+
case 3:
|
|
79
|
+
_a.sent();
|
|
80
|
+
return [2 /*return*/];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
// Recursively copy directory
|
|
86
|
+
function copyDir(src, dest) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
+
var entries;
|
|
89
|
+
var _this = this;
|
|
90
|
+
return __generator(this, function (_a) {
|
|
91
|
+
switch (_a.label) {
|
|
92
|
+
case 0:
|
|
93
|
+
if (!fs.existsSync(src)) {
|
|
94
|
+
return [2 /*return*/];
|
|
95
|
+
}
|
|
96
|
+
if (!fs.existsSync(dest)) {
|
|
97
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
98
|
+
}
|
|
99
|
+
return [4 /*yield*/, fsPromises.readdir(src, { withFileTypes: true })];
|
|
100
|
+
case 1:
|
|
101
|
+
entries = _a.sent();
|
|
102
|
+
return [4 /*yield*/, Promise.all(entries.map(function (entry) { return __awaiter(_this, void 0, void 0, function () {
|
|
103
|
+
var srcPath, destPath, content;
|
|
104
|
+
return __generator(this, function (_a) {
|
|
105
|
+
switch (_a.label) {
|
|
106
|
+
case 0:
|
|
107
|
+
srcPath = path.join(src, entry.name);
|
|
108
|
+
destPath = path.join(dest, entry.name);
|
|
109
|
+
if (!entry.isDirectory()) return [3 /*break*/, 2];
|
|
110
|
+
return [4 /*yield*/, copyDir(srcPath, destPath)];
|
|
111
|
+
case 1:
|
|
112
|
+
_a.sent();
|
|
113
|
+
return [3 /*break*/, 6];
|
|
114
|
+
case 2: return [4 /*yield*/, fsPromises.readFile(srcPath)];
|
|
115
|
+
case 3:
|
|
116
|
+
content = _a.sent();
|
|
117
|
+
return [4 /*yield*/, fsPromises.writeFile(destPath, content)];
|
|
118
|
+
case 4:
|
|
119
|
+
_a.sent();
|
|
120
|
+
return [4 /*yield*/, fsPromises.unlink(srcPath)];
|
|
121
|
+
case 5:
|
|
122
|
+
_a.sent();
|
|
123
|
+
_a.label = 6;
|
|
124
|
+
case 6: return [2 /*return*/];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}); }))];
|
|
128
|
+
case 2:
|
|
129
|
+
_a.sent();
|
|
130
|
+
return [2 /*return*/];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
// Recursively find all TypeScript files
|
|
136
|
+
function findTsFiles(dir) {
|
|
137
|
+
var files = [];
|
|
138
|
+
if (!fs.existsSync(dir)) {
|
|
139
|
+
return files;
|
|
140
|
+
}
|
|
141
|
+
var entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
142
|
+
for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
|
|
143
|
+
var entry = entries_1[_i];
|
|
144
|
+
var fullPath = path.join(dir, entry.name);
|
|
145
|
+
if (entry.isDirectory()) {
|
|
146
|
+
files.push.apply(files, findTsFiles(fullPath));
|
|
147
|
+
}
|
|
148
|
+
else if (entry.isFile() && entry.name.endsWith('.ts')) {
|
|
149
|
+
files.push(fullPath);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return files;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Fixes references from the auto-generated imagebuilder types so they point to the correct types of the "core" API module.
|
|
156
|
+
* The generated types are in the form of:
|
|
157
|
+
* import type { core_v1beta1_openapi_yaml_components_schemas_ObjectMeta } from './core_v1beta1_openapi_yaml_components_schemas_ObjectMeta';
|
|
158
|
+
* type SomeType = {
|
|
159
|
+
* ...
|
|
160
|
+
* someField: core_v1beta1_openapi_yaml_components_schemas_ObjectMeta;
|
|
161
|
+
* }
|
|
162
|
+
*
|
|
163
|
+
* The fixed types will be like this:
|
|
164
|
+
* import type { ObjectMeta } from '../../models/ObjectMeta';
|
|
165
|
+
* type SomeType = {
|
|
166
|
+
* ...
|
|
167
|
+
* someField: ObjectMeta;
|
|
168
|
+
* }
|
|
169
|
+
*
|
|
170
|
+
* @param {string} modelsDir - Directory containing TypeScript files to fix
|
|
171
|
+
*/
|
|
172
|
+
function fixImagebuilderCoreReferences(modelsDir) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
174
|
+
var files;
|
|
175
|
+
var _this = this;
|
|
176
|
+
return __generator(this, function (_a) {
|
|
177
|
+
switch (_a.label) {
|
|
178
|
+
case 0:
|
|
179
|
+
files = findTsFiles(modelsDir);
|
|
180
|
+
return [4 /*yield*/, Promise.all(files.map(function (filePath) { return __awaiter(_this, void 0, void 0, function () {
|
|
181
|
+
var content, originalContent;
|
|
182
|
+
return __generator(this, function (_a) {
|
|
183
|
+
switch (_a.label) {
|
|
184
|
+
case 0: return [4 /*yield*/, fsPromises.readFile(filePath, 'utf8')];
|
|
185
|
+
case 1:
|
|
186
|
+
content = _a.sent();
|
|
187
|
+
originalContent = content;
|
|
188
|
+
// Modify the path to properly point to the type from the "core" module
|
|
189
|
+
content = content.replace(/from\s+['"]\.\/core_v1beta1_openapi_yaml_components_schemas_([A-Za-z][A-Za-z0-9]*)['"]/g, "from '../../models/$1'");
|
|
190
|
+
// Correct the import name and the references to this type by removing the prefix
|
|
191
|
+
content = content.replace(/\bcore_v1beta1_openapi_yaml_components_schemas_([A-Za-z][A-Za-z0-9]*)\b/g, '$1');
|
|
192
|
+
if (!(content !== originalContent)) return [3 /*break*/, 3];
|
|
193
|
+
return [4 /*yield*/, fsPromises.writeFile(filePath, content, 'utf8')];
|
|
194
|
+
case 2:
|
|
195
|
+
_a.sent();
|
|
196
|
+
_a.label = 3;
|
|
197
|
+
case 3: return [2 /*return*/];
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}); }))];
|
|
201
|
+
case 1:
|
|
202
|
+
_a.sent();
|
|
203
|
+
return [2 /*return*/];
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
module.exports = {
|
|
209
|
+
rimraf: rimraf,
|
|
210
|
+
copyDir: copyDir,
|
|
211
|
+
fixImagebuilderCoreReferences: fixImagebuilderCoreReferences,
|
|
212
|
+
};
|
|
213
|
+
//# sourceMappingURL=openapi-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi-utils.js","sourceRoot":"","sources":["../../scripts/openapi-utils.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,IAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC1C,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,+BAA+B;AAC/B,SAAe,MAAM,CAAC,GAAG;;;;;;;oBACvB,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;wBACxB,sBAAO;oBACT,CAAC;oBACe,qBAAM,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAAA;;oBAAhE,OAAO,GAAG,SAAsD;oBACtE,qBAAM,OAAO,CAAC,GAAG,CACf,OAAO,CAAC,GAAG,CAAC,UAAO,KAAK;;;;;wCAChB,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC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,GAAG,CAAC,UAAO,QAAQ;;;;4CACT,qBAAM,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAA;;wCAArD,OAAO,GAAG,SAA2C;wCACnD,eAAe,GAAG,OAAO,CAAC;wCAEhC,uEAAuE;wCACvE,OAAO,GAAG,OAAO,CAAC,OAAO,CACvB,yFAAyF,EACzF,wBAAwB,CACzB,CAAC;wCAEF,iFAAiF;wCACjF,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,0EAA0E,EAAE,IAAI,CAAC,CAAC;6CAGxG,CAAA,OAAO,KAAK,eAAe,CAAA,EAA3B,wBAA2B;wCAC7B,qBAAM,UAAU,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAA;;wCAArD,SAAqD,CAAC;;;;;6BAEzD,CAAC,CACH,EAAA;;oBAnBD,SAmBC,CAAC;;;;;CACH;AAED,MAAM,CAAC,OAAO,GAAG;IACf,MAAM,QAAA;IACN,OAAO,SAAA;IACP,6BAA6B,+BAAA;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../index.ts","../imagebuilder/index.ts","../imagebuilder/models/ApiVersion.ts","../imagebuilder/models/BindingType.ts","../imagebuilder/models/EarlyBinding.ts","../imagebuilder/models/ExportFormatType.ts","../imagebuilder/models/ImageBuild.ts","../imagebuilder/models/ImageBuildBinding.ts","../imagebuilder/models/ImageBuildCondition.ts","../imagebuilder/models/ImageBuildConditionReason.ts","../imagebuilder/models/ImageBuildConditionType.ts","../imagebuilder/models/ImageBuildDestination.ts","../imagebuilder/models/ImageBuildList.ts","../imagebuilder/models/ImageBuildRefSource.ts","../imagebuilder/models/ImageBuildSource.ts","../imagebuilder/models/ImageBuildSpec.ts","../imagebuilder/models/ImageBuildStatus.ts","../imagebuilder/models/ImageBuildUserConfiguration.ts","../imagebuilder/models/ImageExport.ts","../imagebuilder/models/ImageExportCondition.ts","../imagebuilder/models/ImageExportConditionReason.ts","../imagebuilder/models/ImageExportConditionType.ts","../imagebuilder/models/ImageExportFormatPhase.ts","../imagebuilder/models/ImageExportList.ts","../imagebuilder/models/ImageExportSource.ts","../imagebuilder/models/ImageExportSourceType.ts","../imagebuilder/models/ImageExportSpec.ts","../imagebuilder/models/ImageExportStatus.ts","../imagebuilder/models/LateBinding.ts","../imagebuilder/models/ResourceKind.ts","../imagebuilder/models/Status.ts","../models/AapProviderSpec.ts","../models/AbsolutePath.ts","../models/ApiVersion.ts","../models/AppType.ts","../models/ApplicationContent.ts","../models/ApplicationEnvVars.ts","../models/ApplicationPort.ts","../models/ApplicationProviderBase.ts","../models/ApplicationProviderSpec.ts","../models/ApplicationResourceLimits.ts","../models/ApplicationResources.ts","../models/ApplicationStatusType.ts","../models/ApplicationUser.ts","../models/ApplicationVolume.ts","../models/ApplicationVolumeProviderSpec.ts","../models/ApplicationVolumeReclaimPolicy.ts","../models/ApplicationVolumeStatus.ts","../models/ApplicationsSummaryStatusType.ts","../models/AuthConfig.ts","../models/AuthDynamicOrganizationAssignment.ts","../models/AuthDynamicRoleAssignment.ts","../models/AuthOrganizationAssignment.ts","../models/AuthPerUserOrganizationAssignment.ts","../models/AuthProvider.ts","../models/AuthProviderList.ts","../models/AuthProviderSpec.ts","../models/AuthRoleAssignment.ts","../models/AuthStaticOrganizationAssignment.ts","../models/AuthStaticRoleAssignment.ts","../models/Batch.ts","../models/BatchSequence.ts","../models/CertificateSigningRequest.ts","../models/CertificateSigningRequestList.ts","../models/CertificateSigningRequestSpec.ts","../models/CertificateSigningRequestStatus.ts","../models/ComposeApplication.ts","../models/Condition.ts","../models/ConditionBase.ts","../models/ConditionStatus.ts","../models/ConditionType.ts","../models/ConfigProviderSpec.ts","../models/ContainerApplication.ts","../models/ContainerApplicationProperties.ts","../models/CpuResourceMonitorSpec.ts","../models/CronExpression.ts","../models/CustomDeviceInfo.ts","../models/Device.ts","../models/DeviceApplicationStatus.ts","../models/DeviceApplicationsSummaryStatus.ts","../models/DeviceConfigStatus.ts","../models/DeviceConsole.ts","../models/DeviceDecommission.ts","../models/DeviceDecommissionTargetType.ts","../models/DeviceIntegrityCheckStatus.ts","../models/DeviceIntegrityCheckStatusType.ts","../models/DeviceIntegrityStatus.ts","../models/DeviceIntegrityStatusSummaryType.ts","../models/DeviceLastSeen.ts","../models/DeviceLifecycleHookType.ts","../models/DeviceLifecycleStatus.ts","../models/DeviceLifecycleStatusType.ts","../models/DeviceList.ts","../models/DeviceMultipleOwnersDetectedDetails.ts","../models/DeviceMultipleOwnersResolvedDetails.ts","../models/DeviceOsSpec.ts","../models/DeviceOsStatus.ts","../models/DeviceOwnershipChangedDetails.ts","../models/DeviceResourceStatus.ts","../models/DeviceResourceStatusType.ts","../models/DeviceResumeRequest.ts","../models/DeviceResumeResponse.ts","../models/DeviceSpec.ts","../models/DeviceStatus.ts","../models/DeviceSummaryStatus.ts","../models/DeviceSummaryStatusType.ts","../models/DeviceSystemInfo.ts","../models/DeviceUpdatePolicySpec.ts","../models/DeviceUpdatedStatus.ts","../models/DeviceUpdatedStatusType.ts","../models/DevicesSummary.ts","../models/DiskResourceMonitorSpec.ts","../models/DisruptionBudget.ts","../models/DockerAuth.ts","../models/Duration.ts","../models/EncodingType.ts","../models/EnrollmentConfig.ts","../models/EnrollmentRequest.ts","../models/EnrollmentRequestApproval.ts","../models/EnrollmentRequestApprovalStatus.ts","../models/EnrollmentRequestList.ts","../models/EnrollmentRequestSpec.ts","../models/EnrollmentRequestStatus.ts","../models/EnrollmentService.ts","../models/EnrollmentServiceAuth.ts","../models/EnrollmentServiceService.ts","../models/Event.ts","../models/EventDetails.ts","../models/EventList.ts","../models/EventSource.ts","../models/FileContent.ts","../models/FileMetadata.ts","../models/FileOperation.ts","../models/FileSpec.ts","../models/Fleet.ts","../models/FleetList.ts","../models/FleetRolloutBatchCompletedDetails.ts","../models/FleetRolloutBatchDispatchedDetails.ts","../models/FleetRolloutCompletedDetails.ts","../models/FleetRolloutDeviceSelectedDetails.ts","../models/FleetRolloutFailedDetails.ts","../models/FleetRolloutStartedDetails.ts","../models/FleetRolloutStatus.ts","../models/FleetSpec.ts","../models/FleetStatus.ts","../models/GitConfigProviderSpec.ts","../models/GitHubIntrospectionSpec.ts","../models/GitRepoSpec.ts","../models/HelmApplication.ts","../models/HookAction.ts","../models/HookActionRun.ts","../models/HookCondition.ts","../models/HookConditionExpression.ts","../models/HookConditionPathOp.ts","../models/HttpConfig.ts","../models/HttpConfigProviderSpec.ts","../models/HttpRepoSpec.ts","../models/ImageApplicationProviderSpec.ts","../models/ImageMountVolumeProviderSpec.ts","../models/ImagePullPolicy.ts","../models/ImageVolumeProviderSpec.ts","../models/ImageVolumeSource.ts","../models/InlineApplicationProviderSpec.ts","../models/InlineConfigProviderSpec.ts","../models/InternalTaskFailedDetails.ts","../models/InternalTaskPermanentlyFailedDetails.ts","../models/JwtIntrospectionSpec.ts","../models/K8sProviderSpec.ts","../models/KubernetesSecretProviderSpec.ts","../models/LabelList.ts","../models/LabelSelector.ts","../models/ListMeta.ts","../models/MatchExpression.ts","../models/MatchExpressions.ts","../models/MemoryResourceMonitorSpec.ts","../models/MountVolumeProviderSpec.ts","../models/OAuth2Introspection.ts","../models/OAuth2ProviderSpec.ts","../models/OIDCProviderSpec.ts","../models/ObjectMeta.ts","../models/ObjectReference.ts","../models/OciAuth.ts","../models/OciAuthType.ts","../models/OciRepoSpec.ts","../models/OpenShiftProviderSpec.ts","../models/Organization.ts","../models/OrganizationList.ts","../models/OrganizationSpec.ts","../models/PatchRequest.ts","../models/Percentage.ts","../models/Permission.ts","../models/PermissionList.ts","../models/QuadletApplication.ts","../models/ReferencedRepositoryUpdatedDetails.ts","../models/RelativePath.ts","../models/RepoSpecType.ts","../models/Repository.ts","../models/RepositoryList.ts","../models/RepositorySpec.ts","../models/RepositoryStatus.ts","../models/ResourceAlertRule.ts","../models/ResourceAlertSeverityType.ts","../models/ResourceKind.ts","../models/ResourceMonitor.ts","../models/ResourceMonitorSpec.ts","../models/ResourceSync.ts","../models/ResourceSyncCompletedDetails.ts","../models/ResourceSyncList.ts","../models/ResourceSyncSpec.ts","../models/ResourceSyncStatus.ts","../models/ResourceUpdatedDetails.ts","../models/Rfc7662IntrospectionSpec.ts","../models/RolloutDeviceSelection.ts","../models/RolloutPolicy.ts","../models/RolloutStrategy.ts","../models/SshConfig.ts","../models/Status.ts","../models/SystemdActiveStateType.ts","../models/SystemdEnableStateType.ts","../models/SystemdLoadStateType.ts","../models/SystemdUnitStatus.ts","../models/TemplateVersion.ts","../models/TemplateVersionList.ts","../models/TemplateVersionSpec.ts","../models/TemplateVersionStatus.ts","../models/TimeZone.ts","../models/TokenRequest.ts","../models/TokenResponse.ts","../models/UpdateSchedule.ts","../models/UserInfoResponse.ts","../models/Version.ts","../models/VolumeMount.ts","../scripts/openapi-typescript.js","../scripts/openapi-utils.js"],"version":"5.9.3"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export { ApiVersion } from './models/ApiVersion';
|
|
7
|
+
export { BindingType } from './models/BindingType';
|
|
8
|
+
export type { EarlyBinding } from './models/EarlyBinding';
|
|
9
|
+
export { ExportFormatType } from './models/ExportFormatType';
|
|
10
|
+
export type { ImageBuild } from './models/ImageBuild';
|
|
11
|
+
export type { ImageBuildBinding } from './models/ImageBuildBinding';
|
|
12
|
+
export type { ImageBuildCondition } from './models/ImageBuildCondition';
|
|
13
|
+
export { ImageBuildConditionReason } from './models/ImageBuildConditionReason';
|
|
14
|
+
export { ImageBuildConditionType } from './models/ImageBuildConditionType';
|
|
15
|
+
export type { ImageBuildDestination } from './models/ImageBuildDestination';
|
|
16
|
+
export type { ImageBuildList } from './models/ImageBuildList';
|
|
17
|
+
export type { ImageBuildRefSource } from './models/ImageBuildRefSource';
|
|
18
|
+
export type { ImageBuildSource } from './models/ImageBuildSource';
|
|
19
|
+
export type { ImageBuildSpec } from './models/ImageBuildSpec';
|
|
20
|
+
export type { ImageBuildStatus } from './models/ImageBuildStatus';
|
|
21
|
+
export type { ImageBuildUserConfiguration } from './models/ImageBuildUserConfiguration';
|
|
22
|
+
export type { ImageExport } from './models/ImageExport';
|
|
23
|
+
export type { ImageExportCondition } from './models/ImageExportCondition';
|
|
24
|
+
export { ImageExportConditionReason } from './models/ImageExportConditionReason';
|
|
25
|
+
export { ImageExportConditionType } from './models/ImageExportConditionType';
|
|
26
|
+
export { ImageExportFormatPhase } from './models/ImageExportFormatPhase';
|
|
27
|
+
export type { ImageExportList } from './models/ImageExportList';
|
|
28
|
+
export type { ImageExportSource } from './models/ImageExportSource';
|
|
29
|
+
export { ImageExportSourceType } from './models/ImageExportSourceType';
|
|
30
|
+
export type { ImageExportSpec } from './models/ImageExportSpec';
|
|
31
|
+
export type { ImageExportStatus } from './models/ImageExportStatus';
|
|
32
|
+
export type { LateBinding } from './models/LateBinding';
|
|
33
|
+
export { ResourceKind } from './models/ResourceKind';
|
|
34
|
+
export type { Status } from './models/Status';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
|
|
7
|
+
*/
|
|
8
|
+
export enum ApiVersion {
|
|
9
|
+
ApiVersionV1alpha1 = 'v1alpha1',
|
|
10
|
+
ApiVersionFlightctlIoV1alpha1 = 'flightctl.io/v1alpha1',
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* The type of binding for the image build.
|
|
7
|
+
*/
|
|
8
|
+
export enum BindingType {
|
|
9
|
+
BindingTypeEarly = 'early',
|
|
10
|
+
BindingTypeLate = 'late',
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Early binding configuration - embeds certificate in the image.
|
|
7
|
+
*/
|
|
8
|
+
export type EarlyBinding = {
|
|
9
|
+
/**
|
|
10
|
+
* The type of binding.
|
|
11
|
+
*/
|
|
12
|
+
type: 'early';
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* The type of format to export the image to.
|
|
7
|
+
*/
|
|
8
|
+
export enum ExportFormatType {
|
|
9
|
+
ExportFormatTypeVMDK = 'vmdk',
|
|
10
|
+
ExportFormatTypeQCOW2 = 'qcow2',
|
|
11
|
+
ExportFormatTypeISO = 'iso',
|
|
12
|
+
ExportFormatTypeQCOW2DiskContainer = 'qcow2-disk-container',
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ApiVersion } from './ApiVersion';
|
|
6
|
+
import type { ObjectMeta } from '../../models/ObjectMeta';
|
|
7
|
+
import type { ImageBuildSpec } from './ImageBuildSpec';
|
|
8
|
+
import type { ImageBuildStatus } from './ImageBuildStatus';
|
|
9
|
+
import type { ImageExport } from './ImageExport';
|
|
10
|
+
/**
|
|
11
|
+
* ImageBuild represents a build request for a container image.
|
|
12
|
+
*/
|
|
13
|
+
export type ImageBuild = {
|
|
14
|
+
apiVersion: ApiVersion;
|
|
15
|
+
/**
|
|
16
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
|
|
17
|
+
*/
|
|
18
|
+
kind: string;
|
|
19
|
+
metadata: ObjectMeta;
|
|
20
|
+
spec: ImageBuildSpec;
|
|
21
|
+
status?: ImageBuildStatus;
|
|
22
|
+
/**
|
|
23
|
+
* Array of ImageExport resources that reference this ImageBuild. Only populated when withExports query parameter is true.
|
|
24
|
+
*/
|
|
25
|
+
imageexports?: Array<ImageExport>;
|
|
26
|
+
};
|
|
27
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { EarlyBinding } from './EarlyBinding';
|
|
6
|
+
import type { LateBinding } from './LateBinding';
|
|
7
|
+
/**
|
|
8
|
+
* ImageBuildBinding specifies binding configuration for the build.
|
|
9
|
+
*/
|
|
10
|
+
export type ImageBuildBinding = (EarlyBinding | LateBinding);
|
|
11
|
+
|