@equisoft/equisoft-plan-sdk-typescript
Advanced tools
Comparing version 9.11.1-snapshot.20240813182842 to 9.11.1-snapshot.20240813184441
@@ -36,4 +36,4 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.cmdCopyFNA === null || requestParameters.cmdCopyFNA === undefined) { | ||
throw new runtime.RequiredError('cmdCopyFNA', 'Required parameter requestParameters.cmdCopyFNA was null or undefined when calling cmdCopyFNA.'); | ||
if (requestParameters['cmdCopyFNA'] == null) { | ||
throw new runtime.RequiredError('cmdCopyFNA', 'Required parameter "cmdCopyFNA" was null or undefined when calling cmdCopyFNA().'); | ||
} | ||
@@ -56,3 +56,3 @@ const queryParameters = {}; | ||
query: queryParameters, | ||
body: (0, index_1.CmdCopyFNAToJSON)(requestParameters.cmdCopyFNA), | ||
body: (0, index_1.CmdCopyFNAToJSON)(requestParameters['cmdCopyFNA']), | ||
}, initOverrides); | ||
@@ -59,0 +59,0 @@ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CmdCopyFNAResponseFromJSON)(jsonValue)); |
@@ -36,4 +36,4 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getOrganization.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getOrganization().'); | ||
} | ||
@@ -51,3 +51,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/v2/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -72,4 +72,4 @@ headers: headerParameters, | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling listOrganizationUsers.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listOrganizationUsers().'); | ||
} | ||
@@ -87,3 +87,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/v2/organizations/{id}/users`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/organizations/{id}/users`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -108,8 +108,8 @@ headers: headerParameters, | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.organizationUuid === null || requestParameters.organizationUuid === undefined) { | ||
throw new runtime.RequiredError('organizationUuid', 'Required parameter requestParameters.organizationUuid was null or undefined when calling listOrganizations.'); | ||
if (requestParameters['organizationUuid'] == null) { | ||
throw new runtime.RequiredError('organizationUuid', 'Required parameter "organizationUuid" was null or undefined when calling listOrganizations().'); | ||
} | ||
const queryParameters = {}; | ||
if (requestParameters.organizationUuid !== undefined) { | ||
queryParameters['organizationUuid'] = requestParameters.organizationUuid; | ||
if (requestParameters['organizationUuid'] != null) { | ||
queryParameters['organizationUuid'] = requestParameters['organizationUuid']; | ||
} | ||
@@ -116,0 +116,0 @@ const headerParameters = {}; |
@@ -37,4 +37,4 @@ "use strict"; | ||
const queryParameters = {}; | ||
if (requestParameters.clientExternalUuid !== undefined) { | ||
queryParameters['clientExternalUuid'] = requestParameters.clientExternalUuid; | ||
if (requestParameters['clientExternalUuid'] != null) { | ||
queryParameters['clientExternalUuid'] = requestParameters['clientExternalUuid']; | ||
} | ||
@@ -41,0 +41,0 @@ const headerParameters = {}; |
@@ -36,4 +36,4 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getPlan.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPlan().'); | ||
} | ||
@@ -43,3 +43,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/fna/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/fna/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -46,0 +46,0 @@ headers: headerParameters, |
@@ -36,4 +36,4 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getUser.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getUser().'); | ||
} | ||
@@ -51,3 +51,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -54,0 +54,0 @@ headers: headerParameters, |
@@ -33,4 +33,4 @@ /* tslint:disable */ | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.cmdCopyFNA === null || requestParameters.cmdCopyFNA === undefined) { | ||
throw new runtime.RequiredError('cmdCopyFNA', 'Required parameter requestParameters.cmdCopyFNA was null or undefined when calling cmdCopyFNA.'); | ||
if (requestParameters['cmdCopyFNA'] == null) { | ||
throw new runtime.RequiredError('cmdCopyFNA', 'Required parameter "cmdCopyFNA" was null or undefined when calling cmdCopyFNA().'); | ||
} | ||
@@ -53,3 +53,3 @@ const queryParameters = {}; | ||
query: queryParameters, | ||
body: CmdCopyFNAToJSON(requestParameters.cmdCopyFNA), | ||
body: CmdCopyFNAToJSON(requestParameters['cmdCopyFNA']), | ||
}, initOverrides); | ||
@@ -56,0 +56,0 @@ return new runtime.JSONApiResponse(response, (jsonValue) => CmdCopyFNAResponseFromJSON(jsonValue)); |
@@ -33,4 +33,4 @@ /* tslint:disable */ | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getOrganization.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getOrganization().'); | ||
} | ||
@@ -48,3 +48,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/v2/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -69,4 +69,4 @@ headers: headerParameters, | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling listOrganizationUsers.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listOrganizationUsers().'); | ||
} | ||
@@ -84,3 +84,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/v2/organizations/{id}/users`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/organizations/{id}/users`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -105,8 +105,8 @@ headers: headerParameters, | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.organizationUuid === null || requestParameters.organizationUuid === undefined) { | ||
throw new runtime.RequiredError('organizationUuid', 'Required parameter requestParameters.organizationUuid was null or undefined when calling listOrganizations.'); | ||
if (requestParameters['organizationUuid'] == null) { | ||
throw new runtime.RequiredError('organizationUuid', 'Required parameter "organizationUuid" was null or undefined when calling listOrganizations().'); | ||
} | ||
const queryParameters = {}; | ||
if (requestParameters.organizationUuid !== undefined) { | ||
queryParameters['organizationUuid'] = requestParameters.organizationUuid; | ||
if (requestParameters['organizationUuid'] != null) { | ||
queryParameters['organizationUuid'] = requestParameters['organizationUuid']; | ||
} | ||
@@ -113,0 +113,0 @@ const headerParameters = {}; |
@@ -34,4 +34,4 @@ /* tslint:disable */ | ||
const queryParameters = {}; | ||
if (requestParameters.clientExternalUuid !== undefined) { | ||
queryParameters['clientExternalUuid'] = requestParameters.clientExternalUuid; | ||
if (requestParameters['clientExternalUuid'] != null) { | ||
queryParameters['clientExternalUuid'] = requestParameters['clientExternalUuid']; | ||
} | ||
@@ -38,0 +38,0 @@ const headerParameters = {}; |
@@ -33,4 +33,4 @@ /* tslint:disable */ | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getPlan.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPlan().'); | ||
} | ||
@@ -40,3 +40,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/fna/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/fna/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -43,0 +43,0 @@ headers: headerParameters, |
@@ -33,4 +33,4 @@ /* tslint:disable */ | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getUser.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getUser().'); | ||
} | ||
@@ -48,3 +48,3 @@ const queryParameters = {}; | ||
const response = yield this.request({ | ||
path: `/fna/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -51,0 +51,0 @@ headers: headerParameters, |
@@ -42,5 +42,5 @@ /** | ||
*/ | ||
export declare function instanceOfCmdCopyFNA(value: object): boolean; | ||
export declare function instanceOfCmdCopyFNA(value: object): value is CmdCopyFNA; | ||
export declare function CmdCopyFNAFromJSON(json: any): CmdCopyFNA; | ||
export declare function CmdCopyFNAFromJSONTyped(json: any, ignoreDiscriminator: boolean): CmdCopyFNA; | ||
export declare function CmdCopyFNAToJSON(value?: CmdCopyFNA | null): any; |
@@ -14,3 +14,2 @@ /* tslint:disable */ | ||
*/ | ||
import { exists } from '../runtime'; | ||
/** | ||
@@ -20,5 +19,5 @@ * Check if a given object implements the CmdCopyFNA interface. | ||
export function instanceOfCmdCopyFNA(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "fnaUuid" in value; | ||
return isInstance; | ||
if (!('fnaUuid' in value) || value['fnaUuid'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -29,3 +28,3 @@ export function CmdCopyFNAFromJSON(json) { | ||
export function CmdCopyFNAFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -35,18 +34,15 @@ } | ||
'fnaUuid': json['fnaUuid'], | ||
'userEmail': !exists(json, 'userEmail') ? undefined : json['userEmail'], | ||
'newParticipantUuids': !exists(json, 'newParticipantUuids') ? undefined : json['newParticipantUuids'], | ||
'userEmail': json['userEmail'] == null ? undefined : json['userEmail'], | ||
'newParticipantUuids': json['newParticipantUuids'] == null ? undefined : json['newParticipantUuids'], | ||
}; | ||
} | ||
export function CmdCopyFNAToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'fnaUuid': value.fnaUuid, | ||
'userEmail': value.userEmail, | ||
'newParticipantUuids': value.newParticipantUuids, | ||
'fnaUuid': value['fnaUuid'], | ||
'userEmail': value['userEmail'], | ||
'newParticipantUuids': value['newParticipantUuids'], | ||
}; | ||
} |
@@ -28,5 +28,5 @@ /** | ||
*/ | ||
export declare function instanceOfCmdCopyFNAResponse(value: object): boolean; | ||
export declare function instanceOfCmdCopyFNAResponse(value: object): value is CmdCopyFNAResponse; | ||
export declare function CmdCopyFNAResponseFromJSON(json: any): CmdCopyFNAResponse; | ||
export declare function CmdCopyFNAResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CmdCopyFNAResponse; | ||
export declare function CmdCopyFNAResponseToJSON(value?: CmdCopyFNAResponse | null): any; |
@@ -18,5 +18,5 @@ /* tslint:disable */ | ||
export function instanceOfCmdCopyFNAResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "newFnaUuid" in value; | ||
return isInstance; | ||
if (!('newFnaUuid' in value) || value['newFnaUuid'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -27,3 +27,3 @@ export function CmdCopyFNAResponseFromJSON(json) { | ||
export function CmdCopyFNAResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -36,11 +36,8 @@ } | ||
export function CmdCopyFNAResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'newFnaUuid': value.newFnaUuid, | ||
'newFnaUuid': value['newFnaUuid'], | ||
}; | ||
} |
@@ -40,5 +40,5 @@ /** | ||
*/ | ||
export declare function instanceOfErrorResponse(value: object): boolean; | ||
export declare function instanceOfErrorResponse(value: object): value is ErrorResponse; | ||
export declare function ErrorResponseFromJSON(json: any): ErrorResponse; | ||
export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse; | ||
export declare function ErrorResponseToJSON(value?: ErrorResponse | null): any; |
@@ -14,3 +14,2 @@ /* tslint:disable */ | ||
*/ | ||
import { exists } from '../runtime'; | ||
/** | ||
@@ -20,4 +19,3 @@ * Check if a given object implements the ErrorResponse interface. | ||
export function instanceOfErrorResponse(value) { | ||
let isInstance = true; | ||
return isInstance; | ||
return true; | ||
} | ||
@@ -28,23 +26,20 @@ export function ErrorResponseFromJSON(json) { | ||
export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
'error': !exists(json, 'error') ? undefined : json['error'], | ||
'errorDescription': !exists(json, 'error_description') ? undefined : json['error_description'], | ||
'hint': !exists(json, 'hint') ? undefined : json['hint'], | ||
'error': json['error'] == null ? undefined : json['error'], | ||
'errorDescription': json['error_description'] == null ? undefined : json['error_description'], | ||
'hint': json['hint'] == null ? undefined : json['hint'], | ||
}; | ||
} | ||
export function ErrorResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'error': value.error, | ||
'error_description': value.errorDescription, | ||
'hint': value.hint, | ||
'error': value['error'], | ||
'error_description': value['errorDescription'], | ||
'hint': value['hint'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfOrganizationsListOrganizationsResponse(value: object): boolean; | ||
export declare function instanceOfOrganizationsListOrganizationsResponse(value: object): value is OrganizationsListOrganizationsResponse; | ||
export declare function OrganizationsListOrganizationsResponseFromJSON(json: any): OrganizationsListOrganizationsResponse; | ||
export declare function OrganizationsListOrganizationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsListOrganizationsResponse; | ||
export declare function OrganizationsListOrganizationsResponseToJSON(value?: OrganizationsListOrganizationsResponse | null): any; |
@@ -19,6 +19,7 @@ /* tslint:disable */ | ||
export function instanceOfOrganizationsListOrganizationsResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "count" in value; | ||
isInstance = isInstance && "results" in value; | ||
return isInstance; | ||
if (!('count' in value) || value['count'] === undefined) | ||
return false; | ||
if (!('results' in value) || value['results'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -29,3 +30,3 @@ export function OrganizationsListOrganizationsResponseFromJSON(json) { | ||
export function OrganizationsListOrganizationsResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -39,12 +40,9 @@ } | ||
export function OrganizationsListOrganizationsResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'count': value.count, | ||
'results': (value.results.map(OrganizationsOrganizationToJSON)), | ||
'count': value['count'], | ||
'results': (value['results'].map(OrganizationsOrganizationToJSON)), | ||
}; | ||
} |
@@ -46,5 +46,5 @@ /** | ||
*/ | ||
export declare function instanceOfOrganizationsOrganization(value: object): boolean; | ||
export declare function instanceOfOrganizationsOrganization(value: object): value is OrganizationsOrganization; | ||
export declare function OrganizationsOrganizationFromJSON(json: any): OrganizationsOrganization; | ||
export declare function OrganizationsOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganization; | ||
export declare function OrganizationsOrganizationToJSON(value?: OrganizationsOrganization | null): any; |
@@ -14,3 +14,2 @@ /* tslint:disable */ | ||
*/ | ||
import { exists } from '../runtime'; | ||
/** | ||
@@ -20,6 +19,7 @@ * Check if a given object implements the OrganizationsOrganization interface. | ||
export function instanceOfOrganizationsOrganization(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "accountType" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('accountType' in value) || value['accountType'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -30,3 +30,3 @@ export function OrganizationsOrganizationFromJSON(json) { | ||
export function OrganizationsOrganizationFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -37,19 +37,16 @@ } | ||
'accountType': json['accountType'], | ||
'externalDatabase': !exists(json, 'externalDatabase') ? undefined : json['externalDatabase'], | ||
'organizationUuid': !exists(json, 'organizationUuid') ? undefined : json['organizationUuid'], | ||
'externalDatabase': json['externalDatabase'] == null ? undefined : json['externalDatabase'], | ||
'organizationUuid': json['organizationUuid'] == null ? undefined : json['organizationUuid'], | ||
}; | ||
} | ||
export function OrganizationsOrganizationToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'accountType': value.accountType, | ||
'externalDatabase': value.externalDatabase, | ||
'organizationUuid': value.organizationUuid, | ||
'id': value['id'], | ||
'accountType': value['accountType'], | ||
'externalDatabase': value['externalDatabase'], | ||
'organizationUuid': value['organizationUuid'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfPlansListPlansResponse(value: object): boolean; | ||
export declare function instanceOfPlansListPlansResponse(value: object): value is PlansListPlansResponse; | ||
export declare function PlansListPlansResponseFromJSON(json: any): PlansListPlansResponse; | ||
export declare function PlansListPlansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansListPlansResponse; | ||
export declare function PlansListPlansResponseToJSON(value?: PlansListPlansResponse | null): any; |
@@ -19,6 +19,7 @@ /* tslint:disable */ | ||
export function instanceOfPlansListPlansResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "plans" in value; | ||
isInstance = isInstance && "createPlanUrl" in value; | ||
return isInstance; | ||
if (!('plans' in value) || value['plans'] === undefined) | ||
return false; | ||
if (!('createPlanUrl' in value) || value['createPlanUrl'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -29,3 +30,3 @@ export function PlansListPlansResponseFromJSON(json) { | ||
export function PlansListPlansResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -39,12 +40,9 @@ } | ||
export function PlansListPlansResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'plans': (value.plans.map(PlansPlanToJSON)), | ||
'createPlanUrl': value.createPlanUrl, | ||
'plans': (value['plans'].map(PlansPlanToJSON)), | ||
'createPlanUrl': value['createPlanUrl'], | ||
}; | ||
} |
@@ -89,5 +89,5 @@ /** | ||
*/ | ||
export declare function instanceOfPlansPlan(value: object): boolean; | ||
export declare function instanceOfPlansPlan(value: object): value is PlansPlan; | ||
export declare function PlansPlanFromJSON(json: any): PlansPlan; | ||
export declare function PlansPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansPlan; | ||
export declare function PlansPlanToJSON(value?: PlansPlan | null): any; |
@@ -14,3 +14,2 @@ /* tslint:disable */ | ||
*/ | ||
import { exists } from '../runtime'; | ||
/** | ||
@@ -37,11 +36,17 @@ * @export | ||
export function instanceOfPlansPlan(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "type" in value; | ||
isInstance = isInstance && "modifiedDate" in value; | ||
isInstance = isInstance && "clientDisplayName" in value; | ||
isInstance = isInstance && "status" in value; | ||
isInstance = isInstance && "statusDate" in value; | ||
isInstance = isInstance && "url" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('type' in value) || value['type'] === undefined) | ||
return false; | ||
if (!('modifiedDate' in value) || value['modifiedDate'] === undefined) | ||
return false; | ||
if (!('clientDisplayName' in value) || value['clientDisplayName'] === undefined) | ||
return false; | ||
if (!('status' in value) || value['status'] === undefined) | ||
return false; | ||
if (!('statusDate' in value) || value['statusDate'] === undefined) | ||
return false; | ||
if (!('url' in value) || value['url'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -52,3 +57,3 @@ export function PlansPlanFromJSON(json) { | ||
export function PlansPlanFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -61,3 +66,3 @@ } | ||
'clientDisplayName': json['clientDisplayName'], | ||
'spouseDisplayName': !exists(json, 'spouseDisplayName') ? undefined : json['spouseDisplayName'], | ||
'spouseDisplayName': json['spouseDisplayName'] == null ? undefined : json['spouseDisplayName'], | ||
'status': json['status'], | ||
@@ -69,18 +74,15 @@ 'statusDate': json['statusDate'], | ||
export function PlansPlanToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'type': value.type, | ||
'modifiedDate': value.modifiedDate, | ||
'clientDisplayName': value.clientDisplayName, | ||
'spouseDisplayName': value.spouseDisplayName, | ||
'status': value.status, | ||
'statusDate': value.statusDate, | ||
'url': value.url, | ||
'id': value['id'], | ||
'type': value['type'], | ||
'modifiedDate': value['modifiedDate'], | ||
'clientDisplayName': value['clientDisplayName'], | ||
'spouseDisplayName': value['spouseDisplayName'], | ||
'status': value['status'], | ||
'statusDate': value['statusDate'], | ||
'url': value['url'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfUsersListUsersResponse(value: object): boolean; | ||
export declare function instanceOfUsersListUsersResponse(value: object): value is UsersListUsersResponse; | ||
export declare function UsersListUsersResponseFromJSON(json: any): UsersListUsersResponse; | ||
export declare function UsersListUsersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersListUsersResponse; | ||
export declare function UsersListUsersResponseToJSON(value?: UsersListUsersResponse | null): any; |
@@ -19,6 +19,7 @@ /* tslint:disable */ | ||
export function instanceOfUsersListUsersResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "count" in value; | ||
isInstance = isInstance && "results" in value; | ||
return isInstance; | ||
if (!('count' in value) || value['count'] === undefined) | ||
return false; | ||
if (!('results' in value) || value['results'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -29,3 +30,3 @@ export function UsersListUsersResponseFromJSON(json) { | ||
export function UsersListUsersResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -39,12 +40,9 @@ } | ||
export function UsersListUsersResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'count': value.count, | ||
'results': (value.results.map(UsersUserToJSON)), | ||
'count': value['count'], | ||
'results': (value['results'].map(UsersUserToJSON)), | ||
}; | ||
} |
@@ -58,5 +58,5 @@ /** | ||
*/ | ||
export declare function instanceOfUsersUser(value: object): boolean; | ||
export declare function instanceOfUsersUser(value: object): value is UsersUser; | ||
export declare function UsersUserFromJSON(json: any): UsersUser; | ||
export declare function UsersUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUser; | ||
export declare function UsersUserToJSON(value?: UsersUser | null): any; |
@@ -18,10 +18,15 @@ /* tslint:disable */ | ||
export function instanceOfUsersUser(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "userType" in value; | ||
isInstance = isInstance && "name" in value; | ||
isInstance = isInstance && "email" in value; | ||
isInstance = isInstance && "isAdmin" in value; | ||
isInstance = isInstance && "isActive" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('userType' in value) || value['userType'] === undefined) | ||
return false; | ||
if (!('name' in value) || value['name'] === undefined) | ||
return false; | ||
if (!('email' in value) || value['email'] === undefined) | ||
return false; | ||
if (!('isAdmin' in value) || value['isAdmin'] === undefined) | ||
return false; | ||
if (!('isActive' in value) || value['isActive'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -32,3 +37,3 @@ export function UsersUserFromJSON(json) { | ||
export function UsersUserFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -46,16 +51,13 @@ } | ||
export function UsersUserToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'userType': value.userType, | ||
'name': value.name, | ||
'email': value.email, | ||
'isAdmin': value.isAdmin, | ||
'isActive': value.isActive, | ||
'id': value['id'], | ||
'userType': value['userType'], | ||
'name': value['name'], | ||
'email': value['email'], | ||
'isAdmin': value['isAdmin'], | ||
'isActive': value['isActive'], | ||
}; | ||
} |
@@ -58,5 +58,5 @@ /** | ||
*/ | ||
export declare function instanceOfUsersUserContext(value: object): boolean; | ||
export declare function instanceOfUsersUserContext(value: object): value is UsersUserContext; | ||
export declare function UsersUserContextFromJSON(json: any): UsersUserContext; | ||
export declare function UsersUserContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUserContext; | ||
export declare function UsersUserContextToJSON(value?: UsersUserContext | null): any; |
@@ -18,10 +18,15 @@ /* tslint:disable */ | ||
export function instanceOfUsersUserContext(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "userType" in value; | ||
isInstance = isInstance && "name" in value; | ||
isInstance = isInstance && "email" in value; | ||
isInstance = isInstance && "isAdmin" in value; | ||
isInstance = isInstance && "isActive" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('userType' in value) || value['userType'] === undefined) | ||
return false; | ||
if (!('name' in value) || value['name'] === undefined) | ||
return false; | ||
if (!('email' in value) || value['email'] === undefined) | ||
return false; | ||
if (!('isAdmin' in value) || value['isAdmin'] === undefined) | ||
return false; | ||
if (!('isActive' in value) || value['isActive'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -32,3 +37,3 @@ export function UsersUserContextFromJSON(json) { | ||
export function UsersUserContextFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -46,16 +51,13 @@ } | ||
export function UsersUserContextToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'userType': value.userType, | ||
'name': value.name, | ||
'email': value.email, | ||
'isAdmin': value.isAdmin, | ||
'isActive': value.isActive, | ||
'id': value['id'], | ||
'userType': value['userType'], | ||
'name': value['name'], | ||
'email': value['email'], | ||
'isAdmin': value['isAdmin'], | ||
'isActive': value['isActive'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfV1ErrorResponse(value: object): boolean; | ||
export declare function instanceOfV1ErrorResponse(value: object): value is V1ErrorResponse; | ||
export declare function V1ErrorResponseFromJSON(json: any): V1ErrorResponse; | ||
export declare function V1ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ErrorResponse; | ||
export declare function V1ErrorResponseToJSON(value?: V1ErrorResponse | null): any; |
@@ -14,3 +14,2 @@ /* tslint:disable */ | ||
*/ | ||
import { exists } from '../runtime'; | ||
import { V1ErrorResponseDataFromJSON, V1ErrorResponseDataToJSON, } from './V1ErrorResponseData'; | ||
@@ -21,5 +20,5 @@ /** | ||
export function instanceOfV1ErrorResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "status" in value; | ||
return isInstance; | ||
if (!('status' in value) || value['status'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -30,3 +29,3 @@ export function V1ErrorResponseFromJSON(json) { | ||
export function V1ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -36,16 +35,13 @@ } | ||
'status': json['status'], | ||
'data': !exists(json, 'data') ? undefined : V1ErrorResponseDataFromJSON(json['data']), | ||
'data': json['data'] == null ? undefined : V1ErrorResponseDataFromJSON(json['data']), | ||
}; | ||
} | ||
export function V1ErrorResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'status': value.status, | ||
'data': V1ErrorResponseDataToJSON(value.data), | ||
'status': value['status'], | ||
'data': V1ErrorResponseDataToJSON(value['data']), | ||
}; | ||
} |
@@ -34,5 +34,5 @@ /** | ||
*/ | ||
export declare function instanceOfV1ErrorResponseData(value: object): boolean; | ||
export declare function instanceOfV1ErrorResponseData(value: object): value is V1ErrorResponseData; | ||
export declare function V1ErrorResponseDataFromJSON(json: any): V1ErrorResponseData; | ||
export declare function V1ErrorResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ErrorResponseData; | ||
export declare function V1ErrorResponseDataToJSON(value?: V1ErrorResponseData | null): any; |
@@ -14,3 +14,2 @@ /* tslint:disable */ | ||
*/ | ||
import { exists } from '../runtime'; | ||
/** | ||
@@ -20,5 +19,5 @@ * Check if a given object implements the V1ErrorResponseData interface. | ||
export function instanceOfV1ErrorResponseData(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "message" in value; | ||
return isInstance; | ||
if (!('message' in value) || value['message'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -29,3 +28,3 @@ export function V1ErrorResponseDataFromJSON(json) { | ||
export function V1ErrorResponseDataFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -35,16 +34,13 @@ } | ||
'message': json['message'], | ||
'errorKey': !exists(json, 'error_key') ? undefined : json['error_key'], | ||
'errorKey': json['error_key'] == null ? undefined : json['error_key'], | ||
}; | ||
} | ||
export function V1ErrorResponseDataToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'message': value.message, | ||
'error_key': value.errorKey, | ||
'message': value['message'], | ||
'error_key': value['errorKey'], | ||
}; | ||
} |
@@ -20,3 +20,3 @@ /** | ||
password?: string; | ||
apiKey?: string | ((name: string) => string); | ||
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); | ||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); | ||
@@ -36,3 +36,3 @@ headers?: HTTPHeaders; | ||
get password(): string | undefined; | ||
get apiKey(): ((name: string) => string) | undefined; | ||
get apiKey(): ((name: string) => string | Promise<string>) | undefined; | ||
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined; | ||
@@ -127,3 +127,2 @@ get headers(): HTTPHeaders | undefined; | ||
} | ||
export declare function exists(json: any, key: string): boolean; | ||
export declare function querystring(params: HTTPQuery, prefix?: string): string; | ||
@@ -130,0 +129,0 @@ export declare function mapValues(data: any, fn: (item: any) => any): {}; |
@@ -248,6 +248,2 @@ /* tslint:disable */ | ||
}; | ||
export function exists(json, key) { | ||
const value = json[key]; | ||
return value !== null && value !== undefined; | ||
} | ||
export function querystring(params, prefix = '') { | ||
@@ -254,0 +250,0 @@ return Object.keys(params) |
@@ -42,5 +42,5 @@ /** | ||
*/ | ||
export declare function instanceOfCmdCopyFNA(value: object): boolean; | ||
export declare function instanceOfCmdCopyFNA(value: object): value is CmdCopyFNA; | ||
export declare function CmdCopyFNAFromJSON(json: any): CmdCopyFNA; | ||
export declare function CmdCopyFNAFromJSONTyped(json: any, ignoreDiscriminator: boolean): CmdCopyFNA; | ||
export declare function CmdCopyFNAToJSON(value?: CmdCopyFNA | null): any; |
@@ -20,3 +20,2 @@ "use strict"; | ||
exports.CmdCopyFNAToJSON = CmdCopyFNAToJSON; | ||
const runtime_1 = require("../runtime"); | ||
/** | ||
@@ -26,5 +25,5 @@ * Check if a given object implements the CmdCopyFNA interface. | ||
function instanceOfCmdCopyFNA(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "fnaUuid" in value; | ||
return isInstance; | ||
if (!('fnaUuid' in value) || value['fnaUuid'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -35,3 +34,3 @@ function CmdCopyFNAFromJSON(json) { | ||
function CmdCopyFNAFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -41,18 +40,15 @@ } | ||
'fnaUuid': json['fnaUuid'], | ||
'userEmail': !(0, runtime_1.exists)(json, 'userEmail') ? undefined : json['userEmail'], | ||
'newParticipantUuids': !(0, runtime_1.exists)(json, 'newParticipantUuids') ? undefined : json['newParticipantUuids'], | ||
'userEmail': json['userEmail'] == null ? undefined : json['userEmail'], | ||
'newParticipantUuids': json['newParticipantUuids'] == null ? undefined : json['newParticipantUuids'], | ||
}; | ||
} | ||
function CmdCopyFNAToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'fnaUuid': value.fnaUuid, | ||
'userEmail': value.userEmail, | ||
'newParticipantUuids': value.newParticipantUuids, | ||
'fnaUuid': value['fnaUuid'], | ||
'userEmail': value['userEmail'], | ||
'newParticipantUuids': value['newParticipantUuids'], | ||
}; | ||
} |
@@ -28,5 +28,5 @@ /** | ||
*/ | ||
export declare function instanceOfCmdCopyFNAResponse(value: object): boolean; | ||
export declare function instanceOfCmdCopyFNAResponse(value: object): value is CmdCopyFNAResponse; | ||
export declare function CmdCopyFNAResponseFromJSON(json: any): CmdCopyFNAResponse; | ||
export declare function CmdCopyFNAResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CmdCopyFNAResponse; | ||
export declare function CmdCopyFNAResponseToJSON(value?: CmdCopyFNAResponse | null): any; |
@@ -24,5 +24,5 @@ "use strict"; | ||
function instanceOfCmdCopyFNAResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "newFnaUuid" in value; | ||
return isInstance; | ||
if (!('newFnaUuid' in value) || value['newFnaUuid'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -33,3 +33,3 @@ function CmdCopyFNAResponseFromJSON(json) { | ||
function CmdCopyFNAResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -42,11 +42,8 @@ } | ||
function CmdCopyFNAResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'newFnaUuid': value.newFnaUuid, | ||
'newFnaUuid': value['newFnaUuid'], | ||
}; | ||
} |
@@ -40,5 +40,5 @@ /** | ||
*/ | ||
export declare function instanceOfErrorResponse(value: object): boolean; | ||
export declare function instanceOfErrorResponse(value: object): value is ErrorResponse; | ||
export declare function ErrorResponseFromJSON(json: any): ErrorResponse; | ||
export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse; | ||
export declare function ErrorResponseToJSON(value?: ErrorResponse | null): any; |
@@ -20,3 +20,2 @@ "use strict"; | ||
exports.ErrorResponseToJSON = ErrorResponseToJSON; | ||
const runtime_1 = require("../runtime"); | ||
/** | ||
@@ -26,4 +25,3 @@ * Check if a given object implements the ErrorResponse interface. | ||
function instanceOfErrorResponse(value) { | ||
let isInstance = true; | ||
return isInstance; | ||
return true; | ||
} | ||
@@ -34,23 +32,20 @@ function ErrorResponseFromJSON(json) { | ||
function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'], | ||
'errorDescription': !(0, runtime_1.exists)(json, 'error_description') ? undefined : json['error_description'], | ||
'hint': !(0, runtime_1.exists)(json, 'hint') ? undefined : json['hint'], | ||
'error': json['error'] == null ? undefined : json['error'], | ||
'errorDescription': json['error_description'] == null ? undefined : json['error_description'], | ||
'hint': json['hint'] == null ? undefined : json['hint'], | ||
}; | ||
} | ||
function ErrorResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'error': value.error, | ||
'error_description': value.errorDescription, | ||
'hint': value.hint, | ||
'error': value['error'], | ||
'error_description': value['errorDescription'], | ||
'hint': value['hint'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfOrganizationsListOrganizationsResponse(value: object): boolean; | ||
export declare function instanceOfOrganizationsListOrganizationsResponse(value: object): value is OrganizationsListOrganizationsResponse; | ||
export declare function OrganizationsListOrganizationsResponseFromJSON(json: any): OrganizationsListOrganizationsResponse; | ||
export declare function OrganizationsListOrganizationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsListOrganizationsResponse; | ||
export declare function OrganizationsListOrganizationsResponseToJSON(value?: OrganizationsListOrganizationsResponse | null): any; |
@@ -25,6 +25,7 @@ "use strict"; | ||
function instanceOfOrganizationsListOrganizationsResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "count" in value; | ||
isInstance = isInstance && "results" in value; | ||
return isInstance; | ||
if (!('count' in value) || value['count'] === undefined) | ||
return false; | ||
if (!('results' in value) || value['results'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -35,3 +36,3 @@ function OrganizationsListOrganizationsResponseFromJSON(json) { | ||
function OrganizationsListOrganizationsResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -45,12 +46,9 @@ } | ||
function OrganizationsListOrganizationsResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'count': value.count, | ||
'results': (value.results.map(OrganizationsOrganization_1.OrganizationsOrganizationToJSON)), | ||
'count': value['count'], | ||
'results': (value['results'].map(OrganizationsOrganization_1.OrganizationsOrganizationToJSON)), | ||
}; | ||
} |
@@ -46,5 +46,5 @@ /** | ||
*/ | ||
export declare function instanceOfOrganizationsOrganization(value: object): boolean; | ||
export declare function instanceOfOrganizationsOrganization(value: object): value is OrganizationsOrganization; | ||
export declare function OrganizationsOrganizationFromJSON(json: any): OrganizationsOrganization; | ||
export declare function OrganizationsOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganization; | ||
export declare function OrganizationsOrganizationToJSON(value?: OrganizationsOrganization | null): any; |
@@ -20,3 +20,2 @@ "use strict"; | ||
exports.OrganizationsOrganizationToJSON = OrganizationsOrganizationToJSON; | ||
const runtime_1 = require("../runtime"); | ||
/** | ||
@@ -26,6 +25,7 @@ * Check if a given object implements the OrganizationsOrganization interface. | ||
function instanceOfOrganizationsOrganization(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "accountType" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('accountType' in value) || value['accountType'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -36,3 +36,3 @@ function OrganizationsOrganizationFromJSON(json) { | ||
function OrganizationsOrganizationFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -43,19 +43,16 @@ } | ||
'accountType': json['accountType'], | ||
'externalDatabase': !(0, runtime_1.exists)(json, 'externalDatabase') ? undefined : json['externalDatabase'], | ||
'organizationUuid': !(0, runtime_1.exists)(json, 'organizationUuid') ? undefined : json['organizationUuid'], | ||
'externalDatabase': json['externalDatabase'] == null ? undefined : json['externalDatabase'], | ||
'organizationUuid': json['organizationUuid'] == null ? undefined : json['organizationUuid'], | ||
}; | ||
} | ||
function OrganizationsOrganizationToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'accountType': value.accountType, | ||
'externalDatabase': value.externalDatabase, | ||
'organizationUuid': value.organizationUuid, | ||
'id': value['id'], | ||
'accountType': value['accountType'], | ||
'externalDatabase': value['externalDatabase'], | ||
'organizationUuid': value['organizationUuid'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfPlansListPlansResponse(value: object): boolean; | ||
export declare function instanceOfPlansListPlansResponse(value: object): value is PlansListPlansResponse; | ||
export declare function PlansListPlansResponseFromJSON(json: any): PlansListPlansResponse; | ||
export declare function PlansListPlansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansListPlansResponse; | ||
export declare function PlansListPlansResponseToJSON(value?: PlansListPlansResponse | null): any; |
@@ -25,6 +25,7 @@ "use strict"; | ||
function instanceOfPlansListPlansResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "plans" in value; | ||
isInstance = isInstance && "createPlanUrl" in value; | ||
return isInstance; | ||
if (!('plans' in value) || value['plans'] === undefined) | ||
return false; | ||
if (!('createPlanUrl' in value) || value['createPlanUrl'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -35,3 +36,3 @@ function PlansListPlansResponseFromJSON(json) { | ||
function PlansListPlansResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -45,12 +46,9 @@ } | ||
function PlansListPlansResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'plans': (value.plans.map(PlansPlan_1.PlansPlanToJSON)), | ||
'createPlanUrl': value.createPlanUrl, | ||
'plans': (value['plans'].map(PlansPlan_1.PlansPlanToJSON)), | ||
'createPlanUrl': value['createPlanUrl'], | ||
}; | ||
} |
@@ -89,5 +89,5 @@ /** | ||
*/ | ||
export declare function instanceOfPlansPlan(value: object): boolean; | ||
export declare function instanceOfPlansPlan(value: object): value is PlansPlan; | ||
export declare function PlansPlanFromJSON(json: any): PlansPlan; | ||
export declare function PlansPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansPlan; | ||
export declare function PlansPlanToJSON(value?: PlansPlan | null): any; |
@@ -21,3 +21,2 @@ "use strict"; | ||
exports.PlansPlanToJSON = PlansPlanToJSON; | ||
const runtime_1 = require("../runtime"); | ||
/** | ||
@@ -44,11 +43,17 @@ * @export | ||
function instanceOfPlansPlan(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "type" in value; | ||
isInstance = isInstance && "modifiedDate" in value; | ||
isInstance = isInstance && "clientDisplayName" in value; | ||
isInstance = isInstance && "status" in value; | ||
isInstance = isInstance && "statusDate" in value; | ||
isInstance = isInstance && "url" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('type' in value) || value['type'] === undefined) | ||
return false; | ||
if (!('modifiedDate' in value) || value['modifiedDate'] === undefined) | ||
return false; | ||
if (!('clientDisplayName' in value) || value['clientDisplayName'] === undefined) | ||
return false; | ||
if (!('status' in value) || value['status'] === undefined) | ||
return false; | ||
if (!('statusDate' in value) || value['statusDate'] === undefined) | ||
return false; | ||
if (!('url' in value) || value['url'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -59,3 +64,3 @@ function PlansPlanFromJSON(json) { | ||
function PlansPlanFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -68,3 +73,3 @@ } | ||
'clientDisplayName': json['clientDisplayName'], | ||
'spouseDisplayName': !(0, runtime_1.exists)(json, 'spouseDisplayName') ? undefined : json['spouseDisplayName'], | ||
'spouseDisplayName': json['spouseDisplayName'] == null ? undefined : json['spouseDisplayName'], | ||
'status': json['status'], | ||
@@ -76,18 +81,15 @@ 'statusDate': json['statusDate'], | ||
function PlansPlanToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'type': value.type, | ||
'modifiedDate': value.modifiedDate, | ||
'clientDisplayName': value.clientDisplayName, | ||
'spouseDisplayName': value.spouseDisplayName, | ||
'status': value.status, | ||
'statusDate': value.statusDate, | ||
'url': value.url, | ||
'id': value['id'], | ||
'type': value['type'], | ||
'modifiedDate': value['modifiedDate'], | ||
'clientDisplayName': value['clientDisplayName'], | ||
'spouseDisplayName': value['spouseDisplayName'], | ||
'status': value['status'], | ||
'statusDate': value['statusDate'], | ||
'url': value['url'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfUsersListUsersResponse(value: object): boolean; | ||
export declare function instanceOfUsersListUsersResponse(value: object): value is UsersListUsersResponse; | ||
export declare function UsersListUsersResponseFromJSON(json: any): UsersListUsersResponse; | ||
export declare function UsersListUsersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersListUsersResponse; | ||
export declare function UsersListUsersResponseToJSON(value?: UsersListUsersResponse | null): any; |
@@ -25,6 +25,7 @@ "use strict"; | ||
function instanceOfUsersListUsersResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "count" in value; | ||
isInstance = isInstance && "results" in value; | ||
return isInstance; | ||
if (!('count' in value) || value['count'] === undefined) | ||
return false; | ||
if (!('results' in value) || value['results'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -35,3 +36,3 @@ function UsersListUsersResponseFromJSON(json) { | ||
function UsersListUsersResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -45,12 +46,9 @@ } | ||
function UsersListUsersResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'count': value.count, | ||
'results': (value.results.map(UsersUser_1.UsersUserToJSON)), | ||
'count': value['count'], | ||
'results': (value['results'].map(UsersUser_1.UsersUserToJSON)), | ||
}; | ||
} |
@@ -58,5 +58,5 @@ /** | ||
*/ | ||
export declare function instanceOfUsersUser(value: object): boolean; | ||
export declare function instanceOfUsersUser(value: object): value is UsersUser; | ||
export declare function UsersUserFromJSON(json: any): UsersUser; | ||
export declare function UsersUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUser; | ||
export declare function UsersUserToJSON(value?: UsersUser | null): any; |
@@ -24,10 +24,15 @@ "use strict"; | ||
function instanceOfUsersUser(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "userType" in value; | ||
isInstance = isInstance && "name" in value; | ||
isInstance = isInstance && "email" in value; | ||
isInstance = isInstance && "isAdmin" in value; | ||
isInstance = isInstance && "isActive" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('userType' in value) || value['userType'] === undefined) | ||
return false; | ||
if (!('name' in value) || value['name'] === undefined) | ||
return false; | ||
if (!('email' in value) || value['email'] === undefined) | ||
return false; | ||
if (!('isAdmin' in value) || value['isAdmin'] === undefined) | ||
return false; | ||
if (!('isActive' in value) || value['isActive'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -38,3 +43,3 @@ function UsersUserFromJSON(json) { | ||
function UsersUserFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -52,16 +57,13 @@ } | ||
function UsersUserToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'userType': value.userType, | ||
'name': value.name, | ||
'email': value.email, | ||
'isAdmin': value.isAdmin, | ||
'isActive': value.isActive, | ||
'id': value['id'], | ||
'userType': value['userType'], | ||
'name': value['name'], | ||
'email': value['email'], | ||
'isAdmin': value['isAdmin'], | ||
'isActive': value['isActive'], | ||
}; | ||
} |
@@ -58,5 +58,5 @@ /** | ||
*/ | ||
export declare function instanceOfUsersUserContext(value: object): boolean; | ||
export declare function instanceOfUsersUserContext(value: object): value is UsersUserContext; | ||
export declare function UsersUserContextFromJSON(json: any): UsersUserContext; | ||
export declare function UsersUserContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUserContext; | ||
export declare function UsersUserContextToJSON(value?: UsersUserContext | null): any; |
@@ -24,10 +24,15 @@ "use strict"; | ||
function instanceOfUsersUserContext(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "userType" in value; | ||
isInstance = isInstance && "name" in value; | ||
isInstance = isInstance && "email" in value; | ||
isInstance = isInstance && "isAdmin" in value; | ||
isInstance = isInstance && "isActive" in value; | ||
return isInstance; | ||
if (!('id' in value) || value['id'] === undefined) | ||
return false; | ||
if (!('userType' in value) || value['userType'] === undefined) | ||
return false; | ||
if (!('name' in value) || value['name'] === undefined) | ||
return false; | ||
if (!('email' in value) || value['email'] === undefined) | ||
return false; | ||
if (!('isAdmin' in value) || value['isAdmin'] === undefined) | ||
return false; | ||
if (!('isActive' in value) || value['isActive'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -38,3 +43,3 @@ function UsersUserContextFromJSON(json) { | ||
function UsersUserContextFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -52,16 +57,13 @@ } | ||
function UsersUserContextToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'userType': value.userType, | ||
'name': value.name, | ||
'email': value.email, | ||
'isAdmin': value.isAdmin, | ||
'isActive': value.isActive, | ||
'id': value['id'], | ||
'userType': value['userType'], | ||
'name': value['name'], | ||
'email': value['email'], | ||
'isAdmin': value['isAdmin'], | ||
'isActive': value['isActive'], | ||
}; | ||
} |
@@ -35,5 +35,5 @@ /** | ||
*/ | ||
export declare function instanceOfV1ErrorResponse(value: object): boolean; | ||
export declare function instanceOfV1ErrorResponse(value: object): value is V1ErrorResponse; | ||
export declare function V1ErrorResponseFromJSON(json: any): V1ErrorResponse; | ||
export declare function V1ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ErrorResponse; | ||
export declare function V1ErrorResponseToJSON(value?: V1ErrorResponse | null): any; |
@@ -20,3 +20,2 @@ "use strict"; | ||
exports.V1ErrorResponseToJSON = V1ErrorResponseToJSON; | ||
const runtime_1 = require("../runtime"); | ||
const V1ErrorResponseData_1 = require("./V1ErrorResponseData"); | ||
@@ -27,5 +26,5 @@ /** | ||
function instanceOfV1ErrorResponse(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "status" in value; | ||
return isInstance; | ||
if (!('status' in value) || value['status'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -36,3 +35,3 @@ function V1ErrorResponseFromJSON(json) { | ||
function V1ErrorResponseFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -42,16 +41,13 @@ } | ||
'status': json['status'], | ||
'data': !(0, runtime_1.exists)(json, 'data') ? undefined : (0, V1ErrorResponseData_1.V1ErrorResponseDataFromJSON)(json['data']), | ||
'data': json['data'] == null ? undefined : (0, V1ErrorResponseData_1.V1ErrorResponseDataFromJSON)(json['data']), | ||
}; | ||
} | ||
function V1ErrorResponseToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'status': value.status, | ||
'data': (0, V1ErrorResponseData_1.V1ErrorResponseDataToJSON)(value.data), | ||
'status': value['status'], | ||
'data': (0, V1ErrorResponseData_1.V1ErrorResponseDataToJSON)(value['data']), | ||
}; | ||
} |
@@ -34,5 +34,5 @@ /** | ||
*/ | ||
export declare function instanceOfV1ErrorResponseData(value: object): boolean; | ||
export declare function instanceOfV1ErrorResponseData(value: object): value is V1ErrorResponseData; | ||
export declare function V1ErrorResponseDataFromJSON(json: any): V1ErrorResponseData; | ||
export declare function V1ErrorResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ErrorResponseData; | ||
export declare function V1ErrorResponseDataToJSON(value?: V1ErrorResponseData | null): any; |
@@ -20,3 +20,2 @@ "use strict"; | ||
exports.V1ErrorResponseDataToJSON = V1ErrorResponseDataToJSON; | ||
const runtime_1 = require("../runtime"); | ||
/** | ||
@@ -26,5 +25,5 @@ * Check if a given object implements the V1ErrorResponseData interface. | ||
function instanceOfV1ErrorResponseData(value) { | ||
let isInstance = true; | ||
isInstance = isInstance && "message" in value; | ||
return isInstance; | ||
if (!('message' in value) || value['message'] === undefined) | ||
return false; | ||
return true; | ||
} | ||
@@ -35,3 +34,3 @@ function V1ErrorResponseDataFromJSON(json) { | ||
function V1ErrorResponseDataFromJSONTyped(json, ignoreDiscriminator) { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -41,16 +40,13 @@ } | ||
'message': json['message'], | ||
'errorKey': !(0, runtime_1.exists)(json, 'error_key') ? undefined : json['error_key'], | ||
'errorKey': json['error_key'] == null ? undefined : json['error_key'], | ||
}; | ||
} | ||
function V1ErrorResponseDataToJSON(value) { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'message': value.message, | ||
'error_key': value.errorKey, | ||
'message': value['message'], | ||
'error_key': value['errorKey'], | ||
}; | ||
} |
@@ -20,3 +20,3 @@ /** | ||
password?: string; | ||
apiKey?: string | ((name: string) => string); | ||
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); | ||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); | ||
@@ -36,3 +36,3 @@ headers?: HTTPHeaders; | ||
get password(): string | undefined; | ||
get apiKey(): ((name: string) => string) | undefined; | ||
get apiKey(): ((name: string) => string | Promise<string>) | undefined; | ||
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined; | ||
@@ -127,3 +127,2 @@ get headers(): HTTPHeaders | undefined; | ||
} | ||
export declare function exists(json: any, key: string): boolean; | ||
export declare function querystring(params: HTTPQuery, prefix?: string): string; | ||
@@ -130,0 +129,0 @@ export declare function mapValues(data: any, fn: (item: any) => any): {}; |
@@ -26,3 +26,2 @@ "use strict"; | ||
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0; | ||
exports.exists = exists; | ||
exports.querystring = querystring; | ||
@@ -261,6 +260,2 @@ exports.mapValues = mapValues; | ||
}; | ||
function exists(json, key) { | ||
const value = json[key]; | ||
return value !== null && value !== undefined; | ||
} | ||
function querystring(params, prefix = '') { | ||
@@ -267,0 +262,0 @@ return Object.keys(params) |
{ | ||
"name": "@equisoft/equisoft-plan-sdk-typescript", | ||
"version": "9.11.1-snapshot.20240813182842", | ||
"version": "9.11.1-snapshot.20240813184441", | ||
"description": "OpenAPI client for @equisoft/equisoft-plan-sdk-typescript", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator", |
@@ -18,3 +18,3 @@ ## @equisoft/equisoft-plan-sdk-typescript@latest | ||
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)) | ||
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html)) | ||
@@ -31,3 +31,3 @@ ### Building | ||
First build the package then run ```npm publish``` | ||
First build the package then run `npm publish` | ||
@@ -48,1 +48,2 @@ ### Consuming | ||
npm install PATH_TO_GENERATED_PACKAGE --save | ||
``` |
@@ -43,4 +43,7 @@ /* tslint:disable */ | ||
async cmdCopyFNARaw(requestParameters: CmdCopyFNARequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CmdCopyFNAResponse>> { | ||
if (requestParameters.cmdCopyFNA === null || requestParameters.cmdCopyFNA === undefined) { | ||
throw new runtime.RequiredError('cmdCopyFNA','Required parameter requestParameters.cmdCopyFNA was null or undefined when calling cmdCopyFNA.'); | ||
if (requestParameters['cmdCopyFNA'] == null) { | ||
throw new runtime.RequiredError( | ||
'cmdCopyFNA', | ||
'Required parameter "cmdCopyFNA" was null or undefined when calling cmdCopyFNA().' | ||
); | ||
} | ||
@@ -68,3 +71,3 @@ | ||
query: queryParameters, | ||
body: CmdCopyFNAToJSON(requestParameters.cmdCopyFNA), | ||
body: CmdCopyFNAToJSON(requestParameters['cmdCopyFNA']), | ||
}, initOverrides); | ||
@@ -71,0 +74,0 @@ |
@@ -54,4 +54,7 @@ /* tslint:disable */ | ||
async getOrganizationRaw(requestParameters: GetOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrganization>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getOrganization.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError( | ||
'id', | ||
'Required parameter "id" was null or undefined when calling getOrganization().' | ||
); | ||
} | ||
@@ -73,3 +76,3 @@ | ||
const response = await this.request({ | ||
path: `/fna/api/v2/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -93,4 +96,7 @@ headers: headerParameters, | ||
async listOrganizationUsersRaw(requestParameters: ListOrganizationUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersListUsersResponse>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling listOrganizationUsers.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError( | ||
'id', | ||
'Required parameter "id" was null or undefined when calling listOrganizationUsers().' | ||
); | ||
} | ||
@@ -112,3 +118,3 @@ | ||
const response = await this.request({ | ||
path: `/fna/api/v2/organizations/{id}/users`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/organizations/{id}/users`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -132,4 +138,7 @@ headers: headerParameters, | ||
async listOrganizationsRaw(requestParameters: ListOrganizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsListOrganizationsResponse>> { | ||
if (requestParameters.organizationUuid === null || requestParameters.organizationUuid === undefined) { | ||
throw new runtime.RequiredError('organizationUuid','Required parameter requestParameters.organizationUuid was null or undefined when calling listOrganizations.'); | ||
if (requestParameters['organizationUuid'] == null) { | ||
throw new runtime.RequiredError( | ||
'organizationUuid', | ||
'Required parameter "organizationUuid" was null or undefined when calling listOrganizations().' | ||
); | ||
} | ||
@@ -139,4 +148,4 @@ | ||
if (requestParameters.organizationUuid !== undefined) { | ||
queryParameters['organizationUuid'] = requestParameters.organizationUuid; | ||
if (requestParameters['organizationUuid'] != null) { | ||
queryParameters['organizationUuid'] = requestParameters['organizationUuid']; | ||
} | ||
@@ -143,0 +152,0 @@ |
@@ -42,4 +42,4 @@ /* tslint:disable */ | ||
if (requestParameters.clientExternalUuid !== undefined) { | ||
queryParameters['clientExternalUuid'] = requestParameters.clientExternalUuid; | ||
if (requestParameters['clientExternalUuid'] != null) { | ||
queryParameters['clientExternalUuid'] = requestParameters['clientExternalUuid']; | ||
} | ||
@@ -46,0 +46,0 @@ |
@@ -31,4 +31,7 @@ /* tslint:disable */ | ||
async getPlanRaw(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getPlan.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError( | ||
'id', | ||
'Required parameter "id" was null or undefined when calling getPlan().' | ||
); | ||
} | ||
@@ -41,3 +44,3 @@ | ||
const response = await this.request({ | ||
path: `/fna/api/fna/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/fna/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -44,0 +47,0 @@ headers: headerParameters, |
@@ -43,4 +43,7 @@ /* tslint:disable */ | ||
async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersUser>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getUser.'); | ||
if (requestParameters['id'] == null) { | ||
throw new runtime.RequiredError( | ||
'id', | ||
'Required parameter "id" was null or undefined when calling getUser().' | ||
); | ||
} | ||
@@ -62,3 +65,3 @@ | ||
const response = await this.request({ | ||
path: `/fna/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
path: `/fna/api/v2/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), | ||
method: 'GET', | ||
@@ -65,0 +68,0 @@ headers: headerParameters, |
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -46,7 +46,5 @@ * | ||
*/ | ||
export function instanceOfCmdCopyFNA(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "fnaUuid" in value; | ||
return isInstance; | ||
export function instanceOfCmdCopyFNA(value: object): value is CmdCopyFNA { | ||
if (!('fnaUuid' in value) || value['fnaUuid'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -59,3 +57,3 @@ | ||
export function CmdCopyFNAFromJSONTyped(json: any, ignoreDiscriminator: boolean): CmdCopyFNA { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -66,4 +64,4 @@ } | ||
'fnaUuid': json['fnaUuid'], | ||
'userEmail': !exists(json, 'userEmail') ? undefined : json['userEmail'], | ||
'newParticipantUuids': !exists(json, 'newParticipantUuids') ? undefined : json['newParticipantUuids'], | ||
'userEmail': json['userEmail'] == null ? undefined : json['userEmail'], | ||
'newParticipantUuids': json['newParticipantUuids'] == null ? undefined : json['newParticipantUuids'], | ||
}; | ||
@@ -73,15 +71,12 @@ } | ||
export function CmdCopyFNAToJSON(value?: CmdCopyFNA | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'fnaUuid': value.fnaUuid, | ||
'userEmail': value.userEmail, | ||
'newParticipantUuids': value.newParticipantUuids, | ||
'fnaUuid': value['fnaUuid'], | ||
'userEmail': value['userEmail'], | ||
'newParticipantUuids': value['newParticipantUuids'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -34,7 +34,5 @@ * | ||
*/ | ||
export function instanceOfCmdCopyFNAResponse(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "newFnaUuid" in value; | ||
return isInstance; | ||
export function instanceOfCmdCopyFNAResponse(value: object): value is CmdCopyFNAResponse { | ||
if (!('newFnaUuid' in value) || value['newFnaUuid'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -47,3 +45,3 @@ | ||
export function CmdCopyFNAResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CmdCopyFNAResponse { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -58,13 +56,10 @@ } | ||
export function CmdCopyFNAResponseToJSON(value?: CmdCopyFNAResponse | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'newFnaUuid': value.newFnaUuid, | ||
'newFnaUuid': value['newFnaUuid'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -46,6 +46,4 @@ * | ||
*/ | ||
export function instanceOfErrorResponse(value: object): boolean { | ||
let isInstance = true; | ||
return isInstance; | ||
export function instanceOfErrorResponse(value: object): value is ErrorResponse { | ||
return true; | ||
} | ||
@@ -58,3 +56,3 @@ | ||
export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -64,5 +62,5 @@ } | ||
'error': !exists(json, 'error') ? undefined : json['error'], | ||
'errorDescription': !exists(json, 'error_description') ? undefined : json['error_description'], | ||
'hint': !exists(json, 'hint') ? undefined : json['hint'], | ||
'error': json['error'] == null ? undefined : json['error'], | ||
'errorDescription': json['error_description'] == null ? undefined : json['error_description'], | ||
'hint': json['hint'] == null ? undefined : json['hint'], | ||
}; | ||
@@ -72,15 +70,12 @@ } | ||
export function ErrorResponseToJSON(value?: ErrorResponse | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'error': value.error, | ||
'error_description': value.errorDescription, | ||
'hint': value.hint, | ||
'error': value['error'], | ||
'error_description': value['errorDescription'], | ||
'hint': value['hint'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
import type { OrganizationsOrganization } from './OrganizationsOrganization'; | ||
@@ -47,8 +47,6 @@ import { | ||
*/ | ||
export function instanceOfOrganizationsListOrganizationsResponse(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "count" in value; | ||
isInstance = isInstance && "results" in value; | ||
return isInstance; | ||
export function instanceOfOrganizationsListOrganizationsResponse(value: object): value is OrganizationsListOrganizationsResponse { | ||
if (!('count' in value) || value['count'] === undefined) return false; | ||
if (!('results' in value) || value['results'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -61,3 +59,3 @@ | ||
export function OrganizationsListOrganizationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsListOrganizationsResponse { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -73,14 +71,11 @@ } | ||
export function OrganizationsListOrganizationsResponseToJSON(value?: OrganizationsListOrganizationsResponse | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'count': value.count, | ||
'results': ((value.results as Array<any>).map(OrganizationsOrganizationToJSON)), | ||
'count': value['count'], | ||
'results': ((value['results'] as Array<any>).map(OrganizationsOrganizationToJSON)), | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -52,8 +52,6 @@ * | ||
*/ | ||
export function instanceOfOrganizationsOrganization(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "accountType" in value; | ||
return isInstance; | ||
export function instanceOfOrganizationsOrganization(value: object): value is OrganizationsOrganization { | ||
if (!('id' in value) || value['id'] === undefined) return false; | ||
if (!('accountType' in value) || value['accountType'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -66,3 +64,3 @@ | ||
export function OrganizationsOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganization { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -74,4 +72,4 @@ } | ||
'accountType': json['accountType'], | ||
'externalDatabase': !exists(json, 'externalDatabase') ? undefined : json['externalDatabase'], | ||
'organizationUuid': !exists(json, 'organizationUuid') ? undefined : json['organizationUuid'], | ||
'externalDatabase': json['externalDatabase'] == null ? undefined : json['externalDatabase'], | ||
'organizationUuid': json['organizationUuid'] == null ? undefined : json['organizationUuid'], | ||
}; | ||
@@ -81,16 +79,13 @@ } | ||
export function OrganizationsOrganizationToJSON(value?: OrganizationsOrganization | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'accountType': value.accountType, | ||
'externalDatabase': value.externalDatabase, | ||
'organizationUuid': value.organizationUuid, | ||
'id': value['id'], | ||
'accountType': value['accountType'], | ||
'externalDatabase': value['externalDatabase'], | ||
'organizationUuid': value['organizationUuid'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
import type { PlansPlan } from './PlansPlan'; | ||
@@ -47,8 +47,6 @@ import { | ||
*/ | ||
export function instanceOfPlansListPlansResponse(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "plans" in value; | ||
isInstance = isInstance && "createPlanUrl" in value; | ||
return isInstance; | ||
export function instanceOfPlansListPlansResponse(value: object): value is PlansListPlansResponse { | ||
if (!('plans' in value) || value['plans'] === undefined) return false; | ||
if (!('createPlanUrl' in value) || value['createPlanUrl'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -61,3 +59,3 @@ | ||
export function PlansListPlansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansListPlansResponse { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -73,14 +71,11 @@ } | ||
export function PlansListPlansResponseToJSON(value?: PlansListPlansResponse | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'plans': ((value.plans as Array<any>).map(PlansPlanToJSON)), | ||
'createPlanUrl': value.createPlanUrl, | ||
'plans': ((value['plans'] as Array<any>).map(PlansPlanToJSON)), | ||
'createPlanUrl': value['createPlanUrl'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -99,13 +99,11 @@ * | ||
*/ | ||
export function instanceOfPlansPlan(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "type" in value; | ||
isInstance = isInstance && "modifiedDate" in value; | ||
isInstance = isInstance && "clientDisplayName" in value; | ||
isInstance = isInstance && "status" in value; | ||
isInstance = isInstance && "statusDate" in value; | ||
isInstance = isInstance && "url" in value; | ||
return isInstance; | ||
export function instanceOfPlansPlan(value: object): value is PlansPlan { | ||
if (!('id' in value) || value['id'] === undefined) return false; | ||
if (!('type' in value) || value['type'] === undefined) return false; | ||
if (!('modifiedDate' in value) || value['modifiedDate'] === undefined) return false; | ||
if (!('clientDisplayName' in value) || value['clientDisplayName'] === undefined) return false; | ||
if (!('status' in value) || value['status'] === undefined) return false; | ||
if (!('statusDate' in value) || value['statusDate'] === undefined) return false; | ||
if (!('url' in value) || value['url'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -118,3 +116,3 @@ | ||
export function PlansPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansPlan { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -128,3 +126,3 @@ } | ||
'clientDisplayName': json['clientDisplayName'], | ||
'spouseDisplayName': !exists(json, 'spouseDisplayName') ? undefined : json['spouseDisplayName'], | ||
'spouseDisplayName': json['spouseDisplayName'] == null ? undefined : json['spouseDisplayName'], | ||
'status': json['status'], | ||
@@ -137,20 +135,17 @@ 'statusDate': json['statusDate'], | ||
export function PlansPlanToJSON(value?: PlansPlan | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'type': value.type, | ||
'modifiedDate': value.modifiedDate, | ||
'clientDisplayName': value.clientDisplayName, | ||
'spouseDisplayName': value.spouseDisplayName, | ||
'status': value.status, | ||
'statusDate': value.statusDate, | ||
'url': value.url, | ||
'id': value['id'], | ||
'type': value['type'], | ||
'modifiedDate': value['modifiedDate'], | ||
'clientDisplayName': value['clientDisplayName'], | ||
'spouseDisplayName': value['spouseDisplayName'], | ||
'status': value['status'], | ||
'statusDate': value['statusDate'], | ||
'url': value['url'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
import type { UsersUser } from './UsersUser'; | ||
@@ -47,8 +47,6 @@ import { | ||
*/ | ||
export function instanceOfUsersListUsersResponse(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "count" in value; | ||
isInstance = isInstance && "results" in value; | ||
return isInstance; | ||
export function instanceOfUsersListUsersResponse(value: object): value is UsersListUsersResponse { | ||
if (!('count' in value) || value['count'] === undefined) return false; | ||
if (!('results' in value) || value['results'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -61,3 +59,3 @@ | ||
export function UsersListUsersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersListUsersResponse { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -73,14 +71,11 @@ } | ||
export function UsersListUsersResponseToJSON(value?: UsersListUsersResponse | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'count': value.count, | ||
'results': ((value.results as Array<any>).map(UsersUserToJSON)), | ||
'count': value['count'], | ||
'results': ((value['results'] as Array<any>).map(UsersUserToJSON)), | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -64,12 +64,10 @@ * | ||
*/ | ||
export function instanceOfUsersUser(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "userType" in value; | ||
isInstance = isInstance && "name" in value; | ||
isInstance = isInstance && "email" in value; | ||
isInstance = isInstance && "isAdmin" in value; | ||
isInstance = isInstance && "isActive" in value; | ||
return isInstance; | ||
export function instanceOfUsersUser(value: object): value is UsersUser { | ||
if (!('id' in value) || value['id'] === undefined) return false; | ||
if (!('userType' in value) || value['userType'] === undefined) return false; | ||
if (!('name' in value) || value['name'] === undefined) return false; | ||
if (!('email' in value) || value['email'] === undefined) return false; | ||
if (!('isAdmin' in value) || value['isAdmin'] === undefined) return false; | ||
if (!('isActive' in value) || value['isActive'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -82,3 +80,3 @@ | ||
export function UsersUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUser { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -98,18 +96,15 @@ } | ||
export function UsersUserToJSON(value?: UsersUser | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'userType': value.userType, | ||
'name': value.name, | ||
'email': value.email, | ||
'isAdmin': value.isAdmin, | ||
'isActive': value.isActive, | ||
'id': value['id'], | ||
'userType': value['userType'], | ||
'name': value['name'], | ||
'email': value['email'], | ||
'isAdmin': value['isAdmin'], | ||
'isActive': value['isActive'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -64,12 +64,10 @@ * | ||
*/ | ||
export function instanceOfUsersUserContext(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "id" in value; | ||
isInstance = isInstance && "userType" in value; | ||
isInstance = isInstance && "name" in value; | ||
isInstance = isInstance && "email" in value; | ||
isInstance = isInstance && "isAdmin" in value; | ||
isInstance = isInstance && "isActive" in value; | ||
return isInstance; | ||
export function instanceOfUsersUserContext(value: object): value is UsersUserContext { | ||
if (!('id' in value) || value['id'] === undefined) return false; | ||
if (!('userType' in value) || value['userType'] === undefined) return false; | ||
if (!('name' in value) || value['name'] === undefined) return false; | ||
if (!('email' in value) || value['email'] === undefined) return false; | ||
if (!('isAdmin' in value) || value['isAdmin'] === undefined) return false; | ||
if (!('isActive' in value) || value['isActive'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -82,3 +80,3 @@ | ||
export function UsersUserContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUserContext { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -98,18 +96,15 @@ } | ||
export function UsersUserContextToJSON(value?: UsersUserContext | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'id': value.id, | ||
'userType': value.userType, | ||
'name': value.name, | ||
'email': value.email, | ||
'isAdmin': value.isAdmin, | ||
'isActive': value.isActive, | ||
'id': value['id'], | ||
'userType': value['userType'], | ||
'name': value['name'], | ||
'email': value['email'], | ||
'isAdmin': value['isAdmin'], | ||
'isActive': value['isActive'], | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
import type { V1ErrorResponseData } from './V1ErrorResponseData'; | ||
@@ -47,7 +47,5 @@ import { | ||
*/ | ||
export function instanceOfV1ErrorResponse(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "status" in value; | ||
return isInstance; | ||
export function instanceOfV1ErrorResponse(value: object): value is V1ErrorResponse { | ||
if (!('status' in value) || value['status'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -60,3 +58,3 @@ | ||
export function V1ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ErrorResponse { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -67,3 +65,3 @@ } | ||
'status': json['status'], | ||
'data': !exists(json, 'data') ? undefined : V1ErrorResponseDataFromJSON(json['data']), | ||
'data': json['data'] == null ? undefined : V1ErrorResponseDataFromJSON(json['data']), | ||
}; | ||
@@ -73,14 +71,11 @@ } | ||
export function V1ErrorResponseToJSON(value?: V1ErrorResponse | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'status': value.status, | ||
'data': V1ErrorResponseDataToJSON(value.data), | ||
'status': value['status'], | ||
'data': V1ErrorResponseDataToJSON(value['data']), | ||
}; | ||
} | ||
@@ -15,3 +15,3 @@ /* tslint:disable */ | ||
import { exists, mapValues } from '../runtime'; | ||
import { mapValues } from '../runtime'; | ||
/** | ||
@@ -40,7 +40,5 @@ * | ||
*/ | ||
export function instanceOfV1ErrorResponseData(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "message" in value; | ||
return isInstance; | ||
export function instanceOfV1ErrorResponseData(value: object): value is V1ErrorResponseData { | ||
if (!('message' in value) || value['message'] === undefined) return false; | ||
return true; | ||
} | ||
@@ -53,3 +51,3 @@ | ||
export function V1ErrorResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ErrorResponseData { | ||
if ((json === undefined) || (json === null)) { | ||
if (json == null) { | ||
return json; | ||
@@ -60,3 +58,3 @@ } | ||
'message': json['message'], | ||
'errorKey': !exists(json, 'error_key') ? undefined : json['error_key'], | ||
'errorKey': json['error_key'] == null ? undefined : json['error_key'], | ||
}; | ||
@@ -66,14 +64,11 @@ } | ||
export function V1ErrorResponseDataToJSON(value?: V1ErrorResponseData | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
if (value == null) { | ||
return value; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
'message': value.message, | ||
'error_key': value.errorKey, | ||
'message': value['message'], | ||
'error_key': value['errorKey'], | ||
}; | ||
} | ||
@@ -25,3 +25,3 @@ /* tslint:disable */ | ||
password?: string; // parameter for basic security | ||
apiKey?: string | ((name: string) => string); // parameter for apiKey security | ||
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); // parameter for apiKey security | ||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security | ||
@@ -63,3 +63,3 @@ headers?: HTTPHeaders; //header params we want to use on every request | ||
get apiKey(): ((name: string) => string) | undefined { | ||
get apiKey(): ((name: string) => string | Promise<string>) | undefined { | ||
const apiKey = this.configuration.apiKey; | ||
@@ -96,3 +96,3 @@ if (apiKey) { | ||
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); | ||
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); | ||
private middleware: Middleware[]; | ||
@@ -316,7 +316,2 @@ | ||
export function exists(json: any, key: string) { | ||
const value = json[key]; | ||
return value !== null && value !== undefined; | ||
} | ||
export function querystring(params: HTTPQuery, prefix: string = ''): string { | ||
@@ -323,0 +318,0 @@ return Object.keys(params) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
47
761652
8602