/* Options: Date: 2025-12-06 06:27:24 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.1fetch.co.za //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CalculateDistance.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class ApiServiceRequest implements IServiceRequest, IHasApiKey { /** @description The API Key required for authentication */ // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) public ApiKey: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export interface IServiceRequest { } export interface IHasApiKey { ApiKey: string; } export interface ILogRequest { } export class Coordinate { /** @description The Latitude */ // @ApiMember(Description="The Latitude", IsRequired=true) public Latitude: number; /** @description The Longitude */ // @ApiMember(Description="The Longitude", IsRequired=true) public Longitude: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ApiServiceResponse implements IServiceResponse { /** @description Information about the response. */ // @ApiMember(Description="Information about the response.", IsRequired=true) public Description: string; /** @description Heading or summary of the response. */ // @ApiMember(Description="Heading or summary of the response.", IsRequired=true) public Heading: string; /** @description Did the intended operation for this response complete successfully? */ // @ApiMember(DataType="boolean", Description="Did the intended operation for this response complete successfully?", IsRequired=true) public WasSuccessful: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CalculateDistanceResponse extends ApiServiceResponse { /** @description A list of the distances between each point, returned in order that the points were provided */ // @ApiMember(Description="A list of the distances between each point, returned in order that the points were provided") public PointDistances: number[]; /** @description The total distance between all points */ // @ApiMember(Description="The total distance between all points") public TotalDistance: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @Route("/calculatedistance", "POST") export class CalculateDistance extends ApiServiceRequest implements IReturn, ILogRequest { /** @description Array of coordinates */ // @ApiMember(Description="Array of coordinates", IsRequired=true) public Coordinates: Coordinate[]; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'CalculateDistance'; } public getMethod() { return 'POST'; } public createResponse() { return new CalculateDistanceResponse(); } }