From 8706b8905857f8ad3931c80aec4e8cae186dfc57 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 27 Jun 2024 04:22:33 +0100 Subject: [PATCH] cicd: fix amplify for new env --- Dockerfile | 1 + .../build/cloudformation-template.json | 4540 +++++++++++ .../OpenSearchStreamingLambdaFunction.zip | Bin 0 -> 3878 bytes .../api/colonycdapp/build/parameters.json | 9 + .../build/resolvers/Colony.actions.req.vtl | 69 + .../build/resolvers/Colony.actions.res.vtl | 8 + .../build/resolvers/Colony.balances.res.vtl | 1 + .../resolvers/Colony.chainFundsClaim.res.vtl | 1 + .../Colony.colonyMemberInvite.req.vtl | 25 + .../Colony.colonyMemberInvite.res.vtl | 12 + .../build/resolvers/Colony.domains.req.vtl | 107 + .../build/resolvers/Colony.domains.res.vtl | 8 + .../resolvers/Colony.expenditures.req.vtl | 107 + .../resolvers/Colony.expenditures.res.vtl | 8 + .../build/resolvers/Colony.extensions.req.vtl | 107 + .../build/resolvers/Colony.extensions.res.vtl | 8 + .../resolvers/Colony.fundsClaims.req.vtl | 69 + .../resolvers/Colony.fundsClaims.res.vtl | 8 + .../build/resolvers/Colony.metadata.req.vtl | 25 + .../build/resolvers/Colony.metadata.res.vtl | 12 + .../resolvers/Colony.nativeToken.req.vtl | 25 + .../resolvers/Colony.nativeToken.res.vtl | 12 + .../build/resolvers/Colony.roles.req.vtl | 69 + .../build/resolvers/Colony.roles.res.vtl | 8 + .../build/resolvers/Colony.tokens.req.vtl | 69 + .../build/resolvers/Colony.tokens.res.vtl | 8 + .../resolvers/ColonyAction.annotation.req.vtl | 25 + .../resolvers/ColonyAction.annotation.res.vtl | 12 + .../resolvers/ColonyAction.colony.req.vtl | 25 + .../resolvers/ColonyAction.colony.res.vtl | 12 + .../ColonyAction.decisionData.req.vtl | 25 + .../ColonyAction.decisionData.res.vtl | 12 + .../ColonyAction.expenditure.req.vtl | 25 + .../ColonyAction.expenditure.res.vtl | 12 + .../resolvers/ColonyAction.fromDomain.req.vtl | 25 + .../resolvers/ColonyAction.fromDomain.res.vtl | 12 + .../ColonyAction.initiatorColony.req.vtl | 25 + .../ColonyAction.initiatorColony.res.vtl | 12 + .../ColonyAction.initiatorExtension.req.vtl | 25 + .../ColonyAction.initiatorExtension.res.vtl | 12 + .../ColonyAction.initiatorToken.req.vtl | 25 + .../ColonyAction.initiatorToken.res.vtl | 12 + .../ColonyAction.initiatorUser.req.vtl | 25 + .../ColonyAction.initiatorUser.res.vtl | 12 + .../resolvers/ColonyAction.metadata.req.vtl | 25 + .../resolvers/ColonyAction.metadata.res.vtl | 12 + .../resolvers/ColonyAction.motionData.req.vtl | 25 + .../resolvers/ColonyAction.motionData.res.vtl | 12 + ...ColonyAction.pendingColonyMetadata.req.vtl | 25 + ...ColonyAction.pendingColonyMetadata.res.vtl | 12 + ...ColonyAction.pendingDomainMetadata.req.vtl | 25 + ...ColonyAction.pendingDomainMetadata.res.vtl | 12 + .../ColonyAction.recipientColony.req.vtl | 25 + .../ColonyAction.recipientColony.res.vtl | 12 + .../ColonyAction.recipientExtension.req.vtl | 25 + .../ColonyAction.recipientExtension.res.vtl | 12 + .../ColonyAction.recipientToken.req.vtl | 25 + .../ColonyAction.recipientToken.res.vtl | 12 + .../ColonyAction.recipientUser.req.vtl | 25 + .../ColonyAction.recipientUser.res.vtl | 12 + .../ColonyAction.safeTransaction.req.vtl | 25 + .../ColonyAction.safeTransaction.res.vtl | 12 + .../resolvers/ColonyAction.toDomain.req.vtl | 25 + .../resolvers/ColonyAction.toDomain.res.vtl | 12 + .../resolvers/ColonyAction.token.req.vtl | 25 + .../resolvers/ColonyAction.token.res.vtl | 12 + .../ColonyContributor.colony.req.vtl | 25 + .../ColonyContributor.colony.res.vtl | 12 + .../ColonyContributor.reputation.req.vtl | 107 + .../ColonyContributor.reputation.res.vtl | 8 + .../resolvers/ColonyContributor.roles.req.vtl | 107 + .../resolvers/ColonyContributor.roles.res.vtl | 8 + .../resolvers/ColonyContributor.user.req.vtl | 25 + .../resolvers/ColonyContributor.user.res.vtl | 12 + .../resolvers/ColonyDecision.action.req.vtl | 25 + .../resolvers/ColonyDecision.action.res.vtl | 12 + .../resolvers/ColonyExtension.colony.req.vtl | 25 + .../resolvers/ColonyExtension.colony.res.vtl | 12 + .../resolvers/ColonyFundsClaim.token.req.vtl | 25 + .../resolvers/ColonyFundsClaim.token.res.vtl | 12 + .../ColonyHistoricRole.colony.req.vtl | 25 + .../ColonyHistoricRole.colony.res.vtl | 12 + .../ColonyHistoricRole.domain.req.vtl | 25 + .../ColonyHistoricRole.domain.res.vtl | 12 + .../ColonyHistoricRole.targetColony.req.vtl | 25 + .../ColonyHistoricRole.targetColony.res.vtl | 12 + ...ColonyHistoricRole.targetExtension.req.vtl | 25 + ...ColonyHistoricRole.targetExtension.res.vtl | 12 + .../ColonyHistoricRole.targetToken.req.vtl | 25 + .../ColonyHistoricRole.targetToken.res.vtl | 12 + .../ColonyHistoricRole.targetUser.req.vtl | 25 + .../ColonyHistoricRole.targetUser.res.vtl | 12 + .../ColonyMemberInvite.colony.req.vtl | 25 + .../ColonyMemberInvite.colony.res.vtl | 12 + .../resolvers/ColonyMotion.action.req.vtl | 25 + .../resolvers/ColonyMotion.action.res.vtl | 12 + .../resolvers/ColonyMotion.messages.req.vtl | 107 + .../resolvers/ColonyMotion.messages.res.vtl | 8 + .../ColonyMotion.motionDomain.req.vtl | 25 + .../ColonyMotion.motionDomain.res.vtl | 12 + .../ColonyMotion.objectionAnnotation.req.vtl | 25 + .../ColonyMotion.objectionAnnotation.res.vtl | 12 + .../build/resolvers/ColonyRole.domain.req.vtl | 25 + .../build/resolvers/ColonyRole.domain.res.vtl | 12 + .../resolvers/ColonyRole.targetColony.req.vtl | 25 + .../resolvers/ColonyRole.targetColony.res.vtl | 12 + .../ColonyRole.targetExtension.req.vtl | 25 + .../ColonyRole.targetExtension.res.vtl | 12 + .../resolvers/ColonyRole.targetToken.req.vtl | 25 + .../resolvers/ColonyRole.targetToken.res.vtl | 12 + .../resolvers/ColonyRole.targetUser.req.vtl | 25 + .../resolvers/ColonyRole.targetUser.res.vtl | 12 + .../resolvers/ColonyTokens.colony.req.vtl | 25 + .../resolvers/ColonyTokens.colony.res.vtl | 12 + .../resolvers/ColonyTokens.token.req.vtl | 25 + .../resolvers/ColonyTokens.token.res.vtl | 12 + .../resolvers/ContractEvent.colony.req.vtl | 25 + .../resolvers/ContractEvent.colony.res.vtl | 12 + .../resolvers/ContractEvent.domain.req.vtl | 25 + .../resolvers/ContractEvent.domain.res.vtl | 12 + .../resolvers/ContractEvent.token.req.vtl | 25 + .../resolvers/ContractEvent.token.res.vtl | 12 + .../resolvers/ContractEvent.user.req.vtl | 25 + .../resolvers/ContractEvent.user.res.vtl | 12 + .../ContributorReputation.domain.req.vtl | 25 + .../ContributorReputation.domain.res.vtl | 12 + .../build/resolvers/Domain.colony.req.vtl | 25 + .../build/resolvers/Domain.colony.res.vtl | 12 + .../build/resolvers/Domain.metadata.req.vtl | 25 + .../build/resolvers/Domain.metadata.res.vtl | 12 + .../resolvers/Expenditure.actions.req.vtl | 69 + .../resolvers/Expenditure.actions.res.vtl | 8 + .../resolvers/Expenditure.colony.req.vtl | 25 + .../resolvers/Expenditure.colony.res.vtl | 12 + .../resolvers/Expenditure.metadata.req.vtl | 25 + .../resolvers/Expenditure.metadata.res.vtl | 12 + .../resolvers/Expenditure.motions.req.vtl | 69 + .../resolvers/Expenditure.motions.res.vtl | 8 + .../resolvers/Expenditure.userStake.req.vtl | 25 + .../resolvers/Expenditure.userStake.res.vtl | 12 + ...eBridgeXYZMutationLambdaDataSource.req.vtl | 15 + ...eBridgeXYZMutationLambdaDataSource.res.vtl | 6 + ...vokeBridgeXYZQueryLambdaDataSource.req.vtl | 15 + ...vokeBridgeXYZQueryLambdaDataSource.res.vtl | 6 + ...nyEtherealMetadataLambdaDataSource.req.vtl | 15 + ...nyEtherealMetadataLambdaDataSource.res.vtl | 6 + ...keCreateUniqueUserLambdaDataSource.req.vtl | 15 + ...keCreateUniqueUserLambdaDataSource.res.vtl | 6 + ...etchColonyBalancesLambdaDataSource.req.vtl | 15 + ...etchColonyBalancesLambdaDataSource.res.vtl | 6 + ...nyNativeFundsClaimLambdaDataSource.req.vtl | 15 + ...nyNativeFundsClaimLambdaDataSource.res.vtl | 6 + ...keFetchMotionStateLambdaDataSource.req.vtl | 15 + ...keFetchMotionStateLambdaDataSource.res.vtl | 6 + ...tionTimeoutPeriodsLambdaDataSource.req.vtl | 15 + ...tionTimeoutPeriodsLambdaDataSource.res.vtl | 6 + ...etchTokenFromChainLambdaDataSource.req.vtl | 15 + ...etchTokenFromChainLambdaDataSource.res.vtl | 6 + ...eFetchVoterRewardsLambdaDataSource.req.vtl | 15 + ...eFetchVoterRewardsLambdaDataSource.res.vtl | 6 + ...eTransactionStatusLambdaDataSource.req.vtl | 15 + ...eTransactionStatusLambdaDataSource.res.vtl | 6 + ...eGetUserReputationLambdaDataSource.req.vtl | 15 + ...eGetUserReputationLambdaDataSource.res.vtl | 6 + ...etUserTokenBalanceLambdaDataSource.req.vtl | 15 + ...etUserTokenBalanceLambdaDataSource.res.vtl | 6 + ...torsWithReputationLambdaDataSource.req.vtl | 15 + ...torsWithReputationLambdaDataSource.res.vtl | 6 + ...ValidateUserInviteLambdaDataSource.req.vtl | 15 + ...ValidateUserInviteLambdaDataSource.res.vtl | 6 + .../resolvers/LiquidationAddress.user.req.vtl | 25 + .../resolvers/LiquidationAddress.user.res.vtl | 12 + .../MotionMessage.initiatorUser.req.vtl | 25 + .../MotionMessage.initiatorUser.res.vtl | 12 + .../Mutation.bridgeXYZMutation.res.vtl | 1 + .../Mutation.createAnnotation.init.1.req.vtl | 11 + ...tation.createAnnotation.postAuth.1.req.vtl | 8 + .../Mutation.createAnnotation.req.vtl | 66 + .../Mutation.createAnnotation.res.vtl | 8 + .../Mutation.createColony.init.1.req.vtl | 11 + .../Mutation.createColony.init.2.req.vtl | 4 + .../Mutation.createColony.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.createColony.req.vtl | 74 + .../resolvers/Mutation.createColony.res.vtl | 8 + ...Mutation.createColonyAction.init.1.req.vtl | 11 + ...tion.createColonyAction.postAuth.1.req.vtl | 8 + .../Mutation.createColonyAction.req.vtl | 74 + .../Mutation.createColonyAction.res.vtl | 8 + ....createColonyActionMetadata.init.1.req.vtl | 11 + ...ateColonyActionMetadata.postAuth.1.req.vtl | 8 + ...utation.createColonyActionMetadata.req.vtl | 66 + ...utation.createColonyActionMetadata.res.vtl | 8 + ...ion.createColonyContributor.init.1.req.vtl | 11 + ...createColonyContributor.postAuth.1.req.vtl | 8 + .../Mutation.createColonyContributor.req.vtl | 74 + .../Mutation.createColonyContributor.res.vtl | 8 + ...tation.createColonyDecision.init.1.req.vtl | 11 + ...on.createColonyDecision.postAuth.1.req.vtl | 8 + .../Mutation.createColonyDecision.req.vtl | 74 + .../Mutation.createColonyDecision.res.vtl | 8 + ...ation.createColonyEtherealMetadata.res.vtl | 1 + ...ation.createColonyExtension.init.1.req.vtl | 11 + ...n.createColonyExtension.postAuth.1.req.vtl | 8 + .../Mutation.createColonyExtension.req.vtl | 74 + .../Mutation.createColonyExtension.res.vtl | 8 + ...tion.createColonyFundsClaim.init.1.req.vtl | 11 + ....createColonyFundsClaim.postAuth.1.req.vtl | 8 + .../Mutation.createColonyFundsClaim.req.vtl | 74 + .../Mutation.createColonyFundsClaim.res.vtl | 8 + ...on.createColonyHistoricRole.init.1.req.vtl | 11 + ...reateColonyHistoricRole.postAuth.1.req.vtl | 8 + .../Mutation.createColonyHistoricRole.req.vtl | 74 + .../Mutation.createColonyHistoricRole.res.vtl | 8 + ...on.createColonyMemberInvite.init.1.req.vtl | 11 + ...reateColonyMemberInvite.postAuth.1.req.vtl | 8 + .../Mutation.createColonyMemberInvite.req.vtl | 66 + .../Mutation.createColonyMemberInvite.res.vtl | 8 + ...tation.createColonyMetadata.init.1.req.vtl | 11 + ...on.createColonyMetadata.postAuth.1.req.vtl | 8 + .../Mutation.createColonyMetadata.req.vtl | 66 + .../Mutation.createColonyMetadata.res.vtl | 8 + ...Mutation.createColonyMotion.init.1.req.vtl | 11 + ...tion.createColonyMotion.postAuth.1.req.vtl | 8 + .../Mutation.createColonyMotion.req.vtl | 74 + .../Mutation.createColonyMotion.res.vtl | 8 + .../Mutation.createColonyRole.init.1.req.vtl | 11 + ...tation.createColonyRole.postAuth.1.req.vtl | 8 + .../Mutation.createColonyRole.req.vtl | 74 + .../Mutation.createColonyRole.res.vtl | 8 + .../Mutation.createColonyStake.init.1.req.vtl | 11 + ...ation.createColonyStake.postAuth.1.req.vtl | 8 + .../Mutation.createColonyStake.req.vtl | 74 + .../Mutation.createColonyStake.res.vtl | 8 + ...Mutation.createColonyTokens.init.1.req.vtl | 11 + ...tion.createColonyTokens.postAuth.1.req.vtl | 8 + .../Mutation.createColonyTokens.req.vtl | 74 + .../Mutation.createColonyTokens.res.vtl | 8 + ...utation.createContractEvent.init.1.req.vtl | 11 + ...ion.createContractEvent.postAuth.1.req.vtl | 8 + .../Mutation.createContractEvent.req.vtl | 66 + .../Mutation.createContractEvent.res.vtl | 8 + ...createContributorReputation.init.1.req.vtl | 11 + ...teContributorReputation.postAuth.1.req.vtl | 8 + ...tation.createContributorReputation.req.vtl | 74 + ...tation.createContributorReputation.res.vtl | 8 + ...ateCurrentNetworkInverseFee.init.1.req.vtl | 11 + ...urrentNetworkInverseFee.postAuth.1.req.vtl | 8 + ...ion.createCurrentNetworkInverseFee.req.vtl | 66 + ...ion.createCurrentNetworkInverseFee.res.vtl | 8 + ...tation.createCurrentVersion.init.1.req.vtl | 11 + ...on.createCurrentVersion.postAuth.1.req.vtl | 8 + .../Mutation.createCurrentVersion.req.vtl | 74 + .../Mutation.createCurrentVersion.res.vtl | 8 + .../Mutation.createDomain.init.1.req.vtl | 11 + .../Mutation.createDomain.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.createDomain.req.vtl | 74 + .../resolvers/Mutation.createDomain.res.vtl | 8 + ...tation.createDomainMetadata.init.1.req.vtl | 11 + ...on.createDomainMetadata.postAuth.1.req.vtl | 8 + .../Mutation.createDomainMetadata.req.vtl | 66 + .../Mutation.createDomainMetadata.res.vtl | 8 + .../Mutation.createExpenditure.init.1.req.vtl | 11 + ...ation.createExpenditure.postAuth.1.req.vtl | 8 + .../Mutation.createExpenditure.req.vtl | 74 + .../Mutation.createExpenditure.res.vtl | 8 + ...n.createExpenditureMetadata.init.1.req.vtl | 11 + ...eateExpenditureMetadata.postAuth.1.req.vtl | 8 + ...Mutation.createExpenditureMetadata.req.vtl | 66 + ...Mutation.createExpenditureMetadata.res.vtl | 8 + ...ExtensionInstallationsCount.init.1.req.vtl | 11 + ...nsionInstallationsCount.postAuth.1.req.vtl | 8 + ....createExtensionInstallationsCount.req.vtl | 66 + ....createExtensionInstallationsCount.res.vtl | 8 + ...utation.createIngestorStats.init.1.req.vtl | 11 + ...ion.createIngestorStats.postAuth.1.req.vtl | 8 + .../Mutation.createIngestorStats.req.vtl | 66 + .../Mutation.createIngestorStats.res.vtl | 8 + ...on.createLiquidationAddress.init.1.req.vtl | 11 + ...reateLiquidationAddress.postAuth.1.req.vtl | 8 + .../Mutation.createLiquidationAddress.req.vtl | 74 + .../Mutation.createLiquidationAddress.res.vtl | 8 + ...utation.createMotionMessage.init.1.req.vtl | 11 + ...ion.createMotionMessage.postAuth.1.req.vtl | 8 + .../Mutation.createMotionMessage.req.vtl | 74 + .../Mutation.createMotionMessage.res.vtl | 8 + ...createPrivateBetaInviteCode.init.1.req.vtl | 11 + ...createPrivateBetaInviteCode.init.2.req.vtl | 4 + ...tePrivateBetaInviteCode.postAuth.1.req.vtl | 8 + ...tation.createPrivateBetaInviteCode.req.vtl | 66 + ...tation.createPrivateBetaInviteCode.res.vtl | 8 + .../Mutation.createProfile.init.1.req.vtl | 11 + .../Mutation.createProfile.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.createProfile.req.vtl | 74 + .../resolvers/Mutation.createProfile.res.vtl | 8 + ...putationMiningCycleMetadata.init.1.req.vtl | 11 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ...reateReputationMiningCycleMetadata.req.vtl | 66 + ...reateReputationMiningCycleMetadata.res.vtl | 8 + ...ation.createSafeTransaction.init.1.req.vtl | 11 + ...n.createSafeTransaction.postAuth.1.req.vtl | 8 + .../Mutation.createSafeTransaction.req.vtl | 66 + .../Mutation.createSafeTransaction.res.vtl | 8 + ...n.createSafeTransactionData.init.1.req.vtl | 11 + ...eateSafeTransactionData.postAuth.1.req.vtl | 8 + ...Mutation.createSafeTransactionData.req.vtl | 74 + ...Mutation.createSafeTransactionData.res.vtl | 8 + ...tion.createStreamingPayment.init.1.req.vtl | 11 + ....createStreamingPayment.postAuth.1.req.vtl | 8 + .../Mutation.createStreamingPayment.req.vtl | 66 + .../Mutation.createStreamingPayment.res.vtl | 8 + ...ateStreamingPaymentMetadata.init.1.req.vtl | 11 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + ...ion.createStreamingPaymentMetadata.req.vtl | 66 + ...ion.createStreamingPaymentMetadata.res.vtl | 8 + .../Mutation.createToken.init.1.req.vtl | 11 + .../Mutation.createToken.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.createToken.req.vtl | 74 + .../resolvers/Mutation.createToken.res.vtl | 8 + .../Mutation.createTransaction.init.1.req.vtl | 11 + ...ation.createTransaction.postAuth.1.req.vtl | 8 + .../Mutation.createTransaction.req.vtl | 74 + .../Mutation.createTransaction.res.vtl | 8 + .../Mutation.createUniqueUser.res.vtl | 1 + .../Mutation.createUser.init.1.req.vtl | 11 + .../Mutation.createUser.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.createUser.req.vtl | 74 + .../resolvers/Mutation.createUser.res.vtl | 8 + .../Mutation.createUserStake.init.1.req.vtl | 11 + ...utation.createUserStake.postAuth.1.req.vtl | 8 + .../Mutation.createUserStake.req.vtl | 74 + .../Mutation.createUserStake.res.vtl | 8 + .../Mutation.createUserTokens.init.1.req.vtl | 11 + ...tation.createUserTokens.postAuth.1.req.vtl | 8 + .../Mutation.createUserTokens.req.vtl | 74 + .../Mutation.createUserTokens.res.vtl | 8 + ...tation.deleteAnnotation.postAuth.1.req.vtl | 8 + .../Mutation.deleteAnnotation.req.vtl | 58 + .../Mutation.deleteAnnotation.res.vtl | 8 + .../Mutation.deleteColony.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.deleteColony.req.vtl | 58 + .../resolvers/Mutation.deleteColony.res.vtl | 8 + ...tion.deleteColonyAction.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyAction.req.vtl | 58 + .../Mutation.deleteColonyAction.res.vtl | 8 + ...eteColonyActionMetadata.postAuth.1.req.vtl | 8 + ...utation.deleteColonyActionMetadata.req.vtl | 58 + ...utation.deleteColonyActionMetadata.res.vtl | 8 + ...deleteColonyContributor.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyContributor.req.vtl | 58 + .../Mutation.deleteColonyContributor.res.vtl | 8 + ...on.deleteColonyDecision.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyDecision.req.vtl | 58 + .../Mutation.deleteColonyDecision.res.vtl | 8 + ...n.deleteColonyExtension.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyExtension.req.vtl | 58 + .../Mutation.deleteColonyExtension.res.vtl | 8 + ....deleteColonyFundsClaim.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyFundsClaim.req.vtl | 58 + .../Mutation.deleteColonyFundsClaim.res.vtl | 8 + ...eleteColonyHistoricRole.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyHistoricRole.req.vtl | 58 + .../Mutation.deleteColonyHistoricRole.res.vtl | 8 + ...eleteColonyMemberInvite.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyMemberInvite.req.vtl | 58 + .../Mutation.deleteColonyMemberInvite.res.vtl | 8 + ...on.deleteColonyMetadata.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyMetadata.req.vtl | 58 + .../Mutation.deleteColonyMetadata.res.vtl | 8 + ...tion.deleteColonyMotion.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyMotion.req.vtl | 58 + .../Mutation.deleteColonyMotion.res.vtl | 8 + ...tation.deleteColonyRole.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyRole.req.vtl | 58 + .../Mutation.deleteColonyRole.res.vtl | 8 + ...ation.deleteColonyStake.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyStake.req.vtl | 58 + .../Mutation.deleteColonyStake.res.vtl | 8 + ...tion.deleteColonyTokens.postAuth.1.req.vtl | 8 + .../Mutation.deleteColonyTokens.req.vtl | 58 + .../Mutation.deleteColonyTokens.res.vtl | 8 + ...ion.deleteContractEvent.postAuth.1.req.vtl | 8 + .../Mutation.deleteContractEvent.req.vtl | 58 + .../Mutation.deleteContractEvent.res.vtl | 8 + ...teContributorReputation.postAuth.1.req.vtl | 8 + ...tation.deleteContributorReputation.req.vtl | 58 + ...tation.deleteContributorReputation.res.vtl | 8 + ...urrentNetworkInverseFee.postAuth.1.req.vtl | 8 + ...ion.deleteCurrentNetworkInverseFee.req.vtl | 58 + ...ion.deleteCurrentNetworkInverseFee.res.vtl | 8 + ...on.deleteCurrentVersion.postAuth.1.req.vtl | 8 + .../Mutation.deleteCurrentVersion.req.vtl | 58 + .../Mutation.deleteCurrentVersion.res.vtl | 8 + .../Mutation.deleteDomain.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.deleteDomain.req.vtl | 58 + .../resolvers/Mutation.deleteDomain.res.vtl | 8 + ...on.deleteDomainMetadata.postAuth.1.req.vtl | 8 + .../Mutation.deleteDomainMetadata.req.vtl | 58 + .../Mutation.deleteDomainMetadata.res.vtl | 8 + ...ation.deleteExpenditure.postAuth.1.req.vtl | 8 + .../Mutation.deleteExpenditure.req.vtl | 58 + .../Mutation.deleteExpenditure.res.vtl | 8 + ...leteExpenditureMetadata.postAuth.1.req.vtl | 8 + ...Mutation.deleteExpenditureMetadata.req.vtl | 58 + ...Mutation.deleteExpenditureMetadata.res.vtl | 8 + ...nsionInstallationsCount.postAuth.1.req.vtl | 8 + ....deleteExtensionInstallationsCount.req.vtl | 58 + ....deleteExtensionInstallationsCount.res.vtl | 8 + ...ion.deleteIngestorStats.postAuth.1.req.vtl | 8 + .../Mutation.deleteIngestorStats.req.vtl | 58 + .../Mutation.deleteIngestorStats.res.vtl | 8 + ...eleteLiquidationAddress.postAuth.1.req.vtl | 8 + .../Mutation.deleteLiquidationAddress.req.vtl | 58 + .../Mutation.deleteLiquidationAddress.res.vtl | 8 + ...ion.deleteMotionMessage.postAuth.1.req.vtl | 8 + .../Mutation.deleteMotionMessage.req.vtl | 58 + .../Mutation.deleteMotionMessage.res.vtl | 8 + ...tePrivateBetaInviteCode.postAuth.1.req.vtl | 8 + ...tation.deletePrivateBetaInviteCode.req.vtl | 58 + ...tation.deletePrivateBetaInviteCode.res.vtl | 8 + .../Mutation.deleteProfile.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.deleteProfile.req.vtl | 58 + .../resolvers/Mutation.deleteProfile.res.vtl | 8 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ...eleteReputationMiningCycleMetadata.req.vtl | 58 + ...eleteReputationMiningCycleMetadata.res.vtl | 8 + ...n.deleteSafeTransaction.postAuth.1.req.vtl | 8 + .../Mutation.deleteSafeTransaction.req.vtl | 58 + .../Mutation.deleteSafeTransaction.res.vtl | 8 + ...leteSafeTransactionData.postAuth.1.req.vtl | 8 + ...Mutation.deleteSafeTransactionData.req.vtl | 58 + ...Mutation.deleteSafeTransactionData.res.vtl | 8 + ....deleteStreamingPayment.postAuth.1.req.vtl | 8 + .../Mutation.deleteStreamingPayment.req.vtl | 58 + .../Mutation.deleteStreamingPayment.res.vtl | 8 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + ...ion.deleteStreamingPaymentMetadata.req.vtl | 58 + ...ion.deleteStreamingPaymentMetadata.res.vtl | 8 + .../Mutation.deleteToken.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.deleteToken.req.vtl | 58 + .../resolvers/Mutation.deleteToken.res.vtl | 8 + ...ation.deleteTransaction.postAuth.1.req.vtl | 8 + .../Mutation.deleteTransaction.req.vtl | 58 + .../Mutation.deleteTransaction.res.vtl | 8 + .../Mutation.deleteUser.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.deleteUser.req.vtl | 58 + .../resolvers/Mutation.deleteUser.res.vtl | 8 + ...utation.deleteUserStake.postAuth.1.req.vtl | 8 + .../Mutation.deleteUserStake.req.vtl | 58 + .../Mutation.deleteUserStake.res.vtl | 8 + ...tation.deleteUserTokens.postAuth.1.req.vtl | 8 + .../Mutation.deleteUserTokens.req.vtl | 58 + .../Mutation.deleteUserTokens.res.vtl | 8 + .../Mutation.updateAnnotation.init.1.req.vtl | 9 + ...tation.updateAnnotation.postAuth.1.req.vtl | 8 + .../Mutation.updateAnnotation.req.vtl | 130 + .../Mutation.updateAnnotation.res.vtl | 8 + .../Mutation.updateColony.init.1.req.vtl | 9 + .../Mutation.updateColony.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.updateColony.req.vtl | 130 + .../resolvers/Mutation.updateColony.res.vtl | 8 + ...Mutation.updateColonyAction.init.1.req.vtl | 9 + ...tion.updateColonyAction.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyAction.req.vtl | 130 + .../Mutation.updateColonyAction.res.vtl | 8 + ....updateColonyActionMetadata.init.1.req.vtl | 9 + ...ateColonyActionMetadata.postAuth.1.req.vtl | 8 + ...utation.updateColonyActionMetadata.req.vtl | 130 + ...utation.updateColonyActionMetadata.res.vtl | 8 + ...ion.updateColonyContributor.init.1.req.vtl | 9 + ...updateColonyContributor.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyContributor.req.vtl | 130 + .../Mutation.updateColonyContributor.res.vtl | 8 + ...tation.updateColonyDecision.init.1.req.vtl | 9 + ...on.updateColonyDecision.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyDecision.req.vtl | 130 + .../Mutation.updateColonyDecision.res.vtl | 8 + ...ation.updateColonyExtension.init.1.req.vtl | 9 + ...n.updateColonyExtension.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyExtension.req.vtl | 130 + .../Mutation.updateColonyExtension.res.vtl | 8 + ...tion.updateColonyFundsClaim.init.1.req.vtl | 9 + ....updateColonyFundsClaim.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyFundsClaim.req.vtl | 130 + .../Mutation.updateColonyFundsClaim.res.vtl | 8 + ...on.updateColonyHistoricRole.init.1.req.vtl | 9 + ...pdateColonyHistoricRole.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyHistoricRole.req.vtl | 130 + .../Mutation.updateColonyHistoricRole.res.vtl | 8 + ...on.updateColonyMemberInvite.init.1.req.vtl | 9 + ...pdateColonyMemberInvite.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyMemberInvite.req.vtl | 130 + .../Mutation.updateColonyMemberInvite.res.vtl | 8 + ...tation.updateColonyMetadata.init.1.req.vtl | 9 + ...on.updateColonyMetadata.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyMetadata.req.vtl | 130 + .../Mutation.updateColonyMetadata.res.vtl | 8 + ...Mutation.updateColonyMotion.init.1.req.vtl | 9 + ...tion.updateColonyMotion.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyMotion.req.vtl | 130 + .../Mutation.updateColonyMotion.res.vtl | 8 + .../Mutation.updateColonyRole.init.1.req.vtl | 9 + ...tation.updateColonyRole.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyRole.req.vtl | 130 + .../Mutation.updateColonyRole.res.vtl | 8 + .../Mutation.updateColonyStake.init.1.req.vtl | 9 + ...ation.updateColonyStake.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyStake.req.vtl | 130 + .../Mutation.updateColonyStake.res.vtl | 8 + ...Mutation.updateColonyTokens.init.1.req.vtl | 9 + ...tion.updateColonyTokens.postAuth.1.req.vtl | 8 + .../Mutation.updateColonyTokens.req.vtl | 130 + .../Mutation.updateColonyTokens.res.vtl | 8 + ...utation.updateContractEvent.init.1.req.vtl | 9 + ...ion.updateContractEvent.postAuth.1.req.vtl | 8 + .../Mutation.updateContractEvent.req.vtl | 130 + .../Mutation.updateContractEvent.res.vtl | 8 + ...updateContributorReputation.init.1.req.vtl | 9 + ...teContributorReputation.postAuth.1.req.vtl | 8 + ...tation.updateContributorReputation.req.vtl | 130 + ...tation.updateContributorReputation.res.vtl | 8 + ...n.updateContributorsWithReputation.res.vtl | 1 + ...ateCurrentNetworkInverseFee.init.1.req.vtl | 9 + ...urrentNetworkInverseFee.postAuth.1.req.vtl | 8 + ...ion.updateCurrentNetworkInverseFee.req.vtl | 130 + ...ion.updateCurrentNetworkInverseFee.res.vtl | 8 + ...tation.updateCurrentVersion.init.1.req.vtl | 9 + ...on.updateCurrentVersion.postAuth.1.req.vtl | 8 + .../Mutation.updateCurrentVersion.req.vtl | 130 + .../Mutation.updateCurrentVersion.res.vtl | 8 + .../Mutation.updateDomain.init.1.req.vtl | 9 + .../Mutation.updateDomain.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.updateDomain.req.vtl | 130 + .../resolvers/Mutation.updateDomain.res.vtl | 8 + ...tation.updateDomainMetadata.init.1.req.vtl | 9 + ...on.updateDomainMetadata.postAuth.1.req.vtl | 8 + .../Mutation.updateDomainMetadata.req.vtl | 130 + .../Mutation.updateDomainMetadata.res.vtl | 8 + .../Mutation.updateExpenditure.init.1.req.vtl | 9 + ...ation.updateExpenditure.postAuth.1.req.vtl | 8 + .../Mutation.updateExpenditure.req.vtl | 130 + .../Mutation.updateExpenditure.res.vtl | 8 + ...n.updateExpenditureMetadata.init.1.req.vtl | 9 + ...dateExpenditureMetadata.postAuth.1.req.vtl | 8 + ...Mutation.updateExpenditureMetadata.req.vtl | 130 + ...Mutation.updateExpenditureMetadata.res.vtl | 8 + ...ExtensionInstallationsCount.init.1.req.vtl | 9 + ...nsionInstallationsCount.postAuth.1.req.vtl | 8 + ....updateExtensionInstallationsCount.req.vtl | 130 + ....updateExtensionInstallationsCount.res.vtl | 8 + ...utation.updateIngestorStats.init.1.req.vtl | 9 + ...ion.updateIngestorStats.postAuth.1.req.vtl | 8 + .../Mutation.updateIngestorStats.req.vtl | 130 + .../Mutation.updateIngestorStats.res.vtl | 8 + ...on.updateLiquidationAddress.init.1.req.vtl | 9 + ...pdateLiquidationAddress.postAuth.1.req.vtl | 8 + .../Mutation.updateLiquidationAddress.req.vtl | 130 + .../Mutation.updateLiquidationAddress.res.vtl | 8 + ...utation.updateMotionMessage.init.1.req.vtl | 9 + ...ion.updateMotionMessage.postAuth.1.req.vtl | 8 + .../Mutation.updateMotionMessage.req.vtl | 130 + .../Mutation.updateMotionMessage.res.vtl | 8 + ...updatePrivateBetaInviteCode.init.1.req.vtl | 9 + ...tePrivateBetaInviteCode.postAuth.1.req.vtl | 8 + ...tation.updatePrivateBetaInviteCode.req.vtl | 130 + ...tation.updatePrivateBetaInviteCode.res.vtl | 8 + .../Mutation.updateProfile.init.1.req.vtl | 9 + .../Mutation.updateProfile.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.updateProfile.req.vtl | 130 + .../resolvers/Mutation.updateProfile.res.vtl | 8 + ...putationMiningCycleMetadata.init.1.req.vtl | 9 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ...pdateReputationMiningCycleMetadata.req.vtl | 130 + ...pdateReputationMiningCycleMetadata.res.vtl | 8 + ...ation.updateSafeTransaction.init.1.req.vtl | 9 + ...n.updateSafeTransaction.postAuth.1.req.vtl | 8 + .../Mutation.updateSafeTransaction.req.vtl | 130 + .../Mutation.updateSafeTransaction.res.vtl | 8 + ...n.updateSafeTransactionData.init.1.req.vtl | 9 + ...dateSafeTransactionData.postAuth.1.req.vtl | 8 + ...Mutation.updateSafeTransactionData.req.vtl | 130 + ...Mutation.updateSafeTransactionData.res.vtl | 8 + ...tion.updateStreamingPayment.init.1.req.vtl | 9 + ....updateStreamingPayment.postAuth.1.req.vtl | 8 + .../Mutation.updateStreamingPayment.req.vtl | 130 + .../Mutation.updateStreamingPayment.res.vtl | 8 + ...ateStreamingPaymentMetadata.init.1.req.vtl | 9 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + ...ion.updateStreamingPaymentMetadata.req.vtl | 130 + ...ion.updateStreamingPaymentMetadata.res.vtl | 8 + .../Mutation.updateToken.init.1.req.vtl | 9 + .../Mutation.updateToken.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.updateToken.req.vtl | 130 + .../resolvers/Mutation.updateToken.res.vtl | 8 + .../Mutation.updateTransaction.init.1.req.vtl | 9 + ...ation.updateTransaction.postAuth.1.req.vtl | 8 + .../Mutation.updateTransaction.req.vtl | 130 + .../Mutation.updateTransaction.res.vtl | 8 + .../Mutation.updateUser.init.1.req.vtl | 9 + .../Mutation.updateUser.postAuth.1.req.vtl | 8 + .../resolvers/Mutation.updateUser.req.vtl | 130 + .../resolvers/Mutation.updateUser.res.vtl | 8 + .../Mutation.updateUserStake.init.1.req.vtl | 9 + ...utation.updateUserStake.postAuth.1.req.vtl | 8 + .../Mutation.updateUserStake.req.vtl | 130 + .../Mutation.updateUserStake.res.vtl | 8 + .../Mutation.updateUserTokens.init.1.req.vtl | 9 + ...tation.updateUserTokens.postAuth.1.req.vtl | 8 + .../Mutation.updateUserTokens.req.vtl | 130 + .../Mutation.updateUserTokens.res.vtl | 8 + .../Mutation.validateUserInvite.res.vtl | 1 + .../build/resolvers/Profile.user.req.vtl | 25 + .../build/resolvers/Profile.user.res.vtl | 12 + .../resolvers/Query.bridgeXYZQuery.res.vtl | 1 + ...etActionByExpenditureId.postAuth.1.res.vtl | 8 + .../Query.getActionByExpenditureId.req.vtl | 57 + .../Query.getActionByExpenditureId.res.vtl | 4 + ...uery.getActionsByColony.postAuth.1.res.vtl | 8 + .../Query.getActionsByColony.req.vtl | 97 + .../Query.getActionsByColony.res.vtl | 4 + .../Query.getAnnotation.postAuth.1.req.vtl | 8 + .../resolvers/Query.getAnnotation.req.vtl | 34 + .../resolvers/Query.getAnnotation.res.vtl | 13 + ...ColoniesByNativeTokenId.postAuth.1.res.vtl | 8 + .../Query.getColoniesByNativeTokenId.req.vtl | 57 + .../Query.getColoniesByNativeTokenId.res.vtl | 4 + .../Query.getColony.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.getColony.req.vtl | 34 + .../build/resolvers/Query.getColony.res.vtl | 13 + .../Query.getColonyAction.postAuth.1.req.vtl | 8 + .../resolvers/Query.getColonyAction.req.vtl | 34 + .../resolvers/Query.getColonyAction.res.vtl | 13 + ...tColonyActionByMotionId.postAuth.1.res.vtl | 8 + .../Query.getColonyActionByMotionId.req.vtl | 57 + .../Query.getColonyActionByMotionId.res.vtl | 4 + ...getColonyActionMetadata.postAuth.1.req.vtl | 8 + .../Query.getColonyActionMetadata.req.vtl | 34 + .../Query.getColonyActionMetadata.res.vtl | 13 + ...uery.getColonyByAddress.postAuth.1.res.vtl | 8 + .../Query.getColonyByAddress.req.vtl | 57 + .../Query.getColonyByAddress.res.vtl | 4 + .../Query.getColonyByName.postAuth.1.res.vtl | 8 + .../resolvers/Query.getColonyByName.req.vtl | 57 + .../resolvers/Query.getColonyByName.res.vtl | 4 + .../Query.getColonyByType.postAuth.1.res.vtl | 8 + .../resolvers/Query.getColonyByType.req.vtl | 57 + .../resolvers/Query.getColonyByType.res.vtl | 4 + ...ry.getColonyContributor.postAuth.1.req.vtl | 8 + .../Query.getColonyContributor.req.vtl | 34 + .../Query.getColonyContributor.res.vtl | 13 + ...Query.getColonyDecision.postAuth.1.req.vtl | 8 + .../resolvers/Query.getColonyDecision.req.vtl | 34 + .../resolvers/Query.getColonyDecision.res.vtl | 13 + ...olonyDecisionByActionId.postAuth.1.res.vtl | 8 + .../Query.getColonyDecisionByActionId.req.vtl | 57 + .../Query.getColonyDecisionByActionId.res.vtl | 4 + ...DecisionByColonyAddress.postAuth.1.res.vtl | 8 + ...y.getColonyDecisionByColonyAddress.req.vtl | 97 + ...y.getColonyDecisionByColonyAddress.res.vtl | 4 + ...uery.getColonyExtension.postAuth.1.req.vtl | 8 + .../Query.getColonyExtension.req.vtl | 34 + .../Query.getColonyExtension.res.vtl | 13 + ...ery.getColonyFundsClaim.postAuth.1.req.vtl | 8 + .../Query.getColonyFundsClaim.req.vtl | 34 + .../Query.getColonyFundsClaim.res.vtl | 13 + ...y.getColonyHistoricRole.postAuth.1.req.vtl | 8 + .../Query.getColonyHistoricRole.req.vtl | 34 + .../Query.getColonyHistoricRole.res.vtl | 13 + ...olonyHistoricRoleByDate.postAuth.1.res.vtl | 8 + .../Query.getColonyHistoricRoleByDate.req.vtl | 97 + .../Query.getColonyHistoricRoleByDate.res.vtl | 4 + ...y.getColonyMemberInvite.postAuth.1.req.vtl | 8 + .../Query.getColonyMemberInvite.req.vtl | 34 + .../Query.getColonyMemberInvite.res.vtl | 13 + ...Query.getColonyMetadata.postAuth.1.req.vtl | 8 + .../resolvers/Query.getColonyMetadata.req.vtl | 34 + .../resolvers/Query.getColonyMetadata.res.vtl | 13 + .../Query.getColonyMotion.postAuth.1.req.vtl | 8 + .../resolvers/Query.getColonyMotion.req.vtl | 34 + .../resolvers/Query.getColonyMotion.res.vtl | 13 + .../Query.getColonyRole.postAuth.1.req.vtl | 8 + .../resolvers/Query.getColonyRole.req.vtl | 34 + .../resolvers/Query.getColonyRole.res.vtl | 13 + .../Query.getColonyStake.postAuth.1.req.vtl | 8 + .../resolvers/Query.getColonyStake.req.vtl | 34 + .../resolvers/Query.getColonyStake.res.vtl | 13 + ...olonyStakeByUserAddress.postAuth.1.res.vtl | 8 + .../Query.getColonyStakeByUserAddress.req.vtl | 97 + .../Query.getColonyStakeByUserAddress.res.vtl | 4 + .../Query.getColonyTokens.postAuth.1.req.vtl | 8 + .../resolvers/Query.getColonyTokens.req.vtl | 34 + .../resolvers/Query.getColonyTokens.res.vtl | 13 + .../Query.getContractEvent.postAuth.1.req.vtl | 8 + .../resolvers/Query.getContractEvent.req.vtl | 34 + .../resolvers/Query.getContractEvent.res.vtl | 13 + ...etContributorReputation.postAuth.1.req.vtl | 8 + .../Query.getContributorReputation.req.vtl | 34 + .../Query.getContributorReputation.res.vtl | 13 + ...etContributorsByAddress.postAuth.1.res.vtl | 8 + .../Query.getContributorsByAddress.req.vtl | 97 + .../Query.getContributorsByAddress.res.vtl | 4 + ...getContributorsByColony.postAuth.1.res.vtl | 8 + .../Query.getContributorsByColony.req.vtl | 97 + .../Query.getContributorsByColony.res.vtl | 4 + ...urrentNetworkInverseFee.postAuth.1.req.vtl | 8 + .../Query.getCurrentNetworkInverseFee.req.vtl | 34 + .../Query.getCurrentNetworkInverseFee.res.vtl | 13 + ...Query.getCurrentVersion.postAuth.1.req.vtl | 8 + .../resolvers/Query.getCurrentVersion.req.vtl | 34 + .../resolvers/Query.getCurrentVersion.res.vtl | 13 + ....getCurrentVersionByKey.postAuth.1.res.vtl | 8 + .../Query.getCurrentVersionByKey.req.vtl | 57 + .../Query.getCurrentVersionByKey.res.vtl | 4 + .../Query.getDomain.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.getDomain.req.vtl | 34 + .../build/resolvers/Query.getDomain.res.vtl | 13 + ...Query.getDomainMetadata.postAuth.1.req.vtl | 8 + .../resolvers/Query.getDomainMetadata.req.vtl | 34 + .../resolvers/Query.getDomainMetadata.res.vtl | 13 + .../Query.getExpenditure.postAuth.1.req.vtl | 8 + .../resolvers/Query.getExpenditure.req.vtl | 34 + .../resolvers/Query.getExpenditure.res.vtl | 13 + ....getExpenditureMetadata.postAuth.1.req.vtl | 8 + .../Query.getExpenditureMetadata.req.vtl | 34 + .../Query.getExpenditureMetadata.res.vtl | 13 + ...getExpendituresByColony.postAuth.1.res.vtl | 8 + .../Query.getExpendituresByColony.req.vtl | 97 + .../Query.getExpendituresByColony.res.vtl | 4 + ...veFundingPotIdAndColony.postAuth.1.res.vtl | 8 + ...turesByNativeFundingPotIdAndColony.req.vtl | 97 + ...turesByNativeFundingPotIdAndColony.res.vtl | 4 + ...xtensionByColonyAndHash.postAuth.1.res.vtl | 8 + .../Query.getExtensionByColonyAndHash.req.vtl | 97 + .../Query.getExtensionByColonyAndHash.res.vtl | 4 + ...nsionInstallationsCount.postAuth.1.req.vtl | 8 + ...ery.getExtensionInstallationsCount.req.vtl | 34 + ...ery.getExtensionInstallationsCount.res.vtl | 13 + ...ery.getExtensionsByHash.postAuth.1.res.vtl | 8 + .../Query.getExtensionsByHash.req.vtl | 57 + .../Query.getExtensionsByHash.res.vtl | 4 + .../Query.getIngestorStats.postAuth.1.req.vtl | 8 + .../resolvers/Query.getIngestorStats.req.vtl | 34 + .../resolvers/Query.getIngestorStats.res.vtl | 13 + ...y.getLiquidationAddress.postAuth.1.req.vtl | 8 + .../Query.getLiquidationAddress.req.vtl | 34 + .../Query.getLiquidationAddress.res.vtl | 13 + ...nAddressesByUserAddress.postAuth.1.res.vtl | 8 + ...tLiquidationAddressesByUserAddress.req.vtl | 57 + ...tLiquidationAddressesByUserAddress.res.vtl | 4 + ...etMotionByExpenditureId.postAuth.1.res.vtl | 8 + .../Query.getMotionByExpenditureId.req.vtl | 57 + .../Query.getMotionByExpenditureId.res.vtl | 4 + ...MotionByTransactionHash.postAuth.1.res.vtl | 8 + .../Query.getMotionByTransactionHash.req.vtl | 57 + .../Query.getMotionByTransactionHash.res.vtl | 4 + .../Query.getMotionMessage.postAuth.1.req.vtl | 8 + .../resolvers/Query.getMotionMessage.req.vtl | 34 + .../resolvers/Query.getMotionMessage.res.vtl | 13 + ...MotionMessageByMotionId.postAuth.1.res.vtl | 8 + .../Query.getMotionMessageByMotionId.req.vtl | 97 + .../Query.getMotionMessageByMotionId.res.vtl | 4 + .../resolvers/Query.getMotionState.res.vtl | 1 + .../Query.getMotionTimeoutPeriods.res.vtl | 1 + ...etPrivateBetaInviteCode.postAuth.1.req.vtl | 8 + .../Query.getPrivateBetaInviteCode.req.vtl | 34 + .../Query.getPrivateBetaInviteCode.res.vtl | 13 + .../Query.getProfile.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.getProfile.req.vtl | 34 + .../build/resolvers/Query.getProfile.res.vtl | 13 + ...Query.getProfileByEmail.postAuth.1.res.vtl | 8 + .../resolvers/Query.getProfileByEmail.req.vtl | 57 + .../resolvers/Query.getProfileByEmail.res.vtl | 4 + ...ry.getProfileByUsername.postAuth.1.res.vtl | 8 + .../Query.getProfileByUsername.req.vtl | 57 + .../Query.getProfileByUsername.res.vtl | 4 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ...y.getReputationMiningCycleMetadata.req.vtl | 34 + ...y.getReputationMiningCycleMetadata.res.vtl | 13 + ...etRoleByDomainAndColony.postAuth.1.res.vtl | 8 + .../Query.getRoleByDomainAndColony.req.vtl | 97 + .../Query.getRoleByDomainAndColony.res.vtl | 4 + ...yTargetAddressAndColony.postAuth.1.res.vtl | 8 + ...ry.getRoleByTargetAddressAndColony.req.vtl | 97 + ...ry.getRoleByTargetAddressAndColony.res.vtl | 4 + ...uery.getSafeTransaction.postAuth.1.req.vtl | 8 + .../Query.getSafeTransaction.req.vtl | 34 + .../Query.getSafeTransaction.res.vtl | 13 + ....getSafeTransactionData.postAuth.1.req.vtl | 8 + .../Query.getSafeTransactionData.req.vtl | 34 + .../Query.getSafeTransactionData.res.vtl | 13 + .../Query.getSafeTransactionStatus.res.vtl | 1 + ...ery.getStreamingPayment.postAuth.1.req.vtl | 8 + .../Query.getStreamingPayment.req.vtl | 34 + .../Query.getStreamingPayment.res.vtl | 13 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + .../Query.getStreamingPaymentMetadata.req.vtl | 34 + .../Query.getStreamingPaymentMetadata.res.vtl | 13 + .../Query.getToken.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.getToken.req.vtl | 34 + .../build/resolvers/Query.getToken.res.vtl | 13 + ...Query.getTokenByAddress.postAuth.1.res.vtl | 8 + .../resolvers/Query.getTokenByAddress.req.vtl | 57 + .../resolvers/Query.getTokenByAddress.res.vtl | 4 + .../Query.getTokenFromEverywhere.res.vtl | 1 + .../Query.getTokensByType.postAuth.1.res.vtl | 8 + .../resolvers/Query.getTokensByType.req.vtl | 57 + .../resolvers/Query.getTokensByType.res.vtl | 4 + .../Query.getTransaction.postAuth.1.req.vtl | 8 + .../resolvers/Query.getTransaction.req.vtl | 34 + .../resolvers/Query.getTransaction.res.vtl | 13 + ...y.getTransactionsByUser.postAuth.1.res.vtl | 8 + .../Query.getTransactionsByUser.req.vtl | 97 + .../Query.getTransactionsByUser.res.vtl | 4 + ...nsactionsByUserAndGroup.postAuth.1.res.vtl | 8 + ...uery.getTransactionsByUserAndGroup.req.vtl | 97 + ...uery.getTransactionsByUserAndGroup.res.vtl | 4 + .../Query.getUser.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.getUser.req.vtl | 34 + .../build/resolvers/Query.getUser.res.vtl | 13 + .../Query.getUserByAddress.postAuth.1.res.vtl | 8 + .../resolvers/Query.getUserByAddress.req.vtl | 57 + .../resolvers/Query.getUserByAddress.res.vtl | 4 + ...serByLiquidationAddress.postAuth.1.res.vtl | 8 + .../Query.getUserByLiquidationAddress.req.vtl | 57 + .../Query.getUserByLiquidationAddress.res.vtl | 4 + .../resolvers/Query.getUserReputation.res.vtl | 1 + ...tUserReputationInColony.postAuth.1.res.vtl | 8 + .../Query.getUserReputationInColony.req.vtl | 97 + .../Query.getUserReputationInColony.res.vtl | 4 + .../Query.getUserStake.postAuth.1.req.vtl | 8 + .../resolvers/Query.getUserStake.req.vtl | 34 + .../resolvers/Query.getUserStake.res.vtl | 13 + .../Query.getUserStakes.postAuth.1.res.vtl | 8 + .../resolvers/Query.getUserStakes.req.vtl | 97 + .../resolvers/Query.getUserStakes.res.vtl | 4 + .../Query.getUserTokenBalance.res.vtl | 1 + .../Query.getUserTokens.postAuth.1.req.vtl | 8 + .../resolvers/Query.getUserTokens.req.vtl | 34 + .../resolvers/Query.getUserTokens.res.vtl | 13 + .../resolvers/Query.getVoterRewards.res.vtl | 1 + .../Query.listAnnotations.postAuth.1.req.vtl | 8 + .../resolvers/Query.listAnnotations.req.vtl | 50 + .../resolvers/Query.listAnnotations.res.vtl | 7 + .../Query.listColonies.postAuth.1.req.vtl | 8 + .../resolvers/Query.listColonies.req.vtl | 50 + .../resolvers/Query.listColonies.res.vtl | 7 + ...istColonyActionMetadata.postAuth.1.req.vtl | 8 + .../Query.listColonyActionMetadata.req.vtl | 50 + .../Query.listColonyActionMetadata.res.vtl | 7 + ...Query.listColonyActions.postAuth.1.req.vtl | 8 + .../resolvers/Query.listColonyActions.req.vtl | 50 + .../resolvers/Query.listColonyActions.res.vtl | 7 + ....listColonyContributors.postAuth.1.req.vtl | 8 + .../Query.listColonyContributors.req.vtl | 50 + .../Query.listColonyContributors.res.vtl | 7 + ...ery.listColonyDecisions.postAuth.1.req.vtl | 8 + .../Query.listColonyDecisions.req.vtl | 50 + .../Query.listColonyDecisions.res.vtl | 7 + ...ry.listColonyExtensions.postAuth.1.req.vtl | 8 + .../Query.listColonyExtensions.req.vtl | 50 + .../Query.listColonyExtensions.res.vtl | 7 + ...y.listColonyFundsClaims.postAuth.1.req.vtl | 8 + .../Query.listColonyFundsClaims.req.vtl | 50 + .../Query.listColonyFundsClaims.res.vtl | 7 + ...listColonyHistoricRoles.postAuth.1.req.vtl | 8 + .../Query.listColonyHistoricRoles.req.vtl | 50 + .../Query.listColonyHistoricRoles.res.vtl | 7 + ...listColonyMemberInvites.postAuth.1.req.vtl | 8 + .../Query.listColonyMemberInvites.req.vtl | 50 + .../Query.listColonyMemberInvites.res.vtl | 7 + ...uery.listColonyMetadata.postAuth.1.req.vtl | 8 + .../Query.listColonyMetadata.req.vtl | 50 + .../Query.listColonyMetadata.res.vtl | 7 + ...Query.listColonyMotions.postAuth.1.req.vtl | 8 + .../resolvers/Query.listColonyMotions.req.vtl | 50 + .../resolvers/Query.listColonyMotions.res.vtl | 7 + .../Query.listColonyRoles.postAuth.1.req.vtl | 8 + .../resolvers/Query.listColonyRoles.req.vtl | 50 + .../resolvers/Query.listColonyRoles.res.vtl | 7 + .../Query.listColonyStakes.postAuth.1.req.vtl | 8 + .../resolvers/Query.listColonyStakes.req.vtl | 50 + .../resolvers/Query.listColonyStakes.res.vtl | 7 + .../Query.listColonyTokens.postAuth.1.req.vtl | 8 + .../resolvers/Query.listColonyTokens.req.vtl | 50 + .../resolvers/Query.listColonyTokens.res.vtl | 7 + ...uery.listContractEvents.postAuth.1.req.vtl | 8 + .../Query.listContractEvents.req.vtl | 50 + .../Query.listContractEvents.res.vtl | 7 + ...tContributorReputations.postAuth.1.req.vtl | 8 + .../Query.listContributorReputations.req.vtl | 50 + .../Query.listContributorReputations.res.vtl | 7 + ...rrentNetworkInverseFees.postAuth.1.req.vtl | 8 + ...uery.listCurrentNetworkInverseFees.req.vtl | 50 + ...uery.listCurrentNetworkInverseFees.res.vtl | 7 + ...ery.listCurrentVersions.postAuth.1.req.vtl | 8 + .../Query.listCurrentVersions.req.vtl | 50 + .../Query.listCurrentVersions.res.vtl | 7 + ...uery.listDomainMetadata.postAuth.1.req.vtl | 8 + .../Query.listDomainMetadata.req.vtl | 50 + .../Query.listDomainMetadata.res.vtl | 7 + .../Query.listDomains.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.listDomains.req.vtl | 50 + .../build/resolvers/Query.listDomains.res.vtl | 7 + ...listExpenditureMetadata.postAuth.1.req.vtl | 8 + .../Query.listExpenditureMetadata.req.vtl | 50 + .../Query.listExpenditureMetadata.res.vtl | 7 + .../Query.listExpenditures.postAuth.1.req.vtl | 8 + .../resolvers/Query.listExpenditures.req.vtl | 50 + .../resolvers/Query.listExpenditures.res.vtl | 7 + ...sionInstallationsCounts.postAuth.1.req.vtl | 8 + ...y.listExtensionInstallationsCounts.req.vtl | 50 + ...y.listExtensionInstallationsCounts.res.vtl | 7 + ...Query.listIngestorStats.postAuth.1.req.vtl | 8 + .../resolvers/Query.listIngestorStats.req.vtl | 50 + .../resolvers/Query.listIngestorStats.res.vtl | 7 + ...istLiquidationAddresses.postAuth.1.req.vtl | 8 + .../Query.listLiquidationAddresses.req.vtl | 50 + .../Query.listLiquidationAddresses.res.vtl | 7 + ...uery.listMotionMessages.postAuth.1.req.vtl | 8 + .../Query.listMotionMessages.req.vtl | 50 + .../Query.listMotionMessages.res.vtl | 7 + ...tPrivateBetaInviteCodes.postAuth.1.req.vtl | 8 + .../Query.listPrivateBetaInviteCodes.req.vtl | 50 + .../Query.listPrivateBetaInviteCodes.res.vtl | 7 + .../Query.listProfiles.postAuth.1.req.vtl | 8 + .../resolvers/Query.listProfiles.req.vtl | 50 + .../resolvers/Query.listProfiles.res.vtl | 7 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ....listReputationMiningCycleMetadata.req.vtl | 50 + ....listReputationMiningCycleMetadata.res.vtl | 7 + ...listSafeTransactionData.postAuth.1.req.vtl | 8 + .../Query.listSafeTransactionData.req.vtl | 50 + .../Query.listSafeTransactionData.res.vtl | 7 + ...ry.listSafeTransactions.postAuth.1.req.vtl | 8 + .../Query.listSafeTransactions.req.vtl | 50 + .../Query.listSafeTransactions.res.vtl | 7 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + ...Query.listStreamingPaymentMetadata.req.vtl | 50 + ...Query.listStreamingPaymentMetadata.res.vtl | 7 + ...y.listStreamingPayments.postAuth.1.req.vtl | 8 + .../Query.listStreamingPayments.req.vtl | 50 + .../Query.listStreamingPayments.res.vtl | 7 + .../Query.listTokens.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.listTokens.req.vtl | 50 + .../build/resolvers/Query.listTokens.res.vtl | 7 + .../Query.listTransactions.postAuth.1.req.vtl | 8 + .../resolvers/Query.listTransactions.req.vtl | 50 + .../resolvers/Query.listTransactions.res.vtl | 7 + .../Query.listUserStakes.postAuth.1.req.vtl | 8 + .../resolvers/Query.listUserStakes.req.vtl | 50 + .../resolvers/Query.listUserStakes.res.vtl | 7 + .../Query.listUserTokens.postAuth.1.req.vtl | 8 + .../resolvers/Query.listUserTokens.req.vtl | 50 + .../resolvers/Query.listUserTokens.res.vtl | 7 + .../Query.listUsers.postAuth.1.req.vtl | 8 + .../build/resolvers/Query.listUsers.req.vtl | 50 + .../build/resolvers/Query.listUsers.res.vtl | 7 + ...ery.searchColonyActions.postAuth.1.res.vtl | 10 + .../Query.searchColonyActions.req.vtl | 105 + .../Query.searchColonyActions.res.vtl | 32 + ...earchColonyContributors.postAuth.1.res.vtl | 10 + .../Query.searchColonyContributors.req.vtl | 105 + .../Query.searchColonyContributors.res.vtl | 32 + .../SafeTransaction.transactions.req.vtl | 107 + .../SafeTransaction.transactions.res.vtl | 8 + .../SafeTransactionData.token.req.vtl | 25 + .../SafeTransactionData.token.res.vtl | 12 + .../StreamingPayment.metadata.req.vtl | 25 + .../StreamingPayment.metadata.res.vtl | 12 + ...tion.onCreateAnnotation.postAuth.1.req.vtl | 8 + .../Subscription.onCreateAnnotation.req.vtl | 6 + .../Subscription.onCreateAnnotation.res.vtl | 6 + ...cription.onCreateColony.postAuth.1.req.vtl | 8 + .../Subscription.onCreateColony.req.vtl | 6 + .../Subscription.onCreateColony.res.vtl | 6 + ...on.onCreateColonyAction.postAuth.1.req.vtl | 8 + .../Subscription.onCreateColonyAction.req.vtl | 6 + .../Subscription.onCreateColonyAction.res.vtl | 6 + ...ateColonyActionMetadata.postAuth.1.req.vtl | 8 + ...ption.onCreateColonyActionMetadata.req.vtl | 6 + ...ption.onCreateColonyActionMetadata.res.vtl | 6 + ...CreateColonyContributor.postAuth.1.req.vtl | 8 + ...cription.onCreateColonyContributor.req.vtl | 6 + ...cription.onCreateColonyContributor.res.vtl | 6 + ....onCreateColonyDecision.postAuth.1.req.vtl | 8 + ...ubscription.onCreateColonyDecision.req.vtl | 6 + ...ubscription.onCreateColonyDecision.res.vtl | 6 + ...onCreateColonyExtension.postAuth.1.req.vtl | 8 + ...bscription.onCreateColonyExtension.req.vtl | 6 + ...bscription.onCreateColonyExtension.res.vtl | 6 + ...nCreateColonyFundsClaim.postAuth.1.req.vtl | 8 + ...scription.onCreateColonyFundsClaim.req.vtl | 6 + ...scription.onCreateColonyFundsClaim.res.vtl | 6 + ...reateColonyHistoricRole.postAuth.1.req.vtl | 8 + ...ription.onCreateColonyHistoricRole.req.vtl | 6 + ...ription.onCreateColonyHistoricRole.res.vtl | 6 + ...reateColonyMemberInvite.postAuth.1.req.vtl | 8 + ...ription.onCreateColonyMemberInvite.req.vtl | 6 + ...ription.onCreateColonyMemberInvite.res.vtl | 6 + ....onCreateColonyMetadata.postAuth.1.req.vtl | 8 + ...ubscription.onCreateColonyMetadata.req.vtl | 6 + ...ubscription.onCreateColonyMetadata.res.vtl | 6 + ...on.onCreateColonyMotion.postAuth.1.req.vtl | 8 + .../Subscription.onCreateColonyMotion.req.vtl | 6 + .../Subscription.onCreateColonyMotion.res.vtl | 6 + ...tion.onCreateColonyRole.postAuth.1.req.vtl | 8 + .../Subscription.onCreateColonyRole.req.vtl | 6 + .../Subscription.onCreateColonyRole.res.vtl | 6 + ...ion.onCreateColonyStake.postAuth.1.req.vtl | 8 + .../Subscription.onCreateColonyStake.req.vtl | 6 + .../Subscription.onCreateColonyStake.res.vtl | 6 + ...on.onCreateColonyTokens.postAuth.1.req.vtl | 8 + .../Subscription.onCreateColonyTokens.req.vtl | 6 + .../Subscription.onCreateColonyTokens.res.vtl | 6 + ...n.onCreateContractEvent.postAuth.1.req.vtl | 8 + ...Subscription.onCreateContractEvent.req.vtl | 6 + ...Subscription.onCreateContractEvent.res.vtl | 6 + ...teContributorReputation.postAuth.1.req.vtl | 8 + ...tion.onCreateContributorReputation.req.vtl | 6 + ...tion.onCreateContributorReputation.res.vtl | 6 + ...urrentNetworkInverseFee.postAuth.1.req.vtl | 8 + ...n.onCreateCurrentNetworkInverseFee.req.vtl | 6 + ...n.onCreateCurrentNetworkInverseFee.res.vtl | 6 + ....onCreateCurrentVersion.postAuth.1.req.vtl | 8 + ...ubscription.onCreateCurrentVersion.req.vtl | 6 + ...ubscription.onCreateCurrentVersion.res.vtl | 6 + ...cription.onCreateDomain.postAuth.1.req.vtl | 8 + .../Subscription.onCreateDomain.req.vtl | 6 + .../Subscription.onCreateDomain.res.vtl | 6 + ....onCreateDomainMetadata.postAuth.1.req.vtl | 8 + ...ubscription.onCreateDomainMetadata.req.vtl | 6 + ...ubscription.onCreateDomainMetadata.res.vtl | 6 + ...ion.onCreateExpenditure.postAuth.1.req.vtl | 8 + .../Subscription.onCreateExpenditure.req.vtl | 6 + .../Subscription.onCreateExpenditure.res.vtl | 6 + ...eateExpenditureMetadata.postAuth.1.req.vtl | 8 + ...iption.onCreateExpenditureMetadata.req.vtl | 6 + ...iption.onCreateExpenditureMetadata.res.vtl | 6 + ...nsionInstallationsCount.postAuth.1.req.vtl | 8 + ...nCreateExtensionInstallationsCount.req.vtl | 6 + ...nCreateExtensionInstallationsCount.res.vtl | 6 + ...n.onCreateIngestorStats.postAuth.1.req.vtl | 8 + ...Subscription.onCreateIngestorStats.req.vtl | 6 + ...Subscription.onCreateIngestorStats.res.vtl | 6 + ...reateLiquidationAddress.postAuth.1.req.vtl | 8 + ...ription.onCreateLiquidationAddress.req.vtl | 6 + ...ription.onCreateLiquidationAddress.res.vtl | 6 + ...n.onCreateMotionMessage.postAuth.1.req.vtl | 8 + ...Subscription.onCreateMotionMessage.req.vtl | 6 + ...Subscription.onCreateMotionMessage.res.vtl | 6 + ...tePrivateBetaInviteCode.postAuth.1.req.vtl | 8 + ...tion.onCreatePrivateBetaInviteCode.req.vtl | 6 + ...tion.onCreatePrivateBetaInviteCode.res.vtl | 6 + ...ription.onCreateProfile.postAuth.1.req.vtl | 8 + .../Subscription.onCreateProfile.req.vtl | 6 + .../Subscription.onCreateProfile.res.vtl | 6 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ...reateReputationMiningCycleMetadata.req.vtl | 6 + ...reateReputationMiningCycleMetadata.res.vtl | 6 + ...onCreateSafeTransaction.postAuth.1.req.vtl | 8 + ...bscription.onCreateSafeTransaction.req.vtl | 6 + ...bscription.onCreateSafeTransaction.res.vtl | 6 + ...eateSafeTransactionData.postAuth.1.req.vtl | 8 + ...iption.onCreateSafeTransactionData.req.vtl | 6 + ...iption.onCreateSafeTransactionData.res.vtl | 6 + ...nCreateStreamingPayment.postAuth.1.req.vtl | 8 + ...scription.onCreateStreamingPayment.req.vtl | 6 + ...scription.onCreateStreamingPayment.res.vtl | 6 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + ...n.onCreateStreamingPaymentMetadata.req.vtl | 6 + ...n.onCreateStreamingPaymentMetadata.res.vtl | 6 + ...scription.onCreateToken.postAuth.1.req.vtl | 8 + .../Subscription.onCreateToken.req.vtl | 6 + .../Subscription.onCreateToken.res.vtl | 6 + ...ion.onCreateTransaction.postAuth.1.req.vtl | 8 + .../Subscription.onCreateTransaction.req.vtl | 6 + .../Subscription.onCreateTransaction.res.vtl | 6 + ...bscription.onCreateUser.postAuth.1.req.vtl | 8 + .../Subscription.onCreateUser.req.vtl | 6 + .../Subscription.onCreateUser.res.vtl | 6 + ...ption.onCreateUserStake.postAuth.1.req.vtl | 8 + .../Subscription.onCreateUserStake.req.vtl | 6 + .../Subscription.onCreateUserStake.res.vtl | 6 + ...tion.onCreateUserTokens.postAuth.1.req.vtl | 8 + .../Subscription.onCreateUserTokens.req.vtl | 6 + .../Subscription.onCreateUserTokens.res.vtl | 6 + ...tion.onDeleteAnnotation.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteAnnotation.req.vtl | 6 + .../Subscription.onDeleteAnnotation.res.vtl | 6 + ...cription.onDeleteColony.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteColony.req.vtl | 6 + .../Subscription.onDeleteColony.res.vtl | 6 + ...on.onDeleteColonyAction.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteColonyAction.req.vtl | 6 + .../Subscription.onDeleteColonyAction.res.vtl | 6 + ...eteColonyActionMetadata.postAuth.1.req.vtl | 8 + ...ption.onDeleteColonyActionMetadata.req.vtl | 6 + ...ption.onDeleteColonyActionMetadata.res.vtl | 6 + ...DeleteColonyContributor.postAuth.1.req.vtl | 8 + ...cription.onDeleteColonyContributor.req.vtl | 6 + ...cription.onDeleteColonyContributor.res.vtl | 6 + ....onDeleteColonyDecision.postAuth.1.req.vtl | 8 + ...ubscription.onDeleteColonyDecision.req.vtl | 6 + ...ubscription.onDeleteColonyDecision.res.vtl | 6 + ...onDeleteColonyExtension.postAuth.1.req.vtl | 8 + ...bscription.onDeleteColonyExtension.req.vtl | 6 + ...bscription.onDeleteColonyExtension.res.vtl | 6 + ...nDeleteColonyFundsClaim.postAuth.1.req.vtl | 8 + ...scription.onDeleteColonyFundsClaim.req.vtl | 6 + ...scription.onDeleteColonyFundsClaim.res.vtl | 6 + ...eleteColonyHistoricRole.postAuth.1.req.vtl | 8 + ...ription.onDeleteColonyHistoricRole.req.vtl | 6 + ...ription.onDeleteColonyHistoricRole.res.vtl | 6 + ...eleteColonyMemberInvite.postAuth.1.req.vtl | 8 + ...ription.onDeleteColonyMemberInvite.req.vtl | 6 + ...ription.onDeleteColonyMemberInvite.res.vtl | 6 + ....onDeleteColonyMetadata.postAuth.1.req.vtl | 8 + ...ubscription.onDeleteColonyMetadata.req.vtl | 6 + ...ubscription.onDeleteColonyMetadata.res.vtl | 6 + ...on.onDeleteColonyMotion.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteColonyMotion.req.vtl | 6 + .../Subscription.onDeleteColonyMotion.res.vtl | 6 + ...tion.onDeleteColonyRole.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteColonyRole.req.vtl | 6 + .../Subscription.onDeleteColonyRole.res.vtl | 6 + ...ion.onDeleteColonyStake.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteColonyStake.req.vtl | 6 + .../Subscription.onDeleteColonyStake.res.vtl | 6 + ...on.onDeleteColonyTokens.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteColonyTokens.req.vtl | 6 + .../Subscription.onDeleteColonyTokens.res.vtl | 6 + ...n.onDeleteContractEvent.postAuth.1.req.vtl | 8 + ...Subscription.onDeleteContractEvent.req.vtl | 6 + ...Subscription.onDeleteContractEvent.res.vtl | 6 + ...teContributorReputation.postAuth.1.req.vtl | 8 + ...tion.onDeleteContributorReputation.req.vtl | 6 + ...tion.onDeleteContributorReputation.res.vtl | 6 + ...urrentNetworkInverseFee.postAuth.1.req.vtl | 8 + ...n.onDeleteCurrentNetworkInverseFee.req.vtl | 6 + ...n.onDeleteCurrentNetworkInverseFee.res.vtl | 6 + ....onDeleteCurrentVersion.postAuth.1.req.vtl | 8 + ...ubscription.onDeleteCurrentVersion.req.vtl | 6 + ...ubscription.onDeleteCurrentVersion.res.vtl | 6 + ...cription.onDeleteDomain.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteDomain.req.vtl | 6 + .../Subscription.onDeleteDomain.res.vtl | 6 + ....onDeleteDomainMetadata.postAuth.1.req.vtl | 8 + ...ubscription.onDeleteDomainMetadata.req.vtl | 6 + ...ubscription.onDeleteDomainMetadata.res.vtl | 6 + ...ion.onDeleteExpenditure.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteExpenditure.req.vtl | 6 + .../Subscription.onDeleteExpenditure.res.vtl | 6 + ...leteExpenditureMetadata.postAuth.1.req.vtl | 8 + ...iption.onDeleteExpenditureMetadata.req.vtl | 6 + ...iption.onDeleteExpenditureMetadata.res.vtl | 6 + ...nsionInstallationsCount.postAuth.1.req.vtl | 8 + ...nDeleteExtensionInstallationsCount.req.vtl | 6 + ...nDeleteExtensionInstallationsCount.res.vtl | 6 + ...n.onDeleteIngestorStats.postAuth.1.req.vtl | 8 + ...Subscription.onDeleteIngestorStats.req.vtl | 6 + ...Subscription.onDeleteIngestorStats.res.vtl | 6 + ...eleteLiquidationAddress.postAuth.1.req.vtl | 8 + ...ription.onDeleteLiquidationAddress.req.vtl | 6 + ...ription.onDeleteLiquidationAddress.res.vtl | 6 + ...n.onDeleteMotionMessage.postAuth.1.req.vtl | 8 + ...Subscription.onDeleteMotionMessage.req.vtl | 6 + ...Subscription.onDeleteMotionMessage.res.vtl | 6 + ...tePrivateBetaInviteCode.postAuth.1.req.vtl | 8 + ...tion.onDeletePrivateBetaInviteCode.req.vtl | 6 + ...tion.onDeletePrivateBetaInviteCode.res.vtl | 6 + ...ription.onDeleteProfile.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteProfile.req.vtl | 6 + .../Subscription.onDeleteProfile.res.vtl | 6 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ...eleteReputationMiningCycleMetadata.req.vtl | 6 + ...eleteReputationMiningCycleMetadata.res.vtl | 6 + ...onDeleteSafeTransaction.postAuth.1.req.vtl | 8 + ...bscription.onDeleteSafeTransaction.req.vtl | 6 + ...bscription.onDeleteSafeTransaction.res.vtl | 6 + ...leteSafeTransactionData.postAuth.1.req.vtl | 8 + ...iption.onDeleteSafeTransactionData.req.vtl | 6 + ...iption.onDeleteSafeTransactionData.res.vtl | 6 + ...nDeleteStreamingPayment.postAuth.1.req.vtl | 8 + ...scription.onDeleteStreamingPayment.req.vtl | 6 + ...scription.onDeleteStreamingPayment.res.vtl | 6 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + ...n.onDeleteStreamingPaymentMetadata.req.vtl | 6 + ...n.onDeleteStreamingPaymentMetadata.res.vtl | 6 + ...scription.onDeleteToken.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteToken.req.vtl | 6 + .../Subscription.onDeleteToken.res.vtl | 6 + ...ion.onDeleteTransaction.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteTransaction.req.vtl | 6 + .../Subscription.onDeleteTransaction.res.vtl | 6 + ...bscription.onDeleteUser.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteUser.req.vtl | 6 + .../Subscription.onDeleteUser.res.vtl | 6 + ...ption.onDeleteUserStake.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteUserStake.req.vtl | 6 + .../Subscription.onDeleteUserStake.res.vtl | 6 + ...tion.onDeleteUserTokens.postAuth.1.req.vtl | 8 + .../Subscription.onDeleteUserTokens.req.vtl | 6 + .../Subscription.onDeleteUserTokens.res.vtl | 6 + ...tion.onUpdateAnnotation.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateAnnotation.req.vtl | 6 + .../Subscription.onUpdateAnnotation.res.vtl | 6 + ...cription.onUpdateColony.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateColony.req.vtl | 6 + .../Subscription.onUpdateColony.res.vtl | 6 + ...on.onUpdateColonyAction.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateColonyAction.req.vtl | 6 + .../Subscription.onUpdateColonyAction.res.vtl | 6 + ...ateColonyActionMetadata.postAuth.1.req.vtl | 8 + ...ption.onUpdateColonyActionMetadata.req.vtl | 6 + ...ption.onUpdateColonyActionMetadata.res.vtl | 6 + ...UpdateColonyContributor.postAuth.1.req.vtl | 8 + ...cription.onUpdateColonyContributor.req.vtl | 6 + ...cription.onUpdateColonyContributor.res.vtl | 6 + ....onUpdateColonyDecision.postAuth.1.req.vtl | 8 + ...ubscription.onUpdateColonyDecision.req.vtl | 6 + ...ubscription.onUpdateColonyDecision.res.vtl | 6 + ...onUpdateColonyExtension.postAuth.1.req.vtl | 8 + ...bscription.onUpdateColonyExtension.req.vtl | 6 + ...bscription.onUpdateColonyExtension.res.vtl | 6 + ...nUpdateColonyFundsClaim.postAuth.1.req.vtl | 8 + ...scription.onUpdateColonyFundsClaim.req.vtl | 6 + ...scription.onUpdateColonyFundsClaim.res.vtl | 6 + ...pdateColonyHistoricRole.postAuth.1.req.vtl | 8 + ...ription.onUpdateColonyHistoricRole.req.vtl | 6 + ...ription.onUpdateColonyHistoricRole.res.vtl | 6 + ...pdateColonyMemberInvite.postAuth.1.req.vtl | 8 + ...ription.onUpdateColonyMemberInvite.req.vtl | 6 + ...ription.onUpdateColonyMemberInvite.res.vtl | 6 + ....onUpdateColonyMetadata.postAuth.1.req.vtl | 8 + ...ubscription.onUpdateColonyMetadata.req.vtl | 6 + ...ubscription.onUpdateColonyMetadata.res.vtl | 6 + ...on.onUpdateColonyMotion.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateColonyMotion.req.vtl | 6 + .../Subscription.onUpdateColonyMotion.res.vtl | 6 + ...tion.onUpdateColonyRole.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateColonyRole.req.vtl | 6 + .../Subscription.onUpdateColonyRole.res.vtl | 6 + ...ion.onUpdateColonyStake.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateColonyStake.req.vtl | 6 + .../Subscription.onUpdateColonyStake.res.vtl | 6 + ...on.onUpdateColonyTokens.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateColonyTokens.req.vtl | 6 + .../Subscription.onUpdateColonyTokens.res.vtl | 6 + ...n.onUpdateContractEvent.postAuth.1.req.vtl | 8 + ...Subscription.onUpdateContractEvent.req.vtl | 6 + ...Subscription.onUpdateContractEvent.res.vtl | 6 + ...teContributorReputation.postAuth.1.req.vtl | 8 + ...tion.onUpdateContributorReputation.req.vtl | 6 + ...tion.onUpdateContributorReputation.res.vtl | 6 + ...urrentNetworkInverseFee.postAuth.1.req.vtl | 8 + ...n.onUpdateCurrentNetworkInverseFee.req.vtl | 6 + ...n.onUpdateCurrentNetworkInverseFee.res.vtl | 6 + ....onUpdateCurrentVersion.postAuth.1.req.vtl | 8 + ...ubscription.onUpdateCurrentVersion.req.vtl | 6 + ...ubscription.onUpdateCurrentVersion.res.vtl | 6 + ...cription.onUpdateDomain.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateDomain.req.vtl | 6 + .../Subscription.onUpdateDomain.res.vtl | 6 + ....onUpdateDomainMetadata.postAuth.1.req.vtl | 8 + ...ubscription.onUpdateDomainMetadata.req.vtl | 6 + ...ubscription.onUpdateDomainMetadata.res.vtl | 6 + ...ion.onUpdateExpenditure.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateExpenditure.req.vtl | 6 + .../Subscription.onUpdateExpenditure.res.vtl | 6 + ...dateExpenditureMetadata.postAuth.1.req.vtl | 8 + ...iption.onUpdateExpenditureMetadata.req.vtl | 6 + ...iption.onUpdateExpenditureMetadata.res.vtl | 6 + ...nsionInstallationsCount.postAuth.1.req.vtl | 8 + ...nUpdateExtensionInstallationsCount.req.vtl | 6 + ...nUpdateExtensionInstallationsCount.res.vtl | 6 + ...n.onUpdateIngestorStats.postAuth.1.req.vtl | 8 + ...Subscription.onUpdateIngestorStats.req.vtl | 6 + ...Subscription.onUpdateIngestorStats.res.vtl | 6 + ...pdateLiquidationAddress.postAuth.1.req.vtl | 8 + ...ription.onUpdateLiquidationAddress.req.vtl | 6 + ...ription.onUpdateLiquidationAddress.res.vtl | 6 + ...n.onUpdateMotionMessage.postAuth.1.req.vtl | 8 + ...Subscription.onUpdateMotionMessage.req.vtl | 6 + ...Subscription.onUpdateMotionMessage.res.vtl | 6 + ...tePrivateBetaInviteCode.postAuth.1.req.vtl | 8 + ...tion.onUpdatePrivateBetaInviteCode.req.vtl | 6 + ...tion.onUpdatePrivateBetaInviteCode.res.vtl | 6 + ...ription.onUpdateProfile.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateProfile.req.vtl | 6 + .../Subscription.onUpdateProfile.res.vtl | 6 + ...tionMiningCycleMetadata.postAuth.1.req.vtl | 8 + ...pdateReputationMiningCycleMetadata.req.vtl | 6 + ...pdateReputationMiningCycleMetadata.res.vtl | 6 + ...onUpdateSafeTransaction.postAuth.1.req.vtl | 8 + ...bscription.onUpdateSafeTransaction.req.vtl | 6 + ...bscription.onUpdateSafeTransaction.res.vtl | 6 + ...dateSafeTransactionData.postAuth.1.req.vtl | 8 + ...iption.onUpdateSafeTransactionData.req.vtl | 6 + ...iption.onUpdateSafeTransactionData.res.vtl | 6 + ...nUpdateStreamingPayment.postAuth.1.req.vtl | 8 + ...scription.onUpdateStreamingPayment.req.vtl | 6 + ...scription.onUpdateStreamingPayment.res.vtl | 6 + ...treamingPaymentMetadata.postAuth.1.req.vtl | 8 + ...n.onUpdateStreamingPaymentMetadata.req.vtl | 6 + ...n.onUpdateStreamingPaymentMetadata.res.vtl | 6 + ...scription.onUpdateToken.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateToken.req.vtl | 6 + .../Subscription.onUpdateToken.res.vtl | 6 + ...ion.onUpdateTransaction.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateTransaction.req.vtl | 6 + .../Subscription.onUpdateTransaction.res.vtl | 6 + ...bscription.onUpdateUser.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateUser.req.vtl | 6 + .../Subscription.onUpdateUser.res.vtl | 6 + ...ption.onUpdateUserStake.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateUserStake.req.vtl | 6 + .../Subscription.onUpdateUserStake.res.vtl | 6 + ...tion.onUpdateUserTokens.postAuth.1.req.vtl | 8 + .../Subscription.onUpdateUserTokens.req.vtl | 6 + .../Subscription.onUpdateUserTokens.res.vtl | 6 + .../build/resolvers/Token.colonies.req.vtl | 69 + .../build/resolvers/Token.colonies.res.vtl | 8 + .../build/resolvers/Token.users.req.vtl | 69 + .../build/resolvers/Token.users.res.vtl | 8 + .../User.liquidationAddresses.req.vtl | 69 + .../User.liquidationAddresses.res.vtl | 8 + .../User.privateBetaInviteCode.req.vtl | 25 + .../User.privateBetaInviteCode.res.vtl | 12 + .../build/resolvers/User.profile.req.vtl | 25 + .../build/resolvers/User.profile.res.vtl | 12 + .../build/resolvers/User.roles.req.vtl | 107 + .../build/resolvers/User.roles.res.vtl | 8 + .../build/resolvers/User.stakes.req.vtl | 107 + .../build/resolvers/User.stakes.res.vtl | 8 + .../build/resolvers/User.tokens.req.vtl | 69 + .../build/resolvers/User.tokens.res.vtl | 8 + .../resolvers/User.transactionHistory.req.vtl | 107 + .../resolvers/User.transactionHistory.res.vtl | 8 + .../build/resolvers/UserStake.action.req.vtl | 25 + .../build/resolvers/UserStake.action.res.vtl | 12 + .../build/resolvers/UserStake.user.req.vtl | 25 + .../build/resolvers/UserStake.user.res.vtl | 12 + .../build/resolvers/UserTokens.token.req.vtl | 25 + .../build/resolvers/UserTokens.token.res.vtl | 12 + .../build/resolvers/UserTokens.user.req.vtl | 25 + .../build/resolvers/UserTokens.user.res.vtl | 12 + .../api/colonycdapp/build/schema.graphql | 6245 ++++++++++++++++ .../colonycdapp/build/stacks/Annotation.json | 1011 +++ .../api/colonycdapp/build/stacks/Colony.json | 1555 ++++ .../build/stacks/ColonyAction.json | 1444 ++++ .../build/stacks/ColonyActionMetadata.json | 1011 +++ .../build/stacks/ColonyContributor.json | 1279 ++++ .../build/stacks/ColonyDecision.json | 1280 ++++ .../build/stacks/ColonyExtension.json | 1276 ++++ .../build/stacks/ColonyFundsClaim.json | 1092 +++ .../build/stacks/ColonyHistoricRole.json | 1143 +++ .../build/stacks/ColonyMemberInvite.json | 1011 +++ .../build/stacks/ColonyMetadata.json | 1011 +++ .../build/stacks/ColonyMotion.json | 1272 ++++ .../colonycdapp/build/stacks/ColonyRole.json | 1344 ++++ .../colonycdapp/build/stacks/ColonyStake.json | 1156 +++ .../build/stacks/ColonyTokens.json | 1088 +++ .../build/stacks/ConnectionStack.json | 6613 +++++++++++++++++ .../build/stacks/ContractEvent.json | 998 +++ .../build/stacks/ContributorReputation.json | 1156 +++ .../stacks/CurrentNetworkInverseFee.json | 998 +++ .../build/stacks/CurrentVersion.json | 1135 +++ .../build/stacks/CustomResources.json | 61 + .../api/colonycdapp/build/stacks/Domain.json | 1064 +++ .../build/stacks/DomainMetadata.json | 1011 +++ .../colonycdapp/build/stacks/Expenditure.json | 1284 ++++ .../build/stacks/ExpenditureMetadata.json | 1011 +++ .../stacks/ExtensionInstallationsCount.json | 998 +++ .../build/stacks/FunctionDirectiveStack.json | 3154 ++++++++ .../build/stacks/IngestorStats.json | 998 +++ .../build/stacks/LiquidationAddress.json | 1272 ++++ .../build/stacks/MotionMessage.json | 1156 +++ .../build/stacks/PrivateBetaInviteCode.json | 1050 +++ .../api/colonycdapp/build/stacks/Profile.json | 1475 ++++ .../stacks/ReputationMiningCycleMetadata.json | 998 +++ .../build/stacks/SafeTransaction.json | 1011 +++ .../build/stacks/SafeTransactionData.json | 1060 +++ .../build/stacks/SearchableStack.json | 885 +++ .../build/stacks/StreamingPayment.json | 998 +++ .../stacks/StreamingPaymentMetadata.json | 1011 +++ .../api/colonycdapp/build/stacks/Token.json | 1304 ++++ .../colonycdapp/build/stacks/Transaction.json | 1284 ++++ .../api/colonycdapp/build/stacks/User.json | 1144 +++ .../colonycdapp/build/stacks/UserStake.json | 1156 +++ .../colonycdapp/build/stacks/UserTokens.json | 1088 +++ .../build/root-cloudformation-stack.json | 156 + .../createColonyEtherealMetadata/src/index.js | 2 +- .../createPrivateBetaInvite/src/index.js | 2 +- .../function/createUniqueUser/src/index.js | 2 +- .../function/fetchColonyBalances/src/index.js | 2 +- .../fetchColonyNativeFundsClaim/src/index.js | 2 +- .../function/fetchMotionState/src/utils.js | 2 +- .../fetchMotionTimeoutPeriods/src/index.js | 2 +- .../function/fetchTokenFromChain/src/index.js | 2 +- .../function/fetchVoterRewards/src/utils.js | 2 +- .../getSafeTransactionStatus/src/index.js | 2 +- .../getSafeTransactionStatus/src/utils.js | 4 +- .../function/getUserReputation/src/index.js | 2 +- .../function/getUserTokenBalance/src/index.js | 2 +- .../backend/function/qaSSMtest/src/index.js | 2 +- .../src/index.js | 2 +- .../function/validateUserInvite/src/index.js | 2 +- 1406 files changed, 94064 insertions(+), 17 deletions(-) create mode 100644 amplify/backend/api/colonycdapp/build/cloudformation-template.json create mode 100644 amplify/backend/api/colonycdapp/build/functions/OpenSearchStreamingLambdaFunction.zip create mode 100644 amplify/backend/api/colonycdapp/build/parameters.json create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.balances.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.chainFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.bridgeXYZMutation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.2.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyEtherealMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.2.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUniqueUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorsWithReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.init.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Mutation.validateUserInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Profile.user.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Profile.user.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.bridgeXYZQuery.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionState.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionTimeoutPeriods.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionStatus.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenFromEverywhere.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokenBalance.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.getVoterRewards.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.postAuth.1.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.postAuth.1.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Token.users.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/Token.users.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.profile.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.profile.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.roles.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.roles.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.stakes.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.stakes.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.tokens.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.tokens.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.req.vtl create mode 100644 amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.res.vtl create mode 100644 amplify/backend/api/colonycdapp/build/schema.graphql create mode 100644 amplify/backend/api/colonycdapp/build/stacks/Annotation.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/Colony.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyAction.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyActionMetadata.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyContributor.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyDecision.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyExtension.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyFundsClaim.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyHistoricRole.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyMemberInvite.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyMetadata.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyMotion.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyRole.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyStake.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ColonyTokens.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ConnectionStack.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ContractEvent.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ContributorReputation.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/CurrentNetworkInverseFee.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/CurrentVersion.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/CustomResources.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/Domain.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/DomainMetadata.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/Expenditure.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ExpenditureMetadata.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ExtensionInstallationsCount.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/FunctionDirectiveStack.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/IngestorStats.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/LiquidationAddress.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/MotionMessage.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/PrivateBetaInviteCode.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/Profile.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/ReputationMiningCycleMetadata.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/SafeTransaction.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/SafeTransactionData.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/SearchableStack.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/StreamingPayment.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/StreamingPaymentMetadata.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/Token.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/Transaction.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/User.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/UserStake.json create mode 100644 amplify/backend/api/colonycdapp/build/stacks/UserTokens.json create mode 100644 amplify/backend/awscloudformation/build/root-cloudformation-stack.json diff --git a/Dockerfile b/Dockerfile index f4806fc0554..5fedf0ecd94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM node:20.11-alpine3.19 as build-stage RUN apk add git WORKDIR /app COPY package.json package-lock.json ./ +RUN npm i -g npm@10.8 RUN SKIP_HOOKS=true npm ci # Package the import-meta-env as single binary as we don't have node on the production container diff --git a/amplify/backend/api/colonycdapp/build/cloudformation-template.json b/amplify/backend/api/colonycdapp/build/cloudformation-template.json new file mode 100644 index 00000000000..30ee414c670 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/cloudformation-template.json @@ -0,0 +1,4540 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + }, + "OpenSearchAccessIAMRoleName": { + "Type": "String", + "Default": "AppSyncOpenSearchRole", + "Description": "The name of the IAM role assumed by AppSync for OpenSearch." + }, + "OpenSearchStreamingLambdaHandlerName": { + "Type": "String", + "Default": "python_streaming_function.lambda_handler", + "Description": "The name of the lambda handler." + }, + "OpenSearchStreamingLambdaRuntime": { + "Type": "String", + "Default": "python3.6", + "Description": "The lambda runtime (https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime)" + }, + "OpenSearchStreamingFunctionName": { + "Type": "String", + "Default": "DdbToEsFn", + "Description": "The name of the streaming lambda function." + }, + "OpenSearchStreamBatchSize": { + "Type": "Number", + "Default": 100, + "Description": "The maximum number of records to stream to OpenSearch per batch." + }, + "OpenSearchStreamMaximumBatchingWindowInSeconds": { + "Type": "Number", + "Default": 1, + "Description": "The maximum amount of time in seconds to wait for DynamoDB stream records before sending to streaming lambda." + }, + "OpenSearchStreamingIAMRoleName": { + "Type": "String", + "Default": "SearchLambdaIAMRole", + "Description": "The name of the streaming lambda function IAM role." + }, + "OpenSearchDebugStreamingLambda": { + "Type": "Number", + "Default": 0, + "AllowedValues": [ + "0", + "1" + ], + "Description": "Enable debug logs for the Dynamo -> OpenSearch streaming lambda." + }, + "OpenSearchInstanceCount": { + "Type": "Number", + "Default": 1, + "Description": "The number of instances to launch into the OpenSearch domain." + }, + "OpenSearchInstanceType": { + "Type": "String", + "Default": "t2.small.elasticsearch", + "AllowedValues": [ + "t2.small.elasticsearch", + "t2.medium.elasticsearch", + "c4.large.elasticsearch", + "c4.xlarge.elasticsearch", + "c4.2xlarge.elasticsearch", + "c4.4xlarge.elasticsearch", + "c4.8xlarge.elasticsearch", + "m3.medium.elasticsearch", + "m3.large.elasticsearch", + "m3.xlarge.elasticsearch", + "m3.2xlarge.elasticsearch", + "m4.large.elasticsearch", + "m4.xlarge.elasticsearch", + "m4.2xlarge.elasticsearch", + "m4.4xlarge.elasticsearch", + "m4.10xlarge.elasticsearch", + "r3.large.elasticsearch", + "r3.xlarge.elasticsearch", + "r3.2xlarge.elasticsearch", + "r3.4xlarge.elasticsearch", + "r3.8xlarge.elasticsearch", + "r4.large.elasticsearch", + "r4.xlarge.elasticsearch", + "r4.2xlarge.elasticsearch", + "r4.4xlarge.elasticsearch", + "r4.8xlarge.elasticsearch", + "r4.16xlarge.elasticsearch", + "i2.xlarge.elasticsearch", + "i2.2xlarge.elasticsearch", + "i3.large.elasticsearch", + "i3.xlarge.elasticsearch", + "i3.2xlarge.elasticsearch", + "i3.4xlarge.elasticsearch", + "i3.8xlarge.elasticsearch", + "i3.16xlarge.elasticsearch", + "r6gd.12xlarge.elasticsearch", + "ultrawarm1.xlarge.elasticsearch", + "m5.4xlarge.elasticsearch", + "t3.xlarge.elasticsearch", + "m6g.xlarge.elasticsearch", + "m6g.12xlarge.elasticsearch", + "t2.micro.elasticsearch", + "r6gd.16xlarge.elasticsearch", + "d2.2xlarge.elasticsearch", + "t3.micro.elasticsearch", + "m5.large.elasticsearch", + "d2.4xlarge.elasticsearch", + "t3.small.elasticsearch", + "c5.2xlarge.elasticsearch", + "c6g.2xlarge.elasticsearch", + "d2.8xlarge.elasticsearch", + "c5.4xlarge.elasticsearch", + "t4g.medium.elasticsearch", + "c6g.4xlarge.elasticsearch", + "c6g.xlarge.elasticsearch", + "c6g.12xlarge.elasticsearch", + "c5.xlarge.elasticsearch", + "c5.large.elasticsearch", + "t4g.small.elasticsearch", + "c5.9xlarge.elasticsearch", + "c6g.8xlarge.elasticsearch", + "c6g.large.elasticsearch", + "d2.xlarge.elasticsearch", + "ultrawarm1.medium.elasticsearch", + "t3.nano.elasticsearch", + "t3.medium.elasticsearch", + "m6g.2xlarge.elasticsearch", + "t3.2xlarge.elasticsearch", + "c5.18xlarge.elasticsearch", + "m6g.4xlarge.elasticsearch", + "r6gd.2xlarge.elasticsearch", + "m5.xlarge.elasticsearch", + "r6gd.4xlarge.elasticsearch", + "r6g.2xlarge.elasticsearch", + "r5.2xlarge.elasticsearch", + "m5.12xlarge.elasticsearch", + "m6g.8xlarge.elasticsearch", + "m6g.large.elasticsearch", + "m5.24xlarge.elasticsearch", + "r6g.4xlarge.elasticsearch", + "t3.large.elasticsearch", + "r5.4xlarge.elasticsearch", + "ultrawarm1.large.elasticsearch", + "r6gd.8xlarge.elasticsearch", + "r6gd.large.elasticsearch", + "r6g.xlarge.elasticsearch", + "r5.xlarge.elasticsearch", + "r6g.12xlarge.elasticsearch", + "r5.12xlarge.elasticsearch", + "m5.2xlarge.elasticsearch", + "r6gd.xlarge.elasticsearch", + "r6g.8xlarge.elasticsearch", + "r6g.large.elasticsearch", + "r5.24xlarge.elasticsearch", + "r5.large.elasticsearch", + "t2.small.search", + "t2.medium.search", + "c4.large.search", + "c4.xlarge.search", + "c4.2xlarge.search", + "c4.4xlarge.search", + "c4.8xlarge.search", + "m3.medium.search", + "m3.large.search", + "m3.xlarge.search", + "m3.2xlarge.search", + "m4.large.search", + "m4.xlarge.search", + "m4.2xlarge.search", + "m4.4xlarge.search", + "m4.10xlarge.search", + "r3.large.search", + "r3.xlarge.search", + "r3.2xlarge.search", + "r3.4xlarge.search", + "r3.8xlarge.search", + "r4.large.search", + "r4.xlarge.search", + "r4.2xlarge.search", + "r4.4xlarge.search", + "r4.8xlarge.search", + "r4.16xlarge.search", + "i2.xlarge.search", + "i2.2xlarge.search", + "i3.large.search", + "i3.xlarge.search", + "i3.2xlarge.search", + "i3.4xlarge.search", + "i3.8xlarge.search", + "i3.16xlarge.search", + "r6gd.12xlarge.search", + "ultrawarm1.xlarge.search", + "m5.4xlarge.search", + "t3.xlarge.search", + "m6g.xlarge.search", + "m6g.12xlarge.search", + "t2.micro.search", + "r6gd.16xlarge.search", + "d2.2xlarge.search", + "t3.micro.search", + "m5.large.search", + "d2.4xlarge.search", + "t3.small.search", + "c5.2xlarge.search", + "c6g.2xlarge.search", + "d2.8xlarge.search", + "c5.4xlarge.search", + "t4g.medium.search", + "c6g.4xlarge.search", + "c6g.xlarge.search", + "c6g.12xlarge.search", + "c5.xlarge.search", + "c5.large.search", + "t4g.small.search", + "c5.9xlarge.search", + "c6g.8xlarge.search", + "c6g.large.search", + "d2.xlarge.search", + "ultrawarm1.medium.search", + "t3.nano.search", + "t3.medium.search", + "m6g.2xlarge.search", + "t3.2xlarge.search", + "c5.18xlarge.search", + "m6g.4xlarge.search", + "r6gd.2xlarge.search", + "m5.xlarge.search", + "r6gd.4xlarge.search", + "r6g.2xlarge.search", + "r5.2xlarge.search", + "m5.12xlarge.search", + "m6g.8xlarge.search", + "m6g.large.search", + "m5.24xlarge.search", + "r6g.4xlarge.search", + "t3.large.search", + "r5.4xlarge.search", + "ultrawarm1.large.search", + "r6gd.8xlarge.search", + "r6gd.large.search", + "r6g.xlarge.search", + "r5.xlarge.search", + "r6g.12xlarge.search", + "r5.12xlarge.search", + "m5.2xlarge.search", + "r6gd.xlarge.search", + "r6g.8xlarge.search", + "r6g.large.search", + "r5.24xlarge.search", + "r5.large.search" + ], + "Description": "The type of instance to launch into the OpenSearch domain." + }, + "OpenSearchEBSVolumeGB": { + "Type": "Number", + "Default": 10, + "Description": "The size in GB of the EBS volumes that contain our data." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AuthenticationType": "API_KEY", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Expires": 1720050875 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE", + "Description": "None Data Source for Pipeline functions" + } + }, + "Profile": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Profile.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Token": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Token.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ContributorReputation": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ContributorReputation.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyContributor": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyContributor.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Colony": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Colony.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyMemberInvite": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyMemberInvite.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyMetadata": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyMetadata.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Transaction": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Transaction.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "User": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/User.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "LiquidationAddress": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/LiquidationAddress.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyStake": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyStake.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Domain": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Domain.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "DomainMetadata": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/DomainMetadata.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyFundsClaim": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyFundsClaim.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "MotionMessage": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/MotionMessage.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyMotion": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyMotion.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ContractEvent": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ContractEvent.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyExtension": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyExtension.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CurrentVersion": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/CurrentVersion.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CurrentNetworkInverseFee": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/CurrentNetworkInverseFee.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyAction": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyAction.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyActionMetadata": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyActionMetadata.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyDecision": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyDecision.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyRole": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyRole.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyHistoricRole": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyHistoricRole.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "IngestorStats": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/IngestorStats.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Expenditure": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Expenditure.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ExpenditureMetadata": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ExpenditureMetadata.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "StreamingPayment": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/StreamingPayment.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "StreamingPaymentMetadata": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/StreamingPaymentMetadata.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Annotation": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Annotation.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ReputationMiningCycleMetadata": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ReputationMiningCycleMetadata.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "PrivateBetaInviteCode": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/PrivateBetaInviteCode.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "SafeTransaction": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/SafeTransaction.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "SafeTransactionData": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/SafeTransactionData.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ExtensionInstallationsCount": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ExtensionInstallationsCount.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "UserStake": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/UserStake.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ColonyTokens": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ColonyTokens.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "UserTokens": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/UserTokens.json" + ] + ] + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "FunctionDirectiveStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/FunctionDirectiveStack.json" + ] + ] + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackContributorReputationNestedStackContributorReputationNestedStackResourceCBB7B651OutputstransformerrootstackContributorReputationContributorReputationDataSourceAA3DD1D4Name": { + "Fn::GetAtt": [ + "ContributorReputation", + "Outputs.transformerrootstackContributorReputationContributorReputationDataSourceAA3DD1D4Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackContributorReputationNestedStackContributorReputationNestedStackResourceCBB7B651OutputstransformerrootstackContributorReputationContributorReputationTableE5CC3AD5Ref": { + "Fn::GetAtt": [ + "ContributorReputation", + "Outputs.transformerrootstackContributorReputationContributorReputationTableE5CC3AD5Ref" + ] + }, + "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleDataSource9FA652A3Name": { + "Fn::GetAtt": [ + "ColonyRole", + "Outputs.transformerrootstackColonyRoleColonyRoleDataSource9FA652A3Name" + ] + }, + "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleTableA43FBAB3Ref": { + "Fn::GetAtt": [ + "ColonyRole", + "Outputs.transformerrootstackColonyRoleColonyRoleTableA43FBAB3Ref" + ] + }, + "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name": { + "Fn::GetAtt": [ + "Domain", + "Outputs.transformerrootstackDomainDomainDataSourceBDC66ED3Name" + ] + }, + "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef": { + "Fn::GetAtt": [ + "Domain", + "Outputs.transformerrootstackDomainDomainTable87F7344FRef" + ] + }, + "referencetotransformerrootstackColonyFundsClaimNestedStackColonyFundsClaimNestedStackResource6E405880OutputstransformerrootstackColonyFundsClaimColonyFundsClaimDataSource1404003BName": { + "Fn::GetAtt": [ + "ColonyFundsClaim", + "Outputs.transformerrootstackColonyFundsClaimColonyFundsClaimDataSource1404003BName" + ] + }, + "referencetotransformerrootstackColonyFundsClaimNestedStackColonyFundsClaimNestedStackResource6E405880OutputstransformerrootstackColonyFundsClaimColonyFundsClaimTableC9B23147Ref": { + "Fn::GetAtt": [ + "ColonyFundsClaim", + "Outputs.transformerrootstackColonyFundsClaimColonyFundsClaimTableC9B23147Ref" + ] + }, + "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName": { + "Fn::GetAtt": [ + "ColonyExtension", + "Outputs.transformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName" + ] + }, + "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref": { + "Fn::GetAtt": [ + "ColonyExtension", + "Outputs.transformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref" + ] + }, + "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionDataSourceA53A92B5Name": { + "Fn::GetAtt": [ + "ColonyAction", + "Outputs.transformerrootstackColonyActionColonyActionDataSourceA53A92B5Name" + ] + }, + "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFRef": { + "Fn::GetAtt": [ + "ColonyAction", + "Outputs.transformerrootstackColonyActionColonyActionTable5DE533FFRef" + ] + }, + "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureDataSource89CAFD0FName": { + "Fn::GetAtt": [ + "Expenditure", + "Outputs.transformerrootstackExpenditureExpenditureDataSource89CAFD0FName" + ] + }, + "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureTableF561020ARef": { + "Fn::GetAtt": [ + "Expenditure", + "Outputs.transformerrootstackExpenditureExpenditureTableF561020ARef" + ] + }, + "referencetotransformerrootstackColonyStakeNestedStackColonyStakeNestedStackResource5E346A5EOutputstransformerrootstackColonyStakeColonyStakeDataSourceDAB43E50Name": { + "Fn::GetAtt": [ + "ColonyStake", + "Outputs.transformerrootstackColonyStakeColonyStakeDataSourceDAB43E50Name" + ] + }, + "referencetotransformerrootstackColonyStakeNestedStackColonyStakeNestedStackResource5E346A5EOutputstransformerrootstackColonyStakeColonyStakeTable9F6D58EFRef": { + "Fn::GetAtt": [ + "ColonyStake", + "Outputs.transformerrootstackColonyStakeColonyStakeTable9F6D58EFRef" + ] + }, + "referencetotransformerrootstackTransactionNestedStackTransactionNestedStackResourceD58DD790OutputstransformerrootstackTransactionTransactionDataSource76E1AA69Name": { + "Fn::GetAtt": [ + "Transaction", + "Outputs.transformerrootstackTransactionTransactionDataSource76E1AA69Name" + ] + }, + "referencetotransformerrootstackTransactionNestedStackTransactionNestedStackResourceD58DD790OutputstransformerrootstackTransactionTransactionTable030B7013Ref": { + "Fn::GetAtt": [ + "Transaction", + "Outputs.transformerrootstackTransactionTransactionTable030B7013Ref" + ] + }, + "referencetotransformerrootstackLiquidationAddressNestedStackLiquidationAddressNestedStackResourceDAE05DE1OutputstransformerrootstackLiquidationAddressLiquidationAddressDataSourceE4378A90Name": { + "Fn::GetAtt": [ + "LiquidationAddress", + "Outputs.transformerrootstackLiquidationAddressLiquidationAddressDataSourceE4378A90Name" + ] + }, + "referencetotransformerrootstackLiquidationAddressNestedStackLiquidationAddressNestedStackResourceDAE05DE1OutputstransformerrootstackLiquidationAddressLiquidationAddressTable20FAE6F3Ref": { + "Fn::GetAtt": [ + "LiquidationAddress", + "Outputs.transformerrootstackLiquidationAddressLiquidationAddressTable20FAE6F3Ref" + ] + }, + "referencetotransformerrootstackMotionMessageNestedStackMotionMessageNestedStackResource3EF9CC25OutputstransformerrootstackMotionMessageMotionMessageDataSourceE6EFD321Name": { + "Fn::GetAtt": [ + "MotionMessage", + "Outputs.transformerrootstackMotionMessageMotionMessageDataSourceE6EFD321Name" + ] + }, + "referencetotransformerrootstackMotionMessageNestedStackMotionMessageNestedStackResource3EF9CC25OutputstransformerrootstackMotionMessageMotionMessageTable17FAA0C7Ref": { + "Fn::GetAtt": [ + "MotionMessage", + "Outputs.transformerrootstackMotionMessageMotionMessageTable17FAA0C7Ref" + ] + }, + "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionDataSource7DB87731Name": { + "Fn::GetAtt": [ + "ColonyMotion", + "Outputs.transformerrootstackColonyMotionColonyMotionDataSource7DB87731Name" + ] + }, + "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionTable3E032324Ref": { + "Fn::GetAtt": [ + "ColonyMotion", + "Outputs.transformerrootstackColonyMotionColonyMotionTable3E032324Ref" + ] + }, + "referencetotransformerrootstackSafeTransactionDataNestedStackSafeTransactionDataNestedStackResource0A9667DFOutputstransformerrootstackSafeTransactionDataSafeTransactionDataDataSource30D0D4D8Name": { + "Fn::GetAtt": [ + "SafeTransactionData", + "Outputs.transformerrootstackSafeTransactionDataSafeTransactionDataDataSource30D0D4D8Name" + ] + }, + "referencetotransformerrootstackSafeTransactionDataNestedStackSafeTransactionDataNestedStackResource0A9667DFOutputstransformerrootstackSafeTransactionDataSafeTransactionDataTable3DA096B6Ref": { + "Fn::GetAtt": [ + "SafeTransactionData", + "Outputs.transformerrootstackSafeTransactionDataSafeTransactionDataTable3DA096B6Ref" + ] + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserUserDataSourceA8C4C398Name" + ] + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserUserTableA7A02430Ref" + ] + }, + "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName": { + "Fn::GetAtt": [ + "Colony", + "Outputs.transformerrootstackColonyColonyDataSource93AB5D4EName" + ] + }, + "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref": { + "Fn::GetAtt": [ + "Colony", + "Outputs.transformerrootstackColonyColonyTableE180C572Ref" + ] + }, + "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName": { + "Fn::GetAtt": [ + "Token", + "Outputs.transformerrootstackTokenTokenDataSource5FB42D9DName" + ] + }, + "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref": { + "Fn::GetAtt": [ + "Token", + "Outputs.transformerrootstackTokenTokenTableB8C40491Ref" + ] + }, + "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataDataSourceD41A3B32Name": { + "Fn::GetAtt": [ + "ColonyMetadata", + "Outputs.transformerrootstackColonyMetadataColonyMetadataDataSourceD41A3B32Name" + ] + }, + "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataTable0FBDB471Ref": { + "Fn::GetAtt": [ + "ColonyMetadata", + "Outputs.transformerrootstackColonyMetadataColonyMetadataTable0FBDB471Ref" + ] + }, + "referencetotransformerrootstackColonyMemberInviteNestedStackColonyMemberInviteNestedStackResourceD996AF9DOutputstransformerrootstackColonyMemberInviteColonyMemberInviteDataSource125FBA70Name": { + "Fn::GetAtt": [ + "ColonyMemberInvite", + "Outputs.transformerrootstackColonyMemberInviteColonyMemberInviteDataSource125FBA70Name" + ] + }, + "referencetotransformerrootstackColonyMemberInviteNestedStackColonyMemberInviteNestedStackResourceD996AF9DOutputstransformerrootstackColonyMemberInviteColonyMemberInviteTableC4A28B1DRef": { + "Fn::GetAtt": [ + "ColonyMemberInvite", + "Outputs.transformerrootstackColonyMemberInviteColonyMemberInviteTableC4A28B1DRef" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileProfileDataSource28492795Name": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileProfileDataSource28492795Name" + ] + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileProfileTableDAD5B613Ref": { + "Fn::GetAtt": [ + "Profile", + "Outputs.transformerrootstackProfileProfileTableDAD5B613Ref" + ] + }, + "referencetotransformerrootstackPrivateBetaInviteCodeNestedStackPrivateBetaInviteCodeNestedStackResourceA3C84401OutputstransformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeDataSource95FDB60EName": { + "Fn::GetAtt": [ + "PrivateBetaInviteCode", + "Outputs.transformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeDataSource95FDB60EName" + ] + }, + "referencetotransformerrootstackPrivateBetaInviteCodeNestedStackPrivateBetaInviteCodeNestedStackResourceA3C84401OutputstransformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeTable46E0F412Ref": { + "Fn::GetAtt": [ + "PrivateBetaInviteCode", + "Outputs.transformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeTable46E0F412Ref" + ] + }, + "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataDataSource5D65ABB5Name": { + "Fn::GetAtt": [ + "DomainMetadata", + "Outputs.transformerrootstackDomainMetadataDomainMetadataDataSource5D65ABB5Name" + ] + }, + "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataTableAC0A7779Ref": { + "Fn::GetAtt": [ + "DomainMetadata", + "Outputs.transformerrootstackDomainMetadataDomainMetadataTableAC0A7779Ref" + ] + }, + "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationDataSource972E2E1DName": { + "Fn::GetAtt": [ + "Annotation", + "Outputs.transformerrootstackAnnotationAnnotationDataSource972E2E1DName" + ] + }, + "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationTableD90F9B94Ref": { + "Fn::GetAtt": [ + "Annotation", + "Outputs.transformerrootstackAnnotationAnnotationTableD90F9B94Ref" + ] + }, + "referencetotransformerrootstackColonyDecisionNestedStackColonyDecisionNestedStackResource65776042OutputstransformerrootstackColonyDecisionColonyDecisionDataSourceF6EA9E9FName": { + "Fn::GetAtt": [ + "ColonyDecision", + "Outputs.transformerrootstackColonyDecisionColonyDecisionDataSourceF6EA9E9FName" + ] + }, + "referencetotransformerrootstackColonyDecisionNestedStackColonyDecisionNestedStackResource65776042OutputstransformerrootstackColonyDecisionColonyDecisionTable6247A753Ref": { + "Fn::GetAtt": [ + "ColonyDecision", + "Outputs.transformerrootstackColonyDecisionColonyDecisionTable6247A753Ref" + ] + }, + "referencetotransformerrootstackSafeTransactionNestedStackSafeTransactionNestedStackResource598882D2OutputstransformerrootstackSafeTransactionSafeTransactionDataSource8FEC7E78Name": { + "Fn::GetAtt": [ + "SafeTransaction", + "Outputs.transformerrootstackSafeTransactionSafeTransactionDataSource8FEC7E78Name" + ] + }, + "referencetotransformerrootstackSafeTransactionNestedStackSafeTransactionNestedStackResource598882D2OutputstransformerrootstackSafeTransactionSafeTransactionTable6845198ARef": { + "Fn::GetAtt": [ + "SafeTransaction", + "Outputs.transformerrootstackSafeTransactionSafeTransactionTable6845198ARef" + ] + }, + "referencetotransformerrootstackColonyActionMetadataNestedStackColonyActionMetadataNestedStackResourceF2953452OutputstransformerrootstackColonyActionMetadataColonyActionMetadataDataSource99C96895Name": { + "Fn::GetAtt": [ + "ColonyActionMetadata", + "Outputs.transformerrootstackColonyActionMetadataColonyActionMetadataDataSource99C96895Name" + ] + }, + "referencetotransformerrootstackColonyActionMetadataNestedStackColonyActionMetadataNestedStackResourceF2953452OutputstransformerrootstackColonyActionMetadataColonyActionMetadataTable9ADC8A74Ref": { + "Fn::GetAtt": [ + "ColonyActionMetadata", + "Outputs.transformerrootstackColonyActionMetadataColonyActionMetadataTable9ADC8A74Ref" + ] + }, + "referencetotransformerrootstackExpenditureMetadataNestedStackExpenditureMetadataNestedStackResource00FC2351OutputstransformerrootstackExpenditureMetadataExpenditureMetadataDataSourceA5D5932DName": { + "Fn::GetAtt": [ + "ExpenditureMetadata", + "Outputs.transformerrootstackExpenditureMetadataExpenditureMetadataDataSourceA5D5932DName" + ] + }, + "referencetotransformerrootstackExpenditureMetadataNestedStackExpenditureMetadataNestedStackResource00FC2351OutputstransformerrootstackExpenditureMetadataExpenditureMetadataTable5E9A8B28Ref": { + "Fn::GetAtt": [ + "ExpenditureMetadata", + "Outputs.transformerrootstackExpenditureMetadataExpenditureMetadataTable5E9A8B28Ref" + ] + }, + "referencetotransformerrootstackUserStakeNestedStackUserStakeNestedStackResourceCAE6BBD0OutputstransformerrootstackUserStakeUserStakeDataSource4515F88DName": { + "Fn::GetAtt": [ + "UserStake", + "Outputs.transformerrootstackUserStakeUserStakeDataSource4515F88DName" + ] + }, + "referencetotransformerrootstackUserStakeNestedStackUserStakeNestedStackResourceCAE6BBD0OutputstransformerrootstackUserStakeUserStakeTableA6FC6F95Ref": { + "Fn::GetAtt": [ + "UserStake", + "Outputs.transformerrootstackUserStakeUserStakeTableA6FC6F95Ref" + ] + }, + "referencetotransformerrootstackStreamingPaymentMetadataNestedStackStreamingPaymentMetadataNestedStackResource8EBD54DAOutputstransformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataDataSource32DF5C97Name": { + "Fn::GetAtt": [ + "StreamingPaymentMetadata", + "Outputs.transformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataDataSource32DF5C97Name" + ] + }, + "referencetotransformerrootstackStreamingPaymentMetadataNestedStackStreamingPaymentMetadataNestedStackResource8EBD54DAOutputstransformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataTableB16A19ACRef": { + "Fn::GetAtt": [ + "StreamingPaymentMetadata", + "Outputs.transformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataTableB16A19ACRef" + ] + }, + "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensDataSource857D042DName": { + "Fn::GetAtt": [ + "ColonyTokens", + "Outputs.transformerrootstackColonyTokensColonyTokensDataSource857D042DName" + ] + }, + "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensTable7E6D9918Ref": { + "Fn::GetAtt": [ + "ColonyTokens", + "Outputs.transformerrootstackColonyTokensColonyTokensTable7E6D9918Ref" + ] + }, + "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensDataSource039C2EB3Name": { + "Fn::GetAtt": [ + "UserTokens", + "Outputs.transformerrootstackUserTokensUserTokensDataSource039C2EB3Name" + ] + }, + "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensTableC40CB7A3Ref": { + "Fn::GetAtt": [ + "UserTokens", + "Outputs.transformerrootstackUserTokensUserTokensTableC40CB7A3Ref" + ] + } + } + }, + "DependsOn": [ + "Annotation", + "Colony", + "ColonyAction", + "ColonyActionMetadata", + "ColonyDecision", + "ColonyExtension", + "ColonyFundsClaim", + "ColonyMemberInvite", + "ColonyMetadata", + "ColonyMotion", + "ColonyRole", + "ColonyStake", + "ColonyTokens", + "ContributorReputation", + "Domain", + "DomainMetadata", + "Expenditure", + "ExpenditureMetadata", + "GraphQLAPITransformerSchema3CB2AE18", + "LiquidationAddress", + "MotionMessage", + "PrivateBetaInviteCode", + "Profile", + "SafeTransaction", + "SafeTransactionData", + "StreamingPaymentMetadata", + "Token", + "Transaction", + "User", + "UserStake", + "UserTokens" + ] + }, + "SearchableStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/SearchableStack.json" + ] + ] + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackOpenSearchEBSVolumeGBC5EEE310Ref": { + "Ref": "OpenSearchEBSVolumeGB" + }, + "referencetotransformerrootstackOpenSearchInstanceCount6D2C6DD4Ref": { + "Ref": "OpenSearchInstanceCount" + }, + "referencetotransformerrootstackOpenSearchInstanceTypeA365CDC7Ref": { + "Ref": "OpenSearchInstanceType" + }, + "referencetotransformerrootstackOpenSearchStreamingIAMRoleName68D92152Ref": { + "Ref": "OpenSearchStreamingIAMRoleName" + }, + "referencetotransformerrootstackColonyContributorNestedStackColonyContributorNestedStackResource4EBBADB0OutputstransformerrootstackColonyContributorColonyContributorTableDE7DB971StreamArn": { + "Fn::GetAtt": [ + "ColonyContributor", + "Outputs.transformerrootstackColonyContributorColonyContributorTableDE7DB971StreamArn" + ] + }, + "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFStreamArn": { + "Fn::GetAtt": [ + "ColonyAction", + "Outputs.transformerrootstackColonyActionColonyActionTable5DE533FFStreamArn" + ] + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackOpenSearchDebugStreamingLambdaF4C579C7Ref": { + "Ref": "OpenSearchDebugStreamingLambda" + }, + "referencetotransformerrootstackOpenSearchStreamingLambdaHandlerName4CC1792ERef": { + "Ref": "OpenSearchStreamingLambdaHandlerName" + }, + "referencetotransformerrootstackOpenSearchStreamBatchSizeADC05434Ref": { + "Ref": "OpenSearchStreamBatchSize" + }, + "referencetotransformerrootstackOpenSearchStreamMaximumBatchingWindowInSeconds78A36D49Ref": { + "Ref": "OpenSearchStreamMaximumBatchingWindowInSeconds" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + } + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "Profile", + "Token", + "ContributorReputation", + "ColonyContributor", + "Colony", + "ColonyMemberInvite", + "ColonyMetadata", + "Transaction", + "User", + "LiquidationAddress", + "ColonyStake", + "Domain", + "DomainMetadata", + "ColonyFundsClaim", + "MotionMessage", + "ColonyMotion", + "ContractEvent", + "ColonyExtension", + "CurrentVersion", + "CurrentNetworkInverseFee", + "ColonyAction", + "ColonyActionMetadata", + "ColonyDecision", + "ColonyRole", + "ColonyHistoricRole", + "IngestorStats", + "Expenditure", + "ExpenditureMetadata", + "StreamingPayment", + "StreamingPaymentMetadata", + "Annotation", + "ReputationMiningCycleMetadata", + "PrivateBetaInviteCode", + "SafeTransaction", + "SafeTransactionData", + "ExtensionInstallationsCount", + "UserStake", + "ColonyTokens", + "UserTokens", + "FunctionDirectiveStack", + "ConnectionStack", + "SearchableStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/functions/OpenSearchStreamingLambdaFunction.zip b/amplify/backend/api/colonycdapp/build/functions/OpenSearchStreamingLambdaFunction.zip new file mode 100644 index 0000000000000000000000000000000000000000..fd47e0d1ba4ab5c227e62185f21f840eb25c19dc GIT binary patch literal 3878 zcmaKvWmppo_r^z;4@f(j2}tT_hNSccvLPj-BnC`!4CyXWi2>4`Qc{9Q$^;2%lo$+^ zMp_yK{yx|L!~1@E@B72K&vnjq-JgGO7#TSWfcmd5qk_x<|0S-!+0!5E?BQhPtv}f;^ndRpLHET z?Q7dnWf_mMuQKC0bIo6k>8(Df=ZH}b_cjN4b7SU7Cy zc+{Qr*vH!OgaNl>c*~?~ef@q9s$O4WZ`4DYJOkr+=|dv%BclnQnGaPRlLT5E2T-yU zeb|KI;YR9+p~+Wqb3R$l7Y@q?8$k=3II;+=v0o9DMo2AzYZ{AZJ2+Xi=y|AK>`Qq* z$pB^5`aZtDnSyah9eT7jE-!!y=}7gPT@pq3h0_zOrua<69wx8I!y&6F5-b$z#P!hx2u++1o%t zDTd@s&#~$9S#i>Hb^mN}#3Xav+*7Q~+A%?Tg7!{!MH=^o`r9v#Utr&^xI|-Bg7jeY zc*8MR$Kxs-!Bl+*7`*;jNVR;{wxXAz>Y1u!gEiH@w)vO7`>u98oQ7={0c$-;O!X!Z!)G!$dR!JIB}Vl_vSE=E*6Qdo#Wrl-`}p z&dmT(+*i)bX$1F^Nv%ej?3r1-^kv3b=}3oHXFeD27m*=P&8W?n1WGXV=oJ6vaq-F> zoWFw#$vYQm(e3S(OgT|+4?7IjrZGRBWjYkF=-iSPXm#XBP@w4<&*&!63Cdi13YjOa zd|S=8gNxJ)qBC1PK(^ErJhZ?#IwXEQ2}(B?Hb0X>3sKMpT-xM^4eHW#=Lth*QwXap zs?l~_77=r1M)8BaSu{HNXUJD;8jY4$qS5j~XY?ObEFeq>F8*0H={A;%Q}*qcL^1Lx zSD(JJ2&u@73acLvFml9YaYhct{%qTt^pQtcex7|OBw#@Be&2e2221v0fcmZTs4lKI z+Ay_%1G+HjU!)odPg6z4JyLG73-WvYPSPWBAh$Cd)f9wJx38@+&V8TLAf-oIsTOYb zzBCo*m%1sed`$Q$N(T~X9dVw>D6p|F&0TVPXC9L6E8OJkxZNk7p>AKOSAmIi5Th|6 z-vTxZ2ZE}gJTyo63Tn5t+|uJ~yVJ=FV2l$zy$5OQ9Xnt=Fd;bR1{n&8XOd1_8A`x&TazKtiFmpq_Vs_j}3xF8@?^@%XmvFAjd~i zSYRJ$?42j&9?#Jj7}vjqEqjO9E%1D_1#PNF){H46;M27@+8=Az3nN4Ai14PEPqd5q zvkP^&H$PON??+TFt}Y_R9KTC@z>8&^rCBD2@jtsLaW5Rn^EwYG4eqXDbwhbOcEnwl zKd4_M?lU>@gi;!zxe#OjuvfptW2**l+J#;%{-Trx`p$`?EtYl>$#6)akPJ^{&)2r# zS^(Pq(=gg<&RluE=4oa8lmx=qZJHn&SlsDjUk2DSqb>Njhg<=*(ZC;A9sL8;ioD;S z{I+WGLFv*6`7pS-o~6=WlNqe^ea_p27L6qVD~0ak-NcHYTN`S-sugwNe^BGpgf$Qk zRMbj29*+$kU~6=qTtKxoNa7x z_&D74nS0WyFXgB1t4XKP(9?aJd&iU)8nPi~mu(txD6>ie#y8YsFUScz15{G}9w<2< zs>n5lpn&g55qqA5=laPeiJhv^Aezp;uBKS3XnO5A9Xe|lb*Fr+1Yh&}-pjLL^9WmG zkAyWXnr)yv!i~r%0gVskXZZOzy&H8Dj0f;iEdSW8x?J?X#wCZ8-6nyXyV+UMm-rl2G7>rT z>zyk#Cn0ly>tjR@&V{nhRH~X6X1>L73^m|^EA!i4oxQY5X}Uq%zKIE#fTZ!{zphklnK{J(B{f5-3D>*{ zYP<(1(>6;Y0o}&x%4Y^?2TJP6&+2=oKQ#Qn9p^`!s?##B=LzYC6@3xHv6|l4+j${P z!3!hr=|PR~U#C@~sFvtd3M-W}YnOTuxeHZfXc!x8N zo3oVz=NJ)s%>nI0ao9a0b>-coZ*gr4dk)Crzj?tDm**bQPtQw(n#-ll)XPa~ux+X4 zp=%KE&3MS>Ajuv&pT0nez^O208t9K49w4sSIzk&wZOyztp}W*Ps#jZ zjgcdu=~r|E&AaL>r>$2Z5oT{IN=OtP|4i6Md*-Df3H$@ra!RbPulI=K`+gW1U|zgU zZVtB`S96)rTi|bKvhKNqx?<3U%j)K-;cK+Lko4EmnYpdWfF{@8x_`99SsE!jrc`VD z&AN+Tk^M2B=R%N8`*IRVMd=prc)igJY)%k=rdMgpY>w3q=ZrGTFz58~EU@8d8!-|k zeW8pHWRPP4X9f&ZY=9#h?@W~-xw<9^;)r~(yA-1qzVZ|8foGy<2l7cI7ne0AApIVK z?+smB*4)T#MlrSVD0r|d|V~W zU>(nTGpUBDi$VnCWAH#Gj8j0w3Jk@~AbqK^VRg-ax)*xzxIxPIY^s)8cXJ;$5jbt{m=<5lKHsr4-}mutDQ@X4*p@4yhvm)_I`uvBs(~D`lxR=N~bQ z_sXN-?ys8d97<_6H?zsSd6(9|;I0917!`Fd1K(s2JpfQ34*0v1kV=sKhhzWy_Akf& fzxV(p;s2)pMYV7k1?9g#B!3P4J3s$z0090En5;xN literal 0 HcmV?d00001 diff --git a/amplify/backend/api/colonycdapp/build/parameters.json b/amplify/backend/api/colonycdapp/build/parameters.json new file mode 100644 index 00000000000..6895a89ba3b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/parameters.json @@ -0,0 +1,9 @@ +{ + "AppSyncApiName": "colonycdapp", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "DynamoDBEnablePointInTimeRecovery": "true", + "APIKeyExpirationEpoch": -1, + "S3DeploymentBucket": "amplify-colonycdapp-prodrevive-ef77d-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/b2b8224ade76a289da934ae93e2159cd82e87760" +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.req.vtl new file mode 100644 index 00000000000..e1663473e11 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "colonyActionsId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "gsi-Colony.actions" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.actions.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.balances.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.balances.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.balances.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.chainFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.chainFundsClaim.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.chainFundsClaim.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.req.vtl new file mode 100644 index 00000000000..24f4fea6056 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyMemberInviteCode"), $ctx.source.colonyMemberInviteCode) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.colonyMemberInvite.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.req.vtl new file mode 100644 index 00000000000..faacaffda12 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "colonyId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.nativeId) && !$util.isNull($ctx.args.nativeId.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "nativeId")) + $util.qr($query.expressionValues.put(":sortKey", { "N": "$ctx.args.nativeId.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.nativeId) && !$util.isNull($ctx.args.nativeId.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "nativeId")) + $util.qr($query.expressionValues.put(":sortKey0", { "N": "$ctx.args.nativeId.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "N": "$ctx.args.nativeId.between[1]" })) + #end + #if( !$util.isNull($ctx.args.nativeId) && !$util.isNull($ctx.args.nativeId.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "nativeId")) + $util.qr($query.expressionValues.put(":sortKey", { "N": "$ctx.args.nativeId.eq" })) + #end + #if( !$util.isNull($ctx.args.nativeId) && !$util.isNull($ctx.args.nativeId.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "nativeId")) + $util.qr($query.expressionValues.put(":sortKey", { "N": "$ctx.args.nativeId.lt" })) + #end + #if( !$util.isNull($ctx.args.nativeId) && !$util.isNull($ctx.args.nativeId.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "nativeId")) + $util.qr($query.expressionValues.put(":sortKey", { "N": "$ctx.args.nativeId.le" })) + #end + #if( !$util.isNull($ctx.args.nativeId) && !$util.isNull($ctx.args.nativeId.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "nativeId")) + $util.qr($query.expressionValues.put(":sortKey", { "N": "$ctx.args.nativeId.gt" })) + #end + #if( !$util.isNull($ctx.args.nativeId) && !$util.isNull($ctx.args.nativeId.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "nativeId")) + $util.qr($query.expressionValues.put(":sortKey", { "N": "$ctx.args.nativeId.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byColony" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.domains.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.req.vtl new file mode 100644 index 00000000000..a67cf9ba88d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "colonyId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byColony" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.expenditures.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.req.vtl new file mode 100644 index 00000000000..2d4c3e98386 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "colonyId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "hash")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "hash")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.hash.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.hash.between[1]" })) + #end + #if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "hash")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.eq" })) + #end + #if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "hash")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.lt" })) + #end + #if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "hash")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.le" })) + #end + #if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "hash")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.gt" })) + #end + #if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "hash")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byColony" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.extensions.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.req.vtl new file mode 100644 index 00000000000..c4a4b2aaa64 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "colonyFundsClaimsId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "gsi-Colony.fundsClaims" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.fundsClaims.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.req.vtl new file mode 100644 index 00000000000..6bf525da652 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.metadata.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.req.vtl new file mode 100644 index 00000000000..c30a0cd19c3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("nativeTokenId"), $ctx.source.nativeTokenId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.nativeToken.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.req.vtl new file mode 100644 index 00000000000..91271eba0ca --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "colonyRolesId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "gsi-Colony.roles" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.roles.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.req.vtl new file mode 100644 index 00000000000..0683cdfd0be --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "colonyID" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byColony" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Colony.tokens.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.req.vtl new file mode 100644 index 00000000000..4ced5eaa647 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("annotationId"), $ctx.source.annotationId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.annotation.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.req.vtl new file mode 100644 index 00000000000..3199c47e255 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyId"), $ctx.source.colonyId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.req.vtl new file mode 100644 index 00000000000..d0d1d00760e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyDecisionId"), $ctx.source.colonyDecisionId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.decisionData.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.req.vtl new file mode 100644 index 00000000000..f38c3211af6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("expenditureId"), $ctx.source.expenditureId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.expenditure.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.req.vtl new file mode 100644 index 00000000000..b4e04b6d59f --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("fromDomainId"), $ctx.source.fromDomainId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.fromDomain.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.req.vtl new file mode 100644 index 00000000000..7340d83b1a5 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("initiatorAddress"), $ctx.source.initiatorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorColony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.req.vtl new file mode 100644 index 00000000000..7340d83b1a5 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("initiatorAddress"), $ctx.source.initiatorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorExtension.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.req.vtl new file mode 100644 index 00000000000..7340d83b1a5 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("initiatorAddress"), $ctx.source.initiatorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorToken.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.req.vtl new file mode 100644 index 00000000000..7340d83b1a5 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("initiatorAddress"), $ctx.source.initiatorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.initiatorUser.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.req.vtl new file mode 100644 index 00000000000..6bf525da652 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.metadata.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.req.vtl new file mode 100644 index 00000000000..b63fae82016 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("motionId"), $ctx.source.motionId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.motionData.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.req.vtl new file mode 100644 index 00000000000..55e23d56ddf --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("pendingColonyMetadataId"), $ctx.source.pendingColonyMetadataId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingColonyMetadata.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.req.vtl new file mode 100644 index 00000000000..ef3fc9501cd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("pendingDomainMetadataId"), $ctx.source.pendingDomainMetadataId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.pendingDomainMetadata.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.req.vtl new file mode 100644 index 00000000000..02a6942be68 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("recipientAddress"), $ctx.source.recipientAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientColony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.req.vtl new file mode 100644 index 00000000000..02a6942be68 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("recipientAddress"), $ctx.source.recipientAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientExtension.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.req.vtl new file mode 100644 index 00000000000..02a6942be68 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("recipientAddress"), $ctx.source.recipientAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientToken.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.req.vtl new file mode 100644 index 00000000000..02a6942be68 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("recipientAddress"), $ctx.source.recipientAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.recipientUser.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.req.vtl new file mode 100644 index 00000000000..6bf525da652 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.safeTransaction.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.req.vtl new file mode 100644 index 00000000000..3f3c15b22b9 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("toDomainId"), $ctx.source.toDomainId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.toDomain.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.req.vtl new file mode 100644 index 00000000000..a44a3932e78 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("tokenAddress"), $ctx.source.tokenAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyAction.token.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.req.vtl new file mode 100644 index 00000000000..f42c45a986c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyAddress"), $ctx.source.colonyAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.req.vtl new file mode 100644 index 00000000000..b7b5b0e5c5b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("contributorAddress"), $ctx.source.contributorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "contributorAddress" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyAddress.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyAddress.between[1]" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.eq" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.lt" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.le" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.gt" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byContributorAddress" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.reputation.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.req.vtl new file mode 100644 index 00000000000..bba127976e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("contributorAddress"), $ctx.source.contributorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "targetAddress" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyAddress.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyAddress.between[1]" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.eq" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.lt" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.le" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.gt" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byTargetAddress" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.roles.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.req.vtl new file mode 100644 index 00000000000..c81e91d2d96 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("contributorAddress"), $ctx.source.contributorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyContributor.user.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.req.vtl new file mode 100644 index 00000000000..c057d7767ec --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("actionId"), $ctx.source.actionId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyDecision.action.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.req.vtl new file mode 100644 index 00000000000..3199c47e255 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyId"), $ctx.source.colonyId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyExtension.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.req.vtl new file mode 100644 index 00000000000..60075632fba --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyFundsClaimTokenId"), $ctx.source.colonyFundsClaimTokenId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyFundsClaim.token.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.req.vtl new file mode 100644 index 00000000000..3199c47e255 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyId"), $ctx.source.colonyId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.req.vtl new file mode 100644 index 00000000000..0fab9f3424d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("domainId"), $ctx.source.domainId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.domain.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetColony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetExtension.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetToken.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyHistoricRole.targetUser.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.req.vtl new file mode 100644 index 00000000000..3199c47e255 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyId"), $ctx.source.colonyId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMemberInvite.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.req.vtl new file mode 100644 index 00000000000..3f658043999 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("transactionHash"), $ctx.source.transactionHash) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.action.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.req.vtl new file mode 100644 index 00000000000..f3fd9a2d9d5 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "motionId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byMotionId" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.messages.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.req.vtl new file mode 100644 index 00000000000..5dcfcbb49d7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("motionDomainId"), $ctx.source.motionDomainId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.motionDomain.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.req.vtl new file mode 100644 index 00000000000..5ae8819a92f --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("objectionAnnotationId"), $ctx.source.objectionAnnotationId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyMotion.objectionAnnotation.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.req.vtl new file mode 100644 index 00000000000..0fab9f3424d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("domainId"), $ctx.source.domainId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.domain.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetColony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetExtension.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetToken.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.req.vtl new file mode 100644 index 00000000000..bfaa0b44f13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("targetAddress"), $ctx.source.targetAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyRole.targetUser.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.req.vtl new file mode 100644 index 00000000000..2471c5f5bff --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyID"), $ctx.source.colonyID) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.req.vtl new file mode 100644 index 00000000000..71d94994fcb --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("tokenID"), $ctx.source.tokenID) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ColonyTokens.token.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.req.vtl new file mode 100644 index 00000000000..59e1f6f15b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("contractEventColonyId"), $ctx.source.contractEventColonyId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.req.vtl new file mode 100644 index 00000000000..48401fceb24 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("contractEventDomainId"), $ctx.source.contractEventDomainId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.domain.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.req.vtl new file mode 100644 index 00000000000..052281e4646 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("contractEventTokenId"), $ctx.source.contractEventTokenId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.token.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.req.vtl new file mode 100644 index 00000000000..8a8112faee4 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("contractEventUserId"), $ctx.source.contractEventUserId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContractEvent.user.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.req.vtl new file mode 100644 index 00000000000..0fab9f3424d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("domainId"), $ctx.source.domainId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/ContributorReputation.domain.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.req.vtl new file mode 100644 index 00000000000..3199c47e255 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyId"), $ctx.source.colonyId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Domain.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.req.vtl new file mode 100644 index 00000000000..6bf525da652 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Domain.metadata.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.req.vtl new file mode 100644 index 00000000000..c30eb1d4194 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "expenditureId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byExpenditureId" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.actions.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.req.vtl new file mode 100644 index 00000000000..3199c47e255 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("colonyId"), $ctx.source.colonyId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.colony.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.req.vtl new file mode 100644 index 00000000000..6bf525da652 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.metadata.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.req.vtl new file mode 100644 index 00000000000..c30eb1d4194 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "expenditureId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byExpenditureId" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.motions.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.req.vtl new file mode 100644 index 00000000000..1e41404b230 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("userStakeId"), $ctx.source.userStakeId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Expenditure.userStake.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.req.vtl new file mode 100644 index 00000000000..48362d58dfc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: BridgeXYZMutationLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: BridgeXYZMutationLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZMutationLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.req.vtl new file mode 100644 index 00000000000..6837a23bbd3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: BridgeXYZQueryLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: BridgeXYZQueryLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeBridgeXYZQueryLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.req.vtl new file mode 100644 index 00000000000..3f039ec1396 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: CreateColonyEtherealMetadataLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: CreateColonyEtherealMetadataLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.req.vtl new file mode 100644 index 00000000000..73570c6b21b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: CreateUniqueUserLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: CreateUniqueUserLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeCreateUniqueUserLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.req.vtl new file mode 100644 index 00000000000..4073a708022 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: FetchColonyBalancesLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: FetchColonyBalancesLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyBalancesLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.req.vtl new file mode 100644 index 00000000000..92d20ccc04a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: FetchColonyNativeFundsClaimLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: FetchColonyNativeFundsClaimLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.req.vtl new file mode 100644 index 00000000000..4f68930c957 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: FetchMotionStateLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: FetchMotionStateLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionStateLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.req.vtl new file mode 100644 index 00000000000..0768126a492 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: FetchMotionTimeoutPeriodsLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: FetchMotionTimeoutPeriodsLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.req.vtl new file mode 100644 index 00000000000..3241adf32b9 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: FetchTokenFromChainLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: FetchTokenFromChainLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchTokenFromChainLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.req.vtl new file mode 100644 index 00000000000..f415f4d9a95 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: FetchVoterRewardsLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: FetchVoterRewardsLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeFetchVoterRewardsLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.req.vtl new file mode 100644 index 00000000000..454e0432839 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: GetSafeTransactionStatusLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: GetSafeTransactionStatusLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.req.vtl new file mode 100644 index 00000000000..5a2c070003a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: GetUserReputationLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: GetUserReputationLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserReputationLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.req.vtl new file mode 100644 index 00000000000..2bf2b80be13 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: GetUserTokenBalanceLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: GetUserTokenBalanceLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.req.vtl new file mode 100644 index 00000000000..4655de407f0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: UpdateContributorsWithReputationLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: UpdateContributorsWithReputationLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.req.vtl new file mode 100644 index 00000000000..250217eb124 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.req.vtl @@ -0,0 +1,15 @@ +## [Start] Invoke AWS Lambda data source: ValidateUserInviteLambdaDataSource. ** +{ + "version": "2018-05-29", + "operation": "Invoke", + "payload": { + "typeName": $util.toJson($ctx.stash.get("typeName")), + "fieldName": $util.toJson($ctx.stash.get("fieldName")), + "arguments": $util.toJson($ctx.arguments), + "identity": $util.toJson($ctx.identity), + "source": $util.toJson($ctx.source), + "request": $util.toJson($ctx.request), + "prev": $util.toJson($ctx.prev) + } +} +## [End] Invoke AWS Lambda data source: ValidateUserInviteLambdaDataSource. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.res.vtl new file mode 100644 index 00000000000..e6b83d8b6ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/InvokeValidateUserInviteLambdaDataSource.res.vtl @@ -0,0 +1,6 @@ +## [Start] Handle error or return result. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) +## [End] Handle error or return result. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.req.vtl new file mode 100644 index 00000000000..25d874ec911 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("userAddress"), $ctx.source.userAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/LiquidationAddress.user.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.req.vtl new file mode 100644 index 00000000000..7340d83b1a5 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("initiatorAddress"), $ctx.source.initiatorAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/MotionMessage.initiatorUser.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.bridgeXYZMutation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.bridgeXYZMutation.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.bridgeXYZMutation.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.req.vtl new file mode 100644 index 00000000000..a08bc559cb2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "Annotation")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createAnnotation.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.2.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.2.req.vtl new file mode 100644 index 00000000000..cc6bbb7cb2b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.init.2.req.vtl @@ -0,0 +1,4 @@ +## [Start] Setting "private" to default value of "true". ** +$util.qr($context.args.input.put("private", $util.defaultIfNull($ctx.args.input.private, true))) +## [End] Setting "private" to default value of "true". ** +{} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.req.vtl new file mode 100644 index 00000000000..0a30583c8f6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "Colony")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["id", "name", "nativeTokenId", "type"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColony.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.req.vtl new file mode 100644 index 00000000000..9f8168007d7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyAction")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["colonyId", "motionId", "expenditureId"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyAction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..f48e1f00b7f --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyActionMetadata")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyActionMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.req.vtl new file mode 100644 index 00000000000..c74dd2090f7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyContributor")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["contributorAddress", "colonyAddress"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyContributor.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.req.vtl new file mode 100644 index 00000000000..74792bda4a9 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyDecision")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["actionId", "colonyAddress"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyDecision.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyEtherealMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyEtherealMetadata.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyEtherealMetadata.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.req.vtl new file mode 100644 index 00000000000..5f68b33a735 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyExtension")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["colonyId", "hash"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyExtension.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.req.vtl new file mode 100644 index 00000000000..01c7151153c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyFundsClaim")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["id"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyFundsClaim.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.req.vtl new file mode 100644 index 00000000000..94bc8f1a638 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyHistoricRole")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["type"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyHistoricRole.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.req.vtl new file mode 100644 index 00000000000..6728b3df74b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyMemberInvite")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMemberInvite.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.req.vtl new file mode 100644 index 00000000000..3bff907a442 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyMetadata")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.req.vtl new file mode 100644 index 00000000000..724a14fbb25 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyMotion")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["transactionHash", "expenditureId"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyMotion.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.req.vtl new file mode 100644 index 00000000000..df1e2dd296b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyRole")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["id", "domainId", "targetAddress"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyRole.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.req.vtl new file mode 100644 index 00000000000..edd045e1300 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyStake")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["userId"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyStake.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.req.vtl new file mode 100644 index 00000000000..308afdc2273 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ColonyTokens")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["tokenID", "colonyID"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createColonyTokens.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.req.vtl new file mode 100644 index 00000000000..c016ef6f52f --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ContractEvent")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContractEvent.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.req.vtl new file mode 100644 index 00000000000..f0ee0da9814 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ContributorReputation")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["contributorAddress"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createContributorReputation.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.req.vtl new file mode 100644 index 00000000000..eb836509a11 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "CurrentNetworkInverseFee")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentNetworkInverseFee.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.req.vtl new file mode 100644 index 00000000000..61ffeeb13c9 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "CurrentVersion")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["key"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createCurrentVersion.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.req.vtl new file mode 100644 index 00000000000..95f7221fa41 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "Domain")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["colonyId"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomain.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.req.vtl new file mode 100644 index 00000000000..119776ac2f7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "DomainMetadata")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createDomainMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.req.vtl new file mode 100644 index 00000000000..6a1f0c328f4 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "Expenditure")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["colonyId", "nativeFundingPotId"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditure.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..2bb9c50234a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ExpenditureMetadata")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExpenditureMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.req.vtl new file mode 100644 index 00000000000..7fe0816b793 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ExtensionInstallationsCount")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createExtensionInstallationsCount.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.req.vtl new file mode 100644 index 00000000000..a1fbcf0a934 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "IngestorStats")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createIngestorStats.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.req.vtl new file mode 100644 index 00000000000..de5b4324c77 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "LiquidationAddress")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["userAddress", "liquidationAddress"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createLiquidationAddress.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.req.vtl new file mode 100644 index 00000000000..1e1b0dec831 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "MotionMessage")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["motionId"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createMotionMessage.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.2.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.2.req.vtl new file mode 100644 index 00000000000..a78a0876f6c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.init.2.req.vtl @@ -0,0 +1,4 @@ +## [Start] Setting "shareableInvites" to default value of "2". ** +$util.qr($context.args.input.put("shareableInvites", $util.defaultIfNull($ctx.args.input.shareableInvites, 2))) +## [End] Setting "shareableInvites" to default value of "2". ** +{} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..004ca991356 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "PrivateBetaInviteCode")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createPrivateBetaInviteCode.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.req.vtl new file mode 100644 index 00000000000..8b7334e4209 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "Profile")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["displayName", "email"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createProfile.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..71421db327f --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "ReputationMiningCycleMetadata")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.req.vtl new file mode 100644 index 00000000000..4d265ec7000 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "SafeTransaction")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransaction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.req.vtl new file mode 100644 index 00000000000..a1996f7d73e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "SafeTransactionData")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["transactionHash"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createSafeTransactionData.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.req.vtl new file mode 100644 index 00000000000..4ba2bc3039c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "StreamingPayment")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPayment.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..10274fc73a0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.req.vtl @@ -0,0 +1,66 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "StreamingPaymentMetadata")) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createStreamingPaymentMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.req.vtl new file mode 100644 index 00000000000..ac19cc6b651 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "Token")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["id", "type"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createToken.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.req.vtl new file mode 100644 index 00000000000..a36c7d7688c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "Transaction")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["from", "groupId"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createTransaction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUniqueUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUniqueUser.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUniqueUser.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.req.vtl new file mode 100644 index 00000000000..207ac70528a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "User")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["id"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUser.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.req.vtl new file mode 100644 index 00000000000..fe818a26972 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "UserStake")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["userAddress"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserStake.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.init.1.req.vtl new file mode 100644 index 00000000000..44dbbd28a33 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.init.1.req.vtl @@ -0,0 +1,11 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $createdAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("id", $util.autoId())) +$util.qr($ctx.stash.defaultValues.put("createdAt", $createdAt)) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $createdAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.req.vtl new file mode 100644 index 00000000000..7e45200eade --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.req.vtl @@ -0,0 +1,74 @@ +## [Start] Create Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +$util.qr($mergedValues.put("__typename", "UserTokens")) +#set( $nullIndexFields = [] ) +#set( $indexFields = ["tokenID", "userID"] ) +#foreach( $entry in $util.map.copyAndRetainAllKeys($mergedValues, $indexFields).entrySet() ) + #if( $util.isNull($entry.value) ) + $util.qr($nullIndexFields.add($entry.key)) + #end +#end +#set( $mergedValues = $util.map.copyAndRemoveAllKeys($mergedValues, $nullIndexFields) ) +#set( $PutObject = { + "version": "2018-05-29", + "operation": "PutItem", + "attributeValues": $util.dynamodb.toMapValues($mergedValues), + "condition": $condition +} ) +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": false +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": false + } +})) +#end +## End - key condition ** +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($PutObject.put("condition", $Conditions)) +#end +#if( $ctx.stash.metadata.modelObjectKey ) + $util.qr($PutObject.put("key", $ctx.stash.metadata.modelObjectKey)) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($mergedValues.id) +} ) + $util.qr($PutObject.put("key", $Key)) +#end +$util.toJson($PutObject) +## [End] Create Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.createUserTokens.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteAnnotation.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColony.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyAction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyActionMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyContributor.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyDecision.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyExtension.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyFundsClaim.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyHistoricRole.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMemberInvite.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyMotion.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyRole.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyStake.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteColonyTokens.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContractEvent.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteContributorReputation.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentNetworkInverseFee.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteCurrentVersion.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomain.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteDomainMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditure.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExpenditureMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteExtensionInstallationsCount.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteIngestorStats.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteLiquidationAddress.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteMotionMessage.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deletePrivateBetaInviteCode.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteProfile.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransaction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteSafeTransactionData.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPayment.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteStreamingPaymentMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteToken.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteTransaction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUser.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserStake.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.req.vtl new file mode 100644 index 00000000000..ace459bd501 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.req.vtl @@ -0,0 +1,58 @@ +## [Start] Delete Request template. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $DeleteRequest = { + "version": "2018-05-29", + "operation": "DeleteItem" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +$util.qr($DeleteRequest.put("key", $Key)) +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($DeleteRequest.put("condition", $Conditions)) +#end +$util.toJson($DeleteRequest) +## [End] Delete Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.deleteUserTokens.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateAnnotation.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColony.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyAction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyActionMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyContributor.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyDecision.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyExtension.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyFundsClaim.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyHistoricRole.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMemberInvite.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyMotion.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyRole.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyStake.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateColonyTokens.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContractEvent.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorReputation.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorsWithReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorsWithReputation.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateContributorsWithReputation.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentNetworkInverseFee.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateCurrentVersion.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomain.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateDomainMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditure.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExpenditureMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateExtensionInstallationsCount.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateIngestorStats.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateLiquidationAddress.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateMotionMessage.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updatePrivateBetaInviteCode.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateProfile.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransaction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateSafeTransactionData.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPayment.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateStreamingPaymentMetadata.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateToken.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateTransaction.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUser.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserStake.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.init.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.init.1.req.vtl new file mode 100644 index 00000000000..ab5766fb051 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.init.1.req.vtl @@ -0,0 +1,9 @@ +## [Start] Initialization default values. ** +$util.qr($ctx.stash.put("defaultValues", $util.defaultIfNull($ctx.stash.defaultValues, {}))) +#set( $updatedAt = $util.time.nowISO8601() ) +$util.qr($ctx.stash.defaultValues.put("updatedAt", $updatedAt)) +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Initialization default values. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.req.vtl new file mode 100644 index 00000000000..a1bd67d21b6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.req.vtl @@ -0,0 +1,130 @@ +## [Start] Mutation Update resolver. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +## Set the default values to put request ** +#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) ) +## copy the values from input ** +$util.qr($mergedValues.putAll($util.defaultIfNull($args.input, {}))) +## set the typename ** +## Initialize the vars for creating ddb expression ** +#set( $expNames = {} ) +#set( $expValues = {} ) +#set( $expSet = {} ) +#set( $expAdd = {} ) +#set( $expRemove = [] ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $Key = $ctx.stash.metadata.modelObjectKey ) +#else + #set( $Key = { + "id": $util.dynamodb.toDynamoDB($args.input.id) +} ) +#end +## Model key ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyFields = [] ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyFields.add("$entry.key")) + #end +#else + #set( $keyFields = ["id"] ) +#end +#foreach( $entry in $util.map.copyAndRemoveAllKeys($mergedValues, $keyFields).entrySet() ) + #if( !$util.isNull($ctx.stash.metadata.dynamodbNameOverrideMap) && $ctx.stash.metadata.dynamodbNameOverrideMap.containsKey("$entry.key") ) + #set( $entryKeyAttributeName = $ctx.stash.metadata.dynamodbNameOverrideMap.get("$entry.key") ) + #else + #set( $entryKeyAttributeName = $entry.key ) + #end + #if( $util.isNull($entry.value) ) + #set( $discard = $expRemove.add("#$entryKeyAttributeName") ) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + #else + $util.qr($expSet.put("#$entryKeyAttributeName", ":$entryKeyAttributeName")) + $util.qr($expNames.put("#$entryKeyAttributeName", "$entry.key")) + $util.qr($expValues.put(":$entryKeyAttributeName", $util.dynamodb.toDynamoDB($entry.value))) + #end +#end +#set( $expression = "" ) +#if( !$expSet.isEmpty() ) + #set( $expression = "SET" ) + #foreach( $entry in $expSet.entrySet() ) + #set( $expression = "$expression $entry.key = $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expAdd.isEmpty() ) + #set( $expression = "$expression ADD" ) + #foreach( $entry in $expAdd.entrySet() ) + #set( $expression = "$expression $entry.key $entry.value" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#if( !$expRemove.isEmpty() ) + #set( $expression = "$expression REMOVE" ) + #foreach( $entry in $expRemove ) + #set( $expression = "$expression $entry" ) + #if( $foreach.hasNext() ) + #set( $expression = "$expression," ) + #end + #end +#end +#set( $update = {} ) +$util.qr($update.put("expression", "$expression")) +#if( !$expNames.isEmpty() ) + $util.qr($update.put("expressionNames", $expNames)) +#end +#if( !$expValues.isEmpty() ) + $util.qr($update.put("expressionValues", $expValues)) +#end +## Begin - key condition ** +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $keyConditionExpr = {} ) + #set( $keyConditionExprNames = {} ) + #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() ) + $util.qr($keyConditionExpr.put("keyCondition$velocityCount", { + "attributeExists": true +})) + $util.qr($keyConditionExprNames.put("#keyCondition$velocityCount", "$entry.key")) + #end + $util.qr($ctx.stash.conditions.add($keyConditionExpr)) +#else + $util.qr($ctx.stash.conditions.add({ + "id": { + "attributeExists": true + } +})) +#end +## End - key condition ** +#if( $args.condition ) + $util.qr($ctx.stash.conditions.add($args.condition)) +#end +## Start condition block ** +#if( $ctx.stash.conditions && $ctx.stash.conditions.size() != 0 ) + #set( $mergedConditions = { + "and": $ctx.stash.conditions +} ) + #set( $Conditions = $util.parseJson($util.transform.toDynamoDBConditionExpression($mergedConditions)) ) + #if( $Conditions.expressionValues && $Conditions.expressionValues.size() == 0 ) + #set( $Conditions = { + "expression": $Conditions.expression, + "expressionNames": $Conditions.expressionNames +} ) + #end + ## End condition block ** +#end +#set( $UpdateItem = { + "version": "2018-05-29", + "operation": "UpdateItem", + "key": $Key, + "update": $update +} ) +#if( $Conditions ) + #if( $keyConditionExprNames ) + $util.qr($Conditions.expressionNames.putAll($keyConditionExprNames)) + #end + $util.qr($UpdateItem.put("condition", $Conditions)) +#end +$util.toJson($UpdateItem) +## [End] Mutation Update resolver. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.res.vtl new file mode 100644 index 00000000000..511997231f3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.updateUserTokens.res.vtl @@ -0,0 +1,8 @@ +## [Start] ResponseTemplate. ** +$util.qr($ctx.result.put("__operation", "Mutation")) +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Mutation.validateUserInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.validateUserInvite.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Mutation.validateUserInvite.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Profile.user.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Profile.user.req.vtl new file mode 100644 index 00000000000..6bf525da652 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Profile.user.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Profile.user.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Profile.user.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Profile.user.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.bridgeXYZQuery.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.bridgeXYZQuery.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.bridgeXYZQuery.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.req.vtl new file mode 100644 index 00000000000..79977c55bb0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.expenditureId) ) + #set( $modelQueryExpression.expression = "#expenditureId = :expenditureId" ) + #set( $modelQueryExpression.expressionNames = { + "#expenditureId": "expenditureId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":expenditureId": { + "S": "$ctx.args.expenditureId" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byExpenditureId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionByExpenditureId.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.req.vtl new file mode 100644 index 00000000000..b5a73769c0e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.createdAt) && $util.isNull($ctx.args.colonyId) ) + $util.error("When providing argument 'createdAt' you must also provide arguments colonyId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyId) ) + #set( $modelQueryExpression.expression = "#colonyId = :colonyId" ) + #set( $modelQueryExpression.expressionNames = { + "#colonyId": "colonyId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":colonyId": { + "S": "$ctx.args.colonyId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byColony" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getActionsByColony.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getAnnotation.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.req.vtl new file mode 100644 index 00000000000..d16f5fa83d7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.nativeTokenId) ) + #set( $modelQueryExpression.expression = "#nativeTokenId = :nativeTokenId" ) + #set( $modelQueryExpression.expressionNames = { + "#nativeTokenId": "nativeTokenId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":nativeTokenId": { + "S": "$ctx.args.nativeTokenId" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byNativeTokenId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColoniesByNativeTokenId.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColony.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyAction.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.req.vtl new file mode 100644 index 00000000000..b3e8a1a035e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.motionId) ) + #set( $modelQueryExpression.expression = "#motionId = :motionId" ) + #set( $modelQueryExpression.expressionNames = { + "#motionId": "motionId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":motionId": { + "S": "$ctx.args.motionId" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byMotionId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionByMotionId.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyActionMetadata.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.req.vtl new file mode 100644 index 00000000000..91a2bb4af5b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.id) ) + #set( $modelQueryExpression.expression = "#id = :id" ) + #set( $modelQueryExpression.expressionNames = { + "#id": "id" +} ) + #set( $modelQueryExpression.expressionValues = { + ":id": { + "S": "$ctx.args.id" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.req.vtl new file mode 100644 index 00000000000..427109e74b9 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.name) ) + #set( $modelQueryExpression.expression = "#name = :name" ) + #set( $modelQueryExpression.expressionNames = { + "#name": "name" +} ) + #set( $modelQueryExpression.expressionValues = { + ":name": { + "S": "$ctx.args.name" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byName" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByName.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.req.vtl new file mode 100644 index 00000000000..80b9f9e1a36 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.type) ) + #set( $modelQueryExpression.expression = "#type = :type" ) + #set( $modelQueryExpression.expressionNames = { + "#type": "type" +} ) + #set( $modelQueryExpression.expressionValues = { + ":type": { + "S": "$ctx.args.type" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byType" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyByType.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyContributor.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecision.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.req.vtl new file mode 100644 index 00000000000..755f1d52775 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.actionId) ) + #set( $modelQueryExpression.expression = "#actionId = :actionId" ) + #set( $modelQueryExpression.expressionNames = { + "#actionId": "actionId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":actionId": { + "S": "$ctx.args.actionId" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byActionId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByActionId.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.req.vtl new file mode 100644 index 00000000000..06d754cb417 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.createdAt) && $util.isNull($ctx.args.colonyAddress) ) + $util.error("When providing argument 'createdAt' you must also provide arguments colonyAddress", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyAddress) ) + #set( $modelQueryExpression.expression = "#colonyAddress = :colonyAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#colonyAddress": "colonyAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":colonyAddress": { + "S": "$ctx.args.colonyAddress" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byColonyAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyDecisionByColonyAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyExtension.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyFundsClaim.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRole.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.req.vtl new file mode 100644 index 00000000000..b401b561c77 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.createdAt) && $util.isNull($ctx.args.type) ) + $util.error("When providing argument 'createdAt' you must also provide arguments type", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.type) ) + #set( $modelQueryExpression.expression = "#type = :type" ) + #set( $modelQueryExpression.expressionNames = { + "#type": "type" +} ) + #set( $modelQueryExpression.expressionValues = { + ":type": { + "S": "$ctx.args.type" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "getColonyHistoricRoleByDate" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyHistoricRoleByDate.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMemberInvite.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMetadata.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyMotion.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyRole.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStake.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.req.vtl new file mode 100644 index 00000000000..04c3c592f62 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyId) && $util.isNull($ctx.args.userId) ) + $util.error("When providing argument 'colonyId' you must also provide arguments userId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.userId) ) + #set( $modelQueryExpression.expression = "#userId = :userId" ) + #set( $modelQueryExpression.expressionNames = { + "#userId": "userId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":userId": { + "S": "$ctx.args.userId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyId.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyId.between[1]" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.eq" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.lt" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.le" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.gt" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byUserAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyStakeByUserAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getColonyTokens.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContractEvent.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorReputation.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.req.vtl new file mode 100644 index 00000000000..b6c2fccd25a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && $util.isNull($ctx.args.contributorAddress) ) + $util.error("When providing argument 'colonyReputationPercentage' you must also provide arguments contributorAddress", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.contributorAddress) ) + #set( $modelQueryExpression.expression = "#contributorAddress = :contributorAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#contributorAddress": "contributorAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":contributorAddress": { + "S": "$ctx.args.contributorAddress" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "N": "$ctx.args.colonyReputationPercentage.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "N": "$ctx.args.colonyReputationPercentage.between[1]" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.eq" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.lt" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.le" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.gt" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.req.vtl new file mode 100644 index 00000000000..f495f2eef48 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && $util.isNull($ctx.args.colonyAddress) ) + $util.error("When providing argument 'colonyReputationPercentage' you must also provide arguments colonyAddress", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyAddress) ) + #set( $modelQueryExpression.expression = "#colonyAddress = :colonyAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#colonyAddress": "colonyAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":colonyAddress": { + "S": "$ctx.args.colonyAddress" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "N": "$ctx.args.colonyReputationPercentage.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "N": "$ctx.args.colonyReputationPercentage.between[1]" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.eq" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.lt" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.le" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.gt" })) +#end +#if( !$util.isNull($ctx.args.colonyReputationPercentage) && !$util.isNull($ctx.args.colonyReputationPercentage.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyReputationPercentage")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "N": "$ctx.args.colonyReputationPercentage.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byColonyAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getContributorsByColony.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentNetworkInverseFee.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersion.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.req.vtl new file mode 100644 index 00000000000..a489dcfbff3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.key) ) + #set( $modelQueryExpression.expression = "#key = :key" ) + #set( $modelQueryExpression.expressionNames = { + "#key": "key" +} ) + #set( $modelQueryExpression.expressionValues = { + ":key": { + "S": "$ctx.args.key" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byKey" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getCurrentVersionByKey.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomain.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getDomainMetadata.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditure.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpenditureMetadata.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.req.vtl new file mode 100644 index 00000000000..b5a73769c0e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.createdAt) && $util.isNull($ctx.args.colonyId) ) + $util.error("When providing argument 'createdAt' you must also provide arguments colonyId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyId) ) + #set( $modelQueryExpression.expression = "#colonyId = :colonyId" ) + #set( $modelQueryExpression.expressionNames = { + "#colonyId": "colonyId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":colonyId": { + "S": "$ctx.args.colonyId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byColony" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByColony.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.req.vtl new file mode 100644 index 00000000000..7589dd51842 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyId) && $util.isNull($ctx.args.nativeFundingPotId) ) + $util.error("When providing argument 'colonyId' you must also provide arguments nativeFundingPotId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.nativeFundingPotId) ) + #set( $modelQueryExpression.expression = "#nativeFundingPotId = :nativeFundingPotId" ) + #set( $modelQueryExpression.expressionNames = { + "#nativeFundingPotId": "nativeFundingPotId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":nativeFundingPotId": { + "N": "$ctx.args.nativeFundingPotId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyId.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyId.between[1]" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.eq" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.lt" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.le" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.gt" })) +#end +#if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyId")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byNativeFundingPotId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.req.vtl new file mode 100644 index 00000000000..241eb17bb55 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.hash) && $util.isNull($ctx.args.colonyId) ) + $util.error("When providing argument 'hash' you must also provide arguments colonyId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyId) ) + #set( $modelQueryExpression.expression = "#colonyId = :colonyId" ) + #set( $modelQueryExpression.expressionNames = { + "#colonyId": "colonyId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":colonyId": { + "S": "$ctx.args.colonyId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "hash")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "hash")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.hash.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.hash.between[1]" })) +#end +#if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "hash")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.eq" })) +#end +#if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "hash")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.lt" })) +#end +#if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "hash")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.le" })) +#end +#if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "hash")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.gt" })) +#end +#if( !$util.isNull($ctx.args.hash) && !$util.isNull($ctx.args.hash.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "hash")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.hash.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byColony" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionByColonyAndHash.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionInstallationsCount.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.req.vtl new file mode 100644 index 00000000000..35cdc828ad6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.hash) ) + #set( $modelQueryExpression.expression = "#hash = :hash" ) + #set( $modelQueryExpression.expressionNames = { + "#hash": "hash" +} ) + #set( $modelQueryExpression.expressionValues = { + ":hash": { + "S": "$ctx.args.hash" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byHash" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getExtensionsByHash.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getIngestorStats.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddress.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.req.vtl new file mode 100644 index 00000000000..414ddd19de7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.userAddress) ) + #set( $modelQueryExpression.expression = "#userAddress = :userAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#userAddress": "userAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":userAddress": { + "S": "$ctx.args.userAddress" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byUserAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getLiquidationAddressesByUserAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.req.vtl new file mode 100644 index 00000000000..79977c55bb0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.expenditureId) ) + #set( $modelQueryExpression.expression = "#expenditureId = :expenditureId" ) + #set( $modelQueryExpression.expressionNames = { + "#expenditureId": "expenditureId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":expenditureId": { + "S": "$ctx.args.expenditureId" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byExpenditureId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByExpenditureId.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.req.vtl new file mode 100644 index 00000000000..947d7304c18 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.transactionHash) ) + #set( $modelQueryExpression.expression = "#transactionHash = :transactionHash" ) + #set( $modelQueryExpression.expressionNames = { + "#transactionHash": "transactionHash" +} ) + #set( $modelQueryExpression.expressionValues = { + ":transactionHash": { + "S": "$ctx.args.transactionHash" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byTransactionHash" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionByTransactionHash.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessage.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.req.vtl new file mode 100644 index 00000000000..d44cb24ed40 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.createdAt) && $util.isNull($ctx.args.motionId) ) + $util.error("When providing argument 'createdAt' you must also provide arguments motionId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.motionId) ) + #set( $modelQueryExpression.expression = "#motionId = :motionId" ) + #set( $modelQueryExpression.expressionNames = { + "#motionId": "motionId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":motionId": { + "S": "$ctx.args.motionId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byMotionId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionMessageByMotionId.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionState.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionState.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionState.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionTimeoutPeriods.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionTimeoutPeriods.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getMotionTimeoutPeriods.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getPrivateBetaInviteCode.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfile.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.req.vtl new file mode 100644 index 00000000000..da8de36041b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.email) ) + #set( $modelQueryExpression.expression = "#email = :email" ) + #set( $modelQueryExpression.expressionNames = { + "#email": "email" +} ) + #set( $modelQueryExpression.expressionValues = { + ":email": { + "S": "$ctx.args.email" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byEmail" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByEmail.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.req.vtl new file mode 100644 index 00000000000..5321a186272 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.displayName) ) + #set( $modelQueryExpression.expression = "#displayName = :displayName" ) + #set( $modelQueryExpression.expressionNames = { + "#displayName": "displayName" +} ) + #set( $modelQueryExpression.expressionValues = { + ":displayName": { + "S": "$ctx.args.displayName" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byDisplayName" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getProfileByUsername.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.req.vtl new file mode 100644 index 00000000000..13561d6e4d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyAddress) && $util.isNull($ctx.args.domainId) ) + $util.error("When providing argument 'colonyAddress' you must also provide arguments domainId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.domainId) ) + #set( $modelQueryExpression.expression = "#domainId = :domainId" ) + #set( $modelQueryExpression.expressionNames = { + "#domainId": "domainId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":domainId": { + "S": "$ctx.args.domainId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyAddress.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyAddress.between[1]" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.eq" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.lt" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.le" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.gt" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byDomainId" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByDomainAndColony.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.req.vtl new file mode 100644 index 00000000000..84181234cdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyAddress) && $util.isNull($ctx.args.targetAddress) ) + $util.error("When providing argument 'colonyAddress' you must also provide arguments targetAddress", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.targetAddress) ) + #set( $modelQueryExpression.expression = "#targetAddress = :targetAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#targetAddress": "targetAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":targetAddress": { + "S": "$ctx.args.targetAddress" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyAddress.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyAddress.between[1]" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.eq" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.lt" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.le" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.gt" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byTargetAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getRoleByTargetAddressAndColony.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransaction.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionData.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionStatus.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionStatus.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getSafeTransactionStatus.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPayment.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getStreamingPaymentMetadata.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getToken.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.req.vtl new file mode 100644 index 00000000000..91a2bb4af5b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.id) ) + #set( $modelQueryExpression.expression = "#id = :id" ) + #set( $modelQueryExpression.expressionNames = { + "#id": "id" +} ) + #set( $modelQueryExpression.expressionValues = { + ":id": { + "S": "$ctx.args.id" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenByAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenFromEverywhere.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenFromEverywhere.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokenFromEverywhere.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.req.vtl new file mode 100644 index 00000000000..80b9f9e1a36 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.type) ) + #set( $modelQueryExpression.expression = "#type = :type" ) + #set( $modelQueryExpression.expressionNames = { + "#type": "type" +} ) + #set( $modelQueryExpression.expressionValues = { + ":type": { + "S": "$ctx.args.type" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byType" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTokensByType.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransaction.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.req.vtl new file mode 100644 index 00000000000..d011964b952 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.createdAt) && $util.isNull($ctx.args.from) ) + $util.error("When providing argument 'createdAt' you must also provide arguments from", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.from) ) + #set( $modelQueryExpression.expression = "#from = :from" ) + #set( $modelQueryExpression.expressionNames = { + "#from": "from" +} ) + #set( $modelQueryExpression.expressionValues = { + ":from": { + "S": "$ctx.args.from" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byInitiatorAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUser.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.req.vtl new file mode 100644 index 00000000000..383b73774ac --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.from) && $util.isNull($ctx.args.groupId) ) + $util.error("When providing argument 'from' you must also provide arguments groupId", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.groupId) ) + #set( $modelQueryExpression.expression = "#groupId = :groupId" ) + #set( $modelQueryExpression.expressionNames = { + "#groupId": "groupId" +} ) + #set( $modelQueryExpression.expressionValues = { + ":groupId": { + "S": "$ctx.args.groupId" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.from) && !$util.isNull($ctx.args.from.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "from")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.from.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.from) && !$util.isNull($ctx.args.from.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "from")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.from.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.from.between[1]" })) +#end +#if( !$util.isNull($ctx.args.from) && !$util.isNull($ctx.args.from.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "from")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.from.eq" })) +#end +#if( !$util.isNull($ctx.args.from) && !$util.isNull($ctx.args.from.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "from")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.from.lt" })) +#end +#if( !$util.isNull($ctx.args.from) && !$util.isNull($ctx.args.from.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "from")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.from.le" })) +#end +#if( !$util.isNull($ctx.args.from) && !$util.isNull($ctx.args.from.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "from")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.from.gt" })) +#end +#if( !$util.isNull($ctx.args.from) && !$util.isNull($ctx.args.from.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "from")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.from.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byGroup" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getTransactionsByUserAndGroup.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUser.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.req.vtl new file mode 100644 index 00000000000..91a2bb4af5b --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.id) ) + #set( $modelQueryExpression.expression = "#id = :id" ) + #set( $modelQueryExpression.expressionNames = { + "#id": "id" +} ) + #set( $modelQueryExpression.expressionValues = { + ":id": { + "S": "$ctx.args.id" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.req.vtl new file mode 100644 index 00000000000..1a8e25bc183 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.req.vtl @@ -0,0 +1,57 @@ +## [Start] Set query expression for key ** +#if( !$util.isNull($ctx.args.sortDirection) ) + $util.error("sortDirection is not supported for List operations without a Sort key defined.", "InvalidArgumentsError") +#end +#set( $modelQueryExpression = {} ) +#if( !$util.isNull($ctx.args.liquidationAddress) ) + #set( $modelQueryExpression.expression = "#liquidationAddress = :liquidationAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#liquidationAddress": "liquidationAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":liquidationAddress": { + "S": "$ctx.args.liquidationAddress" + } +} ) +#end +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byLiquidationAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserByLiquidationAddress.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputation.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputation.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.req.vtl new file mode 100644 index 00000000000..d070b2d1019 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.colonyAddress) && $util.isNull($ctx.args.contributorAddress) ) + $util.error("When providing argument 'colonyAddress' you must also provide arguments contributorAddress", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.contributorAddress) ) + #set( $modelQueryExpression.expression = "#contributorAddress = :contributorAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#contributorAddress": "contributorAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":contributorAddress": { + "S": "$ctx.args.contributorAddress" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyAddress.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyAddress.between[1]" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.eq" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.lt" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.le" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.gt" })) +#end +#if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byContributorAddress" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserReputationInColony.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStake.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.postAuth.1.res.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.postAuth.1.res.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.req.vtl new file mode 100644 index 00000000000..6d14644be9c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.req.vtl @@ -0,0 +1,97 @@ +## [Start] Set query expression for key ** +#set( $modelQueryExpression = {} ) +## [Start] Validate key arguments. ** +#if( !$util.isNull($ctx.args.createdAt) && $util.isNull($ctx.args.userAddress) ) + $util.error("When providing argument 'createdAt' you must also provide arguments userAddress", "InvalidArgumentsError") +#end +## [End] Validate key arguments. ** +#if( !$util.isNull($ctx.args.userAddress) ) + #set( $modelQueryExpression.expression = "#userAddress = :userAddress" ) + #set( $modelQueryExpression.expressionNames = { + "#userAddress": "userAddress" +} ) + #set( $modelQueryExpression.expressionValues = { + ":userAddress": { + "S": "$ctx.args.userAddress" + } +} ) +#end +## [Start] Applying Key Condition ** +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey = :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey < :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey <= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey > :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) +#end +#if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $modelQueryExpression.expression = "$modelQueryExpression.expression AND #sortKey >= :sortKey" ) + $util.qr($modelQueryExpression.expressionNames.put("#sortKey", "createdAt")) + $util.qr($modelQueryExpression.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) +#end +## [End] Applying Key Condition ** +## [End] Set query expression for key ** +#set( $limit = $util.defaultIfNull($context.args.limit, 100) ) +#set( $QueryRequest = { + "version": "2018-05-29", + "operation": "Query", + "limit": $limit, + "query": $modelQueryExpression, + "index": "byUserAndColony" +} ) +#if( !$util.isNull($ctx.args.sortDirection) + && $ctx.args.sortDirection == "DESC" ) + #set( $QueryRequest.scanIndexForward = false ) +#else + #set( $QueryRequest.scanIndexForward = true ) +#end +#if( $context.args.nextToken ) #set( $QueryRequest.nextToken = $context.args.nextToken ) #end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = { + "and": [$filter, $ctx.args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($ctx.args.filter) ) + #set( $filter = $ctx.args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $QueryRequest.filter = $filterExpression ) + #end +#end +$util.toJson($QueryRequest) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.res.vtl new file mode 100644 index 00000000000..b0dd3df90d6 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserStakes.res.vtl @@ -0,0 +1,4 @@ +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +$util.toJson($ctx.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokenBalance.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokenBalance.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokenBalance.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.req.vtl new file mode 100644 index 00000000000..a8d7811a021 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.req.vtl @@ -0,0 +1,34 @@ +## [Start] Get Request template. ** +#set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) +#if( $ctx.stash.metadata.modelObjectKey ) + #set( $expression = "" ) + #set( $expressionNames = {} ) + #set( $expressionValues = {} ) + #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() ) + #set( $expression = "$expression#keyCount$velocityCount = :valueCount$velocityCount AND " ) + $util.qr($expressionNames.put("#keyCount$velocityCount", $item.key)) + $util.qr($expressionValues.put(":valueCount$velocityCount", $item.value)) + #end + #set( $expression = $expression.replaceAll("AND $", "") ) + #set( $query = { + "expression": $expression, + "expressionNames": $expressionNames, + "expressionValues": $expressionValues +} ) +#else + #set( $query = { + "expression": "id = :id", + "expressionValues": { + ":id": $util.parseJson($util.dynamodb.toDynamoDBJson($ctx.args.id)) + } +} ) +#end +$util.qr($GetRequest.put("query", $query)) +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) +#end +$util.toJson($GetRequest) +## [End] Get Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.res.vtl new file mode 100644 index 00000000000..e9ef1436bdd --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getUserTokens.res.vtl @@ -0,0 +1,13 @@ +## [Start] Get Response template. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#end +#if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) +#else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) +#end +## [End] Get Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.getVoterRewards.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.getVoterRewards.res.vtl new file mode 100644 index 00000000000..634741579ce --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.getVoterRewards.res.vtl @@ -0,0 +1 @@ +$util.toJson($ctx.prev.result) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listAnnotations.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonies.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActionMetadata.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyActions.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyContributors.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyDecisions.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyExtensions.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyFundsClaims.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyHistoricRoles.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMemberInvites.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMetadata.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyMotions.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyRoles.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyStakes.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listColonyTokens.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContractEvents.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listContributorReputations.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentNetworkInverseFees.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listCurrentVersions.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomainMetadata.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listDomains.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditureMetadata.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExpenditures.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listExtensionInstallationsCounts.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listIngestorStats.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listLiquidationAddresses.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listMotionMessages.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listPrivateBetaInviteCodes.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listProfiles.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactionData.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listSafeTransactions.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPaymentMetadata.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listStreamingPayments.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTokens.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listTransactions.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserStakes.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUserTokens.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.req.vtl new file mode 100644 index 00000000000..014213710e8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.req.vtl @@ -0,0 +1,50 @@ +## [Start] List Request. ** +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $limit = $util.defaultIfNull($args.limit, 100) ) +#set( $ListRequest = { + "version": "2018-05-29", + "limit": $limit +} ) +#if( $args.nextToken ) + #set( $ListRequest.nextToken = $args.nextToken ) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end +#end +#if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( $util.isNullOrEmpty($filterExpression) ) + $util.error("Unable to process the filter expression", "Unrecognized Filter") + #end + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $ListRequest.filter = $filterExpression ) + #end +#end +#if( !$util.isNull($ctx.stash.modelQueryExpression) && !$util.isNullOrEmpty($ctx.stash.modelQueryExpression.expression) ) + $util.qr($ListRequest.put("operation", "Query")) + $util.qr($ListRequest.put("query", $ctx.stash.modelQueryExpression)) + #if( !$util.isNull($args.sortDirection) && $args.sortDirection == "DESC" ) + #set( $ListRequest.scanIndexForward = false ) + #else + #set( $ListRequest.scanIndexForward = true ) + #end +#else + $util.qr($ListRequest.put("operation", "Scan")) +#end +#if( !$util.isNull($ctx.stash.metadata.index) ) + #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) +#end +$util.toJson($ListRequest) +## [End] List Request. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.res.vtl new file mode 100644 index 00000000000..ee8b6670cbc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.listUsers.res.vtl @@ -0,0 +1,7 @@ +## [Start] ResponseTemplate. ** +#if( $ctx.error ) + $util.error($ctx.error.message, $ctx.error.type) +#else + $util.toJson($ctx.result) +#end +## [End] ResponseTemplate. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.postAuth.1.res.vtl new file mode 100644 index 00000000000..2ef071e7867 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.postAuth.1.res.vtl @@ -0,0 +1,10 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #else + $util.qr($ctx.stash.put("allowedAggFields", ["id","colonyId","colony","type","blockNumber","isMotion","motionId","motionData","showInActionsList","createdAt","initiatorAddress","initiatorUser","initiatorExtension","initiatorColony","initiatorToken","recipientAddress","recipientUser","recipientColony","recipientExtension","recipientToken","amount","networkFee","tokenAddress","token","fromDomainId","fromDomain","toDomainId","toDomain","fromPotId","toPotId","paymentId","newColonyVersion","pendingDomainMetadataId","pendingDomainMetadata","pendingColonyMetadataId","pendingColonyMetadata","annotationId","annotation","motionDomainId","colonyDecisionId","decisionData","payments","roles","members","individualEvents","safeTransaction","metadata","rootHash","expenditureId","expenditure","isMotionFinalization","expenditureSlotChanges"])) + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.req.vtl new file mode 100644 index 00000000000..fbde6a46d35 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.req.vtl @@ -0,0 +1,105 @@ +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $indexPath = "/colonyaction/_search" ) +#set( $allowedAggFields = $util.defaultIfNull($ctx.stash.allowedAggFields, []) ) +#set( $aggFieldsFilterMap = $util.defaultIfNull($ctx.stash.aggFieldsFilterMap, {}) ) +#set( $nonKeywordFields = ["blockNumber", "isMotion", "showInActionsList", "createdAt", "paymentId", "newColonyVersion", "motionDomainId", "updatedAt"] ) +#set( $keyFields = ["id"] ) +#set( $sortValues = [] ) +#set( $sortFields = [] ) +#set( $aggregateValues = {} ) +#set( $primaryKey = "id" ) +#if( !$util.isNullOrEmpty($args.sort) ) + #foreach( $sortItem in $args.sort ) + #if( $util.isNullOrEmpty($sortItem.field) ) + $util.qr($sortFields.add($primaryKey)) + #else + $util.qr($sortFields.add($sortItem.field)) + #end + #if( $util.isNullOrEmpty($sortItem.field) ) + #if( $nonKeywordFields.contains($primaryKey) ) + #set( $sortField = $util.toJson($primaryKey) ) + #else + #set( $sortField = $util.toJson("${primaryKey}.keyword") ) + #end + #else + #if( $nonKeywordFields.contains($sortItem.field) ) + #set( $sortField = $util.toJson($sortItem.field) ) + #else + #set( $sortField = $util.toJson("${sortItem.field}.keyword") ) + #end + #end + #if( $util.isNullOrEmpty($sortItem.direction) ) + #set( $sortDirection = $util.toJson({"order": "desc"}) ) + #else + #set( $sortDirection = $util.toJson({"order": $sortItem.direction}) ) + #end + $util.qr($sortValues.add("{$sortField: $sortDirection}")) + #end +#end +#foreach( $keyItem in $keyFields ) + #if( !$sortFields.contains($keyItem) ) + #if( $nonKeywordFields.contains($keyItem) ) + #set( $sortField = $util.toJson($keyItem) ) + #else + #set( $sortField = $util.toJson("${keyItem}.keyword") ) + #end + #set( $sortDirection = $util.toJson({"order": "desc"}) ) + $util.qr($sortValues.add("{$sortField: $sortDirection}")) + #end +#end +#foreach( $aggItem in $args.aggregates ) + #if( $allowedAggFields.contains($aggItem.field) ) + #set( $aggFilter = { "match_all": {} } ) + #elseif( $aggFieldsFilterMap.containsKey($aggItem.field) ) + #set( $aggFilter = { "bool": { "should": $aggFieldsFilterMap.get($aggItem.field) } } ) + #else + $util.error("Unauthorized to run aggregation on field: ${aggItem.field}", "Unauthorized") + #end + #set( $aggregateValue = {} ) + $util.qr($aggregateValue.put("filter", $aggFilter)) + #set( $aggsValue = {} ) + #set( $aggItemType = {} ) + #if( $nonKeywordFields.contains($aggItem.field) ) + $util.qr($aggItemType.put("$aggItem.type", { "field": "$aggItem.field" })) + #else + $util.qr($aggItemType.put("$aggItem.type", { "field": "${aggItem.field}.keyword" })) + #end + $util.qr($aggsValue.put("$aggItem.name", $aggItemType)) + $util.qr($aggregateValue.put("aggs", $aggsValue)) + $util.qr($aggregateValues.put("$aggItem.name", $aggregateValue)) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "bool": { + "must": [$ctx.stash.authFilter, $util.parseJson($util.transform.toElasticsearchQueryDSL($args.filter))] + } +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $util.parseJson($util.transform.toElasticsearchQueryDSL($args.filter)) ) + #end +#end +#if( $util.isNullOrEmpty($filter) ) + #set( $filter = { + "match_all": {} +} ) +#end +{ + "version": "2018-05-29", + "operation": "GET", + "path": "$indexPath", + "params": { + "body": { + #if( $context.args.nextToken )"search_after": $util.base64Decode("$args.nextToken"), #end + #if( $context.args.from )"from": $args.from, #end + "size": #if( $args.limit ) $args.limit #else 100 #end, + "sort": $sortValues, + "version": false, + "query": $util.toJson($filter), + "aggs": $util.toJson($aggregateValues) + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.res.vtl new file mode 100644 index 00000000000..2cf3ecceb0a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyActions.res.vtl @@ -0,0 +1,32 @@ +#set( $es_items = [] ) +#set( $aggregateValues = [] ) +#foreach( $entry in $context.result.hits.hits ) + #if( !$foreach.hasNext ) + #set( $nextToken = $util.base64Encode($util.toJson($entry.sort)) ) + #end + $util.qr($es_items.add($entry.get("_source"))) +#end +#foreach( $aggItem in $context.result.aggregations.keySet() ) + #set( $aggResult = {} ) + #set( $aggResultValue = {} ) + #set( $currentAggItem = $ctx.result.aggregations.get($aggItem) ) + $util.qr($aggResult.put("name", $aggItem)) + #if( !$util.isNullOrEmpty($currentAggItem) ) + #if( !$util.isNullOrEmpty($currentAggItem.get($aggItem).buckets) ) + $util.qr($aggResultValue.put("__typename", "SearchableAggregateBucketResult")) + $util.qr($aggResultValue.put("buckets", $currentAggItem.get($aggItem).buckets)) + #end + #if( !$util.isNullOrEmpty($currentAggItem.get($aggItem).value) ) + $util.qr($aggResultValue.put("__typename", "SearchableAggregateScalarResult")) + $util.qr($aggResultValue.put("value", $currentAggItem.get($aggItem).value)) + #end + #end + $util.qr($aggResult.put("result", $aggResultValue)) + $util.qr($aggregateValues.add($aggResult)) +#end +$util.toJson({ + "items": $es_items, + "total": $ctx.result.hits.total.value, + "nextToken": $nextToken, + "aggregateItems": $aggregateValues +}) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.postAuth.1.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.postAuth.1.res.vtl new file mode 100644 index 00000000000..cabb53e64b9 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.postAuth.1.res.vtl @@ -0,0 +1,10 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #else + $util.qr($ctx.stash.put("allowedAggFields", ["id","contributorAddress","type","isVerified","isWatching","hasPermissions","hasReputation","reputation","colonyReputationPercentage","user","colonyAddress","colony","roles"])) + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.req.vtl new file mode 100644 index 00000000000..aa057f32a36 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.req.vtl @@ -0,0 +1,105 @@ +#set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) +#set( $indexPath = "/colonycontributor/_search" ) +#set( $allowedAggFields = $util.defaultIfNull($ctx.stash.allowedAggFields, []) ) +#set( $aggFieldsFilterMap = $util.defaultIfNull($ctx.stash.aggFieldsFilterMap, {}) ) +#set( $nonKeywordFields = ["createdAt", "updatedAt", "isWatching", "type", "colonyReputationPercentage"] ) +#set( $keyFields = ["id"] ) +#set( $sortValues = [] ) +#set( $sortFields = [] ) +#set( $aggregateValues = {} ) +#set( $primaryKey = "id" ) +#if( !$util.isNullOrEmpty($args.sort) ) + #foreach( $sortItem in $args.sort ) + #if( $util.isNullOrEmpty($sortItem.field) ) + $util.qr($sortFields.add($primaryKey)) + #else + $util.qr($sortFields.add($sortItem.field)) + #end + #if( $util.isNullOrEmpty($sortItem.field) ) + #if( $nonKeywordFields.contains($primaryKey) ) + #set( $sortField = $util.toJson($primaryKey) ) + #else + #set( $sortField = $util.toJson("${primaryKey}.keyword") ) + #end + #else + #if( $nonKeywordFields.contains($sortItem.field) ) + #set( $sortField = $util.toJson($sortItem.field) ) + #else + #set( $sortField = $util.toJson("${sortItem.field}.keyword") ) + #end + #end + #if( $util.isNullOrEmpty($sortItem.direction) ) + #set( $sortDirection = $util.toJson({"order": "desc"}) ) + #else + #set( $sortDirection = $util.toJson({"order": $sortItem.direction}) ) + #end + $util.qr($sortValues.add("{$sortField: $sortDirection}")) + #end +#end +#foreach( $keyItem in $keyFields ) + #if( !$sortFields.contains($keyItem) ) + #if( $nonKeywordFields.contains($keyItem) ) + #set( $sortField = $util.toJson($keyItem) ) + #else + #set( $sortField = $util.toJson("${keyItem}.keyword") ) + #end + #set( $sortDirection = $util.toJson({"order": "desc"}) ) + $util.qr($sortValues.add("{$sortField: $sortDirection}")) + #end +#end +#foreach( $aggItem in $args.aggregates ) + #if( $allowedAggFields.contains($aggItem.field) ) + #set( $aggFilter = { "match_all": {} } ) + #elseif( $aggFieldsFilterMap.containsKey($aggItem.field) ) + #set( $aggFilter = { "bool": { "should": $aggFieldsFilterMap.get($aggItem.field) } } ) + #else + $util.error("Unauthorized to run aggregation on field: ${aggItem.field}", "Unauthorized") + #end + #set( $aggregateValue = {} ) + $util.qr($aggregateValue.put("filter", $aggFilter)) + #set( $aggsValue = {} ) + #set( $aggItemType = {} ) + #if( $nonKeywordFields.contains($aggItem.field) ) + $util.qr($aggItemType.put("$aggItem.type", { "field": "$aggItem.field" })) + #else + $util.qr($aggItemType.put("$aggItem.type", { "field": "${aggItem.field}.keyword" })) + #end + $util.qr($aggsValue.put("$aggItem.name", $aggItemType)) + $util.qr($aggregateValue.put("aggs", $aggsValue)) + $util.qr($aggregateValues.put("$aggItem.name", $aggregateValue)) +#end +#if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "bool": { + "must": [$ctx.stash.authFilter, $util.parseJson($util.transform.toElasticsearchQueryDSL($args.filter))] + } +} ) + #end +#else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $util.parseJson($util.transform.toElasticsearchQueryDSL($args.filter)) ) + #end +#end +#if( $util.isNullOrEmpty($filter) ) + #set( $filter = { + "match_all": {} +} ) +#end +{ + "version": "2018-05-29", + "operation": "GET", + "path": "$indexPath", + "params": { + "body": { + #if( $context.args.nextToken )"search_after": $util.base64Decode("$args.nextToken"), #end + #if( $context.args.from )"from": $args.from, #end + "size": #if( $args.limit ) $args.limit #else 100 #end, + "sort": $sortValues, + "version": false, + "query": $util.toJson($filter), + "aggs": $util.toJson($aggregateValues) + } + } +} diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.res.vtl new file mode 100644 index 00000000000..2cf3ecceb0a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Query.searchColonyContributors.res.vtl @@ -0,0 +1,32 @@ +#set( $es_items = [] ) +#set( $aggregateValues = [] ) +#foreach( $entry in $context.result.hits.hits ) + #if( !$foreach.hasNext ) + #set( $nextToken = $util.base64Encode($util.toJson($entry.sort)) ) + #end + $util.qr($es_items.add($entry.get("_source"))) +#end +#foreach( $aggItem in $context.result.aggregations.keySet() ) + #set( $aggResult = {} ) + #set( $aggResultValue = {} ) + #set( $currentAggItem = $ctx.result.aggregations.get($aggItem) ) + $util.qr($aggResult.put("name", $aggItem)) + #if( !$util.isNullOrEmpty($currentAggItem) ) + #if( !$util.isNullOrEmpty($currentAggItem.get($aggItem).buckets) ) + $util.qr($aggResultValue.put("__typename", "SearchableAggregateBucketResult")) + $util.qr($aggResultValue.put("buckets", $currentAggItem.get($aggItem).buckets)) + #end + #if( !$util.isNullOrEmpty($currentAggItem.get($aggItem).value) ) + $util.qr($aggResultValue.put("__typename", "SearchableAggregateScalarResult")) + $util.qr($aggResultValue.put("value", $currentAggItem.get($aggItem).value)) + #end + #end + $util.qr($aggResult.put("result", $aggResultValue)) + $util.qr($aggregateValues.add($aggResult)) +#end +$util.toJson({ + "items": $es_items, + "total": $ctx.result.hits.total.value, + "nextToken": $nextToken, + "aggregateItems": $aggregateValues +}) \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.req.vtl new file mode 100644 index 00000000000..1ea75daf9b0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "transactionHash" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.id) && !$util.isNull($ctx.args.id.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "id")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.id.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.id) && !$util.isNull($ctx.args.id.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "id")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.id.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.id.between[1]" })) + #end + #if( !$util.isNull($ctx.args.id) && !$util.isNull($ctx.args.id.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "id")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.id.eq" })) + #end + #if( !$util.isNull($ctx.args.id) && !$util.isNull($ctx.args.id.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "id")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.id.lt" })) + #end + #if( !$util.isNull($ctx.args.id) && !$util.isNull($ctx.args.id.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "id")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.id.le" })) + #end + #if( !$util.isNull($ctx.args.id) && !$util.isNull($ctx.args.id.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "id")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.id.gt" })) + #end + #if( !$util.isNull($ctx.args.id) && !$util.isNull($ctx.args.id.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "id")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.id.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byTransaction" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransaction.transactions.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.req.vtl new file mode 100644 index 00000000000..a44a3932e78 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("tokenAddress"), $ctx.source.tokenAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/SafeTransactionData.token.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.req.vtl new file mode 100644 index 00000000000..6bf525da652 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/StreamingPayment.metadata.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateAnnotation.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColony.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyAction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyActionMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyContributor.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyDecision.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyExtension.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyFundsClaim.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyHistoricRole.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMemberInvite.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyMotion.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyRole.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyStake.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateColonyTokens.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContractEvent.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateContributorReputation.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentNetworkInverseFee.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateCurrentVersion.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomain.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateDomainMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditure.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExpenditureMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateExtensionInstallationsCount.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateIngestorStats.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateLiquidationAddress.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateMotionMessage.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreatePrivateBetaInviteCode.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateProfile.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransaction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateSafeTransactionData.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPayment.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateStreamingPaymentMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateToken.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateTransaction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUser.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserStake.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onCreateUserTokens.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteAnnotation.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColony.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyAction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyActionMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyContributor.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyDecision.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyExtension.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyFundsClaim.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyHistoricRole.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMemberInvite.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyMotion.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyRole.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyStake.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteColonyTokens.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContractEvent.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteContributorReputation.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentNetworkInverseFee.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteCurrentVersion.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomain.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteDomainMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditure.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExpenditureMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteExtensionInstallationsCount.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteIngestorStats.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteLiquidationAddress.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteMotionMessage.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeletePrivateBetaInviteCode.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteProfile.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransaction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteSafeTransactionData.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPayment.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteStreamingPaymentMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteToken.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteTransaction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUser.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserStake.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onDeleteUserTokens.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateAnnotation.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColony.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyAction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyActionMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyContributor.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyDecision.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyExtension.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyFundsClaim.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyHistoricRole.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMemberInvite.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyMotion.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyRole.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyStake.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateColonyTokens.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContractEvent.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateContributorReputation.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentNetworkInverseFee.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateCurrentVersion.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomain.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateDomainMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditure.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExpenditureMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateExtensionInstallationsCount.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateIngestorStats.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateLiquidationAddress.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateMotionMessage.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdatePrivateBetaInviteCode.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateProfile.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateReputationMiningCycleMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransaction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateSafeTransactionData.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPayment.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateStreamingPaymentMetadata.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateToken.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateTransaction.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUser.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserStake.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.postAuth.1.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.postAuth.1.req.vtl new file mode 100644 index 00000000000..366e6e2a85d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.postAuth.1.req.vtl @@ -0,0 +1,8 @@ +## [Start] Sandbox Mode Enabled. ** +#if( !$ctx.stash.get("hasAuth") ) + #if( $util.authType() != "API Key Authorization" ) + $util.unauthorized() + #end +#end +$util.toJson({}) +## [End] Sandbox Mode Enabled. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.req.vtl new file mode 100644 index 00000000000..f64092d4b3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.req.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Request template. ** +$util.toJson({ + "version": "2018-05-29", + "payload": {} +}) +## [End] Subscription Request template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.res.vtl new file mode 100644 index 00000000000..62769cc6625 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Subscription.onUpdateUserTokens.res.vtl @@ -0,0 +1,6 @@ +## [Start] Subscription Response template. ** +#if( !$util.isNullOrEmpty($ctx.args.filter) ) +$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) +#end +$util.toJson(null) +## [End] Subscription Response template. ** \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.req.vtl new file mode 100644 index 00000000000..9e2499f3b3c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "tokenID" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byToken" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Token.colonies.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Token.users.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Token.users.req.vtl new file mode 100644 index 00000000000..9e2499f3b3c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Token.users.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "tokenID" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byToken" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/Token.users.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/Token.users.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/Token.users.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.req.vtl new file mode 100644 index 00000000000..7f1320b02ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "userAddress" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byUserAddress" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.liquidationAddresses.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.req.vtl new file mode 100644 index 00000000000..afb5c0fb665 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("userPrivateBetaInviteCodeId"), $ctx.source.userPrivateBetaInviteCodeId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.privateBetaInviteCode.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.profile.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.profile.req.vtl new file mode 100644 index 00000000000..7bb7f4c3b6f --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.profile.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("profileId"), $ctx.source.profileId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.profile.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.profile.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.profile.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.roles.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.roles.req.vtl new file mode 100644 index 00000000000..1c05ec35502 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.roles.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "targetAddress" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyAddress.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyAddress.between[1]" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.eq" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.lt" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.le" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.gt" })) + #end + #if( !$util.isNull($ctx.args.colonyAddress) && !$util.isNull($ctx.args.colonyAddress.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyAddress")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyAddress.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byTargetAddress" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.roles.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.roles.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.roles.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.stakes.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.stakes.req.vtl new file mode 100644 index 00000000000..6a9693594a5 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.stakes.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "userId" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyId")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyId")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.colonyId.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.colonyId.between[1]" })) + #end + #if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyId")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.eq" })) + #end + #if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyId")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.lt" })) + #end + #if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyId")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.le" })) + #end + #if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyId")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.gt" })) + #end + #if( !$util.isNull($ctx.args.colonyId) && !$util.isNull($ctx.args.colonyId.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "colonyId")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.colonyId.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byUserAddress" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.stakes.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.stakes.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.stakes.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.tokens.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.tokens.req.vtl new file mode 100644 index 00000000000..b6d4715d5e9 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.tokens.req.vtl @@ -0,0 +1,69 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "userID" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byUser" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.tokens.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.tokens.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.tokens.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.req.vtl new file mode 100644 index 00000000000..7184f127e4e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.req.vtl @@ -0,0 +1,107 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttributes.get("id"), $ctx.source.id) ) +#if( $util.isNull($partitionKeyValue) ) + #set( $result = { + "items": [] +} ) + #return($result) +#else + #set( $limit = $util.defaultIfNull($context.args.limit, 100) ) + #set( $query = { + "expression": "#partitionKey = :partitionKey", + "expressionNames": { + "#partitionKey": "from" + }, + "expressionValues": { + ":partitionKey": $util.dynamodb.toDynamoDB($partitionKeyValue) + } +} ) + ## [Start] Applying Key Condition ** + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.beginsWith) ) + #set( $query.expression = "$query.expression AND begins_with(#sortKey, :sortKey)" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.beginsWith" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.between) ) + #set( $query.expression = "$query.expression AND #sortKey BETWEEN :sortKey0 AND :sortKey1" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey0", { "S": "$ctx.args.createdAt.between[0]" })) + $util.qr($query.expressionValues.put(":sortKey1", { "S": "$ctx.args.createdAt.between[1]" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.eq) ) + #set( $query.expression = "$query.expression AND #sortKey = :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.eq" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.lt) ) + #set( $query.expression = "$query.expression AND #sortKey < :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.lt" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.le) ) + #set( $query.expression = "$query.expression AND #sortKey <= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.le" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.gt) ) + #set( $query.expression = "$query.expression AND #sortKey > :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.gt" })) + #end + #if( !$util.isNull($ctx.args.createdAt) && !$util.isNull($ctx.args.createdAt.ge) ) + #set( $query.expression = "$query.expression AND #sortKey >= :sortKey" ) + $util.qr($query.expressionNames.put("#sortKey", "createdAt")) + $util.qr($query.expressionValues.put(":sortKey", { "S": "$ctx.args.createdAt.ge" })) + #end + ## [End] Applying Key Condition ** + #set( $args = $util.defaultIfNull($ctx.stash.transformedArgs, $ctx.args) ) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + #set( $filter = $ctx.stash.authFilter ) + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = { + "and": [$filter, $args.filter] +} ) + #end + #else + #if( !$util.isNullOrEmpty($args.filter) ) + #set( $filter = $args.filter ) + #end + #end + #if( !$util.isNullOrEmpty($filter) ) + #set( $filterExpression = $util.parseJson($util.transform.toDynamoDBFilterExpression($filter)) ) + #if( !$util.isNullOrBlank($filterExpression.expression) ) + #if( $filterExpression.expressionValues.size() == 0 ) + $util.qr($filterExpression.remove("expressionValues")) + #end + #set( $filter = $filterExpression ) + #end + #end +{ + "version": "2018-05-29", + "operation": "Query", + "query": $util.toJson($query), + "scanIndexForward": #if( $context.args.sortDirection ) + #if( $context.args.sortDirection == "ASC" ) +true + #else +false + #end + #else +true + #end, + "filter": #if( $filter ) +$util.toJson($filter) + #else +null + #end, + "limit": $limit, + "nextToken": #if( $context.args.nextToken ) +$util.toJson($context.args.nextToken) + #else +null + #end, + "index": "byInitiatorAddress" + } +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.res.vtl new file mode 100644 index 00000000000..b8c6c7ef5b2 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/User.transactionHistory.res.vtl @@ -0,0 +1,8 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$result ) + #set( $result = $ctx.result ) + #end + $util.toJson($result) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.req.vtl new file mode 100644 index 00000000000..c057d7767ec --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("actionId"), $ctx.source.actionId) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.action.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.req.vtl new file mode 100644 index 00000000000..25d874ec911 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("userAddress"), $ctx.source.userAddress) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserStake.user.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.req.vtl new file mode 100644 index 00000000000..71d94994fcb --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("tokenID"), $ctx.source.tokenID) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.token.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.req.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.req.vtl new file mode 100644 index 00000000000..e7b5bf769b3 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.req.vtl @@ -0,0 +1,25 @@ +#if( $ctx.stash.deniedField ) + #return($util.toJson(null)) +#end +#set( $partitionKeyValue = $util.defaultIfNull($ctx.stash.connectionAttibutes.get("userID"), $ctx.source.userID) ) +#if( $util.isNull($partitionKeyValue) ) + #return +#else + #set( $GetRequest = { + "version": "2018-05-29", + "operation": "Query" +} ) + $util.qr($GetRequest.put("query", { + "expression": "#partitionKey = :partitionValue", + "expressionNames": { + "#partitionKey": "id" + }, + "expressionValues": { + ":partitionValue": $util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank($partitionKeyValue, "___xamznone____"))) + } +})) + #if( !$util.isNullOrEmpty($ctx.stash.authFilter) ) + $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) + #end + $util.toJson($GetRequest) +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.res.vtl b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.res.vtl new file mode 100644 index 00000000000..5c6d459a1dc --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/resolvers/UserTokens.user.res.vtl @@ -0,0 +1,12 @@ +#if( $ctx.error ) +$util.error($ctx.error.message, $ctx.error.type) +#else + #if( !$ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) + $util.toJson($ctx.result.items[0]) + #else + #if( $ctx.result.items.isEmpty() && $ctx.result.scannedCount == 1 ) +$util.unauthorized() + #end + $util.toJson(null) + #end +#end \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/schema.graphql b/amplify/backend/api/colonycdapp/build/schema.graphql new file mode 100644 index 00000000000..4a16731387c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/schema.graphql @@ -0,0 +1,6245 @@ +"""Input data for fetching a token's information from DB or chain""" +input TokenFromEverywhereArguments { + """Address of the token on the blockchain""" + tokenAddress: String! + network: String + """The URL of the token image""" + avatar: String + """The URL of the token thumbnail image""" + thumbnail: String +} + +"""Input data for creating a unique user within the Colony Network Use this instead of the automatically generated `CreateUserInput` input type""" +input CreateUniqueUserInput { + """Unique identifier for the user. This is the user's wallet address""" + id: ID! + """Profile data for the user""" + profile: ProfileInput! +} + +"""Input data for a user's profile metadata""" +input ProfileMetadataInput { + """A flag to indicate whether the user has enabled metatransactions""" + metatransactionsEnabled: Boolean + """A flag to indicate whether the user has enabled the decentralized mode""" + decentralizedModeEnabled: Boolean + """The URL of the user's custom RPC node""" + customRpc: String +} + +"""Colonies can have different types of native tokens in various modes. Here we define some important properties that the dApp uses to enable or disable certain features or views. This is set when a Colony is created and can be changed later""" +input NativeTokenStatusInput { + """Whether the native token is unlocked""" + unlocked: Boolean + """Whether the native token is mintable""" + mintable: Boolean + """Whether the native token can be unlocked""" + unlockable: Boolean +} + +""" +Input data for a Colony's status information + +This is set when a Colony is created and can be changed later +""" +input ColonyStatusInput { + """Status information for the Colony's native token""" + nativeToken: NativeTokenStatusInput + """Whether the Colony is in recovery mode""" + recovery: Boolean +} + +"""Input data for creating a temporary colony metadata entry""" +input CreateColonyEtherealMetadataInput { + """User id of creator to associate with further invite codes""" + initiatorAddress: ID! + """The transaction hash of colony creation transaction""" + transactionHash: String! + """Invite Code to create Colony""" + inviteCode: ID! + """Colony slug""" + colonyName: String! + """Colony name""" + colonyDisplayName: String! + """Colony avatar/thumbnail""" + colonyAvatar: String + """Colony avatar/thumbnail""" + colonyThumbnail: String + """Token avatar/thumbnail""" + tokenAvatar: String + """Token avatar/thumbnail""" + tokenThumbnail: String +} + +"""Input data to use when creating or changing a user profile""" +input ProfileInput { + """The unique identifier for the user profile""" + id: ID + """The URL of the user's avatar image""" + avatar: String + """The URL of the user's thumbnail image""" + thumbnail: String + """The display name of the user""" + displayName: String + """A short description or biography of the user.""" + bio: String + """The user's location (e.g., city or country)""" + location: String + """The user's personal or professional website""" + website: AWSURL + """The user's email address""" + email: AWSEmail + """Any additional metadata or settings related to the user profile""" + meta: ProfileMetadataInput +} + +""" +Input data for a user's reputation within a Domain in a Colony. If no `domainId` is passed, the Root Domain is used +A `rootHash` can be provided, to get reputation at a certain point in the past +""" +input GetUserReputationInput { + """The Ethereum wallet address of the user""" + walletAddress: String! + """The Ethereum address of the Colony""" + colonyAddress: String! + """The ID of the Domain within the Colony. If not provided, defaults to the Root Domain""" + domainId: Int + """The root hash of the reputation tree at a specific point in time""" + rootHash: String +} + +input UpdateContributorsWithReputationInput { + """The colony address""" + colonyAddress: String +} + +""" +Input data for updating an extension's information within a Colony, based on the Colony ID and extension hash +The hash is generated like so: `keccak256(toUtf8Bytes(extensionName))`, where `extensionName` is the name of the extension contract file in the Colony Network +""" +input UpdateExtensionByColonyAndHashInput { + """The unique identifier for the Colony""" + colonyId: ID! + """The hash of the extension to be updated""" + hash: String! + """A flag to indicate whether the extension is deprecated""" + isDeprecated: Boolean + """A flag to indicate whether the extension is deleted""" + isDeleted: Boolean + """A flag to indicate whether the extension is initialized""" + isInitialized: Boolean + """The version of the extension""" + version: Int + """The Ethereum address of the user who installed the extension""" + installedBy: String + """The timestamp when the extension was installed""" + installedAt: AWSTimestamp +} + +input GetSafeTransactionStatusInput { + transactionHash: String! + chainId: String! +} + +input BridgeXYZQueryInput { + path: String! +} + +input BridgeXYZMutationAddressInput { + street_line_1: String! + street_line_2: String + city: String! + state: String + postcode: String + country: String! +} + +input BridgeXYZMutationIbanInput { + account_number: String! + bic: String! + country: String! +} + +input BridgeXYZMutationAccountInput { + account_number: String! + routing_number: String! +} + +input BridgeXYZMutationBodyInput { + full_name: String + email: String + first_name: String + last_name: String + address: BridgeXYZMutationAddressInput + birth_date: String + tax_identification_number: String + signed_agreement_id: String + currency: String + bank_name: String + iban: BridgeXYZMutationIbanInput + account: BridgeXYZMutationAccountInput +} + +input BridgeXYZMutationInput { + path: String! + body: BridgeXYZMutationBodyInput! +} + +type BridgeXYZIbanBankAccount { + last4: String! + bic: String! + country: String! +} + +type BridgeXYZUSBankAccount { + last4: String! + routingNumber: String! +} + +type BridgeXYZBankAccount { + id: String! + currency: String! + bankName: String! + iban: BridgeXYZIbanBankAccount + usAccount: BridgeXYZUSBankAccount +} + +type BridgeXYZMutationReturn { + tos_link: String + kyc_link: String + kyc_status: String + country: String + bankAccount: BridgeXYZBankAccount + success: Boolean +} + +type BridgeXYZDrain { + id: String +} + +type BridgeXYZQueryReturn { + drains: [BridgeXYZDrain] + success: Boolean + transactionFee: String +} + +"""Return type for tokens gotten from DB or from chain""" +type TokenFromEverywhereReturn { + """List of tokens found""" + items: [Token] +} + +"""Input data for retrieving a user's token balance for a specific token""" +input GetUserTokenBalanceInput { + """The wallet address of the user""" + walletAddress: String! + """The Colony address""" + colonyAddress: String! + """The address of the token""" + tokenAddress: String! +} + +"""Input data for retrieving the state of a motion (i.e. the current period)""" +input GetMotionStateInput { + """The Ethereum address of the Colony""" + colonyAddress: String! + """The internal id of the motion in the database""" + databaseMotionId: String! +} + +"""Input data for retrieving the voting rewards for a user within a finished motion""" +input GetVoterRewardsInput { + """The Ethereum address of the user who voted""" + voterAddress: String! + """The Ethereum address of the Colony""" + colonyAddress: String! + """The on chain id of the domain in which the motion was created""" + nativeMotionDomainId: String! + """The on chain id of the motion""" + motionId: String! + """The root hash of the reputation tree at the time the motion was created""" + rootHash: String! +} + +"""Input data for retrieving the timeout of the current period the motion is in""" +input GetMotionTimeoutPeriodsInput { + """The on chain id of the motion""" + motionId: String! + """The Ethereum address of the user who voted""" + colonyAddress: String! +} + +"""A return type representing the breakdown of a user's token balance""" +type GetUserTokenBalanceReturn { + """The total token balance, including inactive, locked, and active balances""" + balance: String + """ + The inactive portion of the user's token balance + This is the balance of a token that is in a users wallet but can't be used by the Colony Network (e.g. for governance) + """ + inactiveBalance: String + """ + The locked portion of the user's token balance + This is the balance of a token that is staked (e.g. in motions) + """ + lockedBalance: String + """ + The active portion of the user's token balance + This is the balance that is approved for the Colony Network to use (e.g. for governance) + """ + activeBalance: String + """ + The pending portion of the user's token balance + These are tokens that have been sent to the wallet, but are inaccessible until all locks are cleared and then these tokens are claimed + """ + pendingBalance: String +} + +""" +A return type that contains the timeout periods the motion can be in +Represented via a string-integer in milliseconds. Will report 0 for periods that are elapsed and will show the accumulated time for later periods +""" +type GetMotionTimeoutPeriodsReturn { + """Time left in staking period""" + timeLeftToStake: String! + """Time left in voting period""" + timeLeftToVote: String! + """Time left in reveal period""" + timeLeftToReveal: String! + """Time left in escalation period""" + timeLeftToEscalate: String! +} + +""" +A return type that contains the voting reward for a user and a motion +`min` and `max` specify the potential reward range when the actual reward is unknown (before the _reveal_ phase) +""" +type VoterRewardsReturn { + """ + The minimum possible reward amount + Only useful before the _reveal_ phase, when the actual amount is known + """ + min: String! + """ + The maximum possible reward amount + Only useful before the _reveal_ phase, when the actual amount is known + """ + max: String! + """The actual reward amount""" + reward: String! +} + +""" +Variants of different token types a Colony can use +As Colonies can use multiple tokens and even own tokens (BYOT), we need to differentiate +""" +enum TokenType { + """A (ERC20-compatible) token that was deployed with Colony. It has a few more features, like minting through the Colony itself""" + COLONY + """An ERC20-compatible token""" + ERC20 + """The native token of the Chain used (e.g. ETH on mainnet or xDAI on Gnosis-Chain)""" + CHAIN_NATIVE +} + +"""Variants of supported Ethereum networks""" +enum Network { + """Local development network using Ganache""" + GANACHE + """Ethereum Mainnet""" + MAINNET + """Ethereum Goerli test network""" + GOERLI + """Gnosis Chain network""" + GNOSIS + """Fork of Gnosis Chain for QA purposes""" + GNOSISFORK +} + +"""Variants of available domain colors as used in the dApp""" +enum DomainColor { + """The default domain color for the root domain. Only used by the root by default and cannot be selected by the user.""" + ROOT + """A light pink color""" + LIGHT_PINK + """A pink color""" + PINK + """A black color""" + BLACK + """An emerald green color""" + EMERALD_GREEN + """A blue color""" + BLUE + """A yellow color""" + YELLOW + """A red color""" + RED + """A green color""" + GREEN + """A pale indigo color""" + PERIWINKLE + """A gold color""" + GOLD + """An aqua color""" + AQUA + """A blue-grey(ish) color""" + BLUE_GREY + """A purple color""" + PURPLE + """An orange color""" + ORANGE + """A magenta color""" + MAGENTA + """A purple-grey(ish) color""" + PURPLE_GREY +} + +"""Variants of Colony types""" +enum ColonyType { + """A regular Colony""" + COLONY + """The MetaColony, which governs the entire Colony Network""" + METACOLONY +} + +""" +Variants of Colony Network blockchain events + +These can all happen in a Colony and will be interpreted by the dApp according to their types +""" +enum ColonyActionType { + """A generic or unspecified Colony action""" + GENERIC + """An motion action placeholder that should not be used""" + NULL_MOTION + """An action unrelated to the currently viewed Colony""" + WRONG_COLONY + """An action related to a payment within a Colony""" + PAYMENT + """An action related to making multiple payments within a Colony""" + MULTIPLE_PAYMENT + """An action related to a payment that was created via a motion within a Colony""" + PAYMENT_MOTION + """An action related to making multiple payments within a Colony""" + MULTIPLE_PAYMENT_MOTION + """An action related to the recovery functionality of a Colony""" + RECOVERY + """An action related to moving funds between domains""" + MOVE_FUNDS + """An action related to moving funds between domains via a motion""" + MOVE_FUNDS_MOTION + """An action related to unlocking a token within a Colony""" + UNLOCK_TOKEN + """An action related to unlocking a token within a Colony via a motion""" + UNLOCK_TOKEN_MOTION + """An action related to minting tokens within a Colony""" + MINT_TOKENS + """An action related to minting tokens within a Colony via a motion""" + MINT_TOKENS_MOTION + """An action related to creating a domain within a Colony""" + CREATE_DOMAIN + """An action related to creating a domain within a Colony via a motion""" + CREATE_DOMAIN_MOTION + """An action related to upgrading a Colony's version""" + VERSION_UPGRADE + """An action related to upgrading a Colony's version via a motion""" + VERSION_UPGRADE_MOTION + """An action related to editing a Colony's details""" + COLONY_EDIT + """An action related to editing a Colony's details via a motion""" + COLONY_EDIT_MOTION + """An action related to editing a domain's details""" + EDIT_DOMAIN + """An action related to editing a domain's details via a motion""" + EDIT_DOMAIN_MOTION + """An action related to setting user roles within a Colony""" + SET_USER_ROLES + """An action related to setting user roles within a Colony via a motion""" + SET_USER_ROLES_MOTION + """An action related to a domain reputation penalty within a Colony (smite)""" + EMIT_DOMAIN_REPUTATION_PENALTY + """An action related to a domain reputation penalty within a Colony (smite) via a motion""" + EMIT_DOMAIN_REPUTATION_PENALTY_MOTION + """An action related to a domain reputation reward within a Colony""" + EMIT_DOMAIN_REPUTATION_REWARD + """An action related to a domain reputation reward within a Colony via a motion""" + EMIT_DOMAIN_REPUTATION_REWARD_MOTION + """An action related to a creating a Decision within a Colony via a motion""" + CREATE_DECISION_MOTION + """An action related to creating a motion for funding an expenditure""" + FUND_EXPENDITURE_MOTION + """An action related to canceling an expenditure""" + CANCEL_EXPENDITURE + """An action related to a motion to cancel an expenditure""" + CANCEL_EXPENDITURE_MOTION + """An action related to creating a motion to release an expenditure stage""" + SET_EXPENDITURE_STATE_MOTION + """An action related to editing an expenditure""" + EDIT_EXPENDITURE + """An action related to creating a motion to edit an expenditure""" + EDIT_EXPENDITURE_MOTION + """An action related to the creation of safe transactions via Safe Control""" + MAKE_ARBITRARY_TRANSACTION + MAKE_ARBITRARY_TRANSACTIONS_MOTION + """An action related to adding verified members""" + ADD_VERIFIED_MEMBERS + ADD_VERIFIED_MEMBERS_MOTION + """An action related to removing verified members""" + REMOVE_VERIFIED_MEMBERS + REMOVE_VERIFIED_MEMBERS_MOTION + """An action related to creating an expenditure (advanced payment)""" + CREATE_EXPENDITURE + """An action related to locking an expenditure""" + LOCK_EXPENDITURE + """An action related to finalizing an expenditure""" + FINALIZE_EXPENDITURE + """An action related to finalizing an expenditure via a motion""" + FINALIZE_EXPENDITURE_MOTION +} + +"""Variants of sorting methods for a member list""" +enum SortingMethod { + """Sort members by highest reputation""" + BY_HIGHEST_REP + """Sort members by lowest reputation""" + BY_LOWEST_REP + """Sort members by having more permissions""" + BY_MORE_PERMISSIONS + """Sort members by having fewer permissions""" + BY_LESS_PERMISSIONS +} + +enum FilteringMethod { + """Apply a union filter""" + UNION + """Apply an intersection filter""" + INTERSECTION +} + +enum ExpenditureStatus { + DRAFT + LOCKED + FINALIZED + CANCELLED +} + +enum ExpenditureType { + PAYMENT_BUILDER + STAGED +} + +enum StreamingPaymentEndCondition { + WHEN_CANCELLED + LIMIT_REACHED + FIXED_TIME +} + +"""The types of contributor a user can be in a colony""" +enum ContributorType { + TOP + DEDICATED + ACTIVE + NEW + GENERAL +} + +"""Root query type""" +type Query { + """Fetch a token's information. Tries to get the data from the DB first, if that fails, resolves to get data from chain""" + getTokenFromEverywhere(input: TokenFromEverywhereArguments): TokenFromEverywhereReturn + """Retrieve a user's reputation within a specific domain in a Colony""" + getUserReputation(input: GetUserReputationInput): String + """Retrieve a user's token balance for a specific token""" + getUserTokenBalance(input: GetUserTokenBalanceInput): GetUserTokenBalanceReturn + """Get the state of a motion (i.e. the current period)""" + getMotionState(input: GetMotionStateInput): Int! + """Get the voting reward for a user and a motion""" + getVoterRewards(input: GetVoterRewardsInput): VoterRewardsReturn + """Get the timeout for the current period of a motion""" + getMotionTimeoutPeriods(input: GetMotionTimeoutPeriodsInput): GetMotionTimeoutPeriodsReturn + getSafeTransactionStatus(input: GetSafeTransactionStatusInput): [String!] + """Fetch from the Bridge XYZ API""" + bridgeXYZQuery(input: BridgeXYZQueryInput!): BridgeXYZQueryReturn + searchColonyContributors(filter: SearchableColonyContributorFilterInput, sort: [SearchableColonyContributorSortInput], limit: Int, nextToken: String, from: Int, aggregates: [SearchableColonyContributorAggregationInput]): SearchableColonyContributorConnection + searchColonyActions(filter: SearchableColonyActionFilterInput, sort: [SearchableColonyActionSortInput], limit: Int, nextToken: String, from: Int, aggregates: [SearchableColonyActionAggregationInput]): SearchableColonyActionConnection + getProfile(id: ID!): Profile + listProfiles(filter: ModelProfileFilterInput, limit: Int, nextToken: String): ModelProfileConnection + getToken(id: ID!): Token + listTokens(filter: ModelTokenFilterInput, limit: Int, nextToken: String): ModelTokenConnection + getContributorReputation(id: ID!): ContributorReputation + listContributorReputations(filter: ModelContributorReputationFilterInput, limit: Int, nextToken: String): ModelContributorReputationConnection + getColonyContributor(id: ID!): ColonyContributor + listColonyContributors(filter: ModelColonyContributorFilterInput, limit: Int, nextToken: String): ModelColonyContributorConnection + getColony(id: ID!): Colony + listColonies(filter: ModelColonyFilterInput, limit: Int, nextToken: String): ModelColonyConnection + getColonyMemberInvite(id: ID!): ColonyMemberInvite + listColonyMemberInvites(filter: ModelColonyMemberInviteFilterInput, limit: Int, nextToken: String): ModelColonyMemberInviteConnection + getColonyMetadata(id: ID!): ColonyMetadata + listColonyMetadata(filter: ModelColonyMetadataFilterInput, limit: Int, nextToken: String): ModelColonyMetadataConnection + getTransaction(id: ID!): Transaction + listTransactions(filter: ModelTransactionFilterInput, limit: Int, nextToken: String): ModelTransactionConnection + getUser(id: ID!): User + listUsers(filter: ModelUserFilterInput, limit: Int, nextToken: String): ModelUserConnection + getLiquidationAddress(id: ID!): LiquidationAddress + listLiquidationAddresses(filter: ModelLiquidationAddressFilterInput, limit: Int, nextToken: String): ModelLiquidationAddressConnection + getColonyStake(id: ID!): ColonyStake + listColonyStakes(filter: ModelColonyStakeFilterInput, limit: Int, nextToken: String): ModelColonyStakeConnection + getDomain(id: ID!): Domain + listDomains(filter: ModelDomainFilterInput, limit: Int, nextToken: String): ModelDomainConnection + getDomainMetadata(id: ID!): DomainMetadata + listDomainMetadata(filter: ModelDomainMetadataFilterInput, limit: Int, nextToken: String): ModelDomainMetadataConnection + getColonyFundsClaim(id: ID!): ColonyFundsClaim + listColonyFundsClaims(filter: ModelColonyFundsClaimFilterInput, limit: Int, nextToken: String): ModelColonyFundsClaimConnection + getMotionMessage(id: ID!): MotionMessage + listMotionMessages(filter: ModelMotionMessageFilterInput, limit: Int, nextToken: String): ModelMotionMessageConnection + getColonyMotion(id: ID!): ColonyMotion + listColonyMotions(filter: ModelColonyMotionFilterInput, limit: Int, nextToken: String): ModelColonyMotionConnection + getContractEvent(id: ID!): ContractEvent + listContractEvents(filter: ModelContractEventFilterInput, limit: Int, nextToken: String): ModelContractEventConnection + getColonyExtension(id: ID!): ColonyExtension + listColonyExtensions(filter: ModelColonyExtensionFilterInput, limit: Int, nextToken: String): ModelColonyExtensionConnection + getCurrentVersion(id: ID!): CurrentVersion + listCurrentVersions(filter: ModelCurrentVersionFilterInput, limit: Int, nextToken: String): ModelCurrentVersionConnection + getCurrentNetworkInverseFee(id: ID!): CurrentNetworkInverseFee + listCurrentNetworkInverseFees(filter: ModelCurrentNetworkInverseFeeFilterInput, limit: Int, nextToken: String): ModelCurrentNetworkInverseFeeConnection + getColonyAction(id: ID!): ColonyAction + listColonyActions(filter: ModelColonyActionFilterInput, limit: Int, nextToken: String): ModelColonyActionConnection + getColonyActionMetadata(id: ID!): ColonyActionMetadata + listColonyActionMetadata(filter: ModelColonyActionMetadataFilterInput, limit: Int, nextToken: String): ModelColonyActionMetadataConnection + getColonyDecision(id: ID!): ColonyDecision + listColonyDecisions(filter: ModelColonyDecisionFilterInput, limit: Int, nextToken: String): ModelColonyDecisionConnection + getColonyRole(id: ID!): ColonyRole + listColonyRoles(filter: ModelColonyRoleFilterInput, limit: Int, nextToken: String): ModelColonyRoleConnection + getColonyHistoricRole(id: ID!): ColonyHistoricRole + listColonyHistoricRoles(filter: ModelColonyHistoricRoleFilterInput, limit: Int, nextToken: String): ModelColonyHistoricRoleConnection + getIngestorStats(id: ID!): IngestorStats + listIngestorStats(filter: ModelIngestorStatsFilterInput, limit: Int, nextToken: String): ModelIngestorStatsConnection + getExpenditure(id: ID!): Expenditure + listExpenditures(filter: ModelExpenditureFilterInput, limit: Int, nextToken: String): ModelExpenditureConnection + getExpenditureMetadata(id: ID!): ExpenditureMetadata + listExpenditureMetadata(filter: ModelExpenditureMetadataFilterInput, limit: Int, nextToken: String): ModelExpenditureMetadataConnection + getStreamingPayment(id: ID!): StreamingPayment + listStreamingPayments(filter: ModelStreamingPaymentFilterInput, limit: Int, nextToken: String): ModelStreamingPaymentConnection + getStreamingPaymentMetadata(id: ID!): StreamingPaymentMetadata + listStreamingPaymentMetadata(filter: ModelStreamingPaymentMetadataFilterInput, limit: Int, nextToken: String): ModelStreamingPaymentMetadataConnection + getAnnotation(id: ID!): Annotation + listAnnotations(filter: ModelAnnotationFilterInput, limit: Int, nextToken: String): ModelAnnotationConnection + getReputationMiningCycleMetadata(id: ID!): ReputationMiningCycleMetadata + listReputationMiningCycleMetadata(filter: ModelReputationMiningCycleMetadataFilterInput, limit: Int, nextToken: String): ModelReputationMiningCycleMetadataConnection + getPrivateBetaInviteCode(id: ID!): PrivateBetaInviteCode + listPrivateBetaInviteCodes(filter: ModelPrivateBetaInviteCodeFilterInput, limit: Int, nextToken: String): ModelPrivateBetaInviteCodeConnection + getSafeTransaction(id: ID!): SafeTransaction + listSafeTransactions(filter: ModelSafeTransactionFilterInput, limit: Int, nextToken: String): ModelSafeTransactionConnection + getSafeTransactionData(id: ID!): SafeTransactionData + listSafeTransactionData(filter: ModelSafeTransactionDataFilterInput, limit: Int, nextToken: String): ModelSafeTransactionDataConnection + getExtensionInstallationsCount(id: ID!): ExtensionInstallationsCount + listExtensionInstallationsCounts(filter: ModelExtensionInstallationsCountFilterInput, limit: Int, nextToken: String): ModelExtensionInstallationsCountConnection + getUserStake(id: ID!): UserStake + listUserStakes(filter: ModelUserStakeFilterInput, limit: Int, nextToken: String): ModelUserStakeConnection + getColonyTokens(id: ID!): ColonyTokens + listColonyTokens(filter: ModelColonyTokensFilterInput, limit: Int, nextToken: String): ModelColonyTokensConnection + getUserTokens(id: ID!): UserTokens + listUserTokens(filter: ModelUserTokensFilterInput, limit: Int, nextToken: String): ModelUserTokensConnection + getProfileByUsername(displayName: String!, sortDirection: ModelSortDirection, filter: ModelProfileFilterInput, limit: Int, nextToken: String): ModelProfileConnection + getProfileByEmail(email: AWSEmail!, sortDirection: ModelSortDirection, filter: ModelProfileFilterInput, limit: Int, nextToken: String): ModelProfileConnection + getTokenByAddress(id: ID!, sortDirection: ModelSortDirection, filter: ModelTokenFilterInput, limit: Int, nextToken: String): ModelTokenConnection + getTokensByType(type: TokenType!, sortDirection: ModelSortDirection, filter: ModelTokenFilterInput, limit: Int, nextToken: String): ModelTokenConnection + getUserReputationInColony(contributorAddress: ID!, colonyAddress: ModelIDKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelContributorReputationFilterInput, limit: Int, nextToken: String): ModelContributorReputationConnection + getContributorsByAddress(contributorAddress: ID!, colonyReputationPercentage: ModelFloatKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyContributorFilterInput, limit: Int, nextToken: String): ModelColonyContributorConnection + getContributorsByColony(colonyAddress: ID!, colonyReputationPercentage: ModelFloatKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyContributorFilterInput, limit: Int, nextToken: String): ModelColonyContributorConnection + getColonyByAddress(id: ID!, sortDirection: ModelSortDirection, filter: ModelColonyFilterInput, limit: Int, nextToken: String): ModelColonyConnection + getColonyByName(name: String!, sortDirection: ModelSortDirection, filter: ModelColonyFilterInput, limit: Int, nextToken: String): ModelColonyConnection + getColoniesByNativeTokenId(nativeTokenId: ID!, sortDirection: ModelSortDirection, filter: ModelColonyFilterInput, limit: Int, nextToken: String): ModelColonyConnection + getColonyByType(type: ColonyType!, sortDirection: ModelSortDirection, filter: ModelColonyFilterInput, limit: Int, nextToken: String): ModelColonyConnection + getTransactionsByUser(from: ID!, createdAt: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelTransactionFilterInput, limit: Int, nextToken: String): ModelTransactionConnection + getTransactionsByUserAndGroup(groupId: ID!, from: ModelIDKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelTransactionFilterInput, limit: Int, nextToken: String): ModelTransactionConnection + getUserByAddress(id: ID!, sortDirection: ModelSortDirection, filter: ModelUserFilterInput, limit: Int, nextToken: String): ModelUserConnection + getLiquidationAddressesByUserAddress(userAddress: ID!, sortDirection: ModelSortDirection, filter: ModelLiquidationAddressFilterInput, limit: Int, nextToken: String): ModelLiquidationAddressConnection + getUserByLiquidationAddress(liquidationAddress: ID!, sortDirection: ModelSortDirection, filter: ModelLiquidationAddressFilterInput, limit: Int, nextToken: String): ModelLiquidationAddressConnection + getColonyStakeByUserAddress(userId: ID!, colonyId: ModelIDKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyStakeFilterInput, limit: Int, nextToken: String): ModelColonyStakeConnection + getMotionMessageByMotionId(motionId: ID!, createdAt: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelMotionMessageFilterInput, limit: Int, nextToken: String): ModelMotionMessageConnection + getMotionByTransactionHash(transactionHash: ID!, sortDirection: ModelSortDirection, filter: ModelColonyMotionFilterInput, limit: Int, nextToken: String): ModelColonyMotionConnection + getMotionByExpenditureId(expenditureId: ID!, sortDirection: ModelSortDirection, filter: ModelColonyMotionFilterInput, limit: Int, nextToken: String): ModelColonyMotionConnection + getExtensionByColonyAndHash(colonyId: ID!, hash: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyExtensionFilterInput, limit: Int, nextToken: String): ModelColonyExtensionConnection + getExtensionsByHash(hash: String!, sortDirection: ModelSortDirection, filter: ModelColonyExtensionFilterInput, limit: Int, nextToken: String): ModelColonyExtensionConnection + getCurrentVersionByKey(key: String!, sortDirection: ModelSortDirection, filter: ModelCurrentVersionFilterInput, limit: Int, nextToken: String): ModelCurrentVersionConnection + getActionsByColony(colonyId: ID!, createdAt: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyActionFilterInput, limit: Int, nextToken: String): ModelColonyActionConnection + getColonyActionByMotionId(motionId: ID!, sortDirection: ModelSortDirection, filter: ModelColonyActionFilterInput, limit: Int, nextToken: String): ModelColonyActionConnection + getActionByExpenditureId(expenditureId: ID!, sortDirection: ModelSortDirection, filter: ModelColonyActionFilterInput, limit: Int, nextToken: String): ModelColonyActionConnection + getColonyDecisionByActionId(actionId: ID!, sortDirection: ModelSortDirection, filter: ModelColonyDecisionFilterInput, limit: Int, nextToken: String): ModelColonyDecisionConnection + getColonyDecisionByColonyAddress(colonyAddress: String!, createdAt: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyDecisionFilterInput, limit: Int, nextToken: String): ModelColonyDecisionConnection + getRoleByDomainAndColony(domainId: ID!, colonyAddress: ModelIDKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyRoleFilterInput, limit: Int, nextToken: String): ModelColonyRoleConnection + getRoleByTargetAddressAndColony(targetAddress: ID!, colonyAddress: ModelIDKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyRoleFilterInput, limit: Int, nextToken: String): ModelColonyRoleConnection + getColonyHistoricRoleByDate(type: String!, createdAt: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelColonyHistoricRoleFilterInput, limit: Int, nextToken: String): ModelColonyHistoricRoleConnection + getExpendituresByColony(colonyId: ID!, createdAt: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelExpenditureFilterInput, limit: Int, nextToken: String): ModelExpenditureConnection + getExpendituresByNativeFundingPotIdAndColony(nativeFundingPotId: Int!, colonyId: ModelIDKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelExpenditureFilterInput, limit: Int, nextToken: String): ModelExpenditureConnection + getUserStakes(userAddress: ID!, createdAt: ModelStringKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelUserStakeFilterInput, limit: Int, nextToken: String): ModelUserStakeConnection +} + +"""Root mutation type""" +type Mutation { + """Create a unique user within the Colony Network. Use this instead of the automatically generated `createUser` mutation""" + createUniqueUser(input: CreateUniqueUserInput): User + """Create temporary metadata entry for an upcoming colony (that will be created by the ingestor)""" + createColonyEtherealMetadata(input: CreateColonyEtherealMetadataInput!): ColonyMetadata + """Update contributors with reputation in the database for a colony""" + updateContributorsWithReputation(input: UpdateContributorsWithReputationInput!): Boolean + """Validates the user invite code and adds the user as a colony contributor""" + validateUserInvite(input: ValidateUserInviteInput!): Boolean + """Post to the Bridge XYZ API""" + bridgeXYZMutation(input: BridgeXYZMutationInput!): BridgeXYZMutationReturn + createProfile(input: CreateProfileInput!, condition: ModelProfileConditionInput): Profile + updateProfile(input: UpdateProfileInput!, condition: ModelProfileConditionInput): Profile + deleteProfile(input: DeleteProfileInput!, condition: ModelProfileConditionInput): Profile + createToken(input: CreateTokenInput!, condition: ModelTokenConditionInput): Token + updateToken(input: UpdateTokenInput!, condition: ModelTokenConditionInput): Token + deleteToken(input: DeleteTokenInput!, condition: ModelTokenConditionInput): Token + createContributorReputation(input: CreateContributorReputationInput!, condition: ModelContributorReputationConditionInput): ContributorReputation + updateContributorReputation(input: UpdateContributorReputationInput!, condition: ModelContributorReputationConditionInput): ContributorReputation + deleteContributorReputation(input: DeleteContributorReputationInput!, condition: ModelContributorReputationConditionInput): ContributorReputation + createColonyContributor(input: CreateColonyContributorInput!, condition: ModelColonyContributorConditionInput): ColonyContributor + updateColonyContributor(input: UpdateColonyContributorInput!, condition: ModelColonyContributorConditionInput): ColonyContributor + deleteColonyContributor(input: DeleteColonyContributorInput!, condition: ModelColonyContributorConditionInput): ColonyContributor + createColony(input: CreateColonyInput!, condition: ModelColonyConditionInput): Colony + updateColony(input: UpdateColonyInput!, condition: ModelColonyConditionInput): Colony + deleteColony(input: DeleteColonyInput!, condition: ModelColonyConditionInput): Colony + createColonyMemberInvite(input: CreateColonyMemberInviteInput!, condition: ModelColonyMemberInviteConditionInput): ColonyMemberInvite + updateColonyMemberInvite(input: UpdateColonyMemberInviteInput!, condition: ModelColonyMemberInviteConditionInput): ColonyMemberInvite + deleteColonyMemberInvite(input: DeleteColonyMemberInviteInput!, condition: ModelColonyMemberInviteConditionInput): ColonyMemberInvite + createColonyMetadata(input: CreateColonyMetadataInput!, condition: ModelColonyMetadataConditionInput): ColonyMetadata + updateColonyMetadata(input: UpdateColonyMetadataInput!, condition: ModelColonyMetadataConditionInput): ColonyMetadata + deleteColonyMetadata(input: DeleteColonyMetadataInput!, condition: ModelColonyMetadataConditionInput): ColonyMetadata + createTransaction(input: CreateTransactionInput!, condition: ModelTransactionConditionInput): Transaction + updateTransaction(input: UpdateTransactionInput!, condition: ModelTransactionConditionInput): Transaction + deleteTransaction(input: DeleteTransactionInput!, condition: ModelTransactionConditionInput): Transaction + createUser(input: CreateUserInput!, condition: ModelUserConditionInput): User + updateUser(input: UpdateUserInput!, condition: ModelUserConditionInput): User + deleteUser(input: DeleteUserInput!, condition: ModelUserConditionInput): User + createLiquidationAddress(input: CreateLiquidationAddressInput!, condition: ModelLiquidationAddressConditionInput): LiquidationAddress + updateLiquidationAddress(input: UpdateLiquidationAddressInput!, condition: ModelLiquidationAddressConditionInput): LiquidationAddress + deleteLiquidationAddress(input: DeleteLiquidationAddressInput!, condition: ModelLiquidationAddressConditionInput): LiquidationAddress + createColonyStake(input: CreateColonyStakeInput!, condition: ModelColonyStakeConditionInput): ColonyStake + updateColonyStake(input: UpdateColonyStakeInput!, condition: ModelColonyStakeConditionInput): ColonyStake + deleteColonyStake(input: DeleteColonyStakeInput!, condition: ModelColonyStakeConditionInput): ColonyStake + createDomain(input: CreateDomainInput!, condition: ModelDomainConditionInput): Domain + updateDomain(input: UpdateDomainInput!, condition: ModelDomainConditionInput): Domain + deleteDomain(input: DeleteDomainInput!, condition: ModelDomainConditionInput): Domain + createDomainMetadata(input: CreateDomainMetadataInput!, condition: ModelDomainMetadataConditionInput): DomainMetadata + updateDomainMetadata(input: UpdateDomainMetadataInput!, condition: ModelDomainMetadataConditionInput): DomainMetadata + deleteDomainMetadata(input: DeleteDomainMetadataInput!, condition: ModelDomainMetadataConditionInput): DomainMetadata + createColonyFundsClaim(input: CreateColonyFundsClaimInput!, condition: ModelColonyFundsClaimConditionInput): ColonyFundsClaim + updateColonyFundsClaim(input: UpdateColonyFundsClaimInput!, condition: ModelColonyFundsClaimConditionInput): ColonyFundsClaim + deleteColonyFundsClaim(input: DeleteColonyFundsClaimInput!, condition: ModelColonyFundsClaimConditionInput): ColonyFundsClaim + createMotionMessage(input: CreateMotionMessageInput!, condition: ModelMotionMessageConditionInput): MotionMessage + updateMotionMessage(input: UpdateMotionMessageInput!, condition: ModelMotionMessageConditionInput): MotionMessage + deleteMotionMessage(input: DeleteMotionMessageInput!, condition: ModelMotionMessageConditionInput): MotionMessage + createColonyMotion(input: CreateColonyMotionInput!, condition: ModelColonyMotionConditionInput): ColonyMotion + updateColonyMotion(input: UpdateColonyMotionInput!, condition: ModelColonyMotionConditionInput): ColonyMotion + deleteColonyMotion(input: DeleteColonyMotionInput!, condition: ModelColonyMotionConditionInput): ColonyMotion + createContractEvent(input: CreateContractEventInput!, condition: ModelContractEventConditionInput): ContractEvent + updateContractEvent(input: UpdateContractEventInput!, condition: ModelContractEventConditionInput): ContractEvent + deleteContractEvent(input: DeleteContractEventInput!, condition: ModelContractEventConditionInput): ContractEvent + createColonyExtension(input: CreateColonyExtensionInput!, condition: ModelColonyExtensionConditionInput): ColonyExtension + updateColonyExtension(input: UpdateColonyExtensionInput!, condition: ModelColonyExtensionConditionInput): ColonyExtension + deleteColonyExtension(input: DeleteColonyExtensionInput!, condition: ModelColonyExtensionConditionInput): ColonyExtension + createCurrentVersion(input: CreateCurrentVersionInput!, condition: ModelCurrentVersionConditionInput): CurrentVersion + updateCurrentVersion(input: UpdateCurrentVersionInput!, condition: ModelCurrentVersionConditionInput): CurrentVersion + deleteCurrentVersion(input: DeleteCurrentVersionInput!, condition: ModelCurrentVersionConditionInput): CurrentVersion + createCurrentNetworkInverseFee(input: CreateCurrentNetworkInverseFeeInput!, condition: ModelCurrentNetworkInverseFeeConditionInput): CurrentNetworkInverseFee + updateCurrentNetworkInverseFee(input: UpdateCurrentNetworkInverseFeeInput!, condition: ModelCurrentNetworkInverseFeeConditionInput): CurrentNetworkInverseFee + deleteCurrentNetworkInverseFee(input: DeleteCurrentNetworkInverseFeeInput!, condition: ModelCurrentNetworkInverseFeeConditionInput): CurrentNetworkInverseFee + createColonyAction(input: CreateColonyActionInput!, condition: ModelColonyActionConditionInput): ColonyAction + updateColonyAction(input: UpdateColonyActionInput!, condition: ModelColonyActionConditionInput): ColonyAction + deleteColonyAction(input: DeleteColonyActionInput!, condition: ModelColonyActionConditionInput): ColonyAction + createColonyActionMetadata(input: CreateColonyActionMetadataInput!, condition: ModelColonyActionMetadataConditionInput): ColonyActionMetadata + updateColonyActionMetadata(input: UpdateColonyActionMetadataInput!, condition: ModelColonyActionMetadataConditionInput): ColonyActionMetadata + deleteColonyActionMetadata(input: DeleteColonyActionMetadataInput!, condition: ModelColonyActionMetadataConditionInput): ColonyActionMetadata + createColonyDecision(input: CreateColonyDecisionInput!, condition: ModelColonyDecisionConditionInput): ColonyDecision + updateColonyDecision(input: UpdateColonyDecisionInput!, condition: ModelColonyDecisionConditionInput): ColonyDecision + deleteColonyDecision(input: DeleteColonyDecisionInput!, condition: ModelColonyDecisionConditionInput): ColonyDecision + createColonyRole(input: CreateColonyRoleInput!, condition: ModelColonyRoleConditionInput): ColonyRole + updateColonyRole(input: UpdateColonyRoleInput!, condition: ModelColonyRoleConditionInput): ColonyRole + deleteColonyRole(input: DeleteColonyRoleInput!, condition: ModelColonyRoleConditionInput): ColonyRole + createColonyHistoricRole(input: CreateColonyHistoricRoleInput!, condition: ModelColonyHistoricRoleConditionInput): ColonyHistoricRole + updateColonyHistoricRole(input: UpdateColonyHistoricRoleInput!, condition: ModelColonyHistoricRoleConditionInput): ColonyHistoricRole + deleteColonyHistoricRole(input: DeleteColonyHistoricRoleInput!, condition: ModelColonyHistoricRoleConditionInput): ColonyHistoricRole + createIngestorStats(input: CreateIngestorStatsInput!, condition: ModelIngestorStatsConditionInput): IngestorStats + updateIngestorStats(input: UpdateIngestorStatsInput!, condition: ModelIngestorStatsConditionInput): IngestorStats + deleteIngestorStats(input: DeleteIngestorStatsInput!, condition: ModelIngestorStatsConditionInput): IngestorStats + createExpenditure(input: CreateExpenditureInput!, condition: ModelExpenditureConditionInput): Expenditure + updateExpenditure(input: UpdateExpenditureInput!, condition: ModelExpenditureConditionInput): Expenditure + deleteExpenditure(input: DeleteExpenditureInput!, condition: ModelExpenditureConditionInput): Expenditure + createExpenditureMetadata(input: CreateExpenditureMetadataInput!, condition: ModelExpenditureMetadataConditionInput): ExpenditureMetadata + updateExpenditureMetadata(input: UpdateExpenditureMetadataInput!, condition: ModelExpenditureMetadataConditionInput): ExpenditureMetadata + deleteExpenditureMetadata(input: DeleteExpenditureMetadataInput!, condition: ModelExpenditureMetadataConditionInput): ExpenditureMetadata + createStreamingPayment(input: CreateStreamingPaymentInput!, condition: ModelStreamingPaymentConditionInput): StreamingPayment + updateStreamingPayment(input: UpdateStreamingPaymentInput!, condition: ModelStreamingPaymentConditionInput): StreamingPayment + deleteStreamingPayment(input: DeleteStreamingPaymentInput!, condition: ModelStreamingPaymentConditionInput): StreamingPayment + createStreamingPaymentMetadata(input: CreateStreamingPaymentMetadataInput!, condition: ModelStreamingPaymentMetadataConditionInput): StreamingPaymentMetadata + updateStreamingPaymentMetadata(input: UpdateStreamingPaymentMetadataInput!, condition: ModelStreamingPaymentMetadataConditionInput): StreamingPaymentMetadata + deleteStreamingPaymentMetadata(input: DeleteStreamingPaymentMetadataInput!, condition: ModelStreamingPaymentMetadataConditionInput): StreamingPaymentMetadata + createAnnotation(input: CreateAnnotationInput!, condition: ModelAnnotationConditionInput): Annotation + updateAnnotation(input: UpdateAnnotationInput!, condition: ModelAnnotationConditionInput): Annotation + deleteAnnotation(input: DeleteAnnotationInput!, condition: ModelAnnotationConditionInput): Annotation + createReputationMiningCycleMetadata(input: CreateReputationMiningCycleMetadataInput!, condition: ModelReputationMiningCycleMetadataConditionInput): ReputationMiningCycleMetadata + updateReputationMiningCycleMetadata(input: UpdateReputationMiningCycleMetadataInput!, condition: ModelReputationMiningCycleMetadataConditionInput): ReputationMiningCycleMetadata + deleteReputationMiningCycleMetadata(input: DeleteReputationMiningCycleMetadataInput!, condition: ModelReputationMiningCycleMetadataConditionInput): ReputationMiningCycleMetadata + createPrivateBetaInviteCode(input: CreatePrivateBetaInviteCodeInput!, condition: ModelPrivateBetaInviteCodeConditionInput): PrivateBetaInviteCode + updatePrivateBetaInviteCode(input: UpdatePrivateBetaInviteCodeInput!, condition: ModelPrivateBetaInviteCodeConditionInput): PrivateBetaInviteCode + deletePrivateBetaInviteCode(input: DeletePrivateBetaInviteCodeInput!, condition: ModelPrivateBetaInviteCodeConditionInput): PrivateBetaInviteCode + createSafeTransaction(input: CreateSafeTransactionInput!, condition: ModelSafeTransactionConditionInput): SafeTransaction + updateSafeTransaction(input: UpdateSafeTransactionInput!, condition: ModelSafeTransactionConditionInput): SafeTransaction + deleteSafeTransaction(input: DeleteSafeTransactionInput!, condition: ModelSafeTransactionConditionInput): SafeTransaction + createSafeTransactionData(input: CreateSafeTransactionDataInput!, condition: ModelSafeTransactionDataConditionInput): SafeTransactionData + updateSafeTransactionData(input: UpdateSafeTransactionDataInput!, condition: ModelSafeTransactionDataConditionInput): SafeTransactionData + deleteSafeTransactionData(input: DeleteSafeTransactionDataInput!, condition: ModelSafeTransactionDataConditionInput): SafeTransactionData + createExtensionInstallationsCount(input: CreateExtensionInstallationsCountInput!, condition: ModelExtensionInstallationsCountConditionInput): ExtensionInstallationsCount + updateExtensionInstallationsCount(input: UpdateExtensionInstallationsCountInput!, condition: ModelExtensionInstallationsCountConditionInput): ExtensionInstallationsCount + deleteExtensionInstallationsCount(input: DeleteExtensionInstallationsCountInput!, condition: ModelExtensionInstallationsCountConditionInput): ExtensionInstallationsCount + createUserStake(input: CreateUserStakeInput!, condition: ModelUserStakeConditionInput): UserStake + updateUserStake(input: UpdateUserStakeInput!, condition: ModelUserStakeConditionInput): UserStake + deleteUserStake(input: DeleteUserStakeInput!, condition: ModelUserStakeConditionInput): UserStake + createColonyTokens(input: CreateColonyTokensInput!, condition: ModelColonyTokensConditionInput): ColonyTokens + updateColonyTokens(input: UpdateColonyTokensInput!, condition: ModelColonyTokensConditionInput): ColonyTokens + deleteColonyTokens(input: DeleteColonyTokensInput!, condition: ModelColonyTokensConditionInput): ColonyTokens + createUserTokens(input: CreateUserTokensInput!, condition: ModelUserTokensConditionInput): UserTokens + updateUserTokens(input: UpdateUserTokensInput!, condition: ModelUserTokensConditionInput): UserTokens + deleteUserTokens(input: DeleteUserTokensInput!, condition: ModelUserTokensConditionInput): UserTokens +} + +"""Represents the currencies/tokens that users' balances can be converted to (for display purposes)""" +enum SupportedCurrencies { + USD + JPY + GBP + EUR + CAD + KRW + INR + BRL + ETH + CLNY +} + +"""Represents a user's profile within the Colony Network""" +type Profile { + """Unique identifier for the user's profile""" + id: ID! + """URL of the user's avatar image""" + avatar: String + """URL of the user's thumbnail image""" + thumbnail: String + """Display name of the user""" + displayName: String + """Date displayName was changed""" + displayNameChanged: AWSDateTime + """User's bio information""" + bio: String + """User's location information""" + location: String + """URL of the user's website""" + website: AWSURL + """User's email address""" + email: AWSEmail + """Metadata associated with the user's profile""" + meta: ProfileMetadata + """The user associated with this profile""" + user: User! + """A user's prefered currency, for conversion purposes""" + preferredCurrency: SupportedCurrencies + """Is automatic offramp enabled""" + isAutoOfframpEnabled: Boolean + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +""" +Represents the status of a Colony's native token +Colonies can have different types of native tokens in various modes. Here we define some important properties that the dApp uses to enable or disable certain features or views. This is set when a Colony is created and can be changed later +""" +type NativeTokenStatus { + """Whether the native token is unlocked""" + unlocked: Boolean + """Whether the user has permissions to mint new tokens""" + mintable: Boolean + """Whether the native token can be unlocked""" + unlockable: Boolean +} + +""" +Represents the status of a Colony + +This contains important meta information about the Colony's token and other fundamental settings +""" +type ColonyStatus { + """Status information for the Colony's native token""" + nativeToken: NativeTokenStatus + """Whether the Colony is in recovery mode""" + recovery: Boolean +} + +""" +Represents metadata related to a blockchain event +Applies to Colonies, Tokens and Events, but not all fields are revlant to all +It does not apply to user accounts as they can live on all networks +""" +type ChainMetadata { + """The network the event occurred on""" + network: Network + """The chain ID of the event""" + chainId: String! + """The transaction hash of the event""" + transactionHash: String + """The log index of the event""" + logIndex: Int + """The block number of the event""" + blockNumber: Int +} + +"""Represents metadata for a user's profile. Mostly user specific settings""" +type ProfileMetadata { + """A flag to indicate whether the user has enabled metatransactions""" + metatransactionsEnabled: Boolean + """A flag to indicate whether the user has enabled the decentralized mode""" + decentralizedModeEnabled: Boolean + """The URL of the user's custom RPC node""" + customRpc: String +} + +"""Represents an ERC20-compatible token that is used by Colonies and users""" +type Token { + """Unique identifier for the token (contract address)""" + id: ID! + """Name of the token""" + name: String! + """Symbol of the token""" + symbol: String! + """Decimal precision of the token""" + decimals: Int! + """Type of the token. See `TokenType` for more information""" + type: TokenType + colonies(filter: ModelColonyTokensFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyTokensConnection + users(filter: ModelUserTokensFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelUserTokensConnection + """URL of the token's avatar image (logo)""" + avatar: String + """URL of the token's thumbnail image (Small logo)""" + thumbnail: String + """Metadata related to the chain of the token""" + chainMetadata: ChainMetadata! + """Timestamp of the token model's creation in the database""" + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type ContributorReputation { + """ + Unique identifier + Format: `__` + """ + id: ID! + """The address of the contributor""" + contributorAddress: ID! + """The colony the reputation was earned in""" + colonyAddress: ID! + """The domain id in which the contributor has reputation""" + domainId: ID! + """The associated Domain model""" + domain: Domain! + """The raw value of the contributor's reputation in the domain""" + reputationRaw: String! + """The percentage of the contributor's reputation in the domain""" + reputationPercentage: Float! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""The ColonyContributor model represents a contributor to the Colony.""" +type ColonyContributor { + """ + Unique identifier + Format: _ + """ + id: ID! + """The address of the contributor""" + contributorAddress: ID! + """The type of the contributor""" + type: ContributorType + """Is the contributor a verified member of the colony?""" + isVerified: Boolean! + """Is the contributor watching the colony""" + isWatching: Boolean + """Does the contributor have any permission in any domain the colony?""" + hasPermissions: Boolean + """Does the contributor have any reputation the colony?""" + hasReputation: Boolean + reputation(colonyAddress: ModelIDKeyConditionInput, filter: ModelContributorReputationFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelContributorReputationConnection + """The contributor's reputation percentage in the colony""" + colonyReputationPercentage: Float! + """Associated user, if any""" + user: User + """Address of the colony the contributor is under""" + colonyAddress: ID! + """Associated colony""" + colony: Colony! + roles(colonyAddress: ModelIDKeyConditionInput, filter: ModelColonyRoleFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyRoleConnection + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Represents a Colony within the Colony Network""" +type Colony { + """Unique identifier for the Colony (contract address)""" + id: ID! + """(Short) name of the Colony""" + name: String! + """The unique address of the native token of the Colony""" + nativeTokenId: ID! + """The native token of the Colony""" + nativeToken: Token! + tokens(filter: ModelColonyTokensFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyTokensConnection + """Status information for the Colony""" + status: ColonyStatus + domains(nativeId: ModelIntKeyConditionInput, filter: ModelDomainFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelDomainConnection + fundsClaims(filter: ModelColonyFundsClaimFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyFundsClaimConnection + """ + Native chain token claim (e.g., Token 0x0000...0000: ETH, xDAI, etc.) + This is not an array since only a single token type can be returned + """ + chainFundsClaim: ColonyChainFundsClaim + """Type of the Colony (Regular or Metacolony)""" + type: ColonyType + """Returns a list token balances for each domain and each token that the colony has""" + balances: ColonyBalances + """Metadata related to the chain of the Colony""" + chainMetadata: ChainMetadata! + extensions(hash: ModelStringKeyConditionInput, filter: ModelColonyExtensionFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyExtensionConnection + """Version of the Colony""" + version: Int! + actions(filter: ModelColonyActionFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyActionConnection + """List of motions within the Colony that have unclaimed stakes""" + motionsWithUnclaimedStakes: [ColonyUnclaimedStake!] + """Metadata of the Colony""" + metadata: ColonyMetadata + roles(filter: ModelColonyRoleFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyRoleConnection + """Time at which the contributors with reputation in the colony were last updated""" + lastUpdatedContributorsWithReputation: AWSDateTime + """The total reputation amount in the colony""" + reputation: String + expenditures(createdAt: ModelStringKeyConditionInput, filter: ModelExpenditureFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelExpenditureConnection + """Global claim delay for expenditures (in seconds)""" + expendituresGlobalClaimDelay: String + """A flag to indicate whether the colony is private""" + private: Boolean + """ID of the main member invite object""" + colonyMemberInviteCode: ID + """ + The main member invite object + It is possible to create multiple member invites for a given colony + but only one of them is considered the `main` one + """ + colonyMemberInvite: ColonyMemberInvite + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +input ValidateUserInviteInput { + """The colony address""" + colonyAddress: ID! + """The invite code""" + inviteCode: ID! + """The user's wallet address""" + userAddress: ID! +} + +type ColonyMemberInvite { + """Self-managed id which is used as the invite code""" + id: ID! + """Colony ID associated with the ColonyMemberInvite""" + colonyId: ID! + """Colony associated with the ColonyMemberInvite""" + colony: Colony! + """Decrementing count of how many times this invite has been used""" + invitesRemaining: Int! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Unclaimed staking rewards for a motion""" +type ColonyUnclaimedStake { + """The on chain id of the motion""" + motionId: String! + """List of unclaimed staking rewards for that motion""" + unclaimedRewards: [StakerRewards!]! +} + +"""Colony token modifications that are stored temporarily and commited to the database once the corresponding motion passes""" +type PendingModifiedTokenAddresses { + """List of tokens that were added to the Colony's token list""" + added: [String!] + """List of tokens that were removed from the Colony's token list""" + removed: [String!] +} + +enum ExternalLinks { + Custom + Whitepaper + Youtube + Discord + Telegram + Github + Twitter + Facebook + Instagram +} + +type ExternalLink { + name: ExternalLinks! + link: String! +} + +type ColonyObjective { + """Title of the objective""" + title: String! + """Description of the objective with a limit of 120 characters""" + description: String! + """Number representing how complete the objective is, must be between 0 and 100""" + progress: Int! +} + +type ColonyMetadataEtherealData { + colonyName: String! + colonyDisplayName: String! + colonyAvatar: String + colonyThumbnail: String + tokenAvatar: String + tokenThumbnail: String + initiatorAddress: ID! +} + +"""Represents metadata for a Colony""" +type ColonyMetadata { + """Unique identifier for the Colony (contract address)""" + id: ID! + """Display name of the Colony""" + displayName: String! + """Description of the colony""" + description: String + """An array of external links to related pages""" + externalLinks: [ExternalLink!] + """URL of the Colony's avatar image""" + avatar: String + """URL of the Colony's thumbnail image""" + thumbnail: String + """List of Colony metadata changelog entries""" + changelog: [ColonyMetadataChangelog!] + """ + Token addresses that were modified in a previous action (motion) + Only present on pendingColonyMetadata for consumption in block ingestor + """ + modifiedTokenAddresses: PendingModifiedTokenAddresses + """Colony Objective""" + objective: ColonyObjective + """List of safes that are used within the Colony""" + safes: [Safe!] + """Temporary data to store while the colony is being created (via the block ingestor)""" + etherealData: ColonyMetadataEtherealData + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +""" +Represents a changelog entry for Colony metadata +This is used to traverse through the history of metadata values and consolidate them into a final state +""" +type ColonyMetadataChangelog { + """Transaction hash associated with the changelog entry""" + transactionHash: String! + """Display name of the Colony before the change""" + oldDisplayName: String! + """Display name of the Colony after the change""" + newDisplayName: String! + """Indicates whether the avatar has changed""" + hasAvatarChanged: Boolean! + """Whether tokens have been added or removed from the Colony's token list""" + haveTokensChanged: Boolean! + """Whether the colony description has changed""" + hasDescriptionChanged: Boolean + """Whether the colony's external links have changed""" + haveExternalLinksChanged: Boolean + """Whether the colony's objective has changed""" + hasObjectiveChanged: Boolean + """Whether safes have been added or removed from the Colony's safe list""" + newSafes: [Safe!] + oldSafes: [Safe!] +} + +enum ClientType { + CoinMachineClient + ColonyClient + EvaluatedExpenditureClient + FundingQueueClient + MotionTargetClient + NetworkClient + OneTxPaymentClient + ReputationBootstrapperClient + StakedExpenditureClient + StagedExpenditureClient + StreamingPaymentsClient + TokenSupplierClient + TokenClient + TokenLockingClient + VotingReputationClient + WhitelistClient + WrappedTokenClient + VestingSimpleClient + LightTokenClient +} + +enum TransactionStatus { + CREATED + READY + PENDING + FAILED + SUCCEEDED +} + +type TransactionGroup { + id: String! + groupId: String! + index: Int! + key: String! + title: String + titleValues: String + description: String + descriptionValues: String +} + +enum TransactionErrors { + ESTIMATE + EVENT_DATA + RECEIPT + SEND + UNSUCCESSFUL +} + +type TransactionError { + type: TransactionErrors! + message: String! +} + +"""Represents a transaction made in a colony by a user""" +type Transaction { + """Transaction id""" + id: ID! + """The contract the transaction was made on""" + context: ClientType! + """Time the transaction was created""" + createdAt: AWSDateTime! + """The sender of the transaction""" + from: ID! + """The colony the transaction was made in""" + colonyAddress: ID! + """The id of the group to which the transaction belongs, if any""" + groupId: ID + """The group to which the transaction belongs, if any""" + group: TransactionGroup + """The transaction hash""" + hash: String + """The block number of the transaction""" + blockNumber: Int + """The block hash of the transaction""" + blockHash: String + """The error associated with the transaction, if any""" + error: TransactionError + """The params the transaction was called with""" + params: String + """Context in which method is used e.g. setOneTxRole""" + methodContext: String + """The name of the contract method used""" + methodName: String! + """The current status of the transaction""" + status: TransactionStatus! + """True if the transaction is a metatransaction""" + metatransaction: Boolean! + """A title to show in the UI""" + title: String + """Title values for FormatJS interpolation""" + titleValues: String + """The transaction's gas limit""" + gasLimit: String + """The transaction's gas price""" + gasPrice: String + """An identifier for the transaction""" + identifier: String + """Event data associated with a successful transaction""" + eventData: String + """A contract address associated with a successful transaction""" + deployedContractAddress: String + """True if a related transaction is loading""" + loadingRelated: Boolean + """Transaction receipt""" + receipt: String + """Is the transaction cancelled?""" + deleted: Boolean + """Options associated with the transaction""" + options: String + updatedAt: AWSDateTime! +} + +"""Represents a User within the Colony Network""" +type User { + """Unique identifier for the user (wallet address)""" + id: ID! + tokens(filter: ModelUserTokensFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelUserTokensConnection + """Profile ID associated with the user""" + profileId: ID + """Profile information of the user""" + profile: Profile + stakes(colonyId: ModelIDKeyConditionInput, filter: ModelColonyStakeFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyStakeConnection + roles(colonyAddress: ModelIDKeyConditionInput, filter: ModelColonyRoleFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyRoleConnection + transactionHistory(createdAt: ModelStringKeyConditionInput, filter: ModelTransactionFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelTransactionConnection + """A user who has been invited by colony will be able to pass on the private beta invite""" + privateBetaInviteCode: PrivateBetaInviteCode + """Bridge customer id""" + bridgeCustomerId: String + liquidationAddresses(filter: ModelLiquidationAddressFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelLiquidationAddressConnection + createdAt: AWSDateTime! + updatedAt: AWSDateTime! + userPrivateBetaInviteCodeId: ID +} + +type LiquidationAddress { + """Unique identifier for the liquidation address entry""" + id: ID! + """The chain id the colony is on""" + chainId: Int! + """The user address associated""" + userAddress: ID! + """The user associated""" + user: User + """The liquidation address""" + liquidationAddress: ID! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +""" +Keeps track of the current amount a user has staked in a colony +When a user stakes, totalAmount increases. When a user reclaims their stake, totalAmount decreases. +""" +type ColonyStake { + """ + Unique identifier for the stake + Format: `_` + """ + id: ID! + """Unique identifier for the user""" + userId: ID! + """Unique identifier for the Colony""" + colonyId: ID! + """Total staked amount""" + totalAmount: String! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Represents a Domain within the Colony Network""" +type Domain { + """ + Unique identifier for the Domain + This should be in the following format: `colonyAddress_nativeId` + The native id is the auto-incrementing integer that is assigned to a domain from the contract on creation + """ + id: ID! + """Colony ID associated with the Domain""" + colonyId: ID! + """Colony associated with the Domain""" + colony: Colony! + """ + Native ID of the Domain + The native id is the auto-incrementing integer that is assigned to a domain from the contract on creation + """ + nativeId: Int! + """ + Native funding pot ID of the Domain + The native funding pot ID is assigned to a domain from the contract on creation + """ + nativeFundingPotId: Int! + """ + Native skill ID of the Domain + The native skill ID is assigned to a domain from the contract on creation + """ + nativeSkillId: String! + """Indicates whether the Domain is the root domain (ID 1)""" + isRoot: Boolean! + """Metadata of the Domain""" + metadata: DomainMetadata + """The amount of reputation in the domain""" + reputation: String + """The amount of reputation in the domain, as a percentage of the total in the colony""" + reputationPercentage: String + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Represents metadata for a Domain""" +type DomainMetadata { + """ + Unique identifier for the Domain metadata + This field is referenced by Domain id, so has to be in the same format: colonyAddress_nativeId + """ + id: ID! + """Name of the Domain""" + name: String! + """Description of the Domain""" + description: String + """Color associated with the Domain""" + color: DomainColor! + """List of Domain metadata changelog entries""" + changelog: [DomainMetadataChangelog!] + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Represents a changelog entry for Domain metadata""" +type DomainMetadataChangelog { + """Transaction hash associated with the changelog entry""" + transactionHash: String! + """Name of the Domain before the change""" + oldName: String! + """Name of the Domain after the change""" + newName: String! + """Color of the Domain before the change""" + oldColor: DomainColor! + """Color of the Domain after the change""" + newColor: DomainColor! + """Description of the Domain before the change""" + oldDescription: String + """Description of the Domain after the change""" + newDescription: String +} + +"""Represents a Colony Funds Claim for all ERC20 tokens (except native chain tokens)""" +type ColonyFundsClaim { + """Unique identifier for the Colony Funds Claim""" + id: ID! + """Token associated with the Colony Funds Claim""" + token: Token! + """Block number when the Funds Claim was created""" + createdAtBlock: Int! + """Timestamp when the Funds Claim was created""" + createdAt: AWSDateTime! + """Amount claimed in the Colony Funds Claim""" + amount: String! + """Boolean to indicate whether the claim has been claimed or not""" + isClaimed: Boolean + updatedAt: AWSDateTime! + colonyFundsClaimsId: ID + colonyFundsClaimTokenId: ID! +} + +""" +Represents a native Colony Chain Funds Claim +E.g., Token 0x0000...0000: ETH, xDAI, etc +""" +type ColonyChainFundsClaim { + """Unique identifier for the Colony Chain Funds Claim""" + id: ID! + """Block number when the Chain Funds Claim was created""" + createdAtBlock: Int! + """Timestamp when the Chain Funds Claim was created""" + createdAt: AWSDateTime! + """Timestamp when the Chain Funds Claim was last updated""" + updatedAt: AWSDateTime! + """Amount claimed in the Colony Chain Funds Claim""" + amount: String! + """Boolean to indicate whether the claim has been claimed or not""" + isClaimed: Boolean +} + +"""Represents a Colony balance for a specific domain and token""" +type ColonyBalance { + """Unique identifier for the Colony Balance""" + id: ID! + """Balance of the specific token in the domain""" + balance: String! + """Domain associated with the Colony Balance""" + domain: Domain + """ + Token associated with the Colony Balance + Note that for the chain native token, name and symbol are empty + """ + token: Token! +} + +"""Represents a collection of Colony balances""" +type ColonyBalances { + """List of Colony balances""" + items: [ColonyBalance] +} + +"""Input type for specifying a Domain""" +input DomainInput { + """Unique identifier for the Domain""" + id: ID! +} + +"""Input type for specifying a Token""" +input TokenInput { + """Unique identifier for the Token""" + id: ID! +} + +"""Input type for modifying the staked side of a motion""" +input MotionStakeValuesInput { + """Number of votes for this motion""" + yay: String! + """Number of votes against this motion""" + nay: String! +} + +"""Staked sides of a motion""" +type MotionStakeValues { + """Number of votes for this motion""" + yay: String! + """Number of votes against this motion""" + nay: String! +} + +"""Input used to modify the staked sides of a motion""" +input MotionStakesInput { + """Absolute values denominated in the native token""" + raw: MotionStakeValuesInput! + """Values in percentage of the total stakes""" + percentage: MotionStakeValuesInput! +} + +"""Staked sides of a motion""" +type MotionStakes { + """Absolute values denominated in the native token""" + raw: MotionStakeValues! + """Values in percentage of the total stakes""" + percentage: MotionStakeValues! +} + +"""Input used to modify the stakes of a user for a motion""" +input UserMotionStakesInput { + """The user's wallet address""" + address: String! + """Stake values""" + stakes: MotionStakesInput! +} + +"""Stakes that a user has made for a motion""" +type UserMotionStakes { + """The user's wallet address""" + address: String! + """Stake values""" + stakes: MotionStakes! +} + +"""Input used to modify the staker rewards of a user for a motion""" +input StakerRewardsInput { + """The user's wallet address""" + address: String! + """Rewards associated with the staked sides of a motion""" + rewards: MotionStakeValuesInput! + """Whether the voter reward is already claimed or not""" + isClaimed: Boolean! +} + +"""Staker rewards of a user for a motion""" +type StakerRewards { + """The user's wallet address""" + address: String! + """Rewards associated with the staked sides of a motion""" + rewards: MotionStakeValues! + """Whether the voter reward is already claimed or not""" + isClaimed: Boolean! +} + +"""Input used to modify a voter record of a user for a motion""" +input VoterRecordInput { + """The user's wallet address""" + address: String! + """The voting weight denominated by the user's reputation""" + voteCount: String! + """ + The actual vote (yay or nay) + nullable since we don't know the vote until it's revealed + """ + vote: Int +} + +"""A voter record of a user for a motion""" +type VoterRecord { + """The user's wallet address""" + address: String! + """The voting weight denominated by the user's reputation""" + voteCount: String! + """ + The actual vote (yay or nay) + nullable since we don't know the vote until it's revealed + """ + vote: Int +} + +"""Input used to create a motion status update message""" +input MotionMessageInput { + """ + Wallet address of the initiator of the status update + The zero address is used for messages that don't have an initiator (system messages) + """ + initiatorAddress: String! + """Internal name of the status update event (e.g. `MotionCreated`, `MotionStaked`, etc.)""" + name: String! + """Unique id for the message""" + messageKey: String! + """Cast vote attached to the status update (if applicable)""" + vote: String + """Token amount relevant to the status update (if applicable)""" + amount: String +} + +"""A status update message for a motion (will appear in the motion's timeline)""" +type MotionMessage { + """ + Wallet address of the initiator of the status update + The zero address is used for messages that don't have an initiator (system messages) + """ + initiatorAddress: ID! + """Internal name of the status update event (e.g. `MotionCreated`, `MotionStaked`, etc.)""" + name: String! + """Unique id for the message""" + messageKey: String! + """The internal database id of the motion""" + motionId: ID! + """Extended user object for given initiatorAddress""" + initiatorUser: User + """Cast vote attached to the status update (if applicable)""" + vote: String + """Token amount relevant to the status update (if applicable)""" + amount: String + """Timestamp of when the status update was created in the database""" + createdAt: AWSDateTime! + id: ID! + updatedAt: AWSDateTime! +} + +"""Input used to change the current state of a motion""" +input MotionStateHistoryInput { + """Voting period is elapsed""" + hasVoted: Boolean! + """Whether the motion has passed""" + hasPassed: Boolean! + """Whether the motion has failed""" + hasFailed: Boolean! + """Whether the motion has failed and cannot be finalized (e.g. if it doesn't get staked)""" + hasFailedNotFinalizable: Boolean! + """Motion is in reveal phase (votes are being revealed)""" + inRevealPhase: Boolean! + """The timestamp when the YAY side was fully staked""" + yaySideFullyStakedAt: AWSDateTime + """The timestamp when the NAY side was fully staked""" + naySideFullyStakedAt: AWSDateTime + """The timestamp when all votes were submitted""" + allVotesSubmittedAt: AWSDateTime + """The timestamp when all votes were revealed""" + allVotesRevealedAt: AWSDateTime + """The timestamp when the motion ended (Passed or failed)""" + endedAt: AWSDateTime + """The timestamp when the motion was finalized""" + finalizedAt: AWSDateTime +} + +"""Quick access flages to check the current state of a motion in its lifecycle""" +type MotionStateHistory { + """Voting period is elapsed""" + hasVoted: Boolean! + """Whether the motion has passed""" + hasPassed: Boolean! + """Whether the motion has failed""" + hasFailed: Boolean! + """Whether the motion has failed and cannot be finalized (e.g. if it doesn't get staked)""" + hasFailedNotFinalizable: Boolean! + """Motion is in reveal phase (votes are being revealed)""" + inRevealPhase: Boolean! + """The timestamp when the YAY side was fully staked""" + yaySideFullyStakedAt: AWSDateTime + """The timestamp when the NAY side was fully staked""" + naySideFullyStakedAt: AWSDateTime + """The timestamp when all votes were submitted""" + allVotesSubmittedAt: AWSDateTime + """The timestamp when all votes were revealed""" + allVotesRevealedAt: AWSDateTime + """The timestamp when the motion ended (Passed or failed)""" + endedAt: AWSDateTime + """The timestamp when the motion was finalized""" + finalizedAt: AWSDateTime +} + +"""Represents a Motion within a Colony""" +type ColonyMotion { + """ + The internal database id of the motion + To ensure uniqueness, we format as: `chainId-votingRepExtnAddress_nativeMotionId` + """ + id: ID! + """The on chain id of the motion""" + nativeMotionId: String! + """List of stakes that users have made for a motion""" + usersStakes: [UserMotionStakes!]! + """List of staker rewards users will be receiving for a motion""" + stakerRewards: [StakerRewards!]! + """Staked sides of a motion""" + motionStakes: MotionStakes! + """ + Stakes remaining to activate either side of the motion + It's a tuple: `[nayRemaining, yayRemaining]` + """ + remainingStakes: [String!]! + """The minimum stake that a user has to provide for it to be accepted""" + userMinStake: String! + """The total required stake for one side to be activated""" + requiredStake: String! + """Unique identifier of the motions domain in the database""" + motionDomainId: ID! + """Expanded domain in which the motion was created""" + motionDomain: Domain! + """The on chain id of the domain associated with the motion""" + nativeMotionDomainId: String! + """Whether the motion was finalized or not""" + isFinalized: Boolean! + """ + Address of the VotingReputation extension + Useful to check if we're viewing a "read-only" motion + """ + createdBy: String! + """A list of all of the votes cast within in the motion""" + voterRecord: [VoterRecord!]! + """Total voting outcome for the motion (accumulated votes)""" + revealedVotes: MotionStakes! + """The amount of reputation that has submitted a vote""" + repSubmitted: String! + """The total amount of reputation (among all users) that can vote for this motion""" + skillRep: String! + """Simple flag indicating whether both sides of staking have been activated""" + hasObjection: Boolean! + """Quick access flages to check the current state of a motion in its lifecycle""" + motionStateHistory: MotionStateHistory! + messages(createdAt: ModelStringKeyConditionInput, filter: ModelMotionMessageFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelMotionMessageConnection + """Id of the associated objection annotation, if any""" + objectionAnnotationId: ID + """The annotation object associated with the objection to the motion, if any""" + objectionAnnotation: Annotation + """Whether the motion is a Simple Decision""" + isDecision: Boolean! + """The transaction hash of the createMotion action""" + transactionHash: ID! + """ + An option to manually specify the amount of gas to estimate for the finalization of this motion. + Particularly useful for "heavy" actions, such as a multicall. + """ + gasEstimate: String! + """Expenditure associated with the motion, if any""" + expenditureId: ID + """Id of the expenditure stage payment to be released if the motion pass, if any""" + expenditureSlotId: Int + action: ColonyAction + """Edited expenditure slots associated with the motion, if any""" + editedExpenditureSlots: [ExpenditureSlot!] + """ + In case of multicall motion funding an expenditure, array containing + the details of tokens and amounts to be funded + """ + expenditureFunding: [ExpenditureFundingItem!] + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type ExpenditureFundingItem { + """The amount of the token to be funded""" + amount: String! + """The token address of the token to be funded""" + tokenAddress: String! +} + +"""Represents an event triggered by a smart contract within the Colony Network""" +type ContractEvent { + """Unique identifier for the Contract Event, in the format chainID_transactionHash_logIndex""" + id: ID! + """Name of the event""" + name: String! + """The unique signature of the event""" + signature: String! + """Metadata associated with the event's chain""" + chainMetadata: ChainMetadata! + """Optional association with a Colony""" + colony: Colony + """Optional association with a Token""" + token: Token + """Optional association with a Domain""" + domain: Domain + """Optional association with a User""" + user: User + """Address of the agent who initiated the event""" + agent: String! + """Address of the target contract on the receiving end of the event""" + target: String! + """Optional encoded arguments as a JSON string""" + encodedArguments: String + createdAt: AWSDateTime! + updatedAt: AWSDateTime! + contractEventColonyId: ID + contractEventTokenId: ID + contractEventDomainId: ID + contractEventUserId: ID +} + +""" +Parameters that were set when installing the VotingReputation extension +For more info see [here](https://docs.colony.io/colonysdk/api/classes/VotingReputation#extension-parameters) +""" +type VotingReputationParams { + """Percentage of the team's reputation that needs to be staked ot activate either side of the motion""" + totalStakeFraction: String! + """Percentage of the losing side's stake that is awarded to the voters""" + voterRewardFraction: String! + """Minimum percentage of the total stake that each user has to provide""" + userMinStakeFraction: String! + """Percentage of the total reputation that voted should end the voting period""" + maxVoteFraction: String! + """Time that the staking period will last (in seconds)""" + stakePeriod: String! + """Time that the voting period will last (in seconds)""" + submitPeriod: String! + """Time that the reveal period will last (in seconds)""" + revealPeriod: String! + """Time that the escalation period will last (in seconds)""" + escalationPeriod: String! +} + +type StakedExpenditureParams { + stakeFraction: String! +} + +"""Map of parameters that extensions are initialised with""" +type ExtensionParams { + """Initialization parameters for the `VotingReputation` extension""" + votingReputation: VotingReputationParams + """Initialization parameters for the `StakedExpenditure` extension""" + stakedExpenditure: StakedExpenditureParams +} + +"""Represents a single extension installation in a Colony""" +type ColonyExtension { + """Unique identifier for the ColonyExtension""" + id: ID! + """The identifier of the Colony that the extension belongs to (the Colony's address)""" + colonyId: ID! + """The Colony that the extension belongs to""" + colony: Colony! + """ + The unique hash of the extension + The hash is generated like so: `keccak256(toUtf8Bytes(extensionName))`, where `extensionName` is the name of the extension contract file in the Colony Network + """ + hash: String! + """The address of the user who installed the extension""" + installedBy: String! + """The timestamp when the extension was installed""" + installedAt: AWSTimestamp! + """Indicates whether the extension is deprecated""" + isDeprecated: Boolean! + """Indicates whether the extension has been removed""" + isDeleted: Boolean! + """Indicates whether the extension has been initialized""" + isInitialized: Boolean! + """The version number of the extension""" + version: Int! + """Map of parameters that extension was initialised with""" + params: ExtensionParams + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Represents the current version of an entity in the system""" +type CurrentVersion { + """Unique identifier for the CurrentVersion""" + id: ID! + """The key used to look up the current version""" + key: String! + """The current version number""" + version: Int! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +""" +The current inverse of the network fee (in wei) +(divide 1 by it and get the actual network fee) +""" +type CurrentNetworkInverseFee { + """Unique identifier for the network fee""" + id: ID! + """The inverse fee""" + inverseFee: String! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type Payment { + """Payment amount, excluding network fee""" + amount: String! + """Network fee amount""" + networkFee: String + tokenAddress: String! + recipientAddress: String! +} + +"""Represents an action performed within a Colony""" +type ColonyAction { + """Unique identifier for the ColonyAction""" + id: ID! + """The identifier of the Colony that the action belongs to""" + colonyId: ID! + """The Colony that the action belongs to""" + colony: Colony! + """The type of action performed""" + type: ColonyActionType! + """The block number where the action was recorded""" + blockNumber: Int! + """Will be true if the action is a motion""" + isMotion: Boolean + """The internal database id of the motion""" + motionId: ID + """Expanded `ColonyMotion` for the corresponding `motionId`""" + motionData: ColonyMotion + """ + Whether to show the motion in the actions list + True for (forced) actions. True for motions if staked above 10% + @TODO: Refactor this into more granular fields for better searchability + Currently it is impossible to tell the reason for the action being hidden from the actions list + """ + showInActionsList: Boolean! + """The timestamp when the action was created""" + createdAt: AWSDateTime! + """The Ethereum address of the action initiator. Can be a user, extension or colony""" + initiatorAddress: ID! + """The User who initiated the action, if applicable""" + initiatorUser: User + """The ColonyExtension that initiated the action, if applicable""" + initiatorExtension: ColonyExtension + """The Colony that initiated the action, if applicable""" + initiatorColony: Colony + """The Token contract that initiated the action, if applicable""" + initiatorToken: Token + """The address of the action recipient, if applicable""" + recipientAddress: ID + """The User who received the action, if applicable""" + recipientUser: User + """The corresponding Colony which was involved the action, if applicable""" + recipientColony: Colony + """The corresponding extension which was involved the action, if applicable""" + recipientExtension: ColonyExtension + """The address of the token that was received the action, if applicable""" + recipientToken: Token + """ + The amount involved in the action, if applicable + In any case where network fee is involved, this amount excludes it + """ + amount: String + """The network fee amount, if applicable""" + networkFee: String + """The Ethereum address of the token involved in the action, if applicable""" + tokenAddress: ID + """The Token involved in the action, if applicable""" + token: Token + """The source Domain identifier, if applicable""" + fromDomainId: ID + """The source Domain of the action, if applicable""" + fromDomain: Domain + """The target Domain identifier, if applicable""" + toDomainId: ID + """The target Domain of the action, if applicable""" + toDomain: Domain + """The native ID of the source funding pot, only applicable for MOVE_FUNDS action""" + fromPotId: Int + """The native ID of the target funding pot, only applicable for MOVE_FUNDS action""" + toPotId: Int + """The native id of the payment""" + paymentId: Int + """The resulting new Colony version, if applicable""" + newColonyVersion: Int + """Identifier of domain metadata that is stored temporarily and commited to the database once the corresponding motion passes""" + pendingDomainMetadataId: ID + """Domain metadata that is stored temporarily and commited to the database once the corresponding motion passes""" + pendingDomainMetadata: DomainMetadata + """Identifier of Colony metadata that is stored temporarily and commited to the database once the corresponding motion passes""" + pendingColonyMetadataId: ID + """Colony metadata that is stored temporarily and commited to the database once the corresponding motion passes""" + pendingColonyMetadata: ColonyMetadata + """The id of the associated annotation, if there is one""" + annotationId: ID + """The annotation associated with the action, if there is one""" + annotation: Annotation + """Corresponding domainId of the motion""" + motionDomainId: Int + """If the action is a Simple Decision, it will have an id that corresponds to a ColonyDecision entry in the database.""" + colonyDecisionId: ID + """Corresponding Decision data, if action is a Simple Decision""" + decisionData: ColonyDecision + """Payment data for multiple OneTxPayments""" + payments: [Payment!] + """Colony roles that are associated with the action""" + roles: ColonyActionRoles + """Members impacted by the action (used for add/remove verified members)""" + members: [ID!] + """JSON string to pass custom, dynamic event data""" + individualEvents: String + """Safe transactions associated with the action""" + safeTransaction: SafeTransaction + """Metadata associated with the action (Eg. Custom action title)""" + metadata: ColonyActionMetadata + """The reputation root hash at the time of the creation of the action""" + rootHash: String! + """ID of the associated expenditure, if any""" + expenditureId: ID + """Expenditure associated with the action, if any""" + expenditure: Expenditure + """ + Indicates whether the action is a result of a motion being finalized + @TODO: Make this field non-nullable + """ + isMotionFinalization: Boolean + """ + Changes to the expenditure slots associated with the action, if any + Applicable to `EDIT_EXPENDITURE` action only + """ + expenditureSlotChanges: ExpenditureSlotChanges + updatedAt: AWSDateTime! + colonyActionsId: ID +} + +type ExpenditureSlotChanges { + oldSlots: [ExpenditureSlot!]! + newSlots: [ExpenditureSlot!]! +} + +type ColonyActionMetadata { + id: ID! + customTitle: String! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type ColonyDecision { + id: ID! + actionId: ID! + action: ColonyAction + title: String! + colonyAddress: String! + createdAt: AWSDateTime! + description: String! + motionDomainId: Int! + walletAddress: String! + showInDecisionsList: Boolean! + updatedAt: AWSDateTime! +} + +"""Colony Roles that can be involved in an action""" +type ColonyActionRoles { + """Recovery role""" + role_0: Boolean + """Root role""" + role_1: Boolean + """Arbitration role""" + role_2: Boolean + """Architecture role""" + role_3: Boolean + """Funding role""" + role_5: Boolean + """Administration role""" + role_6: Boolean +} + +"""A snapshot of the current set of permissions a given address has in a given domain within a Colony""" +type ColonyRole { + """ + Unique identifier for the role snapshot + Format: `___roles` + """ + id: ID! + """Unique identifier of the domain""" + domainId: ID! + """Expanded `Domain` model, based on the `domainId` given""" + domain: Domain! + """Address of the agent the permission was set for""" + targetAddress: ID! + """Will expand to a `User` model if permission was set for a user""" + targetUser: User + """Will expand to a `Colony` model if permission was set for another Colony""" + targetColony: Colony + """Will expand to a `ColonyExtension` model if permission was set for a Colony extension""" + targetExtension: ColonyExtension + """Will expand to a `Token` model if permission was set for a Token contract""" + targetToken: Token + """The colony in which the role was set""" + colonyAddress: ID! + """Block at which permissions were update last""" + latestBlock: Int! + """Recovery role""" + role_0: Boolean + """Root role""" + role_1: Boolean + """Arbitration role""" + role_2: Boolean + """Architecture role""" + role_3: Boolean + """Funding role""" + role_5: Boolean + """Administration role""" + role_6: Boolean + createdAt: AWSDateTime! + updatedAt: AWSDateTime! + colonyRolesId: ID +} + +"""Snapshot of the user's full roles/permissions at a specific block""" +type ColonyHistoricRole { + """ + Unique identifier for the role snapshot + Format: `colonyAddress_domainNativeId_userAddress_blockNumber_roles` + """ + id: ID! + """Used for amplify sorting. Set to `SortedHistoricRole`""" + type: String! + """Unique identifier of the domain""" + domainId: ID! + """Expanded `Domain` model, based on the `domainId` given""" + domain: Domain! + """Unique identifier of the Colony""" + colonyId: ID! + """Expanded `Colony` model, based on the `colonyId` given""" + colony: Colony! + """Address of the agent the permission was set for""" + targetAddress: ID + """Will expand to a `User` model if permission was set for a user""" + targetUser: User + """Will expand to a `Colony` model if permission was set for another Colony""" + targetColony: Colony + """Will expand to a `ColonyExtension` model if permission was set for a Colony extension""" + targetExtension: ColonyExtension + """Will expand to a `Token` model if permission was set for a Token contract""" + targetToken: Token + """Block at which the snapshot was taken""" + blockNumber: Int! + """Recovery role""" + role_0: Boolean + """Root role""" + role_1: Boolean + """Arbitration role""" + role_2: Boolean + """Architecture role""" + role_3: Boolean + """Funding role""" + role_5: Boolean + """Administration role""" + role_6: Boolean + """Timestamp at which the database entry was created""" + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Model storing block ingestor stats, as key-value entries""" +type IngestorStats { + """Unique identifier of the ingestor stats""" + id: ID! + """JSON string to pass custom, dynamic values""" + value: String! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type Expenditure { + """ + Unique identifier for the role snapshot + Self-managed, format: `colonyId_nativeExpenditureId` + """ + id: ID! + """Native (contract) ID of the expenditure""" + nativeId: Int! + createdAt: AWSDateTime! + """Colony ID (address) to which the expenditure belongs""" + colonyId: ID! + """The Colony to which the expenditure belongs""" + colony: Colony! + """Address of the expenditure owner, it can be a user or an extension""" + ownerAddress: ID! + """Status of the expenditure""" + status: ExpenditureStatus! + """Array containing expenditure slots""" + slots: [ExpenditureSlot!]! + """Native (contract) ID of the funding pot of the expenditure""" + nativeFundingPotId: Int! + """Native (contract) ID of the expenditure domain""" + nativeDomainId: Int! + """Array containing balances of tokens in the expenditure""" + balances: [ExpenditureBalance!] + """ + Optional metadata linked to the expenditure + It contains client-side data that is not stored on chain + """ + metadata: ExpenditureMetadata + """The timestamp at which the expenditure was finalized""" + finalizedAt: AWSTimestamp + motions(filter: ModelColonyMotionFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyMotionConnection + """Indicates whether the expenditure was staked for""" + isStaked: Boolean! + type: ExpenditureType! + actions(filter: ModelColonyActionFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelColonyActionConnection + """ID of the user stake associated with the expenditure, if any""" + userStakeId: ID + """User stake associated with the expenditure, if any""" + userStake: UserStake + """Hash of the first transaction that contained ExpenditurePayoutSet event""" + firstEditTransactionHash: String + updatedAt: AWSDateTime! +} + +""" +Represents a slot of an expenditure +Each expenditure can have multiple slots, with a single recipients and multiple payouts (in different token addresses) +""" +type ExpenditureSlot { + id: Int! + recipientAddress: String + """Slot claim delay (in seconds)""" + claimDelay: String + payoutModifier: Int + payouts: [ExpenditurePayout!] +} + +type ExpenditurePayout { + tokenAddress: ID! + """Payout amount, excluding network fee""" + amount: String! + """ + Network fee amount + @TODO: Make this a non-nullable field once existing data is updated + """ + networkFee: String + isClaimed: Boolean! +} + +type ExpenditureMetadata { + id: ID! + fundFromDomainNativeId: Int! + stages: [ExpenditureStage!] + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type ExpenditureBalance { + tokenAddress: ID! + amount: String! +} + +type ExpenditureStage { + slotId: Int! + name: String! + isReleased: Boolean! +} + +type StreamingPayment { + id: ID! + nativeId: Int! + createdAt: AWSDateTime! + recipientAddress: String! + nativeDomainId: Int! + startTime: AWSTimestamp! + endTime: AWSTimestamp! + interval: String! + payouts: [ExpenditurePayout!] + metadata: StreamingPaymentMetadata + updatedAt: AWSDateTime! +} + +type StreamingPaymentMetadata { + id: ID! + endCondition: StreamingPaymentEndCondition! + limitAmount: String + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +"""Defines an annotation for actions, motions and decisions""" +type Annotation { + """The id of the annotation.""" + id: ID! + """The id of the action it annotates""" + actionId: ID! + """The actual annotation message""" + message: String! + """The IPFS hash, if the annotation was also uploaded to IPFS""" + ipfsHash: String + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type ReputationMiningCycleMetadata { + id: ID! + """The timestamp of the most recent reputation mining cycle completion.""" + lastCompletedAt: AWSDateTime! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type PrivateBetaInviteCode { + """The id functions as the invite code""" + id: ID! + """ + This tracks the amount of invites this invite code is also allowed to generate + The default value relates to the initial user and their subsequent invitee + """ + shareableInvites: Int + """User ID associated with the Invite""" + userId: ID + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type SimpleTargetProfile { + avatarHash: String + displayName: String +} + +type SimpleTarget { + id: String! + profile: SimpleTargetProfile! + walletAddress: String! +} + +type NFT { + id: String! + profile: NFTProfile! + walletAddress: String! +} + +type NFTProfile { + displayName: String! +} + +type FunctionParam { + name: String! + type: String! + value: String! +} + +type NFTData { + address: String! + description: String + id: String! + imageUri: String + logoUri: String! + name: String + tokenName: String! + tokenSymbol: String! + uri: String! +} + +enum SafeTransactionType { + TRANSFER_FUNDS + TRANSFER_NFT + CONTRACT_INTERACTION + RAW_TRANSACTION +} + +type SafeTransaction { + id: ID! + safe: Safe! + transactions(id: ModelIDKeyConditionInput, filter: ModelSafeTransactionDataFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelSafeTransactionDataConnection + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type SafeTransactionData { + id: ID! + tokenAddress: ID + token: Token + amount: String + rawAmount: String + recipient: SimpleTarget + data: String + contract: SimpleTarget + abi: String + contractFunction: String + nft: NFT + nftData: NFTData + functionParams: [FunctionParam] + transactionType: SafeTransactionType! + transactionHash: ID! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type Safe { + name: String! + address: String! + chainId: String! + moduleContractAddress: String! +} + +type ExtensionInstallationsCount { + """The model id. It's the chain id the of the colony the extension belongs to""" + id: ID! + oneTxPayment: Int! + stakedExpenditure: Int! + stagedExpenditure: Int! + streamingPayments: Int! + reputationWeighted: Int! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type UserStake { + """Self-managed, formatted as userAddress_transactionHash, where transactionHash is the hash of the transaction that is being staked for""" + id: ID! + userAddress: ID! + user: User! + colonyAddress: ID! + amount: String! + isClaimed: Boolean! + actionId: ID! + action: ColonyAction + createdAt: AWSDateTime! + """Only applicable for expenditure stakes, indicates if the creator's stake was forfeited when expenditure was cancelled""" + isForfeited: Boolean + updatedAt: AWSDateTime! +} + +type SearchableColonyContributorConnection { + items: [ColonyContributor]! + nextToken: String + total: Int + aggregateItems: [SearchableAggregateResult]! +} + +type SearchableAggregateResult { + name: String! + result: SearchableAggregateGenericResult +} + +type SearchableAggregateScalarResult { + value: Float! +} + +type SearchableAggregateBucketResult { + buckets: [SearchableAggregateBucketResultItem] +} + +type SearchableAggregateBucketResultItem { + key: String! + doc_count: Int! +} + +union SearchableAggregateGenericResult = SearchableAggregateScalarResult | SearchableAggregateBucketResult + +type SearchableColonyActionConnection { + items: [ColonyAction]! + nextToken: String + total: Int + aggregateItems: [SearchableAggregateResult]! +} + +type ColonyTokens { + id: ID! + tokenID: ID! + colonyID: ID! + token: Token! + colony: Colony! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +type UserTokens { + id: ID! + tokenID: ID! + userID: ID! + token: Token! + user: User! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! +} + +input ModelStringInput { + ne: String + eq: String + le: String + lt: String + ge: String + gt: String + contains: String + notContains: String + between: [String] + beginsWith: String + attributeExists: Boolean + attributeType: ModelAttributeTypes + size: ModelSizeInput +} + +input ModelIntInput { + ne: Int + eq: Int + le: Int + lt: Int + ge: Int + gt: Int + between: [Int] + attributeExists: Boolean + attributeType: ModelAttributeTypes +} + +input ModelFloatInput { + ne: Float + eq: Float + le: Float + lt: Float + ge: Float + gt: Float + between: [Float] + attributeExists: Boolean + attributeType: ModelAttributeTypes +} + +input ModelBooleanInput { + ne: Boolean + eq: Boolean + attributeExists: Boolean + attributeType: ModelAttributeTypes +} + +input ModelIDInput { + ne: ID + eq: ID + le: ID + lt: ID + ge: ID + gt: ID + contains: ID + notContains: ID + between: [ID] + beginsWith: ID + attributeExists: Boolean + attributeType: ModelAttributeTypes + size: ModelSizeInput +} + +input ModelSubscriptionStringInput { + ne: String + eq: String + le: String + lt: String + ge: String + gt: String + contains: String + notContains: String + between: [String] + beginsWith: String + in: [String] + notIn: [String] +} + +input ModelSubscriptionIntInput { + ne: Int + eq: Int + le: Int + lt: Int + ge: Int + gt: Int + between: [Int] + in: [Int] + notIn: [Int] +} + +input ModelSubscriptionFloatInput { + ne: Float + eq: Float + le: Float + lt: Float + ge: Float + gt: Float + between: [Float] + in: [Float] + notIn: [Float] +} + +input ModelSubscriptionBooleanInput { + ne: Boolean + eq: Boolean +} + +input ModelSubscriptionIDInput { + ne: ID + eq: ID + le: ID + lt: ID + ge: ID + gt: ID + contains: ID + notContains: ID + between: [ID] + beginsWith: ID + in: [ID] + notIn: [ID] +} + +enum ModelAttributeTypes { + binary + binarySet + bool + list + map + number + numberSet + string + stringSet + _null +} + +input ModelSizeInput { + ne: Int + eq: Int + le: Int + lt: Int + ge: Int + gt: Int + between: [Int] +} + +enum ModelSortDirection { + ASC + DESC +} + +type ModelProfileConnection { + items: [Profile]! + nextToken: String +} + +input ModelSupportedCurrenciesInput { + eq: SupportedCurrencies + ne: SupportedCurrencies +} + +input ModelProfileFilterInput { + id: ModelIDInput + avatar: ModelStringInput + thumbnail: ModelStringInput + displayName: ModelStringInput + displayNameChanged: ModelStringInput + bio: ModelStringInput + location: ModelStringInput + website: ModelStringInput + email: ModelStringInput + preferredCurrency: ModelSupportedCurrenciesInput + isAutoOfframpEnabled: ModelBooleanInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelProfileFilterInput] + or: [ModelProfileFilterInput] + not: ModelProfileFilterInput +} + +input ModelProfileConditionInput { + avatar: ModelStringInput + thumbnail: ModelStringInput + displayName: ModelStringInput + displayNameChanged: ModelStringInput + bio: ModelStringInput + location: ModelStringInput + website: ModelStringInput + email: ModelStringInput + preferredCurrency: ModelSupportedCurrenciesInput + isAutoOfframpEnabled: ModelBooleanInput + and: [ModelProfileConditionInput] + or: [ModelProfileConditionInput] + not: ModelProfileConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateProfileInput { + id: ID + avatar: String + thumbnail: String + displayName: String + displayNameChanged: AWSDateTime + bio: String + location: String + website: AWSURL + email: AWSEmail + meta: ProfileMetadataInput + preferredCurrency: SupportedCurrencies + isAutoOfframpEnabled: Boolean +} + +input UpdateProfileInput { + id: ID! + avatar: String + thumbnail: String + displayName: String + displayNameChanged: AWSDateTime + bio: String + location: String + website: AWSURL + email: AWSEmail + meta: ProfileMetadataInput + preferredCurrency: SupportedCurrencies + isAutoOfframpEnabled: Boolean +} + +input DeleteProfileInput { + id: ID! +} + +input ModelSubscriptionProfileFilterInput { + id: ModelSubscriptionIDInput + avatar: ModelSubscriptionStringInput + thumbnail: ModelSubscriptionStringInput + displayName: ModelSubscriptionStringInput + displayNameChanged: ModelSubscriptionStringInput + bio: ModelSubscriptionStringInput + location: ModelSubscriptionStringInput + website: ModelSubscriptionStringInput + email: ModelSubscriptionStringInput + preferredCurrency: ModelSubscriptionStringInput + isAutoOfframpEnabled: ModelSubscriptionBooleanInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionProfileFilterInput] + or: [ModelSubscriptionProfileFilterInput] +} + +type Subscription { + onCreateProfile(filter: ModelSubscriptionProfileFilterInput): Profile @aws_subscribe(mutations: ["createProfile"]) + onUpdateProfile(filter: ModelSubscriptionProfileFilterInput): Profile @aws_subscribe(mutations: ["updateProfile"]) + onDeleteProfile(filter: ModelSubscriptionProfileFilterInput): Profile @aws_subscribe(mutations: ["deleteProfile"]) + onCreateToken(filter: ModelSubscriptionTokenFilterInput): Token @aws_subscribe(mutations: ["createToken"]) + onUpdateToken(filter: ModelSubscriptionTokenFilterInput): Token @aws_subscribe(mutations: ["updateToken"]) + onDeleteToken(filter: ModelSubscriptionTokenFilterInput): Token @aws_subscribe(mutations: ["deleteToken"]) + onCreateContributorReputation(filter: ModelSubscriptionContributorReputationFilterInput): ContributorReputation @aws_subscribe(mutations: ["createContributorReputation"]) + onUpdateContributorReputation(filter: ModelSubscriptionContributorReputationFilterInput): ContributorReputation @aws_subscribe(mutations: ["updateContributorReputation"]) + onDeleteContributorReputation(filter: ModelSubscriptionContributorReputationFilterInput): ContributorReputation @aws_subscribe(mutations: ["deleteContributorReputation"]) + onCreateColonyContributor(filter: ModelSubscriptionColonyContributorFilterInput): ColonyContributor @aws_subscribe(mutations: ["createColonyContributor"]) + onUpdateColonyContributor(filter: ModelSubscriptionColonyContributorFilterInput): ColonyContributor @aws_subscribe(mutations: ["updateColonyContributor"]) + onDeleteColonyContributor(filter: ModelSubscriptionColonyContributorFilterInput): ColonyContributor @aws_subscribe(mutations: ["deleteColonyContributor"]) + onCreateColony(filter: ModelSubscriptionColonyFilterInput): Colony @aws_subscribe(mutations: ["createColony"]) + onUpdateColony(filter: ModelSubscriptionColonyFilterInput): Colony @aws_subscribe(mutations: ["updateColony"]) + onDeleteColony(filter: ModelSubscriptionColonyFilterInput): Colony @aws_subscribe(mutations: ["deleteColony"]) + onCreateColonyMemberInvite(filter: ModelSubscriptionColonyMemberInviteFilterInput): ColonyMemberInvite @aws_subscribe(mutations: ["createColonyMemberInvite"]) + onUpdateColonyMemberInvite(filter: ModelSubscriptionColonyMemberInviteFilterInput): ColonyMemberInvite @aws_subscribe(mutations: ["updateColonyMemberInvite"]) + onDeleteColonyMemberInvite(filter: ModelSubscriptionColonyMemberInviteFilterInput): ColonyMemberInvite @aws_subscribe(mutations: ["deleteColonyMemberInvite"]) + onCreateColonyMetadata(filter: ModelSubscriptionColonyMetadataFilterInput): ColonyMetadata @aws_subscribe(mutations: ["createColonyMetadata"]) + onUpdateColonyMetadata(filter: ModelSubscriptionColonyMetadataFilterInput): ColonyMetadata @aws_subscribe(mutations: ["updateColonyMetadata"]) + onDeleteColonyMetadata(filter: ModelSubscriptionColonyMetadataFilterInput): ColonyMetadata @aws_subscribe(mutations: ["deleteColonyMetadata"]) + onCreateTransaction(filter: ModelSubscriptionTransactionFilterInput): Transaction @aws_subscribe(mutations: ["createTransaction"]) + onUpdateTransaction(filter: ModelSubscriptionTransactionFilterInput): Transaction @aws_subscribe(mutations: ["updateTransaction"]) + onDeleteTransaction(filter: ModelSubscriptionTransactionFilterInput): Transaction @aws_subscribe(mutations: ["deleteTransaction"]) + onCreateUser(filter: ModelSubscriptionUserFilterInput): User @aws_subscribe(mutations: ["createUser"]) + onUpdateUser(filter: ModelSubscriptionUserFilterInput): User @aws_subscribe(mutations: ["updateUser"]) + onDeleteUser(filter: ModelSubscriptionUserFilterInput): User @aws_subscribe(mutations: ["deleteUser"]) + onCreateLiquidationAddress(filter: ModelSubscriptionLiquidationAddressFilterInput): LiquidationAddress @aws_subscribe(mutations: ["createLiquidationAddress"]) + onUpdateLiquidationAddress(filter: ModelSubscriptionLiquidationAddressFilterInput): LiquidationAddress @aws_subscribe(mutations: ["updateLiquidationAddress"]) + onDeleteLiquidationAddress(filter: ModelSubscriptionLiquidationAddressFilterInput): LiquidationAddress @aws_subscribe(mutations: ["deleteLiquidationAddress"]) + onCreateColonyStake(filter: ModelSubscriptionColonyStakeFilterInput): ColonyStake @aws_subscribe(mutations: ["createColonyStake"]) + onUpdateColonyStake(filter: ModelSubscriptionColonyStakeFilterInput): ColonyStake @aws_subscribe(mutations: ["updateColonyStake"]) + onDeleteColonyStake(filter: ModelSubscriptionColonyStakeFilterInput): ColonyStake @aws_subscribe(mutations: ["deleteColonyStake"]) + onCreateDomain(filter: ModelSubscriptionDomainFilterInput): Domain @aws_subscribe(mutations: ["createDomain"]) + onUpdateDomain(filter: ModelSubscriptionDomainFilterInput): Domain @aws_subscribe(mutations: ["updateDomain"]) + onDeleteDomain(filter: ModelSubscriptionDomainFilterInput): Domain @aws_subscribe(mutations: ["deleteDomain"]) + onCreateDomainMetadata(filter: ModelSubscriptionDomainMetadataFilterInput): DomainMetadata @aws_subscribe(mutations: ["createDomainMetadata"]) + onUpdateDomainMetadata(filter: ModelSubscriptionDomainMetadataFilterInput): DomainMetadata @aws_subscribe(mutations: ["updateDomainMetadata"]) + onDeleteDomainMetadata(filter: ModelSubscriptionDomainMetadataFilterInput): DomainMetadata @aws_subscribe(mutations: ["deleteDomainMetadata"]) + onCreateColonyFundsClaim(filter: ModelSubscriptionColonyFundsClaimFilterInput): ColonyFundsClaim @aws_subscribe(mutations: ["createColonyFundsClaim"]) + onUpdateColonyFundsClaim(filter: ModelSubscriptionColonyFundsClaimFilterInput): ColonyFundsClaim @aws_subscribe(mutations: ["updateColonyFundsClaim"]) + onDeleteColonyFundsClaim(filter: ModelSubscriptionColonyFundsClaimFilterInput): ColonyFundsClaim @aws_subscribe(mutations: ["deleteColonyFundsClaim"]) + onCreateMotionMessage(filter: ModelSubscriptionMotionMessageFilterInput): MotionMessage @aws_subscribe(mutations: ["createMotionMessage"]) + onUpdateMotionMessage(filter: ModelSubscriptionMotionMessageFilterInput): MotionMessage @aws_subscribe(mutations: ["updateMotionMessage"]) + onDeleteMotionMessage(filter: ModelSubscriptionMotionMessageFilterInput): MotionMessage @aws_subscribe(mutations: ["deleteMotionMessage"]) + onCreateColonyMotion(filter: ModelSubscriptionColonyMotionFilterInput): ColonyMotion @aws_subscribe(mutations: ["createColonyMotion"]) + onUpdateColonyMotion(filter: ModelSubscriptionColonyMotionFilterInput): ColonyMotion @aws_subscribe(mutations: ["updateColonyMotion"]) + onDeleteColonyMotion(filter: ModelSubscriptionColonyMotionFilterInput): ColonyMotion @aws_subscribe(mutations: ["deleteColonyMotion"]) + onCreateContractEvent(filter: ModelSubscriptionContractEventFilterInput): ContractEvent @aws_subscribe(mutations: ["createContractEvent"]) + onUpdateContractEvent(filter: ModelSubscriptionContractEventFilterInput): ContractEvent @aws_subscribe(mutations: ["updateContractEvent"]) + onDeleteContractEvent(filter: ModelSubscriptionContractEventFilterInput): ContractEvent @aws_subscribe(mutations: ["deleteContractEvent"]) + onCreateColonyExtension(filter: ModelSubscriptionColonyExtensionFilterInput): ColonyExtension @aws_subscribe(mutations: ["createColonyExtension"]) + onUpdateColonyExtension(filter: ModelSubscriptionColonyExtensionFilterInput): ColonyExtension @aws_subscribe(mutations: ["updateColonyExtension"]) + onDeleteColonyExtension(filter: ModelSubscriptionColonyExtensionFilterInput): ColonyExtension @aws_subscribe(mutations: ["deleteColonyExtension"]) + onCreateCurrentVersion(filter: ModelSubscriptionCurrentVersionFilterInput): CurrentVersion @aws_subscribe(mutations: ["createCurrentVersion"]) + onUpdateCurrentVersion(filter: ModelSubscriptionCurrentVersionFilterInput): CurrentVersion @aws_subscribe(mutations: ["updateCurrentVersion"]) + onDeleteCurrentVersion(filter: ModelSubscriptionCurrentVersionFilterInput): CurrentVersion @aws_subscribe(mutations: ["deleteCurrentVersion"]) + onCreateCurrentNetworkInverseFee(filter: ModelSubscriptionCurrentNetworkInverseFeeFilterInput): CurrentNetworkInverseFee @aws_subscribe(mutations: ["createCurrentNetworkInverseFee"]) + onUpdateCurrentNetworkInverseFee(filter: ModelSubscriptionCurrentNetworkInverseFeeFilterInput): CurrentNetworkInverseFee @aws_subscribe(mutations: ["updateCurrentNetworkInverseFee"]) + onDeleteCurrentNetworkInverseFee(filter: ModelSubscriptionCurrentNetworkInverseFeeFilterInput): CurrentNetworkInverseFee @aws_subscribe(mutations: ["deleteCurrentNetworkInverseFee"]) + onCreateColonyAction(filter: ModelSubscriptionColonyActionFilterInput): ColonyAction @aws_subscribe(mutations: ["createColonyAction"]) + onUpdateColonyAction(filter: ModelSubscriptionColonyActionFilterInput): ColonyAction @aws_subscribe(mutations: ["updateColonyAction"]) + onDeleteColonyAction(filter: ModelSubscriptionColonyActionFilterInput): ColonyAction @aws_subscribe(mutations: ["deleteColonyAction"]) + onCreateColonyActionMetadata(filter: ModelSubscriptionColonyActionMetadataFilterInput): ColonyActionMetadata @aws_subscribe(mutations: ["createColonyActionMetadata"]) + onUpdateColonyActionMetadata(filter: ModelSubscriptionColonyActionMetadataFilterInput): ColonyActionMetadata @aws_subscribe(mutations: ["updateColonyActionMetadata"]) + onDeleteColonyActionMetadata(filter: ModelSubscriptionColonyActionMetadataFilterInput): ColonyActionMetadata @aws_subscribe(mutations: ["deleteColonyActionMetadata"]) + onCreateColonyDecision(filter: ModelSubscriptionColonyDecisionFilterInput): ColonyDecision @aws_subscribe(mutations: ["createColonyDecision"]) + onUpdateColonyDecision(filter: ModelSubscriptionColonyDecisionFilterInput): ColonyDecision @aws_subscribe(mutations: ["updateColonyDecision"]) + onDeleteColonyDecision(filter: ModelSubscriptionColonyDecisionFilterInput): ColonyDecision @aws_subscribe(mutations: ["deleteColonyDecision"]) + onCreateColonyRole(filter: ModelSubscriptionColonyRoleFilterInput): ColonyRole @aws_subscribe(mutations: ["createColonyRole"]) + onUpdateColonyRole(filter: ModelSubscriptionColonyRoleFilterInput): ColonyRole @aws_subscribe(mutations: ["updateColonyRole"]) + onDeleteColonyRole(filter: ModelSubscriptionColonyRoleFilterInput): ColonyRole @aws_subscribe(mutations: ["deleteColonyRole"]) + onCreateColonyHistoricRole(filter: ModelSubscriptionColonyHistoricRoleFilterInput): ColonyHistoricRole @aws_subscribe(mutations: ["createColonyHistoricRole"]) + onUpdateColonyHistoricRole(filter: ModelSubscriptionColonyHistoricRoleFilterInput): ColonyHistoricRole @aws_subscribe(mutations: ["updateColonyHistoricRole"]) + onDeleteColonyHistoricRole(filter: ModelSubscriptionColonyHistoricRoleFilterInput): ColonyHistoricRole @aws_subscribe(mutations: ["deleteColonyHistoricRole"]) + onCreateIngestorStats(filter: ModelSubscriptionIngestorStatsFilterInput): IngestorStats @aws_subscribe(mutations: ["createIngestorStats"]) + onUpdateIngestorStats(filter: ModelSubscriptionIngestorStatsFilterInput): IngestorStats @aws_subscribe(mutations: ["updateIngestorStats"]) + onDeleteIngestorStats(filter: ModelSubscriptionIngestorStatsFilterInput): IngestorStats @aws_subscribe(mutations: ["deleteIngestorStats"]) + onCreateExpenditure(filter: ModelSubscriptionExpenditureFilterInput): Expenditure @aws_subscribe(mutations: ["createExpenditure"]) + onUpdateExpenditure(filter: ModelSubscriptionExpenditureFilterInput): Expenditure @aws_subscribe(mutations: ["updateExpenditure"]) + onDeleteExpenditure(filter: ModelSubscriptionExpenditureFilterInput): Expenditure @aws_subscribe(mutations: ["deleteExpenditure"]) + onCreateExpenditureMetadata(filter: ModelSubscriptionExpenditureMetadataFilterInput): ExpenditureMetadata @aws_subscribe(mutations: ["createExpenditureMetadata"]) + onUpdateExpenditureMetadata(filter: ModelSubscriptionExpenditureMetadataFilterInput): ExpenditureMetadata @aws_subscribe(mutations: ["updateExpenditureMetadata"]) + onDeleteExpenditureMetadata(filter: ModelSubscriptionExpenditureMetadataFilterInput): ExpenditureMetadata @aws_subscribe(mutations: ["deleteExpenditureMetadata"]) + onCreateStreamingPayment(filter: ModelSubscriptionStreamingPaymentFilterInput): StreamingPayment @aws_subscribe(mutations: ["createStreamingPayment"]) + onUpdateStreamingPayment(filter: ModelSubscriptionStreamingPaymentFilterInput): StreamingPayment @aws_subscribe(mutations: ["updateStreamingPayment"]) + onDeleteStreamingPayment(filter: ModelSubscriptionStreamingPaymentFilterInput): StreamingPayment @aws_subscribe(mutations: ["deleteStreamingPayment"]) + onCreateStreamingPaymentMetadata(filter: ModelSubscriptionStreamingPaymentMetadataFilterInput): StreamingPaymentMetadata @aws_subscribe(mutations: ["createStreamingPaymentMetadata"]) + onUpdateStreamingPaymentMetadata(filter: ModelSubscriptionStreamingPaymentMetadataFilterInput): StreamingPaymentMetadata @aws_subscribe(mutations: ["updateStreamingPaymentMetadata"]) + onDeleteStreamingPaymentMetadata(filter: ModelSubscriptionStreamingPaymentMetadataFilterInput): StreamingPaymentMetadata @aws_subscribe(mutations: ["deleteStreamingPaymentMetadata"]) + onCreateAnnotation(filter: ModelSubscriptionAnnotationFilterInput): Annotation @aws_subscribe(mutations: ["createAnnotation"]) + onUpdateAnnotation(filter: ModelSubscriptionAnnotationFilterInput): Annotation @aws_subscribe(mutations: ["updateAnnotation"]) + onDeleteAnnotation(filter: ModelSubscriptionAnnotationFilterInput): Annotation @aws_subscribe(mutations: ["deleteAnnotation"]) + onCreateReputationMiningCycleMetadata(filter: ModelSubscriptionReputationMiningCycleMetadataFilterInput): ReputationMiningCycleMetadata @aws_subscribe(mutations: ["createReputationMiningCycleMetadata"]) + onUpdateReputationMiningCycleMetadata(filter: ModelSubscriptionReputationMiningCycleMetadataFilterInput): ReputationMiningCycleMetadata @aws_subscribe(mutations: ["updateReputationMiningCycleMetadata"]) + onDeleteReputationMiningCycleMetadata(filter: ModelSubscriptionReputationMiningCycleMetadataFilterInput): ReputationMiningCycleMetadata @aws_subscribe(mutations: ["deleteReputationMiningCycleMetadata"]) + onCreatePrivateBetaInviteCode(filter: ModelSubscriptionPrivateBetaInviteCodeFilterInput): PrivateBetaInviteCode @aws_subscribe(mutations: ["createPrivateBetaInviteCode"]) + onUpdatePrivateBetaInviteCode(filter: ModelSubscriptionPrivateBetaInviteCodeFilterInput): PrivateBetaInviteCode @aws_subscribe(mutations: ["updatePrivateBetaInviteCode"]) + onDeletePrivateBetaInviteCode(filter: ModelSubscriptionPrivateBetaInviteCodeFilterInput): PrivateBetaInviteCode @aws_subscribe(mutations: ["deletePrivateBetaInviteCode"]) + onCreateSafeTransaction(filter: ModelSubscriptionSafeTransactionFilterInput): SafeTransaction @aws_subscribe(mutations: ["createSafeTransaction"]) + onUpdateSafeTransaction(filter: ModelSubscriptionSafeTransactionFilterInput): SafeTransaction @aws_subscribe(mutations: ["updateSafeTransaction"]) + onDeleteSafeTransaction(filter: ModelSubscriptionSafeTransactionFilterInput): SafeTransaction @aws_subscribe(mutations: ["deleteSafeTransaction"]) + onCreateSafeTransactionData(filter: ModelSubscriptionSafeTransactionDataFilterInput): SafeTransactionData @aws_subscribe(mutations: ["createSafeTransactionData"]) + onUpdateSafeTransactionData(filter: ModelSubscriptionSafeTransactionDataFilterInput): SafeTransactionData @aws_subscribe(mutations: ["updateSafeTransactionData"]) + onDeleteSafeTransactionData(filter: ModelSubscriptionSafeTransactionDataFilterInput): SafeTransactionData @aws_subscribe(mutations: ["deleteSafeTransactionData"]) + onCreateExtensionInstallationsCount(filter: ModelSubscriptionExtensionInstallationsCountFilterInput): ExtensionInstallationsCount @aws_subscribe(mutations: ["createExtensionInstallationsCount"]) + onUpdateExtensionInstallationsCount(filter: ModelSubscriptionExtensionInstallationsCountFilterInput): ExtensionInstallationsCount @aws_subscribe(mutations: ["updateExtensionInstallationsCount"]) + onDeleteExtensionInstallationsCount(filter: ModelSubscriptionExtensionInstallationsCountFilterInput): ExtensionInstallationsCount @aws_subscribe(mutations: ["deleteExtensionInstallationsCount"]) + onCreateUserStake(filter: ModelSubscriptionUserStakeFilterInput): UserStake @aws_subscribe(mutations: ["createUserStake"]) + onUpdateUserStake(filter: ModelSubscriptionUserStakeFilterInput): UserStake @aws_subscribe(mutations: ["updateUserStake"]) + onDeleteUserStake(filter: ModelSubscriptionUserStakeFilterInput): UserStake @aws_subscribe(mutations: ["deleteUserStake"]) + onCreateColonyTokens(filter: ModelSubscriptionColonyTokensFilterInput): ColonyTokens @aws_subscribe(mutations: ["createColonyTokens"]) + onUpdateColonyTokens(filter: ModelSubscriptionColonyTokensFilterInput): ColonyTokens @aws_subscribe(mutations: ["updateColonyTokens"]) + onDeleteColonyTokens(filter: ModelSubscriptionColonyTokensFilterInput): ColonyTokens @aws_subscribe(mutations: ["deleteColonyTokens"]) + onCreateUserTokens(filter: ModelSubscriptionUserTokensFilterInput): UserTokens @aws_subscribe(mutations: ["createUserTokens"]) + onUpdateUserTokens(filter: ModelSubscriptionUserTokensFilterInput): UserTokens @aws_subscribe(mutations: ["updateUserTokens"]) + onDeleteUserTokens(filter: ModelSubscriptionUserTokensFilterInput): UserTokens @aws_subscribe(mutations: ["deleteUserTokens"]) +} + +input ChainMetadataInput { + network: Network + chainId: String! + transactionHash: String + logIndex: Int + blockNumber: Int +} + +type ModelTokenConnection { + items: [Token]! + nextToken: String +} + +input ModelTokenTypeInput { + eq: TokenType + ne: TokenType +} + +input ModelTokenFilterInput { + id: ModelIDInput + name: ModelStringInput + symbol: ModelStringInput + decimals: ModelIntInput + type: ModelTokenTypeInput + avatar: ModelStringInput + thumbnail: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelTokenFilterInput] + or: [ModelTokenFilterInput] + not: ModelTokenFilterInput +} + +input ModelTokenConditionInput { + name: ModelStringInput + symbol: ModelStringInput + decimals: ModelIntInput + type: ModelTokenTypeInput + avatar: ModelStringInput + thumbnail: ModelStringInput + createdAt: ModelStringInput + and: [ModelTokenConditionInput] + or: [ModelTokenConditionInput] + not: ModelTokenConditionInput + updatedAt: ModelStringInput +} + +input CreateTokenInput { + id: ID + name: String! + symbol: String! + decimals: Int! + type: TokenType + avatar: String + thumbnail: String + chainMetadata: ChainMetadataInput! + createdAt: AWSDateTime +} + +input UpdateTokenInput { + id: ID! + name: String + symbol: String + decimals: Int + type: TokenType + avatar: String + thumbnail: String + chainMetadata: ChainMetadataInput + createdAt: AWSDateTime +} + +input DeleteTokenInput { + id: ID! +} + +input ModelSubscriptionTokenFilterInput { + id: ModelSubscriptionIDInput + name: ModelSubscriptionStringInput + symbol: ModelSubscriptionStringInput + decimals: ModelSubscriptionIntInput + type: ModelSubscriptionStringInput + avatar: ModelSubscriptionStringInput + thumbnail: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionTokenFilterInput] + or: [ModelSubscriptionTokenFilterInput] +} + +type ModelContributorReputationConnection { + items: [ContributorReputation]! + nextToken: String +} + +input ModelContributorReputationFilterInput { + id: ModelIDInput + contributorAddress: ModelIDInput + colonyAddress: ModelIDInput + domainId: ModelIDInput + reputationRaw: ModelStringInput + reputationPercentage: ModelFloatInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelContributorReputationFilterInput] + or: [ModelContributorReputationFilterInput] + not: ModelContributorReputationFilterInput +} + +input ModelContributorReputationConditionInput { + contributorAddress: ModelIDInput + colonyAddress: ModelIDInput + domainId: ModelIDInput + reputationRaw: ModelStringInput + reputationPercentage: ModelFloatInput + and: [ModelContributorReputationConditionInput] + or: [ModelContributorReputationConditionInput] + not: ModelContributorReputationConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateContributorReputationInput { + id: ID + contributorAddress: ID! + colonyAddress: ID! + domainId: ID! + reputationRaw: String! + reputationPercentage: Float! +} + +input UpdateContributorReputationInput { + id: ID! + contributorAddress: ID + colonyAddress: ID + domainId: ID + reputationRaw: String + reputationPercentage: Float +} + +input DeleteContributorReputationInput { + id: ID! +} + +input ModelSubscriptionContributorReputationFilterInput { + id: ModelSubscriptionIDInput + contributorAddress: ModelSubscriptionIDInput + colonyAddress: ModelSubscriptionIDInput + domainId: ModelSubscriptionIDInput + reputationRaw: ModelSubscriptionStringInput + reputationPercentage: ModelSubscriptionFloatInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionContributorReputationFilterInput] + or: [ModelSubscriptionContributorReputationFilterInput] +} + +type ModelColonyContributorConnection { + items: [ColonyContributor]! + nextToken: String +} + +input ModelContributorTypeInput { + eq: ContributorType + ne: ContributorType +} + +input ModelColonyContributorFilterInput { + id: ModelIDInput + contributorAddress: ModelIDInput + type: ModelContributorTypeInput + isVerified: ModelBooleanInput + isWatching: ModelBooleanInput + hasPermissions: ModelBooleanInput + hasReputation: ModelBooleanInput + colonyReputationPercentage: ModelFloatInput + colonyAddress: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyContributorFilterInput] + or: [ModelColonyContributorFilterInput] + not: ModelColonyContributorFilterInput +} + +input ModelColonyContributorConditionInput { + contributorAddress: ModelIDInput + type: ModelContributorTypeInput + isVerified: ModelBooleanInput + isWatching: ModelBooleanInput + hasPermissions: ModelBooleanInput + hasReputation: ModelBooleanInput + colonyReputationPercentage: ModelFloatInput + colonyAddress: ModelIDInput + and: [ModelColonyContributorConditionInput] + or: [ModelColonyContributorConditionInput] + not: ModelColonyContributorConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyContributorInput { + id: ID + contributorAddress: ID! + type: ContributorType + isVerified: Boolean! + isWatching: Boolean + hasPermissions: Boolean + hasReputation: Boolean + colonyReputationPercentage: Float! + colonyAddress: ID! +} + +input UpdateColonyContributorInput { + id: ID! + contributorAddress: ID + type: ContributorType + isVerified: Boolean + isWatching: Boolean + hasPermissions: Boolean + hasReputation: Boolean + colonyReputationPercentage: Float + colonyAddress: ID +} + +input DeleteColonyContributorInput { + id: ID! +} + +input ModelSubscriptionColonyContributorFilterInput { + id: ModelSubscriptionIDInput + contributorAddress: ModelSubscriptionIDInput + type: ModelSubscriptionStringInput + isVerified: ModelSubscriptionBooleanInput + isWatching: ModelSubscriptionBooleanInput + hasPermissions: ModelSubscriptionBooleanInput + hasReputation: ModelSubscriptionBooleanInput + colonyReputationPercentage: ModelSubscriptionFloatInput + colonyAddress: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyContributorFilterInput] + or: [ModelSubscriptionColonyContributorFilterInput] +} + +input ColonyChainFundsClaimInput { + id: ID! + createdAtBlock: Int! + createdAt: AWSDateTime! + updatedAt: AWSDateTime! + amount: String! + isClaimed: Boolean +} + +input ColonyBalancesInput { + items: [ColonyBalanceInput] +} + +input ColonyBalanceInput { + id: ID! + balance: String! + domain: DomainInput + token: TokenInput! +} + +input ColonyUnclaimedStakeInput { + motionId: String! + unclaimedRewards: [StakerRewardsInput!]! +} + +type ModelColonyConnection { + items: [Colony]! + nextToken: String +} + +input ModelColonyTypeInput { + eq: ColonyType + ne: ColonyType +} + +input ModelColonyFilterInput { + id: ModelIDInput + name: ModelStringInput + nativeTokenId: ModelIDInput + type: ModelColonyTypeInput + version: ModelIntInput + lastUpdatedContributorsWithReputation: ModelStringInput + reputation: ModelStringInput + expendituresGlobalClaimDelay: ModelStringInput + private: ModelBooleanInput + colonyMemberInviteCode: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyFilterInput] + or: [ModelColonyFilterInput] + not: ModelColonyFilterInput +} + +input ModelColonyConditionInput { + name: ModelStringInput + nativeTokenId: ModelIDInput + type: ModelColonyTypeInput + version: ModelIntInput + lastUpdatedContributorsWithReputation: ModelStringInput + reputation: ModelStringInput + expendituresGlobalClaimDelay: ModelStringInput + private: ModelBooleanInput + colonyMemberInviteCode: ModelIDInput + and: [ModelColonyConditionInput] + or: [ModelColonyConditionInput] + not: ModelColonyConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyInput { + id: ID + name: String! + nativeTokenId: ID! + status: ColonyStatusInput + chainFundsClaim: ColonyChainFundsClaimInput + type: ColonyType + balances: ColonyBalancesInput + chainMetadata: ChainMetadataInput! + version: Int! + motionsWithUnclaimedStakes: [ColonyUnclaimedStakeInput!] + lastUpdatedContributorsWithReputation: AWSDateTime + reputation: String + expendituresGlobalClaimDelay: String + private: Boolean + colonyMemberInviteCode: ID +} + +input UpdateColonyInput { + id: ID! + name: String + nativeTokenId: ID + status: ColonyStatusInput + chainFundsClaim: ColonyChainFundsClaimInput + type: ColonyType + balances: ColonyBalancesInput + chainMetadata: ChainMetadataInput + version: Int + motionsWithUnclaimedStakes: [ColonyUnclaimedStakeInput!] + lastUpdatedContributorsWithReputation: AWSDateTime + reputation: String + expendituresGlobalClaimDelay: String + private: Boolean + colonyMemberInviteCode: ID +} + +input DeleteColonyInput { + id: ID! +} + +input ModelSubscriptionColonyFilterInput { + id: ModelSubscriptionIDInput + name: ModelSubscriptionStringInput + nativeTokenId: ModelSubscriptionIDInput + type: ModelSubscriptionStringInput + version: ModelSubscriptionIntInput + lastUpdatedContributorsWithReputation: ModelSubscriptionStringInput + reputation: ModelSubscriptionStringInput + expendituresGlobalClaimDelay: ModelSubscriptionStringInput + private: ModelSubscriptionBooleanInput + colonyMemberInviteCode: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyFilterInput] + or: [ModelSubscriptionColonyFilterInput] + colonyFundsClaimsId: ModelSubscriptionIDInput + colonyActionsId: ModelSubscriptionIDInput + colonyRolesId: ModelSubscriptionIDInput +} + +type ModelColonyMemberInviteConnection { + items: [ColonyMemberInvite]! + nextToken: String +} + +input ModelColonyMemberInviteFilterInput { + id: ModelIDInput + colonyId: ModelIDInput + invitesRemaining: ModelIntInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyMemberInviteFilterInput] + or: [ModelColonyMemberInviteFilterInput] + not: ModelColonyMemberInviteFilterInput +} + +input ModelColonyMemberInviteConditionInput { + colonyId: ModelIDInput + invitesRemaining: ModelIntInput + and: [ModelColonyMemberInviteConditionInput] + or: [ModelColonyMemberInviteConditionInput] + not: ModelColonyMemberInviteConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyMemberInviteInput { + id: ID + colonyId: ID! + invitesRemaining: Int! +} + +input UpdateColonyMemberInviteInput { + id: ID! + colonyId: ID + invitesRemaining: Int +} + +input DeleteColonyMemberInviteInput { + id: ID! +} + +input ModelSubscriptionColonyMemberInviteFilterInput { + id: ModelSubscriptionIDInput + colonyId: ModelSubscriptionIDInput + invitesRemaining: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyMemberInviteFilterInput] + or: [ModelSubscriptionColonyMemberInviteFilterInput] +} + +input ExternalLinkInput { + name: ExternalLinks! + link: String! +} + +input ColonyMetadataChangelogInput { + transactionHash: String! + oldDisplayName: String! + newDisplayName: String! + hasAvatarChanged: Boolean! + haveTokensChanged: Boolean! + hasDescriptionChanged: Boolean + haveExternalLinksChanged: Boolean + hasObjectiveChanged: Boolean + newSafes: [SafeInput!] + oldSafes: [SafeInput!] +} + +input SafeInput { + name: String! + address: String! + chainId: String! + moduleContractAddress: String! +} + +input PendingModifiedTokenAddressesInput { + added: [String!] + removed: [String!] +} + +input ColonyObjectiveInput { + title: String! + description: String! + progress: Int! +} + +input ColonyMetadataEtherealDataInput { + colonyName: String! + colonyDisplayName: String! + colonyAvatar: String + colonyThumbnail: String + tokenAvatar: String + tokenThumbnail: String + initiatorAddress: ID! +} + +type ModelColonyMetadataConnection { + items: [ColonyMetadata]! + nextToken: String +} + +input ModelColonyMetadataFilterInput { + id: ModelIDInput + displayName: ModelStringInput + description: ModelStringInput + avatar: ModelStringInput + thumbnail: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyMetadataFilterInput] + or: [ModelColonyMetadataFilterInput] + not: ModelColonyMetadataFilterInput +} + +input ModelColonyMetadataConditionInput { + displayName: ModelStringInput + description: ModelStringInput + avatar: ModelStringInput + thumbnail: ModelStringInput + and: [ModelColonyMetadataConditionInput] + or: [ModelColonyMetadataConditionInput] + not: ModelColonyMetadataConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyMetadataInput { + id: ID + displayName: String! + description: String + externalLinks: [ExternalLinkInput!] + avatar: String + thumbnail: String + changelog: [ColonyMetadataChangelogInput!] + modifiedTokenAddresses: PendingModifiedTokenAddressesInput + objective: ColonyObjectiveInput + safes: [SafeInput!] + etherealData: ColonyMetadataEtherealDataInput +} + +input UpdateColonyMetadataInput { + id: ID! + displayName: String + description: String + externalLinks: [ExternalLinkInput!] + avatar: String + thumbnail: String + changelog: [ColonyMetadataChangelogInput!] + modifiedTokenAddresses: PendingModifiedTokenAddressesInput + objective: ColonyObjectiveInput + safes: [SafeInput!] + etherealData: ColonyMetadataEtherealDataInput +} + +input DeleteColonyMetadataInput { + id: ID! +} + +input ModelSubscriptionColonyMetadataFilterInput { + id: ModelSubscriptionIDInput + displayName: ModelSubscriptionStringInput + description: ModelSubscriptionStringInput + avatar: ModelSubscriptionStringInput + thumbnail: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyMetadataFilterInput] + or: [ModelSubscriptionColonyMetadataFilterInput] +} + +input TransactionGroupInput { + id: String! + groupId: String! + index: Int! + key: String! + title: String + titleValues: String + description: String + descriptionValues: String +} + +input TransactionErrorInput { + type: TransactionErrors! + message: String! +} + +type ModelTransactionConnection { + items: [Transaction]! + nextToken: String +} + +input ModelClientTypeInput { + eq: ClientType + ne: ClientType +} + +input ModelTransactionStatusInput { + eq: TransactionStatus + ne: TransactionStatus +} + +input ModelTransactionFilterInput { + id: ModelIDInput + context: ModelClientTypeInput + createdAt: ModelStringInput + from: ModelIDInput + colonyAddress: ModelIDInput + groupId: ModelIDInput + hash: ModelStringInput + blockNumber: ModelIntInput + blockHash: ModelStringInput + params: ModelStringInput + methodContext: ModelStringInput + methodName: ModelStringInput + status: ModelTransactionStatusInput + metatransaction: ModelBooleanInput + title: ModelStringInput + titleValues: ModelStringInput + gasLimit: ModelStringInput + gasPrice: ModelStringInput + identifier: ModelStringInput + eventData: ModelStringInput + deployedContractAddress: ModelStringInput + loadingRelated: ModelBooleanInput + receipt: ModelStringInput + deleted: ModelBooleanInput + options: ModelStringInput + updatedAt: ModelStringInput + and: [ModelTransactionFilterInput] + or: [ModelTransactionFilterInput] + not: ModelTransactionFilterInput +} + +input ModelTransactionConditionInput { + context: ModelClientTypeInput + createdAt: ModelStringInput + from: ModelIDInput + colonyAddress: ModelIDInput + groupId: ModelIDInput + hash: ModelStringInput + blockNumber: ModelIntInput + blockHash: ModelStringInput + params: ModelStringInput + methodContext: ModelStringInput + methodName: ModelStringInput + status: ModelTransactionStatusInput + metatransaction: ModelBooleanInput + title: ModelStringInput + titleValues: ModelStringInput + gasLimit: ModelStringInput + gasPrice: ModelStringInput + identifier: ModelStringInput + eventData: ModelStringInput + deployedContractAddress: ModelStringInput + loadingRelated: ModelBooleanInput + receipt: ModelStringInput + deleted: ModelBooleanInput + options: ModelStringInput + and: [ModelTransactionConditionInput] + or: [ModelTransactionConditionInput] + not: ModelTransactionConditionInput + updatedAt: ModelStringInput +} + +input CreateTransactionInput { + id: ID + context: ClientType! + createdAt: AWSDateTime + from: ID! + colonyAddress: ID! + groupId: ID + group: TransactionGroupInput + hash: String + blockNumber: Int + blockHash: String + error: TransactionErrorInput + params: String + methodContext: String + methodName: String! + status: TransactionStatus! + metatransaction: Boolean! + title: String + titleValues: String + gasLimit: String + gasPrice: String + identifier: String + eventData: String + deployedContractAddress: String + loadingRelated: Boolean + receipt: String + deleted: Boolean + options: String +} + +input UpdateTransactionInput { + id: ID! + context: ClientType + createdAt: AWSDateTime + from: ID + colonyAddress: ID + groupId: ID + group: TransactionGroupInput + hash: String + blockNumber: Int + blockHash: String + error: TransactionErrorInput + params: String + methodContext: String + methodName: String + status: TransactionStatus + metatransaction: Boolean + title: String + titleValues: String + gasLimit: String + gasPrice: String + identifier: String + eventData: String + deployedContractAddress: String + loadingRelated: Boolean + receipt: String + deleted: Boolean + options: String +} + +input DeleteTransactionInput { + id: ID! +} + +input ModelSubscriptionTransactionFilterInput { + id: ModelSubscriptionIDInput + context: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + from: ModelSubscriptionIDInput + colonyAddress: ModelSubscriptionIDInput + groupId: ModelSubscriptionIDInput + hash: ModelSubscriptionStringInput + blockNumber: ModelSubscriptionIntInput + blockHash: ModelSubscriptionStringInput + params: ModelSubscriptionStringInput + methodContext: ModelSubscriptionStringInput + methodName: ModelSubscriptionStringInput + status: ModelSubscriptionStringInput + metatransaction: ModelSubscriptionBooleanInput + title: ModelSubscriptionStringInput + titleValues: ModelSubscriptionStringInput + gasLimit: ModelSubscriptionStringInput + gasPrice: ModelSubscriptionStringInput + identifier: ModelSubscriptionStringInput + eventData: ModelSubscriptionStringInput + deployedContractAddress: ModelSubscriptionStringInput + loadingRelated: ModelSubscriptionBooleanInput + receipt: ModelSubscriptionStringInput + deleted: ModelSubscriptionBooleanInput + options: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionTransactionFilterInput] + or: [ModelSubscriptionTransactionFilterInput] +} + +type ModelUserConnection { + items: [User]! + nextToken: String +} + +input ModelUserFilterInput { + id: ModelIDInput + profileId: ModelIDInput + bridgeCustomerId: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelUserFilterInput] + or: [ModelUserFilterInput] + not: ModelUserFilterInput + userPrivateBetaInviteCodeId: ModelIDInput +} + +input ModelUserConditionInput { + profileId: ModelIDInput + bridgeCustomerId: ModelStringInput + and: [ModelUserConditionInput] + or: [ModelUserConditionInput] + not: ModelUserConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + userPrivateBetaInviteCodeId: ModelIDInput +} + +input CreateUserInput { + id: ID + profileId: ID + bridgeCustomerId: String + userPrivateBetaInviteCodeId: ID +} + +input UpdateUserInput { + id: ID! + profileId: ID + bridgeCustomerId: String + userPrivateBetaInviteCodeId: ID +} + +input DeleteUserInput { + id: ID! +} + +input ModelSubscriptionUserFilterInput { + id: ModelSubscriptionIDInput + profileId: ModelSubscriptionIDInput + bridgeCustomerId: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionUserFilterInput] + or: [ModelSubscriptionUserFilterInput] + userPrivateBetaInviteCodeId: ModelSubscriptionIDInput +} + +type ModelLiquidationAddressConnection { + items: [LiquidationAddress]! + nextToken: String +} + +input ModelLiquidationAddressFilterInput { + id: ModelIDInput + chainId: ModelIntInput + userAddress: ModelIDInput + liquidationAddress: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelLiquidationAddressFilterInput] + or: [ModelLiquidationAddressFilterInput] + not: ModelLiquidationAddressFilterInput +} + +input ModelLiquidationAddressConditionInput { + chainId: ModelIntInput + userAddress: ModelIDInput + liquidationAddress: ModelIDInput + and: [ModelLiquidationAddressConditionInput] + or: [ModelLiquidationAddressConditionInput] + not: ModelLiquidationAddressConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateLiquidationAddressInput { + id: ID + chainId: Int! + userAddress: ID! + liquidationAddress: ID! +} + +input UpdateLiquidationAddressInput { + id: ID! + chainId: Int + userAddress: ID + liquidationAddress: ID +} + +input DeleteLiquidationAddressInput { + id: ID! +} + +input ModelSubscriptionLiquidationAddressFilterInput { + id: ModelSubscriptionIDInput + chainId: ModelSubscriptionIntInput + userAddress: ModelSubscriptionIDInput + liquidationAddress: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionLiquidationAddressFilterInput] + or: [ModelSubscriptionLiquidationAddressFilterInput] +} + +type ModelColonyStakeConnection { + items: [ColonyStake]! + nextToken: String +} + +input ModelColonyStakeFilterInput { + id: ModelIDInput + userId: ModelIDInput + colonyId: ModelIDInput + totalAmount: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyStakeFilterInput] + or: [ModelColonyStakeFilterInput] + not: ModelColonyStakeFilterInput +} + +input ModelColonyStakeConditionInput { + userId: ModelIDInput + colonyId: ModelIDInput + totalAmount: ModelStringInput + and: [ModelColonyStakeConditionInput] + or: [ModelColonyStakeConditionInput] + not: ModelColonyStakeConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyStakeInput { + id: ID + userId: ID! + colonyId: ID! + totalAmount: String! +} + +input UpdateColonyStakeInput { + id: ID! + userId: ID + colonyId: ID + totalAmount: String +} + +input DeleteColonyStakeInput { + id: ID! +} + +input ModelSubscriptionColonyStakeFilterInput { + id: ModelSubscriptionIDInput + userId: ModelSubscriptionIDInput + colonyId: ModelSubscriptionIDInput + totalAmount: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyStakeFilterInput] + or: [ModelSubscriptionColonyStakeFilterInput] +} + +type ModelDomainConnection { + items: [Domain]! + nextToken: String +} + +input ModelDomainFilterInput { + id: ModelIDInput + colonyId: ModelIDInput + nativeId: ModelIntInput + nativeFundingPotId: ModelIntInput + nativeSkillId: ModelStringInput + isRoot: ModelBooleanInput + reputation: ModelStringInput + reputationPercentage: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelDomainFilterInput] + or: [ModelDomainFilterInput] + not: ModelDomainFilterInput +} + +input ModelDomainConditionInput { + colonyId: ModelIDInput + nativeId: ModelIntInput + nativeFundingPotId: ModelIntInput + nativeSkillId: ModelStringInput + isRoot: ModelBooleanInput + reputation: ModelStringInput + reputationPercentage: ModelStringInput + and: [ModelDomainConditionInput] + or: [ModelDomainConditionInput] + not: ModelDomainConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateDomainInput { + id: ID + colonyId: ID! + nativeId: Int! + nativeFundingPotId: Int! + nativeSkillId: String! + isRoot: Boolean! + reputation: String + reputationPercentage: String +} + +input UpdateDomainInput { + id: ID! + colonyId: ID + nativeId: Int + nativeFundingPotId: Int + nativeSkillId: String + isRoot: Boolean + reputation: String + reputationPercentage: String +} + +input DeleteDomainInput { + id: ID! +} + +input ModelSubscriptionDomainFilterInput { + id: ModelSubscriptionIDInput + colonyId: ModelSubscriptionIDInput + nativeId: ModelSubscriptionIntInput + nativeFundingPotId: ModelSubscriptionIntInput + nativeSkillId: ModelSubscriptionStringInput + isRoot: ModelSubscriptionBooleanInput + reputation: ModelSubscriptionStringInput + reputationPercentage: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionDomainFilterInput] + or: [ModelSubscriptionDomainFilterInput] +} + +input DomainMetadataChangelogInput { + transactionHash: String! + oldName: String! + newName: String! + oldColor: DomainColor! + newColor: DomainColor! + oldDescription: String + newDescription: String +} + +type ModelDomainMetadataConnection { + items: [DomainMetadata]! + nextToken: String +} + +input ModelDomainColorInput { + eq: DomainColor + ne: DomainColor +} + +input ModelDomainMetadataFilterInput { + id: ModelIDInput + name: ModelStringInput + description: ModelStringInput + color: ModelDomainColorInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelDomainMetadataFilterInput] + or: [ModelDomainMetadataFilterInput] + not: ModelDomainMetadataFilterInput +} + +input ModelDomainMetadataConditionInput { + name: ModelStringInput + description: ModelStringInput + color: ModelDomainColorInput + and: [ModelDomainMetadataConditionInput] + or: [ModelDomainMetadataConditionInput] + not: ModelDomainMetadataConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateDomainMetadataInput { + id: ID + name: String! + description: String + color: DomainColor! + changelog: [DomainMetadataChangelogInput!] +} + +input UpdateDomainMetadataInput { + id: ID! + name: String + description: String + color: DomainColor + changelog: [DomainMetadataChangelogInput!] +} + +input DeleteDomainMetadataInput { + id: ID! +} + +input ModelSubscriptionDomainMetadataFilterInput { + id: ModelSubscriptionIDInput + name: ModelSubscriptionStringInput + description: ModelSubscriptionStringInput + color: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionDomainMetadataFilterInput] + or: [ModelSubscriptionDomainMetadataFilterInput] +} + +type ModelColonyFundsClaimConnection { + items: [ColonyFundsClaim]! + nextToken: String +} + +input ModelColonyFundsClaimFilterInput { + id: ModelIDInput + createdAtBlock: ModelIntInput + createdAt: ModelStringInput + amount: ModelStringInput + isClaimed: ModelBooleanInput + updatedAt: ModelStringInput + and: [ModelColonyFundsClaimFilterInput] + or: [ModelColonyFundsClaimFilterInput] + not: ModelColonyFundsClaimFilterInput + colonyFundsClaimsId: ModelIDInput + colonyFundsClaimTokenId: ModelIDInput +} + +input ModelColonyFundsClaimConditionInput { + createdAtBlock: ModelIntInput + createdAt: ModelStringInput + amount: ModelStringInput + isClaimed: ModelBooleanInput + and: [ModelColonyFundsClaimConditionInput] + or: [ModelColonyFundsClaimConditionInput] + not: ModelColonyFundsClaimConditionInput + updatedAt: ModelStringInput + colonyFundsClaimsId: ModelIDInput + colonyFundsClaimTokenId: ModelIDInput +} + +input CreateColonyFundsClaimInput { + id: ID + createdAtBlock: Int! + createdAt: AWSDateTime + amount: String! + isClaimed: Boolean + colonyFundsClaimsId: ID + colonyFundsClaimTokenId: ID! +} + +input UpdateColonyFundsClaimInput { + id: ID! + createdAtBlock: Int + createdAt: AWSDateTime + amount: String + isClaimed: Boolean + colonyFundsClaimsId: ID + colonyFundsClaimTokenId: ID +} + +input DeleteColonyFundsClaimInput { + id: ID! +} + +input ModelSubscriptionColonyFundsClaimFilterInput { + id: ModelSubscriptionIDInput + createdAtBlock: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + amount: ModelSubscriptionStringInput + isClaimed: ModelSubscriptionBooleanInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyFundsClaimFilterInput] + or: [ModelSubscriptionColonyFundsClaimFilterInput] + colonyFundsClaimTokenId: ModelSubscriptionIDInput +} + +type ModelMotionMessageConnection { + items: [MotionMessage]! + nextToken: String +} + +input ModelMotionMessageFilterInput { + initiatorAddress: ModelIDInput + name: ModelStringInput + messageKey: ModelStringInput + motionId: ModelIDInput + vote: ModelStringInput + amount: ModelStringInput + createdAt: ModelStringInput + id: ModelIDInput + updatedAt: ModelStringInput + and: [ModelMotionMessageFilterInput] + or: [ModelMotionMessageFilterInput] + not: ModelMotionMessageFilterInput +} + +input ModelMotionMessageConditionInput { + initiatorAddress: ModelIDInput + name: ModelStringInput + messageKey: ModelStringInput + motionId: ModelIDInput + vote: ModelStringInput + amount: ModelStringInput + createdAt: ModelStringInput + and: [ModelMotionMessageConditionInput] + or: [ModelMotionMessageConditionInput] + not: ModelMotionMessageConditionInput + updatedAt: ModelStringInput +} + +input CreateMotionMessageInput { + initiatorAddress: ID! + name: String! + messageKey: String! + motionId: ID! + vote: String + amount: String + createdAt: AWSDateTime + id: ID +} + +input UpdateMotionMessageInput { + initiatorAddress: ID + name: String + messageKey: String + motionId: ID + vote: String + amount: String + createdAt: AWSDateTime + id: ID! +} + +input DeleteMotionMessageInput { + id: ID! +} + +input ModelSubscriptionMotionMessageFilterInput { + initiatorAddress: ModelSubscriptionIDInput + name: ModelSubscriptionStringInput + messageKey: ModelSubscriptionStringInput + motionId: ModelSubscriptionIDInput + vote: ModelSubscriptionStringInput + amount: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + id: ModelSubscriptionIDInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionMotionMessageFilterInput] + or: [ModelSubscriptionMotionMessageFilterInput] +} + +input ExpenditureSlotInput { + id: Int! + recipientAddress: String + claimDelay: String + payoutModifier: Int + payouts: [ExpenditurePayoutInput!] +} + +input ExpenditurePayoutInput { + tokenAddress: ID! + amount: String! + networkFee: String + isClaimed: Boolean! +} + +input ExpenditureFundingItemInput { + amount: String! + tokenAddress: String! +} + +type ModelColonyMotionConnection { + items: [ColonyMotion]! + nextToken: String +} + +input ModelColonyMotionFilterInput { + id: ModelIDInput + nativeMotionId: ModelStringInput + remainingStakes: ModelStringInput + userMinStake: ModelStringInput + requiredStake: ModelStringInput + motionDomainId: ModelIDInput + nativeMotionDomainId: ModelStringInput + isFinalized: ModelBooleanInput + createdBy: ModelStringInput + repSubmitted: ModelStringInput + skillRep: ModelStringInput + hasObjection: ModelBooleanInput + objectionAnnotationId: ModelIDInput + isDecision: ModelBooleanInput + transactionHash: ModelIDInput + gasEstimate: ModelStringInput + expenditureId: ModelIDInput + expenditureSlotId: ModelIntInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyMotionFilterInput] + or: [ModelColonyMotionFilterInput] + not: ModelColonyMotionFilterInput +} + +input ModelColonyMotionConditionInput { + nativeMotionId: ModelStringInput + remainingStakes: ModelStringInput + userMinStake: ModelStringInput + requiredStake: ModelStringInput + motionDomainId: ModelIDInput + nativeMotionDomainId: ModelStringInput + isFinalized: ModelBooleanInput + createdBy: ModelStringInput + repSubmitted: ModelStringInput + skillRep: ModelStringInput + hasObjection: ModelBooleanInput + objectionAnnotationId: ModelIDInput + isDecision: ModelBooleanInput + transactionHash: ModelIDInput + gasEstimate: ModelStringInput + expenditureId: ModelIDInput + expenditureSlotId: ModelIntInput + and: [ModelColonyMotionConditionInput] + or: [ModelColonyMotionConditionInput] + not: ModelColonyMotionConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyMotionInput { + id: ID + nativeMotionId: String! + usersStakes: [UserMotionStakesInput!]! + stakerRewards: [StakerRewardsInput!]! + motionStakes: MotionStakesInput! + remainingStakes: [String!]! + userMinStake: String! + requiredStake: String! + motionDomainId: ID! + nativeMotionDomainId: String! + isFinalized: Boolean! + createdBy: String! + voterRecord: [VoterRecordInput!]! + revealedVotes: MotionStakesInput! + repSubmitted: String! + skillRep: String! + hasObjection: Boolean! + motionStateHistory: MotionStateHistoryInput! + objectionAnnotationId: ID + isDecision: Boolean! + transactionHash: ID! + gasEstimate: String! + expenditureId: ID + expenditureSlotId: Int + editedExpenditureSlots: [ExpenditureSlotInput!] + expenditureFunding: [ExpenditureFundingItemInput!] +} + +input UpdateColonyMotionInput { + id: ID! + nativeMotionId: String + usersStakes: [UserMotionStakesInput!] + stakerRewards: [StakerRewardsInput!] + motionStakes: MotionStakesInput + remainingStakes: [String!] + userMinStake: String + requiredStake: String + motionDomainId: ID + nativeMotionDomainId: String + isFinalized: Boolean + createdBy: String + voterRecord: [VoterRecordInput!] + revealedVotes: MotionStakesInput + repSubmitted: String + skillRep: String + hasObjection: Boolean + motionStateHistory: MotionStateHistoryInput + objectionAnnotationId: ID + isDecision: Boolean + transactionHash: ID + gasEstimate: String + expenditureId: ID + expenditureSlotId: Int + editedExpenditureSlots: [ExpenditureSlotInput!] + expenditureFunding: [ExpenditureFundingItemInput!] +} + +input DeleteColonyMotionInput { + id: ID! +} + +input ModelSubscriptionColonyMotionFilterInput { + id: ModelSubscriptionIDInput + nativeMotionId: ModelSubscriptionStringInput + remainingStakes: ModelSubscriptionStringInput + userMinStake: ModelSubscriptionStringInput + requiredStake: ModelSubscriptionStringInput + motionDomainId: ModelSubscriptionIDInput + nativeMotionDomainId: ModelSubscriptionStringInput + isFinalized: ModelSubscriptionBooleanInput + createdBy: ModelSubscriptionStringInput + repSubmitted: ModelSubscriptionStringInput + skillRep: ModelSubscriptionStringInput + hasObjection: ModelSubscriptionBooleanInput + objectionAnnotationId: ModelSubscriptionIDInput + isDecision: ModelSubscriptionBooleanInput + transactionHash: ModelSubscriptionIDInput + gasEstimate: ModelSubscriptionStringInput + expenditureId: ModelSubscriptionIDInput + expenditureSlotId: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyMotionFilterInput] + or: [ModelSubscriptionColonyMotionFilterInput] +} + +type ModelContractEventConnection { + items: [ContractEvent]! + nextToken: String +} + +input ModelContractEventFilterInput { + id: ModelIDInput + name: ModelStringInput + signature: ModelStringInput + agent: ModelStringInput + target: ModelStringInput + encodedArguments: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelContractEventFilterInput] + or: [ModelContractEventFilterInput] + not: ModelContractEventFilterInput + contractEventColonyId: ModelIDInput + contractEventTokenId: ModelIDInput + contractEventDomainId: ModelIDInput + contractEventUserId: ModelIDInput +} + +input ModelContractEventConditionInput { + name: ModelStringInput + signature: ModelStringInput + agent: ModelStringInput + target: ModelStringInput + encodedArguments: ModelStringInput + and: [ModelContractEventConditionInput] + or: [ModelContractEventConditionInput] + not: ModelContractEventConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + contractEventColonyId: ModelIDInput + contractEventTokenId: ModelIDInput + contractEventDomainId: ModelIDInput + contractEventUserId: ModelIDInput +} + +input CreateContractEventInput { + id: ID + name: String! + signature: String! + chainMetadata: ChainMetadataInput! + agent: String! + target: String! + encodedArguments: String + contractEventColonyId: ID + contractEventTokenId: ID + contractEventDomainId: ID + contractEventUserId: ID +} + +input UpdateContractEventInput { + id: ID! + name: String + signature: String + chainMetadata: ChainMetadataInput + agent: String + target: String + encodedArguments: String + contractEventColonyId: ID + contractEventTokenId: ID + contractEventDomainId: ID + contractEventUserId: ID +} + +input DeleteContractEventInput { + id: ID! +} + +input ModelSubscriptionContractEventFilterInput { + id: ModelSubscriptionIDInput + name: ModelSubscriptionStringInput + signature: ModelSubscriptionStringInput + agent: ModelSubscriptionStringInput + target: ModelSubscriptionStringInput + encodedArguments: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionContractEventFilterInput] + or: [ModelSubscriptionContractEventFilterInput] + contractEventColonyId: ModelSubscriptionIDInput + contractEventTokenId: ModelSubscriptionIDInput + contractEventDomainId: ModelSubscriptionIDInput + contractEventUserId: ModelSubscriptionIDInput +} + +input ExtensionParamsInput { + votingReputation: VotingReputationParamsInput + stakedExpenditure: StakedExpenditureParamsInput +} + +input VotingReputationParamsInput { + totalStakeFraction: String! + voterRewardFraction: String! + userMinStakeFraction: String! + maxVoteFraction: String! + stakePeriod: String! + submitPeriod: String! + revealPeriod: String! + escalationPeriod: String! +} + +input StakedExpenditureParamsInput { + stakeFraction: String! +} + +type ModelColonyExtensionConnection { + items: [ColonyExtension]! + nextToken: String +} + +input ModelColonyExtensionFilterInput { + id: ModelIDInput + colonyId: ModelIDInput + hash: ModelStringInput + installedBy: ModelStringInput + installedAt: ModelIntInput + isDeprecated: ModelBooleanInput + isDeleted: ModelBooleanInput + isInitialized: ModelBooleanInput + version: ModelIntInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyExtensionFilterInput] + or: [ModelColonyExtensionFilterInput] + not: ModelColonyExtensionFilterInput +} + +input ModelColonyExtensionConditionInput { + colonyId: ModelIDInput + hash: ModelStringInput + installedBy: ModelStringInput + installedAt: ModelIntInput + isDeprecated: ModelBooleanInput + isDeleted: ModelBooleanInput + isInitialized: ModelBooleanInput + version: ModelIntInput + and: [ModelColonyExtensionConditionInput] + or: [ModelColonyExtensionConditionInput] + not: ModelColonyExtensionConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyExtensionInput { + id: ID + colonyId: ID! + hash: String! + installedBy: String! + installedAt: AWSTimestamp! + isDeprecated: Boolean! + isDeleted: Boolean! + isInitialized: Boolean! + version: Int! + params: ExtensionParamsInput +} + +input UpdateColonyExtensionInput { + id: ID! + colonyId: ID + hash: String + installedBy: String + installedAt: AWSTimestamp + isDeprecated: Boolean + isDeleted: Boolean + isInitialized: Boolean + version: Int + params: ExtensionParamsInput +} + +input DeleteColonyExtensionInput { + id: ID! +} + +input ModelSubscriptionColonyExtensionFilterInput { + id: ModelSubscriptionIDInput + colonyId: ModelSubscriptionIDInput + hash: ModelSubscriptionStringInput + installedBy: ModelSubscriptionStringInput + installedAt: ModelSubscriptionIntInput + isDeprecated: ModelSubscriptionBooleanInput + isDeleted: ModelSubscriptionBooleanInput + isInitialized: ModelSubscriptionBooleanInput + version: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyExtensionFilterInput] + or: [ModelSubscriptionColonyExtensionFilterInput] +} + +type ModelCurrentVersionConnection { + items: [CurrentVersion]! + nextToken: String +} + +input ModelCurrentVersionFilterInput { + id: ModelIDInput + key: ModelStringInput + version: ModelIntInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelCurrentVersionFilterInput] + or: [ModelCurrentVersionFilterInput] + not: ModelCurrentVersionFilterInput +} + +input ModelCurrentVersionConditionInput { + key: ModelStringInput + version: ModelIntInput + and: [ModelCurrentVersionConditionInput] + or: [ModelCurrentVersionConditionInput] + not: ModelCurrentVersionConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateCurrentVersionInput { + id: ID + key: String! + version: Int! +} + +input UpdateCurrentVersionInput { + id: ID! + key: String + version: Int +} + +input DeleteCurrentVersionInput { + id: ID! +} + +input ModelSubscriptionCurrentVersionFilterInput { + id: ModelSubscriptionIDInput + key: ModelSubscriptionStringInput + version: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionCurrentVersionFilterInput] + or: [ModelSubscriptionCurrentVersionFilterInput] +} + +type ModelCurrentNetworkInverseFeeConnection { + items: [CurrentNetworkInverseFee]! + nextToken: String +} + +input ModelCurrentNetworkInverseFeeFilterInput { + id: ModelIDInput + inverseFee: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelCurrentNetworkInverseFeeFilterInput] + or: [ModelCurrentNetworkInverseFeeFilterInput] + not: ModelCurrentNetworkInverseFeeFilterInput +} + +input ModelCurrentNetworkInverseFeeConditionInput { + inverseFee: ModelStringInput + and: [ModelCurrentNetworkInverseFeeConditionInput] + or: [ModelCurrentNetworkInverseFeeConditionInput] + not: ModelCurrentNetworkInverseFeeConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateCurrentNetworkInverseFeeInput { + id: ID + inverseFee: String! +} + +input UpdateCurrentNetworkInverseFeeInput { + id: ID! + inverseFee: String +} + +input DeleteCurrentNetworkInverseFeeInput { + id: ID! +} + +input ModelSubscriptionCurrentNetworkInverseFeeFilterInput { + id: ModelSubscriptionIDInput + inverseFee: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionCurrentNetworkInverseFeeFilterInput] + or: [ModelSubscriptionCurrentNetworkInverseFeeFilterInput] +} + +input PaymentInput { + amount: String! + networkFee: String + tokenAddress: String! + recipientAddress: String! +} + +input ColonyActionRolesInput { + role_0: Boolean + role_1: Boolean + role_2: Boolean + role_3: Boolean + role_5: Boolean + role_6: Boolean +} + +input ExpenditureSlotChangesInput { + oldSlots: [ExpenditureSlotInput!]! + newSlots: [ExpenditureSlotInput!]! +} + +type ModelColonyActionConnection { + items: [ColonyAction]! + nextToken: String +} + +input ModelColonyActionTypeInput { + eq: ColonyActionType + ne: ColonyActionType +} + +input ModelColonyActionFilterInput { + id: ModelIDInput + colonyId: ModelIDInput + type: ModelColonyActionTypeInput + blockNumber: ModelIntInput + isMotion: ModelBooleanInput + motionId: ModelIDInput + showInActionsList: ModelBooleanInput + createdAt: ModelStringInput + initiatorAddress: ModelIDInput + recipientAddress: ModelIDInput + amount: ModelStringInput + networkFee: ModelStringInput + tokenAddress: ModelIDInput + fromDomainId: ModelIDInput + toDomainId: ModelIDInput + fromPotId: ModelIntInput + toPotId: ModelIntInput + paymentId: ModelIntInput + newColonyVersion: ModelIntInput + pendingDomainMetadataId: ModelIDInput + pendingColonyMetadataId: ModelIDInput + annotationId: ModelIDInput + motionDomainId: ModelIntInput + colonyDecisionId: ModelIDInput + members: ModelIDInput + individualEvents: ModelStringInput + rootHash: ModelStringInput + expenditureId: ModelIDInput + isMotionFinalization: ModelBooleanInput + updatedAt: ModelStringInput + and: [ModelColonyActionFilterInput] + or: [ModelColonyActionFilterInput] + not: ModelColonyActionFilterInput + colonyActionsId: ModelIDInput +} + +input ModelColonyActionConditionInput { + colonyId: ModelIDInput + type: ModelColonyActionTypeInput + blockNumber: ModelIntInput + isMotion: ModelBooleanInput + motionId: ModelIDInput + showInActionsList: ModelBooleanInput + createdAt: ModelStringInput + initiatorAddress: ModelIDInput + recipientAddress: ModelIDInput + amount: ModelStringInput + networkFee: ModelStringInput + tokenAddress: ModelIDInput + fromDomainId: ModelIDInput + toDomainId: ModelIDInput + fromPotId: ModelIntInput + toPotId: ModelIntInput + paymentId: ModelIntInput + newColonyVersion: ModelIntInput + pendingDomainMetadataId: ModelIDInput + pendingColonyMetadataId: ModelIDInput + annotationId: ModelIDInput + motionDomainId: ModelIntInput + colonyDecisionId: ModelIDInput + members: ModelIDInput + individualEvents: ModelStringInput + rootHash: ModelStringInput + expenditureId: ModelIDInput + isMotionFinalization: ModelBooleanInput + and: [ModelColonyActionConditionInput] + or: [ModelColonyActionConditionInput] + not: ModelColonyActionConditionInput + updatedAt: ModelStringInput + colonyActionsId: ModelIDInput +} + +input CreateColonyActionInput { + id: ID + colonyId: ID! + type: ColonyActionType! + blockNumber: Int! + isMotion: Boolean + motionId: ID + showInActionsList: Boolean! + createdAt: AWSDateTime + initiatorAddress: ID! + recipientAddress: ID + amount: String + networkFee: String + tokenAddress: ID + fromDomainId: ID + toDomainId: ID + fromPotId: Int + toPotId: Int + paymentId: Int + newColonyVersion: Int + pendingDomainMetadataId: ID + pendingColonyMetadataId: ID + annotationId: ID + motionDomainId: Int + colonyDecisionId: ID + payments: [PaymentInput!] + roles: ColonyActionRolesInput + members: [ID!] + individualEvents: String + rootHash: String! + expenditureId: ID + isMotionFinalization: Boolean + expenditureSlotChanges: ExpenditureSlotChangesInput + colonyActionsId: ID +} + +input UpdateColonyActionInput { + id: ID! + colonyId: ID + type: ColonyActionType + blockNumber: Int + isMotion: Boolean + motionId: ID + showInActionsList: Boolean + createdAt: AWSDateTime + initiatorAddress: ID + recipientAddress: ID + amount: String + networkFee: String + tokenAddress: ID + fromDomainId: ID + toDomainId: ID + fromPotId: Int + toPotId: Int + paymentId: Int + newColonyVersion: Int + pendingDomainMetadataId: ID + pendingColonyMetadataId: ID + annotationId: ID + motionDomainId: Int + colonyDecisionId: ID + payments: [PaymentInput!] + roles: ColonyActionRolesInput + members: [ID!] + individualEvents: String + rootHash: String + expenditureId: ID + isMotionFinalization: Boolean + expenditureSlotChanges: ExpenditureSlotChangesInput + colonyActionsId: ID +} + +input DeleteColonyActionInput { + id: ID! +} + +input ModelSubscriptionColonyActionFilterInput { + id: ModelSubscriptionIDInput + colonyId: ModelSubscriptionIDInput + type: ModelSubscriptionStringInput + blockNumber: ModelSubscriptionIntInput + isMotion: ModelSubscriptionBooleanInput + motionId: ModelSubscriptionIDInput + showInActionsList: ModelSubscriptionBooleanInput + createdAt: ModelSubscriptionStringInput + initiatorAddress: ModelSubscriptionIDInput + recipientAddress: ModelSubscriptionIDInput + amount: ModelSubscriptionStringInput + networkFee: ModelSubscriptionStringInput + tokenAddress: ModelSubscriptionIDInput + fromDomainId: ModelSubscriptionIDInput + toDomainId: ModelSubscriptionIDInput + fromPotId: ModelSubscriptionIntInput + toPotId: ModelSubscriptionIntInput + paymentId: ModelSubscriptionIntInput + newColonyVersion: ModelSubscriptionIntInput + pendingDomainMetadataId: ModelSubscriptionIDInput + pendingColonyMetadataId: ModelSubscriptionIDInput + annotationId: ModelSubscriptionIDInput + motionDomainId: ModelSubscriptionIntInput + colonyDecisionId: ModelSubscriptionIDInput + members: ModelSubscriptionIDInput + individualEvents: ModelSubscriptionStringInput + rootHash: ModelSubscriptionStringInput + expenditureId: ModelSubscriptionIDInput + isMotionFinalization: ModelSubscriptionBooleanInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyActionFilterInput] + or: [ModelSubscriptionColonyActionFilterInput] +} + +type ModelColonyActionMetadataConnection { + items: [ColonyActionMetadata]! + nextToken: String +} + +input ModelColonyActionMetadataFilterInput { + id: ModelIDInput + customTitle: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyActionMetadataFilterInput] + or: [ModelColonyActionMetadataFilterInput] + not: ModelColonyActionMetadataFilterInput +} + +input ModelColonyActionMetadataConditionInput { + customTitle: ModelStringInput + and: [ModelColonyActionMetadataConditionInput] + or: [ModelColonyActionMetadataConditionInput] + not: ModelColonyActionMetadataConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyActionMetadataInput { + id: ID + customTitle: String! +} + +input UpdateColonyActionMetadataInput { + id: ID! + customTitle: String +} + +input DeleteColonyActionMetadataInput { + id: ID! +} + +input ModelSubscriptionColonyActionMetadataFilterInput { + id: ModelSubscriptionIDInput + customTitle: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyActionMetadataFilterInput] + or: [ModelSubscriptionColonyActionMetadataFilterInput] +} + +type ModelColonyDecisionConnection { + items: [ColonyDecision]! + nextToken: String +} + +input ModelColonyDecisionFilterInput { + id: ModelIDInput + actionId: ModelIDInput + title: ModelStringInput + colonyAddress: ModelStringInput + createdAt: ModelStringInput + description: ModelStringInput + motionDomainId: ModelIntInput + walletAddress: ModelStringInput + showInDecisionsList: ModelBooleanInput + updatedAt: ModelStringInput + and: [ModelColonyDecisionFilterInput] + or: [ModelColonyDecisionFilterInput] + not: ModelColonyDecisionFilterInput +} + +input ModelColonyDecisionConditionInput { + actionId: ModelIDInput + title: ModelStringInput + colonyAddress: ModelStringInput + createdAt: ModelStringInput + description: ModelStringInput + motionDomainId: ModelIntInput + walletAddress: ModelStringInput + showInDecisionsList: ModelBooleanInput + and: [ModelColonyDecisionConditionInput] + or: [ModelColonyDecisionConditionInput] + not: ModelColonyDecisionConditionInput + updatedAt: ModelStringInput +} + +input CreateColonyDecisionInput { + id: ID + actionId: ID! + title: String! + colonyAddress: String! + createdAt: AWSDateTime + description: String! + motionDomainId: Int! + walletAddress: String! + showInDecisionsList: Boolean! +} + +input UpdateColonyDecisionInput { + id: ID! + actionId: ID + title: String + colonyAddress: String + createdAt: AWSDateTime + description: String + motionDomainId: Int + walletAddress: String + showInDecisionsList: Boolean +} + +input DeleteColonyDecisionInput { + id: ID! +} + +input ModelSubscriptionColonyDecisionFilterInput { + id: ModelSubscriptionIDInput + actionId: ModelSubscriptionIDInput + title: ModelSubscriptionStringInput + colonyAddress: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + description: ModelSubscriptionStringInput + motionDomainId: ModelSubscriptionIntInput + walletAddress: ModelSubscriptionStringInput + showInDecisionsList: ModelSubscriptionBooleanInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyDecisionFilterInput] + or: [ModelSubscriptionColonyDecisionFilterInput] +} + +type ModelColonyRoleConnection { + items: [ColonyRole]! + nextToken: String +} + +input ModelColonyRoleFilterInput { + id: ModelIDInput + domainId: ModelIDInput + targetAddress: ModelIDInput + colonyAddress: ModelIDInput + latestBlock: ModelIntInput + role_0: ModelBooleanInput + role_1: ModelBooleanInput + role_2: ModelBooleanInput + role_3: ModelBooleanInput + role_5: ModelBooleanInput + role_6: ModelBooleanInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyRoleFilterInput] + or: [ModelColonyRoleFilterInput] + not: ModelColonyRoleFilterInput + colonyRolesId: ModelIDInput +} + +input ModelColonyRoleConditionInput { + domainId: ModelIDInput + targetAddress: ModelIDInput + colonyAddress: ModelIDInput + latestBlock: ModelIntInput + role_0: ModelBooleanInput + role_1: ModelBooleanInput + role_2: ModelBooleanInput + role_3: ModelBooleanInput + role_5: ModelBooleanInput + role_6: ModelBooleanInput + and: [ModelColonyRoleConditionInput] + or: [ModelColonyRoleConditionInput] + not: ModelColonyRoleConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + colonyRolesId: ModelIDInput +} + +input CreateColonyRoleInput { + id: ID + domainId: ID! + targetAddress: ID! + colonyAddress: ID! + latestBlock: Int! + role_0: Boolean + role_1: Boolean + role_2: Boolean + role_3: Boolean + role_5: Boolean + role_6: Boolean + colonyRolesId: ID +} + +input UpdateColonyRoleInput { + id: ID! + domainId: ID + targetAddress: ID + colonyAddress: ID + latestBlock: Int + role_0: Boolean + role_1: Boolean + role_2: Boolean + role_3: Boolean + role_5: Boolean + role_6: Boolean + colonyRolesId: ID +} + +input DeleteColonyRoleInput { + id: ID! +} + +input ModelSubscriptionColonyRoleFilterInput { + id: ModelSubscriptionIDInput + domainId: ModelSubscriptionIDInput + targetAddress: ModelSubscriptionIDInput + colonyAddress: ModelSubscriptionIDInput + latestBlock: ModelSubscriptionIntInput + role_0: ModelSubscriptionBooleanInput + role_1: ModelSubscriptionBooleanInput + role_2: ModelSubscriptionBooleanInput + role_3: ModelSubscriptionBooleanInput + role_5: ModelSubscriptionBooleanInput + role_6: ModelSubscriptionBooleanInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyRoleFilterInput] + or: [ModelSubscriptionColonyRoleFilterInput] +} + +type ModelColonyHistoricRoleConnection { + items: [ColonyHistoricRole]! + nextToken: String +} + +input ModelColonyHistoricRoleFilterInput { + id: ModelIDInput + type: ModelStringInput + domainId: ModelIDInput + colonyId: ModelIDInput + targetAddress: ModelIDInput + blockNumber: ModelIntInput + role_0: ModelBooleanInput + role_1: ModelBooleanInput + role_2: ModelBooleanInput + role_3: ModelBooleanInput + role_5: ModelBooleanInput + role_6: ModelBooleanInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyHistoricRoleFilterInput] + or: [ModelColonyHistoricRoleFilterInput] + not: ModelColonyHistoricRoleFilterInput +} + +input ModelColonyHistoricRoleConditionInput { + type: ModelStringInput + domainId: ModelIDInput + colonyId: ModelIDInput + targetAddress: ModelIDInput + blockNumber: ModelIntInput + role_0: ModelBooleanInput + role_1: ModelBooleanInput + role_2: ModelBooleanInput + role_3: ModelBooleanInput + role_5: ModelBooleanInput + role_6: ModelBooleanInput + createdAt: ModelStringInput + and: [ModelColonyHistoricRoleConditionInput] + or: [ModelColonyHistoricRoleConditionInput] + not: ModelColonyHistoricRoleConditionInput + updatedAt: ModelStringInput +} + +input CreateColonyHistoricRoleInput { + id: ID + type: String! + domainId: ID! + colonyId: ID! + targetAddress: ID + blockNumber: Int! + role_0: Boolean + role_1: Boolean + role_2: Boolean + role_3: Boolean + role_5: Boolean + role_6: Boolean + createdAt: AWSDateTime +} + +input UpdateColonyHistoricRoleInput { + id: ID! + type: String + domainId: ID + colonyId: ID + targetAddress: ID + blockNumber: Int + role_0: Boolean + role_1: Boolean + role_2: Boolean + role_3: Boolean + role_5: Boolean + role_6: Boolean + createdAt: AWSDateTime +} + +input DeleteColonyHistoricRoleInput { + id: ID! +} + +input ModelSubscriptionColonyHistoricRoleFilterInput { + id: ModelSubscriptionIDInput + type: ModelSubscriptionStringInput + domainId: ModelSubscriptionIDInput + colonyId: ModelSubscriptionIDInput + targetAddress: ModelSubscriptionIDInput + blockNumber: ModelSubscriptionIntInput + role_0: ModelSubscriptionBooleanInput + role_1: ModelSubscriptionBooleanInput + role_2: ModelSubscriptionBooleanInput + role_3: ModelSubscriptionBooleanInput + role_5: ModelSubscriptionBooleanInput + role_6: ModelSubscriptionBooleanInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyHistoricRoleFilterInput] + or: [ModelSubscriptionColonyHistoricRoleFilterInput] +} + +type ModelIngestorStatsConnection { + items: [IngestorStats]! + nextToken: String +} + +input ModelIngestorStatsFilterInput { + id: ModelIDInput + value: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelIngestorStatsFilterInput] + or: [ModelIngestorStatsFilterInput] + not: ModelIngestorStatsFilterInput +} + +input ModelIngestorStatsConditionInput { + value: ModelStringInput + and: [ModelIngestorStatsConditionInput] + or: [ModelIngestorStatsConditionInput] + not: ModelIngestorStatsConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateIngestorStatsInput { + id: ID + value: String! +} + +input UpdateIngestorStatsInput { + id: ID! + value: String +} + +input DeleteIngestorStatsInput { + id: ID! +} + +input ModelSubscriptionIngestorStatsFilterInput { + id: ModelSubscriptionIDInput + value: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionIngestorStatsFilterInput] + or: [ModelSubscriptionIngestorStatsFilterInput] +} + +input ExpenditureBalanceInput { + tokenAddress: ID! + amount: String! +} + +type ModelExpenditureConnection { + items: [Expenditure]! + nextToken: String +} + +input ModelExpenditureStatusInput { + eq: ExpenditureStatus + ne: ExpenditureStatus +} + +input ModelExpenditureTypeInput { + eq: ExpenditureType + ne: ExpenditureType +} + +input ModelExpenditureFilterInput { + id: ModelIDInput + nativeId: ModelIntInput + createdAt: ModelStringInput + colonyId: ModelIDInput + ownerAddress: ModelIDInput + status: ModelExpenditureStatusInput + nativeFundingPotId: ModelIntInput + nativeDomainId: ModelIntInput + finalizedAt: ModelIntInput + isStaked: ModelBooleanInput + type: ModelExpenditureTypeInput + userStakeId: ModelIDInput + firstEditTransactionHash: ModelStringInput + updatedAt: ModelStringInput + and: [ModelExpenditureFilterInput] + or: [ModelExpenditureFilterInput] + not: ModelExpenditureFilterInput +} + +input ModelExpenditureConditionInput { + nativeId: ModelIntInput + createdAt: ModelStringInput + colonyId: ModelIDInput + ownerAddress: ModelIDInput + status: ModelExpenditureStatusInput + nativeFundingPotId: ModelIntInput + nativeDomainId: ModelIntInput + finalizedAt: ModelIntInput + isStaked: ModelBooleanInput + type: ModelExpenditureTypeInput + userStakeId: ModelIDInput + firstEditTransactionHash: ModelStringInput + and: [ModelExpenditureConditionInput] + or: [ModelExpenditureConditionInput] + not: ModelExpenditureConditionInput + updatedAt: ModelStringInput +} + +input CreateExpenditureInput { + id: ID + nativeId: Int! + createdAt: AWSDateTime + colonyId: ID! + ownerAddress: ID! + status: ExpenditureStatus! + slots: [ExpenditureSlotInput!]! + nativeFundingPotId: Int! + nativeDomainId: Int! + balances: [ExpenditureBalanceInput!] + finalizedAt: AWSTimestamp + isStaked: Boolean! + type: ExpenditureType! + userStakeId: ID + firstEditTransactionHash: String +} + +input UpdateExpenditureInput { + id: ID! + nativeId: Int + createdAt: AWSDateTime + colonyId: ID + ownerAddress: ID + status: ExpenditureStatus + slots: [ExpenditureSlotInput!] + nativeFundingPotId: Int + nativeDomainId: Int + balances: [ExpenditureBalanceInput!] + finalizedAt: AWSTimestamp + isStaked: Boolean + type: ExpenditureType + userStakeId: ID + firstEditTransactionHash: String +} + +input DeleteExpenditureInput { + id: ID! +} + +input ModelSubscriptionExpenditureFilterInput { + id: ModelSubscriptionIDInput + nativeId: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + colonyId: ModelSubscriptionIDInput + ownerAddress: ModelSubscriptionIDInput + status: ModelSubscriptionStringInput + nativeFundingPotId: ModelSubscriptionIntInput + nativeDomainId: ModelSubscriptionIntInput + finalizedAt: ModelSubscriptionIntInput + isStaked: ModelSubscriptionBooleanInput + type: ModelSubscriptionStringInput + userStakeId: ModelSubscriptionIDInput + firstEditTransactionHash: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionExpenditureFilterInput] + or: [ModelSubscriptionExpenditureFilterInput] +} + +input ExpenditureStageInput { + slotId: Int! + name: String! + isReleased: Boolean! +} + +type ModelExpenditureMetadataConnection { + items: [ExpenditureMetadata]! + nextToken: String +} + +input ModelExpenditureMetadataFilterInput { + id: ModelIDInput + fundFromDomainNativeId: ModelIntInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelExpenditureMetadataFilterInput] + or: [ModelExpenditureMetadataFilterInput] + not: ModelExpenditureMetadataFilterInput +} + +input ModelExpenditureMetadataConditionInput { + fundFromDomainNativeId: ModelIntInput + and: [ModelExpenditureMetadataConditionInput] + or: [ModelExpenditureMetadataConditionInput] + not: ModelExpenditureMetadataConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateExpenditureMetadataInput { + id: ID + fundFromDomainNativeId: Int! + stages: [ExpenditureStageInput!] +} + +input UpdateExpenditureMetadataInput { + id: ID! + fundFromDomainNativeId: Int + stages: [ExpenditureStageInput!] +} + +input DeleteExpenditureMetadataInput { + id: ID! +} + +input ModelSubscriptionExpenditureMetadataFilterInput { + id: ModelSubscriptionIDInput + fundFromDomainNativeId: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionExpenditureMetadataFilterInput] + or: [ModelSubscriptionExpenditureMetadataFilterInput] +} + +type ModelStreamingPaymentConnection { + items: [StreamingPayment]! + nextToken: String +} + +input ModelStreamingPaymentFilterInput { + id: ModelIDInput + nativeId: ModelIntInput + createdAt: ModelStringInput + recipientAddress: ModelStringInput + nativeDomainId: ModelIntInput + startTime: ModelIntInput + endTime: ModelIntInput + interval: ModelStringInput + updatedAt: ModelStringInput + and: [ModelStreamingPaymentFilterInput] + or: [ModelStreamingPaymentFilterInput] + not: ModelStreamingPaymentFilterInput +} + +input ModelStreamingPaymentConditionInput { + nativeId: ModelIntInput + createdAt: ModelStringInput + recipientAddress: ModelStringInput + nativeDomainId: ModelIntInput + startTime: ModelIntInput + endTime: ModelIntInput + interval: ModelStringInput + and: [ModelStreamingPaymentConditionInput] + or: [ModelStreamingPaymentConditionInput] + not: ModelStreamingPaymentConditionInput + updatedAt: ModelStringInput +} + +input CreateStreamingPaymentInput { + id: ID + nativeId: Int! + createdAt: AWSDateTime + recipientAddress: String! + nativeDomainId: Int! + startTime: AWSTimestamp! + endTime: AWSTimestamp! + interval: String! + payouts: [ExpenditurePayoutInput!] +} + +input UpdateStreamingPaymentInput { + id: ID! + nativeId: Int + createdAt: AWSDateTime + recipientAddress: String + nativeDomainId: Int + startTime: AWSTimestamp + endTime: AWSTimestamp + interval: String + payouts: [ExpenditurePayoutInput!] +} + +input DeleteStreamingPaymentInput { + id: ID! +} + +input ModelSubscriptionStreamingPaymentFilterInput { + id: ModelSubscriptionIDInput + nativeId: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + recipientAddress: ModelSubscriptionStringInput + nativeDomainId: ModelSubscriptionIntInput + startTime: ModelSubscriptionIntInput + endTime: ModelSubscriptionIntInput + interval: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionStreamingPaymentFilterInput] + or: [ModelSubscriptionStreamingPaymentFilterInput] +} + +type ModelStreamingPaymentMetadataConnection { + items: [StreamingPaymentMetadata]! + nextToken: String +} + +input ModelStreamingPaymentEndConditionInput { + eq: StreamingPaymentEndCondition + ne: StreamingPaymentEndCondition +} + +input ModelStreamingPaymentMetadataFilterInput { + id: ModelIDInput + endCondition: ModelStreamingPaymentEndConditionInput + limitAmount: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelStreamingPaymentMetadataFilterInput] + or: [ModelStreamingPaymentMetadataFilterInput] + not: ModelStreamingPaymentMetadataFilterInput +} + +input ModelStreamingPaymentMetadataConditionInput { + endCondition: ModelStreamingPaymentEndConditionInput + limitAmount: ModelStringInput + and: [ModelStreamingPaymentMetadataConditionInput] + or: [ModelStreamingPaymentMetadataConditionInput] + not: ModelStreamingPaymentMetadataConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateStreamingPaymentMetadataInput { + id: ID + endCondition: StreamingPaymentEndCondition! + limitAmount: String +} + +input UpdateStreamingPaymentMetadataInput { + id: ID! + endCondition: StreamingPaymentEndCondition + limitAmount: String +} + +input DeleteStreamingPaymentMetadataInput { + id: ID! +} + +input ModelSubscriptionStreamingPaymentMetadataFilterInput { + id: ModelSubscriptionIDInput + endCondition: ModelSubscriptionStringInput + limitAmount: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionStreamingPaymentMetadataFilterInput] + or: [ModelSubscriptionStreamingPaymentMetadataFilterInput] +} + +type ModelAnnotationConnection { + items: [Annotation]! + nextToken: String +} + +input ModelAnnotationFilterInput { + id: ModelIDInput + actionId: ModelIDInput + message: ModelStringInput + ipfsHash: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelAnnotationFilterInput] + or: [ModelAnnotationFilterInput] + not: ModelAnnotationFilterInput +} + +input ModelAnnotationConditionInput { + actionId: ModelIDInput + message: ModelStringInput + ipfsHash: ModelStringInput + and: [ModelAnnotationConditionInput] + or: [ModelAnnotationConditionInput] + not: ModelAnnotationConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateAnnotationInput { + id: ID + actionId: ID! + message: String! + ipfsHash: String +} + +input UpdateAnnotationInput { + id: ID! + actionId: ID + message: String + ipfsHash: String +} + +input DeleteAnnotationInput { + id: ID! +} + +input ModelSubscriptionAnnotationFilterInput { + id: ModelSubscriptionIDInput + actionId: ModelSubscriptionIDInput + message: ModelSubscriptionStringInput + ipfsHash: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionAnnotationFilterInput] + or: [ModelSubscriptionAnnotationFilterInput] +} + +type ModelReputationMiningCycleMetadataConnection { + items: [ReputationMiningCycleMetadata]! + nextToken: String +} + +input ModelReputationMiningCycleMetadataFilterInput { + id: ModelIDInput + lastCompletedAt: ModelStringInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelReputationMiningCycleMetadataFilterInput] + or: [ModelReputationMiningCycleMetadataFilterInput] + not: ModelReputationMiningCycleMetadataFilterInput +} + +input ModelReputationMiningCycleMetadataConditionInput { + lastCompletedAt: ModelStringInput + and: [ModelReputationMiningCycleMetadataConditionInput] + or: [ModelReputationMiningCycleMetadataConditionInput] + not: ModelReputationMiningCycleMetadataConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateReputationMiningCycleMetadataInput { + id: ID + lastCompletedAt: AWSDateTime! +} + +input UpdateReputationMiningCycleMetadataInput { + id: ID! + lastCompletedAt: AWSDateTime +} + +input DeleteReputationMiningCycleMetadataInput { + id: ID! +} + +input ModelSubscriptionReputationMiningCycleMetadataFilterInput { + id: ModelSubscriptionIDInput + lastCompletedAt: ModelSubscriptionStringInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionReputationMiningCycleMetadataFilterInput] + or: [ModelSubscriptionReputationMiningCycleMetadataFilterInput] +} + +type ModelPrivateBetaInviteCodeConnection { + items: [PrivateBetaInviteCode]! + nextToken: String +} + +input ModelPrivateBetaInviteCodeFilterInput { + id: ModelIDInput + shareableInvites: ModelIntInput + userId: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelPrivateBetaInviteCodeFilterInput] + or: [ModelPrivateBetaInviteCodeFilterInput] + not: ModelPrivateBetaInviteCodeFilterInput +} + +input ModelPrivateBetaInviteCodeConditionInput { + shareableInvites: ModelIntInput + userId: ModelIDInput + and: [ModelPrivateBetaInviteCodeConditionInput] + or: [ModelPrivateBetaInviteCodeConditionInput] + not: ModelPrivateBetaInviteCodeConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreatePrivateBetaInviteCodeInput { + id: ID + shareableInvites: Int + userId: ID +} + +input UpdatePrivateBetaInviteCodeInput { + id: ID! + shareableInvites: Int + userId: ID +} + +input DeletePrivateBetaInviteCodeInput { + id: ID! +} + +input ModelSubscriptionPrivateBetaInviteCodeFilterInput { + id: ModelSubscriptionIDInput + shareableInvites: ModelSubscriptionIntInput + userId: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionPrivateBetaInviteCodeFilterInput] + or: [ModelSubscriptionPrivateBetaInviteCodeFilterInput] +} + +type ModelSafeTransactionConnection { + items: [SafeTransaction]! + nextToken: String +} + +input ModelSafeTransactionFilterInput { + id: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelSafeTransactionFilterInput] + or: [ModelSafeTransactionFilterInput] + not: ModelSafeTransactionFilterInput +} + +input ModelSafeTransactionConditionInput { + and: [ModelSafeTransactionConditionInput] + or: [ModelSafeTransactionConditionInput] + not: ModelSafeTransactionConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateSafeTransactionInput { + id: ID + safe: SafeInput! +} + +input UpdateSafeTransactionInput { + id: ID! + safe: SafeInput +} + +input DeleteSafeTransactionInput { + id: ID! +} + +input ModelSubscriptionSafeTransactionFilterInput { + id: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionSafeTransactionFilterInput] + or: [ModelSubscriptionSafeTransactionFilterInput] +} + +input SimpleTargetInput { + id: String! + profile: SimpleTargetProfileInput! + walletAddress: String! +} + +input SimpleTargetProfileInput { + avatarHash: String + displayName: String +} + +input NFTInput { + id: String! + profile: NFTProfileInput! + walletAddress: String! +} + +input NFTProfileInput { + displayName: String! +} + +input NFTDataInput { + address: String! + description: String + id: String! + imageUri: String + logoUri: String! + name: String + tokenName: String! + tokenSymbol: String! + uri: String! +} + +input FunctionParamInput { + name: String! + type: String! + value: String! +} + +type ModelSafeTransactionDataConnection { + items: [SafeTransactionData]! + nextToken: String +} + +input ModelSafeTransactionTypeInput { + eq: SafeTransactionType + ne: SafeTransactionType +} + +input ModelSafeTransactionDataFilterInput { + id: ModelIDInput + tokenAddress: ModelIDInput + amount: ModelStringInput + rawAmount: ModelStringInput + data: ModelStringInput + abi: ModelStringInput + contractFunction: ModelStringInput + transactionType: ModelSafeTransactionTypeInput + transactionHash: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelSafeTransactionDataFilterInput] + or: [ModelSafeTransactionDataFilterInput] + not: ModelSafeTransactionDataFilterInput +} + +input ModelSafeTransactionDataConditionInput { + tokenAddress: ModelIDInput + amount: ModelStringInput + rawAmount: ModelStringInput + data: ModelStringInput + abi: ModelStringInput + contractFunction: ModelStringInput + transactionType: ModelSafeTransactionTypeInput + transactionHash: ModelIDInput + and: [ModelSafeTransactionDataConditionInput] + or: [ModelSafeTransactionDataConditionInput] + not: ModelSafeTransactionDataConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateSafeTransactionDataInput { + id: ID + tokenAddress: ID + amount: String + rawAmount: String + recipient: SimpleTargetInput + data: String + contract: SimpleTargetInput + abi: String + contractFunction: String + nft: NFTInput + nftData: NFTDataInput + functionParams: [FunctionParamInput] + transactionType: SafeTransactionType! + transactionHash: ID! +} + +input UpdateSafeTransactionDataInput { + id: ID! + tokenAddress: ID + amount: String + rawAmount: String + recipient: SimpleTargetInput + data: String + contract: SimpleTargetInput + abi: String + contractFunction: String + nft: NFTInput + nftData: NFTDataInput + functionParams: [FunctionParamInput] + transactionType: SafeTransactionType + transactionHash: ID +} + +input DeleteSafeTransactionDataInput { + id: ID! +} + +input ModelSubscriptionSafeTransactionDataFilterInput { + id: ModelSubscriptionIDInput + tokenAddress: ModelSubscriptionIDInput + amount: ModelSubscriptionStringInput + rawAmount: ModelSubscriptionStringInput + data: ModelSubscriptionStringInput + abi: ModelSubscriptionStringInput + contractFunction: ModelSubscriptionStringInput + transactionType: ModelSubscriptionStringInput + transactionHash: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionSafeTransactionDataFilterInput] + or: [ModelSubscriptionSafeTransactionDataFilterInput] +} + +type ModelExtensionInstallationsCountConnection { + items: [ExtensionInstallationsCount]! + nextToken: String +} + +input ModelExtensionInstallationsCountFilterInput { + id: ModelIDInput + oneTxPayment: ModelIntInput + stakedExpenditure: ModelIntInput + stagedExpenditure: ModelIntInput + streamingPayments: ModelIntInput + reputationWeighted: ModelIntInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelExtensionInstallationsCountFilterInput] + or: [ModelExtensionInstallationsCountFilterInput] + not: ModelExtensionInstallationsCountFilterInput +} + +input ModelExtensionInstallationsCountConditionInput { + oneTxPayment: ModelIntInput + stakedExpenditure: ModelIntInput + stagedExpenditure: ModelIntInput + streamingPayments: ModelIntInput + reputationWeighted: ModelIntInput + and: [ModelExtensionInstallationsCountConditionInput] + or: [ModelExtensionInstallationsCountConditionInput] + not: ModelExtensionInstallationsCountConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateExtensionInstallationsCountInput { + id: ID + oneTxPayment: Int! + stakedExpenditure: Int! + stagedExpenditure: Int! + streamingPayments: Int! + reputationWeighted: Int! +} + +input UpdateExtensionInstallationsCountInput { + id: ID! + oneTxPayment: Int + stakedExpenditure: Int + stagedExpenditure: Int + streamingPayments: Int + reputationWeighted: Int +} + +input DeleteExtensionInstallationsCountInput { + id: ID! +} + +input ModelSubscriptionExtensionInstallationsCountFilterInput { + id: ModelSubscriptionIDInput + oneTxPayment: ModelSubscriptionIntInput + stakedExpenditure: ModelSubscriptionIntInput + stagedExpenditure: ModelSubscriptionIntInput + streamingPayments: ModelSubscriptionIntInput + reputationWeighted: ModelSubscriptionIntInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionExtensionInstallationsCountFilterInput] + or: [ModelSubscriptionExtensionInstallationsCountFilterInput] +} + +type ModelUserStakeConnection { + items: [UserStake]! + nextToken: String +} + +input ModelUserStakeFilterInput { + id: ModelIDInput + userAddress: ModelIDInput + colonyAddress: ModelIDInput + amount: ModelStringInput + isClaimed: ModelBooleanInput + actionId: ModelIDInput + createdAt: ModelStringInput + isForfeited: ModelBooleanInput + updatedAt: ModelStringInput + and: [ModelUserStakeFilterInput] + or: [ModelUserStakeFilterInput] + not: ModelUserStakeFilterInput +} + +input ModelUserStakeConditionInput { + userAddress: ModelIDInput + colonyAddress: ModelIDInput + amount: ModelStringInput + isClaimed: ModelBooleanInput + actionId: ModelIDInput + createdAt: ModelStringInput + isForfeited: ModelBooleanInput + and: [ModelUserStakeConditionInput] + or: [ModelUserStakeConditionInput] + not: ModelUserStakeConditionInput + updatedAt: ModelStringInput +} + +input CreateUserStakeInput { + id: ID + userAddress: ID! + colonyAddress: ID! + amount: String! + isClaimed: Boolean! + actionId: ID! + createdAt: AWSDateTime + isForfeited: Boolean +} + +input UpdateUserStakeInput { + id: ID! + userAddress: ID + colonyAddress: ID + amount: String + isClaimed: Boolean + actionId: ID + createdAt: AWSDateTime + isForfeited: Boolean +} + +input DeleteUserStakeInput { + id: ID! +} + +input ModelSubscriptionUserStakeFilterInput { + id: ModelSubscriptionIDInput + userAddress: ModelSubscriptionIDInput + colonyAddress: ModelSubscriptionIDInput + amount: ModelSubscriptionStringInput + isClaimed: ModelSubscriptionBooleanInput + actionId: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + isForfeited: ModelSubscriptionBooleanInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionUserStakeFilterInput] + or: [ModelSubscriptionUserStakeFilterInput] +} + +type ModelColonyTokensConnection { + items: [ColonyTokens]! + nextToken: String +} + +input ModelColonyTokensFilterInput { + id: ModelIDInput + tokenID: ModelIDInput + colonyID: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelColonyTokensFilterInput] + or: [ModelColonyTokensFilterInput] + not: ModelColonyTokensFilterInput +} + +input ModelColonyTokensConditionInput { + tokenID: ModelIDInput + colonyID: ModelIDInput + and: [ModelColonyTokensConditionInput] + or: [ModelColonyTokensConditionInput] + not: ModelColonyTokensConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateColonyTokensInput { + id: ID + tokenID: ID! + colonyID: ID! +} + +input UpdateColonyTokensInput { + id: ID! + tokenID: ID + colonyID: ID +} + +input DeleteColonyTokensInput { + id: ID! +} + +input ModelSubscriptionColonyTokensFilterInput { + id: ModelSubscriptionIDInput + tokenID: ModelSubscriptionIDInput + colonyID: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionColonyTokensFilterInput] + or: [ModelSubscriptionColonyTokensFilterInput] +} + +type ModelUserTokensConnection { + items: [UserTokens]! + nextToken: String +} + +input ModelUserTokensFilterInput { + id: ModelIDInput + tokenID: ModelIDInput + userID: ModelIDInput + createdAt: ModelStringInput + updatedAt: ModelStringInput + and: [ModelUserTokensFilterInput] + or: [ModelUserTokensFilterInput] + not: ModelUserTokensFilterInput +} + +input ModelUserTokensConditionInput { + tokenID: ModelIDInput + userID: ModelIDInput + and: [ModelUserTokensConditionInput] + or: [ModelUserTokensConditionInput] + not: ModelUserTokensConditionInput + createdAt: ModelStringInput + updatedAt: ModelStringInput +} + +input CreateUserTokensInput { + id: ID + tokenID: ID! + userID: ID! +} + +input UpdateUserTokensInput { + id: ID! + tokenID: ID + userID: ID +} + +input DeleteUserTokensInput { + id: ID! +} + +input ModelSubscriptionUserTokensFilterInput { + id: ModelSubscriptionIDInput + tokenID: ModelSubscriptionIDInput + userID: ModelSubscriptionIDInput + createdAt: ModelSubscriptionStringInput + updatedAt: ModelSubscriptionStringInput + and: [ModelSubscriptionUserTokensFilterInput] + or: [ModelSubscriptionUserTokensFilterInput] +} + +input ModelStringKeyConditionInput { + eq: String + le: String + lt: String + ge: String + gt: String + between: [String] + beginsWith: String +} + +input ModelIDKeyConditionInput { + eq: ID + le: ID + lt: ID + ge: ID + gt: ID + between: [ID] + beginsWith: ID +} + +input ModelFloatKeyConditionInput { + eq: Float + le: Float + lt: Float + ge: Float + gt: Float + between: [Float] +} + +input ModelIntKeyConditionInput { + eq: Int + le: Int + lt: Int + ge: Int + gt: Int + between: [Int] +} + +input SearchableStringFilterInput { + ne: String + gt: String + lt: String + gte: String + lte: String + eq: String + match: String + matchPhrase: String + matchPhrasePrefix: String + multiMatch: String + exists: Boolean + wildcard: String + regexp: String + range: [String] +} + +input SearchableIntFilterInput { + ne: Int + gt: Int + lt: Int + gte: Int + lte: Int + eq: Int + range: [Int] +} + +input SearchableFloatFilterInput { + ne: Float + gt: Float + lt: Float + gte: Float + lte: Float + eq: Float + range: [Float] +} + +input SearchableBooleanFilterInput { + eq: Boolean + ne: Boolean +} + +input SearchableIDFilterInput { + ne: ID + gt: ID + lt: ID + gte: ID + lte: ID + eq: ID + match: ID + matchPhrase: ID + matchPhrasePrefix: ID + multiMatch: ID + exists: Boolean + wildcard: ID + regexp: ID + range: [ID] +} + +input SearchableColonyContributorFilterInput { + id: SearchableIDFilterInput + contributorAddress: SearchableIDFilterInput + isVerified: SearchableBooleanFilterInput + isWatching: SearchableBooleanFilterInput + hasPermissions: SearchableBooleanFilterInput + hasReputation: SearchableBooleanFilterInput + colonyReputationPercentage: SearchableFloatFilterInput + colonyAddress: SearchableIDFilterInput + createdAt: SearchableStringFilterInput + updatedAt: SearchableStringFilterInput + type: SearchableStringFilterInput + and: [SearchableColonyContributorFilterInput] + or: [SearchableColonyContributorFilterInput] + not: SearchableColonyContributorFilterInput +} + +enum SearchableSortDirection { + asc + desc +} + +enum SearchableColonyContributorSortableFields { + id + contributorAddress + isVerified + isWatching + hasPermissions + hasReputation + colonyReputationPercentage + colonyAddress + createdAt + updatedAt +} + +input SearchableColonyContributorSortInput { + field: SearchableColonyContributorSortableFields + direction: SearchableSortDirection +} + +enum SearchableAggregateType { + terms + avg + min + max + sum + cardinality +} + +enum SearchableColonyContributorAggregateField { + id + contributorAddress + type + isVerified + isWatching + hasPermissions + hasReputation + colonyReputationPercentage + colonyAddress + createdAt + updatedAt +} + +input SearchableColonyContributorAggregationInput { + name: String! + type: SearchableAggregateType! + field: SearchableColonyContributorAggregateField! +} + +input SearchableColonyActionFilterInput { + id: SearchableIDFilterInput + colonyId: SearchableIDFilterInput + blockNumber: SearchableIntFilterInput + isMotion: SearchableBooleanFilterInput + motionId: SearchableIDFilterInput + showInActionsList: SearchableBooleanFilterInput + createdAt: SearchableStringFilterInput + initiatorAddress: SearchableIDFilterInput + recipientAddress: SearchableIDFilterInput + amount: SearchableStringFilterInput + networkFee: SearchableStringFilterInput + tokenAddress: SearchableIDFilterInput + fromDomainId: SearchableIDFilterInput + toDomainId: SearchableIDFilterInput + fromPotId: SearchableIntFilterInput + toPotId: SearchableIntFilterInput + paymentId: SearchableIntFilterInput + newColonyVersion: SearchableIntFilterInput + pendingDomainMetadataId: SearchableIDFilterInput + pendingColonyMetadataId: SearchableIDFilterInput + annotationId: SearchableIDFilterInput + motionDomainId: SearchableIntFilterInput + colonyDecisionId: SearchableIDFilterInput + members: SearchableIDFilterInput + individualEvents: SearchableStringFilterInput + rootHash: SearchableStringFilterInput + expenditureId: SearchableIDFilterInput + isMotionFinalization: SearchableBooleanFilterInput + updatedAt: SearchableStringFilterInput + colonyActionsId: SearchableIDFilterInput + type: SearchableStringFilterInput + and: [SearchableColonyActionFilterInput] + or: [SearchableColonyActionFilterInput] + not: SearchableColonyActionFilterInput +} + +enum SearchableColonyActionSortableFields { + id + colonyId + blockNumber + isMotion + motionId + showInActionsList + createdAt + initiatorAddress + recipientAddress + amount + networkFee + tokenAddress + fromDomainId + toDomainId + fromPotId + toPotId + paymentId + newColonyVersion + pendingDomainMetadataId + pendingColonyMetadataId + annotationId + motionDomainId + colonyDecisionId + members + individualEvents + rootHash + expenditureId + isMotionFinalization + updatedAt + colonyActionsId +} + +input SearchableColonyActionSortInput { + field: SearchableColonyActionSortableFields + direction: SearchableSortDirection +} + +enum SearchableColonyActionAggregateField { + id + colonyId + type + blockNumber + isMotion + motionId + showInActionsList + createdAt + initiatorAddress + recipientAddress + amount + networkFee + tokenAddress + fromDomainId + toDomainId + fromPotId + toPotId + paymentId + newColonyVersion + pendingDomainMetadataId + pendingColonyMetadataId + annotationId + motionDomainId + colonyDecisionId + members + individualEvents + rootHash + expenditureId + isMotionFinalization + updatedAt + colonyActionsId +} + +input SearchableColonyActionAggregationInput { + name: String! + type: SearchableAggregateType! + field: SearchableColonyActionAggregateField! +} diff --git a/amplify/backend/api/colonycdapp/build/stacks/Annotation.json b/amplify/backend/api/colonycdapp/build/stacks/Annotation.json new file mode 100644 index 00000000000..c2e760c3d3e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/Annotation.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "AnnotationTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Annotation-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "AnnotationIAMRole0F0DA189": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "AnnotationIAMRoleb05cac-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "AnnotationIAMRoleDefaultPolicy3D1CC845": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "AnnotationTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AnnotationIAMRoleDefaultPolicy3D1CC845", + "Roles": [ + { + "Ref": "AnnotationIAMRole0F0DA189" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Annotation-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Annotation-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "AnnotationIAMRole0F0DA189" + } + ] + } + }, + "AnnotationDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "AnnotationTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "AnnotationTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "AnnotationIAMRole0F0DA189", + "Arn" + ] + } + }, + "DependsOn": [ + "AnnotationIAMRole0F0DA189" + ] + }, + "QueryGetAnnotationDataResolverFnQueryGetAnnotationDataResolverFnAppSyncFunction9B219B37": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "AnnotationDataSource", + "Name" + ] + }, + "Name": "QueryGetAnnotationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getAnnotation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getAnnotation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "AnnotationDataSource" + ] + }, + "GetAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getAnnotation", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetAnnotationDataResolverFnQueryGetAnnotationDataResolverFnAppSyncFunction9B219B37", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "AnnotationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListAnnotationsDataResolverFnQueryListAnnotationsDataResolverFnAppSyncFunction0D56CF37": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "AnnotationDataSource", + "Name" + ] + }, + "Name": "QueryListAnnotationsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listAnnotations.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listAnnotations.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "AnnotationDataSource" + ] + }, + "ListAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listAnnotations", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListAnnotationsDataResolverFnQueryListAnnotationsDataResolverFnAppSyncFunction0D56CF37", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listAnnotations\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "AnnotationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateAnnotationDataResolverFnMutationCreateAnnotationDataResolverFnAppSyncFunction959F5376": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "AnnotationDataSource", + "Name" + ] + }, + "Name": "MutationCreateAnnotationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createAnnotation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createAnnotation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "AnnotationDataSource" + ] + }, + "CreateAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createAnnotation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateAnnotationDataResolverFnMutationCreateAnnotationDataResolverFnAppSyncFunction959F5376", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "AnnotationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateAnnotationDataResolverFnMutationUpdateAnnotationDataResolverFnAppSyncFunctionCE36D618": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "AnnotationDataSource", + "Name" + ] + }, + "Name": "MutationUpdateAnnotationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateAnnotation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateAnnotation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "AnnotationDataSource" + ] + }, + "UpdateAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateAnnotation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateAnnotationDataResolverFnMutationUpdateAnnotationDataResolverFnAppSyncFunctionCE36D618", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "AnnotationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteAnnotationDataResolverFnMutationDeleteAnnotationDataResolverFnAppSyncFunctionF0A916B2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "AnnotationDataSource", + "Name" + ] + }, + "Name": "MutationDeleteAnnotationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteAnnotation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteAnnotation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "AnnotationDataSource" + ] + }, + "DeleteAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteAnnotation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteAnnotationDataResolverFnMutationDeleteAnnotationDataResolverFnAppSyncFunctionF0A916B2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "AnnotationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateAnnotation", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateAnnotation", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteAnnotation", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttAnnotationTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "AnnotationTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:AnnotationTable:StreamArn" + ] + ] + } + } + }, + "GetAttAnnotationTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "AnnotationTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:AnnotationTable:Name" + ] + ] + } + } + }, + "GetAttAnnotationDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "AnnotationDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:AnnotationDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackAnnotationAnnotationDataSource972E2E1DName": { + "Value": { + "Fn::GetAtt": [ + "AnnotationDataSource", + "Name" + ] + } + }, + "transformerrootstackAnnotationAnnotationTableD90F9B94Ref": { + "Value": { + "Ref": "AnnotationTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/Colony.json b/amplify/backend/api/colonycdapp/build/stacks/Colony.json new file mode 100644 index 00000000000..69c46e2914d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/Colony.json @@ -0,0 +1,1555 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "name", + "AttributeType": "S" + }, + { + "AttributeName": "nativeTokenId", + "AttributeType": "S" + }, + { + "AttributeName": "type", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byAddress", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byName", + "KeySchema": [ + { + "AttributeName": "name", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byNativeTokenId", + "KeySchema": [ + { + "AttributeName": "nativeTokenId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byType", + "KeySchema": [ + { + "AttributeName": "type", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Colony-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyIAMRole3E31A4E4": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyIAMRolefbc065-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyIAMRoleDefaultPolicy6F536167": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyIAMRoleDefaultPolicy6F536167", + "Roles": [ + { + "Ref": "ColonyIAMRole3E31A4E4" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Colony-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Colony-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyIAMRole3E31A4E4" + } + ] + } + }, + "ColonyDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyIAMRole3E31A4E4", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyIAMRole3E31A4E4" + ] + }, + "QueryGetColonyDataResolverFnQueryGetColonyDataResolverFnAppSyncFunctionDB5E825F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "GetColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyDataResolverFnQueryGetColonyDataResolverFnAppSyncFunctionDB5E825F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColoniesDataResolverFnQueryListColoniesDataResolverFnAppSyncFunctionB247DF98": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "QueryListColoniesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonies.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonies.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "ListColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonies", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColoniesDataResolverFnQueryListColoniesDataResolverFnAppSyncFunctionB247DF98", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonies\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationcreateColonyinit1FunctionMutationcreateColonyinit1FunctionAppSyncFunction41B6C563": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "MutationcreateColonyinit1Function", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColony.init.2.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateColonyDataResolverFnMutationCreateColonyDataResolverFnAppSyncFunction9DB0B00C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "CreateColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColony", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreateColonyinit1FunctionMutationcreateColonyinit1FunctionAppSyncFunction41B6C563", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyDataResolverFnMutationCreateColonyDataResolverFnAppSyncFunction9DB0B00C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyDataResolverFnMutationUpdateColonyDataResolverFnAppSyncFunction5697F032": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "UpdateColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColony", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyDataResolverFnMutationUpdateColonyDataResolverFnAppSyncFunction5697F032", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyDataResolverFnMutationDeleteColonyDataResolverFnAppSyncFunction760A4116": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "DeleteColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColony", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyDataResolverFnMutationDeleteColonyDataResolverFnAppSyncFunction760A4116", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColony", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColony", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColony", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyByAddressDataResolverFnQueryGetColonyByAddressDataResolverFnAppSyncFunction45A6BA96": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyByAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyByAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyByAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "QuerygetColonyByAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyByAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyByAddressDataResolverFnQueryGetColonyByAddressDataResolverFnAppSyncFunction45A6BA96", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyByAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyByNameDataResolverFnQueryGetColonyByNameDataResolverFnAppSyncFunction7E69A834": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyByNameDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyByName.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyByName.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "QuerygetColonyByNameResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyByName", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyByNameDataResolverFnQueryGetColonyByNameDataResolverFnAppSyncFunction7E69A834", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyByName\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColoniesByNativeTokenIdDataResolverFnQueryGetColoniesByNativeTokenIdDataResolverFnAppSyncFunctionF1DB8223": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "QueryGetColoniesByNativeTokenIdDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColoniesByNativeTokenId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColoniesByNativeTokenId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "QuerygetColoniesByNativeTokenIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColoniesByNativeTokenId", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColoniesByNativeTokenIdDataResolverFnQueryGetColoniesByNativeTokenIdDataResolverFnAppSyncFunctionF1DB8223", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColoniesByNativeTokenId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyByTypeDataResolverFnQueryGetColonyByTypeDataResolverFnAppSyncFunctionBAE3AF1E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyByTypeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyByType.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyByType.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDataSource" + ] + }, + "QuerygetColonyByTypeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyByType", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyByTypeDataResolverFnQueryGetColonyByTypeDataResolverFnAppSyncFunctionBAE3AF1E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyByType\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyTable:Name" + ] + ] + } + } + }, + "GetAttColonyDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyColonyDataSource93AB5D4EName": { + "Value": { + "Fn::GetAtt": [ + "ColonyDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyColonyTableE180C572Ref": { + "Value": { + "Ref": "ColonyTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyAction.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyAction.json new file mode 100644 index 00000000000..3541b42a118 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyAction.json @@ -0,0 +1,1444 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyActionTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "colonyId", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + }, + { + "AttributeName": "motionId", + "AttributeType": "S" + }, + { + "AttributeName": "expenditureId", + "AttributeType": "S" + }, + { + "AttributeName": "colonyActionsId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byColony", + "KeySchema": [ + { + "AttributeName": "colonyId", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byMotionId", + "KeySchema": [ + { + "AttributeName": "motionId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byExpenditureId", + "KeySchema": [ + { + "AttributeName": "expenditureId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "gsi-Colony.actions", + "KeySchema": [ + { + "AttributeName": "colonyActionsId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyAction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyActionIAMRoleC16B2665": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyActionIAMRolef4a0a9-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyActionIAMRoleDefaultPolicy3FC3FB56": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyActionTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyActionTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyActionIAMRoleDefaultPolicy3FC3FB56", + "Roles": [ + { + "Ref": "ColonyActionIAMRoleC16B2665" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyAction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyAction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyActionIAMRoleC16B2665" + } + ] + } + }, + "ColonyActionDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyActionTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyActionTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyActionIAMRoleC16B2665", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyActionIAMRoleC16B2665" + ] + }, + "QueryGetColonyActionDataResolverFnQueryGetColonyActionDataResolverFnAppSyncFunction4E69DF57": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyActionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyAction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyAction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "GetColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyAction", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyActionDataResolverFnQueryGetColonyActionDataResolverFnAppSyncFunction4E69DF57", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyAction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyActionsDataResolverFnQueryListColonyActionsDataResolverFnAppSyncFunctionD3FAA96B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "QueryListColonyActionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyActions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyActions.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "ListColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyActions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyActionsDataResolverFnQueryListColonyActionsDataResolverFnAppSyncFunctionD3FAA96B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyActions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyActionDataResolverFnMutationCreateColonyActionDataResolverFnAppSyncFunction407F78AB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyActionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyAction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyAction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "CreateColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyAction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyActionDataResolverFnMutationCreateColonyActionDataResolverFnAppSyncFunction407F78AB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyAction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyActionDataResolverFnMutationUpdateColonyActionDataResolverFnAppSyncFunctionE2583575": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyActionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyAction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyAction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "UpdateColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyAction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyActionDataResolverFnMutationUpdateColonyActionDataResolverFnAppSyncFunctionE2583575", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyAction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyActionDataResolverFnMutationDeleteColonyActionDataResolverFnAppSyncFunction18D73F5E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyActionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyAction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyAction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "DeleteColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyAction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyActionDataResolverFnMutationDeleteColonyActionDataResolverFnAppSyncFunction18D73F5E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyAction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyAction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyAction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyAction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyAction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyAction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyAction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetActionsByColonyDataResolverFnQueryGetActionsByColonyDataResolverFnAppSyncFunctionD876700A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "QueryGetActionsByColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getActionsByColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getActionsByColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "QuerygetActionsByColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getActionsByColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetActionsByColonyDataResolverFnQueryGetActionsByColonyDataResolverFnAppSyncFunctionD876700A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getActionsByColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyActionByMotionIdDataResolverFnQueryGetColonyActionByMotionIdDataResolverFnAppSyncFunction43E8567F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyActionByMotionIdDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyActionByMotionId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyActionByMotionId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "QuerygetColonyActionByMotionIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyActionByMotionId", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyActionByMotionIdDataResolverFnQueryGetColonyActionByMotionIdDataResolverFnAppSyncFunction43E8567F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyActionByMotionId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetActionByExpenditureIdDataResolverFnQueryGetActionByExpenditureIdDataResolverFnAppSyncFunction96A38DE3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Name": "QueryGetActionByExpenditureIdDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getActionByExpenditureId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getActionByExpenditureId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionDataSource" + ] + }, + "QuerygetActionByExpenditureIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getActionByExpenditureId", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetActionByExpenditureIdDataResolverFnQueryGetActionByExpenditureIdDataResolverFnAppSyncFunction96A38DE3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getActionByExpenditureId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyActionTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyActionTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyActionTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyActionTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyActionTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyActionTable:Name" + ] + ] + } + } + }, + "GetAttColonyActionDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyActionDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyActionColonyActionDataSourceA53A92B5Name": { + "Value": { + "Fn::GetAtt": [ + "ColonyActionDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyActionColonyActionTable5DE533FFRef": { + "Value": { + "Ref": "ColonyActionTable" + } + }, + "transformerrootstackColonyActionColonyActionTable5DE533FFStreamArn": { + "Value": { + "Fn::GetAtt": [ + "ColonyActionTable", + "StreamArn" + ] + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyActionMetadata.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyActionMetadata.json new file mode 100644 index 00000000000..a74ff935a78 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyActionMetadata.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyActionMetadataTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyActionMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyActionMetadataIAMRole55C961A8": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyActionMetadata9595d4-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyActionMetadataIAMRoleDefaultPolicy5FECB103": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyActionMetadataTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyActionMetadataIAMRoleDefaultPolicy5FECB103", + "Roles": [ + { + "Ref": "ColonyActionMetadataIAMRole55C961A8" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyActionMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyActionMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyActionMetadataIAMRole55C961A8" + } + ] + } + }, + "ColonyActionMetadataDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyActionMetadataTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyActionMetadataTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyActionMetadataIAMRole55C961A8", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyActionMetadataIAMRole55C961A8" + ] + }, + "QueryGetColonyActionMetadataDataResolverFnQueryGetColonyActionMetadataDataResolverFnAppSyncFunctionA7FB22E3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionMetadataDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyActionMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyActionMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyActionMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionMetadataDataSource" + ] + }, + "GetColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyActionMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyActionMetadataDataResolverFnQueryGetColonyActionMetadataDataResolverFnAppSyncFunctionA7FB22E3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyActionMetadataDataResolverFnQueryListColonyActionMetadataDataResolverFnAppSyncFunction33F72FD3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionMetadataDataSource", + "Name" + ] + }, + "Name": "QueryListColonyActionMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyActionMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyActionMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionMetadataDataSource" + ] + }, + "ListColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyActionMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyActionMetadataDataResolverFnQueryListColonyActionMetadataDataResolverFnAppSyncFunction33F72FD3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyActionMetadataDataResolverFnMutationCreateColonyActionMetadataDataResolverFnAppSyncFunction1E520645": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionMetadataDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyActionMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyActionMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyActionMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionMetadataDataSource" + ] + }, + "CreateColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyActionMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyActionMetadataDataResolverFnMutationCreateColonyActionMetadataDataResolverFnAppSyncFunction1E520645", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyActionMetadataDataResolverFnMutationUpdateColonyActionMetadataDataResolverFnAppSyncFunction5DC78104": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionMetadataDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyActionMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyActionMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyActionMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionMetadataDataSource" + ] + }, + "UpdateColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyActionMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyActionMetadataDataResolverFnMutationUpdateColonyActionMetadataDataResolverFnAppSyncFunction5DC78104", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyActionMetadataDataResolverFnMutationDeleteColonyActionMetadataDataResolverFnAppSyncFunction63F32875": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyActionMetadataDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyActionMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyActionMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyActionMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyActionMetadataDataSource" + ] + }, + "DeleteColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyActionMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyActionMetadataDataResolverFnMutationDeleteColonyActionMetadataDataResolverFnAppSyncFunction63F32875", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyActionMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyActionMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyActionMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyActionMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyActionMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyActionMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyActionMetadataTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyActionMetadataTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyActionMetadataTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyActionMetadataTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyActionMetadataTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyActionMetadataTable:Name" + ] + ] + } + } + }, + "GetAttColonyActionMetadataDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyActionMetadataDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyActionMetadataDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyActionMetadataColonyActionMetadataDataSource99C96895Name": { + "Value": { + "Fn::GetAtt": [ + "ColonyActionMetadataDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyActionMetadataColonyActionMetadataTable9ADC8A74Ref": { + "Value": { + "Ref": "ColonyActionMetadataTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyContributor.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyContributor.json new file mode 100644 index 00000000000..fdc52270863 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyContributor.json @@ -0,0 +1,1279 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyContributorTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "contributorAddress", + "AttributeType": "S" + }, + { + "AttributeName": "colonyReputationPercentage", + "AttributeType": "N" + }, + { + "AttributeName": "colonyAddress", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byAddress", + "KeySchema": [ + { + "AttributeName": "contributorAddress", + "KeyType": "HASH" + }, + { + "AttributeName": "colonyReputationPercentage", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byColonyAddress", + "KeySchema": [ + { + "AttributeName": "colonyAddress", + "KeyType": "HASH" + }, + { + "AttributeName": "colonyReputationPercentage", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyContributor-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyContributorIAMRole02BD29A4": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyContributorIAM45008a-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyContributorIAMRoleDefaultPolicy6382EDAF": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyContributorTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyContributorTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyContributorIAMRoleDefaultPolicy6382EDAF", + "Roles": [ + { + "Ref": "ColonyContributorIAMRole02BD29A4" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyContributor-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyContributor-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyContributorIAMRole02BD29A4" + } + ] + } + }, + "ColonyContributorDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyContributorTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyContributorTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyContributorIAMRole02BD29A4", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyContributorIAMRole02BD29A4" + ] + }, + "QueryGetColonyContributorDataResolverFnQueryGetColonyContributorDataResolverFnAppSyncFunctionD646E630": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyContributorDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyContributor.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyContributor.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyContributorDataSource" + ] + }, + "GetColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyContributor", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyContributorDataResolverFnQueryGetColonyContributorDataResolverFnAppSyncFunctionD646E630", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyContributor\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyContributorTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyContributorsDataResolverFnQueryListColonyContributorsDataResolverFnAppSyncFunction62104CE6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Name": "QueryListColonyContributorsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyContributors.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyContributors.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyContributorDataSource" + ] + }, + "ListColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyContributors", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyContributorsDataResolverFnQueryListColonyContributorsDataResolverFnAppSyncFunction62104CE6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyContributors\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyContributorTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyContributorDataResolverFnMutationCreateColonyContributorDataResolverFnAppSyncFunction8E217EDA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyContributorDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyContributor.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyContributor.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyContributorDataSource" + ] + }, + "CreateColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyContributor", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyContributorDataResolverFnMutationCreateColonyContributorDataResolverFnAppSyncFunction8E217EDA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyContributor\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyContributorTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyContributorDataResolverFnMutationUpdateColonyContributorDataResolverFnAppSyncFunctionAF1CAA19": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyContributorDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyContributor.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyContributor.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyContributorDataSource" + ] + }, + "UpdateColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyContributor", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyContributorDataResolverFnMutationUpdateColonyContributorDataResolverFnAppSyncFunctionAF1CAA19", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyContributor\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyContributorTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyContributorDataResolverFnMutationDeleteColonyContributorDataResolverFnAppSyncFunctionFBBA2F55": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyContributorDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyContributor.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyContributor.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyContributorDataSource" + ] + }, + "DeleteColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyContributor", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyContributorDataResolverFnMutationDeleteColonyContributorDataResolverFnAppSyncFunctionFBBA2F55", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyContributor\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyContributorTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyContributor", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyContributor\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyContributor", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyContributor\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyContributor", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyContributor\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetContributorsByAddressDataResolverFnQueryGetContributorsByAddressDataResolverFnAppSyncFunctionAF298264": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Name": "QueryGetContributorsByAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContributorsByAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContributorsByAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyContributorDataSource" + ] + }, + "QuerygetContributorsByAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getContributorsByAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetContributorsByAddressDataResolverFnQueryGetContributorsByAddressDataResolverFnAppSyncFunctionAF298264", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getContributorsByAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyContributorTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetContributorsByColonyDataResolverFnQueryGetContributorsByColonyDataResolverFnAppSyncFunction2B6E0B26": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Name": "QueryGetContributorsByColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContributorsByColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContributorsByColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyContributorDataSource" + ] + }, + "QuerygetContributorsByColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getContributorsByColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetContributorsByColonyDataResolverFnQueryGetContributorsByColonyDataResolverFnAppSyncFunction2B6E0B26", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getContributorsByColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyContributorTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyContributorTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyContributorTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyContributorTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyContributorTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyContributorTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyContributorTable:Name" + ] + ] + } + } + }, + "GetAttColonyContributorDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyContributorDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyContributorDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyContributorColonyContributorTableDE7DB971StreamArn": { + "Value": { + "Fn::GetAtt": [ + "ColonyContributorTable", + "StreamArn" + ] + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyDecision.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyDecision.json new file mode 100644 index 00000000000..f6a20841f18 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyDecision.json @@ -0,0 +1,1280 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyDecisionTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "actionId", + "AttributeType": "S" + }, + { + "AttributeName": "colonyAddress", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byActionId", + "KeySchema": [ + { + "AttributeName": "actionId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byColonyAddress", + "KeySchema": [ + { + "AttributeName": "colonyAddress", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyDecision-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyDecisionIAMRole1881B558": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyDecisionIAMRol79bfe1-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyDecisionIAMRoleDefaultPolicy9A18B5E2": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyDecisionTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyDecisionTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyDecisionIAMRoleDefaultPolicy9A18B5E2", + "Roles": [ + { + "Ref": "ColonyDecisionIAMRole1881B558" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyDecision-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyDecision-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyDecisionIAMRole1881B558" + } + ] + } + }, + "ColonyDecisionDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyDecisionTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyDecisionTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyDecisionIAMRole1881B558", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyDecisionIAMRole1881B558" + ] + }, + "QueryGetColonyDecisionDataResolverFnQueryGetColonyDecisionDataResolverFnAppSyncFunctionCA71E759": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyDecisionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyDecision.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyDecision.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDecisionDataSource" + ] + }, + "GetColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyDecision", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyDecisionDataResolverFnQueryGetColonyDecisionDataResolverFnAppSyncFunctionCA71E759", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyDecision\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyDecisionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyDecisionsDataResolverFnQueryListColonyDecisionsDataResolverFnAppSyncFunction0DA7C09D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Name": "QueryListColonyDecisionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyDecisions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyDecisions.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDecisionDataSource" + ] + }, + "ListColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyDecisions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyDecisionsDataResolverFnQueryListColonyDecisionsDataResolverFnAppSyncFunction0DA7C09D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyDecisions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyDecisionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyDecisionDataResolverFnMutationCreateColonyDecisionDataResolverFnAppSyncFunction2F3B6BB5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyDecisionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyDecision.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyDecision.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDecisionDataSource" + ] + }, + "CreateColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyDecision", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyDecisionDataResolverFnMutationCreateColonyDecisionDataResolverFnAppSyncFunction2F3B6BB5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyDecision\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyDecisionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyDecisionDataResolverFnMutationUpdateColonyDecisionDataResolverFnAppSyncFunction79EEB4F6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyDecisionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyDecision.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyDecision.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDecisionDataSource" + ] + }, + "UpdateColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyDecision", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyDecisionDataResolverFnMutationUpdateColonyDecisionDataResolverFnAppSyncFunction79EEB4F6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyDecision\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyDecisionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyDecisionDataResolverFnMutationDeleteColonyDecisionDataResolverFnAppSyncFunctionFB1C9E69": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyDecisionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyDecision.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyDecision.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDecisionDataSource" + ] + }, + "DeleteColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyDecision", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyDecisionDataResolverFnMutationDeleteColonyDecisionDataResolverFnAppSyncFunctionFB1C9E69", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyDecision\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyDecisionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyDecision", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyDecision\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyDecision", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyDecision\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyDecisionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyDecision", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyDecision\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyDecisionByActionIdDataResolverFnQueryGetColonyDecisionByActionIdDataResolverFnAppSyncFunctionCB2BFD73": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyDecisionByActionIdDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyDecisionByActionId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyDecisionByActionId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDecisionDataSource" + ] + }, + "QuerygetColonyDecisionByActionIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyDecisionByActionId", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyDecisionByActionIdDataResolverFnQueryGetColonyDecisionByActionIdDataResolverFnAppSyncFunctionCB2BFD73", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyDecisionByActionId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyDecisionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyDecisionByColonyAddressDataResolverFnQueryGetColonyDecisionByColonyAddressDataResolverFnAppSyncFunctionB919741D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyDecisionByColonyAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyDecisionByColonyAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyDecisionByColonyAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyDecisionDataSource" + ] + }, + "QuerygetColonyDecisionByColonyAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyDecisionByColonyAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyDecisionByColonyAddressDataResolverFnQueryGetColonyDecisionByColonyAddressDataResolverFnAppSyncFunctionB919741D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyDecisionByColonyAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyDecisionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyDecisionTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyDecisionTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyDecisionTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyDecisionTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyDecisionTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyDecisionTable:Name" + ] + ] + } + } + }, + "GetAttColonyDecisionDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyDecisionDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyDecisionColonyDecisionDataSourceF6EA9E9FName": { + "Value": { + "Fn::GetAtt": [ + "ColonyDecisionDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyDecisionColonyDecisionTable6247A753Ref": { + "Value": { + "Ref": "ColonyDecisionTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyExtension.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyExtension.json new file mode 100644 index 00000000000..202e5a04dae --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyExtension.json @@ -0,0 +1,1276 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyExtensionTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "colonyId", + "AttributeType": "S" + }, + { + "AttributeName": "hash", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byColony", + "KeySchema": [ + { + "AttributeName": "colonyId", + "KeyType": "HASH" + }, + { + "AttributeName": "hash", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byHash", + "KeySchema": [ + { + "AttributeName": "hash", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyExtension-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyExtensionIAMRole26EC9DFA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyExtensionIAMRo53397f-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyExtensionIAMRoleDefaultPolicy9AE25C55": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyExtensionTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyExtensionTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyExtensionIAMRoleDefaultPolicy9AE25C55", + "Roles": [ + { + "Ref": "ColonyExtensionIAMRole26EC9DFA" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyExtension-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyExtension-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyExtensionIAMRole26EC9DFA" + } + ] + } + }, + "ColonyExtensionDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyExtensionTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyExtensionTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyExtensionIAMRole26EC9DFA", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyExtensionIAMRole26EC9DFA" + ] + }, + "QueryGetColonyExtensionDataResolverFnQueryGetColonyExtensionDataResolverFnAppSyncFunctionB2230A2B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyExtensionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyExtension.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyExtension.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyExtensionDataSource" + ] + }, + "GetColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyExtension", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyExtensionDataResolverFnQueryGetColonyExtensionDataResolverFnAppSyncFunctionB2230A2B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyExtensionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyExtensionsDataResolverFnQueryListColonyExtensionsDataResolverFnAppSyncFunction13A9DBB2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Name": "QueryListColonyExtensionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyExtensions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyExtensions.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyExtensionDataSource" + ] + }, + "ListColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyExtensions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyExtensionsDataResolverFnQueryListColonyExtensionsDataResolverFnAppSyncFunction13A9DBB2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyExtensions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyExtensionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyExtensionDataResolverFnMutationCreateColonyExtensionDataResolverFnAppSyncFunction6F9F5849": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyExtensionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyExtension.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyExtension.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyExtensionDataSource" + ] + }, + "CreateColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyExtension", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyExtensionDataResolverFnMutationCreateColonyExtensionDataResolverFnAppSyncFunction6F9F5849", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyExtensionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyExtensionDataResolverFnMutationUpdateColonyExtensionDataResolverFnAppSyncFunctionE9254D0B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyExtensionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyExtension.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyExtension.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyExtensionDataSource" + ] + }, + "UpdateColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyExtension", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyExtensionDataResolverFnMutationUpdateColonyExtensionDataResolverFnAppSyncFunctionE9254D0B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyExtensionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyExtensionDataResolverFnMutationDeleteColonyExtensionDataResolverFnAppSyncFunction6A462D4D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyExtensionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyExtension.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyExtension.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyExtensionDataSource" + ] + }, + "DeleteColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyExtension", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyExtensionDataResolverFnMutationDeleteColonyExtensionDataResolverFnAppSyncFunction6A462D4D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyExtensionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyExtension", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyExtension", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyExtension", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetExtensionByColonyAndHashDataResolverFnQueryGetExtensionByColonyAndHashDataResolverFnAppSyncFunction95625BCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Name": "QueryGetExtensionByColonyAndHashDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExtensionByColonyAndHash.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExtensionByColonyAndHash.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyExtensionDataSource" + ] + }, + "QuerygetExtensionByColonyAndHashResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExtensionByColonyAndHash", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExtensionByColonyAndHashDataResolverFnQueryGetExtensionByColonyAndHashDataResolverFnAppSyncFunction95625BCE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExtensionByColonyAndHash\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyExtensionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetExtensionsByHashDataResolverFnQueryGetExtensionsByHashDataResolverFnAppSyncFunction15D6D432": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Name": "QueryGetExtensionsByHashDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExtensionsByHash.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExtensionsByHash.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyExtensionDataSource" + ] + }, + "QuerygetExtensionsByHashResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExtensionsByHash", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExtensionsByHashDataResolverFnQueryGetExtensionsByHashDataResolverFnAppSyncFunction15D6D432", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExtensionsByHash\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyExtensionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyExtensionTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyExtensionTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyExtensionTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyExtensionTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyExtensionTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyExtensionTable:Name" + ] + ] + } + } + }, + "GetAttColonyExtensionDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyExtensionDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName": { + "Value": { + "Fn::GetAtt": [ + "ColonyExtensionDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref": { + "Value": { + "Ref": "ColonyExtensionTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyFundsClaim.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyFundsClaim.json new file mode 100644 index 00000000000..56f35edb128 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyFundsClaim.json @@ -0,0 +1,1092 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyFundsClaimTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + }, + { + "AttributeName": "colonyFundsClaimsId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "colonyFundsClaimsByIdAndCreatedAt", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "gsi-Colony.fundsClaims", + "KeySchema": [ + { + "AttributeName": "colonyFundsClaimsId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyFundsClaim-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyFundsClaimIAMRole179EBCDC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyFundsClaimIAMRe363db-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyFundsClaimIAMRoleDefaultPolicyFEEC9EE0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyFundsClaimTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyFundsClaimTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyFundsClaimIAMRoleDefaultPolicyFEEC9EE0", + "Roles": [ + { + "Ref": "ColonyFundsClaimIAMRole179EBCDC" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyFundsClaim-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyFundsClaim-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyFundsClaimIAMRole179EBCDC" + } + ] + } + }, + "ColonyFundsClaimDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyFundsClaimTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyFundsClaimTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyFundsClaimIAMRole179EBCDC", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyFundsClaimIAMRole179EBCDC" + ] + }, + "QueryGetColonyFundsClaimDataResolverFnQueryGetColonyFundsClaimDataResolverFnAppSyncFunctionDF40FFC6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyFundsClaimDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyFundsClaimDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyFundsClaim.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyFundsClaim.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyFundsClaimDataSource" + ] + }, + "GetColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyFundsClaim", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyFundsClaimDataResolverFnQueryGetColonyFundsClaimDataResolverFnAppSyncFunctionDF40FFC6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyFundsClaimTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyFundsClaimsDataResolverFnQueryListColonyFundsClaimsDataResolverFnAppSyncFunction722E6FD6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyFundsClaimDataSource", + "Name" + ] + }, + "Name": "QueryListColonyFundsClaimsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyFundsClaims.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyFundsClaims.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyFundsClaimDataSource" + ] + }, + "ListColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyFundsClaims", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyFundsClaimsDataResolverFnQueryListColonyFundsClaimsDataResolverFnAppSyncFunction722E6FD6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyFundsClaims\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyFundsClaimTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyFundsClaimDataResolverFnMutationCreateColonyFundsClaimDataResolverFnAppSyncFunction6456D8BD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyFundsClaimDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyFundsClaimDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyFundsClaim.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyFundsClaim.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyFundsClaimDataSource" + ] + }, + "CreateColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyFundsClaim", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyFundsClaimDataResolverFnMutationCreateColonyFundsClaimDataResolverFnAppSyncFunction6456D8BD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyFundsClaimTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyFundsClaimDataResolverFnMutationUpdateColonyFundsClaimDataResolverFnAppSyncFunctionB0447878": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyFundsClaimDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyFundsClaimDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyFundsClaim.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyFundsClaim.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyFundsClaimDataSource" + ] + }, + "UpdateColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyFundsClaim", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyFundsClaimDataResolverFnMutationUpdateColonyFundsClaimDataResolverFnAppSyncFunctionB0447878", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyFundsClaimTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyFundsClaimDataResolverFnMutationDeleteColonyFundsClaimDataResolverFnAppSyncFunction593D0554": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyFundsClaimDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyFundsClaimDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyFundsClaim.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyFundsClaim.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyFundsClaimDataSource" + ] + }, + "DeleteColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyFundsClaim", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyFundsClaimDataResolverFnMutationDeleteColonyFundsClaimDataResolverFnAppSyncFunction593D0554", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyFundsClaimTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyFundsClaim", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyFundsClaim", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyFundsClaim", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyFundsClaimTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyFundsClaimTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyFundsClaimTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyFundsClaimTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyFundsClaimTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyFundsClaimTable:Name" + ] + ] + } + } + }, + "GetAttColonyFundsClaimDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyFundsClaimDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyFundsClaimDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyFundsClaimColonyFundsClaimDataSource1404003BName": { + "Value": { + "Fn::GetAtt": [ + "ColonyFundsClaimDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyFundsClaimColonyFundsClaimTableC9B23147Ref": { + "Value": { + "Ref": "ColonyFundsClaimTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyHistoricRole.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyHistoricRole.json new file mode 100644 index 00000000000..23abad0b37e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyHistoricRole.json @@ -0,0 +1,1143 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyHistoricRoleTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "type", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "getColonyHistoricRoleByDate", + "KeySchema": [ + { + "AttributeName": "type", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyHistoricRole-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyHistoricRoleIAMRoleD99400B6": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyHistoricRoleIA0a1a9d-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyHistoricRoleIAMRoleDefaultPolicy214DA90E": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyHistoricRoleIAMRoleDefaultPolicy214DA90E", + "Roles": [ + { + "Ref": "ColonyHistoricRoleIAMRoleD99400B6" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyHistoricRole-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyHistoricRole-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyHistoricRoleIAMRoleD99400B6" + } + ] + } + }, + "ColonyHistoricRoleDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyHistoricRoleTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyHistoricRoleTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyHistoricRoleIAMRoleD99400B6", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyHistoricRoleIAMRoleD99400B6" + ] + }, + "QueryGetColonyHistoricRoleDataResolverFnQueryGetColonyHistoricRoleDataResolverFnAppSyncFunction352F30AF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyHistoricRoleDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyHistoricRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyHistoricRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyHistoricRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyHistoricRoleDataSource" + ] + }, + "GetColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyHistoricRole", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyHistoricRoleDataResolverFnQueryGetColonyHistoricRoleDataResolverFnAppSyncFunction352F30AF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyHistoricRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyHistoricRolesDataResolverFnQueryListColonyHistoricRolesDataResolverFnAppSyncFunction83E71B67": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyHistoricRoleDataSource", + "Name" + ] + }, + "Name": "QueryListColonyHistoricRolesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyHistoricRoles.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyHistoricRoles.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyHistoricRoleDataSource" + ] + }, + "ListColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyHistoricRoles", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyHistoricRolesDataResolverFnQueryListColonyHistoricRolesDataResolverFnAppSyncFunction83E71B67", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyHistoricRoles\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyHistoricRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyHistoricRoleDataResolverFnMutationCreateColonyHistoricRoleDataResolverFnAppSyncFunctionEE2E8A14": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyHistoricRoleDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyHistoricRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyHistoricRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyHistoricRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyHistoricRoleDataSource" + ] + }, + "CreateColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyHistoricRole", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyHistoricRoleDataResolverFnMutationCreateColonyHistoricRoleDataResolverFnAppSyncFunctionEE2E8A14", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyHistoricRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyHistoricRoleDataResolverFnMutationUpdateColonyHistoricRoleDataResolverFnAppSyncFunctionE34D1AAC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyHistoricRoleDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyHistoricRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyHistoricRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyHistoricRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyHistoricRoleDataSource" + ] + }, + "UpdateColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyHistoricRole", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyHistoricRoleDataResolverFnMutationUpdateColonyHistoricRoleDataResolverFnAppSyncFunctionE34D1AAC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyHistoricRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyHistoricRoleDataResolverFnMutationDeleteColonyHistoricRoleDataResolverFnAppSyncFunction4D40AFD1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyHistoricRoleDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyHistoricRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyHistoricRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyHistoricRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyHistoricRoleDataSource" + ] + }, + "DeleteColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyHistoricRole", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyHistoricRoleDataResolverFnMutationDeleteColonyHistoricRoleDataResolverFnAppSyncFunction4D40AFD1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyHistoricRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyHistoricRole", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyHistoricRole", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyHistoricRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyHistoricRole", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyHistoricRoleByDateDataResolverFnQueryGetColonyHistoricRoleByDateDataResolverFnAppSyncFunctionB474B22F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyHistoricRoleDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyHistoricRoleByDateDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyHistoricRoleByDate.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyHistoricRoleByDate.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyHistoricRoleDataSource" + ] + }, + "QuerygetColonyHistoricRoleByDateResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyHistoricRoleByDate", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyHistoricRoleByDateDataResolverFnQueryGetColonyHistoricRoleByDateDataResolverFnAppSyncFunctionB474B22F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyHistoricRoleByDate\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyHistoricRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyHistoricRoleTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyHistoricRoleTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyHistoricRoleTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyHistoricRoleTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyHistoricRoleTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyHistoricRoleTable:Name" + ] + ] + } + } + }, + "GetAttColonyHistoricRoleDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyHistoricRoleDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyHistoricRoleDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyMemberInvite.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyMemberInvite.json new file mode 100644 index 00000000000..6c0a044652e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyMemberInvite.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyMemberInviteTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyMemberInvite-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyMemberInviteIAMRoleC4A3BBEE": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyMemberInviteIA95f9c7-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyMemberInviteIAMRoleDefaultPolicy1C75E309": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyMemberInviteTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyMemberInviteIAMRoleDefaultPolicy1C75E309", + "Roles": [ + { + "Ref": "ColonyMemberInviteIAMRoleC4A3BBEE" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyMemberInvite-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyMemberInvite-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyMemberInviteIAMRoleC4A3BBEE" + } + ] + } + }, + "ColonyMemberInviteDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyMemberInviteTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyMemberInviteTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyMemberInviteIAMRoleC4A3BBEE", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyMemberInviteIAMRoleC4A3BBEE" + ] + }, + "QueryGetColonyMemberInviteDataResolverFnQueryGetColonyMemberInviteDataResolverFnAppSyncFunction3154CAD4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMemberInviteDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyMemberInviteDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyMemberInvite.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyMemberInvite.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMemberInviteDataSource" + ] + }, + "GetColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyMemberInvite", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyMemberInviteDataResolverFnQueryGetColonyMemberInviteDataResolverFnAppSyncFunction3154CAD4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMemberInviteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyMemberInvitesDataResolverFnQueryListColonyMemberInvitesDataResolverFnAppSyncFunctionBCCF9B33": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMemberInviteDataSource", + "Name" + ] + }, + "Name": "QueryListColonyMemberInvitesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyMemberInvites.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyMemberInvites.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMemberInviteDataSource" + ] + }, + "ListColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyMemberInvites", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyMemberInvitesDataResolverFnQueryListColonyMemberInvitesDataResolverFnAppSyncFunctionBCCF9B33", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyMemberInvites\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMemberInviteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyMemberInviteDataResolverFnMutationCreateColonyMemberInviteDataResolverFnAppSyncFunction2A8FE4E7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMemberInviteDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyMemberInviteDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyMemberInvite.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyMemberInvite.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMemberInviteDataSource" + ] + }, + "CreateColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyMemberInvite", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyMemberInviteDataResolverFnMutationCreateColonyMemberInviteDataResolverFnAppSyncFunction2A8FE4E7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMemberInviteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyMemberInviteDataResolverFnMutationUpdateColonyMemberInviteDataResolverFnAppSyncFunction502FC3AF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMemberInviteDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyMemberInviteDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyMemberInvite.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyMemberInvite.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMemberInviteDataSource" + ] + }, + "UpdateColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyMemberInvite", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyMemberInviteDataResolverFnMutationUpdateColonyMemberInviteDataResolverFnAppSyncFunction502FC3AF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMemberInviteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyMemberInviteDataResolverFnMutationDeleteColonyMemberInviteDataResolverFnAppSyncFunctionE1EDBDB0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMemberInviteDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyMemberInviteDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyMemberInvite.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyMemberInvite.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMemberInviteDataSource" + ] + }, + "DeleteColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyMemberInvite", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyMemberInviteDataResolverFnMutationDeleteColonyMemberInviteDataResolverFnAppSyncFunctionE1EDBDB0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMemberInviteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyMemberInvite", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyMemberInvite", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyMemberInvite", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyMemberInviteTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyMemberInviteTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMemberInviteTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyMemberInviteTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyMemberInviteTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMemberInviteTable:Name" + ] + ] + } + } + }, + "GetAttColonyMemberInviteDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyMemberInviteDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMemberInviteDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyMemberInviteColonyMemberInviteDataSource125FBA70Name": { + "Value": { + "Fn::GetAtt": [ + "ColonyMemberInviteDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyMemberInviteColonyMemberInviteTableC4A28B1DRef": { + "Value": { + "Ref": "ColonyMemberInviteTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyMetadata.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyMetadata.json new file mode 100644 index 00000000000..675ae699ddf --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyMetadata.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyMetadataTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyMetadataIAMRoleAEA883ED": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyMetadataIAMRol91eea9-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyMetadataIAMRoleDefaultPolicy73BFBBE3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyMetadataTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyMetadataIAMRoleDefaultPolicy73BFBBE3", + "Roles": [ + { + "Ref": "ColonyMetadataIAMRoleAEA883ED" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyMetadataIAMRoleAEA883ED" + } + ] + } + }, + "ColonyMetadataDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyMetadataTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyMetadataTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyMetadataIAMRoleAEA883ED", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyMetadataIAMRoleAEA883ED" + ] + }, + "QueryGetColonyMetadataDataResolverFnQueryGetColonyMetadataDataResolverFnAppSyncFunctionAA584D8E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMetadataDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMetadataDataSource" + ] + }, + "GetColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyMetadataDataResolverFnQueryGetColonyMetadataDataResolverFnAppSyncFunctionAA584D8E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyMetadataDataResolverFnQueryListColonyMetadataDataResolverFnAppSyncFunctionAC4A6E70": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMetadataDataSource", + "Name" + ] + }, + "Name": "QueryListColonyMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMetadataDataSource" + ] + }, + "ListColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyMetadataDataResolverFnQueryListColonyMetadataDataResolverFnAppSyncFunctionAC4A6E70", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyMetadataDataResolverFnMutationCreateColonyMetadataDataResolverFnAppSyncFunctionE497A98D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMetadataDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMetadataDataSource" + ] + }, + "CreateColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyMetadataDataResolverFnMutationCreateColonyMetadataDataResolverFnAppSyncFunctionE497A98D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyMetadataDataResolverFnMutationUpdateColonyMetadataDataResolverFnAppSyncFunctionCC485746": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMetadataDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMetadataDataSource" + ] + }, + "UpdateColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyMetadataDataResolverFnMutationUpdateColonyMetadataDataResolverFnAppSyncFunctionCC485746", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyMetadataDataResolverFnMutationDeleteColonyMetadataDataResolverFnAppSyncFunctionDD08A0A0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMetadataDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMetadataDataSource" + ] + }, + "DeleteColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyMetadataDataResolverFnMutationDeleteColonyMetadataDataResolverFnAppSyncFunctionDD08A0A0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyMetadataTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyMetadataTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMetadataTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyMetadataTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyMetadataTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMetadataTable:Name" + ] + ] + } + } + }, + "GetAttColonyMetadataDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyMetadataDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMetadataDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyMetadataColonyMetadataDataSourceD41A3B32Name": { + "Value": { + "Fn::GetAtt": [ + "ColonyMetadataDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyMetadataColonyMetadataTable0FBDB471Ref": { + "Value": { + "Ref": "ColonyMetadataTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyMotion.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyMotion.json new file mode 100644 index 00000000000..ceaaceb7136 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyMotion.json @@ -0,0 +1,1272 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyMotionTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "transactionHash", + "AttributeType": "S" + }, + { + "AttributeName": "expenditureId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byTransactionHash", + "KeySchema": [ + { + "AttributeName": "transactionHash", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byExpenditureId", + "KeySchema": [ + { + "AttributeName": "expenditureId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyMotion-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyMotionIAMRole5F4084E7": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyMotionIAMRolea96d31-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyMotionIAMRoleDefaultPolicyEA39515F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyMotionTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyMotionTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyMotionIAMRoleDefaultPolicyEA39515F", + "Roles": [ + { + "Ref": "ColonyMotionIAMRole5F4084E7" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyMotion-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyMotion-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyMotionIAMRole5F4084E7" + } + ] + } + }, + "ColonyMotionDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyMotionTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyMotionTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyMotionIAMRole5F4084E7", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyMotionIAMRole5F4084E7" + ] + }, + "QueryGetColonyMotionDataResolverFnQueryGetColonyMotionDataResolverFnAppSyncFunction246574BE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyMotionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyMotion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyMotion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMotionDataSource" + ] + }, + "GetColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyMotion", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyMotionDataResolverFnQueryGetColonyMotionDataResolverFnAppSyncFunction246574BE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyMotion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMotionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyMotionsDataResolverFnQueryListColonyMotionsDataResolverFnAppSyncFunctionF25C46DF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Name": "QueryListColonyMotionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyMotions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyMotions.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMotionDataSource" + ] + }, + "ListColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyMotions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyMotionsDataResolverFnQueryListColonyMotionsDataResolverFnAppSyncFunctionF25C46DF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyMotions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMotionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyMotionDataResolverFnMutationCreateColonyMotionDataResolverFnAppSyncFunction9E6C6D87": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyMotionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyMotion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyMotion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMotionDataSource" + ] + }, + "CreateColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyMotion", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyMotionDataResolverFnMutationCreateColonyMotionDataResolverFnAppSyncFunction9E6C6D87", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyMotion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMotionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyMotionDataResolverFnMutationUpdateColonyMotionDataResolverFnAppSyncFunction5556C0A4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyMotionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyMotion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyMotion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMotionDataSource" + ] + }, + "UpdateColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyMotion", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyMotionDataResolverFnMutationUpdateColonyMotionDataResolverFnAppSyncFunction5556C0A4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyMotion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMotionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyMotionDataResolverFnMutationDeleteColonyMotionDataResolverFnAppSyncFunction271A6C54": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyMotionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyMotion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyMotion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMotionDataSource" + ] + }, + "DeleteColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyMotion", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyMotionDataResolverFnMutationDeleteColonyMotionDataResolverFnAppSyncFunction271A6C54", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyMotion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMotionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyMotion", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyMotion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyMotion", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyMotion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyMotionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyMotion", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyMotion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetMotionByTransactionHashDataResolverFnQueryGetMotionByTransactionHashDataResolverFnAppSyncFunction2FDD8DC5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Name": "QueryGetMotionByTransactionHashDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionByTransactionHash.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionByTransactionHash.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMotionDataSource" + ] + }, + "QuerygetMotionByTransactionHashResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMotionByTransactionHash", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetMotionByTransactionHashDataResolverFnQueryGetMotionByTransactionHashDataResolverFnAppSyncFunction2FDD8DC5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMotionByTransactionHash\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMotionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetMotionByExpenditureIdDataResolverFnQueryGetMotionByExpenditureIdDataResolverFnAppSyncFunctionF650D913": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Name": "QueryGetMotionByExpenditureIdDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionByExpenditureId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionByExpenditureId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyMotionDataSource" + ] + }, + "QuerygetMotionByExpenditureIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMotionByExpenditureId", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetMotionByExpenditureIdDataResolverFnQueryGetMotionByExpenditureIdDataResolverFnAppSyncFunctionF650D913", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMotionByExpenditureId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyMotionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyMotionTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyMotionTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMotionTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyMotionTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyMotionTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMotionTable:Name" + ] + ] + } + } + }, + "GetAttColonyMotionDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyMotionDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyMotionColonyMotionDataSource7DB87731Name": { + "Value": { + "Fn::GetAtt": [ + "ColonyMotionDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyMotionColonyMotionTable3E032324Ref": { + "Value": { + "Ref": "ColonyMotionTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyRole.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyRole.json new file mode 100644 index 00000000000..8b73e2b51d1 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyRole.json @@ -0,0 +1,1344 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyRoleTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "domainId", + "AttributeType": "S" + }, + { + "AttributeName": "colonyAddress", + "AttributeType": "S" + }, + { + "AttributeName": "targetAddress", + "AttributeType": "S" + }, + { + "AttributeName": "colonyRolesId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "colonyRolesById", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byDomainId", + "KeySchema": [ + { + "AttributeName": "domainId", + "KeyType": "HASH" + }, + { + "AttributeName": "colonyAddress", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byTargetAddress", + "KeySchema": [ + { + "AttributeName": "targetAddress", + "KeyType": "HASH" + }, + { + "AttributeName": "colonyAddress", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "gsi-Colony.roles", + "KeySchema": [ + { + "AttributeName": "colonyRolesId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyRole-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyRoleIAMRoleB8AA0F61": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyRoleIAMRolec90f56-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyRoleIAMRoleDefaultPolicy18E6A143": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyRoleTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyRoleTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyRoleIAMRoleDefaultPolicy18E6A143", + "Roles": [ + { + "Ref": "ColonyRoleIAMRoleB8AA0F61" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyRole-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyRole-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyRoleIAMRoleB8AA0F61" + } + ] + } + }, + "ColonyRoleDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyRoleTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyRoleTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyRoleIAMRoleB8AA0F61", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyRoleIAMRoleB8AA0F61" + ] + }, + "QueryGetColonyRoleDataResolverFnQueryGetColonyRoleDataResolverFnAppSyncFunction511C2589": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyRoleDataSource" + ] + }, + "GetColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyRole", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyRoleDataResolverFnQueryGetColonyRoleDataResolverFnAppSyncFunction511C2589", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyRolesDataResolverFnQueryListColonyRolesDataResolverFnAppSyncFunction9FC17CD2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Name": "QueryListColonyRolesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyRoles.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyRoles.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyRoleDataSource" + ] + }, + "ListColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyRoles", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyRolesDataResolverFnQueryListColonyRolesDataResolverFnAppSyncFunction9FC17CD2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyRoles\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyRoleDataResolverFnMutationCreateColonyRoleDataResolverFnAppSyncFunction9A83B165": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyRoleDataSource" + ] + }, + "CreateColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyRole", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyRoleDataResolverFnMutationCreateColonyRoleDataResolverFnAppSyncFunction9A83B165", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyRoleDataResolverFnMutationUpdateColonyRoleDataResolverFnAppSyncFunction0A0C68E2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyRoleDataSource" + ] + }, + "UpdateColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyRole", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyRoleDataResolverFnMutationUpdateColonyRoleDataResolverFnAppSyncFunction0A0C68E2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyRoleDataResolverFnMutationDeleteColonyRoleDataResolverFnAppSyncFunctionAB7D11D8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyRoleDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyRole.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyRole.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyRoleDataSource" + ] + }, + "DeleteColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyRole", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyRoleDataResolverFnMutationDeleteColonyRoleDataResolverFnAppSyncFunctionAB7D11D8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyRole", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyRole", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyRoleResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyRole", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyRole\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetRoleByDomainAndColonyDataResolverFnQueryGetRoleByDomainAndColonyDataResolverFnAppSyncFunction7B3CD19D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Name": "QueryGetRoleByDomainAndColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRoleByDomainAndColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRoleByDomainAndColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyRoleDataSource" + ] + }, + "QuerygetRoleByDomainAndColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getRoleByDomainAndColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetRoleByDomainAndColonyDataResolverFnQueryGetRoleByDomainAndColonyDataResolverFnAppSyncFunction7B3CD19D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRoleByDomainAndColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetRoleByTargetAddressAndColonyDataResolverFnQueryGetRoleByTargetAddressAndColonyDataResolverFnAppSyncFunction065ACDA6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Name": "QueryGetRoleByTargetAddressAndColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRoleByTargetAddressAndColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRoleByTargetAddressAndColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyRoleDataSource" + ] + }, + "QuerygetRoleByTargetAddressAndColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getRoleByTargetAddressAndColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetRoleByTargetAddressAndColonyDataResolverFnQueryGetRoleByTargetAddressAndColonyDataResolverFnAppSyncFunction065ACDA6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRoleByTargetAddressAndColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyRoleTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyRoleTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyRoleTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyRoleTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyRoleTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyRoleTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyRoleTable:Name" + ] + ] + } + } + }, + "GetAttColonyRoleDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyRoleDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyRoleColonyRoleDataSource9FA652A3Name": { + "Value": { + "Fn::GetAtt": [ + "ColonyRoleDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyRoleColonyRoleTableA43FBAB3Ref": { + "Value": { + "Ref": "ColonyRoleTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyStake.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyStake.json new file mode 100644 index 00000000000..a3ade9f8bb0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyStake.json @@ -0,0 +1,1156 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyStakeTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "colonyId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserAddress", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "colonyId", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyStake-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyStakeIAMRole5C272E5C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyStakeIAMRole635d0b-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyStakeIAMRoleDefaultPolicy232A3C61": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyStakeTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyStakeTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyStakeIAMRoleDefaultPolicy232A3C61", + "Roles": [ + { + "Ref": "ColonyStakeIAMRole5C272E5C" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyStake-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyStake-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyStakeIAMRole5C272E5C" + } + ] + } + }, + "ColonyStakeDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyStakeTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyStakeTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyStakeIAMRole5C272E5C", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyStakeIAMRole5C272E5C" + ] + }, + "QueryGetColonyStakeDataResolverFnQueryGetColonyStakeDataResolverFnAppSyncFunction732C6072": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyStakeDataSource" + ] + }, + "GetColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyStake", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyStakeDataResolverFnQueryGetColonyStakeDataResolverFnAppSyncFunction732C6072", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyStakesDataResolverFnQueryListColonyStakesDataResolverFnAppSyncFunction623A17DF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + }, + "Name": "QueryListColonyStakesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyStakes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyStakes.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyStakeDataSource" + ] + }, + "ListColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyStakes", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyStakesDataResolverFnQueryListColonyStakesDataResolverFnAppSyncFunction623A17DF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyStakes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyStakeDataResolverFnMutationCreateColonyStakeDataResolverFnAppSyncFunction488A5E64": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyStakeDataSource" + ] + }, + "CreateColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyStake", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyStakeDataResolverFnMutationCreateColonyStakeDataResolverFnAppSyncFunction488A5E64", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyStakeDataResolverFnMutationUpdateColonyStakeDataResolverFnAppSyncFunctionB33D64E9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyStakeDataSource" + ] + }, + "UpdateColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyStake", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyStakeDataResolverFnMutationUpdateColonyStakeDataResolverFnAppSyncFunctionB33D64E9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyStakeDataResolverFnMutationDeleteColonyStakeDataResolverFnAppSyncFunctionE0648535": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyStakeDataSource" + ] + }, + "DeleteColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyStake", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyStakeDataResolverFnMutationDeleteColonyStakeDataResolverFnAppSyncFunctionE0648535", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyStake", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyStake", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyStake", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetColonyStakeByUserAddressDataResolverFnQueryGetColonyStakeByUserAddressDataResolverFnAppSyncFunction1DF02368": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyStakeByUserAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyStakeByUserAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyStakeByUserAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyStakeDataSource" + ] + }, + "QuerygetColonyStakeByUserAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyStakeByUserAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyStakeByUserAddressDataResolverFnQueryGetColonyStakeByUserAddressDataResolverFnAppSyncFunction1DF02368", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyStakeByUserAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyStakeTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyStakeTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyStakeTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyStakeTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyStakeTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyStakeTable:Name" + ] + ] + } + } + }, + "GetAttColonyStakeDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyStakeDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyStakeColonyStakeDataSourceDAB43E50Name": { + "Value": { + "Fn::GetAtt": [ + "ColonyStakeDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyStakeColonyStakeTable9F6D58EFRef": { + "Value": { + "Ref": "ColonyStakeTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ColonyTokens.json b/amplify/backend/api/colonycdapp/build/stacks/ColonyTokens.json new file mode 100644 index 00000000000..8b50d1699bf --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ColonyTokens.json @@ -0,0 +1,1088 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ColonyTokensTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "tokenID", + "AttributeType": "S" + }, + { + "AttributeName": "colonyID", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byToken", + "KeySchema": [ + { + "AttributeName": "tokenID", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byColony", + "KeySchema": [ + { + "AttributeName": "colonyID", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ColonyTokens-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ColonyTokensIAMRole7C9FBD72": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ColonyTokensIAMRole77684d-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ColonyTokensIAMRoleDefaultPolicy2E1C3523": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ColonyTokensTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ColonyTokensTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ColonyTokensIAMRoleDefaultPolicy2E1C3523", + "Roles": [ + { + "Ref": "ColonyTokensIAMRole7C9FBD72" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyTokens-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ColonyTokens-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ColonyTokensIAMRole7C9FBD72" + } + ] + } + }, + "ColonyTokensDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ColonyTokensTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ColonyTokensTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ColonyTokensIAMRole7C9FBD72", + "Arn" + ] + } + }, + "DependsOn": [ + "ColonyTokensIAMRole7C9FBD72" + ] + }, + "QueryGetColonyTokensDataResolverFnQueryGetColonyTokensDataResolverFnAppSyncFunction05D42549": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyTokensDataSource", + "Name" + ] + }, + "Name": "QueryGetColonyTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getColonyTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyTokensDataSource" + ] + }, + "GetColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getColonyTokens", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetColonyTokensDataResolverFnQueryGetColonyTokensDataResolverFnAppSyncFunction05D42549", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListColonyTokensDataResolverFnQueryListColonyTokensDataResolverFnAppSyncFunction886CB729": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyTokensDataSource", + "Name" + ] + }, + "Name": "QueryListColonyTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listColonyTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyTokensDataSource" + ] + }, + "ListColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listColonyTokens", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListColonyTokensDataResolverFnQueryListColonyTokensDataResolverFnAppSyncFunction886CB729", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateColonyTokensDataResolverFnMutationCreateColonyTokensDataResolverFnAppSyncFunctionDBF82F3A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyTokensDataSource", + "Name" + ] + }, + "Name": "MutationCreateColonyTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyTokensDataSource" + ] + }, + "CreateColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyTokens", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateColonyTokensDataResolverFnMutationCreateColonyTokensDataResolverFnAppSyncFunctionDBF82F3A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateColonyTokensDataResolverFnMutationUpdateColonyTokensDataResolverFnAppSyncFunction17897146": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyTokensDataSource", + "Name" + ] + }, + "Name": "MutationUpdateColonyTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateColonyTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyTokensDataSource" + ] + }, + "UpdateColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateColonyTokens", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateColonyTokensDataResolverFnMutationUpdateColonyTokensDataResolverFnAppSyncFunction17897146", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteColonyTokensDataResolverFnMutationDeleteColonyTokensDataResolverFnAppSyncFunction40F361A2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ColonyTokensDataSource", + "Name" + ] + }, + "Name": "MutationDeleteColonyTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteColonyTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ColonyTokensDataSource" + ] + }, + "DeleteColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteColonyTokens", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteColonyTokensDataResolverFnMutationDeleteColonyTokensDataResolverFnAppSyncFunction40F361A2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ColonyTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateColonyTokens", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateColonyTokens", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteColonyTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteColonyTokens", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteColonyTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttColonyTokensTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ColonyTokensTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyTokensTable:StreamArn" + ] + ] + } + } + }, + "GetAttColonyTokensTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ColonyTokensTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyTokensTable:Name" + ] + ] + } + } + }, + "GetAttColonyTokensDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ColonyTokensDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ColonyTokensDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackColonyTokensColonyTokensDataSource857D042DName": { + "Value": { + "Fn::GetAtt": [ + "ColonyTokensDataSource", + "Name" + ] + } + }, + "transformerrootstackColonyTokensColonyTokensTable7E6D9918Ref": { + "Value": { + "Ref": "ColonyTokensTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ConnectionStack.json b/amplify/backend/api/colonycdapp/build/stacks/ConnectionStack.json new file mode 100644 index 00000000000..fb212da09cf --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ConnectionStack.json @@ -0,0 +1,6613 @@ +{ + "Resources": { + "ColonyContributorReputationDataResolverFnColonyContributorReputationDataResolverFnAppSyncFunction122C8974": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackContributorReputationNestedStackContributorReputationNestedStackResourceCBB7B651OutputstransformerrootstackContributorReputationContributorReputationDataSourceAA3DD1D4Name" + }, + "Name": "ColonyContributorReputationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.reputation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.reputation.res.vtl" + ] + ] + } + } + }, + "ColonyContributorreputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "reputation", + "TypeName": "ColonyContributor", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyContributorReputationDataResolverFnColonyContributorReputationDataResolverFnAppSyncFunction122C8974", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyContributor\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"reputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackContributorReputationNestedStackContributorReputationNestedStackResourceCBB7B651OutputstransformerrootstackContributorReputationContributorReputationTableE5CC3AD5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyContributorRolesDataResolverFnColonyContributorRolesDataResolverFnAppSyncFunctionCF2B3758": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleDataSource9FA652A3Name" + }, + "Name": "ColonyContributorRolesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.roles.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.roles.res.vtl" + ] + ] + } + } + }, + "ColonyContributorrolesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "roles", + "TypeName": "ColonyContributor", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyContributorRolesDataResolverFnColonyContributorRolesDataResolverFnAppSyncFunctionCF2B3758", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyContributor\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"roles\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleTableA43FBAB3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyDomainsDataResolverFnColonyDomainsDataResolverFnAppSyncFunction8B74FBD3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name" + }, + "Name": "ColonyDomainsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.domains.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.domains.res.vtl" + ] + ] + } + } + }, + "ColonydomainsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "domains", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyDomainsDataResolverFnColonyDomainsDataResolverFnAppSyncFunction8B74FBD3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"domains\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyFundsClaimsDataResolverFnColonyFundsClaimsDataResolverFnAppSyncFunctionA10F3CEE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyFundsClaimNestedStackColonyFundsClaimNestedStackResource6E405880OutputstransformerrootstackColonyFundsClaimColonyFundsClaimDataSource1404003BName" + }, + "Name": "ColonyFundsClaimsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.fundsClaims.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.fundsClaims.res.vtl" + ] + ] + } + } + }, + "ColonyfundsClaimsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "fundsClaims", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyFundsClaimsDataResolverFnColonyFundsClaimsDataResolverFnAppSyncFunctionA10F3CEE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"fundsClaims\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyFundsClaimNestedStackColonyFundsClaimNestedStackResource6E405880OutputstransformerrootstackColonyFundsClaimColonyFundsClaimTableC9B23147Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyExtensionsDataResolverFnColonyExtensionsDataResolverFnAppSyncFunction021F8C78": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName" + }, + "Name": "ColonyExtensionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.extensions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.extensions.res.vtl" + ] + ] + } + } + }, + "ColonyextensionsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "extensions", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyExtensionsDataResolverFnColonyExtensionsDataResolverFnAppSyncFunction021F8C78", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"extensions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionsDataResolverFnColonyActionsDataResolverFnAppSyncFunction11D2C86C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionDataSourceA53A92B5Name" + }, + "Name": "ColonyActionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.actions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.actions.res.vtl" + ] + ] + } + } + }, + "ColonyactionsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "actions", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionsDataResolverFnColonyActionsDataResolverFnAppSyncFunction11D2C86C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"actions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyRolesDataResolverFnColonyRolesDataResolverFnAppSyncFunction861C9A68": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleDataSource9FA652A3Name" + }, + "Name": "ColonyRolesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.roles.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.roles.res.vtl" + ] + ] + } + } + }, + "ColonyrolesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "roles", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRolesDataResolverFnColonyRolesDataResolverFnAppSyncFunction861C9A68", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"roles\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleTableA43FBAB3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyExpendituresDataResolverFnColonyExpendituresDataResolverFnAppSyncFunction048C1FF9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureDataSource89CAFD0FName" + }, + "Name": "ColonyExpendituresDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.expenditures.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.expenditures.res.vtl" + ] + ] + } + } + }, + "ColonyexpendituresResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "expenditures", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyExpendituresDataResolverFnColonyExpendituresDataResolverFnAppSyncFunction048C1FF9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"expenditures\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureTableF561020ARef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserStakesDataResolverFnUserStakesDataResolverFnAppSyncFunctionD534E711": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyStakeNestedStackColonyStakeNestedStackResource5E346A5EOutputstransformerrootstackColonyStakeColonyStakeDataSourceDAB43E50Name" + }, + "Name": "UserStakesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.stakes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.stakes.res.vtl" + ] + ] + } + } + }, + "UserstakesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "stakes", + "TypeName": "User", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserStakesDataResolverFnUserStakesDataResolverFnAppSyncFunctionD534E711", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"stakes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyStakeNestedStackColonyStakeNestedStackResource5E346A5EOutputstransformerrootstackColonyStakeColonyStakeTable9F6D58EFRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserRolesDataResolverFnUserRolesDataResolverFnAppSyncFunctionDA5373B3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleDataSource9FA652A3Name" + }, + "Name": "UserRolesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.roles.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.roles.res.vtl" + ] + ] + } + } + }, + "UserrolesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "roles", + "TypeName": "User", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserRolesDataResolverFnUserRolesDataResolverFnAppSyncFunctionDA5373B3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"roles\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleTableA43FBAB3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserTransactionHistoryDataResolverFnUserTransactionHistoryDataResolverFnAppSyncFunction02586E37": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTransactionNestedStackTransactionNestedStackResourceD58DD790OutputstransformerrootstackTransactionTransactionDataSource76E1AA69Name" + }, + "Name": "UserTransactionHistoryDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.transactionHistory.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.transactionHistory.res.vtl" + ] + ] + } + } + }, + "UsertransactionHistoryResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "transactionHistory", + "TypeName": "User", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserTransactionHistoryDataResolverFnUserTransactionHistoryDataResolverFnAppSyncFunction02586E37", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"transactionHistory\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTransactionNestedStackTransactionNestedStackResourceD58DD790OutputstransformerrootstackTransactionTransactionTable030B7013Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserLiquidationAddressesDataResolverFnUserLiquidationAddressesDataResolverFnAppSyncFunctionB0687F9B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackLiquidationAddressNestedStackLiquidationAddressNestedStackResourceDAE05DE1OutputstransformerrootstackLiquidationAddressLiquidationAddressDataSourceE4378A90Name" + }, + "Name": "UserLiquidationAddressesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.liquidationAddresses.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.liquidationAddresses.res.vtl" + ] + ] + } + } + }, + "UserliquidationAddressesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "liquidationAddresses", + "TypeName": "User", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserLiquidationAddressesDataResolverFnUserLiquidationAddressesDataResolverFnAppSyncFunctionB0687F9B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"liquidationAddresses\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackLiquidationAddressNestedStackLiquidationAddressNestedStackResourceDAE05DE1OutputstransformerrootstackLiquidationAddressLiquidationAddressTable20FAE6F3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyMotionMessagesDataResolverFnColonyMotionMessagesDataResolverFnAppSyncFunction095E413A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackMotionMessageNestedStackMotionMessageNestedStackResource3EF9CC25OutputstransformerrootstackMotionMessageMotionMessageDataSourceE6EFD321Name" + }, + "Name": "ColonyMotionMessagesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.messages.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.messages.res.vtl" + ] + ] + } + } + }, + "ColonyMotionmessagesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "messages", + "TypeName": "ColonyMotion", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyMotionMessagesDataResolverFnColonyMotionMessagesDataResolverFnAppSyncFunction095E413A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyMotion\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"messages\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackMotionMessageNestedStackMotionMessageNestedStackResource3EF9CC25OutputstransformerrootstackMotionMessageMotionMessageTable17FAA0C7Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ExpenditureMotionsDataResolverFnExpenditureMotionsDataResolverFnAppSyncFunctionEEDABF28": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionDataSource7DB87731Name" + }, + "Name": "ExpenditureMotionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.motions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.motions.res.vtl" + ] + ] + } + } + }, + "ExpendituremotionsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "motions", + "TypeName": "Expenditure", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ExpenditureMotionsDataResolverFnExpenditureMotionsDataResolverFnAppSyncFunctionEEDABF28", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Expenditure\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"motions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionTable3E032324Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ExpenditureActionsDataResolverFnExpenditureActionsDataResolverFnAppSyncFunction31F3F9CD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionDataSourceA53A92B5Name" + }, + "Name": "ExpenditureActionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.actions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.actions.res.vtl" + ] + ] + } + } + }, + "ExpenditureactionsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "actions", + "TypeName": "Expenditure", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ExpenditureActionsDataResolverFnExpenditureActionsDataResolverFnAppSyncFunction31F3F9CD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Expenditure\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"actions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SafeTransactionTransactionsDataResolverFnSafeTransactionTransactionsDataResolverFnAppSyncFunction1FA0F8A6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackSafeTransactionDataNestedStackSafeTransactionDataNestedStackResource0A9667DFOutputstransformerrootstackSafeTransactionDataSafeTransactionDataDataSource30D0D4D8Name" + }, + "Name": "SafeTransactionTransactionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/SafeTransaction.transactions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/SafeTransaction.transactions.res.vtl" + ] + ] + } + } + }, + "SafeTransactiontransactionsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "transactions", + "TypeName": "SafeTransaction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SafeTransactionTransactionsDataResolverFnSafeTransactionTransactionsDataResolverFnAppSyncFunction1FA0F8A6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"SafeTransaction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"transactions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackSafeTransactionDataNestedStackSafeTransactionDataNestedStackResource0A9667DFOutputstransformerrootstackSafeTransactionDataSafeTransactionDataTable3DA096B6Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ContributorReputationDomainDataResolverFnContributorReputationDomainDataResolverFnAppSyncFunctionBDF21C2A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name" + }, + "Name": "ContributorReputationDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContributorReputation.domain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContributorReputation.domain.res.vtl" + ] + ] + } + } + }, + "ContributorReputationdomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "domain", + "TypeName": "ContributorReputation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ContributorReputationDomainDataResolverFnContributorReputationDomainDataResolverFnAppSyncFunctionBDF21C2A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ContributorReputation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"domain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyContributorUserDataResolverFnColonyContributorUserDataResolverFnAppSyncFunction687D7C2D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "ColonyContributorUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.user.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.user.res.vtl" + ] + ] + } + } + }, + "ColonyContributoruserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "user", + "TypeName": "ColonyContributor", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyContributorUserDataResolverFnColonyContributorUserDataResolverFnAppSyncFunction687D7C2D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyContributor\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"user\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyContributorColonyDataResolverFnColonyContributorColonyDataResolverFnAppSyncFunction1DBF1F91": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName" + }, + "Name": "ColonyContributorColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.colony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyContributor.colony.res.vtl" + ] + ] + } + } + }, + "ColonyContributorcolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "ColonyContributor", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyContributorColonyDataResolverFnColonyContributorColonyDataResolverFnAppSyncFunction1DBF1F91", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyContributor\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyNativeTokenDataResolverFnColonyNativeTokenDataResolverFnAppSyncFunctionF6416228": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ColonyNativeTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.nativeToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.nativeToken.res.vtl" + ] + ] + } + } + }, + "ColonynativeTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "nativeToken", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyNativeTokenDataResolverFnColonyNativeTokenDataResolverFnAppSyncFunctionF6416228", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"nativeToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyMetadataDataResolverFnColonyMetadataDataResolverFnAppSyncFunctionC7A47E29": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataDataSourceD41A3B32Name" + }, + "Name": "ColonyMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.metadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.metadata.res.vtl" + ] + ] + } + } + }, + "ColonymetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "metadata", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyMetadataDataResolverFnColonyMetadataDataResolverFnAppSyncFunctionC7A47E29", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"metadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataTable0FBDB471Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyColonyMemberInviteDataResolverFnColonyColonyMemberInviteDataResolverFnAppSyncFunction448C1FA2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyMemberInviteNestedStackColonyMemberInviteNestedStackResourceD996AF9DOutputstransformerrootstackColonyMemberInviteColonyMemberInviteDataSource125FBA70Name" + }, + "Name": "ColonyColonyMemberInviteDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.colonyMemberInvite.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.colonyMemberInvite.res.vtl" + ] + ] + } + } + }, + "ColonycolonyMemberInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colonyMemberInvite", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyColonyMemberInviteDataResolverFnColonyColonyMemberInviteDataResolverFnAppSyncFunction448C1FA2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyMemberInviteNestedStackColonyMemberInviteNestedStackResourceD996AF9DOutputstransformerrootstackColonyMemberInviteColonyMemberInviteTableC4A28B1DRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserProfileDataResolverFnUserProfileDataResolverFnAppSyncFunctionBAD25EB2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileProfileDataSource28492795Name" + }, + "Name": "UserProfileDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.profile.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.profile.res.vtl" + ] + ] + } + } + }, + "UserprofileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "profile", + "TypeName": "User", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserProfileDataResolverFnUserProfileDataResolverFnAppSyncFunctionBAD25EB2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"profile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileProfileTableDAD5B613Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserPrivateBetaInviteCodeDataResolverFnUserPrivateBetaInviteCodeDataResolverFnAppSyncFunction3D863480": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackPrivateBetaInviteCodeNestedStackPrivateBetaInviteCodeNestedStackResourceA3C84401OutputstransformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeDataSource95FDB60EName" + }, + "Name": "UserPrivateBetaInviteCodeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.privateBetaInviteCode.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.privateBetaInviteCode.res.vtl" + ] + ] + } + } + }, + "UserprivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "privateBetaInviteCode", + "TypeName": "User", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserPrivateBetaInviteCodeDataResolverFnUserPrivateBetaInviteCodeDataResolverFnAppSyncFunction3D863480", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"privateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackPrivateBetaInviteCodeNestedStackPrivateBetaInviteCodeNestedStackResourceA3C84401OutputstransformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeTable46E0F412Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "LiquidationAddressUserDataResolverFnLiquidationAddressUserDataResolverFnAppSyncFunction112F7953": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "LiquidationAddressUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/LiquidationAddress.user.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/LiquidationAddress.user.res.vtl" + ] + ] + } + } + }, + "LiquidationAddressuserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "user", + "TypeName": "LiquidationAddress", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "LiquidationAddressUserDataResolverFnLiquidationAddressUserDataResolverFnAppSyncFunction112F7953", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"LiquidationAddress\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"user\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "DomainMetadataDataResolverFnDomainMetadataDataResolverFnAppSyncFunctionADA03748": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataDataSource5D65ABB5Name" + }, + "Name": "DomainMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Domain.metadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Domain.metadata.res.vtl" + ] + ] + } + } + }, + "DomainmetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "metadata", + "TypeName": "Domain", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "DomainMetadataDataResolverFnDomainMetadataDataResolverFnAppSyncFunctionADA03748", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Domain\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"metadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataTableAC0A7779Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyFundsClaimTokenDataResolverFnColonyFundsClaimTokenDataResolverFnAppSyncFunction97A5FCA5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ColonyFundsClaimTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyFundsClaim.token.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyFundsClaim.token.res.vtl" + ] + ] + } + } + }, + "ColonyFundsClaimtokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "token", + "TypeName": "ColonyFundsClaim", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyFundsClaimTokenDataResolverFnColonyFundsClaimTokenDataResolverFnAppSyncFunction97A5FCA5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyFundsClaim\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"token\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MotionMessageInitiatorUserDataResolverFnMotionMessageInitiatorUserDataResolverFnAppSyncFunctionCC3DC137": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "MotionMessageInitiatorUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/MotionMessage.initiatorUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/MotionMessage.initiatorUser.res.vtl" + ] + ] + } + } + }, + "MotionMessageinitiatorUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "initiatorUser", + "TypeName": "MotionMessage", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MotionMessageInitiatorUserDataResolverFnMotionMessageInitiatorUserDataResolverFnAppSyncFunctionCC3DC137", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"MotionMessage\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"initiatorUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyMotionMotionDomainDataResolverFnColonyMotionMotionDomainDataResolverFnAppSyncFunctionF88660AB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name" + }, + "Name": "ColonyMotionMotionDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.motionDomain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.motionDomain.res.vtl" + ] + ] + } + } + }, + "ColonyMotionmotionDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "motionDomain", + "TypeName": "ColonyMotion", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyMotionMotionDomainDataResolverFnColonyMotionMotionDomainDataResolverFnAppSyncFunctionF88660AB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyMotion\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"motionDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyMotionObjectionAnnotationDataResolverFnColonyMotionObjectionAnnotationDataResolverFnAppSyncFunctionB51E5681": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationDataSource972E2E1DName" + }, + "Name": "ColonyMotionObjectionAnnotationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.objectionAnnotation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.objectionAnnotation.res.vtl" + ] + ] + } + } + }, + "ColonyMotionobjectionAnnotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "objectionAnnotation", + "TypeName": "ColonyMotion", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyMotionObjectionAnnotationDataResolverFnColonyMotionObjectionAnnotationDataResolverFnAppSyncFunctionB51E5681", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyMotion\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"objectionAnnotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationTableD90F9B94Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ContractEventColonyDataResolverFnContractEventColonyDataResolverFnAppSyncFunction60CDD4AA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName" + }, + "Name": "ContractEventColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.colony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.colony.res.vtl" + ] + ] + } + } + }, + "ContractEventcolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "ContractEvent", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ContractEventColonyDataResolverFnContractEventColonyDataResolverFnAppSyncFunction60CDD4AA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ContractEvent\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ContractEventTokenDataResolverFnContractEventTokenDataResolverFnAppSyncFunction969921D6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ContractEventTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.token.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.token.res.vtl" + ] + ] + } + } + }, + "ContractEventtokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "token", + "TypeName": "ContractEvent", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ContractEventTokenDataResolverFnContractEventTokenDataResolverFnAppSyncFunction969921D6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ContractEvent\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"token\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ContractEventDomainDataResolverFnContractEventDomainDataResolverFnAppSyncFunction1DF2DA04": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name" + }, + "Name": "ContractEventDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.domain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.domain.res.vtl" + ] + ] + } + } + }, + "ContractEventdomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "domain", + "TypeName": "ContractEvent", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ContractEventDomainDataResolverFnContractEventDomainDataResolverFnAppSyncFunction1DF2DA04", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ContractEvent\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"domain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ContractEventUserDataResolverFnContractEventUserDataResolverFnAppSyncFunction766F8E9F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "ContractEventUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.user.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ContractEvent.user.res.vtl" + ] + ] + } + } + }, + "ContractEventuserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "user", + "TypeName": "ContractEvent", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ContractEventUserDataResolverFnContractEventUserDataResolverFnAppSyncFunction766F8E9F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ContractEvent\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"user\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionMotionDataDataResolverFnColonyActionMotionDataDataResolverFnAppSyncFunctionF59F72C7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionDataSource7DB87731Name" + }, + "Name": "ColonyActionMotionDataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.motionData.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.motionData.res.vtl" + ] + ] + } + } + }, + "ColonyActionmotionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "motionData", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionMotionDataDataResolverFnColonyActionMotionDataDataResolverFnAppSyncFunctionF59F72C7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"motionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionTable3E032324Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActioninitiatorUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "initiatorUser", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MotionMessageInitiatorUserDataResolverFnMotionMessageInitiatorUserDataResolverFnAppSyncFunctionCC3DC137", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"initiatorUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionInitiatorExtensionDataResolverFnColonyActionInitiatorExtensionDataResolverFnAppSyncFunction1297B783": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName" + }, + "Name": "ColonyActionInitiatorExtensionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.initiatorExtension.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.initiatorExtension.res.vtl" + ] + ] + } + } + }, + "ColonyActioninitiatorExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "initiatorExtension", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionInitiatorExtensionDataResolverFnColonyActionInitiatorExtensionDataResolverFnAppSyncFunction1297B783", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"initiatorExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionInitiatorColonyDataResolverFnColonyActionInitiatorColonyDataResolverFnAppSyncFunction5FAC05C6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName" + }, + "Name": "ColonyActionInitiatorColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.initiatorColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.initiatorColony.res.vtl" + ] + ] + } + } + }, + "ColonyActioninitiatorColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "initiatorColony", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionInitiatorColonyDataResolverFnColonyActionInitiatorColonyDataResolverFnAppSyncFunction5FAC05C6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"initiatorColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionInitiatorTokenDataResolverFnColonyActionInitiatorTokenDataResolverFnAppSyncFunction570AB2ED": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ColonyActionInitiatorTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.initiatorToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.initiatorToken.res.vtl" + ] + ] + } + } + }, + "ColonyActioninitiatorTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "initiatorToken", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionInitiatorTokenDataResolverFnColonyActionInitiatorTokenDataResolverFnAppSyncFunction570AB2ED", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"initiatorToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionRecipientUserDataResolverFnColonyActionRecipientUserDataResolverFnAppSyncFunction3264A129": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "ColonyActionRecipientUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientUser.res.vtl" + ] + ] + } + } + }, + "ColonyActionrecipientUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "recipientUser", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionRecipientUserDataResolverFnColonyActionRecipientUserDataResolverFnAppSyncFunction3264A129", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"recipientUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionRecipientColonyDataResolverFnColonyActionRecipientColonyDataResolverFnAppSyncFunctionB3B6FFC2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName" + }, + "Name": "ColonyActionRecipientColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientColony.res.vtl" + ] + ] + } + } + }, + "ColonyActionrecipientColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "recipientColony", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionRecipientColonyDataResolverFnColonyActionRecipientColonyDataResolverFnAppSyncFunctionB3B6FFC2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"recipientColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionRecipientExtensionDataResolverFnColonyActionRecipientExtensionDataResolverFnAppSyncFunctionFB33454F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName" + }, + "Name": "ColonyActionRecipientExtensionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientExtension.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientExtension.res.vtl" + ] + ] + } + } + }, + "ColonyActionrecipientExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "recipientExtension", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionRecipientExtensionDataResolverFnColonyActionRecipientExtensionDataResolverFnAppSyncFunctionFB33454F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"recipientExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionRecipientTokenDataResolverFnColonyActionRecipientTokenDataResolverFnAppSyncFunction8ACC61D1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ColonyActionRecipientTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.recipientToken.res.vtl" + ] + ] + } + } + }, + "ColonyActionrecipientTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "recipientToken", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionRecipientTokenDataResolverFnColonyActionRecipientTokenDataResolverFnAppSyncFunction8ACC61D1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"recipientToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionTokenDataResolverFnColonyActionTokenDataResolverFnAppSyncFunctionD0DD5009": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ColonyActionTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.token.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.token.res.vtl" + ] + ] + } + } + }, + "ColonyActiontokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "token", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionTokenDataResolverFnColonyActionTokenDataResolverFnAppSyncFunctionD0DD5009", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"token\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionFromDomainDataResolverFnColonyActionFromDomainDataResolverFnAppSyncFunctionFE61E8C4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name" + }, + "Name": "ColonyActionFromDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.fromDomain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.fromDomain.res.vtl" + ] + ] + } + } + }, + "ColonyActionfromDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "fromDomain", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionFromDomainDataResolverFnColonyActionFromDomainDataResolverFnAppSyncFunctionFE61E8C4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"fromDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionToDomainDataResolverFnColonyActionToDomainDataResolverFnAppSyncFunctionAFC7D8A8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name" + }, + "Name": "ColonyActionToDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.toDomain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.toDomain.res.vtl" + ] + ] + } + } + }, + "ColonyActiontoDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "toDomain", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionToDomainDataResolverFnColonyActionToDomainDataResolverFnAppSyncFunctionAFC7D8A8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"toDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionPendingDomainMetadataDataResolverFnColonyActionPendingDomainMetadataDataResolverFnAppSyncFunction2FBE8782": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataDataSource5D65ABB5Name" + }, + "Name": "ColonyActionPendingDomainMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.pendingDomainMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.pendingDomainMetadata.res.vtl" + ] + ] + } + } + }, + "ColonyActionpendingDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "pendingDomainMetadata", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionPendingDomainMetadataDataResolverFnColonyActionPendingDomainMetadataDataResolverFnAppSyncFunction2FBE8782", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"pendingDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataTableAC0A7779Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionPendingColonyMetadataDataResolverFnColonyActionPendingColonyMetadataDataResolverFnAppSyncFunctionB1D9282C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataDataSourceD41A3B32Name" + }, + "Name": "ColonyActionPendingColonyMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.pendingColonyMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.pendingColonyMetadata.res.vtl" + ] + ] + } + } + }, + "ColonyActionpendingColonyMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "pendingColonyMetadata", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionPendingColonyMetadataDataResolverFnColonyActionPendingColonyMetadataDataResolverFnAppSyncFunctionB1D9282C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"pendingColonyMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataTable0FBDB471Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionAnnotationDataResolverFnColonyActionAnnotationDataResolverFnAppSyncFunctionB218BD1A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationDataSource972E2E1DName" + }, + "Name": "ColonyActionAnnotationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.annotation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.annotation.res.vtl" + ] + ] + } + } + }, + "ColonyActionannotationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "annotation", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionAnnotationDataResolverFnColonyActionAnnotationDataResolverFnAppSyncFunctionB218BD1A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"annotation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationTableD90F9B94Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionDecisionDataDataResolverFnColonyActionDecisionDataDataResolverFnAppSyncFunctionF378E3BF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyDecisionNestedStackColonyDecisionNestedStackResource65776042OutputstransformerrootstackColonyDecisionColonyDecisionDataSourceF6EA9E9FName" + }, + "Name": "ColonyActionDecisionDataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.decisionData.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.decisionData.res.vtl" + ] + ] + } + } + }, + "ColonyActiondecisionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "decisionData", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionDecisionDataDataResolverFnColonyActionDecisionDataDataResolverFnAppSyncFunctionF378E3BF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"decisionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyDecisionNestedStackColonyDecisionNestedStackResource65776042OutputstransformerrootstackColonyDecisionColonyDecisionTable6247A753Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionSafeTransactionDataResolverFnColonyActionSafeTransactionDataResolverFnAppSyncFunction8F1263DF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackSafeTransactionNestedStackSafeTransactionNestedStackResource598882D2OutputstransformerrootstackSafeTransactionSafeTransactionDataSource8FEC7E78Name" + }, + "Name": "ColonyActionSafeTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.safeTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.safeTransaction.res.vtl" + ] + ] + } + } + }, + "ColonyActionsafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "safeTransaction", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionSafeTransactionDataResolverFnColonyActionSafeTransactionDataResolverFnAppSyncFunction8F1263DF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"safeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackSafeTransactionNestedStackSafeTransactionNestedStackResource598882D2OutputstransformerrootstackSafeTransactionSafeTransactionTable6845198ARef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionMetadataDataResolverFnColonyActionMetadataDataResolverFnAppSyncFunctionA728A7D1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyActionMetadataNestedStackColonyActionMetadataNestedStackResourceF2953452OutputstransformerrootstackColonyActionMetadataColonyActionMetadataDataSource99C96895Name" + }, + "Name": "ColonyActionMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.metadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.metadata.res.vtl" + ] + ] + } + } + }, + "ColonyActionmetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "metadata", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionMetadataDataResolverFnColonyActionMetadataDataResolverFnAppSyncFunctionA728A7D1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"metadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyActionMetadataNestedStackColonyActionMetadataNestedStackResourceF2953452OutputstransformerrootstackColonyActionMetadataColonyActionMetadataTable9ADC8A74Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActionExpenditureDataResolverFnColonyActionExpenditureDataResolverFnAppSyncFunctionAEC196CC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureDataSource89CAFD0FName" + }, + "Name": "ColonyActionExpenditureDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.expenditure.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyAction.expenditure.res.vtl" + ] + ] + } + } + }, + "ColonyActionexpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "expenditure", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionExpenditureDataResolverFnColonyActionExpenditureDataResolverFnAppSyncFunctionAEC196CC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"expenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureTableF561020ARef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyRoledomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "domain", + "TypeName": "ColonyRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ContributorReputationDomainDataResolverFnContributorReputationDomainDataResolverFnAppSyncFunctionBDF21C2A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"domain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyRoleTargetUserDataResolverFnColonyRoleTargetUserDataResolverFnAppSyncFunctionD90EDDD9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "ColonyRoleTargetUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetUser.res.vtl" + ] + ] + } + } + }, + "ColonyRoletargetUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetUser", + "TypeName": "ColonyRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetUserDataResolverFnColonyRoleTargetUserDataResolverFnAppSyncFunctionD90EDDD9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyRoleTargetColonyDataResolverFnColonyRoleTargetColonyDataResolverFnAppSyncFunction5916054D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName" + }, + "Name": "ColonyRoleTargetColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetColony.res.vtl" + ] + ] + } + } + }, + "ColonyRoletargetColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetColony", + "TypeName": "ColonyRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetColonyDataResolverFnColonyRoleTargetColonyDataResolverFnAppSyncFunction5916054D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyRoleTargetExtensionDataResolverFnColonyRoleTargetExtensionDataResolverFnAppSyncFunctionCAB597F8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName" + }, + "Name": "ColonyRoleTargetExtensionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetExtension.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetExtension.res.vtl" + ] + ] + } + } + }, + "ColonyRoletargetExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetExtension", + "TypeName": "ColonyRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetExtensionDataResolverFnColonyRoleTargetExtensionDataResolverFnAppSyncFunctionCAB597F8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyRoleTargetTokenDataResolverFnColonyRoleTargetTokenDataResolverFnAppSyncFunction55DAB294": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ColonyRoleTargetTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyRole.targetToken.res.vtl" + ] + ] + } + } + }, + "ColonyRoletargetTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetToken", + "TypeName": "ColonyRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetTokenDataResolverFnColonyRoleTargetTokenDataResolverFnAppSyncFunction55DAB294", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyHistoricRoledomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "domain", + "TypeName": "ColonyHistoricRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ContributorReputationDomainDataResolverFnContributorReputationDomainDataResolverFnAppSyncFunctionBDF21C2A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"domain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyHistoricRoleColonyDataResolverFnColonyHistoricRoleColonyDataResolverFnAppSyncFunction88A4C52D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName" + }, + "Name": "ColonyHistoricRoleColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyHistoricRole.colony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyHistoricRole.colony.res.vtl" + ] + ] + } + } + }, + "ColonyHistoricRolecolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "ColonyHistoricRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleColonyDataResolverFnColonyHistoricRoleColonyDataResolverFnAppSyncFunction88A4C52D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyHistoricRoletargetUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetUser", + "TypeName": "ColonyHistoricRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetUserDataResolverFnColonyRoleTargetUserDataResolverFnAppSyncFunctionD90EDDD9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyHistoricRoletargetColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetColony", + "TypeName": "ColonyHistoricRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetColonyDataResolverFnColonyRoleTargetColonyDataResolverFnAppSyncFunction5916054D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyHistoricRoletargetExtensionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetExtension", + "TypeName": "ColonyHistoricRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetExtensionDataResolverFnColonyRoleTargetExtensionDataResolverFnAppSyncFunctionCAB597F8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetExtension\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyHistoricRoletargetTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "targetToken", + "TypeName": "ColonyHistoricRole", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyRoleTargetTokenDataResolverFnColonyRoleTargetTokenDataResolverFnAppSyncFunction55DAB294", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyHistoricRole\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"targetToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ExpenditureMetadataDataResolverFnExpenditureMetadataDataResolverFnAppSyncFunctionC1578A33": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackExpenditureMetadataNestedStackExpenditureMetadataNestedStackResource00FC2351OutputstransformerrootstackExpenditureMetadataExpenditureMetadataDataSourceA5D5932DName" + }, + "Name": "ExpenditureMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.metadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.metadata.res.vtl" + ] + ] + } + } + }, + "ExpendituremetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "metadata", + "TypeName": "Expenditure", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ExpenditureMetadataDataResolverFnExpenditureMetadataDataResolverFnAppSyncFunctionC1578A33", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Expenditure\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"metadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackExpenditureMetadataNestedStackExpenditureMetadataNestedStackResource00FC2351OutputstransformerrootstackExpenditureMetadataExpenditureMetadataTable5E9A8B28Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ExpenditureUserStakeDataResolverFnExpenditureUserStakeDataResolverFnAppSyncFunction76EE6232": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserStakeNestedStackUserStakeNestedStackResourceCAE6BBD0OutputstransformerrootstackUserStakeUserStakeDataSource4515F88DName" + }, + "Name": "ExpenditureUserStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.userStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Expenditure.userStake.res.vtl" + ] + ] + } + } + }, + "ExpenditureuserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "userStake", + "TypeName": "Expenditure", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ExpenditureUserStakeDataResolverFnExpenditureUserStakeDataResolverFnAppSyncFunction76EE6232", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Expenditure\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"userStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserStakeNestedStackUserStakeNestedStackResourceCAE6BBD0OutputstransformerrootstackUserStakeUserStakeTableA6FC6F95Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "StreamingPaymentMetadataDataResolverFnStreamingPaymentMetadataDataResolverFnAppSyncFunctionE24AE514": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackStreamingPaymentMetadataNestedStackStreamingPaymentMetadataNestedStackResource8EBD54DAOutputstransformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataDataSource32DF5C97Name" + }, + "Name": "StreamingPaymentMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/StreamingPayment.metadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/StreamingPayment.metadata.res.vtl" + ] + ] + } + } + }, + "StreamingPaymentmetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "metadata", + "TypeName": "StreamingPayment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataResolverFnStreamingPaymentMetadataDataResolverFnAppSyncFunctionE24AE514", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"StreamingPayment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"metadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackStreamingPaymentMetadataNestedStackStreamingPaymentMetadataNestedStackResource8EBD54DAOutputstransformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataTableB16A19ACRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SafeTransactionDatatokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "token", + "TypeName": "SafeTransactionData", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyActionTokenDataResolverFnColonyActionTokenDataResolverFnAppSyncFunctionD0DD5009", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"SafeTransactionData\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"token\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserStakeuserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "user", + "TypeName": "UserStake", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "LiquidationAddressUserDataResolverFnLiquidationAddressUserDataResolverFnAppSyncFunction112F7953", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"UserStake\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"user\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserStakeActionDataResolverFnUserStakeActionDataResolverFnAppSyncFunctionD63AA0B1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionDataSourceA53A92B5Name" + }, + "Name": "UserStakeActionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/UserStake.action.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/UserStake.action.res.vtl" + ] + ] + } + } + }, + "UserStakeactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "action", + "TypeName": "UserStake", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserStakeActionDataResolverFnUserStakeActionDataResolverFnAppSyncFunctionD63AA0B1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"UserStake\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"action\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyTokensTokenDataResolverFnColonyTokensTokenDataResolverFnAppSyncFunctionD9FCA8EF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName" + }, + "Name": "ColonyTokensTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyTokens.token.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyTokens.token.res.vtl" + ] + ] + } + } + }, + "ColonyTokenstokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "token", + "TypeName": "ColonyTokens", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyTokensTokenDataResolverFnColonyTokensTokenDataResolverFnAppSyncFunctionD9FCA8EF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyTokens\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"token\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyTokensColonyDataResolverFnColonyTokensColonyDataResolverFnAppSyncFunction4E544E37": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName" + }, + "Name": "ColonyTokensColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyTokens.colony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyTokens.colony.res.vtl" + ] + ] + } + } + }, + "ColonyTokenscolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "ColonyTokens", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyTokensColonyDataResolverFnColonyTokensColonyDataResolverFnAppSyncFunction4E544E37", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyTokens\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserTokenstokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "token", + "TypeName": "UserTokens", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyTokensTokenDataResolverFnColonyTokensTokenDataResolverFnAppSyncFunctionD9FCA8EF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"UserTokens\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"token\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserTokensUserDataResolverFnUserTokensUserDataResolverFnAppSyncFunctionA53ED4DF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "UserTokensUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/UserTokens.user.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/UserTokens.user.res.vtl" + ] + ] + } + } + }, + "UserTokensuserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "user", + "TypeName": "UserTokens", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserTokensUserDataResolverFnUserTokensUserDataResolverFnAppSyncFunctionA53ED4DF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"UserTokens\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"user\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "TokenColoniesDataResolverFnTokenColoniesDataResolverFnAppSyncFunctionCF9B6198": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensDataSource857D042DName" + }, + "Name": "TokenColoniesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Token.colonies.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Token.colonies.res.vtl" + ] + ] + } + } + }, + "TokencoloniesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colonies", + "TypeName": "Token", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "TokenColoniesDataResolverFnTokenColoniesDataResolverFnAppSyncFunctionCF9B6198", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Token\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colonies\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensTable7E6D9918Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "TokenUsersDataResolverFnTokenUsersDataResolverFnAppSyncFunction557A6E75": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensDataSource039C2EB3Name" + }, + "Name": "TokenUsersDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Token.users.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Token.users.res.vtl" + ] + ] + } + } + }, + "TokenusersResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "users", + "TypeName": "Token", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "TokenUsersDataResolverFnTokenUsersDataResolverFnAppSyncFunction557A6E75", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Token\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"users\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensTableC40CB7A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyTokensDataResolverFnColonyTokensDataResolverFnAppSyncFunctionC4E5F056": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensDataSource857D042DName" + }, + "Name": "ColonyTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.tokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.tokens.res.vtl" + ] + ] + } + } + }, + "ColonytokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "tokens", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyTokensDataResolverFnColonyTokensDataResolverFnAppSyncFunctionC4E5F056", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"tokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensTable7E6D9918Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "UserTokensDataResolverFnUserTokensDataResolverFnAppSyncFunction6968182B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensDataSource039C2EB3Name" + }, + "Name": "UserTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.tokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.tokens.res.vtl" + ] + ] + } + } + }, + "UsertokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "tokens", + "TypeName": "User", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserTokensDataResolverFnUserTokensDataResolverFnAppSyncFunction6968182B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"tokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensTableC40CB7A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ProfileUserDataResolverFnProfileUserDataResolverFnAppSyncFunctionF047359B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name" + }, + "Name": "ProfileUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Profile.user.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Profile.user.res.vtl" + ] + ] + } + } + }, + "ProfileuserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "user", + "TypeName": "Profile", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ProfileUserDataResolverFnProfileUserDataResolverFnAppSyncFunctionF047359B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Profile\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"user\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyMemberInvitecolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "ColonyMemberInvite", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleColonyDataResolverFnColonyHistoricRoleColonyDataResolverFnAppSyncFunction88A4C52D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyMemberInvite\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "DomaincolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "Domain", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleColonyDataResolverFnColonyHistoricRoleColonyDataResolverFnAppSyncFunction88A4C52D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Domain\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyMotionActionDataResolverFnColonyMotionActionDataResolverFnAppSyncFunction4BC35BDA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionDataSourceA53A92B5Name" + }, + "Name": "ColonyMotionActionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.action.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/ColonyMotion.action.res.vtl" + ] + ] + } + } + }, + "ColonyMotionactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "action", + "TypeName": "ColonyMotion", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyMotionActionDataResolverFnColonyMotionActionDataResolverFnAppSyncFunction4BC35BDA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyMotion\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"action\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyExtensioncolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "ColonyExtension", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleColonyDataResolverFnColonyHistoricRoleColonyDataResolverFnAppSyncFunction88A4C52D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyExtension\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyActioncolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "ColonyAction", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleColonyDataResolverFnColonyHistoricRoleColonyDataResolverFnAppSyncFunction88A4C52D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyAction\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ColonyDecisionactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "action", + "TypeName": "ColonyDecision", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserStakeActionDataResolverFnUserStakeActionDataResolverFnAppSyncFunctionD63AA0B1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"ColonyDecision\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"action\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "ExpenditurecolonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "colony", + "TypeName": "Expenditure", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ColonyHistoricRoleColonyDataResolverFnColonyHistoricRoleColonyDataResolverFnAppSyncFunction88A4C52D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Expenditure\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"colony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackContributorReputationNestedStackContributorReputationNestedStackResourceCBB7B651OutputstransformerrootstackContributorReputationContributorReputationDataSourceAA3DD1D4Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackContributorReputationNestedStackContributorReputationNestedStackResourceCBB7B651OutputstransformerrootstackContributorReputationContributorReputationTableE5CC3AD5Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleDataSource9FA652A3Name": { + "Type": "String" + }, + "referencetotransformerrootstackColonyRoleNestedStackColonyRoleNestedStackResource200747A1OutputstransformerrootstackColonyRoleColonyRoleTableA43FBAB3Ref": { + "Type": "String" + }, + "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainDataSourceBDC66ED3Name": { + "Type": "String" + }, + "referencetotransformerrootstackDomainNestedStackDomainNestedStackResourceBDE3C52BOutputstransformerrootstackDomainDomainTable87F7344FRef": { + "Type": "String" + }, + "referencetotransformerrootstackColonyFundsClaimNestedStackColonyFundsClaimNestedStackResource6E405880OutputstransformerrootstackColonyFundsClaimColonyFundsClaimDataSource1404003BName": { + "Type": "String" + }, + "referencetotransformerrootstackColonyFundsClaimNestedStackColonyFundsClaimNestedStackResource6E405880OutputstransformerrootstackColonyFundsClaimColonyFundsClaimTableC9B23147Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionDataSourceA6C0028EName": { + "Type": "String" + }, + "referencetotransformerrootstackColonyExtensionNestedStackColonyExtensionNestedStackResource2DF5AC86OutputstransformerrootstackColonyExtensionColonyExtensionTable61CEA259Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionDataSourceA53A92B5Name": { + "Type": "String" + }, + "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFRef": { + "Type": "String" + }, + "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureDataSource89CAFD0FName": { + "Type": "String" + }, + "referencetotransformerrootstackExpenditureNestedStackExpenditureNestedStackResource2A0C2F14OutputstransformerrootstackExpenditureExpenditureTableF561020ARef": { + "Type": "String" + }, + "referencetotransformerrootstackColonyStakeNestedStackColonyStakeNestedStackResource5E346A5EOutputstransformerrootstackColonyStakeColonyStakeDataSourceDAB43E50Name": { + "Type": "String" + }, + "referencetotransformerrootstackColonyStakeNestedStackColonyStakeNestedStackResource5E346A5EOutputstransformerrootstackColonyStakeColonyStakeTable9F6D58EFRef": { + "Type": "String" + }, + "referencetotransformerrootstackTransactionNestedStackTransactionNestedStackResourceD58DD790OutputstransformerrootstackTransactionTransactionDataSource76E1AA69Name": { + "Type": "String" + }, + "referencetotransformerrootstackTransactionNestedStackTransactionNestedStackResourceD58DD790OutputstransformerrootstackTransactionTransactionTable030B7013Ref": { + "Type": "String" + }, + "referencetotransformerrootstackLiquidationAddressNestedStackLiquidationAddressNestedStackResourceDAE05DE1OutputstransformerrootstackLiquidationAddressLiquidationAddressDataSourceE4378A90Name": { + "Type": "String" + }, + "referencetotransformerrootstackLiquidationAddressNestedStackLiquidationAddressNestedStackResourceDAE05DE1OutputstransformerrootstackLiquidationAddressLiquidationAddressTable20FAE6F3Ref": { + "Type": "String" + }, + "referencetotransformerrootstackMotionMessageNestedStackMotionMessageNestedStackResource3EF9CC25OutputstransformerrootstackMotionMessageMotionMessageDataSourceE6EFD321Name": { + "Type": "String" + }, + "referencetotransformerrootstackMotionMessageNestedStackMotionMessageNestedStackResource3EF9CC25OutputstransformerrootstackMotionMessageMotionMessageTable17FAA0C7Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionDataSource7DB87731Name": { + "Type": "String" + }, + "referencetotransformerrootstackColonyMotionNestedStackColonyMotionNestedStackResourceEAE54F2COutputstransformerrootstackColonyMotionColonyMotionTable3E032324Ref": { + "Type": "String" + }, + "referencetotransformerrootstackSafeTransactionDataNestedStackSafeTransactionDataNestedStackResource0A9667DFOutputstransformerrootstackSafeTransactionDataSafeTransactionDataDataSource30D0D4D8Name": { + "Type": "String" + }, + "referencetotransformerrootstackSafeTransactionDataNestedStackSafeTransactionDataNestedStackResource0A9667DFOutputstransformerrootstackSafeTransactionDataSafeTransactionDataTable3DA096B6Ref": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserDataSourceA8C4C398Name": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserUserTableA7A02430Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyDataSource93AB5D4EName": { + "Type": "String" + }, + "referencetotransformerrootstackColonyNestedStackColonyNestedStackResource6F3B3D6COutputstransformerrootstackColonyColonyTableE180C572Ref": { + "Type": "String" + }, + "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenDataSource5FB42D9DName": { + "Type": "String" + }, + "referencetotransformerrootstackTokenNestedStackTokenNestedStackResource09A724EEOutputstransformerrootstackTokenTokenTableB8C40491Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataDataSourceD41A3B32Name": { + "Type": "String" + }, + "referencetotransformerrootstackColonyMetadataNestedStackColonyMetadataNestedStackResourceC2B51B14OutputstransformerrootstackColonyMetadataColonyMetadataTable0FBDB471Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyMemberInviteNestedStackColonyMemberInviteNestedStackResourceD996AF9DOutputstransformerrootstackColonyMemberInviteColonyMemberInviteDataSource125FBA70Name": { + "Type": "String" + }, + "referencetotransformerrootstackColonyMemberInviteNestedStackColonyMemberInviteNestedStackResourceD996AF9DOutputstransformerrootstackColonyMemberInviteColonyMemberInviteTableC4A28B1DRef": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileProfileDataSource28492795Name": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileProfileTableDAD5B613Ref": { + "Type": "String" + }, + "referencetotransformerrootstackPrivateBetaInviteCodeNestedStackPrivateBetaInviteCodeNestedStackResourceA3C84401OutputstransformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeDataSource95FDB60EName": { + "Type": "String" + }, + "referencetotransformerrootstackPrivateBetaInviteCodeNestedStackPrivateBetaInviteCodeNestedStackResourceA3C84401OutputstransformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeTable46E0F412Ref": { + "Type": "String" + }, + "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataDataSource5D65ABB5Name": { + "Type": "String" + }, + "referencetotransformerrootstackDomainMetadataNestedStackDomainMetadataNestedStackResource98D7893DOutputstransformerrootstackDomainMetadataDomainMetadataTableAC0A7779Ref": { + "Type": "String" + }, + "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationDataSource972E2E1DName": { + "Type": "String" + }, + "referencetotransformerrootstackAnnotationNestedStackAnnotationNestedStackResource4D27F0B9OutputstransformerrootstackAnnotationAnnotationTableD90F9B94Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyDecisionNestedStackColonyDecisionNestedStackResource65776042OutputstransformerrootstackColonyDecisionColonyDecisionDataSourceF6EA9E9FName": { + "Type": "String" + }, + "referencetotransformerrootstackColonyDecisionNestedStackColonyDecisionNestedStackResource65776042OutputstransformerrootstackColonyDecisionColonyDecisionTable6247A753Ref": { + "Type": "String" + }, + "referencetotransformerrootstackSafeTransactionNestedStackSafeTransactionNestedStackResource598882D2OutputstransformerrootstackSafeTransactionSafeTransactionDataSource8FEC7E78Name": { + "Type": "String" + }, + "referencetotransformerrootstackSafeTransactionNestedStackSafeTransactionNestedStackResource598882D2OutputstransformerrootstackSafeTransactionSafeTransactionTable6845198ARef": { + "Type": "String" + }, + "referencetotransformerrootstackColonyActionMetadataNestedStackColonyActionMetadataNestedStackResourceF2953452OutputstransformerrootstackColonyActionMetadataColonyActionMetadataDataSource99C96895Name": { + "Type": "String" + }, + "referencetotransformerrootstackColonyActionMetadataNestedStackColonyActionMetadataNestedStackResourceF2953452OutputstransformerrootstackColonyActionMetadataColonyActionMetadataTable9ADC8A74Ref": { + "Type": "String" + }, + "referencetotransformerrootstackExpenditureMetadataNestedStackExpenditureMetadataNestedStackResource00FC2351OutputstransformerrootstackExpenditureMetadataExpenditureMetadataDataSourceA5D5932DName": { + "Type": "String" + }, + "referencetotransformerrootstackExpenditureMetadataNestedStackExpenditureMetadataNestedStackResource00FC2351OutputstransformerrootstackExpenditureMetadataExpenditureMetadataTable5E9A8B28Ref": { + "Type": "String" + }, + "referencetotransformerrootstackUserStakeNestedStackUserStakeNestedStackResourceCAE6BBD0OutputstransformerrootstackUserStakeUserStakeDataSource4515F88DName": { + "Type": "String" + }, + "referencetotransformerrootstackUserStakeNestedStackUserStakeNestedStackResourceCAE6BBD0OutputstransformerrootstackUserStakeUserStakeTableA6FC6F95Ref": { + "Type": "String" + }, + "referencetotransformerrootstackStreamingPaymentMetadataNestedStackStreamingPaymentMetadataNestedStackResource8EBD54DAOutputstransformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataDataSource32DF5C97Name": { + "Type": "String" + }, + "referencetotransformerrootstackStreamingPaymentMetadataNestedStackStreamingPaymentMetadataNestedStackResource8EBD54DAOutputstransformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataTableB16A19ACRef": { + "Type": "String" + }, + "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensDataSource857D042DName": { + "Type": "String" + }, + "referencetotransformerrootstackColonyTokensNestedStackColonyTokensNestedStackResourceCFF56C90OutputstransformerrootstackColonyTokensColonyTokensTable7E6D9918Ref": { + "Type": "String" + }, + "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensDataSource039C2EB3Name": { + "Type": "String" + }, + "referencetotransformerrootstackUserTokensNestedStackUserTokensNestedStackResource38B0FE06OutputstransformerrootstackUserTokensUserTokensTableC40CB7A3Ref": { + "Type": "String" + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ContractEvent.json b/amplify/backend/api/colonycdapp/build/stacks/ContractEvent.json new file mode 100644 index 00000000000..6c5c33cfee7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ContractEvent.json @@ -0,0 +1,998 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ContractEventTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ContractEvent-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ContractEventIAMRole09785CBF": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ContractEventIAMRoleef6271-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ContractEventIAMRoleDefaultPolicy055706A9": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ContractEventTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ContractEventIAMRoleDefaultPolicy055706A9", + "Roles": [ + { + "Ref": "ContractEventIAMRole09785CBF" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ContractEvent-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ContractEvent-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ContractEventIAMRole09785CBF" + } + ] + } + }, + "ContractEventDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ContractEventTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ContractEventTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ContractEventIAMRole09785CBF", + "Arn" + ] + } + }, + "DependsOn": [ + "ContractEventIAMRole09785CBF" + ] + }, + "QueryGetContractEventDataResolverFnQueryGetContractEventDataResolverFnAppSyncFunctionCF174FB2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContractEventDataSource", + "Name" + ] + }, + "Name": "QueryGetContractEventDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContractEvent.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContractEvent.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContractEventDataSource" + ] + }, + "GetContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getContractEvent", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetContractEventDataResolverFnQueryGetContractEventDataResolverFnAppSyncFunctionCF174FB2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getContractEvent\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContractEventTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListContractEventsDataResolverFnQueryListContractEventsDataResolverFnAppSyncFunction92DD4E58": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContractEventDataSource", + "Name" + ] + }, + "Name": "QueryListContractEventsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listContractEvents.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listContractEvents.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContractEventDataSource" + ] + }, + "ListContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listContractEvents", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListContractEventsDataResolverFnQueryListContractEventsDataResolverFnAppSyncFunction92DD4E58", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listContractEvents\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContractEventTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateContractEventDataResolverFnMutationCreateContractEventDataResolverFnAppSyncFunction969ADA0E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContractEventDataSource", + "Name" + ] + }, + "Name": "MutationCreateContractEventDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createContractEvent.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createContractEvent.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContractEventDataSource" + ] + }, + "CreateContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createContractEvent", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateContractEventDataResolverFnMutationCreateContractEventDataResolverFnAppSyncFunction969ADA0E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createContractEvent\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContractEventTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateContractEventDataResolverFnMutationUpdateContractEventDataResolverFnAppSyncFunctionD7ECCE19": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContractEventDataSource", + "Name" + ] + }, + "Name": "MutationUpdateContractEventDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateContractEvent.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateContractEvent.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContractEventDataSource" + ] + }, + "UpdateContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateContractEvent", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateContractEventDataResolverFnMutationUpdateContractEventDataResolverFnAppSyncFunctionD7ECCE19", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateContractEvent\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContractEventTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteContractEventDataResolverFnMutationDeleteContractEventDataResolverFnAppSyncFunction511EF851": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContractEventDataSource", + "Name" + ] + }, + "Name": "MutationDeleteContractEventDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteContractEvent.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteContractEvent.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContractEventDataSource" + ] + }, + "DeleteContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteContractEvent", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteContractEventDataResolverFnMutationDeleteContractEventDataResolverFnAppSyncFunction511EF851", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteContractEvent\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContractEventTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateContractEvent", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateContractEvent\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateContractEvent", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateContractEvent\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteContractEventResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteContractEvent", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteContractEvent\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttContractEventTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ContractEventTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ContractEventTable:StreamArn" + ] + ] + } + } + }, + "GetAttContractEventTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ContractEventTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ContractEventTable:Name" + ] + ] + } + } + }, + "GetAttContractEventDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ContractEventDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ContractEventDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ContributorReputation.json b/amplify/backend/api/colonycdapp/build/stacks/ContributorReputation.json new file mode 100644 index 00000000000..44eebd8b18e --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ContributorReputation.json @@ -0,0 +1,1156 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ContributorReputationTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "contributorAddress", + "AttributeType": "S" + }, + { + "AttributeName": "colonyAddress", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byContributorAddress", + "KeySchema": [ + { + "AttributeName": "contributorAddress", + "KeyType": "HASH" + }, + { + "AttributeName": "colonyAddress", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ContributorReputation-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ContributorReputationIAMRole8309B4C4": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ContributorReputatio92b06a-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ContributorReputationIAMRoleDefaultPolicyD87E9BDE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ContributorReputationTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ContributorReputationTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ContributorReputationIAMRoleDefaultPolicyD87E9BDE", + "Roles": [ + { + "Ref": "ContributorReputationIAMRole8309B4C4" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ContributorReputation-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ContributorReputation-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ContributorReputationIAMRole8309B4C4" + } + ] + } + }, + "ContributorReputationDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ContributorReputationTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ContributorReputationTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ContributorReputationIAMRole8309B4C4", + "Arn" + ] + } + }, + "DependsOn": [ + "ContributorReputationIAMRole8309B4C4" + ] + }, + "QueryGetContributorReputationDataResolverFnQueryGetContributorReputationDataResolverFnAppSyncFunctionD07AB6C9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + }, + "Name": "QueryGetContributorReputationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContributorReputation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getContributorReputation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContributorReputationDataSource" + ] + }, + "GetContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getContributorReputation", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetContributorReputationDataResolverFnQueryGetContributorReputationDataResolverFnAppSyncFunctionD07AB6C9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getContributorReputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContributorReputationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListContributorReputationsDataResolverFnQueryListContributorReputationsDataResolverFnAppSyncFunction723E21E1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + }, + "Name": "QueryListContributorReputationsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listContributorReputations.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listContributorReputations.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContributorReputationDataSource" + ] + }, + "ListContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listContributorReputations", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListContributorReputationsDataResolverFnQueryListContributorReputationsDataResolverFnAppSyncFunction723E21E1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listContributorReputations\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContributorReputationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateContributorReputationDataResolverFnMutationCreateContributorReputationDataResolverFnAppSyncFunction56706377": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + }, + "Name": "MutationCreateContributorReputationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createContributorReputation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createContributorReputation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContributorReputationDataSource" + ] + }, + "CreateContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createContributorReputation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateContributorReputationDataResolverFnMutationCreateContributorReputationDataResolverFnAppSyncFunction56706377", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createContributorReputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContributorReputationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateContributorReputationDataResolverFnMutationUpdateContributorReputationDataResolverFnAppSyncFunction4A1B35EB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + }, + "Name": "MutationUpdateContributorReputationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateContributorReputation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateContributorReputation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContributorReputationDataSource" + ] + }, + "UpdateContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateContributorReputation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateContributorReputationDataResolverFnMutationUpdateContributorReputationDataResolverFnAppSyncFunction4A1B35EB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateContributorReputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContributorReputationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteContributorReputationDataResolverFnMutationDeleteContributorReputationDataResolverFnAppSyncFunctionF193D9F9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + }, + "Name": "MutationDeleteContributorReputationDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteContributorReputation.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteContributorReputation.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContributorReputationDataSource" + ] + }, + "DeleteContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteContributorReputation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteContributorReputationDataResolverFnMutationDeleteContributorReputationDataResolverFnAppSyncFunctionF193D9F9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteContributorReputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContributorReputationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateContributorReputation", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateContributorReputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateContributorReputation", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateContributorReputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteContributorReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteContributorReputation", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteContributorReputation\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetUserReputationInColonyDataResolverFnQueryGetUserReputationInColonyDataResolverFnAppSyncFunction8D42F9DD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + }, + "Name": "QueryGetUserReputationInColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserReputationInColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserReputationInColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ContributorReputationDataSource" + ] + }, + "QuerygetUserReputationInColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserReputationInColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetUserReputationInColonyDataResolverFnQueryGetUserReputationInColonyDataResolverFnAppSyncFunction8D42F9DD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserReputationInColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ContributorReputationTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttContributorReputationTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ContributorReputationTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ContributorReputationTable:StreamArn" + ] + ] + } + } + }, + "GetAttContributorReputationTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ContributorReputationTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ContributorReputationTable:Name" + ] + ] + } + } + }, + "GetAttContributorReputationDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ContributorReputationDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackContributorReputationContributorReputationDataSourceAA3DD1D4Name": { + "Value": { + "Fn::GetAtt": [ + "ContributorReputationDataSource", + "Name" + ] + } + }, + "transformerrootstackContributorReputationContributorReputationTableE5CC3AD5Ref": { + "Value": { + "Ref": "ContributorReputationTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/CurrentNetworkInverseFee.json b/amplify/backend/api/colonycdapp/build/stacks/CurrentNetworkInverseFee.json new file mode 100644 index 00000000000..86b79257c19 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/CurrentNetworkInverseFee.json @@ -0,0 +1,998 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "CurrentNetworkInverseFeeTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "CurrentNetworkInverseFee-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "CurrentNetworkInverseFeeIAMRoleCE0E61D9": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "CurrentNetworkInverse1c622-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "CurrentNetworkInverseFeeIAMRoleDefaultPolicy0F946398": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CurrentNetworkInverseFeeIAMRoleDefaultPolicy0F946398", + "Roles": [ + { + "Ref": "CurrentNetworkInverseFeeIAMRoleCE0E61D9" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "CurrentNetworkInverseFee-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "CurrentNetworkInverseFee-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "CurrentNetworkInverseFeeIAMRoleCE0E61D9" + } + ] + } + }, + "CurrentNetworkInverseFeeDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "CurrentNetworkInverseFeeTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "CurrentNetworkInverseFeeTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeIAMRoleCE0E61D9", + "Arn" + ] + } + }, + "DependsOn": [ + "CurrentNetworkInverseFeeIAMRoleCE0E61D9" + ] + }, + "QueryGetCurrentNetworkInverseFeeDataResolverFnQueryGetCurrentNetworkInverseFeeDataResolverFnAppSyncFunctionF8D5199F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeDataSource", + "Name" + ] + }, + "Name": "QueryGetCurrentNetworkInverseFeeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getCurrentNetworkInverseFee.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getCurrentNetworkInverseFee.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentNetworkInverseFeeDataSource" + ] + }, + "GetCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getCurrentNetworkInverseFee", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetCurrentNetworkInverseFeeDataResolverFnQueryGetCurrentNetworkInverseFeeDataResolverFnAppSyncFunctionF8D5199F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getCurrentNetworkInverseFee\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentNetworkInverseFeeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListCurrentNetworkInverseFeesDataResolverFnQueryListCurrentNetworkInverseFeesDataResolverFnAppSyncFunctionBF7BD210": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeDataSource", + "Name" + ] + }, + "Name": "QueryListCurrentNetworkInverseFeesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listCurrentNetworkInverseFees.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listCurrentNetworkInverseFees.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentNetworkInverseFeeDataSource" + ] + }, + "ListCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listCurrentNetworkInverseFees", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListCurrentNetworkInverseFeesDataResolverFnQueryListCurrentNetworkInverseFeesDataResolverFnAppSyncFunctionBF7BD210", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listCurrentNetworkInverseFees\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentNetworkInverseFeeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateCurrentNetworkInverseFeeDataResolverFnMutationCreateCurrentNetworkInverseFeeDataResolverFnAppSyncFunction0D5E9B36": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeDataSource", + "Name" + ] + }, + "Name": "MutationCreateCurrentNetworkInverseFeeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createCurrentNetworkInverseFee.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createCurrentNetworkInverseFee.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentNetworkInverseFeeDataSource" + ] + }, + "CreateCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createCurrentNetworkInverseFee", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateCurrentNetworkInverseFeeDataResolverFnMutationCreateCurrentNetworkInverseFeeDataResolverFnAppSyncFunction0D5E9B36", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createCurrentNetworkInverseFee\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentNetworkInverseFeeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateCurrentNetworkInverseFeeDataResolverFnMutationUpdateCurrentNetworkInverseFeeDataResolverFnAppSyncFunctionB3450464": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeDataSource", + "Name" + ] + }, + "Name": "MutationUpdateCurrentNetworkInverseFeeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateCurrentNetworkInverseFee.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateCurrentNetworkInverseFee.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentNetworkInverseFeeDataSource" + ] + }, + "UpdateCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateCurrentNetworkInverseFee", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateCurrentNetworkInverseFeeDataResolverFnMutationUpdateCurrentNetworkInverseFeeDataResolverFnAppSyncFunctionB3450464", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateCurrentNetworkInverseFee\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentNetworkInverseFeeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteCurrentNetworkInverseFeeDataResolverFnMutationDeleteCurrentNetworkInverseFeeDataResolverFnAppSyncFunction7382AFB9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeDataSource", + "Name" + ] + }, + "Name": "MutationDeleteCurrentNetworkInverseFeeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteCurrentNetworkInverseFee.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteCurrentNetworkInverseFee.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentNetworkInverseFeeDataSource" + ] + }, + "DeleteCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteCurrentNetworkInverseFee", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteCurrentNetworkInverseFeeDataResolverFnMutationDeleteCurrentNetworkInverseFeeDataResolverFnAppSyncFunction7382AFB9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteCurrentNetworkInverseFee\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentNetworkInverseFeeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateCurrentNetworkInverseFee", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateCurrentNetworkInverseFee\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateCurrentNetworkInverseFee", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateCurrentNetworkInverseFee\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteCurrentNetworkInverseFeeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteCurrentNetworkInverseFee", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteCurrentNetworkInverseFee\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttCurrentNetworkInverseFeeTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CurrentNetworkInverseFeeTable:StreamArn" + ] + ] + } + } + }, + "GetAttCurrentNetworkInverseFeeTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "CurrentNetworkInverseFeeTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CurrentNetworkInverseFeeTable:Name" + ] + ] + } + } + }, + "GetAttCurrentNetworkInverseFeeDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "CurrentNetworkInverseFeeDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CurrentNetworkInverseFeeDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/CurrentVersion.json b/amplify/backend/api/colonycdapp/build/stacks/CurrentVersion.json new file mode 100644 index 00000000000..09dc21f25be --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/CurrentVersion.json @@ -0,0 +1,1135 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "CurrentVersionTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "key", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byKey", + "KeySchema": [ + { + "AttributeName": "key", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "CurrentVersion-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "CurrentVersionIAMRoleF833B647": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "CurrentVersionIAMRolabc9ee-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "CurrentVersionIAMRoleDefaultPolicy4827D6ED": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "CurrentVersionTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "CurrentVersionTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CurrentVersionIAMRoleDefaultPolicy4827D6ED", + "Roles": [ + { + "Ref": "CurrentVersionIAMRoleF833B647" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "CurrentVersion-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "CurrentVersion-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "CurrentVersionIAMRoleF833B647" + } + ] + } + }, + "CurrentVersionDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "CurrentVersionTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "CurrentVersionTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CurrentVersionIAMRoleF833B647", + "Arn" + ] + } + }, + "DependsOn": [ + "CurrentVersionIAMRoleF833B647" + ] + }, + "QueryGetCurrentVersionDataResolverFnQueryGetCurrentVersionDataResolverFnAppSyncFunctionD34E1183": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentVersionDataSource", + "Name" + ] + }, + "Name": "QueryGetCurrentVersionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getCurrentVersion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getCurrentVersion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentVersionDataSource" + ] + }, + "GetCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getCurrentVersion", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetCurrentVersionDataResolverFnQueryGetCurrentVersionDataResolverFnAppSyncFunctionD34E1183", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getCurrentVersion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentVersionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListCurrentVersionsDataResolverFnQueryListCurrentVersionsDataResolverFnAppSyncFunction382C27EC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentVersionDataSource", + "Name" + ] + }, + "Name": "QueryListCurrentVersionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listCurrentVersions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listCurrentVersions.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentVersionDataSource" + ] + }, + "ListCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listCurrentVersions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListCurrentVersionsDataResolverFnQueryListCurrentVersionsDataResolverFnAppSyncFunction382C27EC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listCurrentVersions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentVersionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateCurrentVersionDataResolverFnMutationCreateCurrentVersionDataResolverFnAppSyncFunction92DA1805": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentVersionDataSource", + "Name" + ] + }, + "Name": "MutationCreateCurrentVersionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createCurrentVersion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createCurrentVersion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentVersionDataSource" + ] + }, + "CreateCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createCurrentVersion", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateCurrentVersionDataResolverFnMutationCreateCurrentVersionDataResolverFnAppSyncFunction92DA1805", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createCurrentVersion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentVersionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateCurrentVersionDataResolverFnMutationUpdateCurrentVersionDataResolverFnAppSyncFunction56218786": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentVersionDataSource", + "Name" + ] + }, + "Name": "MutationUpdateCurrentVersionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateCurrentVersion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateCurrentVersion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentVersionDataSource" + ] + }, + "UpdateCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateCurrentVersion", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateCurrentVersionDataResolverFnMutationUpdateCurrentVersionDataResolverFnAppSyncFunction56218786", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateCurrentVersion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentVersionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteCurrentVersionDataResolverFnMutationDeleteCurrentVersionDataResolverFnAppSyncFunctionE4EAE2E0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentVersionDataSource", + "Name" + ] + }, + "Name": "MutationDeleteCurrentVersionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteCurrentVersion.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteCurrentVersion.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentVersionDataSource" + ] + }, + "DeleteCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteCurrentVersion", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteCurrentVersionDataResolverFnMutationDeleteCurrentVersionDataResolverFnAppSyncFunctionE4EAE2E0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteCurrentVersion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentVersionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateCurrentVersion", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateCurrentVersion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateCurrentVersion", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateCurrentVersion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteCurrentVersionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteCurrentVersion", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteCurrentVersion\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetCurrentVersionByKeyDataResolverFnQueryGetCurrentVersionByKeyDataResolverFnAppSyncFunction98CE630A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CurrentVersionDataSource", + "Name" + ] + }, + "Name": "QueryGetCurrentVersionByKeyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getCurrentVersionByKey.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getCurrentVersionByKey.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CurrentVersionDataSource" + ] + }, + "QuerygetCurrentVersionByKeyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getCurrentVersionByKey", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetCurrentVersionByKeyDataResolverFnQueryGetCurrentVersionByKeyDataResolverFnAppSyncFunction98CE630A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getCurrentVersionByKey\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CurrentVersionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttCurrentVersionTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "CurrentVersionTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CurrentVersionTable:StreamArn" + ] + ] + } + } + }, + "GetAttCurrentVersionTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "CurrentVersionTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CurrentVersionTable:Name" + ] + ] + } + } + }, + "GetAttCurrentVersionDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "CurrentVersionDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CurrentVersionDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/CustomResources.json b/amplify/backend/api/colonycdapp/build/stacks/CustomResources.json new file mode 100644 index 00000000000..016991278d0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/CustomResources.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/Domain.json b/amplify/backend/api/colonycdapp/build/stacks/Domain.json new file mode 100644 index 00000000000..9c8e12704b4 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/Domain.json @@ -0,0 +1,1064 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "DomainTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "colonyId", + "AttributeType": "S" + }, + { + "AttributeName": "nativeId", + "AttributeType": "N" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byColony", + "KeySchema": [ + { + "AttributeName": "colonyId", + "KeyType": "HASH" + }, + { + "AttributeName": "nativeId", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Domain-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "DomainIAMRole8C11F794": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "DomainIAMRole25716d-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "DomainIAMRoleDefaultPolicyA49EA544": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DomainTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DomainTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DomainIAMRoleDefaultPolicyA49EA544", + "Roles": [ + { + "Ref": "DomainIAMRole8C11F794" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Domain-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Domain-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "DomainIAMRole8C11F794" + } + ] + } + }, + "DomainDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "DomainTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "DomainTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "DomainIAMRole8C11F794", + "Arn" + ] + } + }, + "DependsOn": [ + "DomainIAMRole8C11F794" + ] + }, + "QueryGetDomainDataResolverFnQueryGetDomainDataResolverFnAppSyncFunction3024BDBB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainDataSource", + "Name" + ] + }, + "Name": "QueryGetDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getDomain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getDomain.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainDataSource" + ] + }, + "GetDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getDomain", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetDomainDataResolverFnQueryGetDomainDataResolverFnAppSyncFunction3024BDBB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListDomainsDataResolverFnQueryListDomainsDataResolverFnAppSyncFunction992837F0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainDataSource", + "Name" + ] + }, + "Name": "QueryListDomainsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listDomains.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listDomains.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainDataSource" + ] + }, + "ListDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listDomains", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListDomainsDataResolverFnQueryListDomainsDataResolverFnAppSyncFunction992837F0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listDomains\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateDomainDataResolverFnMutationCreateDomainDataResolverFnAppSyncFunctionA83F991D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainDataSource", + "Name" + ] + }, + "Name": "MutationCreateDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createDomain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createDomain.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainDataSource" + ] + }, + "CreateDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createDomain", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateDomainDataResolverFnMutationCreateDomainDataResolverFnAppSyncFunctionA83F991D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateDomainDataResolverFnMutationUpdateDomainDataResolverFnAppSyncFunctionE58FE8B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainDataSource", + "Name" + ] + }, + "Name": "MutationUpdateDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateDomain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateDomain.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainDataSource" + ] + }, + "UpdateDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateDomain", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateDomainDataResolverFnMutationUpdateDomainDataResolverFnAppSyncFunctionE58FE8B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteDomainDataResolverFnMutationDeleteDomainDataResolverFnAppSyncFunctionA364A1D8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainDataSource", + "Name" + ] + }, + "Name": "MutationDeleteDomainDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteDomain.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteDomain.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainDataSource" + ] + }, + "DeleteDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteDomain", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteDomainDataResolverFnMutationDeleteDomainDataResolverFnAppSyncFunctionA364A1D8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateDomain", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateDomain", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteDomainResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteDomain", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteDomain\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttDomainTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "DomainTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:DomainTable:StreamArn" + ] + ] + } + } + }, + "GetAttDomainTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "DomainTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:DomainTable:Name" + ] + ] + } + } + }, + "GetAttDomainDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "DomainDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:DomainDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackDomainDomainDataSourceBDC66ED3Name": { + "Value": { + "Fn::GetAtt": [ + "DomainDataSource", + "Name" + ] + } + }, + "transformerrootstackDomainDomainTable87F7344FRef": { + "Value": { + "Ref": "DomainTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/DomainMetadata.json b/amplify/backend/api/colonycdapp/build/stacks/DomainMetadata.json new file mode 100644 index 00000000000..33a7cf16b34 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/DomainMetadata.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "DomainMetadataTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "DomainMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "DomainMetadataIAMRoleB8B965D5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "DomainMetadataIAMRolb4f512-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "DomainMetadataIAMRoleDefaultPolicy3DDE68D8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DomainMetadataTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DomainMetadataIAMRoleDefaultPolicy3DDE68D8", + "Roles": [ + { + "Ref": "DomainMetadataIAMRoleB8B965D5" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "DomainMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "DomainMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "DomainMetadataIAMRoleB8B965D5" + } + ] + } + }, + "DomainMetadataDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "DomainMetadataTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "DomainMetadataTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "DomainMetadataIAMRoleB8B965D5", + "Arn" + ] + } + }, + "DependsOn": [ + "DomainMetadataIAMRoleB8B965D5" + ] + }, + "QueryGetDomainMetadataDataResolverFnQueryGetDomainMetadataDataResolverFnAppSyncFunction847D7163": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainMetadataDataSource", + "Name" + ] + }, + "Name": "QueryGetDomainMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getDomainMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getDomainMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainMetadataDataSource" + ] + }, + "GetDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getDomainMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetDomainMetadataDataResolverFnQueryGetDomainMetadataDataResolverFnAppSyncFunction847D7163", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListDomainMetadataDataResolverFnQueryListDomainMetadataDataResolverFnAppSyncFunction17C8A2F1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainMetadataDataSource", + "Name" + ] + }, + "Name": "QueryListDomainMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listDomainMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listDomainMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainMetadataDataSource" + ] + }, + "ListDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listDomainMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListDomainMetadataDataResolverFnQueryListDomainMetadataDataResolverFnAppSyncFunction17C8A2F1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateDomainMetadataDataResolverFnMutationCreateDomainMetadataDataResolverFnAppSyncFunction25D24CE1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainMetadataDataSource", + "Name" + ] + }, + "Name": "MutationCreateDomainMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createDomainMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createDomainMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainMetadataDataSource" + ] + }, + "CreateDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createDomainMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateDomainMetadataDataResolverFnMutationCreateDomainMetadataDataResolverFnAppSyncFunction25D24CE1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateDomainMetadataDataResolverFnMutationUpdateDomainMetadataDataResolverFnAppSyncFunction60D84B39": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainMetadataDataSource", + "Name" + ] + }, + "Name": "MutationUpdateDomainMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateDomainMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateDomainMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainMetadataDataSource" + ] + }, + "UpdateDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateDomainMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateDomainMetadataDataResolverFnMutationUpdateDomainMetadataDataResolverFnAppSyncFunction60D84B39", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteDomainMetadataDataResolverFnMutationDeleteDomainMetadataDataResolverFnAppSyncFunction2249EDEB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "DomainMetadataDataSource", + "Name" + ] + }, + "Name": "MutationDeleteDomainMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteDomainMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteDomainMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "DomainMetadataDataSource" + ] + }, + "DeleteDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteDomainMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteDomainMetadataDataResolverFnMutationDeleteDomainMetadataDataResolverFnAppSyncFunction2249EDEB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "DomainMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateDomainMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateDomainMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteDomainMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteDomainMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteDomainMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttDomainMetadataTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "DomainMetadataTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:DomainMetadataTable:StreamArn" + ] + ] + } + } + }, + "GetAttDomainMetadataTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "DomainMetadataTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:DomainMetadataTable:Name" + ] + ] + } + } + }, + "GetAttDomainMetadataDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "DomainMetadataDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:DomainMetadataDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackDomainMetadataDomainMetadataDataSource5D65ABB5Name": { + "Value": { + "Fn::GetAtt": [ + "DomainMetadataDataSource", + "Name" + ] + } + }, + "transformerrootstackDomainMetadataDomainMetadataTableAC0A7779Ref": { + "Value": { + "Ref": "DomainMetadataTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/Expenditure.json b/amplify/backend/api/colonycdapp/build/stacks/Expenditure.json new file mode 100644 index 00000000000..56d9df80448 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/Expenditure.json @@ -0,0 +1,1284 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ExpenditureTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "colonyId", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + }, + { + "AttributeName": "nativeFundingPotId", + "AttributeType": "N" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byColony", + "KeySchema": [ + { + "AttributeName": "colonyId", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byNativeFundingPotId", + "KeySchema": [ + { + "AttributeName": "nativeFundingPotId", + "KeyType": "HASH" + }, + { + "AttributeName": "colonyId", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Expenditure-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ExpenditureIAMRole377EC1F2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ExpenditureIAMRole4ef2b7-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ExpenditureIAMRoleDefaultPolicy60F10543": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ExpenditureTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ExpenditureTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ExpenditureIAMRoleDefaultPolicy60F10543", + "Roles": [ + { + "Ref": "ExpenditureIAMRole377EC1F2" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Expenditure-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Expenditure-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ExpenditureIAMRole377EC1F2" + } + ] + } + }, + "ExpenditureDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ExpenditureTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ExpenditureTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ExpenditureIAMRole377EC1F2", + "Arn" + ] + } + }, + "DependsOn": [ + "ExpenditureIAMRole377EC1F2" + ] + }, + "QueryGetExpenditureDataResolverFnQueryGetExpenditureDataResolverFnAppSyncFunctionAB6CC0E1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Name": "QueryGetExpenditureDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpenditure.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpenditure.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureDataSource" + ] + }, + "GetExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExpenditure", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExpenditureDataResolverFnQueryGetExpenditureDataResolverFnAppSyncFunctionAB6CC0E1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExpenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListExpendituresDataResolverFnQueryListExpendituresDataResolverFnAppSyncFunction8222C436": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Name": "QueryListExpendituresDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExpenditures.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExpenditures.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureDataSource" + ] + }, + "ListExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listExpenditures", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListExpendituresDataResolverFnQueryListExpendituresDataResolverFnAppSyncFunction8222C436", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExpenditures\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateExpenditureDataResolverFnMutationCreateExpenditureDataResolverFnAppSyncFunction521B3893": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Name": "MutationCreateExpenditureDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExpenditure.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExpenditure.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureDataSource" + ] + }, + "CreateExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createExpenditure", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateExpenditureDataResolverFnMutationCreateExpenditureDataResolverFnAppSyncFunction521B3893", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExpenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateExpenditureDataResolverFnMutationUpdateExpenditureDataResolverFnAppSyncFunctionA4EB557A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Name": "MutationUpdateExpenditureDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExpenditure.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExpenditure.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureDataSource" + ] + }, + "UpdateExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateExpenditure", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateExpenditureDataResolverFnMutationUpdateExpenditureDataResolverFnAppSyncFunctionA4EB557A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExpenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteExpenditureDataResolverFnMutationDeleteExpenditureDataResolverFnAppSyncFunctionD068CDCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Name": "MutationDeleteExpenditureDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExpenditure.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExpenditure.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureDataSource" + ] + }, + "DeleteExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteExpenditure", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteExpenditureDataResolverFnMutationDeleteExpenditureDataResolverFnAppSyncFunctionD068CDCE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExpenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateExpenditure", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExpenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateExpenditure", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExpenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteExpenditureResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteExpenditure", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExpenditure\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetExpendituresByColonyDataResolverFnQueryGetExpendituresByColonyDataResolverFnAppSyncFunction00684623": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Name": "QueryGetExpendituresByColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpendituresByColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpendituresByColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureDataSource" + ] + }, + "QuerygetExpendituresByColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExpendituresByColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExpendituresByColonyDataResolverFnQueryGetExpendituresByColonyDataResolverFnAppSyncFunction00684623", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExpendituresByColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetExpendituresByNativeFundingPotIdAndColonyDataResolverFnQueryGetExpendituresByNativeFundingPotIdAndColonyDataResolverFnAppSyncFunction92D8AFC2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Name": "QueryGetExpendituresByNativeFundingPotIdAndColonyDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpendituresByNativeFundingPotIdAndColony.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureDataSource" + ] + }, + "QuerygetExpendituresByNativeFundingPotIdAndColonyResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExpendituresByNativeFundingPotIdAndColony", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExpendituresByNativeFundingPotIdAndColonyDataResolverFnQueryGetExpendituresByNativeFundingPotIdAndColonyDataResolverFnAppSyncFunction92D8AFC2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExpendituresByNativeFundingPotIdAndColony\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttExpenditureTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ExpenditureTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExpenditureTable:StreamArn" + ] + ] + } + } + }, + "GetAttExpenditureTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ExpenditureTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExpenditureTable:Name" + ] + ] + } + } + }, + "GetAttExpenditureDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExpenditureDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackExpenditureExpenditureDataSource89CAFD0FName": { + "Value": { + "Fn::GetAtt": [ + "ExpenditureDataSource", + "Name" + ] + } + }, + "transformerrootstackExpenditureExpenditureTableF561020ARef": { + "Value": { + "Ref": "ExpenditureTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ExpenditureMetadata.json b/amplify/backend/api/colonycdapp/build/stacks/ExpenditureMetadata.json new file mode 100644 index 00000000000..fff9320bb58 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ExpenditureMetadata.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ExpenditureMetadataTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ExpenditureMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ExpenditureMetadataIAMRole3133482E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ExpenditureMetadataI1ef347-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ExpenditureMetadataIAMRoleDefaultPolicy7A9ECE6D": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ExpenditureMetadataTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ExpenditureMetadataIAMRoleDefaultPolicy7A9ECE6D", + "Roles": [ + { + "Ref": "ExpenditureMetadataIAMRole3133482E" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ExpenditureMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ExpenditureMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ExpenditureMetadataIAMRole3133482E" + } + ] + } + }, + "ExpenditureMetadataDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ExpenditureMetadataTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ExpenditureMetadataTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ExpenditureMetadataIAMRole3133482E", + "Arn" + ] + } + }, + "DependsOn": [ + "ExpenditureMetadataIAMRole3133482E" + ] + }, + "QueryGetExpenditureMetadataDataResolverFnQueryGetExpenditureMetadataDataResolverFnAppSyncFunction6FA3FEAB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureMetadataDataSource", + "Name" + ] + }, + "Name": "QueryGetExpenditureMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpenditureMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExpenditureMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureMetadataDataSource" + ] + }, + "GetExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExpenditureMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExpenditureMetadataDataResolverFnQueryGetExpenditureMetadataDataResolverFnAppSyncFunction6FA3FEAB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListExpenditureMetadataDataResolverFnQueryListExpenditureMetadataDataResolverFnAppSyncFunction3DB4ADE0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureMetadataDataSource", + "Name" + ] + }, + "Name": "QueryListExpenditureMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExpenditureMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExpenditureMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureMetadataDataSource" + ] + }, + "ListExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listExpenditureMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListExpenditureMetadataDataResolverFnQueryListExpenditureMetadataDataResolverFnAppSyncFunction3DB4ADE0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateExpenditureMetadataDataResolverFnMutationCreateExpenditureMetadataDataResolverFnAppSyncFunctionD276BB2B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureMetadataDataSource", + "Name" + ] + }, + "Name": "MutationCreateExpenditureMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExpenditureMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExpenditureMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureMetadataDataSource" + ] + }, + "CreateExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createExpenditureMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateExpenditureMetadataDataResolverFnMutationCreateExpenditureMetadataDataResolverFnAppSyncFunctionD276BB2B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateExpenditureMetadataDataResolverFnMutationUpdateExpenditureMetadataDataResolverFnAppSyncFunctionE6531AE5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureMetadataDataSource", + "Name" + ] + }, + "Name": "MutationUpdateExpenditureMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExpenditureMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExpenditureMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureMetadataDataSource" + ] + }, + "UpdateExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateExpenditureMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateExpenditureMetadataDataResolverFnMutationUpdateExpenditureMetadataDataResolverFnAppSyncFunctionE6531AE5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteExpenditureMetadataDataResolverFnMutationDeleteExpenditureMetadataDataResolverFnAppSyncFunction1C0630E3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExpenditureMetadataDataSource", + "Name" + ] + }, + "Name": "MutationDeleteExpenditureMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExpenditureMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExpenditureMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExpenditureMetadataDataSource" + ] + }, + "DeleteExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteExpenditureMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteExpenditureMetadataDataResolverFnMutationDeleteExpenditureMetadataDataResolverFnAppSyncFunction1C0630E3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExpenditureMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateExpenditureMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateExpenditureMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteExpenditureMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteExpenditureMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExpenditureMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttExpenditureMetadataTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ExpenditureMetadataTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExpenditureMetadataTable:StreamArn" + ] + ] + } + } + }, + "GetAttExpenditureMetadataTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ExpenditureMetadataTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExpenditureMetadataTable:Name" + ] + ] + } + } + }, + "GetAttExpenditureMetadataDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ExpenditureMetadataDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExpenditureMetadataDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackExpenditureMetadataExpenditureMetadataDataSourceA5D5932DName": { + "Value": { + "Fn::GetAtt": [ + "ExpenditureMetadataDataSource", + "Name" + ] + } + }, + "transformerrootstackExpenditureMetadataExpenditureMetadataTable5E9A8B28Ref": { + "Value": { + "Ref": "ExpenditureMetadataTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ExtensionInstallationsCount.json b/amplify/backend/api/colonycdapp/build/stacks/ExtensionInstallationsCount.json new file mode 100644 index 00000000000..3a48ab24109 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ExtensionInstallationsCount.json @@ -0,0 +1,998 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ExtensionInstallationsCountTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ExtensionInstallationsCount-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ExtensionInstallationsCountIAMRoleB7E21395": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ExtensionInstallatio6cc1b4-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ExtensionInstallationsCountIAMRoleDefaultPolicyE9AF9586": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ExtensionInstallationsCountTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ExtensionInstallationsCountIAMRoleDefaultPolicyE9AF9586", + "Roles": [ + { + "Ref": "ExtensionInstallationsCountIAMRoleB7E21395" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ExtensionInstallationsCount-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ExtensionInstallationsCount-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ExtensionInstallationsCountIAMRoleB7E21395" + } + ] + } + }, + "ExtensionInstallationsCountDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ExtensionInstallationsCountTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ExtensionInstallationsCountTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountIAMRoleB7E21395", + "Arn" + ] + } + }, + "DependsOn": [ + "ExtensionInstallationsCountIAMRoleB7E21395" + ] + }, + "QueryGetExtensionInstallationsCountDataResolverFnQueryGetExtensionInstallationsCountDataResolverFnAppSyncFunction3FA707C7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountDataSource", + "Name" + ] + }, + "Name": "QueryGetExtensionInstallationsCountDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExtensionInstallationsCount.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExtensionInstallationsCount.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExtensionInstallationsCountDataSource" + ] + }, + "GetExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExtensionInstallationsCount", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExtensionInstallationsCountDataResolverFnQueryGetExtensionInstallationsCountDataResolverFnAppSyncFunction3FA707C7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExtensionInstallationsCount\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExtensionInstallationsCountTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListExtensionInstallationsCountsDataResolverFnQueryListExtensionInstallationsCountsDataResolverFnAppSyncFunction0BDBBFD9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountDataSource", + "Name" + ] + }, + "Name": "QueryListExtensionInstallationsCountsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExtensionInstallationsCounts.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExtensionInstallationsCounts.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExtensionInstallationsCountDataSource" + ] + }, + "ListExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listExtensionInstallationsCounts", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListExtensionInstallationsCountsDataResolverFnQueryListExtensionInstallationsCountsDataResolverFnAppSyncFunction0BDBBFD9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExtensionInstallationsCounts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExtensionInstallationsCountTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateExtensionInstallationsCountDataResolverFnMutationCreateExtensionInstallationsCountDataResolverFnAppSyncFunction50A9493C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountDataSource", + "Name" + ] + }, + "Name": "MutationCreateExtensionInstallationsCountDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExtensionInstallationsCount.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExtensionInstallationsCount.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExtensionInstallationsCountDataSource" + ] + }, + "CreateExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createExtensionInstallationsCount", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateExtensionInstallationsCountDataResolverFnMutationCreateExtensionInstallationsCountDataResolverFnAppSyncFunction50A9493C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExtensionInstallationsCount\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExtensionInstallationsCountTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateExtensionInstallationsCountDataResolverFnMutationUpdateExtensionInstallationsCountDataResolverFnAppSyncFunction227A348F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountDataSource", + "Name" + ] + }, + "Name": "MutationUpdateExtensionInstallationsCountDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExtensionInstallationsCount.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExtensionInstallationsCount.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExtensionInstallationsCountDataSource" + ] + }, + "UpdateExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateExtensionInstallationsCount", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateExtensionInstallationsCountDataResolverFnMutationUpdateExtensionInstallationsCountDataResolverFnAppSyncFunction227A348F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExtensionInstallationsCount\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExtensionInstallationsCountTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteExtensionInstallationsCountDataResolverFnMutationDeleteExtensionInstallationsCountDataResolverFnAppSyncFunctionCD167577": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountDataSource", + "Name" + ] + }, + "Name": "MutationDeleteExtensionInstallationsCountDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExtensionInstallationsCount.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExtensionInstallationsCount.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExtensionInstallationsCountDataSource" + ] + }, + "DeleteExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteExtensionInstallationsCount", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteExtensionInstallationsCountDataResolverFnMutationDeleteExtensionInstallationsCountDataResolverFnAppSyncFunctionCD167577", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExtensionInstallationsCount\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExtensionInstallationsCountTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateExtensionInstallationsCount", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExtensionInstallationsCount\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateExtensionInstallationsCount", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExtensionInstallationsCount\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteExtensionInstallationsCountResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteExtensionInstallationsCount", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExtensionInstallationsCount\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttExtensionInstallationsCountTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExtensionInstallationsCountTable:StreamArn" + ] + ] + } + } + }, + "GetAttExtensionInstallationsCountTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ExtensionInstallationsCountTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExtensionInstallationsCountTable:Name" + ] + ] + } + } + }, + "GetAttExtensionInstallationsCountDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ExtensionInstallationsCountDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExtensionInstallationsCountDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/FunctionDirectiveStack.json b/amplify/backend/api/colonycdapp/build/stacks/FunctionDirectiveStack.json new file mode 100644 index 00000000000..5e917c6b621 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/FunctionDirectiveStack.json @@ -0,0 +1,3154 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "FetchTokenFromChainLambdaDataSourceServiceRoleD3B7A5DE": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "FetchTokenFromChainLambdaDataSourceServiceRoleDefaultPolicy7042109B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchTokenFromChain-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchTokenFromChain" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchTokenFromChain-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchTokenFromChain" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchTokenFromChainLambdaDataSourceServiceRoleDefaultPolicy7042109B", + "Roles": [ + { + "Ref": "FetchTokenFromChainLambdaDataSourceServiceRoleD3B7A5DE" + } + ] + } + }, + "FetchTokenFromChainLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "FetchTokenFromChainLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchTokenFromChain-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchTokenFromChain" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchTokenFromChainLambdaDataSourceServiceRoleD3B7A5DE", + "Arn" + ] + } + } + }, + "InvokeFetchTokenFromChainLambdaDataSourceInvokeFetchTokenFromChainLambdaDataSourceAppSyncFunction137F26CD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchTokenFromChainLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeFetchTokenFromChainLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchTokenFromChainLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchTokenFromChainLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "FetchTokenFromChainLambdaDataSource" + ] + }, + "QuerygetTokenFromEverywhereResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTokenFromEverywhere", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeFetchTokenFromChainLambdaDataSourceInvokeFetchTokenFromChainLambdaDataSourceAppSyncFunction137F26CD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTokenFromEverywhere\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTokenFromEverywhere.res.vtl" + ] + ] + } + } + }, + "GetUserReputationLambdaDataSourceServiceRole201C80CD": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "GetUserReputationLambdaDataSourceServiceRoleDefaultPolicyE999F60F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserReputation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserReputation" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserReputation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserReputation" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "GetUserReputationLambdaDataSourceServiceRoleDefaultPolicyE999F60F", + "Roles": [ + { + "Ref": "GetUserReputationLambdaDataSourceServiceRole201C80CD" + } + ] + } + }, + "GetUserReputationLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "GetUserReputationLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserReputation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserReputation" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "GetUserReputationLambdaDataSourceServiceRole201C80CD", + "Arn" + ] + } + } + }, + "InvokeGetUserReputationLambdaDataSourceInvokeGetUserReputationLambdaDataSourceAppSyncFunction2A89908F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GetUserReputationLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeGetUserReputationLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeGetUserReputationLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeGetUserReputationLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GetUserReputationLambdaDataSource" + ] + }, + "QuerygetUserReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserReputation", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeGetUserReputationLambdaDataSourceInvokeGetUserReputationLambdaDataSourceAppSyncFunction2A89908F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserReputation\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserReputation.res.vtl" + ] + ] + } + } + }, + "GetUserTokenBalanceLambdaDataSourceServiceRole7B959395": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "GetUserTokenBalanceLambdaDataSourceServiceRoleDefaultPolicy04ABDFCD": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserTokenBalance-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserTokenBalance" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserTokenBalance-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserTokenBalance" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "GetUserTokenBalanceLambdaDataSourceServiceRoleDefaultPolicy04ABDFCD", + "Roles": [ + { + "Ref": "GetUserTokenBalanceLambdaDataSourceServiceRole7B959395" + } + ] + } + }, + "GetUserTokenBalanceLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "GetUserTokenBalanceLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserTokenBalance-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getUserTokenBalance" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "GetUserTokenBalanceLambdaDataSourceServiceRole7B959395", + "Arn" + ] + } + } + }, + "InvokeGetUserTokenBalanceLambdaDataSourceInvokeGetUserTokenBalanceLambdaDataSourceAppSyncFunctionBBBC52E8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GetUserTokenBalanceLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeGetUserTokenBalanceLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeGetUserTokenBalanceLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GetUserTokenBalanceLambdaDataSource" + ] + }, + "QuerygetUserTokenBalanceResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserTokenBalance", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeGetUserTokenBalanceLambdaDataSourceInvokeGetUserTokenBalanceLambdaDataSourceAppSyncFunctionBBBC52E8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserTokenBalance\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserTokenBalance.res.vtl" + ] + ] + } + } + }, + "FetchMotionStateLambdaDataSourceServiceRoleECA6F124": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "FetchMotionStateLambdaDataSourceServiceRoleDefaultPolicyF41E0612": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionState-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionState" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionState-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionState" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchMotionStateLambdaDataSourceServiceRoleDefaultPolicyF41E0612", + "Roles": [ + { + "Ref": "FetchMotionStateLambdaDataSourceServiceRoleECA6F124" + } + ] + } + }, + "FetchMotionStateLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "FetchMotionStateLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionState-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionState" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchMotionStateLambdaDataSourceServiceRoleECA6F124", + "Arn" + ] + } + } + }, + "InvokeFetchMotionStateLambdaDataSourceInvokeFetchMotionStateLambdaDataSourceAppSyncFunction17918D5D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchMotionStateLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeFetchMotionStateLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchMotionStateLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchMotionStateLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "FetchMotionStateLambdaDataSource" + ] + }, + "QuerygetMotionStateResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMotionState", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeFetchMotionStateLambdaDataSourceInvokeFetchMotionStateLambdaDataSourceAppSyncFunction17918D5D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMotionState\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionState.res.vtl" + ] + ] + } + } + }, + "FetchVoterRewardsLambdaDataSourceServiceRole833B3370": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "FetchVoterRewardsLambdaDataSourceServiceRoleDefaultPolicy193C4F37": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchVoterRewards-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchVoterRewards" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchVoterRewards-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchVoterRewards" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchVoterRewardsLambdaDataSourceServiceRoleDefaultPolicy193C4F37", + "Roles": [ + { + "Ref": "FetchVoterRewardsLambdaDataSourceServiceRole833B3370" + } + ] + } + }, + "FetchVoterRewardsLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "FetchVoterRewardsLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchVoterRewards-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchVoterRewards" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchVoterRewardsLambdaDataSourceServiceRole833B3370", + "Arn" + ] + } + } + }, + "InvokeFetchVoterRewardsLambdaDataSourceInvokeFetchVoterRewardsLambdaDataSourceAppSyncFunction6B850191": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchVoterRewardsLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeFetchVoterRewardsLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchVoterRewardsLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchVoterRewardsLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "FetchVoterRewardsLambdaDataSource" + ] + }, + "QuerygetVoterRewardsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getVoterRewards", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeFetchVoterRewardsLambdaDataSourceInvokeFetchVoterRewardsLambdaDataSourceAppSyncFunction6B850191", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getVoterRewards\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getVoterRewards.res.vtl" + ] + ] + } + } + }, + "FetchMotionTimeoutPeriodsLambdaDataSourceServiceRole16EA1B77": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "FetchMotionTimeoutPeriodsLambdaDataSourceServiceRoleDefaultPolicyD713B01D": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionTimeoutPeriods-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionTimeoutPeriods" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionTimeoutPeriods-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionTimeoutPeriods" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchMotionTimeoutPeriodsLambdaDataSourceServiceRoleDefaultPolicyD713B01D", + "Roles": [ + { + "Ref": "FetchMotionTimeoutPeriodsLambdaDataSourceServiceRole16EA1B77" + } + ] + } + }, + "FetchMotionTimeoutPeriodsLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "FetchMotionTimeoutPeriodsLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionTimeoutPeriods-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchMotionTimeoutPeriods" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchMotionTimeoutPeriodsLambdaDataSourceServiceRole16EA1B77", + "Arn" + ] + } + } + }, + "InvokeFetchMotionTimeoutPeriodsLambdaDataSourceInvokeFetchMotionTimeoutPeriodsLambdaDataSourceAppSyncFunction1EC70AD3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchMotionTimeoutPeriodsLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeFetchMotionTimeoutPeriodsLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchMotionTimeoutPeriodsLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "FetchMotionTimeoutPeriodsLambdaDataSource" + ] + }, + "QuerygetMotionTimeoutPeriodsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMotionTimeoutPeriods", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeFetchMotionTimeoutPeriodsLambdaDataSourceInvokeFetchMotionTimeoutPeriodsLambdaDataSourceAppSyncFunction1EC70AD3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMotionTimeoutPeriods\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionTimeoutPeriods.res.vtl" + ] + ] + } + } + }, + "GetSafeTransactionStatusLambdaDataSourceServiceRoleA97AA0D8": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "GetSafeTransactionStatusLambdaDataSourceServiceRoleDefaultPolicyCB20F820": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getSafeTransactionStatus-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getSafeTransactionStatus" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getSafeTransactionStatus-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getSafeTransactionStatus" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "GetSafeTransactionStatusLambdaDataSourceServiceRoleDefaultPolicyCB20F820", + "Roles": [ + { + "Ref": "GetSafeTransactionStatusLambdaDataSourceServiceRoleA97AA0D8" + } + ] + } + }, + "GetSafeTransactionStatusLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "GetSafeTransactionStatusLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getSafeTransactionStatus-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:getSafeTransactionStatus" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "GetSafeTransactionStatusLambdaDataSourceServiceRoleA97AA0D8", + "Arn" + ] + } + } + }, + "InvokeGetSafeTransactionStatusLambdaDataSourceInvokeGetSafeTransactionStatusLambdaDataSourceAppSyncFunctionC1CECAB0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GetSafeTransactionStatusLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeGetSafeTransactionStatusLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeGetSafeTransactionStatusLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GetSafeTransactionStatusLambdaDataSource" + ] + }, + "QuerygetSafeTransactionStatusResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getSafeTransactionStatus", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeGetSafeTransactionStatusLambdaDataSourceInvokeGetSafeTransactionStatusLambdaDataSourceAppSyncFunctionC1CECAB0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getSafeTransactionStatus\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getSafeTransactionStatus.res.vtl" + ] + ] + } + } + }, + "BridgeXYZQueryLambdaDataSourceServiceRole4CF40617": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "BridgeXYZQueryLambdaDataSourceServiceRoleDefaultPolicy4850A8DF": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZQuery-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZQuery" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZQuery-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZQuery" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "BridgeXYZQueryLambdaDataSourceServiceRoleDefaultPolicy4850A8DF", + "Roles": [ + { + "Ref": "BridgeXYZQueryLambdaDataSourceServiceRole4CF40617" + } + ] + } + }, + "BridgeXYZQueryLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "BridgeXYZQueryLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZQuery-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZQuery" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "BridgeXYZQueryLambdaDataSourceServiceRole4CF40617", + "Arn" + ] + } + } + }, + "InvokeBridgeXYZQueryLambdaDataSourceInvokeBridgeXYZQueryLambdaDataSourceAppSyncFunction4824669A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BridgeXYZQueryLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeBridgeXYZQueryLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeBridgeXYZQueryLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeBridgeXYZQueryLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BridgeXYZQueryLambdaDataSource" + ] + }, + "QuerybridgeXYZQueryResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "bridgeXYZQuery", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeBridgeXYZQueryLambdaDataSourceInvokeBridgeXYZQueryLambdaDataSourceAppSyncFunction4824669A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"bridgeXYZQuery\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.bridgeXYZQuery.res.vtl" + ] + ] + } + } + }, + "CreateUniqueUserLambdaDataSourceServiceRole8F91EA02": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "CreateUniqueUserLambdaDataSourceServiceRoleDefaultPolicy9748026D": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createUniqueUser-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createUniqueUser" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createUniqueUser-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createUniqueUser" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUniqueUserLambdaDataSourceServiceRoleDefaultPolicy9748026D", + "Roles": [ + { + "Ref": "CreateUniqueUserLambdaDataSourceServiceRole8F91EA02" + } + ] + } + }, + "CreateUniqueUserLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "CreateUniqueUserLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createUniqueUser-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createUniqueUser" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CreateUniqueUserLambdaDataSourceServiceRole8F91EA02", + "Arn" + ] + } + } + }, + "InvokeCreateUniqueUserLambdaDataSourceInvokeCreateUniqueUserLambdaDataSourceAppSyncFunction78D3D508": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CreateUniqueUserLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeCreateUniqueUserLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeCreateUniqueUserLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeCreateUniqueUserLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CreateUniqueUserLambdaDataSource" + ] + }, + "MutationcreateUniqueUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createUniqueUser", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeCreateUniqueUserLambdaDataSourceInvokeCreateUniqueUserLambdaDataSourceAppSyncFunction78D3D508", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUniqueUser\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUniqueUser.res.vtl" + ] + ] + } + } + }, + "CreateColonyEtherealMetadataLambdaDataSourceServiceRole37C52B0A": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "CreateColonyEtherealMetadataLambdaDataSourceServiceRoleDefaultPolicy13C4D865": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createColonyEtherealMetadata-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createColonyEtherealMetadata" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createColonyEtherealMetadata-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createColonyEtherealMetadata" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateColonyEtherealMetadataLambdaDataSourceServiceRoleDefaultPolicy13C4D865", + "Roles": [ + { + "Ref": "CreateColonyEtherealMetadataLambdaDataSourceServiceRole37C52B0A" + } + ] + } + }, + "CreateColonyEtherealMetadataLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "CreateColonyEtherealMetadataLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createColonyEtherealMetadata-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:createColonyEtherealMetadata" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CreateColonyEtherealMetadataLambdaDataSourceServiceRole37C52B0A", + "Arn" + ] + } + } + }, + "InvokeCreateColonyEtherealMetadataLambdaDataSourceInvokeCreateColonyEtherealMetadataLambdaDataSourceAppSyncFunction04BE79B3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CreateColonyEtherealMetadataLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeCreateColonyEtherealMetadataLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeCreateColonyEtherealMetadataLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CreateColonyEtherealMetadataLambdaDataSource" + ] + }, + "MutationcreateColonyEtherealMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createColonyEtherealMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeCreateColonyEtherealMetadataLambdaDataSourceInvokeCreateColonyEtherealMetadataLambdaDataSourceAppSyncFunction04BE79B3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createColonyEtherealMetadata\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createColonyEtherealMetadata.res.vtl" + ] + ] + } + } + }, + "UpdateContributorsWithReputationLambdaDataSourceServiceRole20285842": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "UpdateContributorsWithReputationLambdaDataSourceServiceRoleDefaultPolicy4FA4BF71": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:updateContributorsWithReputation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:updateContributorsWithReputation" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:updateContributorsWithReputation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:updateContributorsWithReputation" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "UpdateContributorsWithReputationLambdaDataSourceServiceRoleDefaultPolicy4FA4BF71", + "Roles": [ + { + "Ref": "UpdateContributorsWithReputationLambdaDataSourceServiceRole20285842" + } + ] + } + }, + "UpdateContributorsWithReputationLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "UpdateContributorsWithReputationLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:updateContributorsWithReputation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:updateContributorsWithReputation" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "UpdateContributorsWithReputationLambdaDataSourceServiceRole20285842", + "Arn" + ] + } + } + }, + "InvokeUpdateContributorsWithReputationLambdaDataSourceInvokeUpdateContributorsWithReputationLambdaDataSourceAppSyncFunction80E6AE3F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UpdateContributorsWithReputationLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeUpdateContributorsWithReputationLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeUpdateContributorsWithReputationLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UpdateContributorsWithReputationLambdaDataSource" + ] + }, + "MutationupdateContributorsWithReputationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateContributorsWithReputation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeUpdateContributorsWithReputationLambdaDataSourceInvokeUpdateContributorsWithReputationLambdaDataSourceAppSyncFunction80E6AE3F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateContributorsWithReputation\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateContributorsWithReputation.res.vtl" + ] + ] + } + } + }, + "ValidateUserInviteLambdaDataSourceServiceRole66D5CD92": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "ValidateUserInviteLambdaDataSourceServiceRoleDefaultPolicyE4C0030C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:validateUserInvite-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:validateUserInvite" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:validateUserInvite-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:validateUserInvite" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ValidateUserInviteLambdaDataSourceServiceRoleDefaultPolicyE4C0030C", + "Roles": [ + { + "Ref": "ValidateUserInviteLambdaDataSourceServiceRole66D5CD92" + } + ] + } + }, + "ValidateUserInviteLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ValidateUserInviteLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:validateUserInvite-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:validateUserInvite" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ValidateUserInviteLambdaDataSourceServiceRole66D5CD92", + "Arn" + ] + } + } + }, + "InvokeValidateUserInviteLambdaDataSourceInvokeValidateUserInviteLambdaDataSourceAppSyncFunction1CBE92D2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ValidateUserInviteLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeValidateUserInviteLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeValidateUserInviteLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeValidateUserInviteLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ValidateUserInviteLambdaDataSource" + ] + }, + "MutationvalidateUserInviteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "validateUserInvite", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeValidateUserInviteLambdaDataSourceInvokeValidateUserInviteLambdaDataSourceAppSyncFunction1CBE92D2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"validateUserInvite\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.validateUserInvite.res.vtl" + ] + ] + } + } + }, + "BridgeXYZMutationLambdaDataSourceServiceRole6B3F4575": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "BridgeXYZMutationLambdaDataSourceServiceRoleDefaultPolicy4C1ECBAC": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZMutation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZMutation" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZMutation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZMutation" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "BridgeXYZMutationLambdaDataSourceServiceRoleDefaultPolicy4C1ECBAC", + "Roles": [ + { + "Ref": "BridgeXYZMutationLambdaDataSourceServiceRole6B3F4575" + } + ] + } + }, + "BridgeXYZMutationLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "BridgeXYZMutationLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZMutation-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:bridgeXYZMutation" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "BridgeXYZMutationLambdaDataSourceServiceRole6B3F4575", + "Arn" + ] + } + } + }, + "InvokeBridgeXYZMutationLambdaDataSourceInvokeBridgeXYZMutationLambdaDataSourceAppSyncFunctionD63F0DB3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BridgeXYZMutationLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeBridgeXYZMutationLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeBridgeXYZMutationLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeBridgeXYZMutationLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BridgeXYZMutationLambdaDataSource" + ] + }, + "MutationbridgeXYZMutationResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "bridgeXYZMutation", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeBridgeXYZMutationLambdaDataSourceInvokeBridgeXYZMutationLambdaDataSourceAppSyncFunctionD63F0DB3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"bridgeXYZMutation\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.bridgeXYZMutation.res.vtl" + ] + ] + } + } + }, + "FetchColonyNativeFundsClaimLambdaDataSourceServiceRole502D331E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "FetchColonyNativeFundsClaimLambdaDataSourceServiceRoleDefaultPolicyC0129855": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyNativeFundsClaim-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyNativeFundsClaim" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyNativeFundsClaim-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyNativeFundsClaim" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchColonyNativeFundsClaimLambdaDataSourceServiceRoleDefaultPolicyC0129855", + "Roles": [ + { + "Ref": "FetchColonyNativeFundsClaimLambdaDataSourceServiceRole502D331E" + } + ] + } + }, + "FetchColonyNativeFundsClaimLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "FetchColonyNativeFundsClaimLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyNativeFundsClaim-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyNativeFundsClaim" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchColonyNativeFundsClaimLambdaDataSourceServiceRole502D331E", + "Arn" + ] + } + } + }, + "InvokeFetchColonyNativeFundsClaimLambdaDataSourceInvokeFetchColonyNativeFundsClaimLambdaDataSourceAppSyncFunction4108C447": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchColonyNativeFundsClaimLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeFetchColonyNativeFundsClaimLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchColonyNativeFundsClaimLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "FetchColonyNativeFundsClaimLambdaDataSource" + ] + }, + "ColonychainFundsClaimResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "chainFundsClaim", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeFetchColonyNativeFundsClaimLambdaDataSourceInvokeFetchColonyNativeFundsClaimLambdaDataSourceAppSyncFunction4108C447", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"chainFundsClaim\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.chainFundsClaim.res.vtl" + ] + ] + } + } + }, + "FetchColonyBalancesLambdaDataSourceServiceRole817E15E9": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "FetchColonyBalancesLambdaDataSourceServiceRoleDefaultPolicy9F685983": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyBalances-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyBalances" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyBalances-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyBalances" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchColonyBalancesLambdaDataSourceServiceRoleDefaultPolicy9F685983", + "Roles": [ + { + "Ref": "FetchColonyBalancesLambdaDataSourceServiceRole817E15E9" + } + ] + } + }, + "FetchColonyBalancesLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "FetchColonyBalancesLambdaDataSource", + "Type": "AWS_LAMBDA", + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyBalances-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchColonyBalances" + } + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchColonyBalancesLambdaDataSourceServiceRole817E15E9", + "Arn" + ] + } + } + }, + "InvokeFetchColonyBalancesLambdaDataSourceInvokeFetchColonyBalancesLambdaDataSourceAppSyncFunction86AC724F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchColonyBalancesLambdaDataSource", + "Name" + ] + }, + "Name": "InvokeFetchColonyBalancesLambdaDataSource", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchColonyBalancesLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchColonyBalancesLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "FetchColonyBalancesLambdaDataSource" + ] + }, + "ColonybalancesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "balances", + "TypeName": "Colony", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "InvokeFetchColonyBalancesLambdaDataSourceInvokeFetchColonyBalancesLambdaDataSourceAppSyncFunction86AC724F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Colony\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"balances\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Colony.balances.res.vtl" + ] + ] + } + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/IngestorStats.json b/amplify/backend/api/colonycdapp/build/stacks/IngestorStats.json new file mode 100644 index 00000000000..385c13b611a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/IngestorStats.json @@ -0,0 +1,998 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "IngestorStatsTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "IngestorStats-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "IngestorStatsIAMRoleE3919E43": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "IngestorStatsIAMRolecadd48-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "IngestorStatsIAMRoleDefaultPolicyA13C843F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "IngestorStatsTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "IngestorStatsIAMRoleDefaultPolicyA13C843F", + "Roles": [ + { + "Ref": "IngestorStatsIAMRoleE3919E43" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "IngestorStats-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "IngestorStats-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "IngestorStatsIAMRoleE3919E43" + } + ] + } + }, + "IngestorStatsDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "IngestorStatsTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "IngestorStatsTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "IngestorStatsIAMRoleE3919E43", + "Arn" + ] + } + }, + "DependsOn": [ + "IngestorStatsIAMRoleE3919E43" + ] + }, + "QueryGetIngestorStatsDataResolverFnQueryGetIngestorStatsDataResolverFnAppSyncFunction2D21FEE1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "IngestorStatsDataSource", + "Name" + ] + }, + "Name": "QueryGetIngestorStatsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getIngestorStats.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getIngestorStats.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "IngestorStatsDataSource" + ] + }, + "GetIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getIngestorStats", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetIngestorStatsDataResolverFnQueryGetIngestorStatsDataResolverFnAppSyncFunction2D21FEE1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "IngestorStatsTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListIngestorStatsDataResolverFnQueryListIngestorStatsDataResolverFnAppSyncFunctionABFAF1FB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "IngestorStatsDataSource", + "Name" + ] + }, + "Name": "QueryListIngestorStatsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listIngestorStats.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listIngestorStats.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "IngestorStatsDataSource" + ] + }, + "ListIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listIngestorStats", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListIngestorStatsDataResolverFnQueryListIngestorStatsDataResolverFnAppSyncFunctionABFAF1FB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "IngestorStatsTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateIngestorStatsDataResolverFnMutationCreateIngestorStatsDataResolverFnAppSyncFunction2DE1537E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "IngestorStatsDataSource", + "Name" + ] + }, + "Name": "MutationCreateIngestorStatsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createIngestorStats.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createIngestorStats.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "IngestorStatsDataSource" + ] + }, + "CreateIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createIngestorStats", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateIngestorStatsDataResolverFnMutationCreateIngestorStatsDataResolverFnAppSyncFunction2DE1537E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "IngestorStatsTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateIngestorStatsDataResolverFnMutationUpdateIngestorStatsDataResolverFnAppSyncFunctionF9986B57": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "IngestorStatsDataSource", + "Name" + ] + }, + "Name": "MutationUpdateIngestorStatsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateIngestorStats.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateIngestorStats.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "IngestorStatsDataSource" + ] + }, + "UpdateIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateIngestorStats", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateIngestorStatsDataResolverFnMutationUpdateIngestorStatsDataResolverFnAppSyncFunctionF9986B57", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "IngestorStatsTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteIngestorStatsDataResolverFnMutationDeleteIngestorStatsDataResolverFnAppSyncFunctionF34D0F21": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "IngestorStatsDataSource", + "Name" + ] + }, + "Name": "MutationDeleteIngestorStatsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteIngestorStats.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteIngestorStats.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "IngestorStatsDataSource" + ] + }, + "DeleteIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteIngestorStats", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteIngestorStatsDataResolverFnMutationDeleteIngestorStatsDataResolverFnAppSyncFunctionF34D0F21", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "IngestorStatsTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateIngestorStats", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateIngestorStats", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteIngestorStatsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteIngestorStats", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteIngestorStats\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttIngestorStatsTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "IngestorStatsTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:IngestorStatsTable:StreamArn" + ] + ] + } + } + }, + "GetAttIngestorStatsTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "IngestorStatsTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:IngestorStatsTable:Name" + ] + ] + } + } + }, + "GetAttIngestorStatsDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "IngestorStatsDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:IngestorStatsDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/LiquidationAddress.json b/amplify/backend/api/colonycdapp/build/stacks/LiquidationAddress.json new file mode 100644 index 00000000000..bde287cf092 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/LiquidationAddress.json @@ -0,0 +1,1272 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "LiquidationAddressTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userAddress", + "AttributeType": "S" + }, + { + "AttributeName": "liquidationAddress", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserAddress", + "KeySchema": [ + { + "AttributeName": "userAddress", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byLiquidationAddress", + "KeySchema": [ + { + "AttributeName": "liquidationAddress", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "LiquidationAddress-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "LiquidationAddressIAMRoleA7CDCDEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "LiquidationAddressIA22b726-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "LiquidationAddressIAMRoleDefaultPolicy1CA2AF88": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "LiquidationAddressTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "LiquidationAddressTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "LiquidationAddressIAMRoleDefaultPolicy1CA2AF88", + "Roles": [ + { + "Ref": "LiquidationAddressIAMRoleA7CDCDEA" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "LiquidationAddress-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "LiquidationAddress-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "LiquidationAddressIAMRoleA7CDCDEA" + } + ] + } + }, + "LiquidationAddressDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "LiquidationAddressTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "LiquidationAddressTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "LiquidationAddressIAMRoleA7CDCDEA", + "Arn" + ] + } + }, + "DependsOn": [ + "LiquidationAddressIAMRoleA7CDCDEA" + ] + }, + "QueryGetLiquidationAddressDataResolverFnQueryGetLiquidationAddressDataResolverFnAppSyncFunctionE05F60C7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Name": "QueryGetLiquidationAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getLiquidationAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getLiquidationAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LiquidationAddressDataSource" + ] + }, + "GetLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getLiquidationAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetLiquidationAddressDataResolverFnQueryGetLiquidationAddressDataResolverFnAppSyncFunctionE05F60C7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "LiquidationAddressTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListLiquidationAddressesDataResolverFnQueryListLiquidationAddressesDataResolverFnAppSyncFunction3C234B1F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Name": "QueryListLiquidationAddressesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listLiquidationAddresses.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listLiquidationAddresses.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LiquidationAddressDataSource" + ] + }, + "ListLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listLiquidationAddresses", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListLiquidationAddressesDataResolverFnQueryListLiquidationAddressesDataResolverFnAppSyncFunction3C234B1F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listLiquidationAddresses\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "LiquidationAddressTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateLiquidationAddressDataResolverFnMutationCreateLiquidationAddressDataResolverFnAppSyncFunction93758C7C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Name": "MutationCreateLiquidationAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createLiquidationAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createLiquidationAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LiquidationAddressDataSource" + ] + }, + "CreateLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createLiquidationAddress", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateLiquidationAddressDataResolverFnMutationCreateLiquidationAddressDataResolverFnAppSyncFunction93758C7C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "LiquidationAddressTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateLiquidationAddressDataResolverFnMutationUpdateLiquidationAddressDataResolverFnAppSyncFunction0FC955FA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Name": "MutationUpdateLiquidationAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateLiquidationAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateLiquidationAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LiquidationAddressDataSource" + ] + }, + "UpdateLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateLiquidationAddress", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateLiquidationAddressDataResolverFnMutationUpdateLiquidationAddressDataResolverFnAppSyncFunction0FC955FA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "LiquidationAddressTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteLiquidationAddressDataResolverFnMutationDeleteLiquidationAddressDataResolverFnAppSyncFunction6059A661": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Name": "MutationDeleteLiquidationAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteLiquidationAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteLiquidationAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LiquidationAddressDataSource" + ] + }, + "DeleteLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteLiquidationAddress", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteLiquidationAddressDataResolverFnMutationDeleteLiquidationAddressDataResolverFnAppSyncFunction6059A661", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "LiquidationAddressTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateLiquidationAddress", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateLiquidationAddress", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteLiquidationAddress", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetLiquidationAddressesByUserAddressDataResolverFnQueryGetLiquidationAddressesByUserAddressDataResolverFnAppSyncFunctionAEB88444": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Name": "QueryGetLiquidationAddressesByUserAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getLiquidationAddressesByUserAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getLiquidationAddressesByUserAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LiquidationAddressDataSource" + ] + }, + "QuerygetLiquidationAddressesByUserAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getLiquidationAddressesByUserAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetLiquidationAddressesByUserAddressDataResolverFnQueryGetLiquidationAddressesByUserAddressDataResolverFnAppSyncFunctionAEB88444", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getLiquidationAddressesByUserAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "LiquidationAddressTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetUserByLiquidationAddressDataResolverFnQueryGetUserByLiquidationAddressDataResolverFnAppSyncFunction3419348E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Name": "QueryGetUserByLiquidationAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserByLiquidationAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserByLiquidationAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LiquidationAddressDataSource" + ] + }, + "QuerygetUserByLiquidationAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserByLiquidationAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetUserByLiquidationAddressDataResolverFnQueryGetUserByLiquidationAddressDataResolverFnAppSyncFunction3419348E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserByLiquidationAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "LiquidationAddressTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttLiquidationAddressTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "LiquidationAddressTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:LiquidationAddressTable:StreamArn" + ] + ] + } + } + }, + "GetAttLiquidationAddressTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "LiquidationAddressTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:LiquidationAddressTable:Name" + ] + ] + } + } + }, + "GetAttLiquidationAddressDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:LiquidationAddressDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackLiquidationAddressLiquidationAddressDataSourceE4378A90Name": { + "Value": { + "Fn::GetAtt": [ + "LiquidationAddressDataSource", + "Name" + ] + } + }, + "transformerrootstackLiquidationAddressLiquidationAddressTable20FAE6F3Ref": { + "Value": { + "Ref": "LiquidationAddressTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/MotionMessage.json b/amplify/backend/api/colonycdapp/build/stacks/MotionMessage.json new file mode 100644 index 00000000000..ebfd78d53d0 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/MotionMessage.json @@ -0,0 +1,1156 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "MotionMessageTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "motionId", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byMotionId", + "KeySchema": [ + { + "AttributeName": "motionId", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "MotionMessage-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "MotionMessageIAMRole7C20C894": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "MotionMessageIAMRoledeae33-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "MotionMessageIAMRoleDefaultPolicyE92465B0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "MotionMessageTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "MotionMessageTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "MotionMessageIAMRoleDefaultPolicyE92465B0", + "Roles": [ + { + "Ref": "MotionMessageIAMRole7C20C894" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "MotionMessage-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "MotionMessage-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "MotionMessageIAMRole7C20C894" + } + ] + } + }, + "MotionMessageDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "MotionMessageTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "MotionMessageTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MotionMessageIAMRole7C20C894", + "Arn" + ] + } + }, + "DependsOn": [ + "MotionMessageIAMRole7C20C894" + ] + }, + "QueryGetMotionMessageDataResolverFnQueryGetMotionMessageDataResolverFnAppSyncFunction635EE186": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + }, + "Name": "QueryGetMotionMessageDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionMessage.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionMessage.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MotionMessageDataSource" + ] + }, + "GetMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMotionMessage", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetMotionMessageDataResolverFnQueryGetMotionMessageDataResolverFnAppSyncFunction635EE186", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMotionMessage\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MotionMessageTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListMotionMessagesDataResolverFnQueryListMotionMessagesDataResolverFnAppSyncFunction2384D680": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + }, + "Name": "QueryListMotionMessagesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listMotionMessages.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listMotionMessages.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MotionMessageDataSource" + ] + }, + "ListMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listMotionMessages", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListMotionMessagesDataResolverFnQueryListMotionMessagesDataResolverFnAppSyncFunction2384D680", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMotionMessages\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MotionMessageTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateMotionMessageDataResolverFnMutationCreateMotionMessageDataResolverFnAppSyncFunctionD23E49BD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + }, + "Name": "MutationCreateMotionMessageDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMotionMessage.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMotionMessage.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MotionMessageDataSource" + ] + }, + "CreateMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createMotionMessage", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateMotionMessageDataResolverFnMutationCreateMotionMessageDataResolverFnAppSyncFunctionD23E49BD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMotionMessage\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MotionMessageTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateMotionMessageDataResolverFnMutationUpdateMotionMessageDataResolverFnAppSyncFunction18BB7943": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + }, + "Name": "MutationUpdateMotionMessageDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMotionMessage.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMotionMessage.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MotionMessageDataSource" + ] + }, + "UpdateMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateMotionMessage", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateMotionMessageDataResolverFnMutationUpdateMotionMessageDataResolverFnAppSyncFunction18BB7943", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMotionMessage\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MotionMessageTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteMotionMessageDataResolverFnMutationDeleteMotionMessageDataResolverFnAppSyncFunction05871A33": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + }, + "Name": "MutationDeleteMotionMessageDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMotionMessage.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMotionMessage.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MotionMessageDataSource" + ] + }, + "DeleteMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteMotionMessage", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteMotionMessageDataResolverFnMutationDeleteMotionMessageDataResolverFnAppSyncFunction05871A33", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMotionMessage\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MotionMessageTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateMotionMessage", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMotionMessage\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateMotionMessage", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMotionMessage\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteMotionMessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteMotionMessage", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMotionMessage\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetMotionMessageByMotionIdDataResolverFnQueryGetMotionMessageByMotionIdDataResolverFnAppSyncFunction0A249012": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + }, + "Name": "QueryGetMotionMessageByMotionIdDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionMessageByMotionId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMotionMessageByMotionId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MotionMessageDataSource" + ] + }, + "QuerygetMotionMessageByMotionIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMotionMessageByMotionId", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetMotionMessageByMotionIdDataResolverFnQueryGetMotionMessageByMotionIdDataResolverFnAppSyncFunction0A249012", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMotionMessageByMotionId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MotionMessageTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttMotionMessageTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "MotionMessageTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MotionMessageTable:StreamArn" + ] + ] + } + } + }, + "GetAttMotionMessageTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "MotionMessageTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MotionMessageTable:Name" + ] + ] + } + } + }, + "GetAttMotionMessageDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MotionMessageDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackMotionMessageMotionMessageDataSourceE6EFD321Name": { + "Value": { + "Fn::GetAtt": [ + "MotionMessageDataSource", + "Name" + ] + } + }, + "transformerrootstackMotionMessageMotionMessageTable17FAA0C7Ref": { + "Value": { + "Ref": "MotionMessageTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/PrivateBetaInviteCode.json b/amplify/backend/api/colonycdapp/build/stacks/PrivateBetaInviteCode.json new file mode 100644 index 00000000000..fcb56fe9335 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/PrivateBetaInviteCode.json @@ -0,0 +1,1050 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "PrivateBetaInviteCodeTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "PrivateBetaInviteCode-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "PrivateBetaInviteCodeIAMRoleE1481C1C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "PrivateBetaInviteCod7c3655-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "PrivateBetaInviteCodeIAMRoleDefaultPolicy734C1008": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "PrivateBetaInviteCodeIAMRoleDefaultPolicy734C1008", + "Roles": [ + { + "Ref": "PrivateBetaInviteCodeIAMRoleE1481C1C" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "PrivateBetaInviteCode-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "PrivateBetaInviteCode-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "PrivateBetaInviteCodeIAMRoleE1481C1C" + } + ] + } + }, + "PrivateBetaInviteCodeDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "PrivateBetaInviteCodeTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "PrivateBetaInviteCodeTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeIAMRoleE1481C1C", + "Arn" + ] + } + }, + "DependsOn": [ + "PrivateBetaInviteCodeIAMRoleE1481C1C" + ] + }, + "QueryGetPrivateBetaInviteCodeDataResolverFnQueryGetPrivateBetaInviteCodeDataResolverFnAppSyncFunction5B2701E7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeDataSource", + "Name" + ] + }, + "Name": "QueryGetPrivateBetaInviteCodeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getPrivateBetaInviteCode.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getPrivateBetaInviteCode.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PrivateBetaInviteCodeDataSource" + ] + }, + "GetPrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getPrivateBetaInviteCode", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetPrivateBetaInviteCodeDataResolverFnQueryGetPrivateBetaInviteCodeDataResolverFnAppSyncFunction5B2701E7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getPrivateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PrivateBetaInviteCodeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListPrivateBetaInviteCodesDataResolverFnQueryListPrivateBetaInviteCodesDataResolverFnAppSyncFunction7E60F717": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeDataSource", + "Name" + ] + }, + "Name": "QueryListPrivateBetaInviteCodesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listPrivateBetaInviteCodes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listPrivateBetaInviteCodes.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PrivateBetaInviteCodeDataSource" + ] + }, + "ListPrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listPrivateBetaInviteCodes", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListPrivateBetaInviteCodesDataResolverFnQueryListPrivateBetaInviteCodesDataResolverFnAppSyncFunction7E60F717", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listPrivateBetaInviteCodes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PrivateBetaInviteCodeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationcreatePrivateBetaInviteCodeinit1FunctionMutationcreatePrivateBetaInviteCodeinit1FunctionAppSyncFunctionC5252A36": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "MutationcreatePrivateBetaInviteCodeinit1Function", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createPrivateBetaInviteCode.init.2.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreatePrivateBetaInviteCodeDataResolverFnMutationCreatePrivateBetaInviteCodeDataResolverFnAppSyncFunction3669C8F2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeDataSource", + "Name" + ] + }, + "Name": "MutationCreatePrivateBetaInviteCodeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createPrivateBetaInviteCode.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createPrivateBetaInviteCode.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PrivateBetaInviteCodeDataSource" + ] + }, + "CreatePrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createPrivateBetaInviteCode", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreatePrivateBetaInviteCodeinit1FunctionMutationcreatePrivateBetaInviteCodeinit1FunctionAppSyncFunctionC5252A36", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreatePrivateBetaInviteCodeDataResolverFnMutationCreatePrivateBetaInviteCodeDataResolverFnAppSyncFunction3669C8F2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createPrivateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PrivateBetaInviteCodeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdatePrivateBetaInviteCodeDataResolverFnMutationUpdatePrivateBetaInviteCodeDataResolverFnAppSyncFunctionA31CD2B3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeDataSource", + "Name" + ] + }, + "Name": "MutationUpdatePrivateBetaInviteCodeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updatePrivateBetaInviteCode.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updatePrivateBetaInviteCode.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PrivateBetaInviteCodeDataSource" + ] + }, + "UpdatePrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updatePrivateBetaInviteCode", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdatePrivateBetaInviteCodeDataResolverFnMutationUpdatePrivateBetaInviteCodeDataResolverFnAppSyncFunctionA31CD2B3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updatePrivateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PrivateBetaInviteCodeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeletePrivateBetaInviteCodeDataResolverFnMutationDeletePrivateBetaInviteCodeDataResolverFnAppSyncFunction7870B903": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeDataSource", + "Name" + ] + }, + "Name": "MutationDeletePrivateBetaInviteCodeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deletePrivateBetaInviteCode.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deletePrivateBetaInviteCode.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PrivateBetaInviteCodeDataSource" + ] + }, + "DeletePrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deletePrivateBetaInviteCode", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeletePrivateBetaInviteCodeDataResolverFnMutationDeletePrivateBetaInviteCodeDataResolverFnAppSyncFunction7870B903", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deletePrivateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PrivateBetaInviteCodeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreatePrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreatePrivateBetaInviteCode", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreatePrivateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdatePrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdatePrivateBetaInviteCode", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdatePrivateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeletePrivateBetaInviteCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeletePrivateBetaInviteCode", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeletePrivateBetaInviteCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttPrivateBetaInviteCodeTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:PrivateBetaInviteCodeTable:StreamArn" + ] + ] + } + } + }, + "GetAttPrivateBetaInviteCodeTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "PrivateBetaInviteCodeTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:PrivateBetaInviteCodeTable:Name" + ] + ] + } + } + }, + "GetAttPrivateBetaInviteCodeDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:PrivateBetaInviteCodeDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeDataSource95FDB60EName": { + "Value": { + "Fn::GetAtt": [ + "PrivateBetaInviteCodeDataSource", + "Name" + ] + } + }, + "transformerrootstackPrivateBetaInviteCodePrivateBetaInviteCodeTable46E0F412Ref": { + "Value": { + "Ref": "PrivateBetaInviteCodeTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/Profile.json b/amplify/backend/api/colonycdapp/build/stacks/Profile.json new file mode 100644 index 00000000000..e229d44a6c7 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/Profile.json @@ -0,0 +1,1475 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ProfileTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "displayName", + "AttributeType": "S" + }, + { + "AttributeName": "email", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byDisplayName", + "KeySchema": [ + { + "AttributeName": "displayName", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byEmail", + "KeySchema": [ + { + "AttributeName": "email", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Profile-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ProfileIAMRole80484AAA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ProfileIAMRole684051-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ProfileIAMRoleDefaultPolicyA2388F80": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ProfileTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ProfileTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ProfileIAMRoleDefaultPolicyA2388F80", + "Roles": [ + { + "Ref": "ProfileIAMRole80484AAA" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Profile-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Profile-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ProfileIAMRole80484AAA" + } + ] + } + }, + "ProfileDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ProfileTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ProfileTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ProfileIAMRole80484AAA", + "Arn" + ] + } + }, + "DependsOn": [ + "ProfileIAMRole80484AAA" + ] + }, + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "QuerygetProfilepostAuth0Function", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProfile.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetProfileDataResolverFnQueryGetProfileDataResolverFnAppSyncFunctionCB729908": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Name": "QueryGetProfileDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProfile.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProfile.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProfileDataSource" + ] + }, + "GetProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getProfile", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProfileDataResolverFnQueryGetProfileDataResolverFnAppSyncFunctionCB729908", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProfile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProfileTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListProfilesDataResolverFnQueryListProfilesDataResolverFnAppSyncFunction599CDB47": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Name": "QueryListProfilesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProfiles.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProfiles.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProfileDataSource" + ] + }, + "ListProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listProfiles", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListProfilesDataResolverFnQueryListProfilesDataResolverFnAppSyncFunction599CDB47", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProfiles\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProfileTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction4BDCCBDF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "MutationcreateProfileinit0Function", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProfile.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateProfileDataResolverFnMutationCreateProfileDataResolverFnAppSyncFunction00237783": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Name": "MutationCreateProfileDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProfile.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProfile.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProfileDataSource" + ] + }, + "CreateProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createProfile", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction4BDCCBDF", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateProfileDataResolverFnMutationCreateProfileDataResolverFnAppSyncFunction00237783", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProfile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProfileTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction35E77D66": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "MutationupdateProfileinit0Function", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProfile.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationUpdateProfileDataResolverFnMutationUpdateProfileDataResolverFnAppSyncFunction4BC0C6E8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Name": "MutationUpdateProfileDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProfile.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProfile.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProfileDataSource" + ] + }, + "UpdateProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateProfile", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction35E77D66", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateProfileDataResolverFnMutationUpdateProfileDataResolverFnAppSyncFunction4BC0C6E8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProfile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProfileTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteProfileDataResolverFnMutationDeleteProfileDataResolverFnAppSyncFunctionFD80DBEF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Name": "MutationDeleteProfileDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProfile.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProfile.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProfileDataSource" + ] + }, + "DeleteProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteProfile", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteProfileDataResolverFnMutationDeleteProfileDataResolverFnAppSyncFunctionFD80DBEF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProfile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProfileTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD73E0AEC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "SubscriptionOnCreateProfileDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProfile.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProfile.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateProfile", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD73E0AEC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProfile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateProfile", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD73E0AEC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProfile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteProfileResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteProfile", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD73E0AEC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProfile\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetProfileByUsernameDataResolverFnQueryGetProfileByUsernameDataResolverFnAppSyncFunction1C67DFF4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Name": "QueryGetProfileByUsernameDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProfileByUsername.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProfileByUsername.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProfileDataSource" + ] + }, + "QuerygetProfileByUsernameResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getProfileByUsername", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProfileByUsernameDataResolverFnQueryGetProfileByUsernameDataResolverFnAppSyncFunction1C67DFF4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProfileByUsername\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProfileTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetProfileByEmailDataResolverFnQueryGetProfileByEmailDataResolverFnAppSyncFunction1E8C383E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Name": "QueryGetProfileByEmailDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProfileByEmail.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProfileByEmail.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProfileDataSource" + ] + }, + "QuerygetProfileByEmailResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getProfileByEmail", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProfileByEmailDataResolverFnQueryGetProfileByEmailDataResolverFnAppSyncFunction1E8C383E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProfileByEmail\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProfileTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttProfileTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ProfileTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProfileTable:StreamArn" + ] + ] + } + } + }, + "GetAttProfileTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ProfileTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProfileTable:Name" + ] + ] + } + } + }, + "GetAttProfileDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProfileDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionB9CDE501", + "FunctionId" + ] + } + }, + "transformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction4BDCCBDF", + "FunctionId" + ] + } + }, + "transformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction35E77D66", + "FunctionId" + ] + } + }, + "transformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD73E0AEC", + "FunctionId" + ] + } + }, + "transformerrootstackProfileProfileDataSource28492795Name": { + "Value": { + "Fn::GetAtt": [ + "ProfileDataSource", + "Name" + ] + } + }, + "transformerrootstackProfileProfileTableDAD5B613Ref": { + "Value": { + "Ref": "ProfileTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/ReputationMiningCycleMetadata.json b/amplify/backend/api/colonycdapp/build/stacks/ReputationMiningCycleMetadata.json new file mode 100644 index 00000000000..149b38a9b6a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/ReputationMiningCycleMetadata.json @@ -0,0 +1,998 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ReputationMiningCycleMetadataTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "ReputationMiningCycleMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "ReputationMiningCycleMetadataIAMRoleD5F928B2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "ReputationMiningCyclb6da50-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ReputationMiningCycleMetadataIAMRoleDefaultPolicyB4562CEB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ReputationMiningCycleMetadataIAMRoleDefaultPolicyB4562CEB", + "Roles": [ + { + "Ref": "ReputationMiningCycleMetadataIAMRoleD5F928B2" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ReputationMiningCycleMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "ReputationMiningCycleMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "ReputationMiningCycleMetadataIAMRoleD5F928B2" + } + ] + } + }, + "ReputationMiningCycleMetadataDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "ReputationMiningCycleMetadataTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ReputationMiningCycleMetadataTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataIAMRoleD5F928B2", + "Arn" + ] + } + }, + "DependsOn": [ + "ReputationMiningCycleMetadataIAMRoleD5F928B2" + ] + }, + "QueryGetReputationMiningCycleMetadataDataResolverFnQueryGetReputationMiningCycleMetadataDataResolverFnAppSyncFunctionC99E53B0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataDataSource", + "Name" + ] + }, + "Name": "QueryGetReputationMiningCycleMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getReputationMiningCycleMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getReputationMiningCycleMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ReputationMiningCycleMetadataDataSource" + ] + }, + "GetReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getReputationMiningCycleMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetReputationMiningCycleMetadataDataResolverFnQueryGetReputationMiningCycleMetadataDataResolverFnAppSyncFunctionC99E53B0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ReputationMiningCycleMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListReputationMiningCycleMetadataDataResolverFnQueryListReputationMiningCycleMetadataDataResolverFnAppSyncFunction3702ACFB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataDataSource", + "Name" + ] + }, + "Name": "QueryListReputationMiningCycleMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listReputationMiningCycleMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listReputationMiningCycleMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ReputationMiningCycleMetadataDataSource" + ] + }, + "ListReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listReputationMiningCycleMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListReputationMiningCycleMetadataDataResolverFnQueryListReputationMiningCycleMetadataDataResolverFnAppSyncFunction3702ACFB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ReputationMiningCycleMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateReputationMiningCycleMetadataDataResolverFnMutationCreateReputationMiningCycleMetadataDataResolverFnAppSyncFunction00305406": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataDataSource", + "Name" + ] + }, + "Name": "MutationCreateReputationMiningCycleMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createReputationMiningCycleMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createReputationMiningCycleMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ReputationMiningCycleMetadataDataSource" + ] + }, + "CreateReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createReputationMiningCycleMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateReputationMiningCycleMetadataDataResolverFnMutationCreateReputationMiningCycleMetadataDataResolverFnAppSyncFunction00305406", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ReputationMiningCycleMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateReputationMiningCycleMetadataDataResolverFnMutationUpdateReputationMiningCycleMetadataDataResolverFnAppSyncFunction009431CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataDataSource", + "Name" + ] + }, + "Name": "MutationUpdateReputationMiningCycleMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateReputationMiningCycleMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateReputationMiningCycleMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ReputationMiningCycleMetadataDataSource" + ] + }, + "UpdateReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateReputationMiningCycleMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateReputationMiningCycleMetadataDataResolverFnMutationUpdateReputationMiningCycleMetadataDataResolverFnAppSyncFunction009431CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ReputationMiningCycleMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteReputationMiningCycleMetadataDataResolverFnMutationDeleteReputationMiningCycleMetadataDataResolverFnAppSyncFunctionD91D915D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataDataSource", + "Name" + ] + }, + "Name": "MutationDeleteReputationMiningCycleMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteReputationMiningCycleMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteReputationMiningCycleMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ReputationMiningCycleMetadataDataSource" + ] + }, + "DeleteReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteReputationMiningCycleMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteReputationMiningCycleMetadataDataResolverFnMutationDeleteReputationMiningCycleMetadataDataResolverFnAppSyncFunctionD91D915D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ReputationMiningCycleMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateReputationMiningCycleMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateReputationMiningCycleMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteReputationMiningCycleMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteReputationMiningCycleMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteReputationMiningCycleMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttReputationMiningCycleMetadataTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ReputationMiningCycleMetadataTable:StreamArn" + ] + ] + } + } + }, + "GetAttReputationMiningCycleMetadataTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ReputationMiningCycleMetadataTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ReputationMiningCycleMetadataTable:Name" + ] + ] + } + } + }, + "GetAttReputationMiningCycleMetadataDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ReputationMiningCycleMetadataDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ReputationMiningCycleMetadataDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/SafeTransaction.json b/amplify/backend/api/colonycdapp/build/stacks/SafeTransaction.json new file mode 100644 index 00000000000..8274730d0ab --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/SafeTransaction.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "SafeTransactionTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "SafeTransaction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "SafeTransactionIAMRoleB29575D7": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "SafeTransactionIAMRob7560a-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "SafeTransactionIAMRoleDefaultPolicy89F0AAB2": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "SafeTransactionTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "SafeTransactionIAMRoleDefaultPolicy89F0AAB2", + "Roles": [ + { + "Ref": "SafeTransactionIAMRoleB29575D7" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "SafeTransaction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "SafeTransaction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "SafeTransactionIAMRoleB29575D7" + } + ] + } + }, + "SafeTransactionDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "SafeTransactionTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "SafeTransactionTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "SafeTransactionIAMRoleB29575D7", + "Arn" + ] + } + }, + "DependsOn": [ + "SafeTransactionIAMRoleB29575D7" + ] + }, + "QueryGetSafeTransactionDataResolverFnQueryGetSafeTransactionDataResolverFnAppSyncFunction0AB75DF7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataSource", + "Name" + ] + }, + "Name": "QueryGetSafeTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getSafeTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getSafeTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataSource" + ] + }, + "GetSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getSafeTransaction", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetSafeTransactionDataResolverFnQueryGetSafeTransactionDataResolverFnAppSyncFunction0AB75DF7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getSafeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListSafeTransactionsDataResolverFnQueryListSafeTransactionsDataResolverFnAppSyncFunctionCAD52791": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataSource", + "Name" + ] + }, + "Name": "QueryListSafeTransactionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listSafeTransactions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listSafeTransactions.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataSource" + ] + }, + "ListSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listSafeTransactions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListSafeTransactionsDataResolverFnQueryListSafeTransactionsDataResolverFnAppSyncFunctionCAD52791", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listSafeTransactions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateSafeTransactionDataResolverFnMutationCreateSafeTransactionDataResolverFnAppSyncFunctionBE5C7DD0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataSource", + "Name" + ] + }, + "Name": "MutationCreateSafeTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createSafeTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createSafeTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataSource" + ] + }, + "CreateSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createSafeTransaction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateSafeTransactionDataResolverFnMutationCreateSafeTransactionDataResolverFnAppSyncFunctionBE5C7DD0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createSafeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateSafeTransactionDataResolverFnMutationUpdateSafeTransactionDataResolverFnAppSyncFunction15621028": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataSource", + "Name" + ] + }, + "Name": "MutationUpdateSafeTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateSafeTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateSafeTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataSource" + ] + }, + "UpdateSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateSafeTransaction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateSafeTransactionDataResolverFnMutationUpdateSafeTransactionDataResolverFnAppSyncFunction15621028", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateSafeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteSafeTransactionDataResolverFnMutationDeleteSafeTransactionDataResolverFnAppSyncFunction5EBA871C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataSource", + "Name" + ] + }, + "Name": "MutationDeleteSafeTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteSafeTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteSafeTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataSource" + ] + }, + "DeleteSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteSafeTransaction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteSafeTransactionDataResolverFnMutationDeleteSafeTransactionDataResolverFnAppSyncFunction5EBA871C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteSafeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateSafeTransaction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateSafeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateSafeTransaction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateSafeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteSafeTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteSafeTransaction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteSafeTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttSafeTransactionTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "SafeTransactionTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:SafeTransactionTable:StreamArn" + ] + ] + } + } + }, + "GetAttSafeTransactionTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "SafeTransactionTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:SafeTransactionTable:Name" + ] + ] + } + } + }, + "GetAttSafeTransactionDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "SafeTransactionDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:SafeTransactionDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackSafeTransactionSafeTransactionDataSource8FEC7E78Name": { + "Value": { + "Fn::GetAtt": [ + "SafeTransactionDataSource", + "Name" + ] + } + }, + "transformerrootstackSafeTransactionSafeTransactionTable6845198ARef": { + "Value": { + "Ref": "SafeTransactionTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/SafeTransactionData.json b/amplify/backend/api/colonycdapp/build/stacks/SafeTransactionData.json new file mode 100644 index 00000000000..d7bda28d158 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/SafeTransactionData.json @@ -0,0 +1,1060 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "SafeTransactionDataTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "transactionHash", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byTransaction", + "KeySchema": [ + { + "AttributeName": "transactionHash", + "KeyType": "HASH" + }, + { + "AttributeName": "id", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "SafeTransactionData-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "SafeTransactionDataIAMRole5ECB04E0": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "SafeTransactionDataI2558b1-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "SafeTransactionDataIAMRoleDefaultPolicy88EE64CE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "SafeTransactionDataTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "SafeTransactionDataTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "SafeTransactionDataIAMRoleDefaultPolicy88EE64CE", + "Roles": [ + { + "Ref": "SafeTransactionDataIAMRole5ECB04E0" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "SafeTransactionData-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "SafeTransactionData-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "SafeTransactionDataIAMRole5ECB04E0" + } + ] + } + }, + "SafeTransactionDataDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "SafeTransactionDataTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "SafeTransactionDataTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "SafeTransactionDataIAMRole5ECB04E0", + "Arn" + ] + } + }, + "DependsOn": [ + "SafeTransactionDataIAMRole5ECB04E0" + ] + }, + "QueryGetSafeTransactionDataDataResolverFnQueryGetSafeTransactionDataDataResolverFnAppSyncFunctionBE290012": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataDataSource", + "Name" + ] + }, + "Name": "QueryGetSafeTransactionDataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getSafeTransactionData.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getSafeTransactionData.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataDataSource" + ] + }, + "GetSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getSafeTransactionData", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetSafeTransactionDataDataResolverFnQueryGetSafeTransactionDataDataResolverFnAppSyncFunctionBE290012", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionDataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListSafeTransactionDataDataResolverFnQueryListSafeTransactionDataDataResolverFnAppSyncFunction94BE12BB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataDataSource", + "Name" + ] + }, + "Name": "QueryListSafeTransactionDataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listSafeTransactionData.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listSafeTransactionData.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataDataSource" + ] + }, + "ListSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listSafeTransactionData", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListSafeTransactionDataDataResolverFnQueryListSafeTransactionDataDataResolverFnAppSyncFunction94BE12BB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionDataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateSafeTransactionDataDataResolverFnMutationCreateSafeTransactionDataDataResolverFnAppSyncFunction5DB1A185": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataDataSource", + "Name" + ] + }, + "Name": "MutationCreateSafeTransactionDataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createSafeTransactionData.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createSafeTransactionData.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataDataSource" + ] + }, + "CreateSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createSafeTransactionData", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateSafeTransactionDataDataResolverFnMutationCreateSafeTransactionDataDataResolverFnAppSyncFunction5DB1A185", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionDataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateSafeTransactionDataDataResolverFnMutationUpdateSafeTransactionDataDataResolverFnAppSyncFunction46930D99": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataDataSource", + "Name" + ] + }, + "Name": "MutationUpdateSafeTransactionDataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateSafeTransactionData.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateSafeTransactionData.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataDataSource" + ] + }, + "UpdateSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateSafeTransactionData", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateSafeTransactionDataDataResolverFnMutationUpdateSafeTransactionDataDataResolverFnAppSyncFunction46930D99", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionDataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteSafeTransactionDataDataResolverFnMutationDeleteSafeTransactionDataDataResolverFnAppSyncFunctionB18B53C0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "SafeTransactionDataDataSource", + "Name" + ] + }, + "Name": "MutationDeleteSafeTransactionDataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteSafeTransactionData.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteSafeTransactionData.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "SafeTransactionDataDataSource" + ] + }, + "DeleteSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteSafeTransactionData", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteSafeTransactionDataDataResolverFnMutationDeleteSafeTransactionDataDataResolverFnAppSyncFunctionB18B53C0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "SafeTransactionDataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateSafeTransactionData", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateSafeTransactionData", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteSafeTransactionDataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteSafeTransactionData", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteSafeTransactionData\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttSafeTransactionDataTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "SafeTransactionDataTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:SafeTransactionDataTable:StreamArn" + ] + ] + } + } + }, + "GetAttSafeTransactionDataTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "SafeTransactionDataTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:SafeTransactionDataTable:Name" + ] + ] + } + } + }, + "GetAttSafeTransactionDataDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "SafeTransactionDataDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:SafeTransactionDataDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackSafeTransactionDataSafeTransactionDataDataSource30D0D4D8Name": { + "Value": { + "Fn::GetAtt": [ + "SafeTransactionDataDataSource", + "Name" + ] + } + }, + "transformerrootstackSafeTransactionDataSafeTransactionDataTable3DA096B6Ref": { + "Value": { + "Ref": "SafeTransactionDataTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/SearchableStack.json b/amplify/backend/api/colonycdapp/build/stacks/SearchableStack.json new file mode 100644 index 00000000000..0e3ad85a494 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/SearchableStack.json @@ -0,0 +1,885 @@ +{ + "Description": "An auto-generated nested stack for searchable.", + "AWSTemplateFormatVersion": "2010-09-09", + "Mappings": { + "LayerResourceMapping": { + "ap-northeast-1": { + "layerRegion": "arn:aws:lambda:ap-northeast-1:249908578461:layer:AWSLambda-Python-AWS-SDK:1" + }, + "us-east-1": { + "layerRegion": "arn:aws:lambda:us-east-1:668099181075:layer:AWSLambda-Python-AWS-SDK:1" + }, + "ap-southeast-1": { + "layerRegion": "arn:aws:lambda:ap-southeast-1:468957933125:layer:AWSLambda-Python-AWS-SDK:1" + }, + "eu-west-1": { + "layerRegion": "arn:aws:lambda:eu-west-1:399891621064:layer:AWSLambda-Python-AWS-SDK:1" + }, + "us-west-1": { + "layerRegion": "arn:aws:lambda:us-west-1:325793726646:layer:AWSLambda-Python-AWS-SDK:1" + }, + "ap-east-1": { + "layerRegion": "arn:aws:lambda:ap-east-1:118857876118:layer:AWSLambda-Python-AWS-SDK:1" + }, + "ap-northeast-2": { + "layerRegion": "arn:aws:lambda:ap-northeast-2:296580773974:layer:AWSLambda-Python-AWS-SDK:1" + }, + "ap-northeast-3": { + "layerRegion": "arn:aws:lambda:ap-northeast-3:961244031340:layer:AWSLambda-Python-AWS-SDK:1" + }, + "ap-south-1": { + "layerRegion": "arn:aws:lambda:ap-south-1:631267018583:layer:AWSLambda-Python-AWS-SDK:1" + }, + "ap-southeast-2": { + "layerRegion": "arn:aws:lambda:ap-southeast-2:817496625479:layer:AWSLambda-Python-AWS-SDK:1" + }, + "ca-central-1": { + "layerRegion": "arn:aws:lambda:ca-central-1:778625758767:layer:AWSLambda-Python-AWS-SDK:1" + }, + "eu-central-1": { + "layerRegion": "arn:aws:lambda:eu-central-1:292169987271:layer:AWSLambda-Python-AWS-SDK:1" + }, + "eu-north-1": { + "layerRegion": "arn:aws:lambda:eu-north-1:642425348156:layer:AWSLambda-Python-AWS-SDK:1" + }, + "eu-west-2": { + "layerRegion": "arn:aws:lambda:eu-west-2:142628438157:layer:AWSLambda-Python-AWS-SDK:1" + }, + "eu-west-3": { + "layerRegion": "arn:aws:lambda:eu-west-3:959311844005:layer:AWSLambda-Python-AWS-SDK:1" + }, + "sa-east-1": { + "layerRegion": "arn:aws:lambda:sa-east-1:640010853179:layer:AWSLambda-Python-AWS-SDK:1" + }, + "us-east-2": { + "layerRegion": "arn:aws:lambda:us-east-2:259788987135:layer:AWSLambda-Python-AWS-SDK:1" + }, + "us-west-2": { + "layerRegion": "arn:aws:lambda:us-west-2:420165488524:layer:AWSLambda-Python-AWS-SDK:1" + }, + "cn-north-1": { + "layerRegion": "arn:aws-cn:lambda:cn-north-1:683298794825:layer:AWSLambda-Python-AWS-SDK:1" + }, + "cn-northwest-1": { + "layerRegion": "arn:aws-cn:lambda:cn-northwest-1:382066503313:layer:AWSLambda-Python-AWS-SDK:1" + }, + "us-gov-west-1": { + "layerRegion": "arn:aws-us-gov:lambda:us-gov-west-1:556739011827:layer:AWSLambda-Python-AWS-SDK:1" + }, + "us-gov-east-1": { + "layerRegion": "arn:aws-us-gov:lambda:us-gov-east-1:138526772879:layer:AWSLambda-Python-AWS-SDK:1" + }, + "me-south-1": { + "layerRegion": "arn:aws:lambda:me-south-1:507411403535:layer:AWSLambda-Python-AWS-SDK:1" + } + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "OpenSearchDomain": { + "Type": "AWS::Elasticsearch::Domain", + "Properties": { + "CognitoOptions": { + "Enabled": false + }, + "DomainEndpointOptions": { + "EnforceHTTPS": true, + "TLSSecurityPolicy": "Policy-Min-TLS-1-0-2019-07" + }, + "DomainName": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Ref": "AWS::NoValue" + }, + { + "Fn::Join": [ + "", + [ + "d", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + } + ] + ] + } + ] + }, + "EBSOptions": { + "EBSEnabled": true, + "VolumeSize": { + "Ref": "referencetotransformerrootstackOpenSearchEBSVolumeGBC5EEE310Ref" + }, + "VolumeType": "gp2" + }, + "ElasticsearchClusterConfig": { + "InstanceCount": { + "Ref": "referencetotransformerrootstackOpenSearchInstanceCount6D2C6DD4Ref" + }, + "InstanceType": { + "Ref": "referencetotransformerrootstackOpenSearchInstanceTypeA365CDC7Ref" + } + }, + "ElasticsearchVersion": "7.10", + "EncryptionAtRestOptions": { + "Enabled": false + }, + "LogPublishingOptions": {}, + "NodeToNodeEncryptionOptions": { + "Enabled": false + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "OpenSearchAccessIAMRole6A1D9CC5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "referencetotransformerrootstackOpenSearchStreamingIAMRoleName68D92152Ref" + }, + "70455d-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "OpenSearchAccessIAMRoleDefaultPolicyA7270E78": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "es:ESHttpGet", + "es:ESHttpHead", + "es:ESHttpDelete", + "es:ESHttpPost", + "es:ESHttpPut", + "es:ESHttpPatch" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "OpenSearchAccessIAMRoleDefaultPolicyA7270E78", + "Roles": [ + { + "Ref": "OpenSearchAccessIAMRole6A1D9CC5" + } + ] + } + }, + "OpenSearchDataSourceB206F4EE": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "OpenSearchDataSource", + "Type": "AMAZON_ELASTICSEARCH", + "ElasticsearchConfig": { + "AwsRegion": { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "Arn" + ] + } + ] + } + ] + }, + "Endpoint": { + "Fn::Join": [ + "", + [ + "https://", + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "DomainEndpoint" + ] + } + ] + ] + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "OpenSearchAccessIAMRole6A1D9CC5", + "Arn" + ] + } + } + }, + "OpenSearchStreamingLambdaIAMRole7802F5E2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "d41d8c-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "OpenSearchStreamingLambdaIAMRoleDefaultPolicyB1F2399B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "es:ESHttpDelete", + "es:ESHttpPost", + "es:ESHttpPut", + "es:ESHttpPatch" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": "dynamodb:ListStreams", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": { + "Ref": "referencetotransformerrootstackColonyContributorNestedStackColonyContributorNestedStackResource4EBBADB0OutputstransformerrootstackColonyContributorColonyContributorTableDE7DB971StreamArn" + } + }, + { + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFStreamArn" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "OpenSearchStreamingLambdaIAMRoleDefaultPolicyB1F2399B", + "Roles": [ + { + "Ref": "OpenSearchStreamingLambdaIAMRole7802F5E2" + } + ] + } + }, + "CloudwatchLogsAccessA1F9AA39": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Effect": "Allow", + "Resource": "arn:aws:logs:*:*:*" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CloudwatchLogsAccessA1F9AA39", + "Roles": [ + { + "Ref": "OpenSearchStreamingLambdaIAMRole7802F5E2" + } + ] + } + }, + "OpenSearchStreamingLambdaFunction6ED4A1FD": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "S3Key": { + "Fn::Join": [ + "", + [ + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/functions/OpenSearchStreamingLambdaFunction.zip" + ] + ] + } + }, + "Role": { + "Fn::GetAtt": [ + "OpenSearchStreamingLambdaIAMRole7802F5E2", + "Arn" + ] + }, + "Environment": { + "Variables": { + "OPENSEARCH_ENDPOINT": { + "Fn::Join": [ + "", + [ + "https://", + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "DomainEndpoint" + ] + } + ] + ] + }, + "OPENSEARCH_REGION": { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "Arn" + ] + } + ] + } + ] + }, + "DEBUG": { + "Ref": "referencetotransformerrootstackOpenSearchDebugStreamingLambdaF4C579C7Ref" + }, + "OPENSEARCH_USE_EXTERNAL_VERSIONING": "false" + } + }, + "Handler": { + "Ref": "referencetotransformerrootstackOpenSearchStreamingLambdaHandlerName4CC1792ERef" + }, + "Layers": [ + { + "Fn::FindInMap": [ + "LayerResourceMapping", + { + "Ref": "AWS::Region" + }, + "layerRegion" + ] + } + ], + "Runtime": "python3.8" + }, + "DependsOn": [ + "OpenSearchStreamingLambdaIAMRoleDefaultPolicyB1F2399B", + "OpenSearchStreamingLambdaIAMRole7802F5E2" + ] + }, + "SearchableColonyContributorLambdaMappingFF696E9F": { + "Type": "AWS::Lambda::EventSourceMapping", + "Properties": { + "FunctionName": { + "Ref": "OpenSearchStreamingLambdaFunction6ED4A1FD" + }, + "BatchSize": { + "Ref": "referencetotransformerrootstackOpenSearchStreamBatchSizeADC05434Ref" + }, + "Enabled": true, + "EventSourceArn": { + "Ref": "referencetotransformerrootstackColonyContributorNestedStackColonyContributorNestedStackResource4EBBADB0OutputstransformerrootstackColonyContributorColonyContributorTableDE7DB971StreamArn" + }, + "MaximumBatchingWindowInSeconds": { + "Ref": "referencetotransformerrootstackOpenSearchStreamMaximumBatchingWindowInSeconds78A36D49Ref" + }, + "StartingPosition": "LATEST" + } + }, + "SearchableColonyActionLambdaMappingE7A7EB1D": { + "Type": "AWS::Lambda::EventSourceMapping", + "Properties": { + "FunctionName": { + "Ref": "OpenSearchStreamingLambdaFunction6ED4A1FD" + }, + "BatchSize": { + "Ref": "referencetotransformerrootstackOpenSearchStreamBatchSizeADC05434Ref" + }, + "Enabled": true, + "EventSourceArn": { + "Ref": "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFStreamArn" + }, + "MaximumBatchingWindowInSeconds": { + "Ref": "referencetotransformerrootstackOpenSearchStreamMaximumBatchingWindowInSeconds78A36D49Ref" + }, + "StartingPosition": "LATEST" + } + }, + "QuerysearchColonyContributorspostAuth0FunctionQuerysearchColonyContributorspostAuth0FunctionAppSyncFunctionA2A6BF19": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "QuerysearchColonyContributorspostAuth0Function", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.searchColonyContributors.postAuth.1.res.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerySearchColonyContributorsDataResolverFnQuerySearchColonyContributorsDataResolverFnAppSyncFunctionA2EF4D35": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "OpenSearchDataSourceB206F4EE", + "Name" + ] + }, + "Name": "QuerySearchColonyContributorsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.searchColonyContributors.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.searchColonyContributors.res.vtl" + ] + ] + } + } + }, + "SearchColonyContributorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "searchColonyContributors", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerysearchColonyContributorspostAuth0FunctionQuerysearchColonyContributorspostAuth0FunctionAppSyncFunctionA2A6BF19", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerySearchColonyContributorsDataResolverFnQuerySearchColonyContributorsDataResolverFnAppSyncFunctionA2EF4D35", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"searchColonyContributors\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_ELASTICSEARCH\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"endpoint\", \"https://", + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "DomainEndpoint" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QuerysearchColonyActionspostAuth0FunctionQuerysearchColonyActionspostAuth0FunctionAppSyncFunction859BD4B5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "Name": "QuerysearchColonyActionspostAuth0Function", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.searchColonyActions.postAuth.1.res.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerySearchColonyActionsDataResolverFnQuerySearchColonyActionsDataResolverFnAppSyncFunctionC65FB0BB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "OpenSearchDataSourceB206F4EE", + "Name" + ] + }, + "Name": "QuerySearchColonyActionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.searchColonyActions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.searchColonyActions.res.vtl" + ] + ] + } + } + }, + "SearchColonyActionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "searchColonyActions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerysearchColonyActionspostAuth0FunctionQuerysearchColonyActionspostAuth0FunctionAppSyncFunction859BD4B5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerySearchColonyActionsDataResolverFnQuerySearchColonyActionsDataResolverFnAppSyncFunctionC65FB0BB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"searchColonyActions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_ELASTICSEARCH\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"endpoint\", \"https://", + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "DomainEndpoint" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "OpenSearchDomainArn": { + "Description": "OpenSearch instance Domain ARN.", + "Value": { + "Fn::GetAtt": [ + "OpenSearchDomain", + "Arn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:OpenSearch:DomainArn" + ] + ] + } + } + }, + "OpenSearchDomainEndpoint": { + "Description": "OpenSearch instance Domain Endpoint.", + "Value": { + "Fn::Join": [ + "", + [ + "https://", + { + "Fn::GetAtt": [ + "OpenSearchDomain", + "DomainEndpoint" + ] + } + ] + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:OpenSearch:DomainEndpoint" + ] + ] + } + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchEBSVolumeGBC5EEE310Ref": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchInstanceCount6D2C6DD4Ref": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchInstanceTypeA365CDC7Ref": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchStreamingIAMRoleName68D92152Ref": { + "Type": "String" + }, + "referencetotransformerrootstackColonyContributorNestedStackColonyContributorNestedStackResource4EBBADB0OutputstransformerrootstackColonyContributorColonyContributorTableDE7DB971StreamArn": { + "Type": "String" + }, + "referencetotransformerrootstackColonyActionNestedStackColonyActionNestedStackResource62680774OutputstransformerrootstackColonyActionColonyActionTable5DE533FFStreamArn": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchDebugStreamingLambdaF4C579C7Ref": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchStreamingLambdaHandlerName4CC1792ERef": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchStreamBatchSizeADC05434Ref": { + "Type": "String" + }, + "referencetotransformerrootstackOpenSearchStreamMaximumBatchingWindowInSeconds78A36D49Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/StreamingPayment.json b/amplify/backend/api/colonycdapp/build/stacks/StreamingPayment.json new file mode 100644 index 00000000000..c7ab2eb1e37 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/StreamingPayment.json @@ -0,0 +1,998 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "StreamingPaymentTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "StreamingPayment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "StreamingPaymentIAMRole0C0DE132": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "StreamingPaymentIAMR8b33d6-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "StreamingPaymentIAMRoleDefaultPolicy3C73DDB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingPaymentTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "StreamingPaymentIAMRoleDefaultPolicy3C73DDB6", + "Roles": [ + { + "Ref": "StreamingPaymentIAMRole0C0DE132" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "StreamingPayment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "StreamingPayment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "StreamingPaymentIAMRole0C0DE132" + } + ] + } + }, + "StreamingPaymentDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "StreamingPaymentTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "StreamingPaymentTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "StreamingPaymentIAMRole0C0DE132", + "Arn" + ] + } + }, + "DependsOn": [ + "StreamingPaymentIAMRole0C0DE132" + ] + }, + "QueryGetStreamingPaymentDataResolverFnQueryGetStreamingPaymentDataResolverFnAppSyncFunction7CD46A27": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentDataSource", + "Name" + ] + }, + "Name": "QueryGetStreamingPaymentDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getStreamingPayment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getStreamingPayment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentDataSource" + ] + }, + "GetStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getStreamingPayment", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetStreamingPaymentDataResolverFnQueryGetStreamingPaymentDataResolverFnAppSyncFunction7CD46A27", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getStreamingPayment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListStreamingPaymentsDataResolverFnQueryListStreamingPaymentsDataResolverFnAppSyncFunction52E3202A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentDataSource", + "Name" + ] + }, + "Name": "QueryListStreamingPaymentsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listStreamingPayments.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listStreamingPayments.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentDataSource" + ] + }, + "ListStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listStreamingPayments", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListStreamingPaymentsDataResolverFnQueryListStreamingPaymentsDataResolverFnAppSyncFunction52E3202A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listStreamingPayments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateStreamingPaymentDataResolverFnMutationCreateStreamingPaymentDataResolverFnAppSyncFunction17BECC52": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentDataSource", + "Name" + ] + }, + "Name": "MutationCreateStreamingPaymentDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createStreamingPayment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createStreamingPayment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentDataSource" + ] + }, + "CreateStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createStreamingPayment", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateStreamingPaymentDataResolverFnMutationCreateStreamingPaymentDataResolverFnAppSyncFunction17BECC52", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createStreamingPayment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateStreamingPaymentDataResolverFnMutationUpdateStreamingPaymentDataResolverFnAppSyncFunctionCDCC2381": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentDataSource", + "Name" + ] + }, + "Name": "MutationUpdateStreamingPaymentDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateStreamingPayment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateStreamingPayment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentDataSource" + ] + }, + "UpdateStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateStreamingPayment", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateStreamingPaymentDataResolverFnMutationUpdateStreamingPaymentDataResolverFnAppSyncFunctionCDCC2381", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateStreamingPayment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteStreamingPaymentDataResolverFnMutationDeleteStreamingPaymentDataResolverFnAppSyncFunction029536F5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentDataSource", + "Name" + ] + }, + "Name": "MutationDeleteStreamingPaymentDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteStreamingPayment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteStreamingPayment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentDataSource" + ] + }, + "DeleteStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteStreamingPayment", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteStreamingPaymentDataResolverFnMutationDeleteStreamingPaymentDataResolverFnAppSyncFunction029536F5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteStreamingPayment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateStreamingPayment", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateStreamingPayment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateStreamingPayment", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateStreamingPayment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteStreamingPaymentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteStreamingPayment", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteStreamingPayment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttStreamingPaymentTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "StreamingPaymentTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:StreamingPaymentTable:StreamArn" + ] + ] + } + } + }, + "GetAttStreamingPaymentTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "StreamingPaymentTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:StreamingPaymentTable:Name" + ] + ] + } + } + }, + "GetAttStreamingPaymentDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "StreamingPaymentDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:StreamingPaymentDataSource:Name" + ] + ] + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/StreamingPaymentMetadata.json b/amplify/backend/api/colonycdapp/build/stacks/StreamingPaymentMetadata.json new file mode 100644 index 00000000000..f487cb39948 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/StreamingPaymentMetadata.json @@ -0,0 +1,1011 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "StreamingPaymentMetadataTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "StreamingPaymentMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "StreamingPaymentMetadataIAMRole839E5315": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "StreamingPaymentMetab86135-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "StreamingPaymentMetadataIAMRoleDefaultPolicy2BD0F239": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingPaymentMetadataTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "StreamingPaymentMetadataIAMRoleDefaultPolicy2BD0F239", + "Roles": [ + { + "Ref": "StreamingPaymentMetadataIAMRole839E5315" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "StreamingPaymentMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "StreamingPaymentMetadata-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "StreamingPaymentMetadataIAMRole839E5315" + } + ] + } + }, + "StreamingPaymentMetadataDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "StreamingPaymentMetadataTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "StreamingPaymentMetadataTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataIAMRole839E5315", + "Arn" + ] + } + }, + "DependsOn": [ + "StreamingPaymentMetadataIAMRole839E5315" + ] + }, + "QueryGetStreamingPaymentMetadataDataResolverFnQueryGetStreamingPaymentMetadataDataResolverFnAppSyncFunction7E2C4903": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataSource", + "Name" + ] + }, + "Name": "QueryGetStreamingPaymentMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getStreamingPaymentMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getStreamingPaymentMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentMetadataDataSource" + ] + }, + "GetStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getStreamingPaymentMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetStreamingPaymentMetadataDataResolverFnQueryGetStreamingPaymentMetadataDataResolverFnAppSyncFunction7E2C4903", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListStreamingPaymentMetadataDataResolverFnQueryListStreamingPaymentMetadataDataResolverFnAppSyncFunctionF071F7FD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataSource", + "Name" + ] + }, + "Name": "QueryListStreamingPaymentMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listStreamingPaymentMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listStreamingPaymentMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentMetadataDataSource" + ] + }, + "ListStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listStreamingPaymentMetadata", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListStreamingPaymentMetadataDataResolverFnQueryListStreamingPaymentMetadataDataResolverFnAppSyncFunctionF071F7FD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateStreamingPaymentMetadataDataResolverFnMutationCreateStreamingPaymentMetadataDataResolverFnAppSyncFunctionA8EA1FAC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataSource", + "Name" + ] + }, + "Name": "MutationCreateStreamingPaymentMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createStreamingPaymentMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createStreamingPaymentMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentMetadataDataSource" + ] + }, + "CreateStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createStreamingPaymentMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateStreamingPaymentMetadataDataResolverFnMutationCreateStreamingPaymentMetadataDataResolverFnAppSyncFunctionA8EA1FAC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateStreamingPaymentMetadataDataResolverFnMutationUpdateStreamingPaymentMetadataDataResolverFnAppSyncFunctionB88A130E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataSource", + "Name" + ] + }, + "Name": "MutationUpdateStreamingPaymentMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateStreamingPaymentMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateStreamingPaymentMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentMetadataDataSource" + ] + }, + "UpdateStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateStreamingPaymentMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateStreamingPaymentMetadataDataResolverFnMutationUpdateStreamingPaymentMetadataDataResolverFnAppSyncFunctionB88A130E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteStreamingPaymentMetadataDataResolverFnMutationDeleteStreamingPaymentMetadataDataResolverFnAppSyncFunction83D40AA8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataSource", + "Name" + ] + }, + "Name": "MutationDeleteStreamingPaymentMetadataDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteStreamingPaymentMetadata.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteStreamingPaymentMetadata.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "StreamingPaymentMetadataDataSource" + ] + }, + "DeleteStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteStreamingPaymentMetadata", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteStreamingPaymentMetadataDataResolverFnMutationDeleteStreamingPaymentMetadataDataResolverFnAppSyncFunction83D40AA8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "StreamingPaymentMetadataTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateStreamingPaymentMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateStreamingPaymentMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteStreamingPaymentMetadataResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteStreamingPaymentMetadata", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteStreamingPaymentMetadata\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttStreamingPaymentMetadataTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:StreamingPaymentMetadataTable:StreamArn" + ] + ] + } + } + }, + "GetAttStreamingPaymentMetadataTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "StreamingPaymentMetadataTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:StreamingPaymentMetadataTable:Name" + ] + ] + } + } + }, + "GetAttStreamingPaymentMetadataDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:StreamingPaymentMetadataDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataDataSource32DF5C97Name": { + "Value": { + "Fn::GetAtt": [ + "StreamingPaymentMetadataDataSource", + "Name" + ] + } + }, + "transformerrootstackStreamingPaymentMetadataStreamingPaymentMetadataTableB16A19ACRef": { + "Value": { + "Ref": "StreamingPaymentMetadataTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/Token.json b/amplify/backend/api/colonycdapp/build/stacks/Token.json new file mode 100644 index 00000000000..2ed2098212c --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/Token.json @@ -0,0 +1,1304 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "TokenTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + }, + { + "AttributeName": "type", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byAddress", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "tokensByIdAndCreatedAt", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byType", + "KeySchema": [ + { + "AttributeName": "type", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Token-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "TokenIAMRole7156B56D": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "TokenIAMRolea9fa53-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "TokenIAMRoleDefaultPolicy7AF6097A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TokenTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TokenTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "TokenIAMRoleDefaultPolicy7AF6097A", + "Roles": [ + { + "Ref": "TokenIAMRole7156B56D" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Token-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Token-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "TokenIAMRole7156B56D" + } + ] + } + }, + "TokenDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "TokenTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "TokenTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TokenIAMRole7156B56D", + "Arn" + ] + } + }, + "DependsOn": [ + "TokenIAMRole7156B56D" + ] + }, + "QueryGetTokenDataResolverFnQueryGetTokenDataResolverFnAppSyncFunctionADD57134": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Name": "QueryGetTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getToken.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TokenDataSource" + ] + }, + "GetTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getToken", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTokenDataResolverFnQueryGetTokenDataResolverFnAppSyncFunctionADD57134", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TokenTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListTokensDataResolverFnQueryListTokensDataResolverFnAppSyncFunctionBC5C8AB1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Name": "QueryListTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TokenDataSource" + ] + }, + "ListTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listTokens", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListTokensDataResolverFnQueryListTokensDataResolverFnAppSyncFunctionBC5C8AB1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TokenTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateTokenDataResolverFnMutationCreateTokenDataResolverFnAppSyncFunction05A72524": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Name": "MutationCreateTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createToken.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TokenDataSource" + ] + }, + "CreateTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createToken", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateTokenDataResolverFnMutationCreateTokenDataResolverFnAppSyncFunction05A72524", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TokenTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateTokenDataResolverFnMutationUpdateTokenDataResolverFnAppSyncFunction52301EFA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Name": "MutationUpdateTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateToken.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TokenDataSource" + ] + }, + "UpdateTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateToken", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateTokenDataResolverFnMutationUpdateTokenDataResolverFnAppSyncFunction52301EFA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TokenTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteTokenDataResolverFnMutationDeleteTokenDataResolverFnAppSyncFunction32C786BF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Name": "MutationDeleteTokenDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteToken.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteToken.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TokenDataSource" + ] + }, + "DeleteTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteToken", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteTokenDataResolverFnMutationDeleteTokenDataResolverFnAppSyncFunction32C786BF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TokenTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateToken", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateToken", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteTokenResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteToken", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteToken\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetTokenByAddressDataResolverFnQueryGetTokenByAddressDataResolverFnAppSyncFunction9FB5E49B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Name": "QueryGetTokenByAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTokenByAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTokenByAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TokenDataSource" + ] + }, + "QuerygetTokenByAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTokenByAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTokenByAddressDataResolverFnQueryGetTokenByAddressDataResolverFnAppSyncFunction9FB5E49B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTokenByAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TokenTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetTokensByTypeDataResolverFnQueryGetTokensByTypeDataResolverFnAppSyncFunction142B5117": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Name": "QueryGetTokensByTypeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTokensByType.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTokensByType.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TokenDataSource" + ] + }, + "QuerygetTokensByTypeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTokensByType", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTokensByTypeDataResolverFnQueryGetTokensByTypeDataResolverFnAppSyncFunction142B5117", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTokensByType\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TokenTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttTokenTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TokenTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TokenTable:StreamArn" + ] + ] + } + } + }, + "GetAttTokenTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "TokenTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TokenTable:Name" + ] + ] + } + } + }, + "GetAttTokenDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TokenDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackTokenTokenDataSource5FB42D9DName": { + "Value": { + "Fn::GetAtt": [ + "TokenDataSource", + "Name" + ] + } + }, + "transformerrootstackTokenTokenTableB8C40491Ref": { + "Value": { + "Ref": "TokenTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/Transaction.json b/amplify/backend/api/colonycdapp/build/stacks/Transaction.json new file mode 100644 index 00000000000..206c967e206 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/Transaction.json @@ -0,0 +1,1284 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "TransactionTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "from", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + }, + { + "AttributeName": "groupId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byInitiatorAddress", + "KeySchema": [ + { + "AttributeName": "from", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byGroup", + "KeySchema": [ + { + "AttributeName": "groupId", + "KeyType": "HASH" + }, + { + "AttributeName": "from", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Transaction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "TransactionIAMRole04BA2E25": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "TransactionIAMRole373077-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "TransactionIAMRoleDefaultPolicy87E82DF4": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TransactionTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TransactionTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "TransactionIAMRoleDefaultPolicy87E82DF4", + "Roles": [ + { + "Ref": "TransactionIAMRole04BA2E25" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Transaction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Transaction-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "TransactionIAMRole04BA2E25" + } + ] + } + }, + "TransactionDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "TransactionTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "TransactionTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TransactionIAMRole04BA2E25", + "Arn" + ] + } + }, + "DependsOn": [ + "TransactionIAMRole04BA2E25" + ] + }, + "QueryGetTransactionDataResolverFnQueryGetTransactionDataResolverFnAppSyncFunction3FC5A37D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Name": "QueryGetTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TransactionDataSource" + ] + }, + "GetTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTransaction", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTransactionDataResolverFnQueryGetTransactionDataResolverFnAppSyncFunction3FC5A37D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListTransactionsDataResolverFnQueryListTransactionsDataResolverFnAppSyncFunctionAC8D8069": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Name": "QueryListTransactionsDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTransactions.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTransactions.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TransactionDataSource" + ] + }, + "ListTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listTransactions", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListTransactionsDataResolverFnQueryListTransactionsDataResolverFnAppSyncFunctionAC8D8069", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTransactions\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateTransactionDataResolverFnMutationCreateTransactionDataResolverFnAppSyncFunction280BF4F6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Name": "MutationCreateTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TransactionDataSource" + ] + }, + "CreateTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createTransaction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateTransactionDataResolverFnMutationCreateTransactionDataResolverFnAppSyncFunction280BF4F6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateTransactionDataResolverFnMutationUpdateTransactionDataResolverFnAppSyncFunction46B5091F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Name": "MutationUpdateTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TransactionDataSource" + ] + }, + "UpdateTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateTransaction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateTransactionDataResolverFnMutationUpdateTransactionDataResolverFnAppSyncFunction46B5091F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteTransactionDataResolverFnMutationDeleteTransactionDataResolverFnAppSyncFunction5CA52E8F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Name": "MutationDeleteTransactionDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTransaction.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTransaction.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TransactionDataSource" + ] + }, + "DeleteTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteTransaction", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteTransactionDataResolverFnMutationDeleteTransactionDataResolverFnAppSyncFunction5CA52E8F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateTransaction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateTransaction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteTransactionResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteTransaction", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTransaction\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetTransactionsByUserDataResolverFnQueryGetTransactionsByUserDataResolverFnAppSyncFunction6B73D801": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Name": "QueryGetTransactionsByUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTransactionsByUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTransactionsByUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TransactionDataSource" + ] + }, + "QuerygetTransactionsByUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTransactionsByUser", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTransactionsByUserDataResolverFnQueryGetTransactionsByUserDataResolverFnAppSyncFunction6B73D801", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTransactionsByUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetTransactionsByUserAndGroupDataResolverFnQueryGetTransactionsByUserAndGroupDataResolverFnAppSyncFunction82D9B27F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Name": "QueryGetTransactionsByUserAndGroupDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTransactionsByUserAndGroup.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTransactionsByUserAndGroup.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TransactionDataSource" + ] + }, + "QuerygetTransactionsByUserAndGroupResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTransactionsByUserAndGroup", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTransactionsByUserAndGroupDataResolverFnQueryGetTransactionsByUserAndGroupDataResolverFnAppSyncFunction82D9B27F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTransactionsByUserAndGroup\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TransactionTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttTransactionTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TransactionTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TransactionTable:StreamArn" + ] + ] + } + } + }, + "GetAttTransactionTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "TransactionTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TransactionTable:Name" + ] + ] + } + } + }, + "GetAttTransactionDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TransactionDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackTransactionTransactionDataSource76E1AA69Name": { + "Value": { + "Fn::GetAtt": [ + "TransactionDataSource", + "Name" + ] + } + }, + "transformerrootstackTransactionTransactionTable030B7013Ref": { + "Value": { + "Ref": "TransactionTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/User.json b/amplify/backend/api/colonycdapp/build/stacks/User.json new file mode 100644 index 00000000000..b447480613d --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/User.json @@ -0,0 +1,1144 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "UserTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byAddress", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "User-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "UserIAMRole93CEE926": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "UserIAMRole0e5381-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "UserIAMRoleDefaultPolicyCDAB2AF7": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "UserTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "UserTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "UserIAMRoleDefaultPolicyCDAB2AF7", + "Roles": [ + { + "Ref": "UserIAMRole93CEE926" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "User-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "User-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "UserIAMRole93CEE926" + } + ] + } + }, + "UserDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "UserTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "UserTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "UserIAMRole93CEE926", + "Arn" + ] + } + }, + "DependsOn": [ + "UserIAMRole93CEE926" + ] + }, + "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Name": "QueryGetUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "GetUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUser", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Name": "QueryListUsersDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUsers.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUsers.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "ListUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listUsers", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listUsers\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Name": "MutationCreateUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "CreateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createUser", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Name": "MutationUpdateUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "UpdateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateUser", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Name": "MutationDeleteUserDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "DeleteUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteUser", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateUser", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateUser", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteUser", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetUserByAddressDataResolverFnQueryGetUserByAddressDataResolverFnAppSyncFunction2AAC2012": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Name": "QueryGetUserByAddressDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserByAddress.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserByAddress.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "QuerygetUserByAddressResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserByAddress", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetUserByAddressDataResolverFnQueryGetUserByAddressDataResolverFnAppSyncFunction2AAC2012", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserByAddress\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttUserTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "UserTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserTable:StreamArn" + ] + ] + } + } + }, + "GetAttUserTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "UserTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserTable:Name" + ] + ] + } + } + }, + "GetAttUserDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackUserUserDataSourceA8C4C398Name": { + "Value": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + } + }, + "transformerrootstackUserUserTableA7A02430Ref": { + "Value": { + "Ref": "UserTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/UserStake.json b/amplify/backend/api/colonycdapp/build/stacks/UserStake.json new file mode 100644 index 00000000000..39c47ab970a --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/UserStake.json @@ -0,0 +1,1156 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "UserStakeTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userAddress", + "AttributeType": "S" + }, + { + "AttributeName": "createdAt", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserAndColony", + "KeySchema": [ + { + "AttributeName": "userAddress", + "KeyType": "HASH" + }, + { + "AttributeName": "createdAt", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "UserStake-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "UserStakeIAMRole0D4C9E03": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "UserStakeIAMRoleb36feb-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "UserStakeIAMRoleDefaultPolicyE799AF72": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "UserStakeTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "UserStakeTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "UserStakeIAMRoleDefaultPolicyE799AF72", + "Roles": [ + { + "Ref": "UserStakeIAMRole0D4C9E03" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "UserStake-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "UserStake-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "UserStakeIAMRole0D4C9E03" + } + ] + } + }, + "UserStakeDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "UserStakeTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "UserStakeTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "UserStakeIAMRole0D4C9E03", + "Arn" + ] + } + }, + "DependsOn": [ + "UserStakeIAMRole0D4C9E03" + ] + }, + "QueryGetUserStakeDataResolverFnQueryGetUserStakeDataResolverFnAppSyncFunction77BAE98A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + }, + "Name": "QueryGetUserStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserStakeDataSource" + ] + }, + "GetUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserStake", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetUserStakeDataResolverFnQueryGetUserStakeDataResolverFnAppSyncFunction77BAE98A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListUserStakesDataResolverFnQueryListUserStakesDataResolverFnAppSyncFunction62B3AEE3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + }, + "Name": "QueryListUserStakesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUserStakes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUserStakes.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserStakeDataSource" + ] + }, + "ListUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listUserStakes", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListUserStakesDataResolverFnQueryListUserStakesDataResolverFnAppSyncFunction62B3AEE3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listUserStakes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateUserStakeDataResolverFnMutationCreateUserStakeDataResolverFnAppSyncFunctionFB677300": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + }, + "Name": "MutationCreateUserStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUserStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUserStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserStakeDataSource" + ] + }, + "CreateUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createUserStake", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateUserStakeDataResolverFnMutationCreateUserStakeDataResolverFnAppSyncFunctionFB677300", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUserStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateUserStakeDataResolverFnMutationUpdateUserStakeDataResolverFnAppSyncFunctionAC538FEE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + }, + "Name": "MutationUpdateUserStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUserStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUserStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserStakeDataSource" + ] + }, + "UpdateUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateUserStake", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateUserStakeDataResolverFnMutationUpdateUserStakeDataResolverFnAppSyncFunctionAC538FEE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateUserStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteUserStakeDataResolverFnMutationDeleteUserStakeDataResolverFnAppSyncFunction9674D6B2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + }, + "Name": "MutationDeleteUserStakeDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUserStake.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUserStake.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserStakeDataSource" + ] + }, + "DeleteUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteUserStake", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteUserStakeDataResolverFnMutationDeleteUserStakeDataResolverFnAppSyncFunction9674D6B2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteUserStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateUserStake", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateUserStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateUserStake", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateUserStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteUserStakeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteUserStake", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteUserStake\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryGetUserStakesDataResolverFnQueryGetUserStakesDataResolverFnAppSyncFunctionAE56F61C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + }, + "Name": "QueryGetUserStakesDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserStakes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserStakes.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserStakeDataSource" + ] + }, + "QuerygetUserStakesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserStakes", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetUserStakesDataResolverFnQueryGetUserStakesDataResolverFnAppSyncFunctionAE56F61C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserStakes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserStakeTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttUserStakeTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "UserStakeTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserStakeTable:StreamArn" + ] + ] + } + } + }, + "GetAttUserStakeTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "UserStakeTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserStakeTable:Name" + ] + ] + } + } + }, + "GetAttUserStakeDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserStakeDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackUserStakeUserStakeDataSource4515F88DName": { + "Value": { + "Fn::GetAtt": [ + "UserStakeDataSource", + "Name" + ] + } + }, + "transformerrootstackUserStakeUserStakeTableA6FC6F95Ref": { + "Value": { + "Ref": "UserStakeTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/api/colonycdapp/build/stacks/UserTokens.json b/amplify/backend/api/colonycdapp/build/stacks/UserTokens.json new file mode 100644 index 00000000000..4df60c6ffc8 --- /dev/null +++ b/amplify/backend/api/colonycdapp/build/stacks/UserTokens.json @@ -0,0 +1,1088 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "UserTokensTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "tokenID", + "AttributeType": "S" + }, + { + "AttributeName": "userID", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byToken", + "KeySchema": [ + { + "AttributeName": "tokenID", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + }, + { + "IndexName": "byUser", + "KeySchema": [ + { + "AttributeName": "userID", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "UserTokens-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "UserTokensIAMRole86C26DBC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "UserTokensIAMRolef743f4-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "UserTokensIAMRoleDefaultPolicy15336299": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "UserTokensTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "UserTokensTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "UserTokensIAMRoleDefaultPolicy15336299", + "Roles": [ + { + "Ref": "UserTokensIAMRole86C26DBC" + } + ] + } + }, + "DynamoDBAccess71ABE5AE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "UserTokens-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "UserTokens-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess71ABE5AE", + "Roles": [ + { + "Ref": "UserTokensIAMRole86C26DBC" + } + ] + } + }, + "UserTokensDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "Name": "UserTokensTable", + "Type": "AMAZON_DYNAMODB", + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "UserTokensTable" + } + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "UserTokensIAMRole86C26DBC", + "Arn" + ] + } + }, + "DependsOn": [ + "UserTokensIAMRole86C26DBC" + ] + }, + "QueryGetUserTokensDataResolverFnQueryGetUserTokensDataResolverFnAppSyncFunctionAB584BBD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserTokensDataSource", + "Name" + ] + }, + "Name": "QueryGetUserTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUserTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserTokensDataSource" + ] + }, + "GetUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUserTokens", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetUserTokensDataResolverFnQueryGetUserTokensDataResolverFnAppSyncFunctionAB584BBD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "QueryListUserTokensDataResolverFnQueryListUserTokensDataResolverFnAppSyncFunctionB1B1EAB7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserTokensDataSource", + "Name" + ] + }, + "Name": "QueryListUserTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUserTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUserTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserTokensDataSource" + ] + }, + "ListUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listUserTokens", + "TypeName": "Query", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListUserTokensDataResolverFnQueryListUserTokensDataResolverFnAppSyncFunctionB1B1EAB7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationCreateUserTokensDataResolverFnMutationCreateUserTokensDataResolverFnAppSyncFunction91541B21": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserTokensDataSource", + "Name" + ] + }, + "Name": "MutationCreateUserTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUserTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUserTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserTokensDataSource" + ] + }, + "CreateUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createUserTokens", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationcreateProfileinit0FunctionMutationcreateProfileinit0FunctionAppSyncFunction25ECE1A3FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateUserTokensDataResolverFnMutationCreateUserTokensDataResolverFnAppSyncFunction91541B21", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationUpdateUserTokensDataResolverFnMutationUpdateUserTokensDataResolverFnAppSyncFunction9E1DB682": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserTokensDataSource", + "Name" + ] + }, + "Name": "MutationUpdateUserTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUserTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUserTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserTokensDataSource" + ] + }, + "UpdateUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateUserTokens", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileMutationupdateProfileinit0FunctionMutationupdateProfileinit0FunctionAppSyncFunction76055D1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateUserTokensDataResolverFnMutationUpdateUserTokensDataResolverFnAppSyncFunction9E1DB682", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "MutationDeleteUserTokensDataResolverFnMutationDeleteUserTokensDataResolverFnAppSyncFunctionFA18AFC3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserTokensDataSource", + "Name" + ] + }, + "Name": "MutationDeleteUserTokensDataResolverFn", + "FunctionVersion": "2018-05-29", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUserTokens.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUserTokens.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserTokensDataSource" + ] + }, + "DeleteUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteUserTokens", + "TypeName": "Mutation", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteUserTokensDataResolverFnMutationDeleteUserTokensDataResolverFnAppSyncFunctionFA18AFC3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTokensTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononCreateUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateUserTokens", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononUpdateUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateUserTokens", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + }, + "SubscriptiononDeleteUserTokensResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteUserTokens", + "TypeName": "Subscription", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileQuerygetProfilepostAuth0FunctionQuerygetProfilepostAuth0FunctionAppSyncFunctionF75D72BBFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProfileNestedStackProfileNestedStackResource2A51D492OutputstransformerrootstackProfileSubscriptionOnCreateProfileDataResolverFnSubscriptionOnCreateProfileDataResolverFnAppSyncFunctionD0003F7AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteUserTokens\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)" + } + } + }, + "Outputs": { + "GetAttUserTokensTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "UserTokensTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserTokensTable:StreamArn" + ] + ] + } + } + }, + "GetAttUserTokensTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "UserTokensTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserTokensTable:Name" + ] + ] + } + } + }, + "GetAttUserTokensDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "UserTokensDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserTokensDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackUserTokensUserTokensDataSource039C2EB3Name": { + "Value": { + "Fn::GetAtt": [ + "UserTokensDataSource", + "Name" + ] + } + }, + "transformerrootstackUserTokensUserTokensTableC40CB7A3Ref": { + "Value": { + "Ref": "UserTokensTable" + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify/backend/awscloudformation/build/root-cloudformation-stack.json new file mode 100644 index 00000000000..bf021eda141 --- /dev/null +++ b/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -0,0 +1,156 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/function/createColonyEtherealMetadata/src/index.js b/amplify/backend/function/createColonyEtherealMetadata/src/index.js index 85459525dd6..86accbe18d5 100644 --- a/amplify/backend/function/createColonyEtherealMetadata/src/index.js +++ b/amplify/backend/function/createColonyEtherealMetadata/src/index.js @@ -17,7 +17,7 @@ let graphqlURL = 'http://localhost:20002/graphql'; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [apiKey, graphqlURL] = await getParams([ 'appsyncApiKey', diff --git a/amplify/backend/function/createPrivateBetaInvite/src/index.js b/amplify/backend/function/createPrivateBetaInvite/src/index.js index c7def5dd34e..b4f84218d00 100644 --- a/amplify/backend/function/createPrivateBetaInvite/src/index.js +++ b/amplify/backend/function/createPrivateBetaInvite/src/index.js @@ -6,7 +6,7 @@ let graphqlURL = 'http://localhost:20002/graphql'; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [apiKey, graphqlURL] = await getParams(['appsyncApiKey', 'graphqlUrl']); } diff --git a/amplify/backend/function/createUniqueUser/src/index.js b/amplify/backend/function/createUniqueUser/src/index.js index abfb8a1278f..357a2fc9838 100644 --- a/amplify/backend/function/createUniqueUser/src/index.js +++ b/amplify/backend/function/createUniqueUser/src/index.js @@ -18,7 +18,7 @@ let graphqlURL = 'http://localhost:20002/graphql'; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [apiKey, graphqlURL] = await getParams(['appsyncApiKey', 'graphqlUrl']); } diff --git a/amplify/backend/function/fetchColonyBalances/src/index.js b/amplify/backend/function/fetchColonyBalances/src/index.js index 9127193df7c..9af5bab5ae9 100644 --- a/amplify/backend/function/fetchColonyBalances/src/index.js +++ b/amplify/backend/function/fetchColonyBalances/src/index.js @@ -19,7 +19,7 @@ let networkAddress; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [networkAddress, apiKey, graphqlURL, rpcURL, network] = await getParams([ 'networkContractAddress', diff --git a/amplify/backend/function/fetchColonyNativeFundsClaim/src/index.js b/amplify/backend/function/fetchColonyNativeFundsClaim/src/index.js index 259dfa18594..f584c28056f 100644 --- a/amplify/backend/function/fetchColonyNativeFundsClaim/src/index.js +++ b/amplify/backend/function/fetchColonyNativeFundsClaim/src/index.js @@ -5,7 +5,7 @@ let rpcURL = 'http://network-contracts:8545'; // this needs to be extended to al const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [rpcURL] = await getParams(['chainRpcEndpoint']); } diff --git a/amplify/backend/function/fetchMotionState/src/utils.js b/amplify/backend/function/fetchMotionState/src/utils.js index a612a564d05..4fdd404682b 100644 --- a/amplify/backend/function/fetchMotionState/src/utils.js +++ b/amplify/backend/function/fetchMotionState/src/utils.js @@ -26,7 +26,7 @@ let network = Network.Custom; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [ apiKey, diff --git a/amplify/backend/function/fetchMotionTimeoutPeriods/src/index.js b/amplify/backend/function/fetchMotionTimeoutPeriods/src/index.js index d4ad5bc876d..d23b9ac3343 100644 --- a/amplify/backend/function/fetchMotionTimeoutPeriods/src/index.js +++ b/amplify/backend/function/fetchMotionTimeoutPeriods/src/index.js @@ -15,7 +15,7 @@ let reputationOracleEndpoint = const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [rpcURL, networkAddress, reputationOracleEndpoint, network] = await getParams([ diff --git a/amplify/backend/function/fetchTokenFromChain/src/index.js b/amplify/backend/function/fetchTokenFromChain/src/index.js index df5c46d456a..4ec10ceda9f 100644 --- a/amplify/backend/function/fetchTokenFromChain/src/index.js +++ b/amplify/backend/function/fetchTokenFromChain/src/index.js @@ -35,7 +35,7 @@ const setEnvVariables = async (network) => { rpcURL = getDevRpcUrl(network); } - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { let chainRpcParam = getRpcUrlParamName(network); const { getParams } = require('/opt/nodejs/getParams'); diff --git a/amplify/backend/function/fetchVoterRewards/src/utils.js b/amplify/backend/function/fetchVoterRewards/src/utils.js index a03e84e5c29..7734ddd28ab 100644 --- a/amplify/backend/function/fetchVoterRewards/src/utils.js +++ b/amplify/backend/function/fetchVoterRewards/src/utils.js @@ -19,7 +19,7 @@ let reputationOracleEndpoint = const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [ apiKey, diff --git a/amplify/backend/function/getSafeTransactionStatus/src/index.js b/amplify/backend/function/getSafeTransactionStatus/src/index.js index be2098e1ef3..4e7f6e14a44 100644 --- a/amplify/backend/function/getSafeTransactionStatus/src/index.js +++ b/amplify/backend/function/getSafeTransactionStatus/src/index.js @@ -14,7 +14,7 @@ let rpcURL = 'http://network-contracts:8545'; // this needs to be extended to al const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [rpcURL] = await getParams(['chainRpcEndpoint']); } diff --git a/amplify/backend/function/getSafeTransactionStatus/src/utils.js b/amplify/backend/function/getSafeTransactionStatus/src/utils.js index 452e54ac3ca..4bdc1af4bd5 100644 --- a/amplify/backend/function/getSafeTransactionStatus/src/utils.js +++ b/amplify/backend/function/getSafeTransactionStatus/src/utils.js @@ -42,7 +42,7 @@ const getApiKey = async (chainId) => { let etherscanApiKey = ''; const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [bscscanApiKey, etherscanApiKey] = await getParams([ 'bscscanApiKey', @@ -139,7 +139,7 @@ const getHomeProvider = async () => { const ENV = process.env.ENV; let rpcURL = LOCAL_HOME_CHAIN; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [rpcURL] = await getParams(['chainRpcEndpoint']); } diff --git a/amplify/backend/function/getUserReputation/src/index.js b/amplify/backend/function/getUserReputation/src/index.js index e9c8c2872fa..98790145f04 100644 --- a/amplify/backend/function/getUserReputation/src/index.js +++ b/amplify/backend/function/getUserReputation/src/index.js @@ -15,7 +15,7 @@ let network = Network.Custom; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [rpcURL, networkAddress, reputationOracleEndpoint, network] = await getParams([ diff --git a/amplify/backend/function/getUserTokenBalance/src/index.js b/amplify/backend/function/getUserTokenBalance/src/index.js index f0d06db17be..514aeb32fc3 100644 --- a/amplify/backend/function/getUserTokenBalance/src/index.js +++ b/amplify/backend/function/getUserTokenBalance/src/index.js @@ -23,7 +23,7 @@ let graphqlURL = 'http://localhost:20002/graphql'; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [rpcURL, networkAddress, network, apiKey, graphqlURL] = await getParams([ 'chainRpcEndpoint', diff --git a/amplify/backend/function/qaSSMtest/src/index.js b/amplify/backend/function/qaSSMtest/src/index.js index cdb483463ad..388301aba8e 100644 --- a/amplify/backend/function/qaSSMtest/src/index.js +++ b/amplify/backend/function/qaSSMtest/src/index.js @@ -12,7 +12,7 @@ let networkAddress; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [ apiKey, diff --git a/amplify/backend/function/updateContributorsWithReputation/src/index.js b/amplify/backend/function/updateContributorsWithReputation/src/index.js index f3c3e219e0e..2188b44615a 100644 --- a/amplify/backend/function/updateContributorsWithReputation/src/index.js +++ b/amplify/backend/function/updateContributorsWithReputation/src/index.js @@ -41,7 +41,7 @@ let network = Network.Custom; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [ apiKey, diff --git a/amplify/backend/function/validateUserInvite/src/index.js b/amplify/backend/function/validateUserInvite/src/index.js index 8344dbca7fd..f7d9dde97d3 100644 --- a/amplify/backend/function/validateUserInvite/src/index.js +++ b/amplify/backend/function/validateUserInvite/src/index.js @@ -14,7 +14,7 @@ let graphqlURL = 'http://localhost:20002/graphql'; const setEnvVariables = async () => { const ENV = process.env.ENV; - if (ENV === 'qaarbsep' || ENV === 'prodarbone') { + if (ENV === 'qaarbsep' || ENV === 'prodrevive') { const { getParams } = require('/opt/nodejs/getParams'); [apiKey, graphqlURL] = await getParams(['appsyncApiKey', 'graphqlUrl']); }