{"version":3,"file":"static/js/606bd6829f82b4d58a52.bundle.js","mappings":";+MAwSM,MAAOA,EAaXC,YAAYC,GAOV,GANAA,EAAcA,GAAe,GAE7BC,KAAKC,GAAKF,EAAYE,GAGtBD,KAAKE,yBAAsBC,EACvBJ,EAAYG,oBAAqB,CACnCF,KAAKE,oBAAsB,GAC3B,IAAK,IAAIE,EAAI,EAAGA,EAAIL,EAAYG,oBAAoBG,OAAQD,IAC1D,GAAIL,EAAYG,oBAAoBE,GAClC,GAAIL,EAAYG,oBAAoBE,GAAG,eAAgB,CACrD,IAAIE,EACFP,EAAYG,oBAAoBE,GAAG,eACrCE,EAAYA,EACTC,OAAOD,EAAUE,YAAY,KAAO,GACpCC,OAAO,SACNC,EAAcJ,KAChBN,KAAKE,oBAAoBE,GAAK,IAAIM,EAAcJ,GAC9CP,EAAYG,oBAAoBE,UAIpCJ,KAAKE,oBAAoBE,GACvB,IAAIM,EAAAA,sBACFX,EAAYG,oBAAoBE,SAKtCJ,KAAKE,oBAAoBE,QAAKD,IAwDlC,MAAOQ,EAgBXb,YAAYC,GAQV,GAPAA,EAAcA,GAAe,GAE7BC,KAAKY,QAAUb,EAAYa,QAG3BZ,KAAKa,UAAYd,EAAYc,UAEJ,OAArBd,EAAYe,KAEdd,KAAKc,UAAOX,OACP,GAAuC,MAAnCJ,EAAYe,KAAK,eAC1Bd,KAAKc,KAAO,IAAIC,EAAmBhB,EAAYe,UAC1C,CACL,IAAIR,EAAoBP,EAAYe,KAAK,eACzCR,EAAYA,EACTC,OAAOD,EAAUE,YAAY,KAAO,GACpCC,OAAO,SACNC,EAAcJ,KAChBN,KAAKc,KAAO,IAAIJ,EAAcJ,GAAWP,EAAYe,SASvD,MAAOE,EAgBXlB,YAAYC,GAQV,GAPAA,EAAcA,GAAe,GAE7BC,KAAKY,QAAUb,EAAYa,QAG3BZ,KAAKa,UAAYd,EAAYc,UAEJ,OAArBd,EAAYe,KAEdd,KAAKc,UAAOX,OACP,GAAuC,MAAnCJ,EAAYe,KAAK,eAC1Bd,KAAKc,KAAO,IAAIC,EAAmBhB,EAAYe,UAC1C,CACL,IAAIR,EAAoBP,EAAYe,KAAK,eACzCR,EAAYA,EACTC,OAAOD,EAAUE,YAAY,KAAO,GACpCC,OAAO,SACNC,EAAcJ,KAChBN,KAAKc,KAAO,IAAIJ,EAAcJ,GAAWP,EAAYe,SAsfvD,MAAOC,EAaXjB,YAAYC,GACVA,EAAcA,GAAe,GAE7BC,KAAKiB,WAAalB,EAAYkB,WAG9BjB,KAAKkB,aAAenB,EAAYmB,cCh9BpC,SAASC,EAAWC,GAClB,MAAMC,EAAMD,EAAK,CAAEnB,GAAImB,GAAO,KAC9B,OAAO,IAAIE,EAAAA,iBACT,QACA,QACAC,EACAF,GAiDE,SAAUG,EACdC,EACAC,GAEA,MAAMC,EArBF,SACJD,GAGA,OADcP,IACDS,qCACX,cACA,EACAL,EACA,QACA,CACEM,YAAa,MACbC,aAAc,2CAEhB,CAAEJ,YAAaA,IAQDK,CAAsBL,GACtC,OAAOM,EAAAA,EAAAA,qBACLL,EACAF,EAAQQ,eAqBN,SAAUC,EACdT,EACAC,GAEA,MAAMC,EArBF,SACJD,GAGA,OADcP,IACDS,qCACX,cACA,EACAL,EACA,QACA,CACEM,YAAa,MACbC,aAAc,2CAEhB,CAAEJ,YAAaA,IAQDS,CAAsBT,GACtC,OAAOM,EAAAA,EAAAA,qBACLL,EACAF,EAAQQ","sources":["webpack://@msdyn365-commerce-partners/fabrikam/./src/proxy/britax-claims-proxy/DataServiceEntities.g.ts?1eb9","webpack://@msdyn365-commerce-partners/fabrikam/./src/proxy/britax-claims-proxy/DataActionExtension.g.ts?3b89"],"sourcesContent":["// tslint:disable\r\nimport * as EntityClasses from \"@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g\";\r\nimport * as Entities from \"@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g\";\r\nimport { jsonLightReadStringPropertyValue } from \"@msdyn365-commerce/retail-proxy/dist/externals\";\r\n\r\n/**\r\n * Cases entity interface.\r\n */\r\nexport interface ICases {\r\n Id: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * AllCustomerCasesResponse entity interface.\r\n */\r\nexport interface IAllCustomerCasesResponse {\r\n Success: boolean;\r\n Exception?: string;\r\n Data?: IAllCustomerCases;\r\n}\r\n\r\n/**\r\n * CreateCaseResponse entity interface.\r\n */\r\nexport interface ICreateCaseResponse {\r\n Success: boolean;\r\n Exception?: string;\r\n Data?: ICase;\r\n}\r\n\r\n/**\r\n * UpdateCaseResponse entity interface.\r\n */\r\nexport interface IUpdateCaseResponse {\r\n Success: boolean;\r\n Exception?: string;\r\n Data?: ICase;\r\n}\r\n\r\n/**\r\n * GetCaseNotesResponse entity interface.\r\n */\r\nexport interface IGetCaseNotesResponse {\r\n Success: boolean;\r\n Exception?: string;\r\n Data?: ICaseNotes;\r\n}\r\n\r\n/**\r\n * GetSpecificCaseResponse entity interface.\r\n */\r\nexport interface IGetSpecificCaseResponse {\r\n Success: boolean;\r\n Exception?: string;\r\n Data?: ICaseData;\r\n}\r\n\r\n/**\r\n * GetLatestNoteResponse entity interface.\r\n */\r\nexport interface IGetLatestNoteResponse {\r\n Success: boolean;\r\n Exception?: string;\r\n Data?: ILatestNotes;\r\n}\r\n\r\n/**\r\n * AllCustomerCases entity interface.\r\n */\r\nexport interface IAllCustomerCases {\r\n OdataContext?: string;\r\n Value?: IValue[];\r\n}\r\n\r\n/**\r\n * Value entity interface.\r\n */\r\nexport interface IValue {\r\n ODataEtag?: string;\r\n TicketNumber?: string;\r\n CreatedOn: Date;\r\n StatusCode: number;\r\n Br_ClaimCity?: string;\r\n New_NotifyMePerEmailWhenClaimIsUpdated?: string;\r\n New_ConsumerName?: string;\r\n Description?: string;\r\n New_ShipmentTrackingId?: string;\r\n New_InvoiceNumber?: string;\r\n IncidentId?: string;\r\n SubjectId?: ISubjectid;\r\n Customerid_account?: ICustomerid_Account;\r\n PrimaryContactId?: IPrimarycontactid;\r\n Incident_Annotation?: IIncidentAnnotation[];\r\n}\r\n\r\n/**\r\n * Subjectid entity interface.\r\n */\r\nexport interface ISubjectid {\r\n Title?: string;\r\n SubjectId?: string;\r\n}\r\n\r\n/**\r\n * Customerid_Account entity interface.\r\n */\r\nexport interface ICustomerid_Account {\r\n Accountnumber?: string;\r\n Accountid?: string;\r\n}\r\n\r\n/**\r\n * Primarycontactid entity interface.\r\n */\r\nexport interface IPrimarycontactid {\r\n Emailaddress1?: string;\r\n Contactid?: string;\r\n}\r\n\r\n/**\r\n * IncidentAnnotation entity interface.\r\n */\r\nexport interface IIncidentAnnotation {\r\n notetext?: string;\r\n createdon?: string;\r\n annotationid?: string;\r\n objecttypecode?: string;\r\n isdocument: boolean;\r\n}\r\n\r\n/**\r\n * Case entity interface.\r\n */\r\nexport interface ICase {\r\n incidentid?: string;\r\n ticketnumber?: string;\r\n}\r\n\r\n/**\r\n * CaseNotes entity interface.\r\n */\r\nexport interface ICaseNotes {\r\n ODataContext?: string;\r\n Value?: ICaseNote[];\r\n}\r\n\r\n/**\r\n * CaseNote entity interface.\r\n */\r\nexport interface ICaseNote {\r\n ODataETag?: string;\r\n NoteText?: string;\r\n FileName?: string;\r\n IsDocument: boolean;\r\n DocumentBody?: string;\r\n CreatedOn?: string;\r\n AnnotationId?: string;\r\n CreatedBy?: ICreatedBy;\r\n}\r\n\r\n/**\r\n * CreatedBy entity interface.\r\n */\r\nexport interface ICreatedBy {\r\n FullName?: string;\r\n SystemUserId?: string;\r\n OwnerId?: string;\r\n}\r\n\r\n/**\r\n * CaseData entity interface.\r\n */\r\nexport interface ICaseData {\r\n ODataContext?: string;\r\n Value?: ICustomerCase[];\r\n}\r\n\r\n/**\r\n * CustomerCase entity interface.\r\n */\r\nexport interface ICustomerCase {\r\n ODataETag?: string;\r\n TicketNumber?: string;\r\n CreatedOn?: string;\r\n StatusCode?: string;\r\n EmailAddress?: string;\r\n Br_DeliveryAddress?: string;\r\n Br_Country?: string;\r\n Br_ClaimCity?: string;\r\n Br_ClaimPostCode?: string;\r\n Br_ClaimStreet?: string;\r\n New_NotifyMePerEmailWhenClaimIsUpdated?: string;\r\n New_ConsumerName?: string;\r\n New_ConsumerContactDetails?: string;\r\n New_CustomerConfirmedThePrivacyPolicy?: string;\r\n Description?: string;\r\n New_OrderNumber?: string;\r\n New_OrderDate?: string;\r\n New_SalesOrderLineNumber?: string;\r\n Br_DateOfPurchase?: string;\r\n New_SerialNumber?: string;\r\n Br_HasThisProductBeenInAnAccident?: string;\r\n Br_TrackingNumber?: string;\r\n New_ShipmentTrackingId?: string;\r\n New_LoadId?: string;\r\n New_DeliveryNoteId?: string;\r\n New_InvoiceNumber?: string;\r\n New_InvoiceDate?: string;\r\n New_InvoiceLineNumber?: string;\r\n IncidentId?: string;\r\n SubjectId?: ISubjectid;\r\n Customerid_account?: ICustomerid_Account;\r\n PrimaryContactId?: IPrimarycontactid;\r\n Productid?: IProductid;\r\n}\r\n\r\n/**\r\n * Productid entity interface.\r\n */\r\nexport interface IProductid {\r\n Productnumber?: string;\r\n ProductId?: string;\r\n}\r\n\r\n/**\r\n * LatestNotes entity interface.\r\n */\r\nexport interface ILatestNotes {\r\n ODataContext?: string;\r\n Value?: ICaseNote[];\r\n}\r\n\r\n/**\r\n * CaseWithAttachment entity interface.\r\n */\r\nexport interface ICaseWithAttachment {\r\n StatusCodes: number;\r\n SubjectIdOdataBind?: string;\r\n CustomerIdAccountOdataBind?: string;\r\n PrimaryContactIdOdataBind?: string;\r\n EmailAddress?: string;\r\n Br_DeliveryAddress?: string;\r\n Br_ClaimCity?: string;\r\n Br_ClaimPostCode?: string;\r\n Br_ClaimStreet?: string;\r\n Br_Country?: string;\r\n New_NotifyMePerEmailWhenClaimIsUpdated: boolean;\r\n New_ConsumerName?: string;\r\n New_ConsumerContactDetails?: string;\r\n New_CustomerConfirmedThePrivacyPolicy: boolean;\r\n Description?: string;\r\n New_OrderNumber?: string;\r\n New_OrderDate?: string;\r\n New_SalesOrderLineNumber?: string;\r\n Br_DateOfPurchase?: string;\r\n ProductIdOdataBind?: string;\r\n New_SerialNumber?: string;\r\n New_ShipmentTrackingId?: string;\r\n New_LoadId?: string;\r\n New_DeliveryNoteId?: string;\r\n New_InvoiceNumber?: string;\r\n New_InvoiceDate?: string;\r\n New_InvoiceLineNumber?: string;\r\n Br_HasThisProductBeenInAnAccident: boolean;\r\n Br_TrackingNumber?: string;\r\n Br_ColorDescribtion?: string;\r\n New_D365itemnumber?: string;\r\n Incident_Annotation?: IAttachment[];\r\n CaseOriginCode?: string;\r\n}\r\n\r\n/**\r\n * UpdateCase entity interface.\r\n */\r\nexport interface IUpdateCase {\r\n NoteText?: string;\r\n FileName?: string;\r\n IsDocument: boolean;\r\n DocumentBody?: string;\r\n IncidentId?: string;\r\n}\r\n\r\n/**\r\n * Attachment entity interface.\r\n */\r\nexport interface IAttachment {\r\n NoteText?: string;\r\n FileName?: string;\r\n IsDocument: boolean;\r\n DocumentBody?: string;\r\n}\r\n\r\n/**\r\n * Cases entity class.\r\n */\r\nexport class CasesExtensionClass implements ICases {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Id: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Id = odataObject.Id;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i][\"@odata.type\"]) {\r\n var className: string =\r\n odataObject.ExtensionProperties[i][\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](\r\n odataObject.ExtensionProperties[i]\r\n );\r\n }\r\n } else {\r\n this.ExtensionProperties[i] =\r\n new EntityClasses.CommercePropertyClass(\r\n odataObject.ExtensionProperties[i]\r\n );\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * AllCustomerCasesResponse entity class.\r\n */\r\nexport class AllCustomerCasesResponseExtensionClass\r\n implements IAllCustomerCasesResponse\r\n{\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Exception: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Data: IAllCustomerCases;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Success = odataObject.Success;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Exception = odataObject.Exception;\r\n\r\n if (odataObject.Data === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Data = undefined;\r\n } else if (odataObject.Data[\"@odata.type\"] == null) {\r\n this.Data = new AllCustomerCasesExtensionClass(odataObject.Data);\r\n } else {\r\n var className: string = odataObject.Data[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Data = new EntityClasses[className](odataObject.Data);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * CreateCaseResponse entity class.\r\n */\r\nexport class CreateCaseResponseExtensionClass implements ICreateCaseResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Exception: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Data: ICase;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Success = odataObject.Success;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Exception = odataObject.Exception;\r\n\r\n if (odataObject.Data === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Data = undefined;\r\n } else if (odataObject.Data[\"@odata.type\"] == null) {\r\n this.Data = new CaseExtensionClass(odataObject.Data);\r\n } else {\r\n var className: string = odataObject.Data[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Data = new EntityClasses[className](odataObject.Data);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * UpdateCaseResponse entity class.\r\n */\r\nexport class UpdateCaseResponseExtensionClass implements IUpdateCaseResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Exception: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Data: ICase;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Success = odataObject.Success;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Exception = odataObject.Exception;\r\n\r\n if (odataObject.Data === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Data = undefined;\r\n } else if (odataObject.Data[\"@odata.type\"] == null) {\r\n this.Data = new CaseExtensionClass(odataObject.Data);\r\n } else {\r\n var className: string = odataObject.Data[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Data = new EntityClasses[className](odataObject.Data);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * GetCaseNotesResponse entity class.\r\n */\r\nexport class GetCaseNotesResponseExtensionClass\r\n implements IGetCaseNotesResponse\r\n{\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Exception: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Data: ICaseNotes;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Success = odataObject.Success;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Exception = odataObject.Exception;\r\n\r\n if (odataObject.Data === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Data = undefined;\r\n } else if (odataObject.Data[\"@odata.type\"] == null) {\r\n this.Data = new CaseNotesExtensionClass(odataObject.Data);\r\n } else {\r\n var className: string = odataObject.Data[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Data = new EntityClasses[className](odataObject.Data);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * GetSpecificCaseResponse entity class.\r\n */\r\nexport class GetSpecificCaseResponseExtensionClass\r\n implements IGetSpecificCaseResponse\r\n{\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Exception: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Data: ICaseData;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Success = odataObject.Success;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Exception = odataObject.Exception;\r\n\r\n if (odataObject.Data === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Data = undefined;\r\n } else if (odataObject.Data[\"@odata.type\"] == null) {\r\n this.Data = new CaseDataExtensionClass(odataObject.Data);\r\n } else {\r\n var className: string = odataObject.Data[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Data = new EntityClasses[className](odataObject.Data);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * GetLatestNoteResponse entity class.\r\n */\r\nexport class GetLatestNoteResponseExtensionClass\r\n implements IGetLatestNoteResponse\r\n{\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Exception: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Data: ILatestNotes;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Success = odataObject.Success;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Exception = odataObject.Exception;\r\n\r\n if (odataObject.Data === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Data = undefined;\r\n } else if (odataObject.Data[\"@odata.type\"] == null) {\r\n this.Data = new LatestNotesExtensionClass(odataObject.Data);\r\n } else {\r\n var className: string = odataObject.Data[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Data = new EntityClasses[className](odataObject.Data);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * AllCustomerCases entity class.\r\n */\r\nexport class AllCustomerCasesExtensionClass implements IAllCustomerCases {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public OdataContext: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Value: IValue[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OdataContext = odataObject.OdataContext;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value = undefined;\r\n if (odataObject.Value) {\r\n this.Value = [];\r\n for (var i = 0; i < odataObject.Value.length; i++) {\r\n if (odataObject.Value[i]) {\r\n if (odataObject.Value[i][\"@odata.type\"]) {\r\n var className: string = odataObject.Value[i][\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Value[i] = new EntityClasses[className](\r\n odataObject.Value[i]\r\n );\r\n }\r\n } else {\r\n this.Value[i] = new ValueExtensionClass(odataObject.Value[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Value entity class.\r\n */\r\nexport class ValueExtensionClass implements IValue {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ODataEtag: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TicketNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CreatedOn: Date;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public StatusCode: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ClaimCity: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_NotifyMePerEmailWhenClaimIsUpdated: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ConsumerName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Description: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ShipmentTrackingId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_InvoiceNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IncidentId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SubjectId: ISubjectid;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Customerid_account: ICustomerid_Account;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PrimaryContactId: IPrimarycontactid;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Incident_Annotation: IIncidentAnnotation[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ODataEtag = odataObject.ODataEtag;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TicketNumber = odataObject.TicketNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CreatedOn =\r\n odataObject.CreatedOn instanceof Date\r\n ? odataObject.CreatedOn\r\n : odataObject.CreatedOn\r\n ? jsonLightReadStringPropertyValue(\r\n odataObject.CreatedOn,\r\n \"Edm.DateTimeOffset\",\r\n false\r\n )\r\n : undefined;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.StatusCode = odataObject.StatusCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ClaimCity = odataObject.Br_ClaimCity;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_NotifyMePerEmailWhenClaimIsUpdated =\r\n odataObject.New_NotifyMePerEmailWhenClaimIsUpdated;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ConsumerName = odataObject.New_ConsumerName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Description = odataObject.Description;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ShipmentTrackingId = odataObject.New_ShipmentTrackingId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_InvoiceNumber = odataObject.New_InvoiceNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IncidentId = odataObject.IncidentId;\r\n\r\n if (odataObject.SubjectId === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SubjectId = undefined;\r\n } else if (odataObject.SubjectId[\"@odata.type\"] == null) {\r\n this.SubjectId = new SubjectidExtensionClass(odataObject.SubjectId);\r\n } else {\r\n var className: string = odataObject.SubjectId[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.SubjectId = new EntityClasses[className](odataObject.SubjectId);\r\n }\r\n }\r\n\r\n if (odataObject.Customerid_account === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Customerid_account = undefined;\r\n } else if (odataObject.Customerid_account[\"@odata.type\"] == null) {\r\n this.Customerid_account = new Customerid_AccountExtensionClass(\r\n odataObject.Customerid_account\r\n );\r\n } else {\r\n var className: string = odataObject.Customerid_account[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Customerid_account = new EntityClasses[className](\r\n odataObject.Customerid_account\r\n );\r\n }\r\n }\r\n\r\n if (odataObject.PrimaryContactId === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PrimaryContactId = undefined;\r\n } else if (odataObject.PrimaryContactId[\"@odata.type\"] == null) {\r\n this.PrimaryContactId = new PrimarycontactidExtensionClass(\r\n odataObject.PrimaryContactId\r\n );\r\n } else {\r\n var className: string = odataObject.PrimaryContactId[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.PrimaryContactId = new EntityClasses[className](\r\n odataObject.PrimaryContactId\r\n );\r\n }\r\n }\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Incident_Annotation = undefined;\r\n if (odataObject.Incident_Annotation) {\r\n this.Incident_Annotation = [];\r\n for (var i = 0; i < odataObject.Incident_Annotation.length; i++) {\r\n if (odataObject.Incident_Annotation[i]) {\r\n if (odataObject.Incident_Annotation[i][\"@odata.type\"]) {\r\n var className: string =\r\n odataObject.Incident_Annotation[i][\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Incident_Annotation[i] = new EntityClasses[className](\r\n odataObject.Incident_Annotation[i]\r\n );\r\n }\r\n } else {\r\n this.Incident_Annotation[i] = new IncidentAnnotationExtensionClass(\r\n odataObject.Incident_Annotation[i]\r\n );\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Incident_Annotation[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Subjectid entity class.\r\n */\r\nexport class SubjectidExtensionClass implements ISubjectid {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Title: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SubjectId: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Title = odataObject.Title;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SubjectId = odataObject.SubjectId;\r\n }\r\n}\r\n\r\n/**\r\n * Customerid_Account entity class.\r\n */\r\nexport class Customerid_AccountExtensionClass implements ICustomerid_Account {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Accountnumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Accountid: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Accountnumber = odataObject.Accountnumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Accountid = odataObject.Accountid;\r\n }\r\n}\r\n\r\n/**\r\n * Primarycontactid entity class.\r\n */\r\nexport class PrimarycontactidExtensionClass implements IPrimarycontactid {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Emailaddress1: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Contactid: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Emailaddress1 = odataObject.Emailaddress1;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Contactid = odataObject.Contactid;\r\n }\r\n}\r\n\r\n/**\r\n * IncidentAnnotation entity class.\r\n */\r\nexport class IncidentAnnotationExtensionClass implements IIncidentAnnotation {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public notetext: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public createdon: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public annotationid: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public objecttypecode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public isdocument: boolean;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.notetext = odataObject.notetext;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.createdon = odataObject.createdon;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.annotationid = odataObject.annotationid;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.objecttypecode = odataObject.objecttypecode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.isdocument = odataObject.isdocument;\r\n }\r\n}\r\n\r\n/**\r\n * Case entity class.\r\n */\r\nexport class CaseExtensionClass implements ICase {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public incidentid: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ticketnumber: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.incidentid = odataObject.incidentid;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ticketnumber = odataObject.ticketnumber;\r\n }\r\n}\r\n\r\n/**\r\n * CaseNotes entity class.\r\n */\r\nexport class CaseNotesExtensionClass implements ICaseNotes {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ODataContext: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Value: ICaseNote[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ODataContext = odataObject.ODataContext;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value = undefined;\r\n if (odataObject.Value) {\r\n this.Value = [];\r\n for (var i = 0; i < odataObject.Value.length; i++) {\r\n if (odataObject.Value[i]) {\r\n if (odataObject.Value[i][\"@odata.type\"]) {\r\n var className: string = odataObject.Value[i][\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Value[i] = new EntityClasses[className](\r\n odataObject.Value[i]\r\n );\r\n }\r\n } else {\r\n this.Value[i] = new CaseNoteExtensionClass(odataObject.Value[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * CaseNote entity class.\r\n */\r\nexport class CaseNoteExtensionClass implements ICaseNote {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ODataETag: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public NoteText: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FileName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IsDocument: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DocumentBody: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CreatedOn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AnnotationId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CreatedBy: ICreatedBy;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ODataETag = odataObject.ODataETag;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.NoteText = odataObject.NoteText;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FileName = odataObject.FileName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IsDocument = odataObject.IsDocument;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DocumentBody = odataObject.DocumentBody;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CreatedOn = odataObject.CreatedOn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AnnotationId = odataObject.AnnotationId;\r\n\r\n if (odataObject.CreatedBy === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CreatedBy = undefined;\r\n } else if (odataObject.CreatedBy[\"@odata.type\"] == null) {\r\n this.CreatedBy = new CreatedByExtensionClass(odataObject.CreatedBy);\r\n } else {\r\n var className: string = odataObject.CreatedBy[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.CreatedBy = new EntityClasses[className](odataObject.CreatedBy);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * CreatedBy entity class.\r\n */\r\nexport class CreatedByExtensionClass implements ICreatedBy {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FullName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SystemUserId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public OwnerId: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FullName = odataObject.FullName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SystemUserId = odataObject.SystemUserId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OwnerId = odataObject.OwnerId;\r\n }\r\n}\r\n\r\n/**\r\n * CaseData entity class.\r\n */\r\nexport class CaseDataExtensionClass implements ICaseData {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ODataContext: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Value: ICustomerCase[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ODataContext = odataObject.ODataContext;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value = undefined;\r\n if (odataObject.Value) {\r\n this.Value = [];\r\n for (var i = 0; i < odataObject.Value.length; i++) {\r\n if (odataObject.Value[i]) {\r\n if (odataObject.Value[i][\"@odata.type\"]) {\r\n var className: string = odataObject.Value[i][\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Value[i] = new EntityClasses[className](\r\n odataObject.Value[i]\r\n );\r\n }\r\n } else {\r\n this.Value[i] = new CustomerCaseExtensionClass(\r\n odataObject.Value[i]\r\n );\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * CustomerCase entity class.\r\n */\r\nexport class CustomerCaseExtensionClass implements ICustomerCase {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ODataETag: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TicketNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CreatedOn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public StatusCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public EmailAddress: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_DeliveryAddress: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_Country: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ClaimCity: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ClaimPostCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ClaimStreet: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_NotifyMePerEmailWhenClaimIsUpdated: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ConsumerName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ConsumerContactDetails: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_CustomerConfirmedThePrivacyPolicy: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Description: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_OrderNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_OrderDate: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_SalesOrderLineNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_DateOfPurchase: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_SerialNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_HasThisProductBeenInAnAccident: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_TrackingNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ShipmentTrackingId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_LoadId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_DeliveryNoteId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_InvoiceNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_InvoiceDate: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_InvoiceLineNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IncidentId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SubjectId: ISubjectid;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Customerid_account: ICustomerid_Account;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PrimaryContactId: IPrimarycontactid;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Productid: IProductid;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ODataETag = odataObject.ODataETag;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TicketNumber = odataObject.TicketNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CreatedOn = odataObject.CreatedOn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.StatusCode = odataObject.StatusCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.EmailAddress = odataObject.EmailAddress;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_DeliveryAddress = odataObject.Br_DeliveryAddress;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_Country = odataObject.Br_Country;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ClaimCity = odataObject.Br_ClaimCity;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ClaimPostCode = odataObject.Br_ClaimPostCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ClaimStreet = odataObject.Br_ClaimStreet;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_NotifyMePerEmailWhenClaimIsUpdated =\r\n odataObject.New_NotifyMePerEmailWhenClaimIsUpdated;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ConsumerName = odataObject.New_ConsumerName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ConsumerContactDetails = odataObject.New_ConsumerContactDetails;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_CustomerConfirmedThePrivacyPolicy =\r\n odataObject.New_CustomerConfirmedThePrivacyPolicy;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Description = odataObject.Description;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_OrderNumber = odataObject.New_OrderNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_OrderDate = odataObject.New_OrderDate;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_SalesOrderLineNumber = odataObject.New_SalesOrderLineNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_DateOfPurchase = odataObject.Br_DateOfPurchase;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_SerialNumber = odataObject.New_SerialNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_HasThisProductBeenInAnAccident =\r\n odataObject.Br_HasThisProductBeenInAnAccident;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_TrackingNumber = odataObject.Br_TrackingNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ShipmentTrackingId = odataObject.New_ShipmentTrackingId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_LoadId = odataObject.New_LoadId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_DeliveryNoteId = odataObject.New_DeliveryNoteId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_InvoiceNumber = odataObject.New_InvoiceNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_InvoiceDate = odataObject.New_InvoiceDate;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_InvoiceLineNumber = odataObject.New_InvoiceLineNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IncidentId = odataObject.IncidentId;\r\n\r\n if (odataObject.SubjectId === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SubjectId = undefined;\r\n } else if (odataObject.SubjectId[\"@odata.type\"] == null) {\r\n this.SubjectId = new SubjectidExtensionClass(odataObject.SubjectId);\r\n } else {\r\n var className: string = odataObject.SubjectId[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.SubjectId = new EntityClasses[className](odataObject.SubjectId);\r\n }\r\n }\r\n\r\n if (odataObject.Customerid_account === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Customerid_account = undefined;\r\n } else if (odataObject.Customerid_account[\"@odata.type\"] == null) {\r\n this.Customerid_account = new Customerid_AccountExtensionClass(\r\n odataObject.Customerid_account\r\n );\r\n } else {\r\n var className: string = odataObject.Customerid_account[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Customerid_account = new EntityClasses[className](\r\n odataObject.Customerid_account\r\n );\r\n }\r\n }\r\n\r\n if (odataObject.PrimaryContactId === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PrimaryContactId = undefined;\r\n } else if (odataObject.PrimaryContactId[\"@odata.type\"] == null) {\r\n this.PrimaryContactId = new PrimarycontactidExtensionClass(\r\n odataObject.PrimaryContactId\r\n );\r\n } else {\r\n var className: string = odataObject.PrimaryContactId[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.PrimaryContactId = new EntityClasses[className](\r\n odataObject.PrimaryContactId\r\n );\r\n }\r\n }\r\n\r\n if (odataObject.Productid === null || odataObject.Productid === undefined) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Productid = undefined;\r\n } else if (\r\n odataObject.Productid[\"@odata.type\"] === null ||\r\n odataObject.Productid[\"@odata.type\"] === undefined\r\n ) {\r\n this.Productid = new ProductidExtensionClass(odataObject.Productid);\r\n } else {\r\n var className: string = odataObject.Productid[\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Productid = new EntityClasses[className](odataObject.Productid);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Productid entity class.\r\n */\r\nexport class ProductidExtensionClass implements IProductid {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Productnumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductId: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Productnumber = odataObject.Productnumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductId = odataObject.ProductId;\r\n }\r\n}\r\n\r\n/**\r\n * LatestNotes entity class.\r\n */\r\nexport class LatestNotesExtensionClass implements ILatestNotes {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ODataContext: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Value: ICaseNote[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ODataContext = odataObject.ODataContext;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value = undefined;\r\n if (odataObject.Value) {\r\n this.Value = [];\r\n for (var i = 0; i < odataObject.Value.length; i++) {\r\n if (odataObject.Value[i]) {\r\n if (odataObject.Value[i][\"@odata.type\"]) {\r\n var className: string = odataObject.Value[i][\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Value[i] = new EntityClasses[className](\r\n odataObject.Value[i]\r\n );\r\n }\r\n } else {\r\n this.Value[i] = new CaseNoteExtensionClass(odataObject.Value[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Value[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * CaseWithAttachment entity class.\r\n */\r\nexport class CaseWithAttachmentExtensionClass implements ICaseWithAttachment {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public StatusCodes: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SubjectIdOdataBind: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustomerIdAccountOdataBind: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PrimaryContactIdOdataBind: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public EmailAddress: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_DeliveryAddress: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ClaimCity: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ClaimPostCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ClaimStreet: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_Country: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_NotifyMePerEmailWhenClaimIsUpdated: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ConsumerName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ConsumerContactDetails: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_CustomerConfirmedThePrivacyPolicy: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Description: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_OrderNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_OrderDate: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_SalesOrderLineNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_DateOfPurchase: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductIdOdataBind: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_SerialNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_ShipmentTrackingId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_LoadId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_DeliveryNoteId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_InvoiceNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_InvoiceDate: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_InvoiceLineNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_HasThisProductBeenInAnAccident: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_TrackingNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Br_ColorDescribtion: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public New_D365itemnumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Incident_Annotation: IAttachment[];\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CaseOriginCode: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.StatusCodes = odataObject.StatusCodes;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SubjectIdOdataBind = odataObject.SubjectIdOdataBind;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CustomerIdAccountOdataBind = odataObject.CustomerIdAccountOdataBind;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PrimaryContactIdOdataBind = odataObject.PrimaryContactIdOdataBind;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.EmailAddress = odataObject.EmailAddress;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_DeliveryAddress = odataObject.Br_DeliveryAddress;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ClaimCity = odataObject.Br_ClaimCity;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ClaimPostCode = odataObject.Br_ClaimPostCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ClaimStreet = odataObject.Br_ClaimStreet;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_Country = odataObject.Br_Country;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_NotifyMePerEmailWhenClaimIsUpdated =\r\n odataObject.New_NotifyMePerEmailWhenClaimIsUpdated;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ConsumerName = odataObject.New_ConsumerName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ConsumerContactDetails = odataObject.New_ConsumerContactDetails;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_CustomerConfirmedThePrivacyPolicy =\r\n odataObject.New_CustomerConfirmedThePrivacyPolicy;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Description = odataObject.Description;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_OrderNumber = odataObject.New_OrderNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_OrderDate = odataObject.New_OrderDate;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_SalesOrderLineNumber = odataObject.New_SalesOrderLineNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_DateOfPurchase = odataObject.Br_DateOfPurchase;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductIdOdataBind = odataObject.ProductIdOdataBind;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_SerialNumber = odataObject.New_SerialNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_ShipmentTrackingId = odataObject.New_ShipmentTrackingId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_LoadId = odataObject.New_LoadId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_DeliveryNoteId = odataObject.New_DeliveryNoteId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_InvoiceNumber = odataObject.New_InvoiceNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_InvoiceDate = odataObject.New_InvoiceDate;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_InvoiceLineNumber = odataObject.New_InvoiceLineNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_HasThisProductBeenInAnAccident =\r\n odataObject.Br_HasThisProductBeenInAnAccident;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_TrackingNumber = odataObject.Br_TrackingNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Br_ColorDescribtion = odataObject.Br_ColorDescribtion;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.New_D365itemnumber = odataObject.New_D365itemnumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Incident_Annotation = undefined;\r\n if (odataObject.Incident_Annotation) {\r\n this.Incident_Annotation = [];\r\n for (var i = 0; i < odataObject.Incident_Annotation.length; i++) {\r\n if (odataObject.Incident_Annotation[i]) {\r\n if (odataObject.Incident_Annotation[i][\"@odata.type\"]) {\r\n var className: string =\r\n odataObject.Incident_Annotation[i][\"@odata.type\"];\r\n className = className\r\n .substr(className.lastIndexOf(\".\") + 1)\r\n .concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Incident_Annotation[i] = new EntityClasses[className](\r\n odataObject.Incident_Annotation[i]\r\n );\r\n }\r\n } else {\r\n this.Incident_Annotation[i] = new AttachmentExtensionClass(\r\n odataObject.Incident_Annotation[i]\r\n );\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Incident_Annotation[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CaseOriginCode = odataObject.CaseOriginCode;\r\n }\r\n}\r\n\r\n/**\r\n * UpdateCase entity class.\r\n */\r\nexport class UpdateCaseExtensionClass implements IUpdateCase {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public NoteText: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FileName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IsDocument: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DocumentBody: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IncidentId: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.NoteText = odataObject.NoteText;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FileName = odataObject.FileName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IsDocument = odataObject.IsDocument;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DocumentBody = odataObject.DocumentBody;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IncidentId = odataObject.IncidentId;\r\n }\r\n}\r\n\r\n/**\r\n * Attachment entity class.\r\n */\r\nexport class AttachmentExtensionClass implements IAttachment {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public NoteText: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FileName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IsDocument: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DocumentBody: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.NoteText = odataObject.NoteText;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FileName = odataObject.FileName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IsDocument = odataObject.IsDocument;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DocumentBody = odataObject.DocumentBody;\r\n }\r\n}\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n * THIS FILE IS AN AUTOGENERATED TYPESCRIPT PROXY EXTENSION.\r\n * TO USE THIS FILE, IT MUST BE ADDED TO A D365COMMERCE APPLICATION\r\n */\r\n// tslint:disable\r\nimport {\r\n AsyncResult,\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n} from \"@msdyn365-commerce/retail-proxy\";\r\n// @ts-ignore\r\nimport * as EntityClasses from \"@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g\";\r\nimport * as DataServiceEntities from \"./DataServiceEntities.g\";\r\n\r\n// @ts-ignore\r\nfunction casesQuery(id?: number): DataServiceQuery {\r\n const key = id ? { Id: id } : null;\r\n return new DataServiceQuery(\r\n \"Cases\",\r\n \"Cases\",\r\n DataServiceEntities.CasesExtensionClass,\r\n key\r\n );\r\n}\r\n\r\nexport function createGetAllCustomerCasesInput(\r\n customerEmail: string\r\n): IDataServiceRequest {\r\n const query = casesQuery();\r\n return query.createDataServiceRequestForOperation(\r\n \"GetAllCustomerCases\",\r\n true,\r\n DataServiceEntities.AllCustomerCasesResponseExtensionClass,\r\n \"false\",\r\n {\r\n bypassCache: \"none\",\r\n returnEntity: \"DataServiceEntities.IAllCustomerCasesResponse\",\r\n },\r\n { customerEmail: customerEmail }\r\n );\r\n}\r\n\r\nexport function getAllCustomerCasesAsync(\r\n context: IContext,\r\n customerEmail: string\r\n): AsyncResult {\r\n const request = createGetAllCustomerCasesInput(customerEmail);\r\n return callActionOrExecute(\r\n request,\r\n context.callerContext\r\n );\r\n}\r\n\r\nexport function createCreateCaseInput(\r\n caseDetails: DataServiceEntities.ICaseWithAttachment\r\n): IDataServiceRequest {\r\n const query = casesQuery();\r\n return query.createDataServiceRequestForOperation(\r\n \"CreateCase\",\r\n true,\r\n DataServiceEntities.CreateCaseResponseExtensionClass,\r\n \"false\",\r\n {\r\n bypassCache: \"get\",\r\n returnEntity: \"DataServiceEntities.ICreateCaseResponse\",\r\n },\r\n { caseDetails: caseDetails }\r\n );\r\n}\r\n\r\nexport function createCaseAsync(\r\n context: IContext,\r\n caseDetails: DataServiceEntities.ICaseWithAttachment\r\n): AsyncResult {\r\n const request = createCreateCaseInput(caseDetails);\r\n return callActionOrExecute(\r\n request,\r\n context.callerContext\r\n );\r\n}\r\n\r\nexport function createUpdateCaseInput(\r\n caseDetails: DataServiceEntities.IUpdateCase\r\n): IDataServiceRequest {\r\n const query = casesQuery();\r\n return query.createDataServiceRequestForOperation(\r\n \"UpdateCase\",\r\n true,\r\n DataServiceEntities.UpdateCaseResponseExtensionClass,\r\n \"false\",\r\n {\r\n bypassCache: \"get\",\r\n returnEntity: \"DataServiceEntities.IUpdateCaseResponse\",\r\n },\r\n { caseDetails: caseDetails }\r\n );\r\n}\r\n\r\nexport function updateCaseAsync(\r\n context: IContext,\r\n caseDetails: DataServiceEntities.IUpdateCase\r\n): AsyncResult {\r\n const request = createUpdateCaseInput(caseDetails);\r\n return callActionOrExecute(\r\n request,\r\n context.callerContext\r\n );\r\n}\r\n\r\nexport function createGetCaseNotesInput(caseId: string): IDataServiceRequest {\r\n const query = casesQuery();\r\n return query.createDataServiceRequestForOperation(\r\n \"GetCaseNotes\",\r\n true,\r\n DataServiceEntities.GetCaseNotesResponseExtensionClass,\r\n \"false\",\r\n {\r\n bypassCache: \"none\",\r\n returnEntity: \"DataServiceEntities.IGetCaseNotesResponse\",\r\n },\r\n { caseId: caseId }\r\n );\r\n}\r\n\r\nexport function getCaseNotesAsync(\r\n context: IContext,\r\n caseId: string\r\n): AsyncResult {\r\n const request = createGetCaseNotesInput(caseId);\r\n return callActionOrExecute(\r\n request,\r\n context.callerContext\r\n );\r\n}\r\n\r\nexport function createGetSpecificCaseInput(\r\n specificCaseId: string\r\n): IDataServiceRequest {\r\n const query = casesQuery();\r\n return query.createDataServiceRequestForOperation(\r\n \"GetSpecificCase\",\r\n true,\r\n DataServiceEntities.GetSpecificCaseResponseExtensionClass,\r\n \"false\",\r\n {\r\n bypassCache: \"none\",\r\n returnEntity: \"DataServiceEntities.IGetSpecificCaseResponse\",\r\n },\r\n { specificCaseId: specificCaseId }\r\n );\r\n}\r\n\r\nexport function getSpecificCaseAsync(\r\n context: IContext,\r\n specificCaseId: string\r\n): AsyncResult {\r\n const request = createGetSpecificCaseInput(specificCaseId);\r\n return callActionOrExecute(\r\n request,\r\n context.callerContext\r\n );\r\n}\r\n\r\nexport function createGetLatestNoteInput(caseId: string): IDataServiceRequest {\r\n const query = casesQuery();\r\n return query.createDataServiceRequestForOperation(\r\n \"GetLatestNote\",\r\n true,\r\n DataServiceEntities.GetLatestNoteResponseExtensionClass,\r\n \"false\",\r\n {\r\n bypassCache: \"none\",\r\n returnEntity: \"DataServiceEntities.IGetLatestNoteResponse\",\r\n },\r\n { caseId: caseId }\r\n );\r\n}\r\n\r\nexport function getLatestNoteAsync(\r\n context: IContext,\r\n caseId: string\r\n): AsyncResult {\r\n const request = createGetLatestNoteInput(caseId);\r\n return callActionOrExecute(\r\n request,\r\n context.callerContext\r\n );\r\n}\r\n"],"names":["CasesExtensionClass","constructor","odataObject","this","Id","ExtensionProperties","undefined","i","length","className","substr","lastIndexOf","concat","EntityClasses","CreateCaseResponseExtensionClass","Success","Exception","Data","CaseExtensionClass","UpdateCaseResponseExtensionClass","incidentid","ticketnumber","casesQuery","id","key","DataServiceQuery","DataServiceEntities","createCaseAsync","context","caseDetails","request","createDataServiceRequestForOperation","bypassCache","returnEntity","createCreateCaseInput","callActionOrExecute","callerContext","updateCaseAsync","createUpdateCaseInput"],"sourceRoot":""}