@adaptic/backend 0.0.1054 → 0.0.1056
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Account.cjs +26 -0
- package/AccountLinkingRequest.cjs +26 -0
- package/AccountRiskMetrics.cjs +58 -0
- package/Action.cjs +26 -0
- package/AdaConversation.cjs +84 -0
- package/AdaMessage.cjs +29 -0
- package/Alert.cjs +58 -0
- package/Allocation.cjs +58 -0
- package/AlpacaAccount.cjs +52 -0
- package/Authenticator.cjs +26 -0
- package/AutoFollowRule.cjs +84 -0
- package/BrokerageAccount.cjs +116 -0
- package/Customer.cjs +55 -0
- package/DeskDecision.cjs +116 -0
- package/FeatureFlagOverride.cjs +26 -0
- package/Follow.cjs +84 -0
- package/Fund.cjs +197 -0
- package/FundAssignment.cjs +84 -0
- package/Holding.cjs +87 -0
- package/Investor.cjs +55 -0
- package/InvestorDocument.cjs +87 -0
- package/InvestorTransaction.cjs +87 -0
- package/InviteToken.cjs +29 -0
- package/LinkedProvider.cjs +26 -0
- package/LlmConfiguration.cjs +26 -0
- package/Mandate.cjs +142 -0
- package/MandateApproval.cjs +55 -0
- package/MandateRule.cjs +29 -0
- package/MandateVersion.cjs +113 -0
- package/NotificationDelivery.cjs +26 -0
- package/NotificationEvent.cjs +87 -0
- package/NotificationPreference.cjs +26 -0
- package/OrgMembership.cjs +26 -0
- package/Organization.cjs +174 -0
- package/PushSubscription.cjs +26 -0
- package/RiskEscalationEvent.cjs +58 -0
- package/Session.cjs +26 -0
- package/Strategy.cjs +15 -0
- package/StrategyHealthSnapshot.cjs +58 -0
- package/StrategySubscription.cjs +54 -0
- package/TaxDocument.cjs +87 -0
- package/Trade.cjs +23 -0
- package/TradingPolicy.cjs +58 -0
- package/User.cjs +110 -0
- package/UserTotp.cjs +26 -0
- package/WaitlistEntry.cjs +26 -0
- package/esm/Account.mjs +26 -0
- package/esm/AccountLinkingRequest.mjs +26 -0
- package/esm/AccountRiskMetrics.mjs +58 -0
- package/esm/Action.mjs +26 -0
- package/esm/AdaConversation.mjs +84 -0
- package/esm/AdaMessage.mjs +29 -0
- package/esm/Alert.mjs +58 -0
- package/esm/Allocation.mjs +58 -0
- package/esm/AlpacaAccount.mjs +52 -0
- package/esm/Authenticator.mjs +26 -0
- package/esm/AutoFollowRule.mjs +84 -0
- package/esm/BrokerageAccount.mjs +116 -0
- package/esm/Customer.mjs +55 -0
- package/esm/DeskDecision.mjs +116 -0
- package/esm/FeatureFlagOverride.mjs +26 -0
- package/esm/Follow.mjs +84 -0
- package/esm/Fund.mjs +197 -0
- package/esm/FundAssignment.mjs +84 -0
- package/esm/Holding.mjs +87 -0
- package/esm/Investor.mjs +55 -0
- package/esm/InvestorDocument.mjs +87 -0
- package/esm/InvestorTransaction.mjs +87 -0
- package/esm/InviteToken.mjs +29 -0
- package/esm/LinkedProvider.mjs +26 -0
- package/esm/LlmConfiguration.mjs +26 -0
- package/esm/Mandate.mjs +142 -0
- package/esm/MandateApproval.mjs +55 -0
- package/esm/MandateRule.mjs +29 -0
- package/esm/MandateVersion.mjs +113 -0
- package/esm/NotificationDelivery.mjs +26 -0
- package/esm/NotificationEvent.mjs +87 -0
- package/esm/NotificationPreference.mjs +26 -0
- package/esm/OrgMembership.mjs +26 -0
- package/esm/Organization.mjs +174 -0
- package/esm/PushSubscription.mjs +26 -0
- package/esm/RiskEscalationEvent.mjs +58 -0
- package/esm/Session.mjs +26 -0
- package/esm/Strategy.mjs +15 -0
- package/esm/StrategyHealthSnapshot.mjs +58 -0
- package/esm/StrategySubscription.mjs +54 -0
- package/esm/TaxDocument.mjs +87 -0
- package/esm/Trade.mjs +23 -0
- package/esm/TradingPolicy.mjs +58 -0
- package/esm/User.mjs +110 -0
- package/esm/UserTotp.mjs +26 -0
- package/esm/WaitlistEntry.mjs +26 -0
- package/esm/auth/membership-write-authority.d.ts +110 -0
- package/esm/auth/membership-write-authority.mjs +125 -0
- package/esm/auth/mutation-authorization.d.ts +23 -4
- package/esm/auth/mutation-authorization.mjs +36 -3
- package/esm/auth/nested-write-policy.d.ts +4 -0
- package/esm/auth/nested-write-policy.mjs +19 -0
- package/esm/auth/tenancy-scope.d.ts +50 -8
- package/esm/auth/tenancy-scope.mjs +87 -10
- package/esm/generated/selectionSets/Strategy.d.ts +1 -1
- package/esm/generated/selectionSets/Strategy.mjs +2 -0
- package/esm/generated/selectionSets/StrategySubscription.d.ts +1 -1
- package/esm/generated/selectionSets/StrategySubscription.mjs +2 -0
- package/esm/generated/typeStrings/Strategy.d.ts +1 -1
- package/esm/generated/typeStrings/Strategy.mjs +7 -0
- package/esm/generated/typeStrings/index.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/enhance.mjs +79 -62
- package/esm/generated/typegraphql-prisma/enums/StrategyLifecycleState.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/enums/StrategyLifecycleState.mjs +1 -0
- package/esm/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.mjs +2 -0
- package/esm/generated/typegraphql-prisma/models/Fund.d.ts +5 -0
- package/esm/generated/typegraphql-prisma/models/Fund.mjs +4 -0
- package/esm/generated/typegraphql-prisma/models/Strategy.d.ts +30 -1
- package/esm/generated/typegraphql-prisma/models/Strategy.mjs +43 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyOrThrowArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindManyStrategyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/GroupByStrategyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumStrategyLifecycleStateFieldUpdateOperationsInput.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumStrategyLifecycleStateFilter.d.ts +3 -3
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumStrategyLifecycleStateWithAggregatesFilter.d.ts +3 -3
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundCreateNestedOneWithoutStrategiesInput.d.ts +9 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundCreateNestedOneWithoutStrategiesInput.mjs +41 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundCreateOrConnectWithoutStrategiesInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundCreateOrConnectWithoutStrategiesInput.mjs +33 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundCreateWithoutStrategiesInput.d.ts +53 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundCreateWithoutStrategiesInput.mjs +272 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpdateOneWithoutStrategiesNestedInput.d.ts +16 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpdateOneWithoutStrategiesNestedInput.mjs +72 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpdateToOneWithWhereWithoutStrategiesInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpdateToOneWithWhereWithoutStrategiesInput.mjs +33 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpdateWithoutStrategiesInput.d.ts +60 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpdateWithoutStrategiesInput.mjs +278 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpsertWithoutStrategiesInput.d.ts +9 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/FundUpsertWithoutStrategiesInput.mjs +41 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumStrategyLifecycleStateFilter.d.ts +3 -3
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumStrategyLifecycleStateWithAggregatesFilter.d.ts +3 -3
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.d.ts +2 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInput.d.ts +20 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInput.mjs +134 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInputEnvelope.d.ts +6 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInputEnvelope.mjs +32 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.d.ts +3 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.d.ts +3 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateNestedManyWithoutFundInput.d.ts +11 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateNestedManyWithoutFundInput.mjs +49 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateOrConnectWithoutFundInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateOrConnectWithoutFundInput.mjs +33 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutFundInput.d.ts +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutFundInput.mjs +151 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.d.ts +2 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.d.ts +2 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.d.ts +2 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithWhereWithoutFundInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithWhereWithoutFundInput.mjs +33 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithoutFundNestedInput.d.ts +22 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithoutFundNestedInput.mjs +102 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithWhereUniqueWithoutFundInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithWhereUniqueWithoutFundInput.mjs +33 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutFundInput.d.ts +33 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutFundInput.mjs +155 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpsertWithWhereUniqueWithoutFundInput.d.ts +9 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpsertWithWhereUniqueWithoutFundInput.mjs +41 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +17 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/index.mjs +17 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.d.ts +7 -1
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/FundCount.d.ts +3 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/FundCount.mjs +16 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.d.ts +3 -1
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.d.ts +3 -1
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.d.ts +3 -1
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/args/CreateManyAndReturnStrategyFundArgs.d.ts +5 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/args/CreateManyAndReturnStrategyFundArgs.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/args/FundCountStrategiesArgs.d.ts +5 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/args/FundCountStrategiesArgs.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/args/index.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/args/index.mjs +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/relations/User/args/UserOwnedStrategiesArgs.d.ts +1 -1
- package/esm/middleware/__tests__/mutation-auth-guard.harness.d.ts +2 -0
- package/esm/middleware/__tests__/mutation-auth-guard.harness.mjs +136 -10
- package/esm/middleware/mutation-auth-guard.d.ts +4 -2
- package/esm/middleware/mutation-auth-guard.mjs +20 -2
- package/esm/middleware/mutation-membership-facts.d.ts +133 -0
- package/esm/middleware/mutation-membership-facts.mjs +271 -0
- package/esm/middleware/mutation-tenant-facts.d.ts +4 -2
- package/esm/middleware/mutation-tenant-facts.mjs +4 -2
- package/esm/middleware/tenancy-scoping.mjs +15 -3
- package/esm/resolvers/custom/StrategyDraftResolver.d.ts +44 -0
- package/esm/resolvers/custom/StrategyDraftResolver.mjs +188 -0
- package/esm/resolvers/custom/index.d.ts +1 -0
- package/esm/resolvers/custom/index.mjs +1 -0
- package/esm/resolvers/custom/strategy-draft-service.d.ts +180 -0
- package/esm/resolvers/custom/strategy-draft-service.mjs +254 -0
- package/esm/resolvers/custom/strategy-spec-hash.d.ts +32 -0
- package/esm/resolvers/custom/strategy-spec-hash.mjs +54 -0
- package/esm/tests/strategy-fund-tenancy.harness.d.ts +20 -0
- package/esm/tests/strategy-fund-tenancy.harness.mjs +212 -0
- package/generated/typeStrings/Strategy.cjs +7 -0
- package/generated/typeStrings/Strategy.d.ts +1 -1
- package/generated/typeStrings/index.d.ts +1 -1
- package/generated/typegraphql-prisma/enhance.cjs +79 -62
- package/generated/typegraphql-prisma/enums/StrategyLifecycleState.cjs +1 -0
- package/generated/typegraphql-prisma/enums/StrategyLifecycleState.d.ts +1 -0
- package/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.cjs +2 -0
- package/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.d.ts +2 -0
- package/generated/typegraphql-prisma/models/Fund.d.ts +5 -0
- package/generated/typegraphql-prisma/models/Strategy.cjs +15 -1
- package/generated/typegraphql-prisma/models/Strategy.d.ts +30 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindManyStrategyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/GroupByStrategyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumStrategyLifecycleStateFieldUpdateOperationsInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumStrategyLifecycleStateFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/EnumStrategyLifecycleStateWithAggregatesFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/FundCreateNestedOneWithoutStrategiesInput.cjs +74 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundCreateNestedOneWithoutStrategiesInput.d.ts +9 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundCreateOrConnectWithoutStrategiesInput.cjs +67 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundCreateOrConnectWithoutStrategiesInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundCreateWithoutStrategiesInput.cjs +274 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundCreateWithoutStrategiesInput.d.ts +53 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpdateOneWithoutStrategiesNestedInput.cjs +101 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpdateOneWithoutStrategiesNestedInput.d.ts +16 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpdateToOneWithWhereWithoutStrategiesInput.cjs +67 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpdateToOneWithWhereWithoutStrategiesInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpdateWithoutStrategiesInput.cjs +280 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpdateWithoutStrategiesInput.d.ts +60 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpsertWithoutStrategiesInput.cjs +74 -0
- package/generated/typegraphql-prisma/resolvers/inputs/FundUpsertWithoutStrategiesInput.d.ts +9 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumStrategyLifecycleStateFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumStrategyLifecycleStateWithAggregatesFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInput.cjs +154 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInput.d.ts +20 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInputEnvelope.cjs +66 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyFundInputEnvelope.d.ts +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.d.ts +3 -1
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.d.ts +3 -1
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateNestedManyWithoutFundInput.cjs +81 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateNestedManyWithoutFundInput.d.ts +11 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateOrConnectWithoutFundInput.cjs +67 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateOrConnectWithoutFundInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutFundInput.cjs +169 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutFundInput.d.ts +25 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithWhereWithoutFundInput.cjs +67 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithWhereWithoutFundInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithoutFundNestedInput.cjs +127 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyWithoutFundNestedInput.d.ts +22 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithWhereUniqueWithoutFundInput.cjs +67 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithWhereUniqueWithoutFundInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutFundInput.cjs +173 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutFundInput.d.ts +33 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpsertWithWhereUniqueWithoutFundInput.cjs +74 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpsertWithWhereUniqueWithoutFundInput.d.ts +9 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/index.cjs +84 -50
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +17 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.cjs +28 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.d.ts +7 -1
- package/generated/typegraphql-prisma/resolvers/outputs/FundCount.cjs +15 -0
- package/generated/typegraphql-prisma/resolvers/outputs/FundCount.d.ts +3 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.d.ts +3 -1
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.d.ts +3 -1
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.d.ts +3 -1
- package/generated/typegraphql-prisma/resolvers/outputs/args/CreateManyAndReturnStrategyFundArgs.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/outputs/args/CreateManyAndReturnStrategyFundArgs.d.ts +5 -0
- package/generated/typegraphql-prisma/resolvers/outputs/args/FundCountStrategiesArgs.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/outputs/args/FundCountStrategiesArgs.d.ts +5 -0
- package/generated/typegraphql-prisma/resolvers/outputs/args/index.cjs +7 -3
- package/generated/typegraphql-prisma/resolvers/outputs/args/index.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/relations/User/args/UserOwnedStrategiesArgs.d.ts +1 -1
- package/package.json +1 -1
- package/resolvers/custom/StrategyDraftResolver.cjs +221 -0
- package/resolvers/custom/StrategyDraftResolver.d.ts +44 -0
- package/resolvers/custom/index.cjs +5 -1
- package/resolvers/custom/index.d.ts +1 -0
- package/resolvers/custom/strategy-draft-service.cjs +262 -0
- package/resolvers/custom/strategy-draft-service.d.ts +180 -0
- package/resolvers/custom/strategy-spec-hash.cjs +58 -0
- package/resolvers/custom/strategy-spec-hash.d.ts +32 -0
- package/server.cjs +1 -0
|
@@ -3,6 +3,7 @@ import * as TypeGraphQL from "type-graphql";
|
|
|
3
3
|
export var StrategyLifecycleState;
|
|
4
4
|
(function (StrategyLifecycleState) {
|
|
5
5
|
StrategyLifecycleState["DRAFT"] = "DRAFT";
|
|
6
|
+
StrategyLifecycleState["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
6
7
|
StrategyLifecycleState["SHADOW"] = "SHADOW";
|
|
7
8
|
StrategyLifecycleState["ACTIVE"] = "ACTIVE";
|
|
8
9
|
StrategyLifecycleState["PAUSED"] = "PAUSED";
|
|
@@ -9,8 +9,10 @@ export declare enum StrategyScalarFieldEnum {
|
|
|
9
9
|
kind = "kind",
|
|
10
10
|
spec = "spec",
|
|
11
11
|
backtestJobId = "backtestJobId",
|
|
12
|
+
backtestSpecHash = "backtestSpecHash",
|
|
12
13
|
desk = "desk",
|
|
13
14
|
ownerUserId = "ownerUserId",
|
|
15
|
+
fundId = "fundId",
|
|
14
16
|
createdAt = "createdAt",
|
|
15
17
|
updatedAt = "updatedAt",
|
|
16
18
|
deletedAt = "deletedAt"
|
|
@@ -11,8 +11,10 @@ export var StrategyScalarFieldEnum;
|
|
|
11
11
|
StrategyScalarFieldEnum["kind"] = "kind";
|
|
12
12
|
StrategyScalarFieldEnum["spec"] = "spec";
|
|
13
13
|
StrategyScalarFieldEnum["backtestJobId"] = "backtestJobId";
|
|
14
|
+
StrategyScalarFieldEnum["backtestSpecHash"] = "backtestSpecHash";
|
|
14
15
|
StrategyScalarFieldEnum["desk"] = "desk";
|
|
15
16
|
StrategyScalarFieldEnum["ownerUserId"] = "ownerUserId";
|
|
17
|
+
StrategyScalarFieldEnum["fundId"] = "fundId";
|
|
16
18
|
StrategyScalarFieldEnum["createdAt"] = "createdAt";
|
|
17
19
|
StrategyScalarFieldEnum["updatedAt"] = "updatedAt";
|
|
18
20
|
StrategyScalarFieldEnum["deletedAt"] = "deletedAt";
|
|
@@ -11,6 +11,7 @@ import { InvestorTransaction } from "../models/InvestorTransaction";
|
|
|
11
11
|
import { Mandate } from "../models/Mandate";
|
|
12
12
|
import { NotificationEvent } from "../models/NotificationEvent";
|
|
13
13
|
import { Organization } from "../models/Organization";
|
|
14
|
+
import { Strategy } from "../models/Strategy";
|
|
14
15
|
import { TaxDocument } from "../models/TaxDocument";
|
|
15
16
|
import { User } from "../models/User";
|
|
16
17
|
import { FundCount } from "../resolvers/outputs/FundCount";
|
|
@@ -151,6 +152,10 @@ export declare class Fund {
|
|
|
151
152
|
* Desk decisions raised for this fund. TYPESTRING.SKIP=true GQL.SKIP=true Read through the root adaptic.<model>.* resolvers, which scope rows to their owner; the back-relation is not on the GraphQL output.
|
|
152
153
|
*/
|
|
153
154
|
deskDecisions?: DeskDecision[];
|
|
155
|
+
/**
|
|
156
|
+
* Strategies authored in this fund. TYPESTRING.SKIP=true GQL.SKIP=true Read through the root adaptic.strategy.* resolvers, which scope an authored strategy to the members of its fund. Omitted from every GraphQL type and input: a nested write through a fund must not create or re-home a strategy.
|
|
157
|
+
*/
|
|
158
|
+
strategies?: Strategy[];
|
|
154
159
|
/**
|
|
155
160
|
* Timestamp when the fund was created. TYPESTRING.SKIP=true
|
|
156
161
|
*/
|
|
@@ -148,6 +148,10 @@ let Fund = class Fund {
|
|
|
148
148
|
* Desk decisions raised for this fund. TYPESTRING.SKIP=true GQL.SKIP=true Read through the root adaptic.<model>.* resolvers, which scope rows to their owner; the back-relation is not on the GraphQL output.
|
|
149
149
|
*/
|
|
150
150
|
deskDecisions;
|
|
151
|
+
/**
|
|
152
|
+
* Strategies authored in this fund. TYPESTRING.SKIP=true GQL.SKIP=true Read through the root adaptic.strategy.* resolvers, which scope an authored strategy to the members of its fund. Omitted from every GraphQL type and input: a nested write through a fund must not create or re-home a strategy.
|
|
153
|
+
*/
|
|
154
|
+
strategies;
|
|
151
155
|
/**
|
|
152
156
|
* Timestamp when the fund was created. TYPESTRING.SKIP=true
|
|
153
157
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Prisma } from "@prisma/client";
|
|
2
|
+
import { Fund } from "../models/Fund";
|
|
2
3
|
import { StrategySubscription } from "../models/StrategySubscription";
|
|
3
4
|
import { Trade } from "../models/Trade";
|
|
4
5
|
import { User } from "../models/User";
|
|
@@ -39,7 +40,7 @@ export declare class Strategy {
|
|
|
39
40
|
* Lifecycle stage. New rows default to DRAFT so a strategy is never
|
|
40
41
|
* recorded as live merely by virtue of existing.
|
|
41
42
|
*/
|
|
42
|
-
lifecycleState: "DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED";
|
|
43
|
+
lifecycleState: "DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED";
|
|
43
44
|
/**
|
|
44
45
|
* SHA-256 (hex) of the canonical JSON manifest describing what this
|
|
45
46
|
* strategy runs (prompt id, feature view, exit tiers). NULL means no
|
|
@@ -61,8 +62,18 @@ export declare class Strategy {
|
|
|
61
62
|
spec?: Prisma.JsonValue | null;
|
|
62
63
|
/**
|
|
63
64
|
* Identifier of the backtest job run against `spec`. NULL means none has run.
|
|
65
|
+
* Recorded for a user's draft only by `recordStrategyDraftBacktest`, which
|
|
66
|
+
* stamps `backtestSpecHash` with it, and cleared by `saveStrategyDraft`
|
|
67
|
+
* whenever the spec changes.
|
|
64
68
|
*/
|
|
65
69
|
backtestJobId?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* SHA-256 (hex) of the canonical JSON of the `spec` the backtest in
|
|
72
|
+
* `backtestJobId` was run against (`src/resolvers/custom/strategy-spec-hash.ts`).
|
|
73
|
+
* A backtest attests a spec only while this equals the hash of the stored
|
|
74
|
+
* spec. NULL means no backtest is recorded against any spec.
|
|
75
|
+
*/
|
|
76
|
+
backtestSpecHash?: string | null;
|
|
66
77
|
/**
|
|
67
78
|
* The agent desk this strategy trades under. NULL means no operator has
|
|
68
79
|
* assigned it yet: a strategy is never placed on a desk by default, because
|
|
@@ -82,6 +93,24 @@ export declare class Strategy {
|
|
|
82
93
|
* TYPESTRING.SKIP=true GQL.SKIP=true
|
|
83
94
|
*/
|
|
84
95
|
owner?: User | null;
|
|
96
|
+
/**
|
|
97
|
+
* The fund an authored strategy belongs to. Stamped once, from the
|
|
98
|
+
* author's request, by `createStrategyDraft`, which admits only a member of
|
|
99
|
+
* that fund; no write changes it afterwards, so a draft never moves
|
|
100
|
+
* between funds. A signed-in user reads an authored strategy only in a fund
|
|
101
|
+
* they belong to (`src/auth/tenancy-scope.ts`). NULL for SYSTEM strategies,
|
|
102
|
+
* which belong to the platform rather than to any fund.
|
|
103
|
+
*/
|
|
104
|
+
fundId?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Relation to the owning Fund. Restrict: a fund that still holds authored
|
|
107
|
+
* strategies is not hard-deleted out from under them. Omitted from every
|
|
108
|
+
* GraphQL type and input, so no generated write can set or change
|
|
109
|
+
* `fundId` (the checked inputs carry a foreign key only through its
|
|
110
|
+
* relation); filter on the `fundId` scalar instead.
|
|
111
|
+
* TYPESTRING.SKIP=true GQL.SKIP=true
|
|
112
|
+
*/
|
|
113
|
+
fund?: Fund | null;
|
|
85
114
|
/**
|
|
86
115
|
* Per-account opt-ins into this strategy. TYPESTRING.SKIP=true GQL.SKIP=true
|
|
87
116
|
*/
|
|
@@ -72,8 +72,18 @@ let Strategy = class Strategy {
|
|
|
72
72
|
spec;
|
|
73
73
|
/**
|
|
74
74
|
* Identifier of the backtest job run against `spec`. NULL means none has run.
|
|
75
|
+
* Recorded for a user's draft only by `recordStrategyDraftBacktest`, which
|
|
76
|
+
* stamps `backtestSpecHash` with it, and cleared by `saveStrategyDraft`
|
|
77
|
+
* whenever the spec changes.
|
|
75
78
|
*/
|
|
76
79
|
backtestJobId;
|
|
80
|
+
/**
|
|
81
|
+
* SHA-256 (hex) of the canonical JSON of the `spec` the backtest in
|
|
82
|
+
* `backtestJobId` was run against (`src/resolvers/custom/strategy-spec-hash.ts`).
|
|
83
|
+
* A backtest attests a spec only while this equals the hash of the stored
|
|
84
|
+
* spec. NULL means no backtest is recorded against any spec.
|
|
85
|
+
*/
|
|
86
|
+
backtestSpecHash;
|
|
77
87
|
/**
|
|
78
88
|
* The agent desk this strategy trades under. NULL means no operator has
|
|
79
89
|
* assigned it yet: a strategy is never placed on a desk by default, because
|
|
@@ -93,6 +103,24 @@ let Strategy = class Strategy {
|
|
|
93
103
|
* TYPESTRING.SKIP=true GQL.SKIP=true
|
|
94
104
|
*/
|
|
95
105
|
owner;
|
|
106
|
+
/**
|
|
107
|
+
* The fund an authored strategy belongs to. Stamped once, from the
|
|
108
|
+
* author's request, by `createStrategyDraft`, which admits only a member of
|
|
109
|
+
* that fund; no write changes it afterwards, so a draft never moves
|
|
110
|
+
* between funds. A signed-in user reads an authored strategy only in a fund
|
|
111
|
+
* they belong to (`src/auth/tenancy-scope.ts`). NULL for SYSTEM strategies,
|
|
112
|
+
* which belong to the platform rather than to any fund.
|
|
113
|
+
*/
|
|
114
|
+
fundId;
|
|
115
|
+
/**
|
|
116
|
+
* Relation to the owning Fund. Restrict: a fund that still holds authored
|
|
117
|
+
* strategies is not hard-deleted out from under them. Omitted from every
|
|
118
|
+
* GraphQL type and input, so no generated write can set or change
|
|
119
|
+
* `fundId` (the checked inputs carry a foreign key only through its
|
|
120
|
+
* relation); filter on the `fundId` scalar instead.
|
|
121
|
+
* TYPESTRING.SKIP=true GQL.SKIP=true
|
|
122
|
+
*/
|
|
123
|
+
fund;
|
|
96
124
|
/**
|
|
97
125
|
* Per-account opt-ins into this strategy. TYPESTRING.SKIP=true GQL.SKIP=true
|
|
98
126
|
*/
|
|
@@ -181,10 +209,17 @@ __decorate([
|
|
|
181
209
|
__decorate([
|
|
182
210
|
TypeGraphQL.Field(_type => String, {
|
|
183
211
|
nullable: true,
|
|
184
|
-
description: "Identifier of the backtest job run against `spec`. NULL means none has run."
|
|
212
|
+
description: "Identifier of the backtest job run against `spec`. NULL means none has run.\nRecorded for a user's draft only by `recordStrategyDraftBacktest`, which\nstamps `backtestSpecHash` with it, and cleared by `saveStrategyDraft`\nwhenever the spec changes."
|
|
185
213
|
}),
|
|
186
214
|
__metadata("design:type", Object)
|
|
187
215
|
], Strategy.prototype, "backtestJobId", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
TypeGraphQL.Field(_type => String, {
|
|
218
|
+
nullable: true,
|
|
219
|
+
description: "SHA-256 (hex) of the canonical JSON of the `spec` the backtest in\n`backtestJobId` was run against (`src/resolvers/custom/strategy-spec-hash.ts`).\nA backtest attests a spec only while this equals the hash of the stored\nspec. NULL means no backtest is recorded against any spec."
|
|
220
|
+
}),
|
|
221
|
+
__metadata("design:type", Object)
|
|
222
|
+
], Strategy.prototype, "backtestSpecHash", void 0);
|
|
188
223
|
__decorate([
|
|
189
224
|
TypeGraphQL.Field(_type => DeskType, {
|
|
190
225
|
nullable: true,
|
|
@@ -199,6 +234,13 @@ __decorate([
|
|
|
199
234
|
}),
|
|
200
235
|
__metadata("design:type", Object)
|
|
201
236
|
], Strategy.prototype, "ownerUserId", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
TypeGraphQL.Field(_type => String, {
|
|
239
|
+
nullable: true,
|
|
240
|
+
description: "The fund an authored strategy belongs to. Stamped once, from the\nauthor's request, by `createStrategyDraft`, which admits only a member of\nthat fund; no write changes it afterwards, so a draft never moves\nbetween funds. A signed-in user reads an authored strategy only in a fund\nthey belong to (`src/auth/tenancy-scope.ts`). NULL for SYSTEM strategies,\nwhich belong to the platform rather than to any fund."
|
|
241
|
+
}),
|
|
242
|
+
__metadata("design:type", Object)
|
|
243
|
+
], Strategy.prototype, "fundId", void 0);
|
|
202
244
|
__decorate([
|
|
203
245
|
TypeGraphQL.Field(_type => Date, {
|
|
204
246
|
nullable: false,
|
package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyArgs.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export declare class FindFirstStrategyArgs {
|
|
|
7
7
|
cursor?: StrategyWhereUniqueInput | undefined;
|
|
8
8
|
take?: number | undefined;
|
|
9
9
|
skip?: number | undefined;
|
|
10
|
-
distinct?: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "desk" | "ownerUserId" | "createdAt" | "updatedAt" | "deletedAt"> | undefined;
|
|
10
|
+
distinct?: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "backtestSpecHash" | "desk" | "ownerUserId" | "fundId" | "createdAt" | "updatedAt" | "deletedAt"> | undefined;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=FindFirstStrategyArgs.d.ts.map
|
|
@@ -7,6 +7,6 @@ export declare class FindFirstStrategyOrThrowArgs {
|
|
|
7
7
|
cursor?: StrategyWhereUniqueInput | undefined;
|
|
8
8
|
take?: number | undefined;
|
|
9
9
|
skip?: number | undefined;
|
|
10
|
-
distinct?: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "desk" | "ownerUserId" | "createdAt" | "updatedAt" | "deletedAt"> | undefined;
|
|
10
|
+
distinct?: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "backtestSpecHash" | "desk" | "ownerUserId" | "fundId" | "createdAt" | "updatedAt" | "deletedAt"> | undefined;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=FindFirstStrategyOrThrowArgs.d.ts.map
|
package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindManyStrategyArgs.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export declare class FindManyStrategyArgs {
|
|
|
7
7
|
cursor?: StrategyWhereUniqueInput | undefined;
|
|
8
8
|
take?: number | undefined;
|
|
9
9
|
skip?: number | undefined;
|
|
10
|
-
distinct?: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "desk" | "ownerUserId" | "createdAt" | "updatedAt" | "deletedAt"> | undefined;
|
|
10
|
+
distinct?: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "backtestSpecHash" | "desk" | "ownerUserId" | "fundId" | "createdAt" | "updatedAt" | "deletedAt"> | undefined;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=FindManyStrategyArgs.d.ts.map
|
package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/GroupByStrategyArgs.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { StrategyWhereInput } from "../../../inputs/StrategyWhereInput";
|
|
|
4
4
|
export declare class GroupByStrategyArgs {
|
|
5
5
|
where?: StrategyWhereInput | undefined;
|
|
6
6
|
orderBy?: StrategyOrderByWithAggregationInput[] | undefined;
|
|
7
|
-
by: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "desk" | "ownerUserId" | "createdAt" | "updatedAt" | "deletedAt">;
|
|
7
|
+
by: Array<"id" | "key" | "displayName" | "description" | "origin" | "lifecycleState" | "manifestHash" | "kind" | "spec" | "backtestJobId" | "backtestSpecHash" | "desk" | "ownerUserId" | "fundId" | "createdAt" | "updatedAt" | "deletedAt">;
|
|
8
8
|
having?: StrategyScalarWhereWithAggregatesInput | undefined;
|
|
9
9
|
take?: number | undefined;
|
|
10
10
|
skip?: number | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare class EnumStrategyLifecycleStateFieldUpdateOperationsInput {
|
|
2
|
-
set?: "DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED" | undefined;
|
|
2
|
+
set?: "DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED" | undefined;
|
|
3
3
|
}
|
|
4
4
|
//# sourceMappingURL=EnumStrategyLifecycleStateFieldUpdateOperationsInput.d.ts.map
|
package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumStrategyLifecycleStateFilter.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NestedEnumStrategyLifecycleStateFilter } from "../inputs/NestedEnumStrategyLifecycleStateFilter";
|
|
2
2
|
export declare class EnumStrategyLifecycleStateFilter {
|
|
3
|
-
equals?: "DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED" | undefined;
|
|
4
|
-
in?: Array<"DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
5
|
-
notIn?: Array<"DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
3
|
+
equals?: "DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED" | undefined;
|
|
4
|
+
in?: Array<"DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
5
|
+
notIn?: Array<"DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
6
6
|
not?: NestedEnumStrategyLifecycleStateFilter | undefined;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=EnumStrategyLifecycleStateFilter.d.ts.map
|
|
@@ -2,9 +2,9 @@ import { NestedEnumStrategyLifecycleStateFilter } from "../inputs/NestedEnumStra
|
|
|
2
2
|
import { NestedEnumStrategyLifecycleStateWithAggregatesFilter } from "../inputs/NestedEnumStrategyLifecycleStateWithAggregatesFilter";
|
|
3
3
|
import { NestedIntFilter } from "../inputs/NestedIntFilter";
|
|
4
4
|
export declare class EnumStrategyLifecycleStateWithAggregatesFilter {
|
|
5
|
-
equals?: "DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED" | undefined;
|
|
6
|
-
in?: Array<"DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
7
|
-
notIn?: Array<"DRAFT" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
5
|
+
equals?: "DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED" | undefined;
|
|
6
|
+
in?: Array<"DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
7
|
+
notIn?: Array<"DRAFT" | "PENDING_APPROVAL" | "SHADOW" | "ACTIVE" | "PAUSED" | "RETIRED"> | undefined;
|
|
8
8
|
not?: NestedEnumStrategyLifecycleStateWithAggregatesFilter | undefined;
|
|
9
9
|
_count?: NestedIntFilter | undefined;
|
|
10
10
|
_min?: NestedEnumStrategyLifecycleStateFilter | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FundCreateOrConnectWithoutStrategiesInput } from "../inputs/FundCreateOrConnectWithoutStrategiesInput";
|
|
2
|
+
import { FundCreateWithoutStrategiesInput } from "../inputs/FundCreateWithoutStrategiesInput";
|
|
3
|
+
import { FundWhereUniqueInput } from "../inputs/FundWhereUniqueInput";
|
|
4
|
+
export declare class FundCreateNestedOneWithoutStrategiesInput {
|
|
5
|
+
create?: FundCreateWithoutStrategiesInput | undefined;
|
|
6
|
+
connectOrCreate?: FundCreateOrConnectWithoutStrategiesInput | undefined;
|
|
7
|
+
connect?: FundWhereUniqueInput | undefined;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=FundCreateNestedOneWithoutStrategiesInput.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as TypeGraphQL from "type-graphql";
|
|
11
|
+
import { FundCreateOrConnectWithoutStrategiesInput } from "../inputs/FundCreateOrConnectWithoutStrategiesInput.mjs";
|
|
12
|
+
import { FundCreateWithoutStrategiesInput } from "../inputs/FundCreateWithoutStrategiesInput.mjs";
|
|
13
|
+
import { FundWhereUniqueInput } from "../inputs/FundWhereUniqueInput.mjs";
|
|
14
|
+
let FundCreateNestedOneWithoutStrategiesInput = class FundCreateNestedOneWithoutStrategiesInput {
|
|
15
|
+
create;
|
|
16
|
+
connectOrCreate;
|
|
17
|
+
connect;
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
TypeGraphQL.Field(_type => FundCreateWithoutStrategiesInput, {
|
|
21
|
+
nullable: true
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], FundCreateNestedOneWithoutStrategiesInput.prototype, "create", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
TypeGraphQL.Field(_type => FundCreateOrConnectWithoutStrategiesInput, {
|
|
27
|
+
nullable: true
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], FundCreateNestedOneWithoutStrategiesInput.prototype, "connectOrCreate", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
TypeGraphQL.Field(_type => FundWhereUniqueInput, {
|
|
33
|
+
nullable: true
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], FundCreateNestedOneWithoutStrategiesInput.prototype, "connect", void 0);
|
|
37
|
+
FundCreateNestedOneWithoutStrategiesInput = __decorate([
|
|
38
|
+
TypeGraphQL.InputType("FundCreateNestedOneWithoutStrategiesInput", {})
|
|
39
|
+
], FundCreateNestedOneWithoutStrategiesInput);
|
|
40
|
+
export { FundCreateNestedOneWithoutStrategiesInput };
|
|
41
|
+
//# sourceMappingURL=FundCreateNestedOneWithoutStrategiesInput.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FundCreateWithoutStrategiesInput } from "../inputs/FundCreateWithoutStrategiesInput";
|
|
2
|
+
import { FundWhereUniqueInput } from "../inputs/FundWhereUniqueInput";
|
|
3
|
+
export declare class FundCreateOrConnectWithoutStrategiesInput {
|
|
4
|
+
where: FundWhereUniqueInput;
|
|
5
|
+
create: FundCreateWithoutStrategiesInput;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=FundCreateOrConnectWithoutStrategiesInput.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as TypeGraphQL from "type-graphql";
|
|
11
|
+
import { FundCreateWithoutStrategiesInput } from "../inputs/FundCreateWithoutStrategiesInput.mjs";
|
|
12
|
+
import { FundWhereUniqueInput } from "../inputs/FundWhereUniqueInput.mjs";
|
|
13
|
+
let FundCreateOrConnectWithoutStrategiesInput = class FundCreateOrConnectWithoutStrategiesInput {
|
|
14
|
+
where;
|
|
15
|
+
create;
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
TypeGraphQL.Field(_type => FundWhereUniqueInput, {
|
|
19
|
+
nullable: false
|
|
20
|
+
}),
|
|
21
|
+
__metadata("design:type", FundWhereUniqueInput)
|
|
22
|
+
], FundCreateOrConnectWithoutStrategiesInput.prototype, "where", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
TypeGraphQL.Field(_type => FundCreateWithoutStrategiesInput, {
|
|
25
|
+
nullable: false
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", FundCreateWithoutStrategiesInput)
|
|
28
|
+
], FundCreateOrConnectWithoutStrategiesInput.prototype, "create", void 0);
|
|
29
|
+
FundCreateOrConnectWithoutStrategiesInput = __decorate([
|
|
30
|
+
TypeGraphQL.InputType("FundCreateOrConnectWithoutStrategiesInput", {})
|
|
31
|
+
], FundCreateOrConnectWithoutStrategiesInput);
|
|
32
|
+
export { FundCreateOrConnectWithoutStrategiesInput };
|
|
33
|
+
//# sourceMappingURL=FundCreateOrConnectWithoutStrategiesInput.js.map
|
package/esm/generated/typegraphql-prisma/resolvers/inputs/FundCreateWithoutStrategiesInput.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Prisma } from "@prisma/client";
|
|
2
|
+
import { AdaConversationCreateNestedManyWithoutFundInput } from "../inputs/AdaConversationCreateNestedManyWithoutFundInput";
|
|
3
|
+
import { AutoFollowRuleCreateNestedManyWithoutFundInput } from "../inputs/AutoFollowRuleCreateNestedManyWithoutFundInput";
|
|
4
|
+
import { BrokerageAccountCreateNestedManyWithoutFundInput } from "../inputs/BrokerageAccountCreateNestedManyWithoutFundInput";
|
|
5
|
+
import { DeskDecisionCreateNestedManyWithoutFundInput } from "../inputs/DeskDecisionCreateNestedManyWithoutFundInput";
|
|
6
|
+
import { FollowCreateNestedManyWithoutFundInput } from "../inputs/FollowCreateNestedManyWithoutFundInput";
|
|
7
|
+
import { FundAssignmentCreateNestedManyWithoutFundInput } from "../inputs/FundAssignmentCreateNestedManyWithoutFundInput";
|
|
8
|
+
import { HoldingCreateNestedManyWithoutFundInput } from "../inputs/HoldingCreateNestedManyWithoutFundInput";
|
|
9
|
+
import { InvestorDocumentCreateNestedManyWithoutFundInput } from "../inputs/InvestorDocumentCreateNestedManyWithoutFundInput";
|
|
10
|
+
import { InvestorTransactionCreateNestedManyWithoutFundInput } from "../inputs/InvestorTransactionCreateNestedManyWithoutFundInput";
|
|
11
|
+
import { MandateCreateNestedManyWithoutFundInput } from "../inputs/MandateCreateNestedManyWithoutFundInput";
|
|
12
|
+
import { NotificationEventCreateNestedManyWithoutFundInput } from "../inputs/NotificationEventCreateNestedManyWithoutFundInput";
|
|
13
|
+
import { OrganizationCreateNestedOneWithoutFundsInput } from "../inputs/OrganizationCreateNestedOneWithoutFundsInput";
|
|
14
|
+
import { TaxDocumentCreateNestedManyWithoutFundInput } from "../inputs/TaxDocumentCreateNestedManyWithoutFundInput";
|
|
15
|
+
import { UserCreateNestedOneWithoutManagedFundsInput } from "../inputs/UserCreateNestedOneWithoutManagedFundsInput";
|
|
16
|
+
import { UserCreateNestedOneWithoutOperatedFundsInput } from "../inputs/UserCreateNestedOneWithoutOperatedFundsInput";
|
|
17
|
+
export declare class FundCreateWithoutStrategiesInput {
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
name: string;
|
|
20
|
+
slug: string;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
status?: "DRAFT" | "PENDING_APPROVAL" | "ACTIVE" | "SUSPENDED" | "LIQUIDATING" | "CLOSED" | undefined;
|
|
23
|
+
currency?: string | undefined;
|
|
24
|
+
inceptionDate?: Date | undefined;
|
|
25
|
+
aum?: number | undefined;
|
|
26
|
+
navPerShare?: number | undefined;
|
|
27
|
+
sharesOutstanding?: number | undefined;
|
|
28
|
+
highWaterMarkNav?: number | undefined;
|
|
29
|
+
fees?: Prisma.InputJsonValue | undefined;
|
|
30
|
+
terms?: Prisma.InputJsonValue | undefined;
|
|
31
|
+
regulatory?: Prisma.InputJsonValue | undefined;
|
|
32
|
+
serviceProviders?: Prisma.InputJsonValue | undefined;
|
|
33
|
+
tradingOverrides?: Prisma.InputJsonValue | undefined;
|
|
34
|
+
createdAt?: Date | undefined;
|
|
35
|
+
updatedAt?: Date | undefined;
|
|
36
|
+
deletedAt?: Date | undefined;
|
|
37
|
+
organization: OrganizationCreateNestedOneWithoutFundsInput;
|
|
38
|
+
manager?: UserCreateNestedOneWithoutManagedFundsInput | undefined;
|
|
39
|
+
operator?: UserCreateNestedOneWithoutOperatedFundsInput | undefined;
|
|
40
|
+
brokerageAccounts?: BrokerageAccountCreateNestedManyWithoutFundInput | undefined;
|
|
41
|
+
assignments?: FundAssignmentCreateNestedManyWithoutFundInput | undefined;
|
|
42
|
+
holdings?: HoldingCreateNestedManyWithoutFundInput | undefined;
|
|
43
|
+
investorTransactions?: InvestorTransactionCreateNestedManyWithoutFundInput | undefined;
|
|
44
|
+
investorDocuments?: InvestorDocumentCreateNestedManyWithoutFundInput | undefined;
|
|
45
|
+
taxDocuments?: TaxDocumentCreateNestedManyWithoutFundInput | undefined;
|
|
46
|
+
notificationEvents?: NotificationEventCreateNestedManyWithoutFundInput | undefined;
|
|
47
|
+
mandates?: MandateCreateNestedManyWithoutFundInput | undefined;
|
|
48
|
+
follows?: FollowCreateNestedManyWithoutFundInput | undefined;
|
|
49
|
+
autoFollowRules?: AutoFollowRuleCreateNestedManyWithoutFundInput | undefined;
|
|
50
|
+
adaConversations?: AdaConversationCreateNestedManyWithoutFundInput | undefined;
|
|
51
|
+
deskDecisions?: DeskDecisionCreateNestedManyWithoutFundInput | undefined;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=FundCreateWithoutStrategiesInput.d.ts.map
|