Skip to content

Commit

Permalink
refactor(nms): Make TypeScript generation script executable and fix P…
Browse files Browse the repository at this point in the history
…ackageType usage

Signed-off-by: Thomas Schmitt <thomas.schmitt@tngtech.com>
  • Loading branch information
thmsschmitt committed May 18, 2022
1 parent f265514 commit 5099783
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nms/app/views/equipment/GatewayDetailConfigEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import type {
apn_resources,
challenge_key,
distribution_package,
enodeb_serials,
gateway_device,
gateway_dns_configs,
Expand All @@ -25,7 +26,6 @@ import type {
gateway_ran_configs,
lte_gateway,
magmad_gateway_configs,
package_type,
} from '../../../generated/MagmaAPIBindings';

import Accordion from '@material-ui/core/Accordion';
Expand Down Expand Up @@ -344,7 +344,7 @@ type Props = {
onSave: lte_gateway => void,
};

type VersionType = $PropertyType<package_type, 'version'>;
type VersionType = $PropertyType<distribution_package, 'version'>;

export function ConfigEdit(props: Props) {
const enqueueSnackbar = useEnqueueSnackbar();
Expand Down
Empty file modified nms/scripts/generateAPIFromSwaggerForTypeScript.sh
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func NewDefaultGatewayStatus(hardwareID string) *GatewayStatus {
},
PlatformInfo: &PlatformInfo{
VpnIP: "facebook.com",
Packages: []*Package{
Packages: []*DistributionPackage{
{
Name: "magma",
Version: "0.0.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ magma-gen-meta:
filename: machine_info_swaggergen.go
- go-struct-name: NetworkInterface
filename: network_interface_swaggergen.go
- go-struct-name: Package
- go-struct-name: DistributionPackage
filename: distribution_package_swaggergen.go
- go-struct-name: PlatformInfo
filename: platform_info_swaggergen.go
Expand Down

0 comments on commit 5099783

Please sign in to comment.