diff --git a/Makefile b/Makefile index fc028f1b..8dbd4af2 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ update: download generate # see https://github.com/AvdLee/appstoreconnect-swift-sdk/pull/197 .PHONY: download download: - curl -fsSL -o - https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip | bsdtar -xOf - | jq '.components.schemas.BundleIdPlatform.enum |= [ "IOS", "MAC_OS", "UNIVERSAL" ] | .paths."/v1/certificates".get.parameters = (.paths."/v1/certificates".get.parameters | map(if .name == "filter[certificateType]" then .schema.items.enum += ["DEVELOPER_ID_APPLICATION_G2"] else . end)) | .components.schemas.CertificateType.enum += ["DEVELOPER_ID_APPLICATION_G2"] | del(.["x-important"]) | del(.. |."enum"? | select(. != null and length == 0))' > Sources/OpenAPI/app_store_connect_api.json + curl -fsSL -o - https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip | bsdtar -xOf - | jq '.components.schemas.BundleIdPlatform.enum |= [ "IOS", "MAC_OS", "UNIVERSAL", "SERVICES" ] | .paths."/v1/certificates".get.parameters = (.paths."/v1/certificates".get.parameters | map(if .name == "filter[certificateType]" then .schema.items.enum += ["DEVELOPER_ID_APPLICATION_G2"] else . end)) | .components.schemas.CertificateType.enum += ["DEVELOPER_ID_APPLICATION_G2"] | del(.["x-important"]) | del(.. |."enum"? | select(. != null and length == 0))' > Sources/OpenAPI/app_store_connect_api.json # Runs the CreateAPI generator to update generated source code .PHONY: generate diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift b/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift index 009c00d4..0e983c72 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift @@ -7,4 +7,5 @@ public enum BundleIDPlatform: String, Codable, CaseIterable { case ios = "IOS" case macOs = "MAC_OS" case universal = "UNIVERSAL" + case services = "SERVICES" } diff --git a/Sources/OpenAPI/app_store_connect_api.json b/Sources/OpenAPI/app_store_connect_api.json index 9627fe7d..503d158d 100644 --- a/Sources/OpenAPI/app_store_connect_api.json +++ b/Sources/OpenAPI/app_store_connect_api.json @@ -144528,7 +144528,8 @@ "enum": [ "IOS", "MAC_OS", - "UNIVERSAL" + "UNIVERSAL", + "SERVICES" ] }, "CapabilityOption": {