diff --git a/.github/workflows/ci-pr-dotnet.yml b/.github/workflows/ci-pr-dotnet.yml index 655b74d90..f3a3c5647 100644 --- a/.github/workflows/ci-pr-dotnet.yml +++ b/.github/workflows/ci-pr-dotnet.yml @@ -24,7 +24,7 @@ jobs: - name: Set up .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Set up Node.js uses: actions/setup-node@v3 with: diff --git a/README.md b/README.md index 28da052c3..3f83720ab 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ We ask that you practice effective communication, preferably through comments on ## Prerequisites You can build and run CareTogether on any operating system supported by Node.js and .NET, including Windows, MacOS, and Linux. Install the following: - [Node.js 18 LTS](https://nodejs.org/en/download) -- [.NET 8 LTS](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) +- [.NET 10](https://dotnet.microsoft.com/en-us/download/dotnet/10.0) - [Visual Studio Code](https://code.visualstudio.com/Download) (recommended) You will also need to allow PowerShell scripts to run on your computer (see [documentation](https://learn.microsoft.com/en-us/previous-versions//bb613481(v=vs.85)?redirectedfrom=MSDN#how-to-allow-scripts-to-run)). To do this, open an administrative PowerShell session and run the following command: diff --git a/src/CareTogether.Api/CareTogether.Api.csproj b/src/CareTogether.Api/CareTogether.Api.csproj index ea120e083..066f43a69 100644 --- a/src/CareTogether.Api/CareTogether.Api.csproj +++ b/src/CareTogether.Api/CareTogether.Api.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 enable aspnet-CareTogether.Api-0706AF60-30BE-4CB4-868D-366CBB379CA7 Linux @@ -9,20 +9,21 @@ - + - - - + + + - - - - - - - - + + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -38,8 +39,8 @@ - - + + diff --git a/src/CareTogether.Api/Dockerfile b/src/CareTogether.Api/Dockerfile index 25659bccf..b93db32d6 100644 --- a/src/CareTogether.Api/Dockerfile +++ b/src/CareTogether.Api/Dockerfile @@ -1,11 +1,11 @@ # See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. # More info at https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-6.0 -FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine-amd64 AS base +FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine-amd64 AS base RUN apk add --no-cache tzdata WORKDIR /app -FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-amd64 AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine-amd64 AS build WORKDIR /src COPY ["src/CareTogether.Api/CareTogether.Api.csproj", "src/CareTogether.Api/"] COPY ["test/CareTogether.TestData/CareTogether.TestData.csproj", "test/CareTogether.TestData/"] diff --git a/src/CareTogether.Api/Services/PbiEmbedService.cs b/src/CareTogether.Api/Services/PbiEmbedService.cs index 10dc71bc4..83925b367 100644 --- a/src/CareTogether.Api/Services/PbiEmbedService.cs +++ b/src/CareTogether.Api/Services/PbiEmbedService.cs @@ -13,7 +13,6 @@ namespace CareTogether.Api.Controllers.AppOwnsData.Services using AppOwnsData.Models; using Microsoft.PowerBI.Api; using Microsoft.PowerBI.Api.Models; - using Microsoft.Rest; public class PbiEmbedService { @@ -32,8 +31,7 @@ public PbiEmbedService(AadService aadService) public async Task GetPowerBIClient() { var accessToken = await aadService.GetAccessToken(); - var tokenCredentials = new TokenCredentials(accessToken, "Bearer"); - return new PowerBIClient(new Uri(powerBiApiUrl), tokenCredentials); + return new PowerBIClient(accessToken, new Uri(powerBiApiUrl)); } /// @@ -50,7 +48,7 @@ [Optional] Guid additionalDatasetId PowerBIClient pbiClient = await this.GetPowerBIClient(); // Get report info - var pbiReport = pbiClient.Reports.GetReportInGroup(workspaceId, reportId); + var pbiReport = pbiClient.Reports.GetReportInGroup(workspaceId, reportId).Value; // Check if dataset is present for the corresponding report // If isRDLReport is true then it is a RDL Report @@ -130,7 +128,7 @@ [Optional] IList additionalDatasetIds foreach (var reportId in reportIds) { // Get report info - var pbiReport = pbiClient.Reports.GetReportInGroup(workspaceId, reportId); + var pbiReport = pbiClient.Reports.GetReportInGroup(workspaceId, reportId).Value; datasetIds.Add(Guid.Parse(pbiReport.DatasetId)); @@ -181,28 +179,15 @@ [Optional] Guid targetWorkspaceId // Create a request for getting Embed token // This method works only with new Power BI V2 workspace experience - var tokenRequest = new GenerateTokenRequestV2( - reports: new List() - { - new GenerateTokenRequestV2Report(reportId), - }, + var tokenRequest = CreateGenerateTokenRequest( + reports: [new GenerateTokenRequestV2Report(reportId)], datasets: datasetIds .Select(datasetId => new GenerateTokenRequestV2Dataset(datasetId.ToString())) .ToList(), targetWorkspaces: targetWorkspaceId != Guid.Empty - ? new List() - { - new GenerateTokenRequestV2TargetWorkspace(targetWorkspaceId), - } - : null, - identities: new List() - { - new EffectiveIdentity( - username: userId.ToString(), - datasets: datasetIds.Select(datasetId => datasetId.ToString()).ToList(), - roles: [ "Dynamic" ] - ), - } + ? [new GenerateTokenRequestV2TargetWorkspace(targetWorkspaceId)] + : [], + identities: [CreateEffectiveIdentity(userId, datasetIds, ["Dynamic"])] ); // Generate Embed token @@ -239,22 +224,13 @@ [Optional] Guid targetWorkspaceId // Create a request for getting Embed token // This method works only with new Power BI V2 workspace experience - var tokenRequest = new GenerateTokenRequestV2( - datasets: datasets, - reports: reports, - targetWorkspaces: targetWorkspaceId != Guid.Empty - ? new List() - { - new GenerateTokenRequestV2TargetWorkspace(targetWorkspaceId), - } - : null, - identities: new List() - { - new EffectiveIdentity( - username: userId.ToString(), - datasets: datasetIds.Select(datasetId => datasetId.ToString()).ToList() - ), - } + var tokenRequest = CreateGenerateTokenRequest( + reports, + datasets, + targetWorkspaceId != Guid.Empty + ? [new GenerateTokenRequestV2TargetWorkspace(targetWorkspaceId)] + : [], + [CreateEffectiveIdentity(userId, datasetIds, [])] ); // Generate Embed token @@ -290,29 +266,20 @@ [Optional] IList targetWorkspaceIds .ToList(); // Convert target workspace Ids to required types - IList targetWorkspaces = null; - if (targetWorkspaceIds != null) - { - targetWorkspaces = targetWorkspaceIds - .Select(targetWorkspaceId => new GenerateTokenRequestV2TargetWorkspace( + var targetWorkspaces = + targetWorkspaceIds + ?.Select(targetWorkspaceId => new GenerateTokenRequestV2TargetWorkspace( targetWorkspaceId )) - .ToList(); - } + .ToList() ?? []; // Create a request for getting Embed token // This method works only with new Power BI V2 workspace experience - var tokenRequest = new GenerateTokenRequestV2( - datasets: datasets, - reports: reports, - targetWorkspaces: targetWorkspaceIds != null ? targetWorkspaces : null, - identities: new List() - { - new EffectiveIdentity( - username: userId.ToString(), - datasets: datasetIds.Select(datasetId => datasetId.ToString()).ToList() - ), - } + var tokenRequest = CreateGenerateTokenRequest( + reports, + datasets, + targetWorkspaces, + [CreateEffectiveIdentity(userId, datasetIds, [])] ); // Generate Embed token @@ -334,7 +301,10 @@ public async Task GetEmbedTokenForRDLReport( PowerBIClient pbiClient = await this.GetPowerBIClient(); // Generate token request for RDL Report - var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: accessLevel); + var generateTokenRequestParameters = new GenerateTokenRequest + { + AccessLevel = Enum.Parse(accessLevel, ignoreCase: true), + }; // Generate Embed token var embedToken = pbiClient.Reports.GenerateTokenInGroup( @@ -345,5 +315,46 @@ public async Task GetEmbedTokenForRDLReport( return embedToken; } + + private static GenerateTokenRequestV2 CreateGenerateTokenRequest( + IEnumerable reports, + IEnumerable datasets, + IEnumerable targetWorkspaces, + IEnumerable identities + ) + { + var request = new GenerateTokenRequestV2(); + + foreach (var report in reports) + request.Reports.Add(report); + + foreach (var dataset in datasets) + request.Datasets.Add(dataset); + + foreach (var targetWorkspace in targetWorkspaces) + request.TargetWorkspaces.Add(targetWorkspace); + + foreach (var identity in identities) + request.Identities.Add(identity); + + return request; + } + + private static EffectiveIdentity CreateEffectiveIdentity( + Guid userId, + IEnumerable datasetIds, + IEnumerable roles + ) + { + var identity = new EffectiveIdentity { Username = userId.ToString() }; + + foreach (var datasetId in datasetIds) + identity.Datasets.Add(datasetId.ToString()); + + foreach (var role in roles) + identity.Roles.Add(role); + + return identity; + } } } diff --git a/src/CareTogether.Core/CareTogether.Core.csproj b/src/CareTogether.Core/CareTogether.Core.csproj index bf57e2a31..d8a8e7905 100644 --- a/src/CareTogether.Core/CareTogether.Core.csproj +++ b/src/CareTogether.Core/CareTogether.Core.csproj @@ -1,22 +1,21 @@ - net8.0 + net10.0 CareTogether enable - - + + - - - + + + - - - + + diff --git a/src/CareTogether.Core/Utilities/EventLog/AppendBlobEventLog.cs b/src/CareTogether.Core/Utilities/EventLog/AppendBlobEventLog.cs index cc9d049f0..883c9cc70 100644 --- a/src/CareTogether.Core/Utilities/EventLog/AppendBlobEventLog.cs +++ b/src/CareTogether.Core/Utilities/EventLog/AppendBlobEventLog.cs @@ -108,7 +108,8 @@ Guid locationId var blob in tenantContainer.GetBlobsAsync( BlobTraits.None, BlobStates.None, - $"{locationId}/{logType}" + $"{locationId}/{logType}", + default ) ) { diff --git a/src/CareTogether.Core/Utilities/ObjectStore/JsonBlobObjectStore.cs b/src/CareTogether.Core/Utilities/ObjectStore/JsonBlobObjectStore.cs index 02011f969..e59964da2 100644 --- a/src/CareTogether.Core/Utilities/ObjectStore/JsonBlobObjectStore.cs +++ b/src/CareTogether.Core/Utilities/ObjectStore/JsonBlobObjectStore.cs @@ -116,7 +116,12 @@ public async IAsyncEnumerable ListAsync(Guid organizationId, Guid locati var tenantContainer = await CreateContainerIfNotExists(organizationId); await foreach ( - var blob in tenantContainer.GetBlobsAsync(prefix: $"{locationId}/{objectType}/") + var blob in tenantContainer.GetBlobsAsync( + BlobTraits.None, + BlobStates.None, + $"{locationId}/{objectType}/", + default + ) ) { var objectId = blob diff --git a/src/Timelines/Timelines.csproj b/src/Timelines/Timelines.csproj index fa71b7ae6..b76014470 100644 --- a/src/Timelines/Timelines.csproj +++ b/src/Timelines/Timelines.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 enable enable diff --git a/src/caretogether-pwa/src/GeneratedClient.ts b/src/caretogether-pwa/src/GeneratedClient.ts index 04e7bb061..79f08dde8 100644 --- a/src/caretogether-pwa/src/GeneratedClient.ts +++ b/src/caretogether-pwa/src/GeneratedClient.ts @@ -1,10 +1,9 @@ //---------------------- // -// Generated using the NSwag toolchain v14.0.8.0 (NJsonSchema v11.0.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) // //---------------------- -/* tslint:disable */ /* eslint-disable */ // ReSharper disable InconsistentNaming @@ -21,10 +20,10 @@ export class CommunicationsClient { sendSmsToFamilyPrimaryContacts(organizationId: string, locationId: string, request: SendSmsToFamilyPrimaryContactsRequest): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Communications/sendSmsToFamilyPrimaryContacts"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); url_ = url_.replace(/[?&]$/, ""); @@ -57,7 +56,7 @@ export class CommunicationsClient { result200!.push(ValueTupleOfGuidAndSmsMessageResult.fromJS(item)); } else { - result200 = null; + result200 = null as any; } return result200; }); @@ -83,7 +82,7 @@ export class ConfigurationClient { getOrganizationConfiguration(organizationId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/Configuration"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); url_ = url_.replace(/[?&]$/, ""); @@ -120,7 +119,7 @@ export class ConfigurationClient { putLocationDefinition(organizationId: string, newLocationPayload: PutLocationPayload): Promise { let url_ = this.baseUrl + "/api/{organizationId}/Configuration"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); url_ = url_.replace(/[?&]$/, ""); @@ -161,10 +160,10 @@ export class ConfigurationClient { putRoleDefinition(organizationId: string, roleName: string, role: RoleDefinition): Promise { let url_ = this.baseUrl + "/api/{organizationId}/Configuration/roles/{roleName}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (roleName === undefined || roleName === null) - throw new Error("The parameter 'roleName' must be defined."); + throw new globalThis.Error("The parameter 'roleName' must be defined."); url_ = url_.replace("{roleName}", encodeURIComponent("" + roleName)); url_ = url_.replace(/[?&]$/, ""); @@ -205,10 +204,10 @@ export class ConfigurationClient { deleteRoleDefinition(organizationId: string, roleName: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/Configuration/roles/{roleName}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (roleName === undefined || roleName === null) - throw new Error("The parameter 'roleName' must be defined."); + throw new globalThis.Error("The parameter 'roleName' must be defined."); url_ = url_.replace("{roleName}", encodeURIComponent("" + roleName)); url_ = url_.replace(/[?&]$/, ""); @@ -245,10 +244,10 @@ export class ConfigurationClient { getEffectiveLocationPolicy(organizationId: string, locationId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Configuration/policy"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); url_ = url_.replace(/[?&]$/, ""); @@ -285,10 +284,10 @@ export class ConfigurationClient { getLocationFlags(organizationId: string, locationId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Configuration/flags"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); url_ = url_.replace(/[?&]$/, ""); @@ -336,16 +335,16 @@ export class FilesClient { getFamilyDocumentReadValetUrl(organizationId: string, locationId: string, familyId: string, documentId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Files/family/{familyId}/{documentId}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); if (familyId === undefined || familyId === null) - throw new Error("The parameter 'familyId' must be defined."); + throw new globalThis.Error("The parameter 'familyId' must be defined."); url_ = url_.replace("{familyId}", encodeURIComponent("" + familyId)); if (documentId === undefined || documentId === null) - throw new Error("The parameter 'documentId' must be defined."); + throw new globalThis.Error("The parameter 'documentId' must be defined."); url_ = url_.replace("{documentId}", encodeURIComponent("" + documentId)); url_ = url_.replace(/[?&]$/, ""); @@ -368,7 +367,7 @@ export class FilesClient { return response.text().then((_responseText) => { let result200: any = null; let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - result200 = resultData200 !== undefined ? resultData200 : null; + result200 = resultData200 !== undefined ? resultData200 : null as any; return result200; }); @@ -383,16 +382,16 @@ export class FilesClient { generateFamilyDocumentUploadValetUrl(organizationId: string, locationId: string, familyId: string, documentId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Files/upload/family/{familyId}/{documentId}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); if (familyId === undefined || familyId === null) - throw new Error("The parameter 'familyId' must be defined."); + throw new globalThis.Error("The parameter 'familyId' must be defined."); url_ = url_.replace("{familyId}", encodeURIComponent("" + familyId)); if (documentId === undefined || documentId === null) - throw new Error("The parameter 'documentId' must be defined."); + throw new globalThis.Error("The parameter 'documentId' must be defined."); url_ = url_.replace("{documentId}", encodeURIComponent("" + documentId)); url_ = url_.replace(/[?&]$/, ""); @@ -429,16 +428,16 @@ export class FilesClient { getCommunityDocumentReadValetUrl(organizationId: string, locationId: string, communityId: string, documentId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Files/community/{communityId}/{documentId}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); if (communityId === undefined || communityId === null) - throw new Error("The parameter 'communityId' must be defined."); + throw new globalThis.Error("The parameter 'communityId' must be defined."); url_ = url_.replace("{communityId}", encodeURIComponent("" + communityId)); if (documentId === undefined || documentId === null) - throw new Error("The parameter 'documentId' must be defined."); + throw new globalThis.Error("The parameter 'documentId' must be defined."); url_ = url_.replace("{documentId}", encodeURIComponent("" + documentId)); url_ = url_.replace(/[?&]$/, ""); @@ -461,7 +460,7 @@ export class FilesClient { return response.text().then((_responseText) => { let result200: any = null; let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - result200 = resultData200 !== undefined ? resultData200 : null; + result200 = resultData200 !== undefined ? resultData200 : null as any; return result200; }); @@ -476,16 +475,16 @@ export class FilesClient { generateCommunityDocumentUploadValetUrl(organizationId: string, locationId: string, communityId: string, documentId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Files/upload/community/{communityId}/{documentId}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); if (communityId === undefined || communityId === null) - throw new Error("The parameter 'communityId' must be defined."); + throw new globalThis.Error("The parameter 'communityId' must be defined."); url_ = url_.replace("{communityId}", encodeURIComponent("" + communityId)); if (documentId === undefined || documentId === null) - throw new Error("The parameter 'documentId' must be defined."); + throw new globalThis.Error("The parameter 'documentId' must be defined."); url_ = url_.replace("{documentId}", encodeURIComponent("" + documentId)); url_ = url_.replace(/[?&]$/, ""); @@ -522,16 +521,16 @@ export class FilesClient { getV1ReferralDocumentReadValetUrl(organizationId: string, locationId: string, referralId: string, documentId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Files/v1referral/{referralId}/{documentId}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); if (referralId === undefined || referralId === null) - throw new Error("The parameter 'referralId' must be defined."); + throw new globalThis.Error("The parameter 'referralId' must be defined."); url_ = url_.replace("{referralId}", encodeURIComponent("" + referralId)); if (documentId === undefined || documentId === null) - throw new Error("The parameter 'documentId' must be defined."); + throw new globalThis.Error("The parameter 'documentId' must be defined."); url_ = url_.replace("{documentId}", encodeURIComponent("" + documentId)); url_ = url_.replace(/[?&]$/, ""); @@ -554,7 +553,7 @@ export class FilesClient { return response.text().then((_responseText) => { let result200: any = null; let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - result200 = resultData200 !== undefined ? resultData200 : null; + result200 = resultData200 !== undefined ? resultData200 : null as any; return result200; }); @@ -569,16 +568,16 @@ export class FilesClient { generateV1ReferralDocumentUploadValetUrl(organizationId: string, locationId: string, referralId: string, documentId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Files/upload/v1referral/{referralId}/{documentId}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); if (referralId === undefined || referralId === null) - throw new Error("The parameter 'referralId' must be defined."); + throw new globalThis.Error("The parameter 'referralId' must be defined."); url_ = url_.replace("{referralId}", encodeURIComponent("" + referralId)); if (documentId === undefined || documentId === null) - throw new Error("The parameter 'documentId' must be defined."); + throw new globalThis.Error("The parameter 'documentId' must be defined."); url_ = url_.replace("{documentId}", encodeURIComponent("" + documentId)); url_ = url_.replace(/[?&]$/, ""); @@ -626,10 +625,10 @@ export class RecordsClient { listVisibleAggregates(organizationId: string, locationId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Records"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); url_ = url_.replace(/[?&]$/, ""); @@ -658,7 +657,7 @@ export class RecordsClient { result200!.push(RecordsAggregate.fromJS(item)); } else { - result200 = null; + result200 = null as any; } return result200; }); @@ -673,10 +672,10 @@ export class RecordsClient { submitAtomicRecordsCommand(organizationId: string, locationId: string, command: AtomicRecordsCommand): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Records/atomicRecordsCommand"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); url_ = url_.replace(/[?&]$/, ""); @@ -709,7 +708,7 @@ export class RecordsClient { result200!.push(RecordsAggregate.fromJS(item)); } else { - result200 = null; + result200 = null as any; } return result200; }); @@ -724,10 +723,10 @@ export class RecordsClient { submitCompositeRecordsCommand(organizationId: string, locationId: string, command: CompositeRecordsCommand): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Records/compositeRecordsCommand"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); url_ = url_.replace(/[?&]$/, ""); @@ -760,7 +759,7 @@ export class RecordsClient { result200!.push(RecordsAggregate.fromJS(item)); } else { - result200 = null; + result200 = null as any; } return result200; }); @@ -775,10 +774,10 @@ export class RecordsClient { getEmbedInfo(organizationId: string, locationId: string): Promise { let url_ = this.baseUrl + "/api/{organizationId}/{locationId}/Records/getEmbedInfo"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); url_ = url_.replace(/[?&]$/, ""); @@ -880,7 +879,7 @@ export class UsersClient { return response.text().then((_responseText) => { let result200: any = null; let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - result200 = resultData200 !== undefined ? resultData200 : null; + result200 = resultData200 !== undefined ? resultData200 : null as any; return result200; }); @@ -895,13 +894,13 @@ export class UsersClient { getPersonLoginInfo(organizationId: string, locationId: string, personId: string): Promise { let url_ = this.baseUrl + "/api/Users/loginInfo/{organizationId}/{locationId}/{personId}"; if (organizationId === undefined || organizationId === null) - throw new Error("The parameter 'organizationId' must be defined."); + throw new globalThis.Error("The parameter 'organizationId' must be defined."); url_ = url_.replace("{organizationId}", encodeURIComponent("" + organizationId)); if (locationId === undefined || locationId === null) - throw new Error("The parameter 'locationId' must be defined."); + throw new globalThis.Error("The parameter 'locationId' must be defined."); url_ = url_.replace("{locationId}", encodeURIComponent("" + locationId)); if (personId === undefined || personId === null) - throw new Error("The parameter 'personId' must be defined."); + throw new globalThis.Error("The parameter 'personId' must be defined."); url_ = url_.replace("{personId}", encodeURIComponent("" + personId)); url_ = url_.replace(/[?&]$/, ""); @@ -938,15 +937,15 @@ export class UsersClient { changePersonRoles(organizationId: string | undefined, locationId: string | undefined, personId: string | undefined, roles: string[]): Promise { let url_ = this.baseUrl + "/api/Users/personRoles?"; if (organizationId === null) - throw new Error("The parameter 'organizationId' cannot be null."); + throw new globalThis.Error("The parameter 'organizationId' cannot be null."); else if (organizationId !== undefined) url_ += "organizationId=" + encodeURIComponent("" + organizationId) + "&"; if (locationId === null) - throw new Error("The parameter 'locationId' cannot be null."); + throw new globalThis.Error("The parameter 'locationId' cannot be null."); else if (locationId !== undefined) url_ += "locationId=" + encodeURIComponent("" + locationId) + "&"; if (personId === null) - throw new Error("The parameter 'personId' cannot be null."); + throw new globalThis.Error("The parameter 'personId' cannot be null."); else if (personId !== undefined) url_ += "personId=" + encodeURIComponent("" + personId) + "&"; url_ = url_.replace(/[?&]$/, ""); @@ -988,15 +987,15 @@ export class UsersClient { generatePersonInviteLink(organizationId: string | undefined, locationId: string | undefined, personId: string | undefined): Promise { let url_ = this.baseUrl + "/api/Users/personInviteLink?"; if (organizationId === null) - throw new Error("The parameter 'organizationId' cannot be null."); + throw new globalThis.Error("The parameter 'organizationId' cannot be null."); else if (organizationId !== undefined) url_ += "organizationId=" + encodeURIComponent("" + organizationId) + "&"; if (locationId === null) - throw new Error("The parameter 'locationId' cannot be null."); + throw new globalThis.Error("The parameter 'locationId' cannot be null."); else if (locationId !== undefined) url_ += "locationId=" + encodeURIComponent("" + locationId) + "&"; if (personId === null) - throw new Error("The parameter 'personId' cannot be null."); + throw new globalThis.Error("The parameter 'personId' cannot be null."); else if (personId !== undefined) url_ += "personId=" + encodeURIComponent("" + personId) + "&"; url_ = url_.replace(/[?&]$/, ""); @@ -1020,7 +1019,7 @@ export class UsersClient { return response.text().then((_responseText) => { let result200: any = null; let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - result200 = resultData200 !== undefined ? resultData200 : null; + result200 = resultData200 !== undefined ? resultData200 : null as any; return result200; }); @@ -1035,15 +1034,15 @@ export class UsersClient { initiatePersonInviteRedemptionSession(organizationId: string | undefined, locationId: string | undefined, inviteNonce: string | undefined): Promise { let url_ = this.baseUrl + "/api/Users/personInvite?"; if (organizationId === null) - throw new Error("The parameter 'organizationId' cannot be null."); + throw new globalThis.Error("The parameter 'organizationId' cannot be null."); else if (organizationId !== undefined) url_ += "organizationId=" + encodeURIComponent("" + organizationId) + "&"; if (locationId === null) - throw new Error("The parameter 'locationId' cannot be null."); + throw new globalThis.Error("The parameter 'locationId' cannot be null."); else if (locationId !== undefined) url_ += "locationId=" + encodeURIComponent("" + locationId) + "&"; if (inviteNonce === null) - throw new Error("The parameter 'inviteNonce' cannot be null."); + throw new globalThis.Error("The parameter 'inviteNonce' cannot be null."); else if (inviteNonce !== undefined) url_ += "inviteNonce=" + encodeURIComponent("" + inviteNonce) + "&"; url_ = url_.replace(/[?&]$/, ""); @@ -1085,7 +1084,7 @@ export class UsersClient { examinePersonInviteRedemptionSession(redemptionSessionId: string | undefined): Promise { let url_ = this.baseUrl + "/api/Users/reviewInvite?"; if (redemptionSessionId === null) - throw new Error("The parameter 'redemptionSessionId' cannot be null."); + throw new globalThis.Error("The parameter 'redemptionSessionId' cannot be null."); else if (redemptionSessionId !== undefined) url_ += "redemptionSessionId=" + encodeURIComponent("" + redemptionSessionId) + "&"; url_ = url_.replace(/[?&]$/, ""); @@ -1123,7 +1122,7 @@ export class UsersClient { completePersonInviteRedemptionSession(redemptionSessionId: string | undefined): Promise { let url_ = this.baseUrl + "/api/Users/confirmInvite?"; if (redemptionSessionId === null) - throw new Error("The parameter 'redemptionSessionId' cannot be null."); + throw new globalThis.Error("The parameter 'redemptionSessionId' cannot be null."); else if (redemptionSessionId !== undefined) url_ += "redemptionSessionId=" + encodeURIComponent("" + redemptionSessionId) + "&"; url_ = url_.replace(/[?&]$/, ""); @@ -1167,7 +1166,7 @@ export class ValueTupleOfGuidAndSmsMessageResult implements IValueTupleOfGuidAnd if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -1192,7 +1191,7 @@ export class ValueTupleOfGuidAndSmsMessageResult implements IValueTupleOfGuidAnd toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["item1"] = this.item1; - data["item2"] = this.item2 ? this.item2.toJSON() : undefined; + data["item2"] = this.item2 ? this.item2.toJSON() : undefined as any; return data; } } @@ -1210,7 +1209,7 @@ export class SmsMessageResult implements ISmsMessageResult { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -1258,7 +1257,7 @@ export class SendSmsToFamilyPrimaryContactsRequest implements ISendSmsToFamilyPr if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -1315,7 +1314,7 @@ export class OrganizationConfiguration implements IOrganizationConfiguration { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -1364,12 +1363,12 @@ export class OrganizationConfiguration implements IOrganizationConfiguration { if (Array.isArray(this.locations)) { data["locations"] = []; for (let item of this.locations) - data["locations"].push(item.toJSON()); + data["locations"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.communityRoles)) { data["communityRoles"] = []; @@ -1407,7 +1406,7 @@ export class LocationConfiguration implements ILocationConfiguration { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -1446,7 +1445,7 @@ export class LocationConfiguration implements ILocationConfiguration { for (let item of _data["accessLevels"]) this.accessLevels!.push(AccessLevel.fromJS(item)); } - this.timeZone = _data["timeZone"] ? TimeZoneInfo.fromJS(_data["timeZone"]) : undefined; + this.timeZone = _data["timeZone"] ? TimeZoneInfo.fromJS(_data["timeZone"]) : undefined as any; } } @@ -1479,14 +1478,14 @@ export class LocationConfiguration implements ILocationConfiguration { if (Array.isArray(this.smsSourcePhoneNumbers)) { data["smsSourcePhoneNumbers"] = []; for (let item of this.smsSourcePhoneNumbers) - data["smsSourcePhoneNumbers"].push(item.toJSON()); + data["smsSourcePhoneNumbers"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.accessLevels)) { data["accessLevels"] = []; for (let item of this.accessLevels) - data["accessLevels"].push(item.toJSON()); + data["accessLevels"].push(item ? item.toJSON() : undefined as any); } - data["timeZone"] = this.timeZone ? this.timeZone.toJSON() : undefined; + data["timeZone"] = this.timeZone ? this.timeZone.toJSON() : undefined as any; return data; } } @@ -1510,7 +1509,7 @@ export class SourcePhoneNumberConfiguration implements ISourcePhoneNumberConfigu if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -1552,7 +1551,7 @@ export class AccessLevel implements IAccessLevel { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -1623,7 +1622,7 @@ export class TimeZoneInfo implements ITimeZoneInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -1679,7 +1678,7 @@ export class RoleDefinition implements IRoleDefinition { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -1713,7 +1712,7 @@ export class RoleDefinition implements IRoleDefinition { if (Array.isArray(this.permissionSets)) { data["permissionSets"] = []; for (let item of this.permissionSets) - data["permissionSets"].push(item.toJSON()); + data["permissionSets"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -1733,7 +1732,7 @@ export class ContextualPermissionSet implements IContextualPermissionSet { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -1743,7 +1742,7 @@ export class ContextualPermissionSet implements IContextualPermissionSet { init(_data?: any) { if (_data) { - this.context = _data["context"] ? PermissionContext.fromJS(_data["context"]) : undefined; + this.context = _data["context"] ? PermissionContext.fromJS(_data["context"]) : undefined as any; if (Array.isArray(_data["permissions"])) { this.permissions = [] as any; for (let item of _data["permissions"]) @@ -1761,7 +1760,7 @@ export class ContextualPermissionSet implements IContextualPermissionSet { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["context"] = this.context ? this.context.toJSON() : undefined; + data["context"] = this.context ? this.context.toJSON() : undefined as any; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) @@ -1784,7 +1783,7 @@ export abstract class PermissionContext implements IPermissionContext { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "PermissionContext"; @@ -1880,18 +1879,18 @@ export class AllPartneringFamiliesPermissionContext extends PermissionContext im this._discriminator = "AllPartneringFamiliesPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): AllPartneringFamiliesPermissionContext { + static override fromJS(data: any): AllPartneringFamiliesPermissionContext { data = typeof data === 'object' ? data : {}; let result = new AllPartneringFamiliesPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -1908,18 +1907,18 @@ export class AllVolunteerFamiliesPermissionContext extends PermissionContext imp this._discriminator = "AllVolunteerFamiliesPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): AllVolunteerFamiliesPermissionContext { + static override fromJS(data: any): AllVolunteerFamiliesPermissionContext { data = typeof data === 'object' ? data : {}; let result = new AllVolunteerFamiliesPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -1939,7 +1938,7 @@ export class AssignedFunctionsInReferralCoAssigneeFamiliesPermissionContext exte this._discriminator = "AssignedFunctionsInReferralCoAssigneeFamiliesPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.whenReferralIsOpen = _data["whenReferralIsOpen"]; @@ -1956,14 +1955,14 @@ export class AssignedFunctionsInReferralCoAssigneeFamiliesPermissionContext exte } } - static fromJS(data: any): AssignedFunctionsInReferralCoAssigneeFamiliesPermissionContext { + static override fromJS(data: any): AssignedFunctionsInReferralCoAssigneeFamiliesPermissionContext { data = typeof data === 'object' ? data : {}; let result = new AssignedFunctionsInReferralCoAssigneeFamiliesPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["whenReferralIsOpen"] = this.whenReferralIsOpen; if (Array.isArray(this.whenOwnFunctionIsIn)) { @@ -1996,7 +1995,7 @@ export class AssignedFunctionsInReferralPartneringFamilyPermissionContext extend this._discriminator = "AssignedFunctionsInReferralPartneringFamilyPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.whenReferralIsOpen = _data["whenReferralIsOpen"]; @@ -2008,14 +2007,14 @@ export class AssignedFunctionsInReferralPartneringFamilyPermissionContext extend } } - static fromJS(data: any): AssignedFunctionsInReferralPartneringFamilyPermissionContext { + static override fromJS(data: any): AssignedFunctionsInReferralPartneringFamilyPermissionContext { data = typeof data === 'object' ? data : {}; let result = new AssignedFunctionsInReferralPartneringFamilyPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["whenReferralIsOpen"] = this.whenReferralIsOpen; if (Array.isArray(this.whenOwnFunctionIsIn)) { @@ -2042,7 +2041,7 @@ export class AssignedStaffInV1CasePermissionContext extends PermissionContext im this._discriminator = "AssignedStaffInV1CasePermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.whenCaseIsOpen = _data["whenCaseIsOpen"]; @@ -2054,14 +2053,14 @@ export class AssignedStaffInV1CasePermissionContext extends PermissionContext im } } - static fromJS(data: any): AssignedStaffInV1CasePermissionContext { + static override fromJS(data: any): AssignedStaffInV1CasePermissionContext { data = typeof data === 'object' ? data : {}; let result = new AssignedStaffInV1CasePermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["whenCaseIsOpen"] = this.whenCaseIsOpen; if (Array.isArray(this.whenAssignmentRoleIsIn)) { @@ -2088,7 +2087,7 @@ export class AssignedStaffInV1ReferralPermissionContext extends PermissionContex this._discriminator = "AssignedStaffInV1ReferralPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.whenReferralIsOpen = _data["whenReferralIsOpen"]; @@ -2100,14 +2099,14 @@ export class AssignedStaffInV1ReferralPermissionContext extends PermissionContex } } - static fromJS(data: any): AssignedStaffInV1ReferralPermissionContext { + static override fromJS(data: any): AssignedStaffInV1ReferralPermissionContext { data = typeof data === 'object' ? data : {}; let result = new AssignedStaffInV1ReferralPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["whenReferralIsOpen"] = this.whenReferralIsOpen; if (Array.isArray(this.whenAssignmentRoleIsIn)) { @@ -2133,7 +2132,7 @@ export class CommunityCoMemberFamiliesAssignedFunctionsInReferralCoAssignedFamil this._discriminator = "CommunityCoMemberFamiliesAssignedFunctionsInReferralCoAssignedFamiliesPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { if (Array.isArray(_data["whenOwnCommunityRoleIsIn"])) { @@ -2144,14 +2143,14 @@ export class CommunityCoMemberFamiliesAssignedFunctionsInReferralCoAssignedFamil } } - static fromJS(data: any): CommunityCoMemberFamiliesAssignedFunctionsInReferralCoAssignedFamiliesPermissionContext { + static override fromJS(data: any): CommunityCoMemberFamiliesAssignedFunctionsInReferralCoAssignedFamiliesPermissionContext { data = typeof data === 'object' ? data : {}; let result = new CommunityCoMemberFamiliesAssignedFunctionsInReferralCoAssignedFamiliesPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; if (Array.isArray(this.whenOwnCommunityRoleIsIn)) { data["whenOwnCommunityRoleIsIn"] = []; @@ -2175,7 +2174,7 @@ export class CommunityCoMemberFamiliesAssignedFunctionsInReferralPartneringFamil this._discriminator = "CommunityCoMemberFamiliesAssignedFunctionsInReferralPartneringFamilyPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { if (Array.isArray(_data["whenOwnCommunityRoleIsIn"])) { @@ -2186,14 +2185,14 @@ export class CommunityCoMemberFamiliesAssignedFunctionsInReferralPartneringFamil } } - static fromJS(data: any): CommunityCoMemberFamiliesAssignedFunctionsInReferralPartneringFamilyPermissionContext { + static override fromJS(data: any): CommunityCoMemberFamiliesAssignedFunctionsInReferralPartneringFamilyPermissionContext { data = typeof data === 'object' ? data : {}; let result = new CommunityCoMemberFamiliesAssignedFunctionsInReferralPartneringFamilyPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; if (Array.isArray(this.whenOwnCommunityRoleIsIn)) { data["whenOwnCommunityRoleIsIn"] = []; @@ -2217,7 +2216,7 @@ export class CommunityCoMemberFamiliesPermissionContext extends PermissionContex this._discriminator = "CommunityCoMemberFamiliesPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { if (Array.isArray(_data["whenOwnCommunityRoleIsIn"])) { @@ -2228,14 +2227,14 @@ export class CommunityCoMemberFamiliesPermissionContext extends PermissionContex } } - static fromJS(data: any): CommunityCoMemberFamiliesPermissionContext { + static override fromJS(data: any): CommunityCoMemberFamiliesPermissionContext { data = typeof data === 'object' ? data : {}; let result = new CommunityCoMemberFamiliesPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; if (Array.isArray(this.whenOwnCommunityRoleIsIn)) { data["whenOwnCommunityRoleIsIn"] = []; @@ -2259,7 +2258,7 @@ export class CommunityMemberPermissionContext extends PermissionContext implemen this._discriminator = "CommunityMemberPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { if (Array.isArray(_data["whenOwnCommunityRoleIsIn"])) { @@ -2270,14 +2269,14 @@ export class CommunityMemberPermissionContext extends PermissionContext implemen } } - static fromJS(data: any): CommunityMemberPermissionContext { + static override fromJS(data: any): CommunityMemberPermissionContext { data = typeof data === 'object' ? data : {}; let result = new CommunityMemberPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; if (Array.isArray(this.whenOwnCommunityRoleIsIn)) { data["whenOwnCommunityRoleIsIn"] = []; @@ -2300,18 +2299,18 @@ export class GlobalPermissionContext extends PermissionContext implements IGloba this._discriminator = "GlobalPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): GlobalPermissionContext { + static override fromJS(data: any): GlobalPermissionContext { data = typeof data === 'object' ? data : {}; let result = new GlobalPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -2328,18 +2327,18 @@ export class OwnFamilyPermissionContext extends PermissionContext implements IOw this._discriminator = "OwnFamilyPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): OwnFamilyPermissionContext { + static override fromJS(data: any): OwnFamilyPermissionContext { data = typeof data === 'object' ? data : {}; let result = new OwnFamilyPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -2358,7 +2357,7 @@ export class OwnReferralAssigneeFamiliesPermissionContext extends PermissionCont this._discriminator = "OwnReferralAssigneeFamiliesPermissionContext"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.whenReferralIsOpen = _data["whenReferralIsOpen"]; @@ -2370,14 +2369,14 @@ export class OwnReferralAssigneeFamiliesPermissionContext extends PermissionCont } } - static fromJS(data: any): OwnReferralAssigneeFamiliesPermissionContext { + static override fromJS(data: any): OwnReferralAssigneeFamiliesPermissionContext { data = typeof data === 'object' ? data : {}; let result = new OwnReferralAssigneeFamiliesPermissionContext(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["whenReferralIsOpen"] = this.whenReferralIsOpen; if (Array.isArray(this.whenAssigneeFunctionIsIn)) { @@ -2486,7 +2485,7 @@ export class PutLocationPayload implements IPutLocationPayload { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -2510,7 +2509,7 @@ export class PutLocationPayload implements IPutLocationPayload { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["locationConfiguration"] = this.locationConfiguration ? this.locationConfiguration.toJSON() : undefined; + data["locationConfiguration"] = this.locationConfiguration ? this.locationConfiguration.toJSON() : undefined as any; data["copyPoliciesFromLocationId"] = this.copyPoliciesFromLocationId; return data; } @@ -2532,7 +2531,7 @@ export class EffectiveLocationPolicy implements IEffectiveLocationPolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -2550,7 +2549,7 @@ export class EffectiveLocationPolicy implements IEffectiveLocationPolicy { this.actionDefinitions = {} as any; for (let key in _data["actionDefinitions"]) { if (_data["actionDefinitions"].hasOwnProperty(key)) - (this.actionDefinitions)![key] = _data["actionDefinitions"][key] ? ActionRequirement.fromJS(_data["actionDefinitions"][key]) : new ActionRequirement(); + (this.actionDefinitions as any)![key] = _data["actionDefinitions"][key] ? ActionRequirement.fromJS(_data["actionDefinitions"][key]) : new ActionRequirement(); } } if (Array.isArray(_data["customFamilyFields"])) { @@ -2577,17 +2576,17 @@ export class EffectiveLocationPolicy implements IEffectiveLocationPolicy { data["actionDefinitions"] = {}; for (let key in this.actionDefinitions) { if (this.actionDefinitions.hasOwnProperty(key)) - (data["actionDefinitions"])[key] = this.actionDefinitions[key] ? this.actionDefinitions[key].toJSON() : undefined; + (data["actionDefinitions"] as any)[key] = this.actionDefinitions[key] ? this.actionDefinitions[key].toJSON() : undefined as any; } } if (Array.isArray(this.customFamilyFields)) { data["customFamilyFields"] = []; for (let item of this.customFamilyFields) - data["customFamilyFields"].push(item.toJSON()); + data["customFamilyFields"].push(item ? item.toJSON() : undefined as any); } - data["referralPolicy"] = this.referralPolicy ? this.referralPolicy.toJSON() : undefined; - data["volunteerPolicy"] = this.volunteerPolicy ? this.volunteerPolicy.toJSON() : undefined; - data["v1ReferralPolicy"] = this.v1ReferralPolicy ? this.v1ReferralPolicy.toJSON() : undefined; + data["referralPolicy"] = this.referralPolicy ? this.referralPolicy.toJSON() : undefined as any; + data["volunteerPolicy"] = this.volunteerPolicy ? this.volunteerPolicy.toJSON() : undefined as any; + data["v1ReferralPolicy"] = this.v1ReferralPolicy ? this.v1ReferralPolicy.toJSON() : undefined as any; return data; } } @@ -2614,7 +2613,7 @@ export class ActionRequirement implements IActionRequirement { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -2694,7 +2693,7 @@ export class CustomField implements ICustomField { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -2762,7 +2761,7 @@ export class V1CasePolicy implements IV1CasePolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -2826,7 +2825,7 @@ export class V1CasePolicy implements IV1CasePolicy { if (Array.isArray(this.intakeRequirements_PRE_MIGRATION)) { data["intakeRequirements_PRE_MIGRATION"] = []; for (let item of this.intakeRequirements_PRE_MIGRATION) - data["intakeRequirements_PRE_MIGRATION"].push(item.toJSON()); + data["intakeRequirements_PRE_MIGRATION"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredIntakeActionNames)) { data["requiredIntakeActionNames"] = []; @@ -2836,27 +2835,27 @@ export class V1CasePolicy implements IV1CasePolicy { if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.arrangementPolicies)) { data["arrangementPolicies"] = []; for (let item of this.arrangementPolicies) - data["arrangementPolicies"].push(item.toJSON()); + data["arrangementPolicies"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.functionPolicies)) { data["functionPolicies"] = []; for (let item of this.functionPolicies) - data["functionPolicies"].push(item.toJSON()); + data["functionPolicies"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.intakeRequirements)) { data["intakeRequirements"] = []; for (let item of this.intakeRequirements) - data["intakeRequirements"].push(item.toJSON()); + data["intakeRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.staffAssignmentPolicies)) { data["staffAssignmentPolicies"] = []; for (let item of this.staffAssignmentPolicies) - data["staffAssignmentPolicies"].push(item.toJSON()); + data["staffAssignmentPolicies"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -2880,7 +2879,7 @@ export class RequirementDefinition implements IRequirementDefinition { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -2930,7 +2929,7 @@ export class ArrangementPolicy implements IArrangementPolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3013,24 +3012,24 @@ export class ArrangementPolicy implements IArrangementPolicy { if (Array.isArray(this.requiredSetupActions_PRE_MIGRATION)) { data["requiredSetupActions_PRE_MIGRATION"] = []; for (let item of this.requiredSetupActions_PRE_MIGRATION) - data["requiredSetupActions_PRE_MIGRATION"].push(item.toJSON()); + data["requiredSetupActions_PRE_MIGRATION"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredMonitoringActions_PRE_MIGRATION)) { data["requiredMonitoringActions_PRE_MIGRATION"] = []; for (let item of this.requiredMonitoringActions_PRE_MIGRATION) - data["requiredMonitoringActions_PRE_MIGRATION"].push(item.toJSON()); + data["requiredMonitoringActions_PRE_MIGRATION"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredCloseoutActionNames_PRE_MIGRATION)) { data["requiredCloseoutActionNames_PRE_MIGRATION"] = []; for (let item of this.requiredCloseoutActionNames_PRE_MIGRATION) - data["requiredCloseoutActionNames_PRE_MIGRATION"].push(item.toJSON()); + data["requiredCloseoutActionNames_PRE_MIGRATION"].push(item ? item.toJSON() : undefined as any); } data["arrangementType"] = this.arrangementType; data["childInvolvement"] = this.childInvolvement; if (Array.isArray(this.arrangementFunctions)) { data["arrangementFunctions"] = []; for (let item of this.arrangementFunctions) - data["arrangementFunctions"].push(item.toJSON()); + data["arrangementFunctions"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredSetupActionNames)) { data["requiredSetupActionNames"] = []; @@ -3040,7 +3039,7 @@ export class ArrangementPolicy implements IArrangementPolicy { if (Array.isArray(this.requiredMonitoringActions)) { data["requiredMonitoringActions"] = []; for (let item of this.requiredMonitoringActions) - data["requiredMonitoringActions"].push(item.toJSON()); + data["requiredMonitoringActions"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredCloseoutActionNames)) { data["requiredCloseoutActionNames"] = []; @@ -3050,17 +3049,17 @@ export class ArrangementPolicy implements IArrangementPolicy { if (Array.isArray(this.requiredSetupActions)) { data["requiredSetupActions"] = []; for (let item of this.requiredSetupActions) - data["requiredSetupActions"].push(item.toJSON()); + data["requiredSetupActions"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredMonitoringActionsNew)) { data["requiredMonitoringActionsNew"] = []; for (let item of this.requiredMonitoringActionsNew) - data["requiredMonitoringActionsNew"].push(item.toJSON()); + data["requiredMonitoringActionsNew"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredCloseoutActions)) { data["requiredCloseoutActions"] = []; for (let item of this.requiredCloseoutActions) - data["requiredCloseoutActions"].push(item.toJSON()); + data["requiredCloseoutActions"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -3089,7 +3088,7 @@ export class MonitoringRequirement implements IMonitoringRequirement { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3100,7 +3099,7 @@ export class MonitoringRequirement implements IMonitoringRequirement { init(_data?: any) { if (_data) { this.action = _data["action"] ? RequirementDefinition.fromJS(_data["action"]) : new RequirementDefinition(); - this.recurrence = _data["recurrence"] ? RecurrencePolicy.fromJS(_data["recurrence"]) : undefined; + this.recurrence = _data["recurrence"] ? RecurrencePolicy.fromJS(_data["recurrence"]) : undefined as any; } } @@ -3113,8 +3112,8 @@ export class MonitoringRequirement implements IMonitoringRequirement { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["action"] = this.action ? this.action.toJSON() : undefined; - data["recurrence"] = this.recurrence ? this.recurrence.toJSON() : undefined; + data["action"] = this.action ? this.action.toJSON() : undefined as any; + data["recurrence"] = this.recurrence ? this.recurrence.toJSON() : undefined as any; return data; } } @@ -3132,7 +3131,7 @@ export abstract class RecurrencePolicy implements IRecurrencePolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "RecurrencePolicy"; @@ -3187,7 +3186,7 @@ export class ChildCareOccurrenceBasedRecurrencePolicy extends RecurrencePolicy i this._discriminator = "ChildCareOccurrenceBasedRecurrencePolicy"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.delay = _data["delay"]; @@ -3197,14 +3196,14 @@ export class ChildCareOccurrenceBasedRecurrencePolicy extends RecurrencePolicy i } } - static fromJS(data: any): ChildCareOccurrenceBasedRecurrencePolicy { + static override fromJS(data: any): ChildCareOccurrenceBasedRecurrencePolicy { data = typeof data === 'object' ? data : {}; let result = new ChildCareOccurrenceBasedRecurrencePolicy(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["delay"] = this.delay; data["frequency"] = this.frequency; @@ -3233,7 +3232,7 @@ export class DurationStagesPerChildLocationRecurrencePolicy extends RecurrencePo this._discriminator = "DurationStagesPerChildLocationRecurrencePolicy"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { if (Array.isArray(_data["stages"])) { @@ -3244,19 +3243,19 @@ export class DurationStagesPerChildLocationRecurrencePolicy extends RecurrencePo } } - static fromJS(data: any): DurationStagesPerChildLocationRecurrencePolicy { + static override fromJS(data: any): DurationStagesPerChildLocationRecurrencePolicy { data = typeof data === 'object' ? data : {}; let result = new DurationStagesPerChildLocationRecurrencePolicy(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; if (Array.isArray(this.stages)) { data["stages"] = []; for (let item of this.stages) - data["stages"].push(item.toJSON()); + data["stages"].push(item ? item.toJSON() : undefined as any); } super.toJSON(data); return data; @@ -3275,7 +3274,7 @@ export class RecurrencePolicyStage implements IRecurrencePolicyStage { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -3318,7 +3317,7 @@ export class DurationStagesRecurrencePolicy extends RecurrencePolicy implements this._discriminator = "DurationStagesRecurrencePolicy"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { if (Array.isArray(_data["stages"])) { @@ -3329,19 +3328,19 @@ export class DurationStagesRecurrencePolicy extends RecurrencePolicy implements } } - static fromJS(data: any): DurationStagesRecurrencePolicy { + static override fromJS(data: any): DurationStagesRecurrencePolicy { data = typeof data === 'object' ? data : {}; let result = new DurationStagesRecurrencePolicy(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; if (Array.isArray(this.stages)) { data["stages"] = []; for (let item of this.stages) - data["stages"].push(item.toJSON()); + data["stages"].push(item ? item.toJSON() : undefined as any); } super.toJSON(data); return data; @@ -3360,21 +3359,21 @@ export class OneTimeRecurrencePolicy extends RecurrencePolicy implements IOneTim this._discriminator = "OneTimeRecurrencePolicy"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.delay = _data["delay"]; } } - static fromJS(data: any): OneTimeRecurrencePolicy { + static override fromJS(data: any): OneTimeRecurrencePolicy { data = typeof data === 'object' ? data : {}; let result = new OneTimeRecurrencePolicy(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["delay"] = this.delay; super.toJSON(data); @@ -3405,7 +3404,7 @@ export class ArrangementFunction implements IArrangementFunction { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3469,7 +3468,7 @@ export class ArrangementFunction implements IArrangementFunction { if (Array.isArray(this.variants)) { data["variants"] = []; for (let item of this.variants) - data["variants"].push(item.toJSON()); + data["variants"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -3506,7 +3505,7 @@ export class ArrangementFunctionVariant implements IArrangementFunctionVariant { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3582,17 +3581,17 @@ export class ArrangementFunctionVariant implements IArrangementFunctionVariant { if (Array.isArray(this.requiredSetupActionNames_PRE_MIGRATION)) { data["requiredSetupActionNames_PRE_MIGRATION"] = []; for (let item of this.requiredSetupActionNames_PRE_MIGRATION) - data["requiredSetupActionNames_PRE_MIGRATION"].push(item.toJSON()); + data["requiredSetupActionNames_PRE_MIGRATION"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredMonitoringActions_PRE_MIGRATION)) { data["requiredMonitoringActions_PRE_MIGRATION"] = []; for (let item of this.requiredMonitoringActions_PRE_MIGRATION) - data["requiredMonitoringActions_PRE_MIGRATION"].push(item.toJSON()); + data["requiredMonitoringActions_PRE_MIGRATION"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredCloseoutActionNames_PRE_MIGRATION)) { data["requiredCloseoutActionNames_PRE_MIGRATION"] = []; for (let item of this.requiredCloseoutActionNames_PRE_MIGRATION) - data["requiredCloseoutActionNames_PRE_MIGRATION"].push(item.toJSON()); + data["requiredCloseoutActionNames_PRE_MIGRATION"].push(item ? item.toJSON() : undefined as any); } data["variantName"] = this.variantName; if (Array.isArray(this.requiredSetupActionNames)) { @@ -3603,7 +3602,7 @@ export class ArrangementFunctionVariant implements IArrangementFunctionVariant { if (Array.isArray(this.requiredMonitoringActions)) { data["requiredMonitoringActions"] = []; for (let item of this.requiredMonitoringActions) - data["requiredMonitoringActions"].push(item.toJSON()); + data["requiredMonitoringActions"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredCloseoutActionNames)) { data["requiredCloseoutActionNames"] = []; @@ -3613,17 +3612,17 @@ export class ArrangementFunctionVariant implements IArrangementFunctionVariant { if (Array.isArray(this.requiredSetupActions)) { data["requiredSetupActions"] = []; for (let item of this.requiredSetupActions) - data["requiredSetupActions"].push(item.toJSON()); + data["requiredSetupActions"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredMonitoringActionsNew)) { data["requiredMonitoringActionsNew"] = []; for (let item of this.requiredMonitoringActionsNew) - data["requiredMonitoringActionsNew"].push(item.toJSON()); + data["requiredMonitoringActionsNew"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.requiredCloseoutActions)) { data["requiredCloseoutActions"] = []; for (let item of this.requiredCloseoutActions) - data["requiredCloseoutActions"].push(item.toJSON()); + data["requiredCloseoutActions"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -3650,7 +3649,7 @@ export class MonitoringRequirementOld implements IMonitoringRequirementOld { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -3658,7 +3657,7 @@ export class MonitoringRequirementOld implements IMonitoringRequirementOld { init(_data?: any) { if (_data) { this.actionName = _data["actionName"]; - this.recurrence = _data["recurrence"] ? RecurrencePolicy.fromJS(_data["recurrence"]) : undefined; + this.recurrence = _data["recurrence"] ? RecurrencePolicy.fromJS(_data["recurrence"]) : undefined as any; } } @@ -3672,7 +3671,7 @@ export class MonitoringRequirementOld implements IMonitoringRequirementOld { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["actionName"] = this.actionName; - data["recurrence"] = this.recurrence ? this.recurrence.toJSON() : undefined; + data["recurrence"] = this.recurrence ? this.recurrence.toJSON() : undefined as any; return data; } } @@ -3690,7 +3689,7 @@ export class FunctionPolicy implements IFunctionPolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3715,7 +3714,7 @@ export class FunctionPolicy implements IFunctionPolicy { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["functionName"] = this.functionName; - data["eligibility"] = this.eligibility ? this.eligibility.toJSON() : undefined; + data["eligibility"] = this.eligibility ? this.eligibility.toJSON() : undefined as any; return data; } } @@ -3734,7 +3733,7 @@ export class FunctionEligibility implements IFunctionEligibility { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3806,7 +3805,7 @@ export class StaffAssignmentPolicy implements IStaffAssignmentPolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3831,7 +3830,7 @@ export class StaffAssignmentPolicy implements IStaffAssignmentPolicy { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["assignmentRole"] = this.assignmentRole; - data["eligibility"] = this.eligibility ? this.eligibility.toJSON() : undefined; + data["eligibility"] = this.eligibility ? this.eligibility.toJSON() : undefined as any; return data; } } @@ -3851,7 +3850,7 @@ export class StaffAssignmentEligibility implements IStaffAssignmentEligibility { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3935,7 +3934,7 @@ export class VolunteerPolicy implements IVolunteerPolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -3950,14 +3949,14 @@ export class VolunteerPolicy implements IVolunteerPolicy { this.volunteerRoles = {} as any; for (let key in _data["volunteerRoles"]) { if (_data["volunteerRoles"].hasOwnProperty(key)) - (this.volunteerRoles)![key] = _data["volunteerRoles"][key] ? VolunteerRolePolicy.fromJS(_data["volunteerRoles"][key]) : new VolunteerRolePolicy(); + (this.volunteerRoles as any)![key] = _data["volunteerRoles"][key] ? VolunteerRolePolicy.fromJS(_data["volunteerRoles"][key]) : new VolunteerRolePolicy(); } } if (_data["volunteerFamilyRoles"]) { this.volunteerFamilyRoles = {} as any; for (let key in _data["volunteerFamilyRoles"]) { if (_data["volunteerFamilyRoles"].hasOwnProperty(key)) - (this.volunteerFamilyRoles)![key] = _data["volunteerFamilyRoles"][key] ? VolunteerFamilyRolePolicy.fromJS(_data["volunteerFamilyRoles"][key]) : new VolunteerFamilyRolePolicy(); + (this.volunteerFamilyRoles as any)![key] = _data["volunteerFamilyRoles"][key] ? VolunteerFamilyRolePolicy.fromJS(_data["volunteerFamilyRoles"][key]) : new VolunteerFamilyRolePolicy(); } } } @@ -3976,14 +3975,14 @@ export class VolunteerPolicy implements IVolunteerPolicy { data["volunteerRoles"] = {}; for (let key in this.volunteerRoles) { if (this.volunteerRoles.hasOwnProperty(key)) - (data["volunteerRoles"])[key] = this.volunteerRoles[key] ? this.volunteerRoles[key].toJSON() : undefined; + (data["volunteerRoles"] as any)[key] = this.volunteerRoles[key] ? this.volunteerRoles[key].toJSON() : undefined as any; } } if (this.volunteerFamilyRoles) { data["volunteerFamilyRoles"] = {}; for (let key in this.volunteerFamilyRoles) { if (this.volunteerFamilyRoles.hasOwnProperty(key)) - (data["volunteerFamilyRoles"])[key] = this.volunteerFamilyRoles[key] ? this.volunteerFamilyRoles[key].toJSON() : undefined; + (data["volunteerFamilyRoles"] as any)[key] = this.volunteerFamilyRoles[key] ? this.volunteerFamilyRoles[key].toJSON() : undefined as any; } } return data; @@ -4003,7 +4002,7 @@ export class VolunteerRolePolicy implements IVolunteerRolePolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4035,7 +4034,7 @@ export class VolunteerRolePolicy implements IVolunteerRolePolicy { if (Array.isArray(this.policyVersions)) { data["policyVersions"] = []; for (let item of this.policyVersions) - data["policyVersions"].push(item.toJSON()); + data["policyVersions"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -4055,7 +4054,7 @@ export class VolunteerRolePolicyVersion implements IVolunteerRolePolicyVersion { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4066,7 +4065,7 @@ export class VolunteerRolePolicyVersion implements IVolunteerRolePolicyVersion { init(_data?: any) { if (_data) { this.version = _data["version"]; - this.supersededAtUtc = _data["supersededAtUtc"] ? new Date(_data["supersededAtUtc"].toString()) : undefined; + this.supersededAtUtc = _data["supersededAtUtc"] ? new Date(_data["supersededAtUtc"].toString()) : undefined as any; if (Array.isArray(_data["requirements"])) { this.requirements = [] as any; for (let item of _data["requirements"]) @@ -4085,11 +4084,11 @@ export class VolunteerRolePolicyVersion implements IVolunteerRolePolicyVersion { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["version"] = this.version; - data["supersededAtUtc"] = this.supersededAtUtc ? this.supersededAtUtc.toISOString() : undefined; + data["supersededAtUtc"] = this.supersededAtUtc ? this.supersededAtUtc.toISOString() : undefined as any; if (Array.isArray(this.requirements)) { data["requirements"] = []; for (let item of this.requirements) - data["requirements"].push(item.toJSON()); + data["requirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -4109,7 +4108,7 @@ export class VolunteerApprovalRequirement implements IVolunteerApprovalRequireme if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -4155,7 +4154,7 @@ export class VolunteerFamilyRolePolicy implements IVolunteerFamilyRolePolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4187,7 +4186,7 @@ export class VolunteerFamilyRolePolicy implements IVolunteerFamilyRolePolicy { if (Array.isArray(this.policyVersions)) { data["policyVersions"] = []; for (let item of this.policyVersions) - data["policyVersions"].push(item.toJSON()); + data["policyVersions"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -4207,7 +4206,7 @@ export class VolunteerFamilyRolePolicyVersion implements IVolunteerFamilyRolePol if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4218,7 +4217,7 @@ export class VolunteerFamilyRolePolicyVersion implements IVolunteerFamilyRolePol init(_data?: any) { if (_data) { this.version = _data["version"]; - this.supersededAtUtc = _data["supersededAtUtc"] ? new Date(_data["supersededAtUtc"].toString()) : undefined; + this.supersededAtUtc = _data["supersededAtUtc"] ? new Date(_data["supersededAtUtc"].toString()) : undefined as any; if (Array.isArray(_data["requirements"])) { this.requirements = [] as any; for (let item of _data["requirements"]) @@ -4237,11 +4236,11 @@ export class VolunteerFamilyRolePolicyVersion implements IVolunteerFamilyRolePol toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["version"] = this.version; - data["supersededAtUtc"] = this.supersededAtUtc ? this.supersededAtUtc.toISOString() : undefined; + data["supersededAtUtc"] = this.supersededAtUtc ? this.supersededAtUtc.toISOString() : undefined as any; if (Array.isArray(this.requirements)) { data["requirements"] = []; for (let item of this.requirements) - data["requirements"].push(item.toJSON()); + data["requirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -4262,7 +4261,7 @@ export class VolunteerFamilyApprovalRequirement implements IVolunteerFamilyAppro if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -4310,7 +4309,7 @@ export class V1ReferralPolicy implements IV1ReferralPolicy { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4340,7 +4339,7 @@ export class V1ReferralPolicy implements IV1ReferralPolicy { if (Array.isArray(this.staffAssignmentPolicies)) { data["staffAssignmentPolicies"] = []; for (let item of this.staffAssignmentPolicies) - data["staffAssignmentPolicies"].push(item.toJSON()); + data["staffAssignmentPolicies"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -4359,7 +4358,7 @@ export class CurrentFeatureFlags implements ICurrentFeatureFlags { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -4402,7 +4401,7 @@ export class DocumentUploadInfo implements IDocumentUploadInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -4443,7 +4442,7 @@ export abstract class RecordsAggregate implements IRecordsAggregate { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "RecordsAggregate"; @@ -4498,23 +4497,23 @@ export class CommunityRecordsAggregate extends RecordsAggregate implements IComm this._discriminator = "CommunityRecordsAggregate"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.community = _data["community"] ? CommunityInfo.fromJS(_data["community"]) : new CommunityInfo(); } } - static fromJS(data: any): CommunityRecordsAggregate { + static override fromJS(data: any): CommunityRecordsAggregate { data = typeof data === 'object' ? data : {}; let result = new CommunityRecordsAggregate(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["community"] = this.community ? this.community.toJSON() : undefined; + data["community"] = this.community ? this.community.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -4532,7 +4531,7 @@ export class CommunityInfo implements ICommunityInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4561,7 +4560,7 @@ export class CommunityInfo implements ICommunityInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["community"] = this.community ? this.community.toJSON() : undefined; + data["community"] = this.community ? this.community.toJSON() : undefined as any; if (Array.isArray(this.userPermissions)) { data["userPermissions"] = []; for (let item of this.userPermissions) @@ -4588,7 +4587,7 @@ export class Community implements ICommunity { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4641,12 +4640,12 @@ export class Community implements ICommunity { if (Array.isArray(this.communityRoleAssignments)) { data["communityRoleAssignments"] = []; for (let item of this.communityRoleAssignments) - data["communityRoleAssignments"].push(item.toJSON()); + data["communityRoleAssignments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.uploadedDocuments)) { data["uploadedDocuments"] = []; for (let item of this.uploadedDocuments) - data["uploadedDocuments"].push(item.toJSON()); + data["uploadedDocuments"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -4669,7 +4668,7 @@ export class CommunityRoleAssignment implements ICommunityRoleAssignment { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -4711,7 +4710,7 @@ export class UploadedDocumentInfo implements IUploadedDocumentInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -4719,7 +4718,7 @@ export class UploadedDocumentInfo implements IUploadedDocumentInfo { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined; + this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.uploadedFileName = _data["uploadedFileName"]; } @@ -4735,7 +4734,7 @@ export class UploadedDocumentInfo implements IUploadedDocumentInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["userId"] = this.userId; - data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined; + data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["uploadedFileName"] = this.uploadedFileName; return data; @@ -4760,23 +4759,23 @@ export class FamilyRecordsAggregate extends RecordsAggregate implements IFamilyR this._discriminator = "FamilyRecordsAggregate"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.family = _data["family"] ? CombinedFamilyInfo.fromJS(_data["family"]) : new CombinedFamilyInfo(); } } - static fromJS(data: any): FamilyRecordsAggregate { + static override fromJS(data: any): FamilyRecordsAggregate { data = typeof data === 'object' ? data : {}; let result = new FamilyRecordsAggregate(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["family"] = this.family ? this.family.toJSON() : undefined; + data["family"] = this.family ? this.family.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -4800,7 +4799,7 @@ export class CombinedFamilyInfo implements ICombinedFamilyInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4821,8 +4820,8 @@ export class CombinedFamilyInfo implements ICombinedFamilyInfo { for (let item of _data["users"]) this.users!.push(UserInfo.fromJS(item)); } - this.partneringFamilyInfo = _data["partneringFamilyInfo"] ? PartneringFamilyInfo.fromJS(_data["partneringFamilyInfo"]) : undefined; - this.volunteerFamilyInfo = _data["volunteerFamilyInfo"] ? VolunteerFamilyInfo.fromJS(_data["volunteerFamilyInfo"]) : undefined; + this.partneringFamilyInfo = _data["partneringFamilyInfo"] ? PartneringFamilyInfo.fromJS(_data["partneringFamilyInfo"]) : undefined as any; + this.volunteerFamilyInfo = _data["volunteerFamilyInfo"] ? VolunteerFamilyInfo.fromJS(_data["volunteerFamilyInfo"]) : undefined as any; if (Array.isArray(_data["notes"])) { this.notes = [] as any; for (let item of _data["notes"]) @@ -4855,23 +4854,23 @@ export class CombinedFamilyInfo implements ICombinedFamilyInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["family"] = this.family ? this.family.toJSON() : undefined; + data["family"] = this.family ? this.family.toJSON() : undefined as any; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined as any); } - data["partneringFamilyInfo"] = this.partneringFamilyInfo ? this.partneringFamilyInfo.toJSON() : undefined; - data["volunteerFamilyInfo"] = this.volunteerFamilyInfo ? this.volunteerFamilyInfo.toJSON() : undefined; + data["partneringFamilyInfo"] = this.partneringFamilyInfo ? this.partneringFamilyInfo.toJSON() : undefined as any; + data["volunteerFamilyInfo"] = this.volunteerFamilyInfo ? this.volunteerFamilyInfo.toJSON() : undefined as any; if (Array.isArray(this.notes)) { data["notes"] = []; for (let item of this.notes) - data["notes"].push(item.toJSON()); + data["notes"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.uploadedDocuments)) { data["uploadedDocuments"] = []; for (let item of this.uploadedDocuments) - data["uploadedDocuments"].push(item.toJSON()); + data["uploadedDocuments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.missingCustomFields)) { data["missingCustomFields"] = []; @@ -4915,7 +4914,7 @@ export class Family implements IFamily { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -4988,22 +4987,22 @@ export class Family implements IFamily { if (Array.isArray(this.adults)) { data["adults"] = []; for (let item of this.adults) - data["adults"].push(item.toJSON()); + data["adults"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.children)) { data["children"] = []; for (let item of this.children) - data["children"].push(item.toJSON()); + data["children"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.custodialRelationships)) { data["custodialRelationships"] = []; for (let item of this.custodialRelationships) - data["custodialRelationships"].push(item.toJSON()); + data["custodialRelationships"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.uploadedDocuments)) { data["uploadedDocuments"] = []; for (let item of this.uploadedDocuments) - data["uploadedDocuments"].push(item.toJSON()); + data["uploadedDocuments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.deletedDocuments)) { data["deletedDocuments"] = []; @@ -5013,12 +5012,12 @@ export class Family implements IFamily { if (Array.isArray(this.completedCustomFields)) { data["completedCustomFields"] = []; for (let item of this.completedCustomFields) - data["completedCustomFields"].push(item.toJSON()); + data["completedCustomFields"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.history)) { data["history"] = []; for (let item of this.history) - data["history"].push(item.toJSON()); + data["history"].push(item ? item.toJSON() : undefined as any); } data["isTestFamily"] = this.isTestFamily; return data; @@ -5047,15 +5046,15 @@ export class ValueTupleOfPersonAndFamilyAdultRelationshipInfo implements IValueT if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } init(_data?: any) { if (_data) { - this.item1 = _data["item1"] ? Person.fromJS(_data["item1"]) : undefined; - this.item2 = _data["item2"] ? FamilyAdultRelationshipInfo.fromJS(_data["item2"]) : undefined; + this.item1 = _data["item1"] ? Person.fromJS(_data["item1"]) : undefined as any; + this.item2 = _data["item2"] ? FamilyAdultRelationshipInfo.fromJS(_data["item2"]) : undefined as any; } } @@ -5068,8 +5067,8 @@ export class ValueTupleOfPersonAndFamilyAdultRelationshipInfo implements IValueT toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["item1"] = this.item1 ? this.item1.toJSON() : undefined; - data["item2"] = this.item2 ? this.item2.toJSON() : undefined; + data["item1"] = this.item1 ? this.item1.toJSON() : undefined as any; + data["item2"] = this.item2 ? this.item2.toJSON() : undefined as any; return data; } } @@ -5100,7 +5099,7 @@ export class Person implements IPerson { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -5117,7 +5116,7 @@ export class Person implements IPerson { this.firstName = _data["firstName"]; this.lastName = _data["lastName"]; this.gender = _data["gender"]; - this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined; + this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined as any; this.ethnicity = _data["ethnicity"]; if (Array.isArray(_data["addresses"])) { this.addresses = [] as any; @@ -5156,24 +5155,24 @@ export class Person implements IPerson { data["firstName"] = this.firstName; data["lastName"] = this.lastName; data["gender"] = this.gender; - data["age"] = this.age ? this.age.toJSON() : undefined; + data["age"] = this.age ? this.age.toJSON() : undefined as any; data["ethnicity"] = this.ethnicity; if (Array.isArray(this.addresses)) { data["addresses"] = []; for (let item of this.addresses) - data["addresses"].push(item.toJSON()); + data["addresses"].push(item ? item.toJSON() : undefined as any); } data["currentAddressId"] = this.currentAddressId; if (Array.isArray(this.phoneNumbers)) { data["phoneNumbers"] = []; for (let item of this.phoneNumbers) - data["phoneNumbers"].push(item.toJSON()); + data["phoneNumbers"].push(item ? item.toJSON() : undefined as any); } data["preferredPhoneNumberId"] = this.preferredPhoneNumberId; if (Array.isArray(this.emailAddresses)) { data["emailAddresses"] = []; for (let item of this.emailAddresses) - data["emailAddresses"].push(item.toJSON()); + data["emailAddresses"].push(item ? item.toJSON() : undefined as any); } data["preferredEmailAddressId"] = this.preferredEmailAddressId; data["concerns"] = this.concerns; @@ -5214,7 +5213,7 @@ export abstract class Age implements IAge { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "Age"; @@ -5257,25 +5256,25 @@ export class AgeInYears extends Age implements IAgeInYears { this._discriminator = "AgeInYears"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.years = _data["years"]; - this.asOf = _data["asOf"] ? new Date(_data["asOf"].toString()) : undefined; + this.asOf = _data["asOf"] ? new Date(_data["asOf"].toString()) : undefined as any; } } - static fromJS(data: any): AgeInYears { + static override fromJS(data: any): AgeInYears { data = typeof data === 'object' ? data : {}; let result = new AgeInYears(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["years"] = this.years; - data["asOf"] = this.asOf ? this.asOf.toISOString() : undefined; + data["asOf"] = this.asOf ? this.asOf.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -5294,23 +5293,23 @@ export class ExactAge extends Age implements IExactAge { this._discriminator = "ExactAge"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.dateOfBirth = _data["dateOfBirth"] ? new Date(_data["dateOfBirth"].toString()) : undefined; + this.dateOfBirth = _data["dateOfBirth"] ? new Date(_data["dateOfBirth"].toString()) : undefined as any; } } - static fromJS(data: any): ExactAge { + static override fromJS(data: any): ExactAge { data = typeof data === 'object' ? data : {}; let result = new ExactAge(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["dateOfBirth"] = this.dateOfBirth ? this.dateOfBirth.toISOString() : undefined; + data["dateOfBirth"] = this.dateOfBirth ? this.dateOfBirth.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -5333,7 +5332,7 @@ export class Address implements IAddress { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -5389,7 +5388,7 @@ export class PhoneNumber implements IPhoneNumber { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -5440,7 +5439,7 @@ export class EmailAddress implements IEmailAddress { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -5488,7 +5487,7 @@ export class FamilyAdultRelationshipInfo implements IFamilyAdultRelationshipInfo if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -5529,7 +5528,7 @@ export class CustodialRelationship implements ICustodialRelationship { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -5582,7 +5581,7 @@ export class CompletedCustomFieldInfo implements ICompletedCustomFieldInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -5590,7 +5589,7 @@ export class CompletedCustomFieldInfo implements ICompletedCustomFieldInfo { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined; + this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined as any; this.completedCustomFieldId = _data["completedCustomFieldId"]; this.customFieldName = _data["customFieldName"]; this.customFieldType = _data["customFieldType"]; @@ -5608,7 +5607,7 @@ export class CompletedCustomFieldInfo implements ICompletedCustomFieldInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["userId"] = this.userId; - data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined; + data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined as any; data["completedCustomFieldId"] = this.completedCustomFieldId; data["customFieldName"] = this.customFieldName; data["customFieldType"] = this.customFieldType; @@ -5639,7 +5638,7 @@ export abstract class Activity implements IActivity { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "Activity"; @@ -5648,8 +5647,8 @@ export abstract class Activity implements IActivity { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.auditTimestampUtc = _data["auditTimestampUtc"] ? new Date(_data["auditTimestampUtc"].toString()) : undefined; - this.activityTimestampUtc = _data["activityTimestampUtc"] ? new Date(_data["activityTimestampUtc"].toString()) : undefined; + this.auditTimestampUtc = _data["auditTimestampUtc"] ? new Date(_data["auditTimestampUtc"].toString()) : undefined as any; + this.activityTimestampUtc = _data["activityTimestampUtc"] ? new Date(_data["activityTimestampUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } @@ -5724,8 +5723,8 @@ export abstract class Activity implements IActivity { data = typeof data === 'object' ? data : {}; data["discriminator"] = this._discriminator; data["userId"] = this.userId; - data["auditTimestampUtc"] = this.auditTimestampUtc ? this.auditTimestampUtc.toISOString() : undefined; - data["activityTimestampUtc"] = this.activityTimestampUtc ? this.activityTimestampUtc.toISOString() : undefined; + data["auditTimestampUtc"] = this.auditTimestampUtc ? this.auditTimestampUtc.toISOString() : undefined as any; + data["activityTimestampUtc"] = this.activityTimestampUtc ? this.activityTimestampUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; return data; @@ -5750,27 +5749,27 @@ export class ArrangementRequirementCompleted extends Activity implements IArrang this._discriminator = "ArrangementRequirementCompleted"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementId = _data["arrangementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ArrangementRequirementCompleted { + static override fromJS(data: any): ArrangementRequirementCompleted { data = typeof data === 'object' ? data : {}; let result = new ArrangementRequirementCompleted(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementId"] = this.arrangementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -5794,28 +5793,28 @@ export class ChildLocationChanged extends Activity implements IChildLocationChan this._discriminator = "ChildLocationChanged"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementId = _data["arrangementId"]; - this.changedAtUtc = _data["changedAtUtc"] ? new Date(_data["changedAtUtc"].toString()) : undefined; + this.changedAtUtc = _data["changedAtUtc"] ? new Date(_data["changedAtUtc"].toString()) : undefined as any; this.childLocationFamilyId = _data["childLocationFamilyId"]; this.childLocationReceivingAdultId = _data["childLocationReceivingAdultId"]; this.plan = _data["plan"]; } } - static fromJS(data: any): ChildLocationChanged { + static override fromJS(data: any): ChildLocationChanged { data = typeof data === 'object' ? data : {}; let result = new ChildLocationChanged(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementId"] = this.arrangementId; - data["changedAtUtc"] = this.changedAtUtc ? this.changedAtUtc.toISOString() : undefined; + data["changedAtUtc"] = this.changedAtUtc ? this.changedAtUtc.toISOString() : undefined as any; data["childLocationFamilyId"] = this.childLocationFamilyId; data["childLocationReceivingAdultId"] = this.childLocationReceivingAdultId; data["plan"] = this.plan; @@ -5846,23 +5845,23 @@ export class ReferralOpened extends Activity implements IReferralOpened { this._discriminator = "ReferralOpened"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined; + this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ReferralOpened { + static override fromJS(data: any): ReferralOpened { data = typeof data === 'object' ? data : {}; let result = new ReferralOpened(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined; + data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -5881,25 +5880,25 @@ export class ReferralRequirementCompleted extends Activity implements IReferralR this._discriminator = "ReferralRequirementCompleted"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ReferralRequirementCompleted { + static override fromJS(data: any): ReferralRequirementCompleted { data = typeof data === 'object' ? data : {}; let result = new ReferralRequirementCompleted(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -5919,7 +5918,7 @@ export class V1CaseStaffAssigned extends Activity implements IV1CaseStaffAssigne this._discriminator = "V1CaseStaffAssigned"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -5927,14 +5926,14 @@ export class V1CaseStaffAssigned extends Activity implements IV1CaseStaffAssigne } } - static fromJS(data: any): V1CaseStaffAssigned { + static override fromJS(data: any): V1CaseStaffAssigned { data = typeof data === 'object' ? data : {}; let result = new V1CaseStaffAssigned(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -5957,7 +5956,7 @@ export class V1CaseStaffUnassigned extends Activity implements IV1CaseStaffUnass this._discriminator = "V1CaseStaffUnassigned"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -5965,14 +5964,14 @@ export class V1CaseStaffUnassigned extends Activity implements IV1CaseStaffUnass } } - static fromJS(data: any): V1CaseStaffUnassigned { + static override fromJS(data: any): V1CaseStaffUnassigned { data = typeof data === 'object' ? data : {}; let result = new V1CaseStaffUnassigned(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -5994,23 +5993,23 @@ export class V1ReferralAccepted extends Activity implements IV1ReferralAccepted this._discriminator = "V1ReferralAccepted"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined; + this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): V1ReferralAccepted { + static override fromJS(data: any): V1ReferralAccepted { data = typeof data === 'object' ? data : {}; let result = new V1ReferralAccepted(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined; + data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -6029,24 +6028,24 @@ export class V1ReferralClosed extends Activity implements IV1ReferralClosed { this._discriminator = "V1ReferralClosed"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined; + this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined as any; this.closeReason = _data["closeReason"]; } } - static fromJS(data: any): V1ReferralClosed { + static override fromJS(data: any): V1ReferralClosed { data = typeof data === 'object' ? data : {}; let result = new V1ReferralClosed(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined; + data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined as any; data["closeReason"] = this.closeReason; super.toJSON(data); return data; @@ -6066,23 +6065,23 @@ export class V1ReferralOpened extends Activity implements IV1ReferralOpened { this._discriminator = "V1ReferralOpened"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined; + this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): V1ReferralOpened { + static override fromJS(data: any): V1ReferralOpened { data = typeof data === 'object' ? data : {}; let result = new V1ReferralOpened(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined; + data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -6101,25 +6100,25 @@ export class V1ReferralRequirementCompleted extends Activity implements IV1Refer this._discriminator = "V1ReferralRequirementCompleted"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): V1ReferralRequirementCompleted { + static override fromJS(data: any): V1ReferralRequirementCompleted { data = typeof data === 'object' ? data : {}; let result = new V1ReferralRequirementCompleted(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -6139,7 +6138,7 @@ export class V1ReferralStaffAssigned extends Activity implements IV1ReferralStaf this._discriminator = "V1ReferralStaffAssigned"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -6147,14 +6146,14 @@ export class V1ReferralStaffAssigned extends Activity implements IV1ReferralStaf } } - static fromJS(data: any): V1ReferralStaffAssigned { + static override fromJS(data: any): V1ReferralStaffAssigned { data = typeof data === 'object' ? data : {}; let result = new V1ReferralStaffAssigned(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -6177,7 +6176,7 @@ export class V1ReferralStaffUnassigned extends Activity implements IV1ReferralSt this._discriminator = "V1ReferralStaffUnassigned"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -6185,14 +6184,14 @@ export class V1ReferralStaffUnassigned extends Activity implements IV1ReferralSt } } - static fromJS(data: any): V1ReferralStaffUnassigned { + static override fromJS(data: any): V1ReferralStaffUnassigned { data = typeof data === 'object' ? data : {}; let result = new V1ReferralStaffUnassigned(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -6215,7 +6214,7 @@ export class UserInfo implements IUserInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -6270,7 +6269,7 @@ export class PartneringFamilyInfo implements IPartneringFamilyInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -6281,7 +6280,7 @@ export class PartneringFamilyInfo implements IPartneringFamilyInfo { init(_data?: any) { if (_data) { - this.openV1Case = _data["openV1Case"] ? V1Case.fromJS(_data["openV1Case"]) : undefined; + this.openV1Case = _data["openV1Case"] ? V1Case.fromJS(_data["openV1Case"]) : undefined as any; if (Array.isArray(_data["closedV1Cases"])) { this.closedV1Cases = [] as any; for (let item of _data["closedV1Cases"]) @@ -6304,16 +6303,16 @@ export class PartneringFamilyInfo implements IPartneringFamilyInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["openV1Case"] = this.openV1Case ? this.openV1Case.toJSON() : undefined; + data["openV1Case"] = this.openV1Case ? this.openV1Case.toJSON() : undefined as any; if (Array.isArray(this.closedV1Cases)) { data["closedV1Cases"] = []; for (let item of this.closedV1Cases) - data["closedV1Cases"].push(item.toJSON()); + data["closedV1Cases"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.history)) { data["history"] = []; for (let item of this.history) - data["history"].push(item.toJSON()); + data["history"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -6344,7 +6343,7 @@ export class V1Case implements IV1Case { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -6362,8 +6361,8 @@ export class V1Case implements IV1Case { init(_data?: any) { if (_data) { this.id = _data["id"]; - this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined; - this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined; + this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined as any; + this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined as any; this.closeReason = _data["closeReason"]; if (Array.isArray(_data["completedRequirements"])) { this.completedRequirements = [] as any; @@ -6419,28 +6418,28 @@ export class V1Case implements IV1Case { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["id"] = this.id; - data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined; - data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined; + data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined as any; + data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined as any; data["closeReason"] = this.closeReason; if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.missingRequirements)) { data["missingRequirements"] = []; for (let item of this.missingRequirements) - data["missingRequirements"].push(item.toJSON()); + data["missingRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.completedCustomFields)) { data["completedCustomFields"] = []; for (let item of this.completedCustomFields) - data["completedCustomFields"].push(item.toJSON()); + data["completedCustomFields"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.missingCustomFields)) { data["missingCustomFields"] = []; @@ -6450,12 +6449,12 @@ export class V1Case implements IV1Case { if (Array.isArray(this.arrangements)) { data["arrangements"] = []; for (let item of this.arrangements) - data["arrangements"].push(item.toJSON()); + data["arrangements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.staffAssignments)) { data["staffAssignments"] = []; for (let item of this.staffAssignments) - data["staffAssignments"].push(item.toJSON()); + data["staffAssignments"].push(item ? item.toJSON() : undefined as any); } data["comments"] = this.comments; if (Array.isArray(this.linkedV1ReferralIds)) { @@ -6505,7 +6504,7 @@ export class CompletedRequirementInfo implements ICompletedRequirementInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -6513,11 +6512,11 @@ export class CompletedRequirementInfo implements ICompletedRequirementInfo { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined; + this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined as any; this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; - this.expiresAtUtc = _data["expiresAtUtc"] ? new Date(_data["expiresAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; + this.expiresAtUtc = _data["expiresAtUtc"] ? new Date(_data["expiresAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } @@ -6533,11 +6532,11 @@ export class CompletedRequirementInfo implements ICompletedRequirementInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["userId"] = this.userId; - data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined; + data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined as any; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; - data["expiresAtUtc"] = this.expiresAtUtc ? this.expiresAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; + data["expiresAtUtc"] = this.expiresAtUtc ? this.expiresAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; return data; @@ -6567,7 +6566,7 @@ export class ExemptedRequirementInfo implements IExemptedRequirementInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -6575,11 +6574,11 @@ export class ExemptedRequirementInfo implements IExemptedRequirementInfo { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined; + this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined as any; this.requirementName = _data["requirementName"]; - this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined; + this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined as any; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } @@ -6593,11 +6592,11 @@ export class ExemptedRequirementInfo implements IExemptedRequirementInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["userId"] = this.userId; - data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined; + data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined as any; data["requirementName"] = this.requirementName; - data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined; + data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined as any; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; return data; } } @@ -6637,7 +6636,7 @@ export class Arrangement implements IArrangement { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -6658,12 +6657,12 @@ export class Arrangement implements IArrangement { this.arrangementType = _data["arrangementType"]; this.partneringFamilyPersonId = _data["partneringFamilyPersonId"]; this.phase = _data["phase"]; - this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined; - this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined; - this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined; - this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined; - this.plannedStartUtc = _data["plannedStartUtc"] ? new Date(_data["plannedStartUtc"].toString()) : undefined; - this.plannedEndUtc = _data["plannedEndUtc"] ? new Date(_data["plannedEndUtc"].toString()) : undefined; + this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined as any; + this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined as any; + this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined as any; + this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined as any; + this.plannedStartUtc = _data["plannedStartUtc"] ? new Date(_data["plannedStartUtc"].toString()) : undefined as any; + this.plannedEndUtc = _data["plannedEndUtc"] ? new Date(_data["plannedEndUtc"].toString()) : undefined as any; if (Array.isArray(_data["completedRequirements"])) { this.completedRequirements = [] as any; for (let item of _data["completedRequirements"]) @@ -6722,51 +6721,51 @@ export class Arrangement implements IArrangement { data["arrangementType"] = this.arrangementType; data["partneringFamilyPersonId"] = this.partneringFamilyPersonId; data["phase"] = this.phase; - data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined; - data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined; - data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined; - data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined; - data["plannedStartUtc"] = this.plannedStartUtc ? this.plannedStartUtc.toISOString() : undefined; - data["plannedEndUtc"] = this.plannedEndUtc ? this.plannedEndUtc.toISOString() : undefined; + data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined as any; + data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined as any; + data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined as any; + data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined as any; + data["plannedStartUtc"] = this.plannedStartUtc ? this.plannedStartUtc.toISOString() : undefined as any; + data["plannedEndUtc"] = this.plannedEndUtc ? this.plannedEndUtc.toISOString() : undefined as any; if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.missingRequirements)) { data["missingRequirements"] = []; for (let item of this.missingRequirements) - data["missingRequirements"].push(item.toJSON()); + data["missingRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.missingOptionalRequirements)) { data["missingOptionalRequirements"] = []; for (let item of this.missingOptionalRequirements) - data["missingOptionalRequirements"].push(item.toJSON()); + data["missingOptionalRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.individualVolunteerAssignments)) { data["individualVolunteerAssignments"] = []; for (let item of this.individualVolunteerAssignments) - data["individualVolunteerAssignments"].push(item.toJSON()); + data["individualVolunteerAssignments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.familyVolunteerAssignments)) { data["familyVolunteerAssignments"] = []; for (let item of this.familyVolunteerAssignments) - data["familyVolunteerAssignments"].push(item.toJSON()); + data["familyVolunteerAssignments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.childLocationHistory)) { data["childLocationHistory"] = []; for (let item of this.childLocationHistory) - data["childLocationHistory"].push(item.toJSON()); + data["childLocationHistory"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.childLocationPlan)) { data["childLocationPlan"] = []; for (let item of this.childLocationPlan) - data["childLocationPlan"].push(item.toJSON()); + data["childLocationPlan"].push(item ? item.toJSON() : undefined as any); } data["comments"] = this.comments; data["reason"] = this.reason; @@ -6818,7 +6817,7 @@ export class MissingArrangementRequirement implements IMissingArrangementRequire if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -6833,8 +6832,8 @@ export class MissingArrangementRequirement implements IMissingArrangementRequire this.volunteerFamilyId = _data["volunteerFamilyId"]; this.personId = _data["personId"]; this.action = _data["action"] ? RequirementDefinition.fromJS(_data["action"]) : new RequirementDefinition(); - this.dueBy = _data["dueBy"] ? new Date(_data["dueBy"].toString()) : undefined; - this.pastDueSince = _data["pastDueSince"] ? new Date(_data["pastDueSince"].toString()) : undefined; + this.dueBy = _data["dueBy"] ? new Date(_data["dueBy"].toString()) : undefined as any; + this.pastDueSince = _data["pastDueSince"] ? new Date(_data["pastDueSince"].toString()) : undefined as any; } } @@ -6851,9 +6850,9 @@ export class MissingArrangementRequirement implements IMissingArrangementRequire data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; data["volunteerFamilyId"] = this.volunteerFamilyId; data["personId"] = this.personId; - data["action"] = this.action ? this.action.toJSON() : undefined; - data["dueBy"] = this.dueBy ? formatDate(this.dueBy) : undefined; - data["pastDueSince"] = this.pastDueSince ? formatDate(this.pastDueSince) : undefined; + data["action"] = this.action ? this.action.toJSON() : undefined as any; + data["dueBy"] = this.dueBy ? formatDate(this.dueBy) : undefined as any; + data["pastDueSince"] = this.pastDueSince ? formatDate(this.pastDueSince) : undefined as any; return data; } } @@ -6880,7 +6879,7 @@ export class IndividualVolunteerAssignment implements IIndividualVolunteerAssign if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -6924,12 +6923,12 @@ export class IndividualVolunteerAssignment implements IIndividualVolunteerAssign if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -6955,7 +6954,7 @@ export class FamilyVolunteerAssignment implements IFamilyVolunteerAssignment { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -6997,12 +6996,12 @@ export class FamilyVolunteerAssignment implements IFamilyVolunteerAssignment { if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7028,7 +7027,7 @@ export class ChildLocationHistoryEntry implements IChildLocationHistoryEntry { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -7036,7 +7035,7 @@ export class ChildLocationHistoryEntry implements IChildLocationHistoryEntry { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined; + this.timestampUtc = _data["timestampUtc"] ? new Date(_data["timestampUtc"].toString()) : undefined as any; this.childLocationFamilyId = _data["childLocationFamilyId"]; this.childLocationReceivingAdultId = _data["childLocationReceivingAdultId"]; this.plan = _data["plan"]; @@ -7054,7 +7053,7 @@ export class ChildLocationHistoryEntry implements IChildLocationHistoryEntry { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["userId"] = this.userId; - data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined; + data["timestampUtc"] = this.timestampUtc ? this.timestampUtc.toISOString() : undefined as any; data["childLocationFamilyId"] = this.childLocationFamilyId; data["childLocationReceivingAdultId"] = this.childLocationReceivingAdultId; data["plan"] = this.plan; @@ -7082,7 +7081,7 @@ export class StaffAssignment implements IStaffAssignment { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -7091,7 +7090,7 @@ export class StaffAssignment implements IStaffAssignment { if (_data) { this.personId = _data["personId"]; this.assignmentRole = _data["assignmentRole"]; - this.assignedAtUtc = _data["assignedAtUtc"] ? new Date(_data["assignedAtUtc"].toString()) : undefined; + this.assignedAtUtc = _data["assignedAtUtc"] ? new Date(_data["assignedAtUtc"].toString()) : undefined as any; this.assignedByUserId = _data["assignedByUserId"]; } } @@ -7107,7 +7106,7 @@ export class StaffAssignment implements IStaffAssignment { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; - data["assignedAtUtc"] = this.assignedAtUtc ? this.assignedAtUtc.toISOString() : undefined; + data["assignedAtUtc"] = this.assignedAtUtc ? this.assignedAtUtc.toISOString() : undefined as any; data["assignedByUserId"] = this.assignedByUserId; return data; } @@ -7135,7 +7134,7 @@ export class VolunteerFamilyInfo implements IVolunteerFamilyInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -7157,7 +7156,7 @@ export class VolunteerFamilyInfo implements IVolunteerFamilyInfo { this.familyRoleApprovals = {} as any; for (let key in _data["familyRoleApprovals"]) { if (_data["familyRoleApprovals"].hasOwnProperty(key)) - (this.familyRoleApprovals)![key] = _data["familyRoleApprovals"][key] ? FamilyRoleApprovalStatus.fromJS(_data["familyRoleApprovals"][key]) : new FamilyRoleApprovalStatus(); + (this.familyRoleApprovals as any)![key] = _data["familyRoleApprovals"][key] ? FamilyRoleApprovalStatus.fromJS(_data["familyRoleApprovals"][key]) : new FamilyRoleApprovalStatus(); } } if (Array.isArray(_data["completedRequirements"])) { @@ -7189,7 +7188,7 @@ export class VolunteerFamilyInfo implements IVolunteerFamilyInfo { this.individualVolunteers = {} as any; for (let key in _data["individualVolunteers"]) { if (_data["individualVolunteers"].hasOwnProperty(key)) - (this.individualVolunteers)![key] = _data["individualVolunteers"][key] ? VolunteerInfo.fromJS(_data["individualVolunteers"][key]) : new VolunteerInfo(); + (this.individualVolunteers as any)![key] = _data["individualVolunteers"][key] ? VolunteerInfo.fromJS(_data["individualVolunteers"][key]) : new VolunteerInfo(); } } if (Array.isArray(_data["history"])) { @@ -7218,18 +7217,18 @@ export class VolunteerFamilyInfo implements IVolunteerFamilyInfo { data["familyRoleApprovals"] = {}; for (let key in this.familyRoleApprovals) { if (this.familyRoleApprovals.hasOwnProperty(key)) - (data["familyRoleApprovals"])[key] = this.familyRoleApprovals[key] ? this.familyRoleApprovals[key].toJSON() : undefined; + (data["familyRoleApprovals"] as any)[key] = this.familyRoleApprovals[key] ? this.familyRoleApprovals[key].toJSON() : undefined as any; } } if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.availableApplications)) { data["availableApplications"] = []; @@ -7239,29 +7238,29 @@ export class VolunteerFamilyInfo implements IVolunteerFamilyInfo { if (Array.isArray(this.missingRequirements)) { data["missingRequirements"] = []; for (let item of this.missingRequirements) - data["missingRequirements"].push(item.toJSON()); + data["missingRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.roleRemovals)) { data["roleRemovals"] = []; for (let item of this.roleRemovals) - data["roleRemovals"].push(item.toJSON()); + data["roleRemovals"].push(item ? item.toJSON() : undefined as any); } if (this.individualVolunteers) { data["individualVolunteers"] = {}; for (let key in this.individualVolunteers) { if (this.individualVolunteers.hasOwnProperty(key)) - (data["individualVolunteers"])[key] = this.individualVolunteers[key] ? this.individualVolunteers[key].toJSON() : undefined; + (data["individualVolunteers"] as any)[key] = this.individualVolunteers[key] ? this.individualVolunteers[key].toJSON() : undefined as any; } } if (Array.isArray(this.history)) { data["history"] = []; for (let item of this.history) - data["history"].push(item.toJSON()); + data["history"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.assignments)) { data["assignments"] = []; for (let item of this.assignments) - data["assignments"].push(item.toJSON()); + data["assignments"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7291,7 +7290,7 @@ export class FamilyRoleApprovalStatus implements IFamilyRoleApprovalStatus { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -7304,7 +7303,7 @@ export class FamilyRoleApprovalStatus implements IFamilyRoleApprovalStatus { init(_data?: any) { if (_data) { - this.effectiveRoleApprovalStatus = _data["effectiveRoleApprovalStatus"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["effectiveRoleApprovalStatus"]) : undefined; + this.effectiveRoleApprovalStatus = _data["effectiveRoleApprovalStatus"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["effectiveRoleApprovalStatus"]) : undefined as any; if (Array.isArray(_data["roleVersionApprovals"])) { this.roleVersionApprovals = [] as any; for (let item of _data["roleVersionApprovals"]) @@ -7338,17 +7337,17 @@ export class FamilyRoleApprovalStatus implements IFamilyRoleApprovalStatus { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["effectiveRoleApprovalStatus"] = this.effectiveRoleApprovalStatus ? this.effectiveRoleApprovalStatus.toJSON() : undefined; + data["effectiveRoleApprovalStatus"] = this.effectiveRoleApprovalStatus ? this.effectiveRoleApprovalStatus.toJSON() : undefined as any; if (Array.isArray(this.roleVersionApprovals)) { data["roleVersionApprovals"] = []; for (let item of this.roleVersionApprovals) - data["roleVersionApprovals"].push(item.toJSON()); + data["roleVersionApprovals"].push(item ? item.toJSON() : undefined as any); } data["currentStatus"] = this.currentStatus; if (Array.isArray(this.currentMissingFamilyRequirements)) { data["currentMissingFamilyRequirements"] = []; for (let item of this.currentMissingFamilyRequirements) - data["currentMissingFamilyRequirements"].push(item.toJSON()); + data["currentMissingFamilyRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.currentAvailableFamilyApplications)) { data["currentAvailableFamilyApplications"] = []; @@ -7358,7 +7357,7 @@ export class FamilyRoleApprovalStatus implements IFamilyRoleApprovalStatus { if (Array.isArray(this.currentMissingIndividualRequirements)) { data["currentMissingIndividualRequirements"] = []; for (let item of this.currentMissingIndividualRequirements) - data["currentMissingIndividualRequirements"].push(item.toJSON()); + data["currentMissingIndividualRequirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7380,7 +7379,7 @@ export class DateOnlyTimelineOfRoleApprovalStatus implements IDateOnlyTimelineOf if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -7410,7 +7409,7 @@ export class DateOnlyTimelineOfRoleApprovalStatus implements IDateOnlyTimelineOf if (Array.isArray(this.ranges)) { data["ranges"] = []; for (let item of this.ranges) - data["ranges"].push(item.toJSON()); + data["ranges"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7429,15 +7428,15 @@ export class DateRangeOfRoleApprovalStatus implements IDateRangeOfRoleApprovalSt if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } init(_data?: any) { if (_data) { - this.start = _data["start"] ? new Date(_data["start"].toString()) : undefined; - this.end = _data["end"] ? new Date(_data["end"].toString()) : undefined; + this.start = _data["start"] ? new Date(_data["start"].toString()) : undefined as any; + this.end = _data["end"] ? new Date(_data["end"].toString()) : undefined as any; this.tag = _data["tag"]; } } @@ -7451,8 +7450,8 @@ export class DateRangeOfRoleApprovalStatus implements IDateRangeOfRoleApprovalSt toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["start"] = this.start ? formatDate(this.start) : undefined; - data["end"] = this.end ? formatDate(this.end) : undefined; + data["start"] = this.start ? formatDate(this.start) : undefined as any; + data["end"] = this.end ? formatDate(this.end) : undefined as any; data["tag"] = this.tag; return data; } @@ -7483,7 +7482,7 @@ export class FamilyRoleVersionApprovalStatus implements IFamilyRoleVersionApprov if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -7495,7 +7494,7 @@ export class FamilyRoleVersionApprovalStatus implements IFamilyRoleVersionApprov if (_data) { this.roleName = _data["roleName"]; this.version = _data["version"]; - this.status = _data["status"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["status"]) : undefined; + this.status = _data["status"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["status"]) : undefined as any; if (Array.isArray(_data["requirements"])) { this.requirements = [] as any; for (let item of _data["requirements"]) @@ -7515,11 +7514,11 @@ export class FamilyRoleVersionApprovalStatus implements IFamilyRoleVersionApprov data = typeof data === 'object' ? data : {}; data["roleName"] = this.roleName; data["version"] = this.version; - data["status"] = this.status ? this.status.toJSON() : undefined; + data["status"] = this.status ? this.status.toJSON() : undefined as any; if (Array.isArray(this.requirements)) { data["requirements"] = []; for (let item of this.requirements) - data["requirements"].push(item.toJSON()); + data["requirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7543,7 +7542,7 @@ export class FamilyRoleRequirementCompletionStatus implements IFamilyRoleRequire if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -7556,7 +7555,7 @@ export class FamilyRoleRequirementCompletionStatus implements IFamilyRoleRequire this.actionName = _data["actionName"]; this.stage = _data["stage"]; this.scope = _data["scope"]; - this.whenMet = _data["whenMet"] ? DateOnlyTimeline.fromJS(_data["whenMet"]) : undefined; + this.whenMet = _data["whenMet"] ? DateOnlyTimeline.fromJS(_data["whenMet"]) : undefined as any; if (Array.isArray(_data["statusDetails"])) { this.statusDetails = [] as any; for (let item of _data["statusDetails"]) @@ -7577,11 +7576,11 @@ export class FamilyRoleRequirementCompletionStatus implements IFamilyRoleRequire data["actionName"] = this.actionName; data["stage"] = this.stage; data["scope"] = this.scope; - data["whenMet"] = this.whenMet ? this.whenMet.toJSON() : undefined; + data["whenMet"] = this.whenMet ? this.whenMet.toJSON() : undefined as any; if (Array.isArray(this.statusDetails)) { data["statusDetails"] = []; for (let item of this.statusDetails) - data["statusDetails"].push(item.toJSON()); + data["statusDetails"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7604,7 +7603,7 @@ export class DateOnlyTimeline implements IDateOnlyTimeline { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -7619,8 +7618,8 @@ export class DateOnlyTimeline implements IDateOnlyTimeline { for (let item of _data["ranges"]) this.ranges!.push(DateRange.fromJS(item)); } - this.start = _data["start"] ? new Date(_data["start"].toString()) : undefined; - this.end = _data["end"] ? new Date(_data["end"].toString()) : undefined; + this.start = _data["start"] ? new Date(_data["start"].toString()) : undefined as any; + this.end = _data["end"] ? new Date(_data["end"].toString()) : undefined as any; } } @@ -7636,10 +7635,10 @@ export class DateOnlyTimeline implements IDateOnlyTimeline { if (Array.isArray(this.ranges)) { data["ranges"] = []; for (let item of this.ranges) - data["ranges"].push(item.toJSON()); + data["ranges"].push(item ? item.toJSON() : undefined as any); } - data["start"] = this.start ? formatDate(this.start) : undefined; - data["end"] = this.end ? formatDate(this.end) : undefined; + data["start"] = this.start ? formatDate(this.start) : undefined as any; + data["end"] = this.end ? formatDate(this.end) : undefined as any; return data; } } @@ -7659,15 +7658,15 @@ export class DateRange implements IDateRange { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } init(_data?: any) { if (_data) { - this.start = _data["start"] ? new Date(_data["start"].toString()) : undefined; - this.end = _data["end"] ? new Date(_data["end"].toString()) : undefined; + this.start = _data["start"] ? new Date(_data["start"].toString()) : undefined as any; + this.end = _data["end"] ? new Date(_data["end"].toString()) : undefined as any; this.totalDaysInclusive = _data["totalDaysInclusive"]; } } @@ -7681,8 +7680,8 @@ export class DateRange implements IDateRange { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["start"] = this.start ? formatDate(this.start) : undefined; - data["end"] = this.end ? formatDate(this.end) : undefined; + data["start"] = this.start ? formatDate(this.start) : undefined as any; + data["end"] = this.end ? formatDate(this.end) : undefined as any; data["totalDaysInclusive"] = this.totalDaysInclusive; return data; } @@ -7702,7 +7701,7 @@ export class FamilyRequirementStatusDetail implements IFamilyRequirementStatusDe if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -7710,7 +7709,7 @@ export class FamilyRequirementStatusDetail implements IFamilyRequirementStatusDe init(_data?: any) { if (_data) { this.personId = _data["personId"]; - this.whenMet = _data["whenMet"] ? DateOnlyTimeline.fromJS(_data["whenMet"]) : undefined; + this.whenMet = _data["whenMet"] ? DateOnlyTimeline.fromJS(_data["whenMet"]) : undefined as any; } } @@ -7724,7 +7723,7 @@ export class FamilyRequirementStatusDetail implements IFamilyRequirementStatusDe toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; - data["whenMet"] = this.whenMet ? this.whenMet.toJSON() : undefined; + data["whenMet"] = this.whenMet ? this.whenMet.toJSON() : undefined as any; return data; } } @@ -7742,7 +7741,7 @@ export class ValueTupleOfStringAndValueTuple_2Of implements IValueTupleOfStringA if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -7771,7 +7770,7 @@ export class ValueTupleOfStringAndValueTuple_2Of implements IValueTupleOfStringA if (Array.isArray(this.item2)) { data["item2"] = []; for (let item of this.item2) - data["item2"].push(item.toJSON()); + data["item2"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7790,7 +7789,7 @@ export class ValueTupleOfStringAndString implements IValueTupleOfStringAndString if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -7831,7 +7830,7 @@ export class ValueTupleOfGuidAndStringAndValueTuple_2Of implements IValueTupleOf if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -7862,7 +7861,7 @@ export class ValueTupleOfGuidAndStringAndValueTuple_2Of implements IValueTupleOf if (Array.isArray(this.item3)) { data["item3"] = []; for (let item of this.item3) - data["item3"].push(item.toJSON()); + data["item3"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -7885,7 +7884,7 @@ export class RoleRemoval implements IRoleRemoval { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -7894,8 +7893,8 @@ export class RoleRemoval implements IRoleRemoval { if (_data) { this.roleName = _data["roleName"]; this.reason = _data["reason"]; - this.effectiveSince = _data["effectiveSince"] ? new Date(_data["effectiveSince"].toString()) : undefined; - this.effectiveUntil = _data["effectiveUntil"] ? new Date(_data["effectiveUntil"].toString()) : undefined; + this.effectiveSince = _data["effectiveSince"] ? new Date(_data["effectiveSince"].toString()) : undefined as any; + this.effectiveUntil = _data["effectiveUntil"] ? new Date(_data["effectiveUntil"].toString()) : undefined as any; this.additionalComments = _data["additionalComments"]; } } @@ -7911,8 +7910,8 @@ export class RoleRemoval implements IRoleRemoval { data = typeof data === 'object' ? data : {}; data["roleName"] = this.roleName; data["reason"] = this.reason; - data["effectiveSince"] = this.effectiveSince ? formatDate(this.effectiveSince) : undefined; - data["effectiveUntil"] = this.effectiveUntil ? formatDate(this.effectiveUntil) : undefined; + data["effectiveSince"] = this.effectiveSince ? formatDate(this.effectiveSince) : undefined as any; + data["effectiveUntil"] = this.effectiveUntil ? formatDate(this.effectiveUntil) : undefined as any; data["additionalComments"] = this.additionalComments; return data; } @@ -7944,7 +7943,7 @@ export class VolunteerInfo implements IVolunteerInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -7963,7 +7962,7 @@ export class VolunteerInfo implements IVolunteerInfo { this.approvalStatusByRole = {} as any; for (let key in _data["approvalStatusByRole"]) { if (_data["approvalStatusByRole"].hasOwnProperty(key)) - (this.approvalStatusByRole)![key] = _data["approvalStatusByRole"][key] ? IndividualRoleApprovalStatus.fromJS(_data["approvalStatusByRole"][key]) : new IndividualRoleApprovalStatus(); + (this.approvalStatusByRole as any)![key] = _data["approvalStatusByRole"][key] ? IndividualRoleApprovalStatus.fromJS(_data["approvalStatusByRole"][key]) : new IndividualRoleApprovalStatus(); } } if (Array.isArray(_data["completedRequirements"])) { @@ -8007,18 +8006,18 @@ export class VolunteerInfo implements IVolunteerInfo { data["approvalStatusByRole"] = {}; for (let key in this.approvalStatusByRole) { if (this.approvalStatusByRole.hasOwnProperty(key)) - (data["approvalStatusByRole"])[key] = this.approvalStatusByRole[key] ? this.approvalStatusByRole[key].toJSON() : undefined; + (data["approvalStatusByRole"] as any)[key] = this.approvalStatusByRole[key] ? this.approvalStatusByRole[key].toJSON() : undefined as any; } } if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.availableApplications)) { data["availableApplications"] = []; @@ -8028,12 +8027,12 @@ export class VolunteerInfo implements IVolunteerInfo { if (Array.isArray(this.missingRequirements)) { data["missingRequirements"] = []; for (let item of this.missingRequirements) - data["missingRequirements"].push(item.toJSON()); + data["missingRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.roleRemovals)) { data["roleRemovals"] = []; for (let item of this.roleRemovals) - data["roleRemovals"].push(item.toJSON()); + data["roleRemovals"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -8059,7 +8058,7 @@ export class IndividualRoleApprovalStatus implements IIndividualRoleApprovalStat if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -8071,7 +8070,7 @@ export class IndividualRoleApprovalStatus implements IIndividualRoleApprovalStat init(_data?: any) { if (_data) { - this.effectiveRoleApprovalStatus = _data["effectiveRoleApprovalStatus"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["effectiveRoleApprovalStatus"]) : undefined; + this.effectiveRoleApprovalStatus = _data["effectiveRoleApprovalStatus"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["effectiveRoleApprovalStatus"]) : undefined as any; if (Array.isArray(_data["roleVersionApprovals"])) { this.roleVersionApprovals = [] as any; for (let item of _data["roleVersionApprovals"]) @@ -8100,17 +8099,17 @@ export class IndividualRoleApprovalStatus implements IIndividualRoleApprovalStat toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["effectiveRoleApprovalStatus"] = this.effectiveRoleApprovalStatus ? this.effectiveRoleApprovalStatus.toJSON() : undefined; + data["effectiveRoleApprovalStatus"] = this.effectiveRoleApprovalStatus ? this.effectiveRoleApprovalStatus.toJSON() : undefined as any; if (Array.isArray(this.roleVersionApprovals)) { data["roleVersionApprovals"] = []; for (let item of this.roleVersionApprovals) - data["roleVersionApprovals"].push(item.toJSON()); + data["roleVersionApprovals"].push(item ? item.toJSON() : undefined as any); } data["currentStatus"] = this.currentStatus; if (Array.isArray(this.currentMissingRequirements)) { data["currentMissingRequirements"] = []; for (let item of this.currentMissingRequirements) - data["currentMissingRequirements"].push(item.toJSON()); + data["currentMissingRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.currentAvailableApplications)) { data["currentAvailableApplications"] = []; @@ -8139,7 +8138,7 @@ export class IndividualRoleVersionApprovalStatus implements IIndividualRoleVersi if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -8151,7 +8150,7 @@ export class IndividualRoleVersionApprovalStatus implements IIndividualRoleVersi if (_data) { this.roleName = _data["roleName"]; this.version = _data["version"]; - this.status = _data["status"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["status"]) : undefined; + this.status = _data["status"] ? DateOnlyTimelineOfRoleApprovalStatus.fromJS(_data["status"]) : undefined as any; if (Array.isArray(_data["requirements"])) { this.requirements = [] as any; for (let item of _data["requirements"]) @@ -8171,11 +8170,11 @@ export class IndividualRoleVersionApprovalStatus implements IIndividualRoleVersi data = typeof data === 'object' ? data : {}; data["roleName"] = this.roleName; data["version"] = this.version; - data["status"] = this.status ? this.status.toJSON() : undefined; + data["status"] = this.status ? this.status.toJSON() : undefined as any; if (Array.isArray(this.requirements)) { data["requirements"] = []; for (let item of this.requirements) - data["requirements"].push(item.toJSON()); + data["requirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -8197,7 +8196,7 @@ export class IndividualRoleRequirementCompletionStatus implements IIndividualRol if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -8206,7 +8205,7 @@ export class IndividualRoleRequirementCompletionStatus implements IIndividualRol if (_data) { this.actionName = _data["actionName"]; this.stage = _data["stage"]; - this.whenMet = _data["whenMet"] ? DateOnlyTimeline.fromJS(_data["whenMet"]) : undefined; + this.whenMet = _data["whenMet"] ? DateOnlyTimeline.fromJS(_data["whenMet"]) : undefined as any; } } @@ -8221,7 +8220,7 @@ export class IndividualRoleRequirementCompletionStatus implements IIndividualRol data = typeof data === 'object' ? data : {}; data["actionName"] = this.actionName; data["stage"] = this.stage; - data["whenMet"] = this.whenMet ? this.whenMet.toJSON() : undefined; + data["whenMet"] = this.whenMet ? this.whenMet.toJSON() : undefined as any; return data; } } @@ -8256,7 +8255,7 @@ export class ArrangementEntry implements IArrangementEntry { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -8274,12 +8273,12 @@ export class ArrangementEntry implements IArrangementEntry { this.id = _data["id"]; this.arrangementType = _data["arrangementType"]; this.active = _data["active"]; - this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined; - this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined; - this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined; - this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined; - this.plannedStartUtc = _data["plannedStartUtc"] ? new Date(_data["plannedStartUtc"].toString()) : undefined; - this.plannedEndUtc = _data["plannedEndUtc"] ? new Date(_data["plannedEndUtc"].toString()) : undefined; + this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined as any; + this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined as any; + this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined as any; + this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined as any; + this.plannedStartUtc = _data["plannedStartUtc"] ? new Date(_data["plannedStartUtc"].toString()) : undefined as any; + this.plannedEndUtc = _data["plannedEndUtc"] ? new Date(_data["plannedEndUtc"].toString()) : undefined as any; this.partneringFamilyPersonId = _data["partneringFamilyPersonId"]; if (Array.isArray(_data["completedRequirements"])) { this.completedRequirements = [] as any; @@ -8328,42 +8327,42 @@ export class ArrangementEntry implements IArrangementEntry { data["id"] = this.id; data["arrangementType"] = this.arrangementType; data["active"] = this.active; - data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined; - data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined; - data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined; - data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined; - data["plannedStartUtc"] = this.plannedStartUtc ? this.plannedStartUtc.toISOString() : undefined; - data["plannedEndUtc"] = this.plannedEndUtc ? this.plannedEndUtc.toISOString() : undefined; + data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined as any; + data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined as any; + data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined as any; + data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined as any; + data["plannedStartUtc"] = this.plannedStartUtc ? this.plannedStartUtc.toISOString() : undefined as any; + data["plannedEndUtc"] = this.plannedEndUtc ? this.plannedEndUtc.toISOString() : undefined as any; data["partneringFamilyPersonId"] = this.partneringFamilyPersonId; if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.individualVolunteerAssignments)) { data["individualVolunteerAssignments"] = []; for (let item of this.individualVolunteerAssignments) - data["individualVolunteerAssignments"].push(item.toJSON()); + data["individualVolunteerAssignments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.familyVolunteerAssignments)) { data["familyVolunteerAssignments"] = []; for (let item of this.familyVolunteerAssignments) - data["familyVolunteerAssignments"].push(item.toJSON()); + data["familyVolunteerAssignments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.childLocationHistory)) { data["childLocationHistory"] = []; for (let item of this.childLocationHistory) - data["childLocationHistory"].push(item.toJSON()); + data["childLocationHistory"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.childLocationPlan)) { data["childLocationPlan"] = []; for (let item of this.childLocationPlan) - data["childLocationPlan"].push(item.toJSON()); + data["childLocationPlan"].push(item ? item.toJSON() : undefined as any); } data["comments"] = this.comments; data["reason"] = this.reason; @@ -8412,7 +8411,7 @@ export class Note implements INote { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -8422,16 +8421,16 @@ export class Note implements INote { this.id = _data["id"]; this.authorUserId = _data["authorUserId"]; this.authorPersonId = _data["authorPersonId"]; - this.createdTimestampUtc = _data["createdTimestampUtc"] ? new Date(_data["createdTimestampUtc"].toString()) : undefined; - this.lastEditTimestampUtc = _data["lastEditTimestampUtc"] ? new Date(_data["lastEditTimestampUtc"].toString()) : undefined; - this.approvedTimestampUtc = _data["approvedTimestampUtc"] ? new Date(_data["approvedTimestampUtc"].toString()) : undefined; + this.createdTimestampUtc = _data["createdTimestampUtc"] ? new Date(_data["createdTimestampUtc"].toString()) : undefined as any; + this.lastEditTimestampUtc = _data["lastEditTimestampUtc"] ? new Date(_data["lastEditTimestampUtc"].toString()) : undefined as any; + this.approvedTimestampUtc = _data["approvedTimestampUtc"] ? new Date(_data["approvedTimestampUtc"].toString()) : undefined as any; this.contents = _data["contents"]; this.status = _data["status"]; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; this.approverId = _data["approverId"]; this.isPinned = _data["isPinned"]; - this.pinnedAtUtc = _data["pinnedAtUtc"] ? new Date(_data["pinnedAtUtc"].toString()) : undefined; + this.pinnedAtUtc = _data["pinnedAtUtc"] ? new Date(_data["pinnedAtUtc"].toString()) : undefined as any; this.pinnedByUserId = _data["pinnedByUserId"]; } } @@ -8448,16 +8447,16 @@ export class Note implements INote { data["id"] = this.id; data["authorUserId"] = this.authorUserId; data["authorPersonId"] = this.authorPersonId; - data["createdTimestampUtc"] = this.createdTimestampUtc ? this.createdTimestampUtc.toISOString() : undefined; - data["lastEditTimestampUtc"] = this.lastEditTimestampUtc ? this.lastEditTimestampUtc.toISOString() : undefined; - data["approvedTimestampUtc"] = this.approvedTimestampUtc ? this.approvedTimestampUtc.toISOString() : undefined; + data["createdTimestampUtc"] = this.createdTimestampUtc ? this.createdTimestampUtc.toISOString() : undefined as any; + data["lastEditTimestampUtc"] = this.lastEditTimestampUtc ? this.lastEditTimestampUtc.toISOString() : undefined as any; + data["approvedTimestampUtc"] = this.approvedTimestampUtc ? this.approvedTimestampUtc.toISOString() : undefined as any; data["contents"] = this.contents; data["status"] = this.status; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; data["approverId"] = this.approverId; data["isPinned"] = this.isPinned; - data["pinnedAtUtc"] = this.pinnedAtUtc ? this.pinnedAtUtc.toISOString() : undefined; + data["pinnedAtUtc"] = this.pinnedAtUtc ? this.pinnedAtUtc.toISOString() : undefined as any; data["pinnedByUserId"] = this.pinnedByUserId; return data; } @@ -8496,23 +8495,23 @@ export class ReferralRecordsAggregate extends RecordsAggregate implements IRefer this._discriminator = "ReferralRecordsAggregate"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.referral = _data["referral"] ? V1ReferralInfo.fromJS(_data["referral"]) : new V1ReferralInfo(); } } - static fromJS(data: any): ReferralRecordsAggregate { + static override fromJS(data: any): ReferralRecordsAggregate { data = typeof data === 'object' ? data : {}; let result = new ReferralRecordsAggregate(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["referral"] = this.referral ? this.referral.toJSON() : undefined; + data["referral"] = this.referral ? this.referral.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -8530,7 +8529,7 @@ export class V1ReferralInfo implements IV1ReferralInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -8559,7 +8558,7 @@ export class V1ReferralInfo implements IV1ReferralInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["referral"] = this.referral ? this.referral.toJSON() : undefined; + data["referral"] = this.referral ? this.referral.toJSON() : undefined as any; if (Array.isArray(this.userPermissions)) { data["userPermissions"] = []; for (let item of this.userPermissions) @@ -8598,7 +8597,7 @@ export class V1Referral implements IV1Referral { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -8618,18 +8617,18 @@ export class V1Referral implements IV1Referral { if (_data) { this.referralId = _data["referralId"]; this.familyId = _data["familyId"]; - this.createdAtUtc = _data["createdAtUtc"] ? new Date(_data["createdAtUtc"].toString()) : undefined; + this.createdAtUtc = _data["createdAtUtc"] ? new Date(_data["createdAtUtc"].toString()) : undefined as any; this.title = _data["title"]; this.status = _data["status"]; this.comment = _data["comment"]; - this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined; - this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined; + this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined as any; + this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined as any; this.closeReason = _data["closeReason"]; if (_data["completedCustomFields"]) { this.completedCustomFields = {} as any; for (let key in _data["completedCustomFields"]) { if (_data["completedCustomFields"].hasOwnProperty(key)) - (this.completedCustomFields)![key] = _data["completedCustomFields"][key] ? CompletedCustomFieldInfo.fromJS(_data["completedCustomFields"][key]) : new CompletedCustomFieldInfo(); + (this.completedCustomFields as any)![key] = _data["completedCustomFields"][key] ? CompletedCustomFieldInfo.fromJS(_data["completedCustomFields"][key]) : new CompletedCustomFieldInfo(); } } if (Array.isArray(_data["completedRequirements"])) { @@ -8686,34 +8685,34 @@ export class V1Referral implements IV1Referral { data = typeof data === 'object' ? data : {}; data["referralId"] = this.referralId; data["familyId"] = this.familyId; - data["createdAtUtc"] = this.createdAtUtc ? this.createdAtUtc.toISOString() : undefined; + data["createdAtUtc"] = this.createdAtUtc ? this.createdAtUtc.toISOString() : undefined as any; data["title"] = this.title; data["status"] = this.status; data["comment"] = this.comment; - data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined; - data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined; + data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined as any; + data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined as any; data["closeReason"] = this.closeReason; if (this.completedCustomFields) { data["completedCustomFields"] = {}; for (let key in this.completedCustomFields) { if (this.completedCustomFields.hasOwnProperty(key)) - (data["completedCustomFields"])[key] = this.completedCustomFields[key] ? this.completedCustomFields[key].toJSON() : undefined; + (data["completedCustomFields"] as any)[key] = this.completedCustomFields[key] ? this.completedCustomFields[key].toJSON() : undefined as any; } } if (Array.isArray(this.completedRequirements)) { data["completedRequirements"] = []; for (let item of this.completedRequirements) - data["completedRequirements"].push(item.toJSON()); + data["completedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.exemptedRequirements)) { data["exemptedRequirements"] = []; for (let item of this.exemptedRequirements) - data["exemptedRequirements"].push(item.toJSON()); + data["exemptedRequirements"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.uploadedDocuments)) { data["uploadedDocuments"] = []; for (let item of this.uploadedDocuments) - data["uploadedDocuments"].push(item.toJSON()); + data["uploadedDocuments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.deletedDocuments)) { data["deletedDocuments"] = []; @@ -8723,22 +8722,22 @@ export class V1Referral implements IV1Referral { if (Array.isArray(this.staffAssignments)) { data["staffAssignments"] = []; for (let item of this.staffAssignments) - data["staffAssignments"].push(item.toJSON()); + data["staffAssignments"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.history)) { data["history"] = []; for (let item of this.history) - data["history"].push(item.toJSON()); + data["history"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.notes)) { data["notes"] = []; for (let item of this.notes) - data["notes"].push(item.toJSON()); + data["notes"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.missingIntakeRequirements)) { data["missingIntakeRequirements"] = []; for (let item of this.missingIntakeRequirements) - data["missingIntakeRequirements"].push(item.toJSON()); + data["missingIntakeRequirements"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -8788,7 +8787,7 @@ export class V1ReferralNoteEntry implements IV1ReferralNoteEntry { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -8798,13 +8797,13 @@ export class V1ReferralNoteEntry implements IV1ReferralNoteEntry { this.id = _data["id"]; this.referralId = _data["referralId"]; this.authorId = _data["authorId"]; - this.createdTimestampUtc = _data["createdTimestampUtc"] ? new Date(_data["createdTimestampUtc"].toString()) : undefined; - this.lastEditTimestampUtc = _data["lastEditTimestampUtc"] ? new Date(_data["lastEditTimestampUtc"].toString()) : undefined; + this.createdTimestampUtc = _data["createdTimestampUtc"] ? new Date(_data["createdTimestampUtc"].toString()) : undefined as any; + this.lastEditTimestampUtc = _data["lastEditTimestampUtc"] ? new Date(_data["lastEditTimestampUtc"].toString()) : undefined as any; this.status = _data["status"]; this.contents = _data["contents"]; this.approverId = _data["approverId"]; - this.approvedTimestampUtc = _data["approvedTimestampUtc"] ? new Date(_data["approvedTimestampUtc"].toString()) : undefined; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.approvedTimestampUtc = _data["approvedTimestampUtc"] ? new Date(_data["approvedTimestampUtc"].toString()) : undefined as any; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; } } @@ -8821,13 +8820,13 @@ export class V1ReferralNoteEntry implements IV1ReferralNoteEntry { data["id"] = this.id; data["referralId"] = this.referralId; data["authorId"] = this.authorId; - data["createdTimestampUtc"] = this.createdTimestampUtc ? this.createdTimestampUtc.toISOString() : undefined; - data["lastEditTimestampUtc"] = this.lastEditTimestampUtc ? this.lastEditTimestampUtc.toISOString() : undefined; + data["createdTimestampUtc"] = this.createdTimestampUtc ? this.createdTimestampUtc.toISOString() : undefined as any; + data["lastEditTimestampUtc"] = this.lastEditTimestampUtc ? this.lastEditTimestampUtc.toISOString() : undefined as any; data["status"] = this.status; data["contents"] = this.contents; data["approverId"] = this.approverId; - data["approvedTimestampUtc"] = this.approvedTimestampUtc ? this.approvedTimestampUtc.toISOString() : undefined; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["approvedTimestampUtc"] = this.approvedTimestampUtc ? this.approvedTimestampUtc.toISOString() : undefined as any; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; return data; } @@ -8860,7 +8859,7 @@ export abstract class AtomicRecordsCommand implements IAtomicRecordsCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "AtomicRecordsCommand"; @@ -8942,23 +8941,23 @@ export class ArrangementRecordsCommand extends AtomicRecordsCommand implements I this._discriminator = "ArrangementRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? ArrangementsCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? ArrangementsCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): ArrangementRecordsCommand { + static override fromJS(data: any): ArrangementRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new ArrangementRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -8979,7 +8978,7 @@ export abstract class ArrangementsCommand implements IArrangementsCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -9206,7 +9205,7 @@ export class AssignIndividualVolunteer extends ArrangementsCommand implements IA this._discriminator = "AssignIndividualVolunteer"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.volunteerFamilyId = _data["volunteerFamilyId"]; @@ -9216,14 +9215,14 @@ export class AssignIndividualVolunteer extends ArrangementsCommand implements IA } } - static fromJS(data: any): AssignIndividualVolunteer { + static override fromJS(data: any): AssignIndividualVolunteer { data = typeof data === 'object' ? data : {}; let result = new AssignIndividualVolunteer(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["volunteerFamilyId"] = this.volunteerFamilyId; data["personId"] = this.personId; @@ -9251,7 +9250,7 @@ export class AssignVolunteerFamily extends ArrangementsCommand implements IAssig this._discriminator = "AssignVolunteerFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.volunteerFamilyId = _data["volunteerFamilyId"]; @@ -9260,14 +9259,14 @@ export class AssignVolunteerFamily extends ArrangementsCommand implements IAssig } } - static fromJS(data: any): AssignVolunteerFamily { + static override fromJS(data: any): AssignVolunteerFamily { data = typeof data === 'object' ? data : {}; let result = new AssignVolunteerFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["volunteerFamilyId"] = this.volunteerFamilyId; data["arrangementFunction"] = this.arrangementFunction; @@ -9291,23 +9290,23 @@ export class CancelArrangementsSetup extends ArrangementsCommand implements ICan this._discriminator = "CancelArrangementsSetup"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined; + this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): CancelArrangementsSetup { + static override fromJS(data: any): CancelArrangementsSetup { data = typeof data === 'object' ? data : {}; let result = new CancelArrangementsSetup(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined; + data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9329,29 +9328,29 @@ export class CompleteArrangementRequirement extends ArrangementsCommand implemen this._discriminator = "CompleteArrangementRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): CompleteArrangementRequirement { + static override fromJS(data: any): CompleteArrangementRequirement { data = typeof data === 'object' ? data : {}; let result = new CompleteArrangementRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; super.toJSON(data); @@ -9383,7 +9382,7 @@ export class CompleteIndividualVolunteerAssignmentRequirement extends Arrangemen this._discriminator = "CompleteIndividualVolunteerAssignmentRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -9392,20 +9391,20 @@ export class CompleteIndividualVolunteerAssignmentRequirement extends Arrangemen this.personId = _data["personId"]; this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): CompleteIndividualVolunteerAssignmentRequirement { + static override fromJS(data: any): CompleteIndividualVolunteerAssignmentRequirement { data = typeof data === 'object' ? data : {}; let result = new CompleteIndividualVolunteerAssignmentRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; @@ -9413,7 +9412,7 @@ export class CompleteIndividualVolunteerAssignmentRequirement extends Arrangemen data["personId"] = this.personId; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; super.toJSON(data); @@ -9448,7 +9447,7 @@ export class CompleteVolunteerFamilyAssignmentRequirement extends ArrangementsCo this._discriminator = "CompleteVolunteerFamilyAssignmentRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -9456,27 +9455,27 @@ export class CompleteVolunteerFamilyAssignmentRequirement extends ArrangementsCo this.volunteerFamilyId = _data["volunteerFamilyId"]; this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): CompleteVolunteerFamilyAssignmentRequirement { + static override fromJS(data: any): CompleteVolunteerFamilyAssignmentRequirement { data = typeof data === 'object' ? data : {}; let result = new CompleteVolunteerFamilyAssignmentRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; data["volunteerFamilyId"] = this.volunteerFamilyId; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; super.toJSON(data); @@ -9506,27 +9505,27 @@ export class CreateArrangement extends ArrangementsCommand implements ICreateArr this._discriminator = "CreateArrangement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementType = _data["arrangementType"]; - this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined; + this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined as any; this.partneringFamilyPersonId = _data["partneringFamilyPersonId"]; this.reason = _data["reason"]; } } - static fromJS(data: any): CreateArrangement { + static override fromJS(data: any): CreateArrangement { data = typeof data === 'object' ? data : {}; let result = new CreateArrangement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementType"] = this.arrangementType; - data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined; + data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined as any; data["partneringFamilyPersonId"] = this.partneringFamilyPersonId; data["reason"] = this.reason; super.toJSON(data); @@ -9548,18 +9547,18 @@ export class DeleteArrangements extends ArrangementsCommand implements IDeleteAr this._discriminator = "DeleteArrangements"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): DeleteArrangements { + static override fromJS(data: any): DeleteArrangements { data = typeof data === 'object' ? data : {}; let result = new DeleteArrangements(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -9580,26 +9579,26 @@ export class DeleteChildLocationChange extends ArrangementsCommand implements ID this._discriminator = "DeleteChildLocationChange"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.changedAtUtc = _data["changedAtUtc"] ? new Date(_data["changedAtUtc"].toString()) : undefined; + this.changedAtUtc = _data["changedAtUtc"] ? new Date(_data["changedAtUtc"].toString()) : undefined as any; this.childLocationFamilyId = _data["childLocationFamilyId"]; this.childLocationReceivingAdultId = _data["childLocationReceivingAdultId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): DeleteChildLocationChange { + static override fromJS(data: any): DeleteChildLocationChange { data = typeof data === 'object' ? data : {}; let result = new DeleteChildLocationChange(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["changedAtUtc"] = this.changedAtUtc ? this.changedAtUtc.toISOString() : undefined; + data["changedAtUtc"] = this.changedAtUtc ? this.changedAtUtc.toISOString() : undefined as any; data["childLocationFamilyId"] = this.childLocationFamilyId; data["childLocationReceivingAdultId"] = this.childLocationReceivingAdultId; data["noteId"] = this.noteId; @@ -9625,25 +9624,25 @@ export class DeletePlannedChildLocationChange extends ArrangementsCommand implem this._discriminator = "DeletePlannedChildLocationChange"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.plannedChangeUtc = _data["plannedChangeUtc"] ? new Date(_data["plannedChangeUtc"].toString()) : undefined; + this.plannedChangeUtc = _data["plannedChangeUtc"] ? new Date(_data["plannedChangeUtc"].toString()) : undefined as any; this.childLocationFamilyId = _data["childLocationFamilyId"]; this.childLocationReceivingAdultId = _data["childLocationReceivingAdultId"]; } } - static fromJS(data: any): DeletePlannedChildLocationChange { + static override fromJS(data: any): DeletePlannedChildLocationChange { data = typeof data === 'object' ? data : {}; let result = new DeletePlannedChildLocationChange(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["plannedChangeUtc"] = this.plannedChangeUtc ? this.plannedChangeUtc.toISOString() : undefined; + data["plannedChangeUtc"] = this.plannedChangeUtc ? this.plannedChangeUtc.toISOString() : undefined as any; data["childLocationFamilyId"] = this.childLocationFamilyId; data["childLocationReceivingAdultId"] = this.childLocationReceivingAdultId; super.toJSON(data); @@ -9665,23 +9664,23 @@ export class EditArrangementCancelledAt extends ArrangementsCommand implements I this._discriminator = "EditArrangementCancelledAt"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined; + this.cancelledAtUtc = _data["cancelledAtUtc"] ? new Date(_data["cancelledAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): EditArrangementCancelledAt { + static override fromJS(data: any): EditArrangementCancelledAt { data = typeof data === 'object' ? data : {}; let result = new EditArrangementCancelledAt(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined; + data["cancelledAtUtc"] = this.cancelledAtUtc ? this.cancelledAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9699,23 +9698,23 @@ export class EditArrangementEndTime extends ArrangementsCommand implements IEdit this._discriminator = "EditArrangementEndTime"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined; + this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): EditArrangementEndTime { + static override fromJS(data: any): EditArrangementEndTime { data = typeof data === 'object' ? data : {}; let result = new EditArrangementEndTime(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined; + data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9733,21 +9732,21 @@ export class EditArrangementReason extends ArrangementsCommand implements IEditA this._discriminator = "EditArrangementReason"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.reason = _data["reason"]; } } - static fromJS(data: any): EditArrangementReason { + static override fromJS(data: any): EditArrangementReason { data = typeof data === 'object' ? data : {}; let result = new EditArrangementReason(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["reason"] = this.reason; super.toJSON(data); @@ -9767,23 +9766,23 @@ export class EditArrangementRequestedAt extends ArrangementsCommand implements I this._discriminator = "EditArrangementRequestedAt"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined; + this.requestedAtUtc = _data["requestedAtUtc"] ? new Date(_data["requestedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): EditArrangementRequestedAt { + static override fromJS(data: any): EditArrangementRequestedAt { data = typeof data === 'object' ? data : {}; let result = new EditArrangementRequestedAt(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined; + data["requestedAtUtc"] = this.requestedAtUtc ? this.requestedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9801,23 +9800,23 @@ export class EditArrangementStartTime extends ArrangementsCommand implements IEd this._discriminator = "EditArrangementStartTime"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined; + this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): EditArrangementStartTime { + static override fromJS(data: any): EditArrangementStartTime { data = typeof data === 'object' ? data : {}; let result = new EditArrangementStartTime(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined; + data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9835,23 +9834,23 @@ export class EndArrangements extends ArrangementsCommand implements IEndArrangem this._discriminator = "EndArrangements"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined; + this.endedAtUtc = _data["endedAtUtc"] ? new Date(_data["endedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): EndArrangements { + static override fromJS(data: any): EndArrangements { data = typeof data === 'object' ? data : {}; let result = new EndArrangements(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined; + data["endedAtUtc"] = this.endedAtUtc ? this.endedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9872,29 +9871,29 @@ export class ExemptArrangementRequirement extends ArrangementsCommand implements this._discriminator = "ExemptArrangementRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; - this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined; + this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined as any; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ExemptArrangementRequirement { + static override fromJS(data: any): ExemptArrangementRequirement { data = typeof data === 'object' ? data : {}; let result = new ExemptArrangementRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; - data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined; + data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined as any; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9922,7 +9921,7 @@ export class ExemptIndividualVolunteerAssignmentRequirement extends Arrangements this._discriminator = "ExemptIndividualVolunteerAssignmentRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -9930,29 +9929,29 @@ export class ExemptIndividualVolunteerAssignmentRequirement extends Arrangements this.volunteerFamilyId = _data["volunteerFamilyId"]; this.personId = _data["personId"]; this.requirementName = _data["requirementName"]; - this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined; + this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined as any; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ExemptIndividualVolunteerAssignmentRequirement { + static override fromJS(data: any): ExemptIndividualVolunteerAssignmentRequirement { data = typeof data === 'object' ? data : {}; let result = new ExemptIndividualVolunteerAssignmentRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; data["volunteerFamilyId"] = this.volunteerFamilyId; data["personId"] = this.personId; data["requirementName"] = this.requirementName; - data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined; + data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined as any; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -9984,7 +9983,7 @@ export class ExemptVolunteerFamilyAssignmentRequirement extends ArrangementsComm this._discriminator = "ExemptVolunteerFamilyAssignmentRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -9992,29 +9991,29 @@ export class ExemptVolunteerFamilyAssignmentRequirement extends ArrangementsComm this.volunteerFamilyId = _data["volunteerFamilyId"]; this.personId = _data["personId"]; this.requirementName = _data["requirementName"]; - this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined; + this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined as any; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ExemptVolunteerFamilyAssignmentRequirement { + static override fromJS(data: any): ExemptVolunteerFamilyAssignmentRequirement { data = typeof data === 'object' ? data : {}; let result = new ExemptVolunteerFamilyAssignmentRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; data["volunteerFamilyId"] = this.volunteerFamilyId; data["personId"] = this.personId; data["requirementName"] = this.requirementName; - data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined; + data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined as any; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -10040,7 +10039,7 @@ export class MarkArrangementRequirementIncomplete extends ArrangementsCommand im this._discriminator = "MarkArrangementRequirementIncomplete"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; @@ -10048,14 +10047,14 @@ export class MarkArrangementRequirementIncomplete extends ArrangementsCommand im } } - static fromJS(data: any): MarkArrangementRequirementIncomplete { + static override fromJS(data: any): MarkArrangementRequirementIncomplete { data = typeof data === 'object' ? data : {}; let result = new MarkArrangementRequirementIncomplete(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; @@ -10082,7 +10081,7 @@ export class MarkIndividualVolunteerAssignmentRequirementIncomplete extends Arra this._discriminator = "MarkIndividualVolunteerAssignmentRequirementIncomplete"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -10094,14 +10093,14 @@ export class MarkIndividualVolunteerAssignmentRequirementIncomplete extends Arra } } - static fromJS(data: any): MarkIndividualVolunteerAssignmentRequirementIncomplete { + static override fromJS(data: any): MarkIndividualVolunteerAssignmentRequirementIncomplete { data = typeof data === 'object' ? data : {}; let result = new MarkIndividualVolunteerAssignmentRequirementIncomplete(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; @@ -10135,7 +10134,7 @@ export class MarkVolunteerFamilyAssignmentRequirementIncomplete extends Arrangem this._discriminator = "MarkVolunteerFamilyAssignmentRequirementIncomplete"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -10146,14 +10145,14 @@ export class MarkVolunteerFamilyAssignmentRequirementIncomplete extends Arrangem } } - static fromJS(data: any): MarkVolunteerFamilyAssignmentRequirementIncomplete { + static override fromJS(data: any): MarkVolunteerFamilyAssignmentRequirementIncomplete { data = typeof data === 'object' ? data : {}; let result = new MarkVolunteerFamilyAssignmentRequirementIncomplete(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; @@ -10181,23 +10180,23 @@ export class PlanArrangementEnd extends ArrangementsCommand implements IPlanArra this._discriminator = "PlanArrangementEnd"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.plannedEndUtc = _data["plannedEndUtc"] ? new Date(_data["plannedEndUtc"].toString()) : undefined; + this.plannedEndUtc = _data["plannedEndUtc"] ? new Date(_data["plannedEndUtc"].toString()) : undefined as any; } } - static fromJS(data: any): PlanArrangementEnd { + static override fromJS(data: any): PlanArrangementEnd { data = typeof data === 'object' ? data : {}; let result = new PlanArrangementEnd(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["plannedEndUtc"] = this.plannedEndUtc ? this.plannedEndUtc.toISOString() : undefined; + data["plannedEndUtc"] = this.plannedEndUtc ? this.plannedEndUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -10215,23 +10214,23 @@ export class PlanArrangementStart extends ArrangementsCommand implements IPlanAr this._discriminator = "PlanArrangementStart"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.plannedStartUtc = _data["plannedStartUtc"] ? new Date(_data["plannedStartUtc"].toString()) : undefined; + this.plannedStartUtc = _data["plannedStartUtc"] ? new Date(_data["plannedStartUtc"].toString()) : undefined as any; } } - static fromJS(data: any): PlanArrangementStart { + static override fromJS(data: any): PlanArrangementStart { data = typeof data === 'object' ? data : {}; let result = new PlanArrangementStart(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["plannedStartUtc"] = this.plannedStartUtc ? this.plannedStartUtc.toISOString() : undefined; + data["plannedStartUtc"] = this.plannedStartUtc ? this.plannedStartUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -10252,26 +10251,26 @@ export class PlanChildLocationChange extends ArrangementsCommand implements IPla this._discriminator = "PlanChildLocationChange"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.plannedChangeUtc = _data["plannedChangeUtc"] ? new Date(_data["plannedChangeUtc"].toString()) : undefined; + this.plannedChangeUtc = _data["plannedChangeUtc"] ? new Date(_data["plannedChangeUtc"].toString()) : undefined as any; this.childLocationFamilyId = _data["childLocationFamilyId"]; this.childLocationReceivingAdultId = _data["childLocationReceivingAdultId"]; this.plan = _data["plan"]; } } - static fromJS(data: any): PlanChildLocationChange { + static override fromJS(data: any): PlanChildLocationChange { data = typeof data === 'object' ? data : {}; let result = new PlanChildLocationChange(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["plannedChangeUtc"] = this.plannedChangeUtc ? this.plannedChangeUtc.toISOString() : undefined; + data["plannedChangeUtc"] = this.plannedChangeUtc ? this.plannedChangeUtc.toISOString() : undefined as any; data["childLocationFamilyId"] = this.childLocationFamilyId; data["childLocationReceivingAdultId"] = this.childLocationReceivingAdultId; data["plan"] = this.plan; @@ -10295,21 +10294,21 @@ export class ReopenArrangements extends ArrangementsCommand implements IReopenAr this._discriminator = "ReopenArrangements"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.noteId = _data["noteId"]; } } - static fromJS(data: any): ReopenArrangements { + static override fromJS(data: any): ReopenArrangements { data = typeof data === 'object' ? data : {}; let result = new ReopenArrangements(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["noteId"] = this.noteId; super.toJSON(data); @@ -10329,23 +10328,23 @@ export class StartArrangements extends ArrangementsCommand implements IStartArra this._discriminator = "StartArrangements"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined; + this.startedAtUtc = _data["startedAtUtc"] ? new Date(_data["startedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): StartArrangements { + static override fromJS(data: any): StartArrangements { data = typeof data === 'object' ? data : {}; let result = new StartArrangements(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined; + data["startedAtUtc"] = this.startedAtUtc ? this.startedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -10367,10 +10366,10 @@ export class TrackChildLocationChange extends ArrangementsCommand implements ITr this._discriminator = "TrackChildLocationChange"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.changedAtUtc = _data["changedAtUtc"] ? new Date(_data["changedAtUtc"].toString()) : undefined; + this.changedAtUtc = _data["changedAtUtc"] ? new Date(_data["changedAtUtc"].toString()) : undefined as any; this.childLocationFamilyId = _data["childLocationFamilyId"]; this.childLocationReceivingAdultId = _data["childLocationReceivingAdultId"]; this.plan = _data["plan"]; @@ -10378,16 +10377,16 @@ export class TrackChildLocationChange extends ArrangementsCommand implements ITr } } - static fromJS(data: any): TrackChildLocationChange { + static override fromJS(data: any): TrackChildLocationChange { data = typeof data === 'object' ? data : {}; let result = new TrackChildLocationChange(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["changedAtUtc"] = this.changedAtUtc ? this.changedAtUtc.toISOString() : undefined; + data["changedAtUtc"] = this.changedAtUtc ? this.changedAtUtc.toISOString() : undefined as any; data["childLocationFamilyId"] = this.childLocationFamilyId; data["childLocationReceivingAdultId"] = this.childLocationReceivingAdultId; data["plan"] = this.plan; @@ -10416,7 +10415,7 @@ export class UnassignIndividualVolunteer extends ArrangementsCommand implements this._discriminator = "UnassignIndividualVolunteer"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.volunteerFamilyId = _data["volunteerFamilyId"]; @@ -10426,14 +10425,14 @@ export class UnassignIndividualVolunteer extends ArrangementsCommand implements } } - static fromJS(data: any): UnassignIndividualVolunteer { + static override fromJS(data: any): UnassignIndividualVolunteer { data = typeof data === 'object' ? data : {}; let result = new UnassignIndividualVolunteer(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["volunteerFamilyId"] = this.volunteerFamilyId; data["personId"] = this.personId; @@ -10461,7 +10460,7 @@ export class UnassignVolunteerFamily extends ArrangementsCommand implements IUna this._discriminator = "UnassignVolunteerFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.volunteerFamilyId = _data["volunteerFamilyId"]; @@ -10470,14 +10469,14 @@ export class UnassignVolunteerFamily extends ArrangementsCommand implements IUna } } - static fromJS(data: any): UnassignVolunteerFamily { + static override fromJS(data: any): UnassignVolunteerFamily { data = typeof data === 'object' ? data : {}; let result = new UnassignVolunteerFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["volunteerFamilyId"] = this.volunteerFamilyId; data["arrangementFunction"] = this.arrangementFunction; @@ -10502,25 +10501,25 @@ export class UnexemptArrangementRequirement extends ArrangementsCommand implemen this._discriminator = "UnexemptArrangementRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; - this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined; + this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined as any; } } - static fromJS(data: any): UnexemptArrangementRequirement { + static override fromJS(data: any): UnexemptArrangementRequirement { data = typeof data === 'object' ? data : {}; let result = new UnexemptArrangementRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; - data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined; + data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -10544,7 +10543,7 @@ export class UnexemptIndividualVolunteerAssignmentRequirement extends Arrangemen this._discriminator = "UnexemptIndividualVolunteerAssignmentRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -10552,25 +10551,25 @@ export class UnexemptIndividualVolunteerAssignmentRequirement extends Arrangemen this.volunteerFamilyId = _data["volunteerFamilyId"]; this.personId = _data["personId"]; this.requirementName = _data["requirementName"]; - this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined; + this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined as any; } } - static fromJS(data: any): UnexemptIndividualVolunteerAssignmentRequirement { + static override fromJS(data: any): UnexemptIndividualVolunteerAssignmentRequirement { data = typeof data === 'object' ? data : {}; let result = new UnexemptIndividualVolunteerAssignmentRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; data["volunteerFamilyId"] = this.volunteerFamilyId; data["personId"] = this.personId; data["requirementName"] = this.requirementName; - data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined; + data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -10598,7 +10597,7 @@ export class UnexemptVolunteerFamilyAssignmentRequirement extends ArrangementsCo this._discriminator = "UnexemptVolunteerFamilyAssignmentRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.arrangementFunction = _data["arrangementFunction"]; @@ -10606,25 +10605,25 @@ export class UnexemptVolunteerFamilyAssignmentRequirement extends ArrangementsCo this.volunteerFamilyId = _data["volunteerFamilyId"]; this.personId = _data["personId"]; this.requirementName = _data["requirementName"]; - this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined; + this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined as any; } } - static fromJS(data: any): UnexemptVolunteerFamilyAssignmentRequirement { + static override fromJS(data: any): UnexemptVolunteerFamilyAssignmentRequirement { data = typeof data === 'object' ? data : {}; let result = new UnexemptVolunteerFamilyAssignmentRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["arrangementFunction"] = this.arrangementFunction; data["arrangementFunctionVariant"] = this.arrangementFunctionVariant; data["volunteerFamilyId"] = this.volunteerFamilyId; data["personId"] = this.personId; data["requirementName"] = this.requirementName; - data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined; + data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -10647,21 +10646,21 @@ export class UpdateArrangementComments extends ArrangementsCommand implements IU this._discriminator = "UpdateArrangementComments"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.comments = _data["comments"]; } } - static fromJS(data: any): UpdateArrangementComments { + static override fromJS(data: any): UpdateArrangementComments { data = typeof data === 'object' ? data : {}; let result = new UpdateArrangementComments(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["comments"] = this.comments; super.toJSON(data); @@ -10681,23 +10680,23 @@ export class CommunityRecordsCommand extends AtomicRecordsCommand implements ICo this._discriminator = "CommunityRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? CommunityCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? CommunityCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): CommunityRecordsCommand { + static override fromJS(data: any): CommunityRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new CommunityRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -10716,7 +10715,7 @@ export abstract class CommunityCommand implements ICommunityCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "CommunityCommand"; @@ -10798,21 +10797,21 @@ export class AddCommunityMemberFamily extends CommunityCommand implements IAddCo this._discriminator = "AddCommunityMemberFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.familyId = _data["familyId"]; } } - static fromJS(data: any): AddCommunityMemberFamily { + static override fromJS(data: any): AddCommunityMemberFamily { data = typeof data === 'object' ? data : {}; let result = new AddCommunityMemberFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["familyId"] = this.familyId; super.toJSON(data); @@ -10833,7 +10832,7 @@ export class AddCommunityRoleAssignment extends CommunityCommand implements IAdd this._discriminator = "AddCommunityRoleAssignment"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -10841,14 +10840,14 @@ export class AddCommunityRoleAssignment extends CommunityCommand implements IAdd } } - static fromJS(data: any): AddCommunityRoleAssignment { + static override fromJS(data: any): AddCommunityRoleAssignment { data = typeof data === 'object' ? data : {}; let result = new AddCommunityRoleAssignment(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["communityRole"] = this.communityRole; @@ -10871,7 +10870,7 @@ export class CreateCommunity extends CommunityCommand implements ICreateCommunit this._discriminator = "CreateCommunity"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.name = _data["name"]; @@ -10879,14 +10878,14 @@ export class CreateCommunity extends CommunityCommand implements ICreateCommunit } } - static fromJS(data: any): CreateCommunity { + static override fromJS(data: any): CreateCommunity { data = typeof data === 'object' ? data : {}; let result = new CreateCommunity(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["name"] = this.name; data["description"] = this.description; @@ -10908,21 +10907,21 @@ export class DeleteUploadedCommunityDocument extends CommunityCommand implements this._discriminator = "DeleteUploadedCommunityDocument"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.uploadedDocumentId = _data["uploadedDocumentId"]; } } - static fromJS(data: any): DeleteUploadedCommunityDocument { + static override fromJS(data: any): DeleteUploadedCommunityDocument { data = typeof data === 'object' ? data : {}; let result = new DeleteUploadedCommunityDocument(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["uploadedDocumentId"] = this.uploadedDocumentId; super.toJSON(data); @@ -10942,21 +10941,21 @@ export class EditCommunityDescription extends CommunityCommand implements IEditC this._discriminator = "EditCommunityDescription"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.description = _data["description"]; } } - static fromJS(data: any): EditCommunityDescription { + static override fromJS(data: any): EditCommunityDescription { data = typeof data === 'object' ? data : {}; let result = new EditCommunityDescription(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["description"] = this.description; super.toJSON(data); @@ -10976,21 +10975,21 @@ export class RemoveCommunityMemberFamily extends CommunityCommand implements IRe this._discriminator = "RemoveCommunityMemberFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.familyId = _data["familyId"]; } } - static fromJS(data: any): RemoveCommunityMemberFamily { + static override fromJS(data: any): RemoveCommunityMemberFamily { data = typeof data === 'object' ? data : {}; let result = new RemoveCommunityMemberFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["familyId"] = this.familyId; super.toJSON(data); @@ -11011,7 +11010,7 @@ export class RemoveCommunityRoleAssignment extends CommunityCommand implements I this._discriminator = "RemoveCommunityRoleAssignment"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -11019,14 +11018,14 @@ export class RemoveCommunityRoleAssignment extends CommunityCommand implements I } } - static fromJS(data: any): RemoveCommunityRoleAssignment { + static override fromJS(data: any): RemoveCommunityRoleAssignment { data = typeof data === 'object' ? data : {}; let result = new RemoveCommunityRoleAssignment(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["communityRole"] = this.communityRole; @@ -11048,21 +11047,21 @@ export class RenameCommunity extends CommunityCommand implements IRenameCommunit this._discriminator = "RenameCommunity"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.name = _data["name"]; } } - static fromJS(data: any): RenameCommunity { + static override fromJS(data: any): RenameCommunity { data = typeof data === 'object' ? data : {}; let result = new RenameCommunity(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["name"] = this.name; super.toJSON(data); @@ -11083,7 +11082,7 @@ export class UploadCommunityDocument extends CommunityCommand implements IUpload this._discriminator = "UploadCommunityDocument"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.uploadedDocumentId = _data["uploadedDocumentId"]; @@ -11091,14 +11090,14 @@ export class UploadCommunityDocument extends CommunityCommand implements IUpload } } - static fromJS(data: any): UploadCommunityDocument { + static override fromJS(data: any): UploadCommunityDocument { data = typeof data === 'object' ? data : {}; let result = new UploadCommunityDocument(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["uploadedDocumentId"] = this.uploadedDocumentId; data["uploadedFileName"] = this.uploadedFileName; @@ -11120,23 +11119,23 @@ export class FamilyApprovalRecordsCommand extends AtomicRecordsCommand implement this._discriminator = "FamilyApprovalRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? VolunteerFamilyCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? VolunteerFamilyCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): FamilyApprovalRecordsCommand { + static override fromJS(data: any): FamilyApprovalRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new FamilyApprovalRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -11155,7 +11154,7 @@ export abstract class VolunteerFamilyCommand implements IVolunteerFamilyCommand if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "VolunteerFamilyCommand"; @@ -11231,18 +11230,18 @@ export class ActivateVolunteerFamily extends VolunteerFamilyCommand implements I this._discriminator = "ActivateVolunteerFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): ActivateVolunteerFamily { + static override fromJS(data: any): ActivateVolunteerFamily { data = typeof data === 'object' ? data : {}; let result = new ActivateVolunteerFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -11264,29 +11263,29 @@ export class CompleteVolunteerFamilyRequirement extends VolunteerFamilyCommand i this._discriminator = "CompleteVolunteerFamilyRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): CompleteVolunteerFamilyRequirement { + static override fromJS(data: any): CompleteVolunteerFamilyRequirement { data = typeof data === 'object' ? data : {}; let result = new CompleteVolunteerFamilyRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; super.toJSON(data); @@ -11312,27 +11311,27 @@ export class ExemptVolunteerFamilyRequirement extends VolunteerFamilyCommand imp this._discriminator = "ExemptVolunteerFamilyRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ExemptVolunteerFamilyRequirement { + static override fromJS(data: any): ExemptVolunteerFamilyRequirement { data = typeof data === 'object' ? data : {}; let result = new ExemptVolunteerFamilyRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -11353,7 +11352,7 @@ export class MarkVolunteerFamilyRequirementIncomplete extends VolunteerFamilyCom this._discriminator = "MarkVolunteerFamilyRequirementIncomplete"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; @@ -11361,14 +11360,14 @@ export class MarkVolunteerFamilyRequirementIncomplete extends VolunteerFamilyCom } } - static fromJS(data: any): MarkVolunteerFamilyRequirementIncomplete { + static override fromJS(data: any): MarkVolunteerFamilyRequirementIncomplete { data = typeof data === 'object' ? data : {}; let result = new MarkVolunteerFamilyRequirementIncomplete(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; @@ -11394,31 +11393,31 @@ export class RemoveVolunteerFamilyRole extends VolunteerFamilyCommand implements this._discriminator = "RemoveVolunteerFamilyRole"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.roleName = _data["roleName"]; this.reason = _data["reason"]; this.additionalComments = _data["additionalComments"]; - this.effectiveSince = _data["effectiveSince"] ? new Date(_data["effectiveSince"].toString()) : undefined; - this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined; + this.effectiveSince = _data["effectiveSince"] ? new Date(_data["effectiveSince"].toString()) : undefined as any; + this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined as any; } } - static fromJS(data: any): RemoveVolunteerFamilyRole { + static override fromJS(data: any): RemoveVolunteerFamilyRole { data = typeof data === 'object' ? data : {}; let result = new RemoveVolunteerFamilyRole(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["roleName"] = this.roleName; data["reason"] = this.reason; data["additionalComments"] = this.additionalComments; - data["effectiveSince"] = this.effectiveSince ? formatDate(this.effectiveSince) : undefined; - data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined; + data["effectiveSince"] = this.effectiveSince ? formatDate(this.effectiveSince) : undefined as any; + data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined as any; super.toJSON(data); return data; } @@ -11442,27 +11441,27 @@ export class ResetVolunteerFamilyRole extends VolunteerFamilyCommand implements this._discriminator = "ResetVolunteerFamilyRole"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.roleName = _data["roleName"]; - this.forRemovalEffectiveSince = _data["forRemovalEffectiveSince"] ? new Date(_data["forRemovalEffectiveSince"].toString()) : undefined; - this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined; + this.forRemovalEffectiveSince = _data["forRemovalEffectiveSince"] ? new Date(_data["forRemovalEffectiveSince"].toString()) : undefined as any; + this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined as any; } } - static fromJS(data: any): ResetVolunteerFamilyRole { + static override fromJS(data: any): ResetVolunteerFamilyRole { data = typeof data === 'object' ? data : {}; let result = new ResetVolunteerFamilyRole(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["roleName"] = this.roleName; - data["forRemovalEffectiveSince"] = this.forRemovalEffectiveSince ? formatDate(this.forRemovalEffectiveSince) : undefined; - data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined; + data["forRemovalEffectiveSince"] = this.forRemovalEffectiveSince ? formatDate(this.forRemovalEffectiveSince) : undefined as any; + data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined as any; super.toJSON(data); return data; } @@ -11482,21 +11481,21 @@ export class UnexemptVolunteerFamilyRequirement extends VolunteerFamilyCommand i this._discriminator = "UnexemptVolunteerFamilyRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; } } - static fromJS(data: any): UnexemptVolunteerFamilyRequirement { + static override fromJS(data: any): UnexemptVolunteerFamilyRequirement { data = typeof data === 'object' ? data : {}; let result = new UnexemptVolunteerFamilyRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; super.toJSON(data); @@ -11517,7 +11516,7 @@ export class UploadVolunteerFamilyDocument extends VolunteerFamilyCommand implem this._discriminator = "UploadVolunteerFamilyDocument"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.uploadedDocumentId = _data["uploadedDocumentId"]; @@ -11525,14 +11524,14 @@ export class UploadVolunteerFamilyDocument extends VolunteerFamilyCommand implem } } - static fromJS(data: any): UploadVolunteerFamilyDocument { + static override fromJS(data: any): UploadVolunteerFamilyDocument { data = typeof data === 'object' ? data : {}; let result = new UploadVolunteerFamilyDocument(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["uploadedDocumentId"] = this.uploadedDocumentId; data["uploadedFileName"] = this.uploadedFileName; @@ -11554,23 +11553,23 @@ export class FamilyRecordsCommand extends AtomicRecordsCommand implements IFamil this._discriminator = "FamilyRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? FamilyCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? FamilyCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): FamilyRecordsCommand { + static override fromJS(data: any): FamilyRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new FamilyRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -11589,7 +11588,7 @@ export abstract class FamilyCommand implements IFamilyCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "FamilyCommand"; @@ -11700,7 +11699,7 @@ export class AddAdultToFamily extends FamilyCommand implements IAddAdultToFamily this._discriminator = "AddAdultToFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.adultPersonId = _data["adultPersonId"]; @@ -11708,17 +11707,17 @@ export class AddAdultToFamily extends FamilyCommand implements IAddAdultToFamily } } - static fromJS(data: any): AddAdultToFamily { + static override fromJS(data: any): AddAdultToFamily { data = typeof data === 'object' ? data : {}; let result = new AddAdultToFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["adultPersonId"] = this.adultPersonId; - data["relationshipToFamily"] = this.relationshipToFamily ? this.relationshipToFamily.toJSON() : undefined; + data["relationshipToFamily"] = this.relationshipToFamily ? this.relationshipToFamily.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -11741,7 +11740,7 @@ export class AddChildToFamily extends FamilyCommand implements IAddChildToFamily this._discriminator = "AddChildToFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.childPersonId = _data["childPersonId"]; @@ -11753,20 +11752,20 @@ export class AddChildToFamily extends FamilyCommand implements IAddChildToFamily } } - static fromJS(data: any): AddChildToFamily { + static override fromJS(data: any): AddChildToFamily { data = typeof data === 'object' ? data : {}; let result = new AddChildToFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["childPersonId"] = this.childPersonId; if (Array.isArray(this.custodialRelationships)) { data["custodialRelationships"] = []; for (let item of this.custodialRelationships) - data["custodialRelationships"].push(item.toJSON()); + data["custodialRelationships"].push(item ? item.toJSON() : undefined as any); } super.toJSON(data); return data; @@ -11789,23 +11788,23 @@ export class AddCustodialRelationship extends FamilyCommand implements IAddCusto this._discriminator = "AddCustodialRelationship"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.custodialRelationship = _data["custodialRelationship"] ? CustodialRelationship.fromJS(_data["custodialRelationship"]) : new CustodialRelationship(); } } - static fromJS(data: any): AddCustodialRelationship { + static override fromJS(data: any): AddCustodialRelationship { data = typeof data === 'object' ? data : {}; let result = new AddCustodialRelationship(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["custodialRelationship"] = this.custodialRelationship ? this.custodialRelationship.toJSON() : undefined; + data["custodialRelationship"] = this.custodialRelationship ? this.custodialRelationship.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -11823,21 +11822,21 @@ export class ChangePrimaryFamilyContact extends FamilyCommand implements IChange this._discriminator = "ChangePrimaryFamilyContact"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.adultId = _data["adultId"]; } } - static fromJS(data: any): ChangePrimaryFamilyContact { + static override fromJS(data: any): ChangePrimaryFamilyContact { data = typeof data === 'object' ? data : {}; let result = new ChangePrimaryFamilyContact(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["adultId"] = this.adultId; super.toJSON(data); @@ -11861,7 +11860,7 @@ export class ConvertChildToAdult extends FamilyCommand implements IConvertChildT this._discriminator = "ConvertChildToAdult"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -11869,17 +11868,17 @@ export class ConvertChildToAdult extends FamilyCommand implements IConvertChildT } } - static fromJS(data: any): ConvertChildToAdult { + static override fromJS(data: any): ConvertChildToAdult { data = typeof data === 'object' ? data : {}; let result = new ConvertChildToAdult(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; - data["newRelationshipToFamily"] = this.newRelationshipToFamily ? this.newRelationshipToFamily.toJSON() : undefined; + data["newRelationshipToFamily"] = this.newRelationshipToFamily ? this.newRelationshipToFamily.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -11906,7 +11905,7 @@ export class CreateFamily extends FamilyCommand implements ICreateFamily { this._discriminator = "CreateFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.primaryFamilyContactPersonId = _data["primaryFamilyContactPersonId"]; @@ -11928,20 +11927,20 @@ export class CreateFamily extends FamilyCommand implements ICreateFamily { } } - static fromJS(data: any): CreateFamily { + static override fromJS(data: any): CreateFamily { data = typeof data === 'object' ? data : {}; let result = new CreateFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["primaryFamilyContactPersonId"] = this.primaryFamilyContactPersonId; if (Array.isArray(this.adults)) { data["adults"] = []; for (let item of this.adults) - data["adults"].push(item.toJSON()); + data["adults"].push(item ? item.toJSON() : undefined as any); } if (Array.isArray(this.children)) { data["children"] = []; @@ -11951,7 +11950,7 @@ export class CreateFamily extends FamilyCommand implements ICreateFamily { if (Array.isArray(this.custodialRelationships)) { data["custodialRelationships"] = []; for (let item of this.custodialRelationships) - data["custodialRelationships"].push(item.toJSON()); + data["custodialRelationships"].push(item ? item.toJSON() : undefined as any); } super.toJSON(data); return data; @@ -11973,7 +11972,7 @@ export class ValueTupleOfGuidAndFamilyAdultRelationshipInfo implements IValueTup if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -11981,7 +11980,7 @@ export class ValueTupleOfGuidAndFamilyAdultRelationshipInfo implements IValueTup init(_data?: any) { if (_data) { this.item1 = _data["item1"]; - this.item2 = _data["item2"] ? FamilyAdultRelationshipInfo.fromJS(_data["item2"]) : undefined; + this.item2 = _data["item2"] ? FamilyAdultRelationshipInfo.fromJS(_data["item2"]) : undefined as any; } } @@ -11995,7 +11994,7 @@ export class ValueTupleOfGuidAndFamilyAdultRelationshipInfo implements IValueTup toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["item1"] = this.item1; - data["item2"] = this.item2 ? this.item2.toJSON() : undefined; + data["item2"] = this.item2 ? this.item2.toJSON() : undefined as any; return data; } } @@ -12013,21 +12012,21 @@ export class DeleteUploadedFamilyDocument extends FamilyCommand implements IDele this._discriminator = "DeleteUploadedFamilyDocument"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.uploadedDocumentId = _data["uploadedDocumentId"]; } } - static fromJS(data: any): DeleteUploadedFamilyDocument { + static override fromJS(data: any): DeleteUploadedFamilyDocument { data = typeof data === 'object' ? data : {}; let result = new DeleteUploadedFamilyDocument(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["uploadedDocumentId"] = this.uploadedDocumentId; super.toJSON(data); @@ -12048,7 +12047,7 @@ export class RemoveCustodialRelationship extends FamilyCommand implements IRemov this._discriminator = "RemoveCustodialRelationship"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.childPersonId = _data["childPersonId"]; @@ -12056,14 +12055,14 @@ export class RemoveCustodialRelationship extends FamilyCommand implements IRemov } } - static fromJS(data: any): RemoveCustodialRelationship { + static override fromJS(data: any): RemoveCustodialRelationship { data = typeof data === 'object' ? data : {}; let result = new RemoveCustodialRelationship(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["childPersonId"] = this.childPersonId; data["adultPersonId"] = this.adultPersonId; @@ -12084,18 +12083,18 @@ export class UndoCreateFamily extends FamilyCommand implements IUndoCreateFamily this._discriminator = "UndoCreateFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): UndoCreateFamily { + static override fromJS(data: any): UndoCreateFamily { data = typeof data === 'object' ? data : {}; let result = new UndoCreateFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -12117,7 +12116,7 @@ export class UpdateAdultRelationshipToFamily extends FamilyCommand implements IU this._discriminator = "UpdateAdultRelationshipToFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.adultPersonId = _data["adultPersonId"]; @@ -12125,17 +12124,17 @@ export class UpdateAdultRelationshipToFamily extends FamilyCommand implements IU } } - static fromJS(data: any): UpdateAdultRelationshipToFamily { + static override fromJS(data: any): UpdateAdultRelationshipToFamily { data = typeof data === 'object' ? data : {}; let result = new UpdateAdultRelationshipToFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["adultPersonId"] = this.adultPersonId; - data["relationshipToFamily"] = this.relationshipToFamily ? this.relationshipToFamily.toJSON() : undefined; + data["relationshipToFamily"] = this.relationshipToFamily ? this.relationshipToFamily.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -12156,7 +12155,7 @@ export class UpdateCustodialRelationshipType extends FamilyCommand implements IU this._discriminator = "UpdateCustodialRelationshipType"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.childPersonId = _data["childPersonId"]; @@ -12165,14 +12164,14 @@ export class UpdateCustodialRelationshipType extends FamilyCommand implements IU } } - static fromJS(data: any): UpdateCustodialRelationshipType { + static override fromJS(data: any): UpdateCustodialRelationshipType { data = typeof data === 'object' ? data : {}; let result = new UpdateCustodialRelationshipType(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["childPersonId"] = this.childPersonId; data["adultPersonId"] = this.adultPersonId; @@ -12199,7 +12198,7 @@ export class UpdateCustomFamilyField extends FamilyCommand implements IUpdateCus this._discriminator = "UpdateCustomFamilyField"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedCustomFieldId = _data["completedCustomFieldId"]; @@ -12209,14 +12208,14 @@ export class UpdateCustomFamilyField extends FamilyCommand implements IUpdateCus } } - static fromJS(data: any): UpdateCustomFamilyField { + static override fromJS(data: any): UpdateCustomFamilyField { data = typeof data === 'object' ? data : {}; let result = new UpdateCustomFamilyField(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedCustomFieldId"] = this.completedCustomFieldId; data["customFieldName"] = this.customFieldName; @@ -12242,21 +12241,21 @@ export class UpdateTestFamilyFlag extends FamilyCommand implements IUpdateTestFa this._discriminator = "UpdateTestFamilyFlag"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.isTestFamily = _data["isTestFamily"]; } } - static fromJS(data: any): UpdateTestFamilyFlag { + static override fromJS(data: any): UpdateTestFamilyFlag { data = typeof data === 'object' ? data : {}; let result = new UpdateTestFamilyFlag(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["isTestFamily"] = this.isTestFamily; super.toJSON(data); @@ -12277,7 +12276,7 @@ export class UploadFamilyDocument extends FamilyCommand implements IUploadFamily this._discriminator = "UploadFamilyDocument"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.uploadedDocumentId = _data["uploadedDocumentId"]; @@ -12285,14 +12284,14 @@ export class UploadFamilyDocument extends FamilyCommand implements IUploadFamily } } - static fromJS(data: any): UploadFamilyDocument { + static override fromJS(data: any): UploadFamilyDocument { data = typeof data === 'object' ? data : {}; let result = new UploadFamilyDocument(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["uploadedDocumentId"] = this.uploadedDocumentId; data["uploadedFileName"] = this.uploadedFileName; @@ -12314,23 +12313,23 @@ export class IndividualApprovalRecordsCommand extends AtomicRecordsCommand imple this._discriminator = "IndividualApprovalRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? VolunteerCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? VolunteerCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): IndividualApprovalRecordsCommand { + static override fromJS(data: any): IndividualApprovalRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new IndividualApprovalRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -12350,7 +12349,7 @@ export abstract class VolunteerCommand implements IVolunteerCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "VolunteerCommand"; @@ -12424,29 +12423,29 @@ export class CompleteVolunteerRequirement extends VolunteerCommand implements IC this._discriminator = "CompleteVolunteerRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): CompleteVolunteerRequirement { + static override fromJS(data: any): CompleteVolunteerRequirement { data = typeof data === 'object' ? data : {}; let result = new CompleteVolunteerRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; super.toJSON(data); @@ -12472,27 +12471,27 @@ export class ExemptVolunteerRequirement extends VolunteerCommand implements IExe this._discriminator = "ExemptVolunteerRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ExemptVolunteerRequirement { + static override fromJS(data: any): ExemptVolunteerRequirement { data = typeof data === 'object' ? data : {}; let result = new ExemptVolunteerRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -12513,7 +12512,7 @@ export class MarkVolunteerRequirementIncomplete extends VolunteerCommand impleme this._discriminator = "MarkVolunteerRequirementIncomplete"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; @@ -12521,14 +12520,14 @@ export class MarkVolunteerRequirementIncomplete extends VolunteerCommand impleme } } - static fromJS(data: any): MarkVolunteerRequirementIncomplete { + static override fromJS(data: any): MarkVolunteerRequirementIncomplete { data = typeof data === 'object' ? data : {}; let result = new MarkVolunteerRequirementIncomplete(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; @@ -12554,31 +12553,31 @@ export class RemoveVolunteerRole extends VolunteerCommand implements IRemoveVolu this._discriminator = "RemoveVolunteerRole"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.roleName = _data["roleName"]; this.reason = _data["reason"]; this.additionalComments = _data["additionalComments"]; - this.effectiveSince = _data["effectiveSince"] ? new Date(_data["effectiveSince"].toString()) : undefined; - this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined; + this.effectiveSince = _data["effectiveSince"] ? new Date(_data["effectiveSince"].toString()) : undefined as any; + this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined as any; } } - static fromJS(data: any): RemoveVolunteerRole { + static override fromJS(data: any): RemoveVolunteerRole { data = typeof data === 'object' ? data : {}; let result = new RemoveVolunteerRole(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["roleName"] = this.roleName; data["reason"] = this.reason; data["additionalComments"] = this.additionalComments; - data["effectiveSince"] = this.effectiveSince ? formatDate(this.effectiveSince) : undefined; - data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined; + data["effectiveSince"] = this.effectiveSince ? formatDate(this.effectiveSince) : undefined as any; + data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined as any; super.toJSON(data); return data; } @@ -12602,27 +12601,27 @@ export class ResetVolunteerRole extends VolunteerCommand implements IResetVolunt this._discriminator = "ResetVolunteerRole"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.roleName = _data["roleName"]; - this.forRemovalEffectiveSince = _data["forRemovalEffectiveSince"] ? new Date(_data["forRemovalEffectiveSince"].toString()) : undefined; - this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined; + this.forRemovalEffectiveSince = _data["forRemovalEffectiveSince"] ? new Date(_data["forRemovalEffectiveSince"].toString()) : undefined as any; + this.effectiveThrough = _data["effectiveThrough"] ? new Date(_data["effectiveThrough"].toString()) : undefined as any; } } - static fromJS(data: any): ResetVolunteerRole { + static override fromJS(data: any): ResetVolunteerRole { data = typeof data === 'object' ? data : {}; let result = new ResetVolunteerRole(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["roleName"] = this.roleName; - data["forRemovalEffectiveSince"] = this.forRemovalEffectiveSince ? formatDate(this.forRemovalEffectiveSince) : undefined; - data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined; + data["forRemovalEffectiveSince"] = this.forRemovalEffectiveSince ? formatDate(this.forRemovalEffectiveSince) : undefined as any; + data["effectiveThrough"] = this.effectiveThrough ? formatDate(this.effectiveThrough) : undefined as any; super.toJSON(data); return data; } @@ -12642,21 +12641,21 @@ export class UnexemptVolunteerRequirement extends VolunteerCommand implements IU this._discriminator = "UnexemptVolunteerRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; } } - static fromJS(data: any): UnexemptVolunteerRequirement { + static override fromJS(data: any): UnexemptVolunteerRequirement { data = typeof data === 'object' ? data : {}; let result = new UnexemptVolunteerRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; super.toJSON(data); @@ -12676,23 +12675,23 @@ export class NoteRecordsCommand extends AtomicRecordsCommand implements INoteRec this._discriminator = "NoteRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? NoteCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? NoteCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): NoteRecordsCommand { + static override fromJS(data: any): NoteRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new NoteRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -12712,7 +12711,7 @@ export abstract class NoteCommand implements INoteCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "NoteCommand"; @@ -12789,26 +12788,26 @@ export class ApproveNote extends NoteCommand implements IApproveNote { this._discriminator = "ApproveNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.finalizedNoteContents = _data["finalizedNoteContents"]; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; } } - static fromJS(data: any): ApproveNote { + static override fromJS(data: any): ApproveNote { data = typeof data === 'object' ? data : {}; let result = new ApproveNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["finalizedNoteContents"] = this.finalizedNoteContents; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; super.toJSON(data); return data; @@ -12832,27 +12831,27 @@ export class CreateDraftNote extends NoteCommand implements ICreateDraftNote { this._discriminator = "CreateDraftNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.draftNoteContents = _data["draftNoteContents"]; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; this.authorPersonId = _data["authorPersonId"]; } } - static fromJS(data: any): CreateDraftNote { + static override fromJS(data: any): CreateDraftNote { data = typeof data === 'object' ? data : {}; let result = new CreateDraftNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["draftNoteContents"] = this.draftNoteContents; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; data["authorPersonId"] = this.authorPersonId; super.toJSON(data); @@ -12874,18 +12873,18 @@ export class DiscardDraftNote extends NoteCommand implements IDiscardDraftNote { this._discriminator = "DiscardDraftNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): DiscardDraftNote { + static override fromJS(data: any): DiscardDraftNote { data = typeof data === 'object' ? data : {}; let result = new DiscardDraftNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -12905,26 +12904,26 @@ export class EditDraftNote extends NoteCommand implements IEditDraftNote { this._discriminator = "EditDraftNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.draftNoteContents = _data["draftNoteContents"]; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; } } - static fromJS(data: any): EditDraftNote { + static override fromJS(data: any): EditDraftNote { data = typeof data === 'object' ? data : {}; let result = new EditDraftNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["draftNoteContents"] = this.draftNoteContents; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; super.toJSON(data); return data; @@ -12944,18 +12943,18 @@ export class PinNote extends NoteCommand implements IPinNote { this._discriminator = "PinNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): PinNote { + static override fromJS(data: any): PinNote { data = typeof data === 'object' ? data : {}; let result = new PinNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -12972,18 +12971,18 @@ export class UnpinNote extends NoteCommand implements IUnpinNote { this._discriminator = "UnpinNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): UnpinNote { + static override fromJS(data: any): UnpinNote { data = typeof data === 'object' ? data : {}; let result = new UnpinNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -13001,21 +13000,21 @@ export class UpdateNoteAccessLevel extends NoteCommand implements IUpdateNoteAcc this._discriminator = "UpdateNoteAccessLevel"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.accessLevel = _data["accessLevel"]; } } - static fromJS(data: any): UpdateNoteAccessLevel { + static override fromJS(data: any): UpdateNoteAccessLevel { data = typeof data === 'object' ? data : {}; let result = new UpdateNoteAccessLevel(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["accessLevel"] = this.accessLevel; super.toJSON(data); @@ -13036,25 +13035,25 @@ export class PersonRecordsCommand extends AtomicRecordsCommand implements IPerso this._discriminator = "PersonRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.familyId = _data["familyId"]; - this.command = _data["command"] ? PersonCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? PersonCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): PersonRecordsCommand { + static override fromJS(data: any): PersonRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new PersonRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["familyId"] = this.familyId; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -13074,7 +13073,7 @@ export abstract class PersonCommand implements IPersonCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "PersonCommand"; @@ -13185,7 +13184,7 @@ export class AddPersonAddress extends PersonCommand implements IAddPersonAddress this._discriminator = "AddPersonAddress"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.address = _data["address"] ? Address.fromJS(_data["address"]) : new Address(); @@ -13193,16 +13192,16 @@ export class AddPersonAddress extends PersonCommand implements IAddPersonAddress } } - static fromJS(data: any): AddPersonAddress { + static override fromJS(data: any): AddPersonAddress { data = typeof data === 'object' ? data : {}; let result = new AddPersonAddress(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["address"] = this.address ? this.address.toJSON() : undefined; + data["address"] = this.address ? this.address.toJSON() : undefined as any; data["isCurrentAddress"] = this.isCurrentAddress; super.toJSON(data); return data; @@ -13226,7 +13225,7 @@ export class AddPersonEmailAddress extends PersonCommand implements IAddPersonEm this._discriminator = "AddPersonEmailAddress"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : new EmailAddress(); @@ -13234,16 +13233,16 @@ export class AddPersonEmailAddress extends PersonCommand implements IAddPersonEm } } - static fromJS(data: any): AddPersonEmailAddress { + static override fromJS(data: any): AddPersonEmailAddress { data = typeof data === 'object' ? data : {}; let result = new AddPersonEmailAddress(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined; + data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined as any; data["isPreferredEmailAddress"] = this.isPreferredEmailAddress; super.toJSON(data); return data; @@ -13267,7 +13266,7 @@ export class AddPersonPhoneNumber extends PersonCommand implements IAddPersonPho this._discriminator = "AddPersonPhoneNumber"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : new PhoneNumber(); @@ -13275,16 +13274,16 @@ export class AddPersonPhoneNumber extends PersonCommand implements IAddPersonPho } } - static fromJS(data: any): AddPersonPhoneNumber { + static override fromJS(data: any): AddPersonPhoneNumber { data = typeof data === 'object' ? data : {}; let result = new AddPersonPhoneNumber(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined; + data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined as any; data["isPreferredPhoneNumber"] = this.isPreferredPhoneNumber; super.toJSON(data); return data; @@ -13321,13 +13320,13 @@ export class CreatePerson extends PersonCommand implements ICreatePerson { this._discriminator = "CreatePerson"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.firstName = _data["firstName"]; this.lastName = _data["lastName"]; this.gender = _data["gender"]; - this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined; + this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined as any; this.ethnicity = _data["ethnicity"]; if (Array.isArray(_data["addresses"])) { this.addresses = [] as any; @@ -13352,36 +13351,36 @@ export class CreatePerson extends PersonCommand implements ICreatePerson { } } - static fromJS(data: any): CreatePerson { + static override fromJS(data: any): CreatePerson { data = typeof data === 'object' ? data : {}; let result = new CreatePerson(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["firstName"] = this.firstName; data["lastName"] = this.lastName; data["gender"] = this.gender; - data["age"] = this.age ? this.age.toJSON() : undefined; + data["age"] = this.age ? this.age.toJSON() : undefined as any; data["ethnicity"] = this.ethnicity; if (Array.isArray(this.addresses)) { data["addresses"] = []; for (let item of this.addresses) - data["addresses"].push(item.toJSON()); + data["addresses"].push(item ? item.toJSON() : undefined as any); } data["currentAddressId"] = this.currentAddressId; if (Array.isArray(this.phoneNumbers)) { data["phoneNumbers"] = []; for (let item of this.phoneNumbers) - data["phoneNumbers"].push(item.toJSON()); + data["phoneNumbers"].push(item ? item.toJSON() : undefined as any); } data["preferredPhoneNumberId"] = this.preferredPhoneNumberId; if (Array.isArray(this.emailAddresses)) { data["emailAddresses"] = []; for (let item of this.emailAddresses) - data["emailAddresses"].push(item.toJSON()); + data["emailAddresses"].push(item ? item.toJSON() : undefined as any); } data["preferredEmailAddressId"] = this.preferredEmailAddressId; data["concerns"] = this.concerns; @@ -13414,18 +13413,18 @@ export class UndoCreatePerson extends PersonCommand implements IUndoCreatePerson this._discriminator = "UndoCreatePerson"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): UndoCreatePerson { + static override fromJS(data: any): UndoCreatePerson { data = typeof data === 'object' ? data : {}; let result = new UndoCreatePerson(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -13447,7 +13446,7 @@ export class UpdatePersonAddress extends PersonCommand implements IUpdatePersonA this._discriminator = "UpdatePersonAddress"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.address = _data["address"] ? Address.fromJS(_data["address"]) : new Address(); @@ -13455,16 +13454,16 @@ export class UpdatePersonAddress extends PersonCommand implements IUpdatePersonA } } - static fromJS(data: any): UpdatePersonAddress { + static override fromJS(data: any): UpdatePersonAddress { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonAddress(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["address"] = this.address ? this.address.toJSON() : undefined; + data["address"] = this.address ? this.address.toJSON() : undefined as any; data["isCurrentAddress"] = this.isCurrentAddress; super.toJSON(data); return data; @@ -13484,23 +13483,23 @@ export class UpdatePersonAge extends PersonCommand implements IUpdatePersonAge { this._discriminator = "UpdatePersonAge"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined; + this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined as any; } } - static fromJS(data: any): UpdatePersonAge { + static override fromJS(data: any): UpdatePersonAge { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonAge(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["age"] = this.age ? this.age.toJSON() : undefined; + data["age"] = this.age ? this.age.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -13518,21 +13517,21 @@ export class UpdatePersonConcerns extends PersonCommand implements IUpdatePerson this._discriminator = "UpdatePersonConcerns"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.concerns = _data["concerns"]; } } - static fromJS(data: any): UpdatePersonConcerns { + static override fromJS(data: any): UpdatePersonConcerns { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonConcerns(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["concerns"] = this.concerns; super.toJSON(data); @@ -13556,7 +13555,7 @@ export class UpdatePersonEmailAddress extends PersonCommand implements IUpdatePe this._discriminator = "UpdatePersonEmailAddress"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : new EmailAddress(); @@ -13564,16 +13563,16 @@ export class UpdatePersonEmailAddress extends PersonCommand implements IUpdatePe } } - static fromJS(data: any): UpdatePersonEmailAddress { + static override fromJS(data: any): UpdatePersonEmailAddress { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonEmailAddress(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined; + data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined as any; data["isPreferredEmailAddress"] = this.isPreferredEmailAddress; super.toJSON(data); return data; @@ -13593,21 +13592,21 @@ export class UpdatePersonEthnicity extends PersonCommand implements IUpdatePerso this._discriminator = "UpdatePersonEthnicity"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.ethnicity = _data["ethnicity"]; } } - static fromJS(data: any): UpdatePersonEthnicity { + static override fromJS(data: any): UpdatePersonEthnicity { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonEthnicity(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["ethnicity"] = this.ethnicity; super.toJSON(data); @@ -13627,21 +13626,21 @@ export class UpdatePersonGender extends PersonCommand implements IUpdatePersonGe this._discriminator = "UpdatePersonGender"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.gender = _data["gender"]; } } - static fromJS(data: any): UpdatePersonGender { + static override fromJS(data: any): UpdatePersonGender { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonGender(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["gender"] = this.gender; super.toJSON(data); @@ -13662,7 +13661,7 @@ export class UpdatePersonName extends PersonCommand implements IUpdatePersonName this._discriminator = "UpdatePersonName"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.firstName = _data["firstName"]; @@ -13670,14 +13669,14 @@ export class UpdatePersonName extends PersonCommand implements IUpdatePersonName } } - static fromJS(data: any): UpdatePersonName { + static override fromJS(data: any): UpdatePersonName { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonName(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["firstName"] = this.firstName; data["lastName"] = this.lastName; @@ -13699,21 +13698,21 @@ export class UpdatePersonNotes extends PersonCommand implements IUpdatePersonNot this._discriminator = "UpdatePersonNotes"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.notes = _data["notes"]; } } - static fromJS(data: any): UpdatePersonNotes { + static override fromJS(data: any): UpdatePersonNotes { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonNotes(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["notes"] = this.notes; super.toJSON(data); @@ -13737,7 +13736,7 @@ export class UpdatePersonPhoneNumber extends PersonCommand implements IUpdatePer this._discriminator = "UpdatePersonPhoneNumber"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : new PhoneNumber(); @@ -13745,16 +13744,16 @@ export class UpdatePersonPhoneNumber extends PersonCommand implements IUpdatePer } } - static fromJS(data: any): UpdatePersonPhoneNumber { + static override fromJS(data: any): UpdatePersonPhoneNumber { data = typeof data === 'object' ? data : {}; let result = new UpdatePersonPhoneNumber(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined; + data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined as any; data["isPreferredPhoneNumber"] = this.isPreferredPhoneNumber; super.toJSON(data); return data; @@ -13774,23 +13773,23 @@ export class ReferralRecordsCommand extends AtomicRecordsCommand implements IRef this._discriminator = "ReferralRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? V1CaseCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? V1CaseCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): ReferralRecordsCommand { + static override fromJS(data: any): ReferralRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new ReferralRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -13810,7 +13809,7 @@ export abstract class V1CaseCommand implements IV1CaseCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "V1CaseCommand"; @@ -13911,7 +13910,7 @@ export class AssignStaffToV1Case extends V1CaseCommand implements IAssignStaffTo this._discriminator = "AssignStaffToV1Case"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -13919,14 +13918,14 @@ export class AssignStaffToV1Case extends V1CaseCommand implements IAssignStaffTo } } - static fromJS(data: any): AssignStaffToV1Case { + static override fromJS(data: any): AssignStaffToV1Case { data = typeof data === 'object' ? data : {}; let result = new AssignStaffToV1Case(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -13949,25 +13948,25 @@ export class CloseReferral extends V1CaseCommand implements ICloseReferral { this._discriminator = "CloseReferral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.closeReason = _data["closeReason"]; - this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined; + this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): CloseReferral { + static override fromJS(data: any): CloseReferral { data = typeof data === 'object' ? data : {}; let result = new CloseReferral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["closeReason"] = this.closeReason; - data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined; + data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -13990,29 +13989,29 @@ export class CompleteReferralRequirement extends V1CaseCommand implements ICompl this._discriminator = "CompleteReferralRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): CompleteReferralRequirement { + static override fromJS(data: any): CompleteReferralRequirement { data = typeof data === 'object' ? data : {}; let result = new CompleteReferralRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; super.toJSON(data); @@ -14036,23 +14035,23 @@ export class CreateReferral extends V1CaseCommand implements ICreateReferral { this._discriminator = "CreateReferral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined; + this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): CreateReferral { + static override fromJS(data: any): CreateReferral { data = typeof data === 'object' ? data : {}; let result = new CreateReferral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined; + data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -14072,27 +14071,27 @@ export class ExemptReferralRequirement extends V1CaseCommand implements IExemptR this._discriminator = "ExemptReferralRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ExemptReferralRequirement { + static override fromJS(data: any): ExemptReferralRequirement { data = typeof data === 'object' ? data : {}; let result = new ExemptReferralRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -14112,21 +14111,21 @@ export class LinkReferralToCase extends V1CaseCommand implements ILinkReferralTo this._discriminator = "LinkReferralToCase"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.linkedReferralId = _data["linkedReferralId"]; } } - static fromJS(data: any): LinkReferralToCase { + static override fromJS(data: any): LinkReferralToCase { data = typeof data === 'object' ? data : {}; let result = new LinkReferralToCase(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["linkedReferralId"] = this.linkedReferralId; super.toJSON(data); @@ -14147,7 +14146,7 @@ export class MarkReferralRequirementIncomplete extends V1CaseCommand implements this._discriminator = "MarkReferralRequirementIncomplete"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; @@ -14155,14 +14154,14 @@ export class MarkReferralRequirementIncomplete extends V1CaseCommand implements } } - static fromJS(data: any): MarkReferralRequirementIncomplete { + static override fromJS(data: any): MarkReferralRequirementIncomplete { data = typeof data === 'object' ? data : {}; let result = new MarkReferralRequirementIncomplete(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; @@ -14184,23 +14183,23 @@ export class ReopenReferral extends V1CaseCommand implements IReopenReferral { this._discriminator = "ReopenReferral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.reopenedAtUtc = _data["reopenedAtUtc"] ? new Date(_data["reopenedAtUtc"].toString()) : undefined; + this.reopenedAtUtc = _data["reopenedAtUtc"] ? new Date(_data["reopenedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ReopenReferral { + static override fromJS(data: any): ReopenReferral { data = typeof data === 'object' ? data : {}; let result = new ReopenReferral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["reopenedAtUtc"] = this.reopenedAtUtc ? this.reopenedAtUtc.toISOString() : undefined; + data["reopenedAtUtc"] = this.reopenedAtUtc ? this.reopenedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -14219,7 +14218,7 @@ export class UnassignStaffFromV1Case extends V1CaseCommand implements IUnassignS this._discriminator = "UnassignStaffFromV1Case"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -14227,14 +14226,14 @@ export class UnassignStaffFromV1Case extends V1CaseCommand implements IUnassignS } } - static fromJS(data: any): UnassignStaffFromV1Case { + static override fromJS(data: any): UnassignStaffFromV1Case { data = typeof data === 'object' ? data : {}; let result = new UnassignStaffFromV1Case(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -14256,21 +14255,21 @@ export class UnexemptReferralRequirement extends V1CaseCommand implements IUnexe this._discriminator = "UnexemptReferralRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; } } - static fromJS(data: any): UnexemptReferralRequirement { + static override fromJS(data: any): UnexemptReferralRequirement { data = typeof data === 'object' ? data : {}; let result = new UnexemptReferralRequirement(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; super.toJSON(data); @@ -14293,7 +14292,7 @@ export class UpdateCustomReferralField extends V1CaseCommand implements IUpdateC this._discriminator = "UpdateCustomReferralField"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedCustomFieldId = _data["completedCustomFieldId"]; @@ -14303,14 +14302,14 @@ export class UpdateCustomReferralField extends V1CaseCommand implements IUpdateC } } - static fromJS(data: any): UpdateCustomReferralField { + static override fromJS(data: any): UpdateCustomReferralField { data = typeof data === 'object' ? data : {}; let result = new UpdateCustomReferralField(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedCustomFieldId"] = this.completedCustomFieldId; data["customFieldName"] = this.customFieldName; @@ -14336,21 +14335,21 @@ export class UpdateReferralComments extends V1CaseCommand implements IUpdateRefe this._discriminator = "UpdateReferralComments"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.comments = _data["comments"]; } } - static fromJS(data: any): UpdateReferralComments { + static override fromJS(data: any): UpdateReferralComments { data = typeof data === 'object' ? data : {}; let result = new UpdateReferralComments(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["comments"] = this.comments; super.toJSON(data); @@ -14370,23 +14369,23 @@ export class V1ReferralNoteRecordsCommand extends AtomicRecordsCommand implement this._discriminator = "V1ReferralNoteRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? V1ReferralNoteCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? V1ReferralNoteCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): V1ReferralNoteRecordsCommand { + static override fromJS(data: any): V1ReferralNoteRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new V1ReferralNoteRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -14406,7 +14405,7 @@ export abstract class V1ReferralNoteCommand implements IV1ReferralNoteCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "V1ReferralNoteCommand"; @@ -14473,26 +14472,26 @@ export class ApproveV1ReferralNote extends V1ReferralNoteCommand implements IApp this._discriminator = "ApproveV1ReferralNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.finalizedNoteContents = _data["finalizedNoteContents"]; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; } } - static fromJS(data: any): ApproveV1ReferralNote { + static override fromJS(data: any): ApproveV1ReferralNote { data = typeof data === 'object' ? data : {}; let result = new ApproveV1ReferralNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["finalizedNoteContents"] = this.finalizedNoteContents; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; super.toJSON(data); return data; @@ -14515,26 +14514,26 @@ export class CreateV1ReferralDraftNote extends V1ReferralNoteCommand implements this._discriminator = "CreateV1ReferralDraftNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.draftNoteContents = _data["draftNoteContents"]; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; } } - static fromJS(data: any): CreateV1ReferralDraftNote { + static override fromJS(data: any): CreateV1ReferralDraftNote { data = typeof data === 'object' ? data : {}; let result = new CreateV1ReferralDraftNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["draftNoteContents"] = this.draftNoteContents; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; super.toJSON(data); return data; @@ -14554,18 +14553,18 @@ export class DiscardV1ReferralDraftNote extends V1ReferralNoteCommand implements this._discriminator = "DiscardV1ReferralDraftNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); } - static fromJS(data: any): DiscardV1ReferralDraftNote { + static override fromJS(data: any): DiscardV1ReferralDraftNote { data = typeof data === 'object' ? data : {}; let result = new DiscardV1ReferralDraftNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; super.toJSON(data); return data; @@ -14585,26 +14584,26 @@ export class EditV1ReferralDraftNote extends V1ReferralNoteCommand implements IE this._discriminator = "EditV1ReferralDraftNote"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.draftNoteContents = _data["draftNoteContents"]; - this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined; + this.backdatedTimestampUtc = _data["backdatedTimestampUtc"] ? new Date(_data["backdatedTimestampUtc"].toString()) : undefined as any; this.accessLevel = _data["accessLevel"]; } } - static fromJS(data: any): EditV1ReferralDraftNote { + static override fromJS(data: any): EditV1ReferralDraftNote { data = typeof data === 'object' ? data : {}; let result = new EditV1ReferralDraftNote(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["draftNoteContents"] = this.draftNoteContents; - data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined; + data["backdatedTimestampUtc"] = this.backdatedTimestampUtc ? this.backdatedTimestampUtc.toISOString() : undefined as any; data["accessLevel"] = this.accessLevel; super.toJSON(data); return data; @@ -14625,21 +14624,21 @@ export class UpdateV1ReferralNoteAccessLevel extends V1ReferralNoteCommand imple this._discriminator = "UpdateV1ReferralNoteAccessLevel"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.accessLevel = _data["accessLevel"]; } } - static fromJS(data: any): UpdateV1ReferralNoteAccessLevel { + static override fromJS(data: any): UpdateV1ReferralNoteAccessLevel { data = typeof data === 'object' ? data : {}; let result = new UpdateV1ReferralNoteAccessLevel(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["accessLevel"] = this.accessLevel; super.toJSON(data); @@ -14659,23 +14658,23 @@ export class V1ReferralRecordsCommand extends AtomicRecordsCommand implements IV this._discriminator = "V1ReferralRecordsCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.command = _data["command"] ? V1ReferralCommand.fromJS(_data["command"]) : undefined; + this.command = _data["command"] ? V1ReferralCommand.fromJS(_data["command"]) : undefined as any; } } - static fromJS(data: any): V1ReferralRecordsCommand { + static override fromJS(data: any): V1ReferralRecordsCommand { data = typeof data === 'object' ? data : {}; let result = new V1ReferralRecordsCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["command"] = this.command ? this.command.toJSON() : undefined; + data["command"] = this.command ? this.command.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -14694,7 +14693,7 @@ export abstract class V1ReferralCommand implements IV1ReferralCommand { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "V1ReferralCommand"; @@ -14806,23 +14805,23 @@ export class AcceptV1Referral extends V1ReferralCommand implements IAcceptV1Refe this._discriminator = "AcceptV1Referral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined; + this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): AcceptV1Referral { + static override fromJS(data: any): AcceptV1Referral { data = typeof data === 'object' ? data : {}; let result = new AcceptV1Referral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined; + data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -14841,7 +14840,7 @@ export class AssignStaffToV1Referral extends V1ReferralCommand implements IAssig this._discriminator = "AssignStaffToV1Referral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -14849,14 +14848,14 @@ export class AssignStaffToV1Referral extends V1ReferralCommand implements IAssig } } - static fromJS(data: any): AssignStaffToV1Referral { + static override fromJS(data: any): AssignStaffToV1Referral { data = typeof data === 'object' ? data : {}; let result = new AssignStaffToV1Referral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -14879,24 +14878,24 @@ export class CloseV1Referral extends V1ReferralCommand implements ICloseV1Referr this._discriminator = "CloseV1Referral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined; + this.closedAtUtc = _data["closedAtUtc"] ? new Date(_data["closedAtUtc"].toString()) : undefined as any; this.closeReason = _data["closeReason"]; } } - static fromJS(data: any): CloseV1Referral { + static override fromJS(data: any): CloseV1Referral { data = typeof data === 'object' ? data : {}; let result = new CloseV1Referral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined; + data["closedAtUtc"] = this.closedAtUtc ? this.closedAtUtc.toISOString() : undefined as any; data["closeReason"] = this.closeReason; super.toJSON(data); return data; @@ -14920,29 +14919,29 @@ export class CompleteReferralRequirement2 extends V1ReferralCommand implements I this._discriminator = "CompleteReferralRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; this.requirementName = _data["requirementName"]; - this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined; + this.completedAtUtc = _data["completedAtUtc"] ? new Date(_data["completedAtUtc"].toString()) : undefined as any; this.uploadedDocumentId = _data["uploadedDocumentId"]; this.noteId = _data["noteId"]; } } - static fromJS(data: any): CompleteReferralRequirement2 { + static override fromJS(data: any): CompleteReferralRequirement2 { data = typeof data === 'object' ? data : {}; let result = new CompleteReferralRequirement2(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; - data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined; + data["completedAtUtc"] = this.completedAtUtc ? this.completedAtUtc.toISOString() : undefined as any; data["uploadedDocumentId"] = this.uploadedDocumentId; data["noteId"] = this.noteId; super.toJSON(data); @@ -14969,27 +14968,27 @@ export class CreateV1Referral extends V1ReferralCommand implements ICreateV1Refe this._discriminator = "CreateV1Referral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.familyId = _data["familyId"]; - this.createdAtUtc = _data["createdAtUtc"] ? new Date(_data["createdAtUtc"].toString()) : undefined; + this.createdAtUtc = _data["createdAtUtc"] ? new Date(_data["createdAtUtc"].toString()) : undefined as any; this.title = _data["title"]; this.comment = _data["comment"]; } } - static fromJS(data: any): CreateV1Referral { + static override fromJS(data: any): CreateV1Referral { data = typeof data === 'object' ? data : {}; let result = new CreateV1Referral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["familyId"] = this.familyId; - data["createdAtUtc"] = this.createdAtUtc ? this.createdAtUtc.toISOString() : undefined; + data["createdAtUtc"] = this.createdAtUtc ? this.createdAtUtc.toISOString() : undefined as any; data["title"] = this.title; data["comment"] = this.comment; super.toJSON(data); @@ -15012,21 +15011,21 @@ export class DeleteUploadedV1ReferralDocument extends V1ReferralCommand implemen this._discriminator = "DeleteUploadedV1ReferralDocument"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.uploadedDocumentId = _data["uploadedDocumentId"]; } } - static fromJS(data: any): DeleteUploadedV1ReferralDocument { + static override fromJS(data: any): DeleteUploadedV1ReferralDocument { data = typeof data === 'object' ? data : {}; let result = new DeleteUploadedV1ReferralDocument(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["uploadedDocumentId"] = this.uploadedDocumentId; super.toJSON(data); @@ -15048,27 +15047,27 @@ export class ExemptReferralRequirement2 extends V1ReferralCommand implements IEx this._discriminator = "ExemptReferralRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; this.additionalComments = _data["additionalComments"]; - this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined; + this.exemptionExpiresAtUtc = _data["exemptionExpiresAtUtc"] ? new Date(_data["exemptionExpiresAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ExemptReferralRequirement2 { + static override fromJS(data: any): ExemptReferralRequirement2 { data = typeof data === 'object' ? data : {}; let result = new ExemptReferralRequirement2(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; data["additionalComments"] = this.additionalComments; - data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined; + data["exemptionExpiresAtUtc"] = this.exemptionExpiresAtUtc ? this.exemptionExpiresAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -15089,7 +15088,7 @@ export class MarkReferralRequirementIncomplete2 extends V1ReferralCommand implem this._discriminator = "MarkReferralRequirementIncomplete"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedRequirementId = _data["completedRequirementId"]; @@ -15097,14 +15096,14 @@ export class MarkReferralRequirementIncomplete2 extends V1ReferralCommand implem } } - static fromJS(data: any): MarkReferralRequirementIncomplete2 { + static override fromJS(data: any): MarkReferralRequirementIncomplete2 { data = typeof data === 'object' ? data : {}; let result = new MarkReferralRequirementIncomplete2(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedRequirementId"] = this.completedRequirementId; data["requirementName"] = this.requirementName; @@ -15126,23 +15125,23 @@ export class ReopenV1Referral extends V1ReferralCommand implements IReopenV1Refe this._discriminator = "ReopenV1Referral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { - this.reopenedAtUtc = _data["reopenedAtUtc"] ? new Date(_data["reopenedAtUtc"].toString()) : undefined; + this.reopenedAtUtc = _data["reopenedAtUtc"] ? new Date(_data["reopenedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): ReopenV1Referral { + static override fromJS(data: any): ReopenV1Referral { data = typeof data === 'object' ? data : {}; let result = new ReopenV1Referral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; - data["reopenedAtUtc"] = this.reopenedAtUtc ? this.reopenedAtUtc.toISOString() : undefined; + data["reopenedAtUtc"] = this.reopenedAtUtc ? this.reopenedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -15161,7 +15160,7 @@ export class UnassignStaffFromV1Referral extends V1ReferralCommand implements IU this._discriminator = "UnassignStaffFromV1Referral"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; @@ -15169,14 +15168,14 @@ export class UnassignStaffFromV1Referral extends V1ReferralCommand implements IU } } - static fromJS(data: any): UnassignStaffFromV1Referral { + static override fromJS(data: any): UnassignStaffFromV1Referral { data = typeof data === 'object' ? data : {}; let result = new UnassignStaffFromV1Referral(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["assignmentRole"] = this.assignmentRole; @@ -15198,21 +15197,21 @@ export class UnexemptReferralRequirement2 extends V1ReferralCommand implements I this._discriminator = "UnexemptReferralRequirement"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.requirementName = _data["requirementName"]; } } - static fromJS(data: any): UnexemptReferralRequirement2 { + static override fromJS(data: any): UnexemptReferralRequirement2 { data = typeof data === 'object' ? data : {}; let result = new UnexemptReferralRequirement2(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["requirementName"] = this.requirementName; super.toJSON(data); @@ -15235,7 +15234,7 @@ export class UpdateCustomV1ReferralField extends V1ReferralCommand implements IU this._discriminator = "UpdateCustomV1ReferralField"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.completedCustomFieldId = _data["completedCustomFieldId"]; @@ -15245,14 +15244,14 @@ export class UpdateCustomV1ReferralField extends V1ReferralCommand implements IU } } - static fromJS(data: any): UpdateCustomV1ReferralField { + static override fromJS(data: any): UpdateCustomV1ReferralField { data = typeof data === 'object' ? data : {}; let result = new UpdateCustomV1ReferralField(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["completedCustomFieldId"] = this.completedCustomFieldId; data["customFieldName"] = this.customFieldName; @@ -15280,27 +15279,27 @@ export class UpdateV1ReferralDetails extends V1ReferralCommand implements IUpdat this._discriminator = "UpdateV1ReferralDetails"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.title = _data["title"]; this.comment = _data["comment"]; - this.createdAtUtc = _data["createdAtUtc"] ? new Date(_data["createdAtUtc"].toString()) : undefined; + this.createdAtUtc = _data["createdAtUtc"] ? new Date(_data["createdAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): UpdateV1ReferralDetails { + static override fromJS(data: any): UpdateV1ReferralDetails { data = typeof data === 'object' ? data : {}; let result = new UpdateV1ReferralDetails(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["title"] = this.title; data["comment"] = this.comment; - data["createdAtUtc"] = this.createdAtUtc ? this.createdAtUtc.toISOString() : undefined; + data["createdAtUtc"] = this.createdAtUtc ? this.createdAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -15320,21 +15319,21 @@ export class UpdateV1ReferralFamily extends V1ReferralCommand implements IUpdate this._discriminator = "UpdateV1ReferralFamily"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.familyId = _data["familyId"]; } } - static fromJS(data: any): UpdateV1ReferralFamily { + static override fromJS(data: any): UpdateV1ReferralFamily { data = typeof data === 'object' ? data : {}; let result = new UpdateV1ReferralFamily(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["familyId"] = this.familyId; super.toJSON(data); @@ -15355,7 +15354,7 @@ export class UploadV1ReferralDocument extends V1ReferralCommand implements IUplo this._discriminator = "UploadV1ReferralDocument"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.uploadedDocumentId = _data["uploadedDocumentId"]; @@ -15363,14 +15362,14 @@ export class UploadV1ReferralDocument extends V1ReferralCommand implements IUplo } } - static fromJS(data: any): UploadV1ReferralDocument { + static override fromJS(data: any): UploadV1ReferralDocument { data = typeof data === 'object' ? data : {}; let result = new UploadV1ReferralDocument(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["uploadedDocumentId"] = this.uploadedDocumentId; data["uploadedFileName"] = this.uploadedFileName; @@ -15393,7 +15392,7 @@ export abstract class CompositeRecordsCommand implements ICompositeRecordsComman if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } this._discriminator = "CompositeRecordsCommand"; @@ -15474,45 +15473,45 @@ export class AddAdultToFamilyCommand extends CompositeRecordsCommand implements this._discriminator = "AddAdultToFamilyCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; this.firstName = _data["firstName"]; this.lastName = _data["lastName"]; this.gender = _data["gender"]; - this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined; + this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined as any; this.ethnicity = _data["ethnicity"]; this.familyAdultRelationshipInfo = _data["familyAdultRelationshipInfo"] ? FamilyAdultRelationshipInfo.fromJS(_data["familyAdultRelationshipInfo"]) : new FamilyAdultRelationshipInfo(); this.concerns = _data["concerns"]; this.notes = _data["notes"]; - this.address = _data["address"] ? Address.fromJS(_data["address"]) : undefined; - this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : undefined; - this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : undefined; + this.address = _data["address"] ? Address.fromJS(_data["address"]) : undefined as any; + this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : undefined as any; + this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : undefined as any; } } - static fromJS(data: any): AddAdultToFamilyCommand { + static override fromJS(data: any): AddAdultToFamilyCommand { data = typeof data === 'object' ? data : {}; let result = new AddAdultToFamilyCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["firstName"] = this.firstName; data["lastName"] = this.lastName; data["gender"] = this.gender; - data["age"] = this.age ? this.age.toJSON() : undefined; + data["age"] = this.age ? this.age.toJSON() : undefined as any; data["ethnicity"] = this.ethnicity; - data["familyAdultRelationshipInfo"] = this.familyAdultRelationshipInfo ? this.familyAdultRelationshipInfo.toJSON() : undefined; + data["familyAdultRelationshipInfo"] = this.familyAdultRelationshipInfo ? this.familyAdultRelationshipInfo.toJSON() : undefined as any; data["concerns"] = this.concerns; data["notes"] = this.notes; - data["address"] = this.address ? this.address.toJSON() : undefined; - data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined; - data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined; + data["address"] = this.address ? this.address.toJSON() : undefined as any; + data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined as any; + data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -15552,14 +15551,14 @@ export class AddChildToFamilyCommand extends CompositeRecordsCommand implements this._discriminator = "AddChildToFamilyCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; this.firstName = _data["firstName"]; this.lastName = _data["lastName"]; this.gender = _data["gender"]; - this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined; + this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined as any; this.ethnicity = _data["ethnicity"]; if (Array.isArray(_data["custodialRelationships"])) { this.custodialRelationships = [] as any; @@ -15571,25 +15570,25 @@ export class AddChildToFamilyCommand extends CompositeRecordsCommand implements } } - static fromJS(data: any): AddChildToFamilyCommand { + static override fromJS(data: any): AddChildToFamilyCommand { data = typeof data === 'object' ? data : {}; let result = new AddChildToFamilyCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["firstName"] = this.firstName; data["lastName"] = this.lastName; data["gender"] = this.gender; - data["age"] = this.age ? this.age.toJSON() : undefined; + data["age"] = this.age ? this.age.toJSON() : undefined as any; data["ethnicity"] = this.ethnicity; if (Array.isArray(this.custodialRelationships)) { data["custodialRelationships"] = []; for (let item of this.custodialRelationships) - data["custodialRelationships"].push(item.toJSON()); + data["custodialRelationships"].push(item ? item.toJSON() : undefined as any); } data["concerns"] = this.concerns; data["notes"] = this.notes; @@ -15634,49 +15633,49 @@ export class CreatePartneringFamilyWithNewAdultCommand extends CompositeRecordsC this._discriminator = "CreatePartneringFamilyWithNewAdultCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; this.referralId = _data["referralId"]; - this.referralOpenedAtUtc = _data["referralOpenedAtUtc"] ? new Date(_data["referralOpenedAtUtc"].toString()) : undefined; + this.referralOpenedAtUtc = _data["referralOpenedAtUtc"] ? new Date(_data["referralOpenedAtUtc"].toString()) : undefined as any; this.firstName = _data["firstName"]; this.lastName = _data["lastName"]; this.gender = _data["gender"]; - this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined; + this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined as any; this.ethnicity = _data["ethnicity"]; this.familyAdultRelationshipInfo = _data["familyAdultRelationshipInfo"] ? FamilyAdultRelationshipInfo.fromJS(_data["familyAdultRelationshipInfo"]) : new FamilyAdultRelationshipInfo(); this.concerns = _data["concerns"]; this.notes = _data["notes"]; - this.address = _data["address"] ? Address.fromJS(_data["address"]) : undefined; - this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : undefined; - this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : undefined; + this.address = _data["address"] ? Address.fromJS(_data["address"]) : undefined as any; + this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : undefined as any; + this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : undefined as any; } } - static fromJS(data: any): CreatePartneringFamilyWithNewAdultCommand { + static override fromJS(data: any): CreatePartneringFamilyWithNewAdultCommand { data = typeof data === 'object' ? data : {}; let result = new CreatePartneringFamilyWithNewAdultCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["referralId"] = this.referralId; - data["referralOpenedAtUtc"] = this.referralOpenedAtUtc ? this.referralOpenedAtUtc.toISOString() : undefined; + data["referralOpenedAtUtc"] = this.referralOpenedAtUtc ? this.referralOpenedAtUtc.toISOString() : undefined as any; data["firstName"] = this.firstName; data["lastName"] = this.lastName; data["gender"] = this.gender; - data["age"] = this.age ? this.age.toJSON() : undefined; + data["age"] = this.age ? this.age.toJSON() : undefined as any; data["ethnicity"] = this.ethnicity; - data["familyAdultRelationshipInfo"] = this.familyAdultRelationshipInfo ? this.familyAdultRelationshipInfo.toJSON() : undefined; + data["familyAdultRelationshipInfo"] = this.familyAdultRelationshipInfo ? this.familyAdultRelationshipInfo.toJSON() : undefined as any; data["concerns"] = this.concerns; data["notes"] = this.notes; - data["address"] = this.address ? this.address.toJSON() : undefined; - data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined; - data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined; + data["address"] = this.address ? this.address.toJSON() : undefined as any; + data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined as any; + data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -15721,45 +15720,45 @@ export class CreateVolunteerFamilyWithNewAdultCommand extends CompositeRecordsCo this._discriminator = "CreateVolunteerFamilyWithNewAdultCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.personId = _data["personId"]; this.firstName = _data["firstName"]; this.lastName = _data["lastName"]; this.gender = _data["gender"]; - this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined; + this.age = _data["age"] ? Age.fromJS(_data["age"]) : undefined as any; this.ethnicity = _data["ethnicity"]; this.familyAdultRelationshipInfo = _data["familyAdultRelationshipInfo"] ? FamilyAdultRelationshipInfo.fromJS(_data["familyAdultRelationshipInfo"]) : new FamilyAdultRelationshipInfo(); this.concerns = _data["concerns"]; this.notes = _data["notes"]; - this.address = _data["address"] ? Address.fromJS(_data["address"]) : undefined; - this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : undefined; - this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : undefined; + this.address = _data["address"] ? Address.fromJS(_data["address"]) : undefined as any; + this.phoneNumber = _data["phoneNumber"] ? PhoneNumber.fromJS(_data["phoneNumber"]) : undefined as any; + this.emailAddress = _data["emailAddress"] ? EmailAddress.fromJS(_data["emailAddress"]) : undefined as any; } } - static fromJS(data: any): CreateVolunteerFamilyWithNewAdultCommand { + static override fromJS(data: any): CreateVolunteerFamilyWithNewAdultCommand { data = typeof data === 'object' ? data : {}; let result = new CreateVolunteerFamilyWithNewAdultCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["personId"] = this.personId; data["firstName"] = this.firstName; data["lastName"] = this.lastName; data["gender"] = this.gender; - data["age"] = this.age ? this.age.toJSON() : undefined; + data["age"] = this.age ? this.age.toJSON() : undefined as any; data["ethnicity"] = this.ethnicity; - data["familyAdultRelationshipInfo"] = this.familyAdultRelationshipInfo ? this.familyAdultRelationshipInfo.toJSON() : undefined; + data["familyAdultRelationshipInfo"] = this.familyAdultRelationshipInfo ? this.familyAdultRelationshipInfo.toJSON() : undefined as any; data["concerns"] = this.concerns; data["notes"] = this.notes; - data["address"] = this.address ? this.address.toJSON() : undefined; - data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined; - data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined; + data["address"] = this.address ? this.address.toJSON() : undefined as any; + data["phoneNumber"] = this.phoneNumber ? this.phoneNumber.toJSON() : undefined as any; + data["emailAddress"] = this.emailAddress ? this.emailAddress.toJSON() : undefined as any; super.toJSON(data); return data; } @@ -15790,27 +15789,27 @@ export class LinkReferralToCaseAndAcceptCommand extends CompositeRecordsCommand this._discriminator = "LinkReferralToCaseAndAcceptCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.caseId = _data["caseId"]; this.referralId = _data["referralId"]; - this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined; + this.acceptedAtUtc = _data["acceptedAtUtc"] ? new Date(_data["acceptedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): LinkReferralToCaseAndAcceptCommand { + static override fromJS(data: any): LinkReferralToCaseAndAcceptCommand { data = typeof data === 'object' ? data : {}; let result = new LinkReferralToCaseAndAcceptCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["caseId"] = this.caseId; data["referralId"] = this.referralId; - data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined; + data["acceptedAtUtc"] = this.acceptedAtUtc ? this.acceptedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -15832,27 +15831,27 @@ export class OpenCaseForReferralAndAcceptCommand extends CompositeRecordsCommand this._discriminator = "OpenCaseForReferralAndAcceptCommand"; } - init(_data?: any) { + override init(_data?: any) { super.init(_data); if (_data) { this.caseId = _data["caseId"]; this.referralId = _data["referralId"]; - this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined; + this.openedAtUtc = _data["openedAtUtc"] ? new Date(_data["openedAtUtc"].toString()) : undefined as any; } } - static fromJS(data: any): OpenCaseForReferralAndAcceptCommand { + static override fromJS(data: any): OpenCaseForReferralAndAcceptCommand { data = typeof data === 'object' ? data : {}; let result = new OpenCaseForReferralAndAcceptCommand(); result.init(data); return result; } - toJSON(data?: any) { + override toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["caseId"] = this.caseId; data["referralId"] = this.referralId; - data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined; + data["openedAtUtc"] = this.openedAtUtc ? this.openedAtUtc.toISOString() : undefined as any; super.toJSON(data); return data; } @@ -15873,7 +15872,7 @@ export class EmbedParams implements IEmbedParams { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -15907,9 +15906,9 @@ export class EmbedParams implements IEmbedParams { if (Array.isArray(this.embedReport)) { data["embedReport"] = []; for (let item of this.embedReport) - data["embedReport"].push(item.toJSON()); + data["embedReport"].push(item ? item.toJSON() : undefined as any); } - data["embedToken"] = this.embedToken ? this.embedToken.toJSON() : undefined; + data["embedToken"] = this.embedToken ? this.embedToken.toJSON() : undefined as any; return data; } } @@ -15929,7 +15928,7 @@ export class EmbedReport implements IEmbedReport { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -15973,7 +15972,7 @@ export class EmbedToken implements IEmbedToken { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -15982,7 +15981,7 @@ export class EmbedToken implements IEmbedToken { if (_data) { this.token = _data["token"]; this.tokenId = _data["tokenId"]; - this.expiration = _data["expiration"] ? new Date(_data["expiration"].toString()) : undefined; + this.expiration = _data["expiration"] ? new Date(_data["expiration"].toString()) : undefined as any; } } @@ -15997,7 +15996,7 @@ export class EmbedToken implements IEmbedToken { data = typeof data === 'object' ? data : {}; data["token"] = this.token; data["tokenId"] = this.tokenId; - data["expiration"] = this.expiration ? this.expiration.toISOString() : undefined; + data["expiration"] = this.expiration ? this.expiration.toISOString() : undefined as any; return data; } } @@ -16016,7 +16015,7 @@ export class UserAccess implements IUserAccess { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16048,7 +16047,7 @@ export class UserAccess implements IUserAccess { if (Array.isArray(this.organizations)) { data["organizations"] = []; for (let item of this.organizations) - data["organizations"].push(item.toJSON()); + data["organizations"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -16067,7 +16066,7 @@ export class UserOrganizationAccess implements IUserOrganizationAccess { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16099,7 +16098,7 @@ export class UserOrganizationAccess implements IUserOrganizationAccess { if (Array.isArray(this.locations)) { data["locations"] = []; for (let item of this.locations) - data["locations"].push(item.toJSON()); + data["locations"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -16122,7 +16121,7 @@ export class UserLocationAccess implements IUserLocationAccess { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16214,7 +16213,7 @@ export class UserLoginInfo implements IUserLoginInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16225,7 +16224,7 @@ export class UserLoginInfo implements IUserLoginInfo { init(_data?: any) { if (_data) { this.userId = _data["userId"]; - this.lastSignIn = _data["lastSignIn"] ? new Date(_data["lastSignIn"].toString()) : undefined; + this.lastSignIn = _data["lastSignIn"] ? new Date(_data["lastSignIn"].toString()) : undefined as any; this.displayName = _data["displayName"]; if (Array.isArray(_data["identities"])) { this.identities = [] as any; @@ -16245,12 +16244,12 @@ export class UserLoginInfo implements IUserLoginInfo { toJSON(data?: any) { data = typeof data === 'object' ? data : {}; data["userId"] = this.userId; - data["lastSignIn"] = this.lastSignIn ? this.lastSignIn.toISOString() : undefined; + data["lastSignIn"] = this.lastSignIn ? this.lastSignIn.toISOString() : undefined as any; data["displayName"] = this.displayName; if (Array.isArray(this.identities)) { data["identities"] = []; for (let item of this.identities) - data["identities"].push(item.toJSON()); + data["identities"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -16272,7 +16271,7 @@ export class UserLoginIdentity implements IUserLoginIdentity { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } } @@ -16321,7 +16320,7 @@ export class UserInviteReviewInfo implements IUserInviteReviewInfo { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16390,7 +16389,7 @@ export class Account implements IAccount { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16422,7 +16421,7 @@ export class Account implements IAccount { if (Array.isArray(this.organizations)) { data["organizations"] = []; for (let item of this.organizations) - data["organizations"].push(item.toJSON()); + data["organizations"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -16441,7 +16440,7 @@ export class AccountOrganizationAccess implements IAccountOrganizationAccess { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16473,7 +16472,7 @@ export class AccountOrganizationAccess implements IAccountOrganizationAccess { if (Array.isArray(this.locations)) { data["locations"] = []; for (let item of this.locations) - data["locations"].push(item.toJSON()); + data["locations"].push(item ? item.toJSON() : undefined as any); } return data; } @@ -16493,7 +16492,7 @@ export class AccountLocationAccess implements IAccountLocationAccess { if (data) { for (var property in data) { if (data.hasOwnProperty(property)) - (this)[property] = (data)[property]; + (this as any)[property] = (data as any)[property]; } } if (!data) { @@ -16553,7 +16552,7 @@ export interface FileResponse { } export class ApiException extends Error { - message: string; + override message: string; status: number; response: string; headers: { [key: string]: any; }; diff --git a/swagger.json b/swagger.json index dc85065d3..05407a3b7 100644 --- a/swagger.json +++ b/swagger.json @@ -1,5 +1,5 @@ { - "x-generator": "NSwag v14.0.8.0 (NJsonSchema v11.0.1.0 (Newtonsoft.Json v13.0.0.0))", + "x-generator": "NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))", "openapi": "3.0.0", "info": { "title": "CareTogether CMS API", diff --git a/test/CareTogether.Core.Test/AppendBlobEventLogTest.cs b/test/CareTogether.Core.Test/AppendBlobEventLogTest.cs index a54e17c7d..7123b94df 100644 --- a/test/CareTogether.Core.Test/AppendBlobEventLogTest.cs +++ b/test/CareTogether.Core.Test/AppendBlobEventLogTest.cs @@ -19,7 +19,8 @@ public sealed record TestEventB(int EventId) : TestEvent(EventId); public class AppendBlobEventLogTest { private static readonly BlobServiceClient testingClient = new BlobServiceClient( - "UseDevelopmentStorage=true" + "UseDevelopmentStorage=true", + new BlobClientOptions(BlobClientOptions.ServiceVersion.V2021_10_04) ); private static Guid Id(char x) => diff --git a/test/CareTogether.Core.Test/ApprovalCalculationTests/CalculateCombinedFamilyApprovalsTest.cs b/test/CareTogether.Core.Test/ApprovalCalculationTests/CalculateCombinedFamilyApprovalsTest.cs index c1f43ba11..35ae5b7ea 100644 --- a/test/CareTogether.Core.Test/ApprovalCalculationTests/CalculateCombinedFamilyApprovalsTest.cs +++ b/test/CareTogether.Core.Test/ApprovalCalculationTests/CalculateCombinedFamilyApprovalsTest.cs @@ -311,7 +311,7 @@ string expectedIndividualLevelMissingRequirementsString ); var expectedFamilyLevelMissingRequirements = - !expectedFamilyLevelMissingRequirementsString.IsNullOrEmpty() + !string.IsNullOrEmpty(expectedFamilyLevelMissingRequirementsString) ? expectedFamilyLevelMissingRequirementsString?.Split(',') : null; if (expectedFamilyLevelMissingRequirements?.Count() > 0) @@ -329,7 +329,7 @@ string expectedIndividualLevelMissingRequirementsString } var expectedIndividualLevelMissingRequirements = - !expectedIndividualLevelMissingRequirementsString.IsNullOrEmpty() + !string.IsNullOrEmpty(expectedIndividualLevelMissingRequirementsString) ? expectedIndividualLevelMissingRequirementsString?.Split(',') : null; if (expectedIndividualLevelMissingRequirements?.Count() > 0) diff --git a/test/CareTogether.Core.Test/CareTogether.Core.Test.csproj b/test/CareTogether.Core.Test/CareTogether.Core.Test.csproj index 99f82db2a..88db9a1e7 100644 --- a/test/CareTogether.Core.Test/CareTogether.Core.Test.csproj +++ b/test/CareTogether.Core.Test/CareTogether.Core.Test.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 false enable @@ -11,21 +11,20 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + diff --git a/test/CareTogether.Core.Test/DirectoryResourceTest.cs b/test/CareTogether.Core.Test/DirectoryResourceTest.cs index 22932a165..98fd0d75e 100644 --- a/test/CareTogether.Core.Test/DirectoryResourceTest.cs +++ b/test/CareTogether.Core.Test/DirectoryResourceTest.cs @@ -237,7 +237,7 @@ public async Task TestExecutePersonCommand() new UpdatePersonAge(guid6, new ExactAge(new DateTime(2021, 7, 1))), guid0 ); - await Assert.ThrowsExceptionAsync( + await Assert.ThrowsExactlyAsync( () => dut.ExecutePersonCommandAsync( guid1, @@ -246,7 +246,7 @@ await Assert.ThrowsExceptionAsync( guid0 ) ); - await Assert.ThrowsExceptionAsync( + await Assert.ThrowsExactlyAsync( () => dut.ExecutePersonCommandAsync( guid2, diff --git a/test/CareTogether.Core.Test/MemoryEventLogTest.cs b/test/CareTogether.Core.Test/MemoryEventLogTest.cs index 64798a02d..4232e0aeb 100644 --- a/test/CareTogether.Core.Test/MemoryEventLogTest.cs +++ b/test/CareTogether.Core.Test/MemoryEventLogTest.cs @@ -49,7 +49,7 @@ public async Task AppendingAnEventToAnUninitializedTenantLogValidatesTheExpected { var dut = new MemoryEventLog(); - await Assert.ThrowsExceptionAsync( + await Assert.ThrowsExactlyAsync( () => dut.AppendEventAsync(guid1, guid2, 42, 2) ); var getResult = await dut.GetAllEventsAsync(guid1, guid2).ToListAsync(); @@ -94,7 +94,7 @@ public async Task AppendingMultipleEventsToAnUninitializedTenantLogValidatesSequ var dut = new MemoryEventLog(); await dut.AppendEventAsync(guid1, guid2, 41, 1); - await Assert.ThrowsExceptionAsync( + await Assert.ThrowsExactlyAsync( () => dut.AppendEventAsync(guid1, guid2, 42, 3) ); await dut.AppendEventAsync(guid1, guid2, 43, 2); diff --git a/test/CareTogether.TestData/CareTogether.TestData.csproj b/test/CareTogether.TestData/CareTogether.TestData.csproj index 4cd3a19f7..385de6894 100644 --- a/test/CareTogether.TestData/CareTogether.TestData.csproj +++ b/test/CareTogether.TestData/CareTogether.TestData.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable diff --git a/test/Timelines.Test/DateOnlyTimelineTest.cs b/test/Timelines.Test/DateOnlyTimelineTest.cs index 0a257da0b..78fa9d31f 100644 --- a/test/Timelines.Test/DateOnlyTimelineTest.cs +++ b/test/Timelines.Test/DateOnlyTimelineTest.cs @@ -21,7 +21,7 @@ private static void AssertDatesAre(DateOnlyTimeline dut, params int[] dates) [TestMethod] public void ConstructorForbidsEmptyList() { - Assert.ThrowsException( + Assert.ThrowsExactly( () => new DateOnlyTimeline(ImmutableList.Empty) ); } @@ -29,13 +29,13 @@ public void ConstructorForbidsEmptyList() [TestMethod] public void ConstructorForbidsOverlappingRanges() { - Assert.ThrowsException(() => new DateOnlyTimeline([DR(1, 2), DR(2, 3)])); + Assert.ThrowsExactly(() => new DateOnlyTimeline([DR(1, 2), DR(2, 3)])); } [TestMethod] public void ConstructorForbidsOverlappingRanges2() { - Assert.ThrowsException(() => new DateOnlyTimeline([DR(1, 3), DR(2, 4)])); + Assert.ThrowsExactly(() => new DateOnlyTimeline([DR(1, 3), DR(2, 4)])); } [TestMethod] @@ -99,8 +99,8 @@ public void EndReturnsLastDayOfLastRange() public void TakeDaysThrowsForNonPositiveValue() { var dut = new DateOnlyTimeline([DR(1, 5)]); - Assert.ThrowsException(() => dut.TakeDays(0)); - Assert.ThrowsException(() => dut.TakeDays(-1)); + Assert.ThrowsExactly(() => dut.TakeDays(0)); + Assert.ThrowsExactly(() => dut.TakeDays(-1)); } [TestMethod] @@ -831,7 +831,7 @@ public void GetHashCodeIsConsistent3() [TestMethod] public void TaggedConstructorForbidsEmptyList() { - Assert.ThrowsException( + Assert.ThrowsExactly( () => new DateOnlyTimeline(ImmutableList>.Empty) ); } @@ -839,7 +839,7 @@ public void TaggedConstructorForbidsEmptyList() [TestMethod] public void TaggedConstructorForbidsOverlappingRanges() { - Assert.ThrowsException( + Assert.ThrowsExactly( () => new DateOnlyTimeline([DR(1, 2, 'A'), DR(2, 3, 'A')]) ); } @@ -847,7 +847,7 @@ public void TaggedConstructorForbidsOverlappingRanges() [TestMethod] public void TaggedConstructorForbidsOverlappingRanges2() { - Assert.ThrowsException( + Assert.ThrowsExactly( () => new DateOnlyTimeline([DR(1, 3, 'A'), DR(2, 4, 'A')]) ); } diff --git a/test/Timelines.Test/DateRangeTest.cs b/test/Timelines.Test/DateRangeTest.cs index 922d1b256..34f4ceb11 100644 --- a/test/Timelines.Test/DateRangeTest.cs +++ b/test/Timelines.Test/DateRangeTest.cs @@ -82,7 +82,7 @@ public void DateRangeConstructorAllowsEndAfterStart() [TestMethod] public void DateRangeConstructorForbidsStartAfterEnd() { - Assert.ThrowsException(() => new DateRange(D(2), D(1))); + Assert.ThrowsExactly(() => new DateRange(D(2), D(1))); } [DataRow(1, 1, 1, true)] @@ -273,7 +273,7 @@ public void TaggedDateRangeConstructorAllowsEndAfterStart() [TestMethod] public void TaggedDateRangeConstructorForbidsStartAfterEnd() { - Assert.ThrowsException(() => new DateRange(D(2), D(1), 'A')); + Assert.ThrowsExactly(() => new DateRange(D(2), D(1), 'A')); } [DataRow(1, 1, 1, true)] diff --git a/test/Timelines.Test/Timelines.Test.csproj b/test/Timelines.Test/Timelines.Test.csproj index 271a1c035..092149923 100644 --- a/test/Timelines.Test/Timelines.Test.csproj +++ b/test/Timelines.Test/Timelines.Test.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable enable @@ -10,10 +10,10 @@ - - - - + + + +