From fdccb2ee3b6da1e36a74de4e11feba879240ff4c Mon Sep 17 00:00:00 2001 From: Oleksandr Bilous Date: Sun, 12 May 2024 17:35:58 +0300 Subject: [PATCH] chore: Add missing marketplace related API --- .../AlternativeDistributionDomain.swift | 64 +++ ...ativeDistributionDomainCreateRequest.swift | 70 +++ ...lternativeDistributionDomainResponse.swift | 27 ++ ...ternativeDistributionDomainsResponse.swift | 30 ++ .../Generated/Entities/CiGitUser.swift | 6 +- .../Entities/MarketplaceDomain.swift | 1 + .../MarketplaceDomainCreateRequest.swift | 1 + .../Entities/MarketplaceDomainResponse.swift | 3 + .../Entities/MarketplaceDomainsResponse.swift | 1 + ...athsV1AlternativeDistributionDomains.swift | 37 ++ ...AlternativeDistributionDomainsWithID.swift | 36 ++ .../Paths/PathsV1MarketplaceDomains.swift | 2 + .../PathsV1MarketplaceDomainsWithID.swift | 2 + Sources/OpenAPI/app_store_connect_api.json | 439 +++++++++++++++++- 14 files changed, 710 insertions(+), 9 deletions(-) create mode 100644 Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomain.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomains.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomainsWithID.swift diff --git a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomain.swift b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomain.swift new file mode 100644 index 00000000..9367fdca --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomain.swift @@ -0,0 +1,64 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AlternativeDistributionDomain: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case alternativeDistributionDomains + } + + public struct Attributes: Codable { + public var domain: String? + public var referenceName: String? + public var createdDate: Date? + + public init(domain: String? = nil, referenceName: String? = nil, createdDate: Date? = nil) { + self.domain = domain + self.referenceName = referenceName + self.createdDate = createdDate + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.domain = try values.decodeIfPresent(String.self, forKey: "domain") + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + self.createdDate = try values.decodeIfPresent(Date.self, forKey: "createdDate") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(domain, forKey: "domain") + try values.encodeIfPresent(referenceName, forKey: "referenceName") + try values.encodeIfPresent(createdDate, forKey: "createdDate") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainCreateRequest.swift new file mode 100644 index 00000000..76ad811c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainCreateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AlternativeDistributionDomainCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + + public enum `Type`: String, Codable, CaseIterable { + case alternativeDistributionDomains + } + + public struct Attributes: Codable { + public var domain: String + public var referenceName: String + + public init(domain: String, referenceName: String) { + self.domain = domain + self.referenceName = referenceName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.domain = try values.decode(String.self, forKey: "domain") + self.referenceName = try values.decode(String.self, forKey: "referenceName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(domain, forKey: "domain") + try values.encode(referenceName, forKey: "referenceName") + } + } + + public init(type: `Type`, attributes: Attributes) { + self.type = type + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainResponse.swift b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainResponse.swift new file mode 100644 index 00000000..0a7538c6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AlternativeDistributionDomainResponse: Codable { + /// AlternativeDistributionDomain + public var data: AlternativeDistributionDomain + public var links: DocumentLinks + + public init(data: AlternativeDistributionDomain, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AlternativeDistributionDomain.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainsResponse.swift b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainsResponse.swift new file mode 100644 index 00000000..f916bdeb --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AlternativeDistributionDomainsResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AlternativeDistributionDomainsResponse: Codable { + public var data: [AlternativeDistributionDomain] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [AlternativeDistributionDomain], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([AlternativeDistributionDomain].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/CiGitUser.swift b/Sources/OpenAPI/Generated/Entities/CiGitUser.swift index 1444fbb1..d76a2e9c 100644 --- a/Sources/OpenAPI/Generated/Entities/CiGitUser.swift +++ b/Sources/OpenAPI/Generated/Entities/CiGitUser.swift @@ -5,9 +5,9 @@ import Foundation public struct CiGitUser: Codable { public var displayName: String? - public var avatarURL: String? + public var avatarURL: URL? - public init(displayName: String? = nil, avatarURL: String? = nil) { + public init(displayName: String? = nil, avatarURL: URL? = nil) { self.displayName = displayName self.avatarURL = avatarURL } @@ -15,7 +15,7 @@ public struct CiGitUser: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.displayName = try values.decodeIfPresent(String.self, forKey: "displayName") - self.avatarURL = try values.decodeIfPresent(String.self, forKey: "avatarUrl") + self.avatarURL = try values.decodeIfPresent(URL.self, forKey: "avatarUrl") } public func encode(to encoder: Encoder) throws { diff --git a/Sources/OpenAPI/Generated/Entities/MarketplaceDomain.swift b/Sources/OpenAPI/Generated/Entities/MarketplaceDomain.swift index 818014b6..32781cbd 100644 --- a/Sources/OpenAPI/Generated/Entities/MarketplaceDomain.swift +++ b/Sources/OpenAPI/Generated/Entities/MarketplaceDomain.swift @@ -3,6 +3,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct MarketplaceDomain: Codable, Identifiable { public var type: `Type` public var id: String diff --git a/Sources/OpenAPI/Generated/Entities/MarketplaceDomainCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/MarketplaceDomainCreateRequest.swift index 774b0b5f..8ed5c8f8 100644 --- a/Sources/OpenAPI/Generated/Entities/MarketplaceDomainCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/MarketplaceDomainCreateRequest.swift @@ -3,6 +3,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct MarketplaceDomainCreateRequest: Codable { public var data: Data diff --git a/Sources/OpenAPI/Generated/Entities/MarketplaceDomainResponse.swift b/Sources/OpenAPI/Generated/Entities/MarketplaceDomainResponse.swift index 3be14e1d..aeb3afe4 100644 --- a/Sources/OpenAPI/Generated/Entities/MarketplaceDomainResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/MarketplaceDomainResponse.swift @@ -3,8 +3,11 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct MarketplaceDomainResponse: Codable { /// MarketplaceDomain + /// + /// - warning: Deprecated. public var data: MarketplaceDomain public var links: DocumentLinks diff --git a/Sources/OpenAPI/Generated/Entities/MarketplaceDomainsResponse.swift b/Sources/OpenAPI/Generated/Entities/MarketplaceDomainsResponse.swift index 153699bd..03353c95 100644 --- a/Sources/OpenAPI/Generated/Entities/MarketplaceDomainsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/MarketplaceDomainsResponse.swift @@ -3,6 +3,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct MarketplaceDomainsResponse: Codable { public var data: [MarketplaceDomain] public var links: PagedDocumentLinks diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomains.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomains.swift new file mode 100644 index 00000000..d9ff4798 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomains.swift @@ -0,0 +1,37 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var alternativeDistributionDomains: AlternativeDistributionDomains { + AlternativeDistributionDomains(path: path + "/alternativeDistributionDomains") + } + + public struct AlternativeDistributionDomains { + /// Path: `/v1/alternativeDistributionDomains` + public let path: String + + public func get(fieldsAlternativeDistributionDomains: [FieldsAlternativeDistributionDomains]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAlternativeDistributionDomains, limit), id: "alternativeDistributionDomains-get_collection") + } + + private func makeGetQuery(_ fieldsAlternativeDistributionDomains: [FieldsAlternativeDistributionDomains]?, _ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(fieldsAlternativeDistributionDomains, forKey: "fields[alternativeDistributionDomains]", explode: false) + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public enum FieldsAlternativeDistributionDomains: String, Codable, CaseIterable { + case createdDate + case domain + case referenceName + } + + public func post(_ body: AppStoreConnect_Swift_SDK.AlternativeDistributionDomainCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "alternativeDistributionDomains-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomainsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomainsWithID.swift new file mode 100644 index 00000000..1d25f152 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AlternativeDistributionDomainsWithID.swift @@ -0,0 +1,36 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AlternativeDistributionDomains { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/alternativeDistributionDomains/{id}` + public let path: String + + public func get(fieldsAlternativeDistributionDomains: [FieldsAlternativeDistributionDomains]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAlternativeDistributionDomains), id: "alternativeDistributionDomains-get_instance") + } + + private func makeGetQuery(_ fieldsAlternativeDistributionDomains: [FieldsAlternativeDistributionDomains]?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(fieldsAlternativeDistributionDomains, forKey: "fields[alternativeDistributionDomains]", explode: false) + return encoder.items + } + + public enum FieldsAlternativeDistributionDomains: String, Codable, CaseIterable { + case createdDate + case domain + case referenceName + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "alternativeDistributionDomains-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomains.swift b/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomains.swift index b1992899..c6924a3c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomains.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomains.swift @@ -13,6 +13,7 @@ extension APIEndpoint.V1 { /// Path: `/v1/marketplaceDomains` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(fieldsMarketplaceDomains: [FieldsMarketplaceDomains]? = nil, limit: Int? = nil) -> Request { Request(path: path, method: "GET", query: makeGetQuery(fieldsMarketplaceDomains, limit), id: "marketplaceDomains-get_collection") } @@ -30,6 +31,7 @@ extension APIEndpoint.V1 { case referenceName } + @available(*, deprecated, message: "Deprecated") public func post(_ body: AppStoreConnect_Swift_SDK.MarketplaceDomainCreateRequest) -> Request { Request(path: path, method: "POST", body: body, id: "marketplaceDomains-create_instance") } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomainsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomainsWithID.swift index 42705c43..8396d9c7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomainsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1MarketplaceDomainsWithID.swift @@ -13,6 +13,7 @@ extension APIEndpoint.V1.MarketplaceDomains { /// Path: `/v1/marketplaceDomains/{id}` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(fieldsMarketplaceDomains: [FieldsMarketplaceDomains]? = nil) -> Request { Request(path: path, method: "GET", query: makeGetQuery(fieldsMarketplaceDomains), id: "marketplaceDomains-get_instance") } @@ -29,6 +30,7 @@ extension APIEndpoint.V1.MarketplaceDomains { case referenceName } + @available(*, deprecated, message: "Deprecated") public var delete: Request { Request(path: path, method: "DELETE", id: "marketplaceDomains-delete_instance") } diff --git a/Sources/OpenAPI/app_store_connect_api.json b/Sources/OpenAPI/app_store_connect_api.json index 75b31b19..0b999191 100644 --- a/Sources/OpenAPI/app_store_connect_api.json +++ b/Sources/OpenAPI/app_store_connect_api.json @@ -2,7 +2,7 @@ "openapi": "3.0.1", "info": { "title": "App Store Connect API", - "version": "3.4", + "version": "3.4.1", "x-platform": "app_store_connect_api" }, "servers": [ @@ -296,6 +296,310 @@ } ] }, + "/v1/alternativeDistributionDomains": { + "get": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains-get_collection", + "parameters": [ + { + "name": "fields[alternativeDistributionDomains]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionDomains", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "domain", + "referenceName" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AlternativeDistributionDomains", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainsResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains-create_instance", + "requestBody": { + "description": "AlternativeDistributionDomain representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AlternativeDistributionDomain", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/alternativeDistributionDomains/{id}": { + "get": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains-get_instance", + "parameters": [ + { + "name": "fields[alternativeDistributionDomains]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionDomains", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "domain", + "referenceName" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AlternativeDistributionDomain", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, "/v1/alternativeDistributionKeys": { "post": { "tags": [ @@ -38241,6 +38545,7 @@ "MarketplaceDomains" ], "operationId": "marketplaceDomains-get_collection", + "deprecated": true, "parameters": [ { "name": "fields[marketplaceDomains]", @@ -38320,6 +38625,7 @@ "MarketplaceDomains" ], "operationId": "marketplaceDomains-create_instance", + "deprecated": true, "requestBody": { "description": "MarketplaceDomain representation", "content": { @@ -38391,6 +38697,7 @@ "MarketplaceDomains" ], "operationId": "marketplaceDomains-get_instance", + "deprecated": true, "parameters": [ { "name": "fields[marketplaceDomains]", @@ -38470,6 +38777,7 @@ "MarketplaceDomains" ], "operationId": "marketplaceDomains-delete_instance", + "deprecated": true, "responses": { "400": { "description": "Parameter error(s)", @@ -100099,6 +100407,120 @@ "data" ] }, + "AlternativeDistributionDomain": { + "type": "object", + "title": "AlternativeDistributionDomain", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionDomains" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "referenceName": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionDomainsResponse": { + "type": "object", + "title": "AlternativeDistributionDomainsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionDomain" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionDomainResponse": { + "type": "object", + "title": "AlternativeDistributionDomainResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionDomain" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionDomainCreateRequest": { + "type": "object", + "title": "AlternativeDistributionDomainCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionDomains" + ] + }, + "attributes": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "referenceName": { + "type": "string" + } + }, + "required": [ + "domain", + "referenceName" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, "AlternativeDistributionKey": { "type": "object", "title": "AlternativeDistributionKey", @@ -133600,7 +134022,8 @@ "required": [ "id", "type" - ] + ], + "deprecated": true }, "MarketplaceDomainsResponse": { "type": "object", @@ -133622,7 +134045,8 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, "MarketplaceDomainResponse": { "type": "object", @@ -133638,7 +134062,8 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, "MarketplaceDomainCreateRequest": { "type": "object", @@ -133677,7 +134102,8 @@ }, "required": [ "data" - ] + ], + "deprecated": true }, "MarketplaceSearchDetail": { "type": "object", @@ -147053,7 +147479,8 @@ "type": "string" }, "avatarUrl": { - "type": "string" + "type": "string", + "format": "uri" } } },