diff --git a/packages_generated/account/src/v3/api.gen.ts b/packages_generated/account/src/v3/api.gen.ts index 87dffb6d2..6e2eae814 100644 --- a/packages_generated/account/src/v3/api.gen.ts +++ b/packages_generated/account/src/v3/api.gen.ts @@ -7,16 +7,16 @@ import { validatePathParam, } from '@scaleway/sdk-client' import { + unmarshalCheckContractSignatureResponse, marshalContractApiCheckContractSignatureRequest, marshalContractApiCreateContractSignatureRequest, - marshalProjectApiCreateProjectRequest, - marshalProjectApiSetProjectQualificationRequest, - marshalProjectApiUpdateProjectRequest, - unmarshalCheckContractSignatureResponse, unmarshalContractSignature, unmarshalListContractSignaturesResponse, unmarshalListProjectsResponse, unmarshalProject, + marshalProjectApiCreateProjectRequest, + marshalProjectApiSetProjectQualificationRequest, + marshalProjectApiUpdateProjectRequest, unmarshalProjectQualification, } from './marshalling.gen.js' import type { @@ -55,32 +55,31 @@ export class ContractAPI extends ParentAPI { * @param request - The request {@link ContractApiDownloadContractSignatureRequest} * @returns A Promise of Blob */ - downloadContractSignature = ( - request: Readonly, - ) => - this.client.fetch({ - method: 'GET', - path: `/account/v3/contract-signatures/${validatePathParam('contractSignatureId', request.contractSignatureId)}/download`, - urlParams: urlParams(['dl', 1], ['locale', request.locale]), - responseType: 'blob', - }) + downloadContractSignature = (request: Readonly) => + this.client.fetch( + { + method: 'GET', + path: `/account/v3/contract-signatures/${validatePathParam('contractSignatureId', request.contractSignatureId)}/download`, + urlParams: urlParams( + ['dl', 1], + ['locale', request.locale], + ), + responseType: 'blob', + }, + ) + /** * Create a signature for your Organization for the latest version of the requested contract. * * @param request - The request {@link ContractApiCreateContractSignatureRequest} * @returns A Promise of ContractSignature */ - createContractSignature = ( - request: Readonly, - ) => + createContractSignature = (request: Readonly) => this.client.fetch( { body: JSON.stringify( - marshalContractApiCreateContractSignatureRequest( - request, - this.client.settings, - ), + marshalContractApiCreateContractSignatureRequest(request, this.client.settings), ), headers: jsonContentHeaders, method: 'POST', @@ -89,15 +88,14 @@ export class ContractAPI extends ParentAPI { unmarshalContractSignature, ) + /** * Sign a contract for your Organization. * * @param request - The request {@link ContractApiValidateContractSignatureRequest} * @returns A Promise of ContractSignature */ - validateContractSignature = ( - request: Readonly, - ) => + validateContractSignature = (request: Readonly) => this.client.fetch( { body: '{}', @@ -108,22 +106,18 @@ export class ContractAPI extends ParentAPI { unmarshalContractSignature, ) + /** * Check if a contract is signed for your Organization. * * @param request - The request {@link ContractApiCheckContractSignatureRequest} * @returns A Promise of CheckContractSignatureResponse */ - checkContractSignature = ( - request: Readonly, - ) => + checkContractSignature = (request: Readonly) => this.client.fetch( { body: JSON.stringify( - marshalContractApiCheckContractSignatureRequest( - request, - this.client.settings, - ), + marshalContractApiCheckContractSignatureRequest(request, this.client.settings), ), headers: jsonContentHeaders, method: 'POST', @@ -132,44 +126,32 @@ export class ContractAPI extends ParentAPI { unmarshalCheckContractSignatureResponse, ) - protected pageOfListContractSignatures = ( - request: Readonly = {}, - ) => + + protected pageOfListContractSignatures = (request: Readonly = {}) => this.client.fetch( { method: 'GET', path: `/account/v3/contract-signatures`, urlParams: urlParams( ['order_by', request.orderBy], - [ - 'organization_id', - request.organizationId ?? - this.client.settings.defaultOrganizationId, - ], + ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ), }, unmarshalListContractSignaturesResponse, ) - + /** * List contract signatures for an Organization. * * @param request - The request {@link ContractApiListContractSignaturesRequest} * @returns A Promise of ListContractSignaturesResponse */ - listContractSignatures = ( - request: Readonly = {}, - ) => - enrichForPagination( - 'contractSignatures', - this.pageOfListContractSignatures, - request, - ) + listContractSignatures = (request: Readonly = {}) => + enrichForPagination('contractSignatures', this.pageOfListContractSignatures, request) + + } /** @@ -197,9 +179,8 @@ export class ProjectAPI extends ParentAPI { unmarshalProject, ) - protected pageOfListProjects = ( - request: Readonly = {}, - ) => + + protected pageOfListProjects = (request: Readonly = {}) => this.client.fetch( { method: 'GET', @@ -207,22 +188,15 @@ export class ProjectAPI extends ParentAPI { urlParams: urlParams( ['name', request.name], ['order_by', request.orderBy], - [ - 'organization_id', - request.organizationId ?? - this.client.settings.defaultOrganizationId, - ], + ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_ids', request.projectIds], ), }, unmarshalListProjectsResponse, ) - + /** * List all Projects of an Organization. List all Projects of an Organization. The response will include the total number of Projects as well as their associated Organizations, names, and IDs. Other information includes the creation and update date of the Project. * @@ -232,6 +206,7 @@ export class ProjectAPI extends ParentAPI { listProjects = (request: Readonly = {}) => enrichForPagination('projects', this.pageOfListProjects, request) + /** * Get an existing Project. Retrieve information about an existing Project, specified by its Project ID. Its full details, including ID, name and description, are returned in the response object. * @@ -247,17 +222,21 @@ export class ProjectAPI extends ParentAPI { unmarshalProject, ) + /** * Delete an existing Project. Delete an existing Project, specified by its Project ID. The Project needs to be empty (meaning there are no resources left in it) to be deleted effectively. Note that deleting a Project is permanent, and cannot be undone. * * @param request - The request {@link ProjectApiDeleteProjectRequest} */ deleteProject = (request: Readonly = {}) => - this.client.fetch({ - method: 'DELETE', - path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`, - }) + this.client.fetch( + { + method: 'DELETE', + path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`, + }, + ) + /** * Update Project. Update the parameters of an existing Project, specified by its Project ID. These parameters include the name and description. * @@ -277,22 +256,18 @@ export class ProjectAPI extends ParentAPI { unmarshalProject, ) + /** * Set project use case. Set the project use case for a new or existing Project, specified by its Project ID. You can customize the use case, sub use case, and architecture type you want to use in the Project. * * @param request - The request {@link ProjectApiSetProjectQualificationRequest} * @returns A Promise of ProjectQualification */ - setProjectQualification = ( - request: Readonly = {}, - ) => + setProjectQualification = (request: Readonly = {}) => this.client.fetch( { body: JSON.stringify( - marshalProjectApiSetProjectQualificationRequest( - request, - this.client.settings, - ), + marshalProjectApiSetProjectQualificationRequest(request, this.client.settings), ), headers: jsonContentHeaders, method: 'POST', @@ -300,4 +275,7 @@ export class ProjectAPI extends ParentAPI { }, unmarshalProjectQualification, ) + + } + diff --git a/packages_generated/account/src/v3/marshalling.gen.ts b/packages_generated/account/src/v3/marshalling.gen.ts index 5a1366067..7344508fc 100644 --- a/packages_generated/account/src/v3/marshalling.gen.ts +++ b/packages_generated/account/src/v3/marshalling.gen.ts @@ -1,27 +1,11 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. import randomName from '@scaleway/random-name' -import { - isJSONObject, - resolveOneOf, - unmarshalArrayOfObject, - unmarshalDate, -} from '@scaleway/sdk-client' +import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, } from '@scaleway/sdk-client' import type { DefaultValues } from '@scaleway/sdk-client' import type { - CheckContractSignatureResponse, Contract, - ContractApiCheckContractSignatureRequest, - ContractApiCreateContractSignatureRequest, ContractSignature, - ListContractSignaturesResponse, - ListProjectsResponse, - Project, - ProjectApiCreateProjectRequest, - ProjectApiSetProjectQualificationRequest, - ProjectApiUpdateProjectRequest, - ProjectQualification, - Qualification, QualificationAiMachine, QualificationArchiveData, QualificationContainer, @@ -31,6 +15,17 @@ import type { QualificationOtherUseCase, QualificationSetScalewayEnvironment, QualificationShareData, + Qualification, + Project, + CheckContractSignatureResponse, + ListContractSignaturesResponse, + ListProjectsResponse, + ProjectQualification, + ContractApiCheckContractSignatureRequest, + ContractApiCreateContractSignatureRequest, + ProjectApiCreateProjectRequest, + ProjectApiSetProjectQualificationRequest, + ProjectApiUpdateProjectRequest, } from './types.gen.js' const unmarshalContract = (data: unknown): Contract => { @@ -50,9 +45,7 @@ const unmarshalContract = (data: unknown): Contract => { } as Contract } -export const unmarshalContractSignature = ( - data: unknown, -): ContractSignature => { +export const unmarshalContractSignature = (data: unknown): ContractSignature => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ContractSignature' failed as data isn't a dictionary.`, @@ -69,9 +62,7 @@ export const unmarshalContractSignature = ( } as ContractSignature } -const unmarshalQualificationAiMachine = ( - data: unknown, -): QualificationAiMachine => { +const unmarshalQualificationAiMachine = (data: unknown): QualificationAiMachine => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationAiMachine' failed as data isn't a dictionary.`, @@ -83,9 +74,7 @@ const unmarshalQualificationAiMachine = ( } as QualificationAiMachine } -const unmarshalQualificationArchiveData = ( - data: unknown, -): QualificationArchiveData => { +const unmarshalQualificationArchiveData = (data: unknown): QualificationArchiveData => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationArchiveData' failed as data isn't a dictionary.`, @@ -97,9 +86,7 @@ const unmarshalQualificationArchiveData = ( } as QualificationArchiveData } -const unmarshalQualificationContainer = ( - data: unknown, -): QualificationContainer => { +const unmarshalQualificationContainer = (data: unknown): QualificationContainer => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationContainer' failed as data isn't a dictionary.`, @@ -111,9 +98,7 @@ const unmarshalQualificationContainer = ( } as QualificationContainer } -const unmarshalQualificationDeploySoftware = ( - data: unknown, -): QualificationDeploySoftware => { +const unmarshalQualificationDeploySoftware = (data: unknown): QualificationDeploySoftware => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationDeploySoftware' failed as data isn't a dictionary.`, @@ -125,9 +110,7 @@ const unmarshalQualificationDeploySoftware = ( } as QualificationDeploySoftware } -const unmarshalQualificationHostApplication = ( - data: unknown, -): QualificationHostApplication => { +const unmarshalQualificationHostApplication = (data: unknown): QualificationHostApplication => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationHostApplication' failed as data isn't a dictionary.`, @@ -139,9 +122,7 @@ const unmarshalQualificationHostApplication = ( } as QualificationHostApplication } -const unmarshalQualificationHostWebsite = ( - data: unknown, -): QualificationHostWebsite => { +const unmarshalQualificationHostWebsite = (data: unknown): QualificationHostWebsite => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationHostWebsite' failed as data isn't a dictionary.`, @@ -153,9 +134,7 @@ const unmarshalQualificationHostWebsite = ( } as QualificationHostWebsite } -const unmarshalQualificationOtherUseCase = ( - data: unknown, -): QualificationOtherUseCase => { +const unmarshalQualificationOtherUseCase = (data: unknown): QualificationOtherUseCase => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationOtherUseCase' failed as data isn't a dictionary.`, @@ -167,9 +146,7 @@ const unmarshalQualificationOtherUseCase = ( } as QualificationOtherUseCase } -const unmarshalQualificationSetScalewayEnvironment = ( - data: unknown, -): QualificationSetScalewayEnvironment => { +const unmarshalQualificationSetScalewayEnvironment = (data: unknown): QualificationSetScalewayEnvironment => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationSetScalewayEnvironment' failed as data isn't a dictionary.`, @@ -181,9 +158,7 @@ const unmarshalQualificationSetScalewayEnvironment = ( } as QualificationSetScalewayEnvironment } -const unmarshalQualificationShareData = ( - data: unknown, -): QualificationShareData => { +const unmarshalQualificationShareData = (data: unknown): QualificationShareData => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'QualificationShareData' failed as data isn't a dictionary.`, @@ -203,36 +178,16 @@ const unmarshalQualification = (data: unknown): Qualification => { } return { - aiMachine: data.ai_machine - ? unmarshalQualificationAiMachine(data.ai_machine) - : undefined, + aiMachine: data.ai_machine ? unmarshalQualificationAiMachine(data.ai_machine) : undefined, architectureType: data.architecture_type, - archiveData: data.archive_data - ? unmarshalQualificationArchiveData(data.archive_data) - : undefined, - container: data.container - ? unmarshalQualificationContainer(data.container) - : undefined, - deploySoftware: data.deploy_software - ? unmarshalQualificationDeploySoftware(data.deploy_software) - : undefined, - hostApplication: data.host_application - ? unmarshalQualificationHostApplication(data.host_application) - : undefined, - hostWebsite: data.host_website - ? unmarshalQualificationHostWebsite(data.host_website) - : undefined, - otherUseCase: data.other_use_case - ? unmarshalQualificationOtherUseCase(data.other_use_case) - : undefined, - setScalewayEnvironment: data.set_scaleway_environment - ? unmarshalQualificationSetScalewayEnvironment( - data.set_scaleway_environment, - ) - : undefined, - shareData: data.share_data - ? unmarshalQualificationShareData(data.share_data) - : undefined, + archiveData: data.archive_data ? unmarshalQualificationArchiveData(data.archive_data) : undefined, + container: data.container ? unmarshalQualificationContainer(data.container) : undefined, + deploySoftware: data.deploy_software ? unmarshalQualificationDeploySoftware(data.deploy_software) : undefined, + hostApplication: data.host_application ? unmarshalQualificationHostApplication(data.host_application) : undefined, + hostWebsite: data.host_website ? unmarshalQualificationHostWebsite(data.host_website) : undefined, + otherUseCase: data.other_use_case ? unmarshalQualificationOtherUseCase(data.other_use_case) : undefined, + setScalewayEnvironment: data.set_scaleway_environment ? unmarshalQualificationSetScalewayEnvironment(data.set_scaleway_environment) : undefined, + shareData: data.share_data ? unmarshalQualificationShareData(data.share_data) : undefined, } as Qualification } @@ -249,16 +204,12 @@ export const unmarshalProject = (data: unknown): Project => { id: data.id, name: data.name, organizationId: data.organization_id, - qualification: data.qualification - ? unmarshalQualification(data.qualification) - : undefined, + qualification: data.qualification ? unmarshalQualification(data.qualification) : undefined, updatedAt: unmarshalDate(data.updated_at), } as Project } -export const unmarshalCheckContractSignatureResponse = ( - data: unknown, -): CheckContractSignatureResponse => { +export const unmarshalCheckContractSignatureResponse = (data: unknown): CheckContractSignatureResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'CheckContractSignatureResponse' failed as data isn't a dictionary.`, @@ -271,9 +222,7 @@ export const unmarshalCheckContractSignatureResponse = ( } as CheckContractSignatureResponse } -export const unmarshalListContractSignaturesResponse = ( - data: unknown, -): ListContractSignaturesResponse => { +export const unmarshalListContractSignaturesResponse = (data: unknown): ListContractSignaturesResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListContractSignaturesResponse' failed as data isn't a dictionary.`, @@ -281,17 +230,12 @@ export const unmarshalListContractSignaturesResponse = ( } return { - contractSignatures: unmarshalArrayOfObject( - data.contract_signatures, - unmarshalContractSignature, - ), + contractSignatures: unmarshalArrayOfObject(data.contract_signatures, unmarshalContractSignature), totalCount: data.total_count, } as ListContractSignaturesResponse } -export const unmarshalListProjectsResponse = ( - data: unknown, -): ListProjectsResponse => { +export const unmarshalListProjectsResponse = (data: unknown): ListProjectsResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`, @@ -304,9 +248,7 @@ export const unmarshalListProjectsResponse = ( } as ListProjectsResponse } -export const unmarshalProjectQualification = ( - data: unknown, -): ProjectQualification => { +export const unmarshalProjectQualification = (data: unknown): ProjectQualification => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ProjectQualification' failed as data isn't a dictionary.`, @@ -315,9 +257,7 @@ export const unmarshalProjectQualification = ( return { projectId: data.project_id, - qualification: data.qualification - ? unmarshalQualification(data.qualification) - : undefined, + qualification: data.qualification ? unmarshalQualification(data.qualification) : undefined, } as ProjectQualification } @@ -416,76 +356,43 @@ const marshalQualification = ( request: Qualification, defaults: DefaultValues, ): Record => ({ - architecture_type: request.architectureType, + architecture_type: request.architectureType, ...resolveOneOf([ - { - param: 'host_website', - value: - request.hostWebsite !== undefined - ? marshalQualificationHostWebsite(request.hostWebsite, defaults) - : undefined, + {param: 'host_website', + value: (request.hostWebsite !== undefined) ? marshalQualificationHostWebsite(request.hostWebsite, defaults) + : undefined, }, - { - param: 'host_application', - value: - request.hostApplication !== undefined - ? marshalQualificationHostApplication( - request.hostApplication, - defaults, - ) - : undefined, + {param: 'host_application', + value: (request.hostApplication !== undefined) ? marshalQualificationHostApplication(request.hostApplication, defaults) + : undefined, }, - { - param: 'deploy_software', - value: - request.deploySoftware !== undefined - ? marshalQualificationDeploySoftware(request.deploySoftware, defaults) - : undefined, + {param: 'deploy_software', + value: (request.deploySoftware !== undefined) ? marshalQualificationDeploySoftware(request.deploySoftware, defaults) + : undefined, }, - { - param: 'set_scaleway_environment', - value: - request.setScalewayEnvironment !== undefined - ? marshalQualificationSetScalewayEnvironment( - request.setScalewayEnvironment, - defaults, - ) - : undefined, + {param: 'set_scaleway_environment', + value: (request.setScalewayEnvironment !== undefined) ? marshalQualificationSetScalewayEnvironment(request.setScalewayEnvironment, defaults) + : undefined, }, - { - param: 'ai_machine', - value: - request.aiMachine !== undefined - ? marshalQualificationAiMachine(request.aiMachine, defaults) - : undefined, + {param: 'ai_machine', + value: (request.aiMachine !== undefined) ? marshalQualificationAiMachine(request.aiMachine, defaults) + : undefined, }, - { - param: 'container', - value: - request.container !== undefined - ? marshalQualificationContainer(request.container, defaults) - : undefined, + {param: 'container', + value: (request.container !== undefined) ? marshalQualificationContainer(request.container, defaults) + : undefined, }, - { - param: 'archive_data', - value: - request.archiveData !== undefined - ? marshalQualificationArchiveData(request.archiveData, defaults) - : undefined, + {param: 'archive_data', + value: (request.archiveData !== undefined) ? marshalQualificationArchiveData(request.archiveData, defaults) + : undefined, }, - { - param: 'share_data', - value: - request.shareData !== undefined - ? marshalQualificationShareData(request.shareData, defaults) - : undefined, + {param: 'share_data', + value: (request.shareData !== undefined) ? marshalQualificationShareData(request.shareData, defaults) + : undefined, }, - { - param: 'other_use_case', - value: - request.otherUseCase !== undefined - ? marshalQualificationOtherUseCase(request.otherUseCase, defaults) - : undefined, + {param: 'other_use_case', + value: (request.otherUseCase !== undefined) ? marshalQualificationOtherUseCase(request.otherUseCase, defaults) + : undefined, }, ]), }) @@ -494,10 +401,7 @@ export const marshalProjectApiSetProjectQualificationRequest = ( request: ProjectApiSetProjectQualificationRequest, defaults: DefaultValues, ): Record => ({ - qualification: - request.qualification !== undefined - ? marshalQualification(request.qualification, defaults) - : undefined, + qualification: ((request.qualification !== undefined) ? marshalQualification(request.qualification, defaults): undefined), }) export const marshalProjectApiUpdateProjectRequest = ( diff --git a/packages_generated/account/src/v3/types.gen.ts b/packages_generated/account/src/v3/types.gen.ts index 67af3c85e..422850390 100644 --- a/packages_generated/account/src/v3/types.gen.ts +++ b/packages_generated/account/src/v3/types.gen.ts @@ -1,6 +1,6 @@ -// This file was automatically generated. DO NOT EDIT. -// If you have any remark or suggestion do not hesitate to open an issue. -import type { LanguageCode as StdLanguageCode } from '@scaleway/sdk-std' + +import type {LanguageCode as StdLanguageCode,} from '@scaleway/sdk-std' + export type ContractType = | 'unknown_type' @@ -25,7 +25,8 @@ export type ListProjectsRequestOrderBy = | 'name_asc' | 'name_desc' -export type QualificationAiMachineSubUseCase = 'unknown_sub_use_case' +export type QualificationAiMachineSubUseCase = + | 'unknown_sub_use_case' export type QualificationArchitectureType = | 'unknown_architecture_type' @@ -38,11 +39,14 @@ export type QualificationArchitectureType = | 'dedicated_server' | 'other_architecture_type' -export type QualificationArchiveDataSubUseCase = 'unknown_sub_use_case' +export type QualificationArchiveDataSubUseCase = + | 'unknown_sub_use_case' -export type QualificationContainerSubUseCase = 'unknown_sub_use_case' +export type QualificationContainerSubUseCase = + | 'unknown_sub_use_case' -export type QualificationDeploySoftwareSubUseCase = 'unknown_sub_use_case' +export type QualificationDeploySoftwareSubUseCase = + | 'unknown_sub_use_case' export type QualificationHostApplicationSubUseCase = | 'unknown_sub_use_case' @@ -56,49 +60,60 @@ export type QualificationHostWebsiteSubUseCase = | 'high_website' | 'other_sub_use_case' -export type QualificationOtherUseCaseSubUseCase = 'unknown_sub_use_case' +export type QualificationOtherUseCaseSubUseCase = + | 'unknown_sub_use_case' export type QualificationSetScalewayEnvironmentSubUseCase = - 'unknown_sub_use_case' + | 'unknown_sub_use_case' -export type QualificationShareDataSubUseCase = 'unknown_sub_use_case' +export type QualificationShareDataSubUseCase = + | 'unknown_sub_use_case' export interface QualificationAiMachine { subUseCase: QualificationAiMachineSubUseCase } + export interface QualificationArchiveData { subUseCase: QualificationArchiveDataSubUseCase } + export interface QualificationContainer { subUseCase: QualificationContainerSubUseCase } + export interface QualificationDeploySoftware { subUseCase: QualificationDeploySoftwareSubUseCase } + export interface QualificationHostApplication { subUseCase: QualificationHostApplicationSubUseCase } + export interface QualificationHostWebsite { subUseCase: QualificationHostWebsiteSubUseCase } + export interface QualificationOtherUseCase { subUseCase: QualificationOtherUseCaseSubUseCase } + export interface QualificationSetScalewayEnvironment { subUseCase: QualificationSetScalewayEnvironmentSubUseCase } + export interface QualificationShareData { subUseCase: QualificationShareDataSubUseCase } + export interface Contract { /** * ID of the contract. @@ -126,6 +141,7 @@ export interface Contract { updatedAt?: Date } + export interface Qualification { /** * Architecture type of the qualification. @@ -178,6 +194,7 @@ export interface Qualification { otherUseCase?: QualificationOtherUseCase } + export interface ContractSignature { /** * ID of the contract signature. @@ -205,6 +222,7 @@ export interface ContractSignature { contract?: Contract } + export interface Project { /** * ID of the Project. @@ -236,6 +254,7 @@ export interface Project { qualification?: Qualification } + export interface CheckContractSignatureResponse { /** * Whether a signature has been requested for this contract. @@ -247,6 +266,7 @@ export interface CheckContractSignatureResponse { validated: boolean } + export type ContractApiCheckContractSignatureRequest = { /** * ID of the Organization to check the contract signature for. @@ -262,6 +282,7 @@ export type ContractApiCheckContractSignatureRequest = { contractName: string } + export type ContractApiCreateContractSignatureRequest = { /** * The type of the contract. @@ -281,6 +302,7 @@ export type ContractApiCreateContractSignatureRequest = { organizationId?: string } + export type ContractApiDownloadContractSignatureRequest = { /** * The contract signature ID. @@ -292,6 +314,7 @@ export type ContractApiDownloadContractSignatureRequest = { locale?: StdLanguageCode } + export type ContractApiListContractSignaturesRequest = { /** * The page number for the returned contracts. @@ -311,6 +334,7 @@ export type ContractApiListContractSignaturesRequest = { organizationId?: string } + export type ContractApiValidateContractSignatureRequest = { /** * The contract linked to your Organization you want to sign. @@ -318,6 +342,7 @@ export type ContractApiValidateContractSignatureRequest = { contractSignatureId: string } + export interface ListContractSignaturesResponse { /** * The total number of contract signatures. @@ -329,6 +354,7 @@ export interface ListContractSignaturesResponse { contractSignatures: ContractSignature[] } + export interface ListProjectsResponse { /** * Total number of Projects. @@ -340,6 +366,7 @@ export interface ListProjectsResponse { projects: Project[] } + export type ProjectApiCreateProjectRequest = { /** * Name of the Project. @@ -355,6 +382,7 @@ export type ProjectApiCreateProjectRequest = { description: string } + export type ProjectApiDeleteProjectRequest = { /** * Project ID of the Project. @@ -362,6 +390,7 @@ export type ProjectApiDeleteProjectRequest = { projectId?: string } + export type ProjectApiGetProjectRequest = { /** * Project ID of the Project. @@ -369,6 +398,7 @@ export type ProjectApiGetProjectRequest = { projectId?: string } + export type ProjectApiListProjectsRequest = { /** * Organization ID of the Project. @@ -396,6 +426,7 @@ export type ProjectApiListProjectsRequest = { projectIds?: string[] } + export type ProjectApiSetProjectQualificationRequest = { /** * Project ID. @@ -407,6 +438,7 @@ export type ProjectApiSetProjectQualificationRequest = { qualification?: Qualification } + export type ProjectApiUpdateProjectRequest = { /** * Project ID of the Project. @@ -422,6 +454,7 @@ export type ProjectApiUpdateProjectRequest = { description?: string } + export interface ProjectQualification { /** * Project ID. @@ -432,3 +465,5 @@ export interface ProjectQualification { */ qualification?: Qualification } + +