UNPKG

wallee

Version:
46 lines (45 loc) 2.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubmittedAnalyticsQueryExecution = instanceOfSubmittedAnalyticsQueryExecution; exports.SubmittedAnalyticsQueryExecutionFromJSON = SubmittedAnalyticsQueryExecutionFromJSON; exports.SubmittedAnalyticsQueryExecutionFromJSONTyped = SubmittedAnalyticsQueryExecutionFromJSONTyped; exports.SubmittedAnalyticsQueryExecutionToJSON = SubmittedAnalyticsQueryExecutionToJSON; exports.SubmittedAnalyticsQueryExecutionToJSONTyped = SubmittedAnalyticsQueryExecutionToJSONTyped; const FacadeUserFriendlyQueryStatusModel_1 = require("./FacadeUserFriendlyQueryStatusModel"); /** * Check if a given object implements the SubmittedAnalyticsQueryExecution interface. */ function instanceOfSubmittedAnalyticsQueryExecution(value) { return true; } function SubmittedAnalyticsQueryExecutionFromJSON(json) { return SubmittedAnalyticsQueryExecutionFromJSONTyped(json, false); } function SubmittedAnalyticsQueryExecutionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'queryExternalId': json['queryExternalId'] == null ? undefined : json['queryExternalId'], 'accountId': json['accountId'] == null ? undefined : json['accountId'], 'totalBilledExecutionTimeMs': json['totalBilledExecutionTimeMs'] == null ? undefined : json['totalBilledExecutionTimeMs'], 'createdTimestamp': json['createdTimestamp'] == null ? undefined : (new Date(json['createdTimestamp'])), 'downloadRequests': json['downloadRequests'] == null ? undefined : json['downloadRequests'], 'originalQuery': json['originalQuery'] == null ? undefined : json['originalQuery'], 'scannedBytes': json['scannedBytes'] == null ? undefined : json['scannedBytes'], 'portalQueryToken': json['portalQueryToken'] == null ? undefined : json['portalQueryToken'], 'resultFileBytes': json['resultFileBytes'] == null ? undefined : json['resultFileBytes'], 'status': json['status'] == null ? undefined : (0, FacadeUserFriendlyQueryStatusModel_1.FacadeUserFriendlyQueryStatusModelFromJSON)(json['status']), }; } function SubmittedAnalyticsQueryExecutionToJSON(json) { return SubmittedAnalyticsQueryExecutionToJSONTyped(json, false); } function SubmittedAnalyticsQueryExecutionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': (0, FacadeUserFriendlyQueryStatusModel_1.FacadeUserFriendlyQueryStatusModelToJSON)(value['status']), }; }