diff --git a/services/frontend/src/types/index.ts b/services/frontend/src/types/index.ts index 7b9f7e8..b1b9071 100644 --- a/services/frontend/src/types/index.ts +++ b/services/frontend/src/types/index.ts @@ -108,18 +108,18 @@ export interface INetworkTopLevel { } export interface IService { - build: { + build?: { context: string; - dockerfile: string; - args: KeyValPair[]; - ssh: string[]; - cache_from: string[]; - cache_to: string[]; - extra_hosts: string[]; - isolation: string; - labels: KeyValPair[]; - shm_size: string | number; - target: string; + dockerfile?: string; + args?: Record | string[]; + ssh?: string[]; + cache_from?: string[]; + cache_to?: string[]; + extra_hosts?: string[]; + isolation?: string; + labels?: Record | string[]; + shm_size?: string | number; + target?: string; }; cpu_count: string | number; cpu_percent: string | number; @@ -360,6 +360,31 @@ export interface IGeneratePayload { } export interface IEditServiceForm { + build: { + context: string; + dockerfile: string; + arguments: { + key: string[]; + value: string[]; + }[]; + sshAuthentications: { + id: string; + path: string; + }[]; + cacheFrom: string[]; + cacheTo: string[]; + extraHosts: { + hostName: string; + ipAddress: string; + }[]; + isolation: string; + labels: { + key: string[]; + value: string[]; + }[]; + sharedMemorySize: string; + target: string; + }; serviceName: string; imageName: string; imageTag: string;