@droz-js/sdk
Advanced tools
Comparing version
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -8,2 +8,5 @@ export * from './sdks/drozcommons'; | ||
} & { | ||
getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAmplifyConfigQuery>; | ||
getAuthInfo(variables?: import("./sdks/drozcommons").Exact<{ | ||
@@ -21,2 +24,6 @@ [key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>; | ||
listDeployments(variables: import("./sdks/drozcommons").Exact<{ | ||
tenantId: string; | ||
limit?: number; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListDeploymentsQuery>; | ||
deploymentLogs(variables: import("./sdks/drozcommons").Exact<{ | ||
@@ -23,0 +30,0 @@ tenantId: string; |
@@ -194,2 +194,3 @@ export type Maybe<T> = T; | ||
export type Query = { | ||
amplifyConfig?: Maybe<Scalars['JSON']['output']>; | ||
app?: Maybe<Scalars['DRN']['output']>; | ||
@@ -201,2 +202,3 @@ authInfo?: Maybe<AuthInfo>; | ||
listAccounts: Array<AwsAccount>; | ||
listDeployments: Array<Deployment>; | ||
listGitBranches: Array<GitBranch>; | ||
@@ -216,2 +218,6 @@ listGitRepositories: Array<GitRepository>; | ||
}; | ||
export type QueryListDeploymentsArgs = { | ||
limit?: InputMaybe<Scalars['Int']['input']>; | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type QueryListGitBranchesArgs = { | ||
@@ -253,2 +259,6 @@ gitRepositoryId: Scalars['ID']['input']; | ||
}; | ||
export type GetAmplifyConfigQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type GetAmplifyConfigQuery = Pick<Query, 'amplifyConfig'>; | ||
export type GetAuthInfoQueryVariables = Exact<{ | ||
@@ -284,2 +294,9 @@ [key: string]: never; | ||
}; | ||
export type ListDeploymentsQueryVariables = Exact<{ | ||
tenantId: Scalars['ID']['input']; | ||
limit?: InputMaybe<Scalars['Int']['input']>; | ||
}>; | ||
export type ListDeploymentsQuery = { | ||
listDeployments: Array<DeploymentFragment>; | ||
}; | ||
export type DeploymentLogsQueryVariables = Exact<{ | ||
@@ -349,2 +366,3 @@ tenantId: Scalars['ID']['input']; | ||
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\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 "; | ||
@@ -354,2 +372,3 @@ 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 ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n "; | ||
export declare const ListDeploymentsDocument = "\n query listDeployments($tenantId: ID!, $limit: Int) {\n listDeployments(tenantId: $tenantId, limit: $limit) {\n ...deployment\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 "; | ||
export declare const DeploymentLogsDocument = "\n query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) {\n deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) {\n nodes {\n id\n deploymentId\n message\n timestamp\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n "; | ||
@@ -364,2 +383,3 @@ 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 "; | ||
export declare function getSdk<C, E>(requester: Requester<C, E>): { | ||
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>; | ||
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>; | ||
@@ -369,2 +389,3 @@ listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>; | ||
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>; | ||
listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>; | ||
deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>; | ||
@@ -371,0 +392,0 @@ listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>; |
"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.DeploymentLogsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = 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.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -80,2 +80,7 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.GetAmplifyConfigDocument = ` | ||
query getAmplifyConfig { | ||
amplifyConfig | ||
} | ||
`; | ||
exports.GetAuthInfoDocument = ` | ||
@@ -117,2 +122,9 @@ query getAuthInfo { | ||
`; | ||
exports.ListDeploymentsDocument = ` | ||
query listDeployments($tenantId: ID!, $limit: Int) { | ||
listDeployments(tenantId: $tenantId, limit: $limit) { | ||
...deployment | ||
} | ||
} | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.DeploymentLogsDocument = ` | ||
@@ -194,2 +206,5 @@ query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) { | ||
return { | ||
getAmplifyConfig(variables, options) { | ||
return requester(exports.GetAmplifyConfigDocument, variables, options); | ||
}, | ||
getAuthInfo(variables, options) { | ||
@@ -207,2 +222,5 @@ return requester(exports.GetAuthInfoDocument, variables, options); | ||
}, | ||
listDeployments(variables, options) { | ||
return requester(exports.ListDeploymentsDocument, variables, options); | ||
}, | ||
deploymentLogs(variables, options) { | ||
@@ -209,0 +227,0 @@ return requester(exports.DeploymentLogsDocument, variables, options); |
313753
0.75%7022
0.67%