@droz-js/sdk
Advanced tools
Comparing version 0.8.8 to 0.9.0
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.8.8", | ||
"version": "0.9.0", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -55,2 +55,40 @@ export * from './sdks/drozcommons'; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateGlobalSecretsMutation>; | ||
listTenantParameters(variables: import("./sdks/drozcommons").Exact<{ | ||
tenantId: import("./sdks/drozcommons").Scalars["String"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListTenantParametersQuery>; | ||
getTenantParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
tenantId: import("./sdks/drozcommons").Scalars["String"]["input"]; | ||
name: import("./sdks/drozcommons").Scalars["String"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetTenantParameterQuery>; | ||
listAccountParameters(variables: import("./sdks/drozcommons").Exact<{ | ||
accountId: import("./sdks/drozcommons").Scalars["String"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountParametersQuery>; | ||
getAccountParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
accountId: import("./sdks/drozcommons").Scalars["String"]["input"]; | ||
name: import("./sdks/drozcommons").Scalars["String"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAccountParameterQuery>; | ||
listGlobalParameters(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGlobalParametersQuery>; | ||
getGlobalParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
name: import("./sdks/drozcommons").Scalars["String"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetGlobalParameterQuery>; | ||
setTenantParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").SetTenantParameterInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").SetTenantParameterMutation>; | ||
removeTenantParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").RemoveTenantParameterInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantParameterMutation>; | ||
setAccountParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").SetAccountParameterInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").SetAccountParameterMutation>; | ||
removeAccountParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").RemoveAccountParameterInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveAccountParameterMutation>; | ||
setGlobalParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").SetGlobalParameterInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").SetGlobalParameterMutation>; | ||
removeGlobalParameter(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").RemoveGlobalParameterInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveGlobalParameterMutation>; | ||
listServices(variables: import("./sdks/drozcommons").Exact<{ | ||
@@ -86,2 +124,3 @@ tenantId: import("./sdks/drozcommons").Scalars["ID"]["input"]; | ||
export declare class DrozAdmin extends DrozAdmin_base { | ||
constructor(); | ||
} |
@@ -22,3 +22,7 @@ "use strict"; | ||
class DrozAdmin extends (0, http_1.HttpClientBuilder)(drozcommons_1.serviceName, drozcommons_1.getSdk) { | ||
constructor() { | ||
super(); | ||
this.forTenant('core'); | ||
} | ||
} | ||
exports.DrozAdmin = DrozAdmin; |
@@ -267,3 +267,9 @@ export type Maybe<T> = T; | ||
joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>; | ||
removeAccountParameter?: Maybe<Parameter>; | ||
removeGlobalParameter?: Maybe<Parameter>; | ||
removeTenant: Tenant; | ||
removeTenantParameter?: Maybe<Parameter>; | ||
setAccountParameter: Parameter; | ||
setGlobalParameter: Parameter; | ||
setTenantParameter: Parameter; | ||
updateAccountParameters: AwsAccount; | ||
@@ -289,5 +295,23 @@ updateGlobalSecrets: GlobalSecrets; | ||
}; | ||
export type MutationRemoveAccountParameterArgs = { | ||
input: RemoveAccountParameterInput; | ||
}; | ||
export type MutationRemoveGlobalParameterArgs = { | ||
input: RemoveGlobalParameterInput; | ||
}; | ||
export type MutationRemoveTenantArgs = { | ||
input: RemoveTenantInput; | ||
}; | ||
export type MutationRemoveTenantParameterArgs = { | ||
input: RemoveTenantParameterInput; | ||
}; | ||
export type MutationSetAccountParameterArgs = { | ||
input: SetAccountParameterInput; | ||
}; | ||
export type MutationSetGlobalParameterArgs = { | ||
input: SetGlobalParameterInput; | ||
}; | ||
export type MutationSetTenantParameterArgs = { | ||
input: SetTenantParameterInput; | ||
}; | ||
export type MutationUpdateAccountParametersArgs = { | ||
@@ -324,2 +348,14 @@ input: UpdateAccountParametersInput; | ||
}; | ||
export type Parameter = { | ||
name: Scalars['String']['output']; | ||
namespace: Scalars['String']['output']; | ||
type: ParameterType; | ||
value?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export declare enum ParameterType { | ||
Array = "array", | ||
Boolean = "boolean", | ||
Number = "number", | ||
String = "string" | ||
} | ||
export type Query = { | ||
@@ -330,5 +366,9 @@ amplifyConfig?: Maybe<Scalars['JSON']['output']>; | ||
deploymentLogs: DeploymentLogConnection; | ||
getAccountParameter?: Maybe<Parameter>; | ||
getDeployment: Deployment; | ||
getGlobalParameter?: Maybe<Parameter>; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
getTenant?: Maybe<Tenant>; | ||
getTenantParameter?: Maybe<Parameter>; | ||
listAccountParameters?: Maybe<Array<Parameter>>; | ||
listAccounts: Array<AwsAccount>; | ||
@@ -338,4 +378,6 @@ listDeployments: Array<Deployment>; | ||
listGitRepositories: Array<GitRepository>; | ||
listGlobalParameters?: Maybe<Array<Parameter>>; | ||
listRegions: Array<Region>; | ||
listServices: Array<Maybe<Service>>; | ||
listTenantParameters?: Maybe<Array<Parameter>>; | ||
listTenants: Array<Maybe<Tenant>>; | ||
@@ -353,2 +395,6 @@ searchSessionsOnTenant: Array<Maybe<Scalars['JSON']['output']>>; | ||
}; | ||
export type QueryGetAccountParameterArgs = { | ||
accountId: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
}; | ||
export type QueryGetDeploymentArgs = { | ||
@@ -358,5 +404,15 @@ deploymentId: Scalars['ID']['input']; | ||
}; | ||
export type QueryGetGlobalParameterArgs = { | ||
name: Scalars['String']['input']; | ||
}; | ||
export type QueryGetTenantArgs = { | ||
tenantId: Scalars['TenantId']['input']; | ||
}; | ||
export type QueryGetTenantParameterArgs = { | ||
name: Scalars['String']['input']; | ||
tenantId: Scalars['String']['input']; | ||
}; | ||
export type QueryListAccountParametersArgs = { | ||
accountId: Scalars['String']['input']; | ||
}; | ||
export type QueryListDeploymentsArgs = { | ||
@@ -372,2 +428,5 @@ limit?: InputMaybe<Scalars['Int']['input']>; | ||
}; | ||
export type QueryListTenantParametersArgs = { | ||
tenantId: Scalars['String']['input']; | ||
}; | ||
export type QuerySearchSessionsOnTenantArgs = { | ||
@@ -386,5 +445,16 @@ q?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type RemoveAccountParameterInput = { | ||
accountId: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
}; | ||
export type RemoveGlobalParameterInput = { | ||
name: Scalars['String']['input']; | ||
}; | ||
export type RemoveTenantInput = { | ||
tenantId: Scalars['TenantId']['input']; | ||
}; | ||
export type RemoveTenantParameterInput = { | ||
name: Scalars['String']['input']; | ||
tenantId: Scalars['String']['input']; | ||
}; | ||
export type SearchResultsFacet = { | ||
@@ -418,2 +488,19 @@ name: Scalars['String']['output']; | ||
}; | ||
export type SetAccountParameterInput = { | ||
accountId: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
type?: InputMaybe<ParameterType>; | ||
value: Scalars['String']['input']; | ||
}; | ||
export type SetGlobalParameterInput = { | ||
name: Scalars['String']['input']; | ||
type?: InputMaybe<ParameterType>; | ||
value: Scalars['String']['input']; | ||
}; | ||
export type SetTenantParameterInput = { | ||
name: Scalars['String']['input']; | ||
tenantId: Scalars['String']['input']; | ||
type?: InputMaybe<ParameterType>; | ||
value: Scalars['String']['input']; | ||
}; | ||
export type StringMatcher = { | ||
@@ -467,3 +554,5 @@ btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>; | ||
GraphqlConnections = "GraphqlConnections", | ||
GraphqlSubscriptions = "GraphqlSubscriptions" | ||
GraphqlSubscriptions = "GraphqlSubscriptions", | ||
Parameters = "Parameters", | ||
Tenants = "Tenants" | ||
} | ||
@@ -594,2 +683,77 @@ export type UpdateAccountParametersInput = { | ||
}; | ||
export type ParameterFragment = Pick<Parameter, 'namespace' | 'name' | 'value' | 'type'>; | ||
export type ListTenantParametersQueryVariables = Exact<{ | ||
tenantId: Scalars['String']['input']; | ||
}>; | ||
export type ListTenantParametersQuery = { | ||
listTenantParameters?: Maybe<Array<ParameterFragment>>; | ||
}; | ||
export type GetTenantParameterQueryVariables = Exact<{ | ||
tenantId: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
}>; | ||
export type GetTenantParameterQuery = { | ||
getTenantParameter?: Maybe<ParameterFragment>; | ||
}; | ||
export type ListAccountParametersQueryVariables = Exact<{ | ||
accountId: Scalars['String']['input']; | ||
}>; | ||
export type ListAccountParametersQuery = { | ||
listAccountParameters?: Maybe<Array<ParameterFragment>>; | ||
}; | ||
export type GetAccountParameterQueryVariables = Exact<{ | ||
accountId: Scalars['String']['input']; | ||
name: Scalars['String']['input']; | ||
}>; | ||
export type GetAccountParameterQuery = { | ||
getAccountParameter?: Maybe<ParameterFragment>; | ||
}; | ||
export type ListGlobalParametersQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListGlobalParametersQuery = { | ||
listGlobalParameters?: Maybe<Array<ParameterFragment>>; | ||
}; | ||
export type GetGlobalParameterQueryVariables = Exact<{ | ||
name: Scalars['String']['input']; | ||
}>; | ||
export type GetGlobalParameterQuery = { | ||
getGlobalParameter?: Maybe<ParameterFragment>; | ||
}; | ||
export type SetTenantParameterMutationVariables = Exact<{ | ||
input: SetTenantParameterInput; | ||
}>; | ||
export type SetTenantParameterMutation = { | ||
setTenantParameter: ParameterFragment; | ||
}; | ||
export type RemoveTenantParameterMutationVariables = Exact<{ | ||
input: RemoveTenantParameterInput; | ||
}>; | ||
export type RemoveTenantParameterMutation = { | ||
removeTenantParameter?: Maybe<ParameterFragment>; | ||
}; | ||
export type SetAccountParameterMutationVariables = Exact<{ | ||
input: SetAccountParameterInput; | ||
}>; | ||
export type SetAccountParameterMutation = { | ||
setAccountParameter: ParameterFragment; | ||
}; | ||
export type RemoveAccountParameterMutationVariables = Exact<{ | ||
input: RemoveAccountParameterInput; | ||
}>; | ||
export type RemoveAccountParameterMutation = { | ||
removeAccountParameter?: Maybe<ParameterFragment>; | ||
}; | ||
export type SetGlobalParameterMutationVariables = Exact<{ | ||
input: SetGlobalParameterInput; | ||
}>; | ||
export type SetGlobalParameterMutation = { | ||
setGlobalParameter: ParameterFragment; | ||
}; | ||
export type RemoveGlobalParameterMutationVariables = Exact<{ | ||
input: RemoveGlobalParameterInput; | ||
}>; | ||
export type RemoveGlobalParameterMutation = { | ||
removeGlobalParameter?: Maybe<ParameterFragment>; | ||
}; | ||
export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>; | ||
@@ -663,2 +827,3 @@ export type ListServicesQueryVariables = Exact<{ | ||
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n "; | ||
export declare const ParameterFragmentDoc = "\n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n "; | ||
@@ -680,2 +845,14 @@ 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 automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n "; | ||
export declare const UpdateGlobalSecretsDocument = "\n mutation updateGlobalSecrets($input: UpdateGlobalSecretsInput!) {\n updateGlobalSecrets(input: $input) {\n crossServiceJwtSignKey\n }\n}\n "; | ||
export declare const ListTenantParametersDocument = "\n query listTenantParameters($tenantId: String!) {\n listTenantParameters(tenantId: $tenantId) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const GetTenantParameterDocument = "\n query getTenantParameter($tenantId: String!, $name: String!) {\n getTenantParameter(tenantId: $tenantId, name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const ListAccountParametersDocument = "\n query listAccountParameters($accountId: String!) {\n listAccountParameters(accountId: $accountId) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const GetAccountParameterDocument = "\n query getAccountParameter($accountId: String!, $name: String!) {\n getAccountParameter(accountId: $accountId, name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const ListGlobalParametersDocument = "\n query listGlobalParameters {\n listGlobalParameters {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const GetGlobalParameterDocument = "\n query getGlobalParameter($name: String!) {\n getGlobalParameter(name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const SetTenantParameterDocument = "\n mutation setTenantParameter($input: SetTenantParameterInput!) {\n setTenantParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const RemoveTenantParameterDocument = "\n mutation removeTenantParameter($input: RemoveTenantParameterInput!) {\n removeTenantParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const SetAccountParameterDocument = "\n mutation setAccountParameter($input: SetAccountParameterInput!) {\n setAccountParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const RemoveAccountParameterDocument = "\n mutation removeAccountParameter($input: RemoveAccountParameterInput!) {\n removeAccountParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const SetGlobalParameterDocument = "\n mutation setGlobalParameter($input: SetGlobalParameterInput!) {\n setGlobalParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const RemoveGlobalParameterDocument = "\n mutation removeGlobalParameter($input: RemoveGlobalParameterInput!) {\n removeGlobalParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n "; | ||
export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n "; | ||
@@ -705,2 +882,14 @@ export declare const GetTenantDocument = "\n query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \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 automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\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 "; | ||
updateGlobalSecrets(variables: UpdateGlobalSecretsMutationVariables, options?: C): Promise<UpdateGlobalSecretsMutation>; | ||
listTenantParameters(variables: ListTenantParametersQueryVariables, options?: C): Promise<ListTenantParametersQuery>; | ||
getTenantParameter(variables: GetTenantParameterQueryVariables, options?: C): Promise<GetTenantParameterQuery>; | ||
listAccountParameters(variables: ListAccountParametersQueryVariables, options?: C): Promise<ListAccountParametersQuery>; | ||
getAccountParameter(variables: GetAccountParameterQueryVariables, options?: C): Promise<GetAccountParameterQuery>; | ||
listGlobalParameters(variables?: ListGlobalParametersQueryVariables, options?: C): Promise<ListGlobalParametersQuery>; | ||
getGlobalParameter(variables: GetGlobalParameterQueryVariables, options?: C): Promise<GetGlobalParameterQuery>; | ||
setTenantParameter(variables: SetTenantParameterMutationVariables, options?: C): Promise<SetTenantParameterMutation>; | ||
removeTenantParameter(variables: RemoveTenantParameterMutationVariables, options?: C): Promise<RemoveTenantParameterMutation>; | ||
setAccountParameter(variables: SetAccountParameterMutationVariables, options?: C): Promise<SetAccountParameterMutation>; | ||
removeAccountParameter(variables: RemoveAccountParameterMutationVariables, options?: C): Promise<RemoveAccountParameterMutation>; | ||
setGlobalParameter(variables: SetGlobalParameterMutationVariables, options?: C): Promise<SetGlobalParameterMutation>; | ||
removeGlobalParameter(variables: RemoveGlobalParameterMutationVariables, options?: C): Promise<RemoveGlobalParameterMutation>; | ||
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>; | ||
@@ -707,0 +896,0 @@ getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.UpdateGlobalSecretsDocument = 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.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.UpdateGlobalSecretsDocument = 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.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.getSdk = getSdk; | ||
@@ -31,2 +31,9 @@ var AppInstanceStatus; | ||
})(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {})); | ||
var ParameterType; | ||
(function (ParameterType) { | ||
ParameterType["Array"] = "array"; | ||
ParameterType["Boolean"] = "boolean"; | ||
ParameterType["Number"] = "number"; | ||
ParameterType["String"] = "string"; | ||
})(ParameterType || (exports.ParameterType = ParameterType = {})); | ||
var Typenames; | ||
@@ -37,2 +44,4 @@ (function (Typenames) { | ||
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions"; | ||
Typenames["Parameters"] = "Parameters"; | ||
Typenames["Tenants"] = "Tenants"; | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
@@ -96,2 +105,10 @@ exports.RegionFragmentDoc = ` | ||
`; | ||
exports.ParameterFragmentDoc = ` | ||
fragment parameter on Parameter { | ||
namespace | ||
name | ||
value | ||
type | ||
} | ||
`; | ||
exports.ServiceFragmentDoc = ` | ||
@@ -248,2 +265,86 @@ fragment service on Service { | ||
`; | ||
exports.ListTenantParametersDocument = ` | ||
query listTenantParameters($tenantId: String!) { | ||
listTenantParameters(tenantId: $tenantId) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.GetTenantParameterDocument = ` | ||
query getTenantParameter($tenantId: String!, $name: String!) { | ||
getTenantParameter(tenantId: $tenantId, name: $name) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.ListAccountParametersDocument = ` | ||
query listAccountParameters($accountId: String!) { | ||
listAccountParameters(accountId: $accountId) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.GetAccountParameterDocument = ` | ||
query getAccountParameter($accountId: String!, $name: String!) { | ||
getAccountParameter(accountId: $accountId, name: $name) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.ListGlobalParametersDocument = ` | ||
query listGlobalParameters { | ||
listGlobalParameters { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.GetGlobalParameterDocument = ` | ||
query getGlobalParameter($name: String!) { | ||
getGlobalParameter(name: $name) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.SetTenantParameterDocument = ` | ||
mutation setTenantParameter($input: SetTenantParameterInput!) { | ||
setTenantParameter(input: $input) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.RemoveTenantParameterDocument = ` | ||
mutation removeTenantParameter($input: RemoveTenantParameterInput!) { | ||
removeTenantParameter(input: $input) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.SetAccountParameterDocument = ` | ||
mutation setAccountParameter($input: SetAccountParameterInput!) { | ||
setAccountParameter(input: $input) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.RemoveAccountParameterDocument = ` | ||
mutation removeAccountParameter($input: RemoveAccountParameterInput!) { | ||
removeAccountParameter(input: $input) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.SetGlobalParameterDocument = ` | ||
mutation setGlobalParameter($input: SetGlobalParameterInput!) { | ||
setGlobalParameter(input: $input) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.RemoveGlobalParameterDocument = ` | ||
mutation removeGlobalParameter($input: RemoveGlobalParameterInput!) { | ||
removeGlobalParameter(input: $input) { | ||
...parameter | ||
} | ||
} | ||
${exports.ParameterFragmentDoc}`; | ||
exports.ListServicesDocument = ` | ||
@@ -361,2 +462,38 @@ query listServices($tenantId: ID!) { | ||
}, | ||
listTenantParameters(variables, options) { | ||
return requester(exports.ListTenantParametersDocument, variables, options); | ||
}, | ||
getTenantParameter(variables, options) { | ||
return requester(exports.GetTenantParameterDocument, variables, options); | ||
}, | ||
listAccountParameters(variables, options) { | ||
return requester(exports.ListAccountParametersDocument, variables, options); | ||
}, | ||
getAccountParameter(variables, options) { | ||
return requester(exports.GetAccountParameterDocument, variables, options); | ||
}, | ||
listGlobalParameters(variables, options) { | ||
return requester(exports.ListGlobalParametersDocument, variables, options); | ||
}, | ||
getGlobalParameter(variables, options) { | ||
return requester(exports.GetGlobalParameterDocument, variables, options); | ||
}, | ||
setTenantParameter(variables, options) { | ||
return requester(exports.SetTenantParameterDocument, variables, options); | ||
}, | ||
removeTenantParameter(variables, options) { | ||
return requester(exports.RemoveTenantParameterDocument, variables, options); | ||
}, | ||
setAccountParameter(variables, options) { | ||
return requester(exports.SetAccountParameterDocument, variables, options); | ||
}, | ||
removeAccountParameter(variables, options) { | ||
return requester(exports.RemoveAccountParameterDocument, variables, options); | ||
}, | ||
setGlobalParameter(variables, options) { | ||
return requester(exports.SetGlobalParameterDocument, variables, options); | ||
}, | ||
removeGlobalParameter(variables, options) { | ||
return requester(exports.RemoveGlobalParameterDocument, variables, options); | ||
}, | ||
listServices(variables, options) { | ||
@@ -363,0 +500,0 @@ return requester(exports.ListServicesDocument, variables, options); |
@@ -178,2 +178,3 @@ export type Maybe<T> = T; | ||
billing: DrozNexoBilling; | ||
/** @deprecated Use tenantId instead */ | ||
name: Scalars['String']['output']; | ||
@@ -548,3 +549,3 @@ tenantId: Scalars['String']['output']; | ||
export type GetLicenceQuery = { | ||
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & { | ||
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId'> & { | ||
billing: { | ||
@@ -575,3 +576,3 @@ automate: Pick<AutomateConfiguration, 'isEnabled'>; | ||
export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n instanceId\n transitions\n createdAt\n updatedAt\n }\n}\n "; | ||
export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n name\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n "; | ||
export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -578,0 +579,0 @@ export declare function getSdk<C>(requester: Requester<C>): { |
@@ -260,3 +260,2 @@ "use strict"; | ||
tenantId | ||
name | ||
billing { | ||
@@ -263,0 +262,0 @@ automate { |
1447136
28868