@droz-js/sdk
Advanced tools
Comparing version 0.5.15 to 0.5.16
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.5.15", | ||
"version": "0.5.16", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -9,2 +9,11 @@ export * from './sdks/drozcommons'; | ||
} & { | ||
listAccounts(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountsQuery>; | ||
listRegions(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListRegionsQuery>; | ||
updateAccountParameters(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").UpdateAccountParametersInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateAccountParametersMutation>; | ||
getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{ | ||
@@ -16,8 +25,2 @@ forDev?: boolean; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAuthInfoQuery>; | ||
listAccounts(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountsQuery>; | ||
listRegions(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListRegionsQuery>; | ||
listGitRepositories(variables?: import("./sdks/drozcommons").Exact<{ | ||
@@ -24,0 +27,0 @@ [key: string]: never; |
@@ -102,7 +102,13 @@ export type Maybe<T> = T; | ||
export type AwsAccount = { | ||
availableRegions: Array<Region>; | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
parameters: AwsAccountParameters; | ||
tenants: Array<Maybe<Tenant>>; | ||
tenantsCount: Scalars['Int']['output']; | ||
}; | ||
export type AwsAccountParameters = { | ||
typesenseApiKey?: Maybe<Scalars['String']['output']>; | ||
typesenseNodes?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type BatchDeployInput = { | ||
@@ -184,2 +190,3 @@ branch: Scalars['String']['input']; | ||
removeTenant: Tenant; | ||
updateAccountParameters: AwsAccount; | ||
updateTenant: Tenant; | ||
@@ -203,2 +210,5 @@ version?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type MutationUpdateAccountParametersArgs = { | ||
input: UpdateAccountParametersInput; | ||
}; | ||
export type MutationUpdateTenantArgs = { | ||
@@ -294,2 +304,7 @@ input: UpdateTenantInput; | ||
} | ||
export type UpdateAccountParametersInput = { | ||
id: Scalars['ID']['input']; | ||
typesenseApiKey?: InputMaybe<Scalars['String']['input']>; | ||
typesenseNodes?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type UpdateTenantInput = { | ||
@@ -300,2 +315,25 @@ billing?: InputMaybe<TenantBillingInput>; | ||
}; | ||
export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & { | ||
availableRegions: Array<RegionFragment>; | ||
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey'>; | ||
}); | ||
export type RegionFragment = Pick<Region, 'name'>; | ||
export type ListAccountsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListAccountsQuery = { | ||
listAccounts: Array<AwsAccountFragment>; | ||
}; | ||
export type ListRegionsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListRegionsQuery = { | ||
listRegions: Array<RegionFragment>; | ||
}; | ||
export type UpdateAccountParametersMutationVariables = Exact<{ | ||
input: UpdateAccountParametersInput; | ||
}>; | ||
export type UpdateAccountParametersMutation = { | ||
updateAccountParameters: AwsAccountFragment; | ||
}; | ||
export type GetAmplifyConfigQueryVariables = Exact<{ | ||
@@ -318,16 +356,2 @@ forDev?: InputMaybe<Scalars['Boolean']['input']>; | ||
export type GitBranchFragment = Pick<GitBranch, 'name'>; | ||
export type AwsAccountFragment = Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'>; | ||
export type RegionFragment = Pick<Region, 'name'>; | ||
export type ListAccountsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListAccountsQuery = { | ||
listAccounts: Array<AwsAccountFragment>; | ||
}; | ||
export type ListRegionsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListRegionsQuery = { | ||
listRegions: Array<RegionFragment>; | ||
}; | ||
export type ListGitRepositoriesQueryVariables = Exact<{ | ||
@@ -440,13 +464,14 @@ [key: string]: never; | ||
}; | ||
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n "; | ||
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n "; | ||
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n "; | ||
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n "; | ||
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n "; | ||
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n "; | ||
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n "; | ||
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n "; | ||
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n "; | ||
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n "; | ||
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n "; | ||
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n "; | ||
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n "; | ||
@@ -468,6 +493,7 @@ export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n "; | ||
export declare function getSdk<C>(requester: Requester<C>): { | ||
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>; | ||
listRegions(variables?: ListRegionsQueryVariables, options?: C): Promise<ListRegionsQuery>; | ||
updateAccountParameters(variables: UpdateAccountParametersMutationVariables, options?: C): Promise<UpdateAccountParametersMutation>; | ||
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>; | ||
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>; | ||
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>; | ||
listRegions(variables?: ListRegionsQueryVariables, options?: C): Promise<ListRegionsQuery>; | ||
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>; | ||
@@ -474,0 +500,0 @@ listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.RegionFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -29,2 +29,21 @@ (function (AppInstanceStatus) { | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
exports.RegionFragmentDoc = ` | ||
fragment region on Region { | ||
name | ||
} | ||
`; | ||
exports.AwsAccountFragmentDoc = ` | ||
fragment awsAccount on AwsAccount { | ||
id | ||
name | ||
tenantsCount | ||
availableRegions { | ||
...region | ||
} | ||
parameters { | ||
typesenseNodes | ||
typesenseApiKey | ||
} | ||
} | ||
${exports.RegionFragmentDoc}`; | ||
exports.DeploymentFragmentDoc = ` | ||
@@ -58,14 +77,2 @@ fragment deployment on Deployment { | ||
${exports.GitBranchFragmentDoc}`; | ||
exports.AwsAccountFragmentDoc = ` | ||
fragment awsAccount on AwsAccount { | ||
id | ||
name | ||
tenantsCount | ||
} | ||
`; | ||
exports.RegionFragmentDoc = ` | ||
fragment region on Region { | ||
name | ||
} | ||
`; | ||
exports.ServiceFragmentDoc = ` | ||
@@ -100,2 +107,23 @@ fragment service on Service { | ||
`; | ||
exports.ListAccountsDocument = ` | ||
query listAccounts { | ||
listAccounts { | ||
...awsAccount | ||
} | ||
} | ||
${exports.AwsAccountFragmentDoc}`; | ||
exports.ListRegionsDocument = ` | ||
query listRegions { | ||
listRegions { | ||
...region | ||
} | ||
} | ||
${exports.RegionFragmentDoc}`; | ||
exports.UpdateAccountParametersDocument = ` | ||
mutation updateAccountParameters($input: UpdateAccountParametersInput!) { | ||
updateAccountParameters(input: $input) { | ||
...awsAccount | ||
} | ||
} | ||
${exports.AwsAccountFragmentDoc}`; | ||
exports.GetAmplifyConfigDocument = ` | ||
@@ -121,16 +149,2 @@ query getAmplifyConfig($forDev: Boolean) { | ||
`; | ||
exports.ListAccountsDocument = ` | ||
query listAccounts { | ||
listAccounts { | ||
...awsAccount | ||
} | ||
} | ||
${exports.AwsAccountFragmentDoc}`; | ||
exports.ListRegionsDocument = ` | ||
query listRegions { | ||
listRegions { | ||
...region | ||
} | ||
} | ||
${exports.RegionFragmentDoc}`; | ||
exports.ListGitRepositoriesDocument = ` | ||
@@ -261,2 +275,11 @@ query listGitRepositories { | ||
return { | ||
listAccounts(variables, options) { | ||
return requester(exports.ListAccountsDocument, variables, options); | ||
}, | ||
listRegions(variables, options) { | ||
return requester(exports.ListRegionsDocument, variables, options); | ||
}, | ||
updateAccountParameters(variables, options) { | ||
return requester(exports.UpdateAccountParametersDocument, variables, options); | ||
}, | ||
getAmplifyConfig(variables, options) { | ||
@@ -268,8 +291,2 @@ return requester(exports.GetAmplifyConfigDocument, variables, options); | ||
}, | ||
listAccounts(variables, options) { | ||
return requester(exports.ListAccountsDocument, variables, options); | ||
}, | ||
listRegions(variables, options) { | ||
return requester(exports.ListRegionsDocument, variables, options); | ||
}, | ||
listGitRepositories(variables, options) { | ||
@@ -276,0 +293,0 @@ return requester(exports.ListGitRepositoriesDocument, variables, options); |
390324
8471