@adaptic/backend-legacy 0.0.945 → 0.0.947
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/ABTest.cjs +5 -24
- package/Account.cjs +5 -14
- package/AccountDecisionRecord.cjs +5 -32
- package/AccountLinkingRequest.cjs +5 -24
- package/Action.cjs +5 -20
- package/Alert.cjs +5 -24
- package/Allocation.cjs +5 -2
- package/AlpacaAccount.cjs +5 -12
- package/AnalyticsConfiguration.cjs +5 -8
- package/AnalyticsSnapshot.cjs +5 -6
- package/Asset.cjs +5 -10
- package/AuditLog.cjs +5 -6
- package/Authenticator.cjs +5 -6
- package/Configuration.cjs +5 -8
- package/ConflictEvent.cjs +5 -6
- package/ConnectionHealthSnapshot.cjs +5 -6
- package/Customer.cjs +5 -22
- package/DeadLetterMessage.cjs +5 -12
- package/DecisionMemorySummary.cjs +5 -24
- package/EconomicEvent.cjs +5 -6
- package/EquityBar.cjs +5 -10
- package/Event.cjs +5 -50
- package/EventSnapshot.cjs +5 -6
- package/FeatureImportanceAnalysis.cjs +5 -6
- package/InstitutionalFlowSignal.cjs +5 -6
- package/InstitutionalHolding.cjs +5 -6
- package/InstitutionalSentimentAlerts.cjs +5 -6
- package/InstitutionalSentimentErrors.cjs +5 -0
- package/InstitutionalSentimentHistory.cjs +5 -6
- package/InstitutionalSentimentMetrics.cjs +5 -0
- package/InviteToken.cjs +5 -8
- package/LinkedProvider.cjs +5 -18
- package/LlmConfiguration.cjs +5 -2
- package/MLModelVersion.cjs +5 -0
- package/MLTrainingData.cjs +5 -12
- package/MarketSentiment.cjs +5 -0
- package/ModelArtifact.cjs +5 -0
- package/ModelVersion.cjs +5 -6
- package/ModelVersionArtifact.cjs +5 -12
- package/NewsArticle.cjs +5 -8
- package/NewsArticleAssetSentiment.cjs +5 -8
- package/OptionsContract.cjs +5 -6
- package/OptionsGreeksHistory.cjs +5 -6
- package/OptionsPosition.cjs +5 -18
- package/OptionsPositionEvent.cjs +5 -6
- package/OptionsTradeExecution.cjs +5 -24
- package/PolicyOverlay.cjs +5 -24
- package/PortfolioGreeksHistory.cjs +5 -12
- package/ScheduledOptionOrder.cjs +5 -6
- package/Session.cjs +5 -6
- package/SignalGeneratorMetrics.cjs +5 -6
- package/SignalLineage.cjs +5 -14
- package/SignalOutcome.cjs +5 -12
- package/SignalPriorityQueue.cjs +5 -14
- package/SyncEvent.cjs +5 -12
- package/SystemAlert.cjs +5 -24
- package/Trade.cjs +5 -18
- package/TradeAuditEvent.cjs +5 -50
- package/TradeExecutionHistory.cjs +5 -0
- package/TradeOutcome.cjs +5 -18
- package/TradingPolicy.cjs +5 -20
- package/User.cjs +5 -8
- package/VerificationToken.cjs +5 -0
- package/WaitlistEntry.cjs +5 -8
- package/client.cjs +17 -16
- package/esm/ABTest.d.ts.map +1 -1
- package/esm/ABTest.js.map +1 -1
- package/esm/ABTest.mjs +5 -24
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +5 -14
- package/esm/AccountDecisionRecord.d.ts.map +1 -1
- package/esm/AccountDecisionRecord.js.map +1 -1
- package/esm/AccountDecisionRecord.mjs +5 -32
- package/esm/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/AccountLinkingRequest.js.map +1 -1
- package/esm/AccountLinkingRequest.mjs +5 -24
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +5 -20
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +5 -24
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +5 -2
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +5 -12
- package/esm/AnalyticsConfiguration.d.ts.map +1 -1
- package/esm/AnalyticsConfiguration.js.map +1 -1
- package/esm/AnalyticsConfiguration.mjs +5 -8
- package/esm/AnalyticsSnapshot.d.ts.map +1 -1
- package/esm/AnalyticsSnapshot.js.map +1 -1
- package/esm/AnalyticsSnapshot.mjs +5 -6
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +5 -10
- package/esm/AuditLog.d.ts.map +1 -1
- package/esm/AuditLog.js.map +1 -1
- package/esm/AuditLog.mjs +5 -6
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +5 -6
- package/esm/Configuration.d.ts.map +1 -1
- package/esm/Configuration.js.map +1 -1
- package/esm/Configuration.mjs +5 -8
- package/esm/ConflictEvent.d.ts.map +1 -1
- package/esm/ConflictEvent.js.map +1 -1
- package/esm/ConflictEvent.mjs +5 -6
- package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
- package/esm/ConnectionHealthSnapshot.js.map +1 -1
- package/esm/ConnectionHealthSnapshot.mjs +5 -6
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +5 -22
- package/esm/DeadLetterMessage.d.ts.map +1 -1
- package/esm/DeadLetterMessage.js.map +1 -1
- package/esm/DeadLetterMessage.mjs +5 -12
- package/esm/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/DecisionMemorySummary.js.map +1 -1
- package/esm/DecisionMemorySummary.mjs +5 -24
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +5 -6
- package/esm/EquityBar.d.ts.map +1 -1
- package/esm/EquityBar.js.map +1 -1
- package/esm/EquityBar.mjs +5 -10
- package/esm/Event.d.ts.map +1 -1
- package/esm/Event.js.map +1 -1
- package/esm/Event.mjs +5 -50
- package/esm/EventSnapshot.d.ts.map +1 -1
- package/esm/EventSnapshot.js.map +1 -1
- package/esm/EventSnapshot.mjs +5 -6
- package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/FeatureImportanceAnalysis.mjs +5 -6
- package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/InstitutionalFlowSignal.js.map +1 -1
- package/esm/InstitutionalFlowSignal.mjs +5 -6
- package/esm/InstitutionalHolding.d.ts.map +1 -1
- package/esm/InstitutionalHolding.js.map +1 -1
- package/esm/InstitutionalHolding.mjs +5 -6
- package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
- package/esm/InstitutionalSentimentAlerts.js.map +1 -1
- package/esm/InstitutionalSentimentAlerts.mjs +5 -6
- package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
- package/esm/InstitutionalSentimentErrors.js.map +1 -1
- package/esm/InstitutionalSentimentErrors.mjs +5 -0
- package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
- package/esm/InstitutionalSentimentHistory.js.map +1 -1
- package/esm/InstitutionalSentimentHistory.mjs +5 -6
- package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
- package/esm/InstitutionalSentimentMetrics.js.map +1 -1
- package/esm/InstitutionalSentimentMetrics.mjs +5 -0
- package/esm/InviteToken.d.ts.map +1 -1
- package/esm/InviteToken.js.map +1 -1
- package/esm/InviteToken.mjs +5 -8
- package/esm/LinkedProvider.d.ts.map +1 -1
- package/esm/LinkedProvider.js.map +1 -1
- package/esm/LinkedProvider.mjs +5 -18
- package/esm/LlmConfiguration.d.ts.map +1 -1
- package/esm/LlmConfiguration.js.map +1 -1
- package/esm/LlmConfiguration.mjs +5 -2
- package/esm/MLModelVersion.d.ts.map +1 -1
- package/esm/MLModelVersion.js.map +1 -1
- package/esm/MLModelVersion.mjs +5 -0
- package/esm/MLTrainingData.d.ts.map +1 -1
- package/esm/MLTrainingData.js.map +1 -1
- package/esm/MLTrainingData.mjs +5 -12
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +5 -0
- package/esm/ModelArtifact.d.ts.map +1 -1
- package/esm/ModelArtifact.js.map +1 -1
- package/esm/ModelArtifact.mjs +5 -0
- package/esm/ModelVersion.d.ts.map +1 -1
- package/esm/ModelVersion.js.map +1 -1
- package/esm/ModelVersion.mjs +5 -6
- package/esm/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/ModelVersionArtifact.js.map +1 -1
- package/esm/ModelVersionArtifact.mjs +5 -12
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +5 -8
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +5 -8
- package/esm/OptionsContract.d.ts.map +1 -1
- package/esm/OptionsContract.js.map +1 -1
- package/esm/OptionsContract.mjs +5 -6
- package/esm/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/OptionsGreeksHistory.js.map +1 -1
- package/esm/OptionsGreeksHistory.mjs +5 -6
- package/esm/OptionsPosition.d.ts.map +1 -1
- package/esm/OptionsPosition.js.map +1 -1
- package/esm/OptionsPosition.mjs +5 -18
- package/esm/OptionsPositionEvent.d.ts.map +1 -1
- package/esm/OptionsPositionEvent.js.map +1 -1
- package/esm/OptionsPositionEvent.mjs +5 -6
- package/esm/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/OptionsTradeExecution.js.map +1 -1
- package/esm/OptionsTradeExecution.mjs +5 -24
- package/esm/PolicyOverlay.d.ts.map +1 -1
- package/esm/PolicyOverlay.js.map +1 -1
- package/esm/PolicyOverlay.mjs +5 -24
- package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/PortfolioGreeksHistory.js.map +1 -1
- package/esm/PortfolioGreeksHistory.mjs +5 -12
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +5 -6
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +5 -6
- package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
- package/esm/SignalGeneratorMetrics.js.map +1 -1
- package/esm/SignalGeneratorMetrics.mjs +5 -6
- package/esm/SignalLineage.d.ts.map +1 -1
- package/esm/SignalLineage.js.map +1 -1
- package/esm/SignalLineage.mjs +5 -14
- package/esm/SignalOutcome.d.ts.map +1 -1
- package/esm/SignalOutcome.js.map +1 -1
- package/esm/SignalOutcome.mjs +5 -12
- package/esm/SignalPriorityQueue.d.ts.map +1 -1
- package/esm/SignalPriorityQueue.js.map +1 -1
- package/esm/SignalPriorityQueue.mjs +5 -14
- package/esm/SyncEvent.d.ts.map +1 -1
- package/esm/SyncEvent.js.map +1 -1
- package/esm/SyncEvent.mjs +5 -12
- package/esm/SystemAlert.d.ts.map +1 -1
- package/esm/SystemAlert.js.map +1 -1
- package/esm/SystemAlert.mjs +5 -24
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +5 -18
- package/esm/TradeAuditEvent.d.ts.map +1 -1
- package/esm/TradeAuditEvent.js.map +1 -1
- package/esm/TradeAuditEvent.mjs +5 -50
- package/esm/TradeExecutionHistory.d.ts.map +1 -1
- package/esm/TradeExecutionHistory.js.map +1 -1
- package/esm/TradeExecutionHistory.mjs +5 -0
- package/esm/TradeOutcome.d.ts.map +1 -1
- package/esm/TradeOutcome.js.map +1 -1
- package/esm/TradeOutcome.mjs +5 -18
- package/esm/TradingPolicy.d.ts.map +1 -1
- package/esm/TradingPolicy.js.map +1 -1
- package/esm/TradingPolicy.mjs +5 -20
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +5 -8
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +5 -0
- package/esm/WaitlistEntry.d.ts.map +1 -1
- package/esm/WaitlistEntry.js.map +1 -1
- package/esm/WaitlistEntry.mjs +5 -8
- package/esm/apollo-client.server.d.ts.map +1 -1
- package/esm/apollo-client.server.js.map +1 -1
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/client.mjs +17 -16
- package/esm/prismaClient.d.ts.map +1 -1
- package/esm/prismaClient.js.map +1 -1
- package/esm/prismaClient.mjs +19 -8
- package/esm/utils.d.ts.map +1 -1
- package/esm/utils.js.map +1 -1
- package/esm/utils.mjs +3 -6
- package/package.json +1 -1
- package/prismaClient.cjs +19 -8
- package/server.cjs +12 -4
- package/utils.cjs +3 -6
package/MarketSentiment.cjs
CHANGED
|
@@ -915,6 +915,11 @@ exports.MarketSentiment = {
|
|
|
915
915
|
},
|
|
916
916
|
};
|
|
917
917
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
918
|
+
// Validate that we have at least one filter criteria
|
|
919
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
920
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
921
|
+
throw new Error(`findManyMarketSentiment requires at least one filter criterion. Received empty where clause.`);
|
|
922
|
+
}
|
|
918
923
|
const response = await client.query({
|
|
919
924
|
query: FIND_MANY_MARKETSENTIMENT,
|
|
920
925
|
variables: filteredVariables,
|
package/ModelArtifact.cjs
CHANGED
|
@@ -5455,6 +5455,11 @@ exports.ModelArtifact = {
|
|
|
5455
5455
|
},
|
|
5456
5456
|
};
|
|
5457
5457
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
5458
|
+
// Validate that we have at least one filter criteria
|
|
5459
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
5460
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
5461
|
+
throw new Error(`findManyModelArtifact requires at least one filter criterion. Received empty where clause.`);
|
|
5462
|
+
}
|
|
5458
5463
|
const response = await client.query({
|
|
5459
5464
|
query: FIND_MANY_MODELARTIFACT,
|
|
5460
5465
|
variables: filteredVariables,
|
package/ModelVersion.cjs
CHANGED
|
@@ -2230,9 +2230,6 @@ exports.ModelVersion = {
|
|
|
2230
2230
|
const variables = {
|
|
2231
2231
|
where: {
|
|
2232
2232
|
id: props.id !== undefined ? props.id : undefined,
|
|
2233
|
-
status: props.status !== undefined ? {
|
|
2234
|
-
equals: props.status
|
|
2235
|
-
} : undefined,
|
|
2236
2233
|
},
|
|
2237
2234
|
data: {
|
|
2238
2235
|
id: props.id !== undefined ? {
|
|
@@ -18679,9 +18676,6 @@ exports.ModelVersion = {
|
|
|
18679
18676
|
const variables = props.map(prop => ({
|
|
18680
18677
|
where: {
|
|
18681
18678
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
18682
|
-
status: prop.status !== undefined ? {
|
|
18683
|
-
equals: prop.status
|
|
18684
|
-
} : undefined,
|
|
18685
18679
|
},
|
|
18686
18680
|
data: {
|
|
18687
18681
|
id: prop.id !== undefined ? {
|
|
@@ -26246,6 +26240,11 @@ exports.ModelVersion = {
|
|
|
26246
26240
|
},
|
|
26247
26241
|
};
|
|
26248
26242
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
26243
|
+
// Validate that we have at least one filter criteria
|
|
26244
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
26245
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
26246
|
+
throw new Error(`findManyModelVersion requires at least one filter criterion. Received empty where clause.`);
|
|
26247
|
+
}
|
|
26249
26248
|
const response = await client.query({
|
|
26250
26249
|
query: FIND_MANY_MODELVERSION,
|
|
26251
26250
|
variables: filteredVariables,
|
package/ModelVersionArtifact.cjs
CHANGED
|
@@ -1137,12 +1137,6 @@ exports.ModelVersionArtifact = {
|
|
|
1137
1137
|
const variables = {
|
|
1138
1138
|
where: {
|
|
1139
1139
|
id: props.id !== undefined ? props.id : undefined,
|
|
1140
|
-
modelVersionId: props.modelVersionId !== undefined ? {
|
|
1141
|
-
equals: props.modelVersionId
|
|
1142
|
-
} : undefined,
|
|
1143
|
-
modelArtifactId: props.modelArtifactId !== undefined ? {
|
|
1144
|
-
equals: props.modelArtifactId
|
|
1145
|
-
} : undefined,
|
|
1146
1140
|
},
|
|
1147
1141
|
data: {
|
|
1148
1142
|
id: props.id !== undefined ? {
|
|
@@ -8592,12 +8586,6 @@ exports.ModelVersionArtifact = {
|
|
|
8592
8586
|
const variables = props.map(prop => ({
|
|
8593
8587
|
where: {
|
|
8594
8588
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
8595
|
-
modelVersionId: prop.modelVersionId !== undefined ? {
|
|
8596
|
-
equals: prop.modelVersionId
|
|
8597
|
-
} : undefined,
|
|
8598
|
-
modelArtifactId: prop.modelArtifactId !== undefined ? {
|
|
8599
|
-
equals: prop.modelArtifactId
|
|
8600
|
-
} : undefined,
|
|
8601
8589
|
},
|
|
8602
8590
|
data: {
|
|
8603
8591
|
id: prop.id !== undefined ? {
|
|
@@ -12197,6 +12185,11 @@ exports.ModelVersionArtifact = {
|
|
|
12197
12185
|
},
|
|
12198
12186
|
};
|
|
12199
12187
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
12188
|
+
// Validate that we have at least one filter criteria
|
|
12189
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
12190
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
12191
|
+
throw new Error(`findManyModelVersionArtifact requires at least one filter criterion. Received empty where clause.`);
|
|
12192
|
+
}
|
|
12200
12193
|
const response = await client.query({
|
|
12201
12194
|
query: FIND_MANY_MODELVERSIONARTIFACT,
|
|
12202
12195
|
variables: filteredVariables,
|
package/NewsArticle.cjs
CHANGED
|
@@ -453,10 +453,6 @@ exports.NewsArticle = {
|
|
|
453
453
|
const variables = {
|
|
454
454
|
where: {
|
|
455
455
|
id: props.id !== undefined ? props.id : undefined,
|
|
456
|
-
url: props.url !== undefined ? props.url : undefined,
|
|
457
|
-
title: props.title !== undefined ? {
|
|
458
|
-
equals: props.title
|
|
459
|
-
} : undefined,
|
|
460
456
|
},
|
|
461
457
|
data: {
|
|
462
458
|
id: props.id !== undefined ? {
|
|
@@ -2052,10 +2048,6 @@ exports.NewsArticle = {
|
|
|
2052
2048
|
const variables = props.map(prop => ({
|
|
2053
2049
|
where: {
|
|
2054
2050
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
2055
|
-
url: prop.url !== undefined ? prop.url : undefined,
|
|
2056
|
-
title: prop.title !== undefined ? {
|
|
2057
|
-
equals: prop.title
|
|
2058
|
-
} : undefined,
|
|
2059
2051
|
},
|
|
2060
2052
|
data: {
|
|
2061
2053
|
id: prop.id !== undefined ? {
|
|
@@ -3052,6 +3044,11 @@ exports.NewsArticle = {
|
|
|
3052
3044
|
},
|
|
3053
3045
|
};
|
|
3054
3046
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
3047
|
+
// Validate that we have at least one filter criteria
|
|
3048
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
3049
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
3050
|
+
throw new Error(`findManyNewsArticle requires at least one filter criterion. Received empty where clause.`);
|
|
3051
|
+
}
|
|
3055
3052
|
const response = await client.query({
|
|
3056
3053
|
query: FIND_MANY_NEWSARTICLE,
|
|
3057
3054
|
variables: filteredVariables,
|
|
@@ -433,10 +433,6 @@ exports.NewsArticleAssetSentiment = {
|
|
|
433
433
|
const variables = {
|
|
434
434
|
where: {
|
|
435
435
|
id: props.id !== undefined ? props.id : undefined,
|
|
436
|
-
url: props.url !== undefined ? props.url : undefined,
|
|
437
|
-
newsArticleId: props.newsArticleId !== undefined ? {
|
|
438
|
-
equals: props.newsArticleId
|
|
439
|
-
} : undefined,
|
|
440
436
|
},
|
|
441
437
|
data: {
|
|
442
438
|
id: props.id !== undefined ? {
|
|
@@ -1810,10 +1806,6 @@ exports.NewsArticleAssetSentiment = {
|
|
|
1810
1806
|
const variables = props.map(prop => ({
|
|
1811
1807
|
where: {
|
|
1812
1808
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
1813
|
-
url: prop.url !== undefined ? prop.url : undefined,
|
|
1814
|
-
newsArticleId: prop.newsArticleId !== undefined ? {
|
|
1815
|
-
equals: prop.newsArticleId
|
|
1816
|
-
} : undefined,
|
|
1817
1809
|
},
|
|
1818
1810
|
data: {
|
|
1819
1811
|
id: prop.id !== undefined ? {
|
|
@@ -2696,6 +2688,11 @@ exports.NewsArticleAssetSentiment = {
|
|
|
2696
2688
|
},
|
|
2697
2689
|
};
|
|
2698
2690
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
2691
|
+
// Validate that we have at least one filter criteria
|
|
2692
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
2693
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
2694
|
+
throw new Error(`findManyNewsArticleAssetSentiment requires at least one filter criterion. Received empty where clause.`);
|
|
2695
|
+
}
|
|
2699
2696
|
const response = await client.query({
|
|
2700
2697
|
query: FIND_MANY_NEWSARTICLEASSETSENTIMENT,
|
|
2701
2698
|
variables: filteredVariables,
|
package/OptionsContract.cjs
CHANGED
|
@@ -810,9 +810,6 @@ exports.OptionsContract = {
|
|
|
810
810
|
const variables = {
|
|
811
811
|
where: {
|
|
812
812
|
id: props.id !== undefined ? props.id : undefined,
|
|
813
|
-
symbol: props.symbol !== undefined ? {
|
|
814
|
-
equals: props.symbol
|
|
815
|
-
} : undefined,
|
|
816
813
|
},
|
|
817
814
|
data: {
|
|
818
815
|
id: props.id !== undefined ? {
|
|
@@ -4216,9 +4213,6 @@ exports.OptionsContract = {
|
|
|
4216
4213
|
const variables = props.map(prop => ({
|
|
4217
4214
|
where: {
|
|
4218
4215
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
4219
|
-
symbol: prop.symbol !== undefined ? {
|
|
4220
|
-
equals: prop.symbol
|
|
4221
|
-
} : undefined,
|
|
4222
4216
|
},
|
|
4223
4217
|
data: {
|
|
4224
4218
|
id: prop.id !== undefined ? {
|
|
@@ -5998,6 +5992,11 @@ exports.OptionsContract = {
|
|
|
5998
5992
|
},
|
|
5999
5993
|
};
|
|
6000
5994
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
5995
|
+
// Validate that we have at least one filter criteria
|
|
5996
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
5997
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
5998
|
+
throw new Error(`findManyOptionsContract requires at least one filter criterion. Received empty where clause.`);
|
|
5999
|
+
}
|
|
6001
6000
|
const response = await client.query({
|
|
6002
6001
|
query: FIND_MANY_OPTIONSCONTRACT,
|
|
6003
6002
|
variables: filteredVariables,
|
package/OptionsGreeksHistory.cjs
CHANGED
|
@@ -616,9 +616,6 @@ exports.OptionsGreeksHistory = {
|
|
|
616
616
|
const variables = {
|
|
617
617
|
where: {
|
|
618
618
|
id: props.id !== undefined ? props.id : undefined,
|
|
619
|
-
contractId: props.contractId !== undefined ? {
|
|
620
|
-
equals: props.contractId
|
|
621
|
-
} : undefined,
|
|
622
619
|
},
|
|
623
620
|
data: {
|
|
624
621
|
id: props.id !== undefined ? {
|
|
@@ -3364,9 +3361,6 @@ exports.OptionsGreeksHistory = {
|
|
|
3364
3361
|
const variables = props.map(prop => ({
|
|
3365
3362
|
where: {
|
|
3366
3363
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
3367
|
-
contractId: prop.contractId !== undefined ? {
|
|
3368
|
-
equals: prop.contractId
|
|
3369
|
-
} : undefined,
|
|
3370
3364
|
},
|
|
3371
3365
|
data: {
|
|
3372
3366
|
id: prop.id !== undefined ? {
|
|
@@ -4870,6 +4864,11 @@ exports.OptionsGreeksHistory = {
|
|
|
4870
4864
|
},
|
|
4871
4865
|
};
|
|
4872
4866
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
4867
|
+
// Validate that we have at least one filter criteria
|
|
4868
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
4869
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
4870
|
+
throw new Error(`findManyOptionsGreeksHistory requires at least one filter criterion. Received empty where clause.`);
|
|
4871
|
+
}
|
|
4873
4872
|
const response = await client.query({
|
|
4874
4873
|
query: FIND_MANY_OPTIONSGREEKSHISTORY,
|
|
4875
4874
|
variables: filteredVariables,
|
package/OptionsPosition.cjs
CHANGED
|
@@ -810,15 +810,6 @@ exports.OptionsPosition = {
|
|
|
810
810
|
const variables = {
|
|
811
811
|
where: {
|
|
812
812
|
id: props.id !== undefined ? props.id : undefined,
|
|
813
|
-
alpacaAccountId: props.alpacaAccountId !== undefined ? {
|
|
814
|
-
equals: props.alpacaAccountId
|
|
815
|
-
} : undefined,
|
|
816
|
-
contractId: props.contractId !== undefined ? {
|
|
817
|
-
equals: props.contractId
|
|
818
|
-
} : undefined,
|
|
819
|
-
status: props.status !== undefined ? {
|
|
820
|
-
equals: props.status
|
|
821
|
-
} : undefined,
|
|
822
813
|
},
|
|
823
814
|
data: {
|
|
824
815
|
id: props.id !== undefined ? {
|
|
@@ -4507,15 +4498,6 @@ exports.OptionsPosition = {
|
|
|
4507
4498
|
const variables = props.map(prop => ({
|
|
4508
4499
|
where: {
|
|
4509
4500
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
4510
|
-
alpacaAccountId: prop.alpacaAccountId !== undefined ? {
|
|
4511
|
-
equals: prop.alpacaAccountId
|
|
4512
|
-
} : undefined,
|
|
4513
|
-
contractId: prop.contractId !== undefined ? {
|
|
4514
|
-
equals: prop.contractId
|
|
4515
|
-
} : undefined,
|
|
4516
|
-
status: prop.status !== undefined ? {
|
|
4517
|
-
equals: prop.status
|
|
4518
|
-
} : undefined,
|
|
4519
4501
|
},
|
|
4520
4502
|
data: {
|
|
4521
4503
|
id: prop.id !== undefined ? {
|
|
@@ -6438,6 +6420,11 @@ exports.OptionsPosition = {
|
|
|
6438
6420
|
},
|
|
6439
6421
|
};
|
|
6440
6422
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
6423
|
+
// Validate that we have at least one filter criteria
|
|
6424
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
6425
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
6426
|
+
throw new Error(`findManyOptionsPosition requires at least one filter criterion. Received empty where clause.`);
|
|
6427
|
+
}
|
|
6441
6428
|
const response = await client.query({
|
|
6442
6429
|
query: FIND_MANY_OPTIONSPOSITION,
|
|
6443
6430
|
variables: filteredVariables,
|
package/OptionsPositionEvent.cjs
CHANGED
|
@@ -585,9 +585,6 @@ exports.OptionsPositionEvent = {
|
|
|
585
585
|
const variables = {
|
|
586
586
|
where: {
|
|
587
587
|
id: props.id !== undefined ? props.id : undefined,
|
|
588
|
-
positionId: props.positionId !== undefined ? {
|
|
589
|
-
equals: props.positionId
|
|
590
|
-
} : undefined,
|
|
591
588
|
},
|
|
592
589
|
data: {
|
|
593
590
|
id: props.id !== undefined ? {
|
|
@@ -3295,9 +3292,6 @@ exports.OptionsPositionEvent = {
|
|
|
3295
3292
|
const variables = props.map(prop => ({
|
|
3296
3293
|
where: {
|
|
3297
3294
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
3298
|
-
positionId: prop.positionId !== undefined ? {
|
|
3299
|
-
equals: prop.positionId
|
|
3300
|
-
} : undefined,
|
|
3301
3295
|
},
|
|
3302
3296
|
data: {
|
|
3303
3297
|
id: prop.id !== undefined ? {
|
|
@@ -4787,6 +4781,11 @@ exports.OptionsPositionEvent = {
|
|
|
4787
4781
|
},
|
|
4788
4782
|
};
|
|
4789
4783
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
4784
|
+
// Validate that we have at least one filter criteria
|
|
4785
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
4786
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
4787
|
+
throw new Error(`findManyOptionsPositionEvent requires at least one filter criterion. Received empty where clause.`);
|
|
4788
|
+
}
|
|
4790
4789
|
const response = await client.query({
|
|
4791
4790
|
query: FIND_MANY_OPTIONSPOSITIONEVENT,
|
|
4792
4791
|
variables: filteredVariables,
|
|
@@ -816,18 +816,6 @@ exports.OptionsTradeExecution = {
|
|
|
816
816
|
const variables = {
|
|
817
817
|
where: {
|
|
818
818
|
id: props.id !== undefined ? props.id : undefined,
|
|
819
|
-
positionId: props.positionId !== undefined ? {
|
|
820
|
-
equals: props.positionId
|
|
821
|
-
} : undefined,
|
|
822
|
-
contractId: props.contractId !== undefined ? {
|
|
823
|
-
equals: props.contractId
|
|
824
|
-
} : undefined,
|
|
825
|
-
alpacaAccountId: props.alpacaAccountId !== undefined ? {
|
|
826
|
-
equals: props.alpacaAccountId
|
|
827
|
-
} : undefined,
|
|
828
|
-
brokerOrderId: props.brokerOrderId !== undefined ? {
|
|
829
|
-
equals: props.brokerOrderId
|
|
830
|
-
} : undefined,
|
|
831
819
|
},
|
|
832
820
|
data: {
|
|
833
821
|
id: props.id !== undefined ? {
|
|
@@ -4654,18 +4642,6 @@ exports.OptionsTradeExecution = {
|
|
|
4654
4642
|
const variables = props.map(prop => ({
|
|
4655
4643
|
where: {
|
|
4656
4644
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
4657
|
-
positionId: prop.positionId !== undefined ? {
|
|
4658
|
-
equals: prop.positionId
|
|
4659
|
-
} : undefined,
|
|
4660
|
-
contractId: prop.contractId !== undefined ? {
|
|
4661
|
-
equals: prop.contractId
|
|
4662
|
-
} : undefined,
|
|
4663
|
-
alpacaAccountId: prop.alpacaAccountId !== undefined ? {
|
|
4664
|
-
equals: prop.alpacaAccountId
|
|
4665
|
-
} : undefined,
|
|
4666
|
-
brokerOrderId: prop.brokerOrderId !== undefined ? {
|
|
4667
|
-
equals: prop.brokerOrderId
|
|
4668
|
-
} : undefined,
|
|
4669
4645
|
},
|
|
4670
4646
|
data: {
|
|
4671
4647
|
id: prop.id !== undefined ? {
|
|
@@ -6655,6 +6631,11 @@ exports.OptionsTradeExecution = {
|
|
|
6655
6631
|
},
|
|
6656
6632
|
};
|
|
6657
6633
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
6634
|
+
// Validate that we have at least one filter criteria
|
|
6635
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
6636
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
6637
|
+
throw new Error(`findManyOptionsTradeExecution requires at least one filter criterion. Received empty where clause.`);
|
|
6638
|
+
}
|
|
6658
6639
|
const response = await client.query({
|
|
6659
6640
|
query: FIND_MANY_OPTIONSTRADEEXECUTION,
|
|
6660
6641
|
variables: filteredVariables,
|
package/PolicyOverlay.cjs
CHANGED
|
@@ -514,18 +514,6 @@ exports.PolicyOverlay = {
|
|
|
514
514
|
const variables = {
|
|
515
515
|
where: {
|
|
516
516
|
id: props.id !== undefined ? props.id : undefined,
|
|
517
|
-
tradingPolicyId: props.tradingPolicyId !== undefined ? {
|
|
518
|
-
equals: props.tradingPolicyId
|
|
519
|
-
} : undefined,
|
|
520
|
-
status: props.status !== undefined ? {
|
|
521
|
-
equals: props.status
|
|
522
|
-
} : undefined,
|
|
523
|
-
correlationId: props.correlationId !== undefined ? {
|
|
524
|
-
equals: props.correlationId
|
|
525
|
-
} : undefined,
|
|
526
|
-
triggerEventId: props.triggerEventId !== undefined ? {
|
|
527
|
-
equals: props.triggerEventId
|
|
528
|
-
} : undefined,
|
|
529
517
|
},
|
|
530
518
|
data: {
|
|
531
519
|
id: props.id !== undefined ? {
|
|
@@ -2622,18 +2610,6 @@ exports.PolicyOverlay = {
|
|
|
2622
2610
|
const variables = props.map(prop => ({
|
|
2623
2611
|
where: {
|
|
2624
2612
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
2625
|
-
tradingPolicyId: prop.tradingPolicyId !== undefined ? {
|
|
2626
|
-
equals: prop.tradingPolicyId
|
|
2627
|
-
} : undefined,
|
|
2628
|
-
status: prop.status !== undefined ? {
|
|
2629
|
-
equals: prop.status
|
|
2630
|
-
} : undefined,
|
|
2631
|
-
correlationId: prop.correlationId !== undefined ? {
|
|
2632
|
-
equals: prop.correlationId
|
|
2633
|
-
} : undefined,
|
|
2634
|
-
triggerEventId: prop.triggerEventId !== undefined ? {
|
|
2635
|
-
equals: prop.triggerEventId
|
|
2636
|
-
} : undefined,
|
|
2637
2613
|
},
|
|
2638
2614
|
data: {
|
|
2639
2615
|
id: prop.id !== undefined ? {
|
|
@@ -3859,6 +3835,11 @@ exports.PolicyOverlay = {
|
|
|
3859
3835
|
},
|
|
3860
3836
|
};
|
|
3861
3837
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
3838
|
+
// Validate that we have at least one filter criteria
|
|
3839
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
3840
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
3841
|
+
throw new Error(`findManyPolicyOverlay requires at least one filter criterion. Received empty where clause.`);
|
|
3842
|
+
}
|
|
3862
3843
|
const response = await client.query({
|
|
3863
3844
|
query: FIND_MANY_POLICYOVERLAY,
|
|
3864
3845
|
variables: filteredVariables,
|
|
@@ -314,12 +314,6 @@ exports.PortfolioGreeksHistory = {
|
|
|
314
314
|
const variables = {
|
|
315
315
|
where: {
|
|
316
316
|
id: props.id !== undefined ? props.id : undefined,
|
|
317
|
-
accountId: props.accountId !== undefined ? {
|
|
318
|
-
equals: props.accountId
|
|
319
|
-
} : undefined,
|
|
320
|
-
symbol: props.symbol !== undefined ? {
|
|
321
|
-
equals: props.symbol
|
|
322
|
-
} : undefined,
|
|
323
317
|
},
|
|
324
318
|
data: {
|
|
325
319
|
id: props.id !== undefined ? {
|
|
@@ -698,12 +692,6 @@ exports.PortfolioGreeksHistory = {
|
|
|
698
692
|
const variables = props.map(prop => ({
|
|
699
693
|
where: {
|
|
700
694
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
701
|
-
accountId: prop.accountId !== undefined ? {
|
|
702
|
-
equals: prop.accountId
|
|
703
|
-
} : undefined,
|
|
704
|
-
symbol: prop.symbol !== undefined ? {
|
|
705
|
-
equals: prop.symbol
|
|
706
|
-
} : undefined,
|
|
707
695
|
},
|
|
708
696
|
data: {
|
|
709
697
|
id: prop.id !== undefined ? {
|
|
@@ -1161,6 +1149,11 @@ exports.PortfolioGreeksHistory = {
|
|
|
1161
1149
|
},
|
|
1162
1150
|
};
|
|
1163
1151
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1152
|
+
// Validate that we have at least one filter criteria
|
|
1153
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1154
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1155
|
+
throw new Error(`findManyPortfolioGreeksHistory requires at least one filter criterion. Received empty where clause.`);
|
|
1156
|
+
}
|
|
1164
1157
|
const response = await client.query({
|
|
1165
1158
|
query: FIND_MANY_PORTFOLIOGREEKSHISTORY,
|
|
1166
1159
|
variables: filteredVariables,
|
package/ScheduledOptionOrder.cjs
CHANGED
|
@@ -265,9 +265,6 @@ exports.ScheduledOptionOrder = {
|
|
|
265
265
|
const variables = {
|
|
266
266
|
where: {
|
|
267
267
|
id: props.id !== undefined ? props.id : undefined,
|
|
268
|
-
status: props.status !== undefined ? {
|
|
269
|
-
equals: props.status
|
|
270
|
-
} : undefined,
|
|
271
268
|
},
|
|
272
269
|
data: {
|
|
273
270
|
id: props.id !== undefined ? {
|
|
@@ -504,9 +501,6 @@ exports.ScheduledOptionOrder = {
|
|
|
504
501
|
const variables = props.map(prop => ({
|
|
505
502
|
where: {
|
|
506
503
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
507
|
-
status: prop.status !== undefined ? {
|
|
508
|
-
equals: prop.status
|
|
509
|
-
} : undefined,
|
|
510
504
|
},
|
|
511
505
|
data: {
|
|
512
506
|
id: prop.id !== undefined ? {
|
|
@@ -897,6 +891,11 @@ exports.ScheduledOptionOrder = {
|
|
|
897
891
|
},
|
|
898
892
|
};
|
|
899
893
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
894
|
+
// Validate that we have at least one filter criteria
|
|
895
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
896
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
897
|
+
throw new Error(`findManyScheduledOptionOrder requires at least one filter criterion. Received empty where clause.`);
|
|
898
|
+
}
|
|
900
899
|
const response = await client.query({
|
|
901
900
|
query: FIND_MANY_SCHEDULEDOPTIONORDER,
|
|
902
901
|
variables: filteredVariables,
|
package/Session.cjs
CHANGED
|
@@ -710,9 +710,6 @@ exports.Session = {
|
|
|
710
710
|
const variables = {
|
|
711
711
|
where: {
|
|
712
712
|
id: props.id !== undefined ? props.id : undefined,
|
|
713
|
-
userId: props.userId !== undefined ? {
|
|
714
|
-
equals: props.userId
|
|
715
|
-
} : undefined,
|
|
716
713
|
},
|
|
717
714
|
data: {
|
|
718
715
|
id: props.id !== undefined ? {
|
|
@@ -4586,9 +4583,6 @@ exports.Session = {
|
|
|
4586
4583
|
const variables = props.map(prop => ({
|
|
4587
4584
|
where: {
|
|
4588
4585
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
4589
|
-
userId: prop.userId !== undefined ? {
|
|
4590
|
-
equals: prop.userId
|
|
4591
|
-
} : undefined,
|
|
4592
4586
|
},
|
|
4593
4587
|
data: {
|
|
4594
4588
|
id: prop.id !== undefined ? {
|
|
@@ -6580,6 +6574,11 @@ exports.Session = {
|
|
|
6580
6574
|
},
|
|
6581
6575
|
};
|
|
6582
6576
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
6577
|
+
// Validate that we have at least one filter criteria
|
|
6578
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
6579
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
6580
|
+
throw new Error(`findManySession requires at least one filter criterion. Received empty where clause.`);
|
|
6581
|
+
}
|
|
6583
6582
|
const response = await client.query({
|
|
6584
6583
|
query: FIND_MANY_SESSION,
|
|
6585
6584
|
variables: filteredVariables,
|
|
@@ -314,9 +314,6 @@ exports.SignalGeneratorMetrics = {
|
|
|
314
314
|
const variables = {
|
|
315
315
|
where: {
|
|
316
316
|
id: props.id !== undefined ? props.id : undefined,
|
|
317
|
-
symbol: props.symbol !== undefined ? {
|
|
318
|
-
equals: props.symbol
|
|
319
|
-
} : undefined,
|
|
320
317
|
},
|
|
321
318
|
data: {
|
|
322
319
|
id: props.id !== undefined ? {
|
|
@@ -668,9 +665,6 @@ exports.SignalGeneratorMetrics = {
|
|
|
668
665
|
const variables = props.map(prop => ({
|
|
669
666
|
where: {
|
|
670
667
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
671
|
-
symbol: prop.symbol !== undefined ? {
|
|
672
|
-
equals: prop.symbol
|
|
673
|
-
} : undefined,
|
|
674
668
|
},
|
|
675
669
|
data: {
|
|
676
670
|
id: prop.id !== undefined ? {
|
|
@@ -1112,6 +1106,11 @@ exports.SignalGeneratorMetrics = {
|
|
|
1112
1106
|
},
|
|
1113
1107
|
};
|
|
1114
1108
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1109
|
+
// Validate that we have at least one filter criteria
|
|
1110
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1111
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1112
|
+
throw new Error(`findManySignalGeneratorMetrics requires at least one filter criterion. Received empty where clause.`);
|
|
1113
|
+
}
|
|
1115
1114
|
const response = await client.query({
|
|
1116
1115
|
query: FIND_MANY_SIGNALGENERATORMETRICS,
|
|
1117
1116
|
variables: filteredVariables,
|
package/SignalLineage.cjs
CHANGED
|
@@ -341,13 +341,6 @@ exports.SignalLineage = {
|
|
|
341
341
|
const variables = {
|
|
342
342
|
where: {
|
|
343
343
|
id: props.id !== undefined ? props.id : undefined,
|
|
344
|
-
lineageId: props.lineageId !== undefined ? props.lineageId : undefined,
|
|
345
|
-
signalId: props.signalId !== undefined ? {
|
|
346
|
-
equals: props.signalId
|
|
347
|
-
} : undefined,
|
|
348
|
-
symbol: props.symbol !== undefined ? {
|
|
349
|
-
equals: props.symbol
|
|
350
|
-
} : undefined,
|
|
351
344
|
},
|
|
352
345
|
data: {
|
|
353
346
|
id: props.id !== undefined ? {
|
|
@@ -718,13 +711,6 @@ exports.SignalLineage = {
|
|
|
718
711
|
const variables = props.map(prop => ({
|
|
719
712
|
where: {
|
|
720
713
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
721
|
-
lineageId: prop.lineageId !== undefined ? prop.lineageId : undefined,
|
|
722
|
-
signalId: prop.signalId !== undefined ? {
|
|
723
|
-
equals: prop.signalId
|
|
724
|
-
} : undefined,
|
|
725
|
-
symbol: prop.symbol !== undefined ? {
|
|
726
|
-
equals: prop.symbol
|
|
727
|
-
} : undefined,
|
|
728
714
|
},
|
|
729
715
|
data: {
|
|
730
716
|
id: prop.id !== undefined ? {
|
|
@@ -1179,6 +1165,11 @@ exports.SignalLineage = {
|
|
|
1179
1165
|
},
|
|
1180
1166
|
};
|
|
1181
1167
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1168
|
+
// Validate that we have at least one filter criteria
|
|
1169
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1170
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1171
|
+
throw new Error(`findManySignalLineage requires at least one filter criterion. Received empty where clause.`);
|
|
1172
|
+
}
|
|
1182
1173
|
const response = await client.query({
|
|
1183
1174
|
query: FIND_MANY_SIGNALLINEAGE,
|
|
1184
1175
|
variables: filteredVariables,
|
package/SignalOutcome.cjs
CHANGED
|
@@ -301,12 +301,6 @@ exports.SignalOutcome = {
|
|
|
301
301
|
const variables = {
|
|
302
302
|
where: {
|
|
303
303
|
id: props.id !== undefined ? props.id : undefined,
|
|
304
|
-
signalId: props.signalId !== undefined ? {
|
|
305
|
-
equals: props.signalId
|
|
306
|
-
} : undefined,
|
|
307
|
-
symbol: props.symbol !== undefined ? {
|
|
308
|
-
equals: props.symbol
|
|
309
|
-
} : undefined,
|
|
310
304
|
},
|
|
311
305
|
data: {
|
|
312
306
|
id: props.id !== undefined ? {
|
|
@@ -630,12 +624,6 @@ exports.SignalOutcome = {
|
|
|
630
624
|
const variables = props.map(prop => ({
|
|
631
625
|
where: {
|
|
632
626
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
633
|
-
signalId: prop.signalId !== undefined ? {
|
|
634
|
-
equals: prop.signalId
|
|
635
|
-
} : undefined,
|
|
636
|
-
symbol: prop.symbol !== undefined ? {
|
|
637
|
-
equals: prop.symbol
|
|
638
|
-
} : undefined,
|
|
639
627
|
},
|
|
640
628
|
data: {
|
|
641
629
|
id: prop.id !== undefined ? {
|
|
@@ -1068,6 +1056,11 @@ exports.SignalOutcome = {
|
|
|
1068
1056
|
},
|
|
1069
1057
|
};
|
|
1070
1058
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1059
|
+
// Validate that we have at least one filter criteria
|
|
1060
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1061
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1062
|
+
throw new Error(`findManySignalOutcome requires at least one filter criterion. Received empty where clause.`);
|
|
1063
|
+
}
|
|
1071
1064
|
const response = await client.query({
|
|
1072
1065
|
query: FIND_MANY_SIGNALOUTCOME,
|
|
1073
1066
|
variables: filteredVariables,
|