@droz-js/sdk
Advanced tools
Comparing version 0.9.7 to 0.9.8
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -102,2 +102,5 @@ export * from './sdks/drozcommons'; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListTenantsQuery>; | ||
getFederationMetadata(variables: import("./sdks/drozcommons").Exact<{ | ||
tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetFederationMetadataQuery>; | ||
searchSessionsOnTenant(variables: import("./sdks/drozcommons").Exact<{ | ||
@@ -104,0 +107,0 @@ tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"]; |
@@ -32,2 +32,6 @@ export * from './sdks/drozanalytics'; | ||
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetTicketsByTriggerAppQuery>; | ||
getFacets(variables: import("./sdks/drozanalytics").Exact<{ | ||
startDate: import("./sdks/drozanalytics").Scalars["Date"]["input"]; | ||
endDate: import("./sdks/drozanalytics").Scalars["Date"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetFacetsQuery>; | ||
}; | ||
@@ -34,0 +38,0 @@ export declare class Drozanalytics extends Drozanalytics_base { |
@@ -91,4 +91,8 @@ import { CreatePresignedUploadUrlInput } from './sdks/nucleus'; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").UnregisterAppInstanceMutation>; | ||
getFederationMetadata(variables?: import("./sdks/nucleus").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetFederationMetadataQuery>; | ||
getAmplifyConfig(variables?: import("./sdks/nucleus").Exact<{ | ||
[key: string]: never; | ||
forDev?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").Scalars["Boolean"]["input"]>; | ||
forService?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").Scalars["String"]["input"]>; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAmplifyConfigQuery>; | ||
@@ -199,2 +203,8 @@ getAuthInfo(variables?: import("./sdks/nucleus").Exact<{ | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveTagsFromSessionAttributesMutation>; | ||
getSettings(variables?: import("./sdks/nucleus").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetSettingsQuery>; | ||
updateSettings(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").UpdateSettingsInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateSettingsMutation>; | ||
getStateMachine(variables: import("./sdks/nucleus").Exact<{ | ||
@@ -201,0 +211,0 @@ id: import("./sdks/nucleus").Scalars["ID"]["input"]; |
@@ -141,2 +141,12 @@ export type Maybe<T> = T; | ||
}; | ||
export type AnalyticsFacetValue = { | ||
count?: Maybe<Scalars['Float']['output']>; | ||
display?: Maybe<Scalars['String']['output']>; | ||
value?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type AnalyticsFacets = { | ||
agents?: Maybe<Array<Maybe<AnalyticsFacetValue>>>; | ||
customers?: Maybe<Array<Maybe<AnalyticsFacetValue>>>; | ||
statuses?: Maybe<Array<Maybe<AnalyticsFacetValue>>>; | ||
}; | ||
export type AnalyticsMultiValue = { | ||
@@ -207,2 +217,3 @@ results: Array<MultiGrouped>; | ||
getAttendanceTime?: Maybe<AnalyticsAverage>; | ||
getFacets?: Maybe<AnalyticsFacets>; | ||
getFirstResponseTime?: Maybe<AnalyticsAverage>; | ||
@@ -221,2 +232,7 @@ getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type QueryGetFacetsArgs = { | ||
endDate: Scalars['Date']['input']; | ||
filters?: InputMaybe<Array<TicketAnalyticsFilterInput>>; | ||
startDate: Scalars['Date']['input']; | ||
}; | ||
export type QueryGetFirstResponseTimeArgs = { | ||
@@ -320,2 +336,7 @@ endDate: Scalars['Date']['input']; | ||
}; | ||
export type QueryFacetsFragment = { | ||
customers?: Maybe<Array<Maybe<Pick<AnalyticsFacetValue, 'value' | 'display' | 'count'>>>>; | ||
agents?: Maybe<Array<Maybe<Pick<AnalyticsFacetValue, 'value' | 'display' | 'count'>>>>; | ||
statuses?: Maybe<Array<Maybe<Pick<AnalyticsFacetValue, 'value' | 'display' | 'count'>>>>; | ||
}; | ||
export type GetFirstResponseTimeQueryVariables = Exact<{ | ||
@@ -362,2 +383,9 @@ startDate: Scalars['Date']['input']; | ||
}; | ||
export type GetFacetsQueryVariables = Exact<{ | ||
startDate: Scalars['Date']['input']; | ||
endDate: Scalars['Date']['input']; | ||
}>; | ||
export type GetFacetsQuery = { | ||
getFacets?: Maybe<QueryFacetsFragment>; | ||
}; | ||
export declare const AverageFragmentDoc = "\n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n "; | ||
@@ -367,2 +395,3 @@ export declare const VolumeFragmentDoc = "\n fragment volume on AnalyticsVolume {\n delta\n total\n prevTotal\n data {\n name\n value\n }\n}\n "; | ||
export declare const MultiValueFragmentDoc = "\n fragment multiValue on AnalyticsMultiValue {\n results {\n name\n values {\n name\n value\n }\n }\n summary {\n ...chart\n }\n}\n "; | ||
export declare const QueryFacetsFragmentDoc = "\n fragment queryFacets on AnalyticsFacets {\n customers {\n value\n display\n count\n }\n agents {\n value\n display\n count\n }\n statuses {\n value\n display\n count\n }\n}\n "; | ||
export declare const GetFirstResponseTimeDocument = "\n query getFirstResponseTime($startDate: Date!, $endDate: Date!) {\n getFirstResponseTime(startDate: $startDate, endDate: $endDate) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n "; | ||
@@ -374,2 +403,3 @@ export declare const GetAttendanceTimeDocument = "\n query getAttendanceTime($startDate: Date!, $endDate: Date!) {\n getAttendanceTime(startDate: $startDate, endDate: $endDate) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n "; | ||
export declare const GetTicketsByTriggerAppDocument = "\n query getTicketsByTriggerApp($startDate: Date!, $endDate: Date!) {\n getTicketsByTriggerApp(startDate: $startDate, endDate: $endDate) {\n ...chart\n }\n}\n \n fragment chart on AnalyticsChart {\n delta\n current\n previous\n name\n}\n "; | ||
export declare const GetFacetsDocument = "\n query getFacets($startDate: Date!, $endDate: Date!) {\n getFacets(startDate: $startDate, endDate: $endDate) {\n ...queryFacets\n }\n}\n \n fragment queryFacets on AnalyticsFacets {\n customers {\n value\n display\n count\n }\n agents {\n value\n display\n count\n }\n statuses {\n value\n display\n count\n }\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -383,4 +413,5 @@ export declare function getSdk<C>(requester: Requester<C>): { | ||
getTicketsByTriggerApp(variables: GetTicketsByTriggerAppQueryVariables, options?: C): Promise<GetTicketsByTriggerAppQuery>; | ||
getFacets(variables: GetFacetsQueryVariables, options?: C): Promise<GetFacetsQuery>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
export declare const serviceName = "@droz/drozanalytics"; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.GetFacetsDocument = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.QueryFacetsFragmentDoc = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.getSdk = getSdk; | ||
@@ -65,2 +65,21 @@ var AppInstanceStatus; | ||
`; | ||
exports.QueryFacetsFragmentDoc = ` | ||
fragment queryFacets on AnalyticsFacets { | ||
customers { | ||
value | ||
display | ||
count | ||
} | ||
agents { | ||
value | ||
display | ||
count | ||
} | ||
statuses { | ||
value | ||
display | ||
count | ||
} | ||
} | ||
`; | ||
exports.GetFirstResponseTimeDocument = ` | ||
@@ -110,2 +129,9 @@ query getFirstResponseTime($startDate: Date!, $endDate: Date!) { | ||
${exports.ChartFragmentDoc}`; | ||
exports.GetFacetsDocument = ` | ||
query getFacets($startDate: Date!, $endDate: Date!) { | ||
getFacets(startDate: $startDate, endDate: $endDate) { | ||
...queryFacets | ||
} | ||
} | ||
${exports.QueryFacetsFragmentDoc}`; | ||
function getSdk(requester) { | ||
@@ -130,2 +156,5 @@ return { | ||
return requester(exports.GetTicketsByTriggerAppDocument, variables, options); | ||
}, | ||
getFacets(variables, options) { | ||
return requester(exports.GetFacetsDocument, variables, options); | ||
} | ||
@@ -132,0 +161,0 @@ }; |
@@ -167,2 +167,3 @@ export type Maybe<T> = T; | ||
accountId: Scalars['ID']['input']; | ||
identityProviders?: InputMaybe<Array<IdentityProviderInput>>; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
@@ -231,2 +232,25 @@ region?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type IdentityProvider = { | ||
attributeMapping?: Maybe<Scalars['JSON']['output']>; | ||
metadataContent?: Maybe<Scalars['String']['output']>; | ||
metadataType?: Maybe<IdentityProviderSamlMetadataType>; | ||
name?: Maybe<Scalars['String']['output']>; | ||
type: IdentityProviderType; | ||
}; | ||
export type IdentityProviderInput = { | ||
attributeMapping?: InputMaybe<Scalars['JSON']['input']>; | ||
metadataContent?: InputMaybe<Scalars['String']['input']>; | ||
metadataType?: InputMaybe<IdentityProviderSamlMetadataType>; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
type: IdentityProviderType; | ||
}; | ||
export declare enum IdentityProviderSamlMetadataType { | ||
File = "file", | ||
Url = "url" | ||
} | ||
export declare enum IdentityProviderType { | ||
Cognito = "Cognito", | ||
Google = "Google", | ||
Saml = "SAML" | ||
} | ||
export type JoinTenantAsSuperAdminInput = { | ||
@@ -335,2 +359,3 @@ tenantId: Scalars['TenantId']['input']; | ||
getDeployment: Deployment; | ||
getFederationMetadata: Scalars['String']['output']; | ||
getGlobalParameter?: Maybe<Parameter>; | ||
@@ -369,2 +394,5 @@ getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type QueryGetFederationMetadataArgs = { | ||
tenantId: Scalars['TenantId']['input']; | ||
}; | ||
export type QueryGetGlobalParameterArgs = { | ||
@@ -495,2 +523,3 @@ name: Scalars['String']['input']; | ||
disabled?: Maybe<Scalars['Boolean']['output']>; | ||
identityProviders: Array<IdentityProvider>; | ||
name?: Maybe<Scalars['String']['output']>; | ||
@@ -515,2 +544,3 @@ region: Scalars['String']['output']; | ||
export type UpdateTenantInput = { | ||
identityProviders?: InputMaybe<Array<IdentityProviderInput>>; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
@@ -698,2 +728,3 @@ tags?: InputMaybe<Array<Scalars['String']['input']>>; | ||
account: Pick<AwsAccount, 'id' | 'name'>; | ||
identityProviders: Array<Pick<IdentityProvider, 'type' | 'name' | 'metadataType' | 'metadataContent' | 'attributeMapping'>>; | ||
}); | ||
@@ -721,2 +752,6 @@ export type GetTenantQueryVariables = Exact<{ | ||
}; | ||
export type GetFederationMetadataQueryVariables = Exact<{ | ||
tenantId: Scalars['TenantId']['input']; | ||
}>; | ||
export type GetFederationMetadataQuery = Pick<Query, 'getFederationMetadata'>; | ||
export type SearchSessionsOnTenantQueryVariables = Exact<{ | ||
@@ -756,3 +791,3 @@ tenantId: Scalars['TenantId']['input']; | ||
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 account {\n id\n name\n }\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 account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\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}\n \n\n fragment region on Region {\n name\n}\n "; | ||
@@ -784,8 +819,9 @@ 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 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 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 account {\n id\n name\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 "; | ||
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\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 account {\n id\n name\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 "; | ||
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 account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\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 "; | ||
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\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 account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\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 "; | ||
export declare const GetFederationMetadataDocument = "\n query getFederationMetadata($tenantId: TenantId!) {\n getFederationMetadata(tenantId: $tenantId)\n}\n "; | ||
export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n "; | ||
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n}\n "; | ||
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n}\n "; | ||
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n}\n "; | ||
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n "; | ||
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n "; | ||
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n "; | ||
export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n "; | ||
@@ -822,2 +858,3 @@ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
listTenants(variables?: ListTenantsQueryVariables, options?: C): Promise<ListTenantsQuery>; | ||
getFederationMetadata(variables: GetFederationMetadataQueryVariables, options?: C): Promise<GetFederationMetadataQuery>; | ||
searchSessionsOnTenant(variables: SearchSessionsOnTenantQueryVariables, options?: C): Promise<SearchSessionsOnTenantQuery>; | ||
@@ -824,0 +861,0 @@ createTenant(variables: CreateTenantMutationVariables, options?: C): Promise<CreateTenantMutation>; |
"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.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountDocument = 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.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = 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.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountDocument = 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.IdentityProviderType = exports.IdentityProviderSamlMetadataType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = void 0; | ||
exports.getSdk = getSdk; | ||
@@ -31,2 +32,13 @@ var AppInstanceStatus; | ||
})(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {})); | ||
var IdentityProviderSamlMetadataType; | ||
(function (IdentityProviderSamlMetadataType) { | ||
IdentityProviderSamlMetadataType["File"] = "file"; | ||
IdentityProviderSamlMetadataType["Url"] = "url"; | ||
})(IdentityProviderSamlMetadataType || (exports.IdentityProviderSamlMetadataType = IdentityProviderSamlMetadataType = {})); | ||
var IdentityProviderType; | ||
(function (IdentityProviderType) { | ||
IdentityProviderType["Cognito"] = "Cognito"; | ||
IdentityProviderType["Google"] = "Google"; | ||
IdentityProviderType["Saml"] = "SAML"; | ||
})(IdentityProviderType || (exports.IdentityProviderType = IdentityProviderType = {})); | ||
var ParameterType; | ||
@@ -120,2 +132,9 @@ (function (ParameterType) { | ||
} | ||
identityProviders { | ||
type | ||
name | ||
metadataType | ||
metadataContent | ||
attributeMapping | ||
} | ||
} | ||
@@ -353,2 +372,7 @@ `; | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.GetFederationMetadataDocument = ` | ||
query getFederationMetadata($tenantId: TenantId!) { | ||
getFederationMetadata(tenantId: $tenantId) | ||
} | ||
`; | ||
exports.SearchSessionsOnTenantDocument = ` | ||
@@ -471,2 +495,5 @@ query searchSessionsOnTenant($tenantId: TenantId!, $q: String) { | ||
}, | ||
getFederationMetadata(variables, options) { | ||
return requester(exports.GetFederationMetadataDocument, variables, options); | ||
}, | ||
searchSessionsOnTenant(variables, options) { | ||
@@ -473,0 +500,0 @@ return requester(exports.SearchSessionsOnTenantDocument, variables, options); |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.JoinAsSuperAdminDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.SearchAgentsDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0; | ||
exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = void 0; | ||
exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = void 0; | ||
exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.JoinAsSuperAdminDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.SearchAgentsDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SettingsFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0; | ||
exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetFederationMetadataDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = void 0; | ||
exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = void 0; | ||
exports.getSdk = getSdk; | ||
@@ -82,2 +82,3 @@ var AppInstanceStatus; | ||
Typenames["Sessions"] = "Sessions"; | ||
Typenames["Settings"] = "Settings"; | ||
Typenames["Storage"] = "Storage"; | ||
@@ -99,2 +100,3 @@ })(Typenames || (exports.Typenames = Typenames = {})); | ||
removed | ||
groupMappings | ||
createdAt | ||
@@ -271,2 +273,12 @@ updatedAt | ||
`; | ||
exports.SettingsFragmentDoc = ` | ||
fragment settings on Settings { | ||
doNotAllowUserSignup | ||
allowedEmailDomains | ||
groupsMapping { | ||
from | ||
to | ||
} | ||
} | ||
`; | ||
exports.StateMachineConfigStateOnFragmentDoc = ` | ||
@@ -539,5 +551,10 @@ fragment stateMachineConfigStateOn on StateMachineConfigStatesOn { | ||
${exports.AppInstanceFragmentDoc}`; | ||
exports.GetFederationMetadataDocument = ` | ||
query getFederationMetadata { | ||
getFederationMetadata | ||
} | ||
`; | ||
exports.GetAmplifyConfigDocument = ` | ||
query getAmplifyConfig { | ||
amplifyConfig | ||
query getAmplifyConfig($forDev: Boolean, $forService: String) { | ||
amplifyConfig(forDev: $forDev, forService: $forService) | ||
} | ||
@@ -799,2 +816,16 @@ `; | ||
`; | ||
exports.GetSettingsDocument = ` | ||
query getSettings { | ||
getSettings { | ||
...settings | ||
} | ||
} | ||
${exports.SettingsFragmentDoc}`; | ||
exports.UpdateSettingsDocument = ` | ||
mutation updateSettings($input: UpdateSettingsInput!) { | ||
updateSettings(input: $input) { | ||
...settings | ||
} | ||
} | ||
${exports.SettingsFragmentDoc}`; | ||
exports.GetStateMachineDocument = ` | ||
@@ -1033,2 +1064,5 @@ query getStateMachine($id: ID!, $versionId: ID!) { | ||
}, | ||
getFederationMetadata(variables, options) { | ||
return requester(exports.GetFederationMetadataDocument, variables, options); | ||
}, | ||
getAmplifyConfig(variables, options) { | ||
@@ -1136,2 +1170,8 @@ return requester(exports.GetAmplifyConfigDocument, variables, options); | ||
}, | ||
getSettings(variables, options) { | ||
return requester(exports.GetSettingsDocument, variables, options); | ||
}, | ||
updateSettings(variables, options) { | ||
return requester(exports.UpdateSettingsDocument, variables, options); | ||
}, | ||
getStateMachine(variables, options) { | ||
@@ -1138,0 +1178,0 @@ return requester(exports.GetStateMachineDocument, variables, options); |
Sorry, the diff of this file is too big to display
1470517
29345