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() :