/* Options: Date: 2025-09-14 05:22:49 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://production-eros-gateway-api-supplierconnect.azurewebsites.net/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetSchedules.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export enum AttachmentType { Url = 'Url', FileStream = 'FileStream', } export class EmailAttachment { public FileName: string; public ContentType: string; public Path: string; public Url: string; public Length: number; public FileStream: string; public StreamContent: string; public AttachmentType: AttachmentType; public ProcessedAndUploadedAsBlob: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SupplierConnectObjectReference { public RmsTableContextId: string; public AlternateKey: string; public DataSourceInstanceId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SupplierConnectContactInfo { public Id: string; public Name: string; public Email: string; public Phone: string; public ContactReference: SupplierConnectObjectReference; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SupplierConnectProjectInfo { public Id: string; public Name: string; public Reference: string; public Description: string; public Address: string; public HouseType: string; public Elevation: string; public Supervisor: SupplierConnectContactInfo; public CustomerName: string; public ProjectReference: SupplierConnectObjectReference; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SupplierConnectPurchaseOrderInfo { public Id: string; public Reference: string; public Description: string; public ProjectId: string; public PurchaseOrderReference: SupplierConnectObjectReference; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SupplierConnectActivityReference { public Name: string; public Notes: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SupplierConnectScheduleParams { public Name: string; public Value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SupplierConnectSchedule { public RequestId: string; public PreviousRequestId: string; public LicenseeId: string; public LicenseeName: string; public ScheduleDateTime: string; public Requester: SupplierConnectContactInfo; public Supplier: SupplierConnectContactInfo; public Project: SupplierConnectProjectInfo; public PurchaseOrder: SupplierConnectPurchaseOrderInfo; public Activity: SupplierConnectActivityReference; public Params: SupplierConnectScheduleParams[]; public Attachments: EmailAttachment[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ScheduleDetails extends SupplierConnectSchedule { public ReferenceId: string; public Index: number; public StatusId: string; public Status: string; public StatusMessage: string; public RequestedBy: string; public RequestedDate?: string; public CommunicationId: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @ApiResponse(Description="Returns the list of the schedule requests for the given list of Ids") export class GetSchedulesResponse { public Success: boolean; public Message: string; public ScheduleRequests: ScheduleDetails[]; public ResponseStatus: ResponseStatus; public LastRowVersion: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Retrieve SupplierConnect schedule(s) by given ids. This will return SupplierConnect schedule request(s), and the associated other details such as statuses */ // @Route("/schedules", "GET") // @Route("/schedules/{Ids}", "GET") // @Api(Description="Retrieve SupplierConnect schedule(s) by given ids. This will return SupplierConnect schedule request(s), and the associated other details such as statuses") export class GetSchedules implements IReturn { /** @description Id or list of Ids of the schedule request(s) to be retrieved */ // @DataMember(Name="id") // @ApiMember(Description="Id or list of Ids of the schedule request(s) to be retrieved", IsRequired=true, Name="id") public id: string[] = []; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetSchedules'; } public getMethod() { return 'GET'; } public createResponse() { return new GetSchedulesResponse(); } }