From 38dcf0c15e07e08e1ebb19ae89d4a20ac198370d Mon Sep 17 00:00:00 2001 From: Bao Tran Date: Thu, 12 Dec 2024 14:47:32 -0500 Subject: [PATCH] fix: edit pushupgrade list schema file --- schemas/package-pushupgrade-list.json | 128 ++++++++------------------ 1 file changed, 38 insertions(+), 90 deletions(-) diff --git a/schemas/package-pushupgrade-list.json b/schemas/package-pushupgrade-list.json index 5c9f6452..3fedeeeb 100644 --- a/schemas/package-pushupgrade-list.json +++ b/schemas/package-pushupgrade-list.json @@ -1,100 +1,48 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$ref": "#/definitions/CreateListCommandResult", + "$ref": "#/definitions/PackagePushUpgradeListResultArr", "definitions": { - "CreateListCommandResult": { + "PackagePushUpgradeListResultArr": { "type": "array", "items": { - "type": "object", - "additionalProperties": false, - "properties": { - "VersionName": { - "type": "string" - }, - "VersionNumber": { - "type": ["string", "null"] - }, - "Id": { - "type": "string" - }, - "Status": { - "$ref": "#/definitions/PackagingSObjects.Package2VersionStatus" - }, - "Package2Id": { - "type": "string" - }, - "Package2Name": { - "type": ["string", "null"] - }, - "Package2VersionId": { - "type": "string" - }, - "SubscriberPackageVersionId": { - "type": ["string", "null"] - }, - "Tag": { - "type": "string" - }, - "Branch": { - "type": "string" - }, - "Error": { - "type": "array", - "items": {} - }, - "CreatedDate": { - "type": "string" - }, - "HasMetadataRemoved": { - "type": ["boolean", "null"] - }, - "HasPassedCodeCoverageCheck": { - "type": ["boolean", "null"] - }, - "CodeCoverage": { - "type": ["number", "null"] - }, - "CreatedBy": { - "type": "string" - }, - "ConvertedFromVersionId": { - "type": ["string", "null"] - } - }, - "required": [ - "Branch", - "CodeCoverage", - "ConvertedFromVersionId", - "CreatedBy", - "CreatedDate", - "Error", - "HasMetadataRemoved", - "HasPassedCodeCoverageCheck", - "Id", - "Package2Id", - "Package2Name", - "Package2VersionId", - "Status", - "SubscriberPackageVersionId", - "Tag", - "VersionNumber" - ] + "$ref": "#/definitions/PackagePushUpgradeListResult" } }, - "PackagingSObjects.Package2VersionStatus": { - "type": "string", - "enum": [ - "Queued", - "InProgress", - "Success", - "Error", - "Initializing", - "VerifyingFeaturesAndSettings", - "VerifyingDependencies", - "VerifyingMetadata", - "FinalizingPackageVersion", - "PerformingValidations" - ] + "PackagePushUpgradeListResult": { + "type": "object", + "properties": { + "PushRequestId": { + "type": "string" + }, + "PackageVersionId": { + "type": "string" + }, + "PushRequestStatus": { + "type": "string" + }, + "PushRequestScheduledDateTime": { + "type": "string" + }, + "NumOrgsScheduled": { + "type": "number" + }, + "NumOrgsUpgradedFail": { + "type": "number" + }, + "NumOrgsUpgradedSuccess": { + "type": "number" + } + }, + "required": [ + "PushRequestId", + "PackageVersionId", + "PushRequestStatus", + "PushRequestScheduledDateTime", + "NumOrgsScheduled", + "NumOrgsUpgradedSuccess", + "NumOrgsUpgradedFail" + ], + "additionalProperties": false } } }