@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/SignalPriorityQueue.cjs
CHANGED
|
@@ -314,13 +314,6 @@ exports.SignalPriorityQueue = {
|
|
|
314
314
|
const variables = {
|
|
315
315
|
where: {
|
|
316
316
|
id: props.id !== undefined ? props.id : undefined,
|
|
317
|
-
signalId: props.signalId !== undefined ? props.signalId : undefined,
|
|
318
|
-
symbol: props.symbol !== undefined ? {
|
|
319
|
-
equals: props.symbol
|
|
320
|
-
} : undefined,
|
|
321
|
-
status: props.status !== undefined ? {
|
|
322
|
-
equals: props.status
|
|
323
|
-
} : undefined,
|
|
324
317
|
},
|
|
325
318
|
data: {
|
|
326
319
|
id: props.id !== undefined ? {
|
|
@@ -672,13 +665,6 @@ exports.SignalPriorityQueue = {
|
|
|
672
665
|
const variables = props.map(prop => ({
|
|
673
666
|
where: {
|
|
674
667
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
675
|
-
signalId: prop.signalId !== undefined ? prop.signalId : undefined,
|
|
676
|
-
symbol: prop.symbol !== undefined ? {
|
|
677
|
-
equals: prop.symbol
|
|
678
|
-
} : undefined,
|
|
679
|
-
status: prop.status !== undefined ? {
|
|
680
|
-
equals: prop.status
|
|
681
|
-
} : undefined,
|
|
682
668
|
},
|
|
683
669
|
data: {
|
|
684
670
|
id: prop.id !== undefined ? {
|
|
@@ -1128,6 +1114,11 @@ exports.SignalPriorityQueue = {
|
|
|
1128
1114
|
},
|
|
1129
1115
|
};
|
|
1130
1116
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1117
|
+
// Validate that we have at least one filter criteria
|
|
1118
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1119
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1120
|
+
throw new Error(`findManySignalPriorityQueue requires at least one filter criterion. Received empty where clause.`);
|
|
1121
|
+
}
|
|
1131
1122
|
const response = await client.query({
|
|
1132
1123
|
query: FIND_MANY_SIGNALPRIORITYQUEUE,
|
|
1133
1124
|
variables: filteredVariables,
|
package/SyncEvent.cjs
CHANGED
|
@@ -286,12 +286,6 @@ exports.SyncEvent = {
|
|
|
286
286
|
const variables = {
|
|
287
287
|
where: {
|
|
288
288
|
id: props.id !== undefined ? props.id : undefined,
|
|
289
|
-
type: props.type !== undefined ? {
|
|
290
|
-
equals: props.type
|
|
291
|
-
} : undefined,
|
|
292
|
-
entityId: props.entityId !== undefined ? {
|
|
293
|
-
equals: props.entityId
|
|
294
|
-
} : undefined,
|
|
295
289
|
},
|
|
296
290
|
data: {
|
|
297
291
|
id: props.id !== undefined ? {
|
|
@@ -580,12 +574,6 @@ exports.SyncEvent = {
|
|
|
580
574
|
const variables = props.map(prop => ({
|
|
581
575
|
where: {
|
|
582
576
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
583
|
-
type: prop.type !== undefined ? {
|
|
584
|
-
equals: prop.type
|
|
585
|
-
} : undefined,
|
|
586
|
-
entityId: prop.entityId !== undefined ? {
|
|
587
|
-
equals: prop.entityId
|
|
588
|
-
} : undefined,
|
|
589
577
|
},
|
|
590
578
|
data: {
|
|
591
579
|
id: prop.id !== undefined ? {
|
|
@@ -1003,6 +991,11 @@ exports.SyncEvent = {
|
|
|
1003
991
|
},
|
|
1004
992
|
};
|
|
1005
993
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
994
|
+
// Validate that we have at least one filter criteria
|
|
995
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
996
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
997
|
+
throw new Error(`findManySyncEvent requires at least one filter criterion. Received empty where clause.`);
|
|
998
|
+
}
|
|
1006
999
|
const response = await client.query({
|
|
1007
1000
|
query: FIND_MANY_SYNCEVENT,
|
|
1008
1001
|
variables: filteredVariables,
|
package/SystemAlert.cjs
CHANGED
|
@@ -321,18 +321,6 @@ exports.SystemAlert = {
|
|
|
321
321
|
const variables = {
|
|
322
322
|
where: {
|
|
323
323
|
id: props.id !== undefined ? props.id : undefined,
|
|
324
|
-
type: props.type !== undefined ? {
|
|
325
|
-
equals: props.type
|
|
326
|
-
} : undefined,
|
|
327
|
-
title: props.title !== undefined ? {
|
|
328
|
-
equals: props.title
|
|
329
|
-
} : undefined,
|
|
330
|
-
metadataJobId: props.metadataJobId !== undefined ? {
|
|
331
|
-
equals: props.metadataJobId
|
|
332
|
-
} : undefined,
|
|
333
|
-
status: props.status !== undefined ? {
|
|
334
|
-
equals: props.status
|
|
335
|
-
} : undefined,
|
|
336
324
|
},
|
|
337
325
|
data: {
|
|
338
326
|
id: props.id !== undefined ? {
|
|
@@ -702,18 +690,6 @@ exports.SystemAlert = {
|
|
|
702
690
|
const variables = props.map(prop => ({
|
|
703
691
|
where: {
|
|
704
692
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
705
|
-
type: prop.type !== undefined ? {
|
|
706
|
-
equals: prop.type
|
|
707
|
-
} : undefined,
|
|
708
|
-
title: prop.title !== undefined ? {
|
|
709
|
-
equals: prop.title
|
|
710
|
-
} : undefined,
|
|
711
|
-
metadataJobId: prop.metadataJobId !== undefined ? {
|
|
712
|
-
equals: prop.metadataJobId
|
|
713
|
-
} : undefined,
|
|
714
|
-
status: prop.status !== undefined ? {
|
|
715
|
-
equals: prop.status
|
|
716
|
-
} : undefined,
|
|
717
693
|
},
|
|
718
694
|
data: {
|
|
719
695
|
id: prop.id !== undefined ? {
|
|
@@ -1178,6 +1154,11 @@ exports.SystemAlert = {
|
|
|
1178
1154
|
},
|
|
1179
1155
|
};
|
|
1180
1156
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1157
|
+
// Validate that we have at least one filter criteria
|
|
1158
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1159
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1160
|
+
throw new Error(`findManySystemAlert requires at least one filter criterion. Received empty where clause.`);
|
|
1161
|
+
}
|
|
1181
1162
|
const response = await client.query({
|
|
1182
1163
|
query: FIND_MANY_SYSTEMALERT,
|
|
1183
1164
|
variables: filteredVariables,
|
package/Trade.cjs
CHANGED
|
@@ -393,15 +393,6 @@ exports.Trade = {
|
|
|
393
393
|
const variables = {
|
|
394
394
|
where: {
|
|
395
395
|
id: props.id !== undefined ? props.id : undefined,
|
|
396
|
-
alpacaAccountId: props.alpacaAccountId !== undefined ? {
|
|
397
|
-
equals: props.alpacaAccountId
|
|
398
|
-
} : undefined,
|
|
399
|
-
status: props.status !== undefined ? {
|
|
400
|
-
equals: props.status
|
|
401
|
-
} : undefined,
|
|
402
|
-
symbol: props.symbol !== undefined ? {
|
|
403
|
-
equals: props.symbol
|
|
404
|
-
} : undefined,
|
|
405
396
|
},
|
|
406
397
|
data: {
|
|
407
398
|
id: props.id !== undefined ? {
|
|
@@ -1003,15 +994,6 @@ exports.Trade = {
|
|
|
1003
994
|
const variables = props.map(prop => ({
|
|
1004
995
|
where: {
|
|
1005
996
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
1006
|
-
alpacaAccountId: prop.alpacaAccountId !== undefined ? {
|
|
1007
|
-
equals: prop.alpacaAccountId
|
|
1008
|
-
} : undefined,
|
|
1009
|
-
status: prop.status !== undefined ? {
|
|
1010
|
-
equals: prop.status
|
|
1011
|
-
} : undefined,
|
|
1012
|
-
symbol: prop.symbol !== undefined ? {
|
|
1013
|
-
equals: prop.symbol
|
|
1014
|
-
} : undefined,
|
|
1015
997
|
},
|
|
1016
998
|
data: {
|
|
1017
999
|
id: prop.id !== undefined ? {
|
|
@@ -1567,6 +1549,11 @@ exports.Trade = {
|
|
|
1567
1549
|
},
|
|
1568
1550
|
};
|
|
1569
1551
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1552
|
+
// Validate that we have at least one filter criteria
|
|
1553
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1554
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1555
|
+
throw new Error(`findManyTrade requires at least one filter criterion. Received empty where clause.`);
|
|
1556
|
+
}
|
|
1570
1557
|
const response = await client.query({
|
|
1571
1558
|
query: FIND_MANY_TRADE,
|
|
1572
1559
|
variables: filteredVariables,
|
package/TradeAuditEvent.cjs
CHANGED
|
@@ -326,31 +326,6 @@ exports.TradeAuditEvent = {
|
|
|
326
326
|
const variables = {
|
|
327
327
|
where: {
|
|
328
328
|
id: props.id !== undefined ? props.id : undefined,
|
|
329
|
-
eventId: props.eventId !== undefined ? props.eventId : undefined,
|
|
330
|
-
symbol: props.symbol !== undefined ? {
|
|
331
|
-
equals: props.symbol
|
|
332
|
-
} : undefined,
|
|
333
|
-
accountId: props.accountId !== undefined ? {
|
|
334
|
-
equals: props.accountId
|
|
335
|
-
} : undefined,
|
|
336
|
-
tradeId: props.tradeId !== undefined ? {
|
|
337
|
-
equals: props.tradeId
|
|
338
|
-
} : undefined,
|
|
339
|
-
signalId: props.signalId !== undefined ? {
|
|
340
|
-
equals: props.signalId
|
|
341
|
-
} : undefined,
|
|
342
|
-
orderId: props.orderId !== undefined ? {
|
|
343
|
-
equals: props.orderId
|
|
344
|
-
} : undefined,
|
|
345
|
-
userId: props.userId !== undefined ? {
|
|
346
|
-
equals: props.userId
|
|
347
|
-
} : undefined,
|
|
348
|
-
systemId: props.systemId !== undefined ? {
|
|
349
|
-
equals: props.systemId
|
|
350
|
-
} : undefined,
|
|
351
|
-
retentionPolicyId: props.retentionPolicyId !== undefined ? {
|
|
352
|
-
equals: props.retentionPolicyId
|
|
353
|
-
} : undefined,
|
|
354
329
|
},
|
|
355
330
|
data: {
|
|
356
331
|
id: props.id !== undefined ? {
|
|
@@ -736,31 +711,6 @@ exports.TradeAuditEvent = {
|
|
|
736
711
|
const variables = props.map(prop => ({
|
|
737
712
|
where: {
|
|
738
713
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
739
|
-
eventId: prop.eventId !== undefined ? prop.eventId : undefined,
|
|
740
|
-
symbol: prop.symbol !== undefined ? {
|
|
741
|
-
equals: prop.symbol
|
|
742
|
-
} : undefined,
|
|
743
|
-
accountId: prop.accountId !== undefined ? {
|
|
744
|
-
equals: prop.accountId
|
|
745
|
-
} : undefined,
|
|
746
|
-
tradeId: prop.tradeId !== undefined ? {
|
|
747
|
-
equals: prop.tradeId
|
|
748
|
-
} : undefined,
|
|
749
|
-
signalId: prop.signalId !== undefined ? {
|
|
750
|
-
equals: prop.signalId
|
|
751
|
-
} : undefined,
|
|
752
|
-
orderId: prop.orderId !== undefined ? {
|
|
753
|
-
equals: prop.orderId
|
|
754
|
-
} : undefined,
|
|
755
|
-
userId: prop.userId !== undefined ? {
|
|
756
|
-
equals: prop.userId
|
|
757
|
-
} : undefined,
|
|
758
|
-
systemId: prop.systemId !== undefined ? {
|
|
759
|
-
equals: prop.systemId
|
|
760
|
-
} : undefined,
|
|
761
|
-
retentionPolicyId: prop.retentionPolicyId !== undefined ? {
|
|
762
|
-
equals: prop.retentionPolicyId
|
|
763
|
-
} : undefined,
|
|
764
714
|
},
|
|
765
715
|
data: {
|
|
766
716
|
id: prop.id !== undefined ? {
|
|
@@ -1252,6 +1202,11 @@ exports.TradeAuditEvent = {
|
|
|
1252
1202
|
},
|
|
1253
1203
|
};
|
|
1254
1204
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1205
|
+
// Validate that we have at least one filter criteria
|
|
1206
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1207
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1208
|
+
throw new Error(`findManyTradeAuditEvent requires at least one filter criterion. Received empty where clause.`);
|
|
1209
|
+
}
|
|
1255
1210
|
const response = await client.query({
|
|
1256
1211
|
query: FIND_MANY_TRADEAUDITEVENT,
|
|
1257
1212
|
variables: filteredVariables,
|
|
@@ -931,6 +931,11 @@ exports.TradeExecutionHistory = {
|
|
|
931
931
|
},
|
|
932
932
|
};
|
|
933
933
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
934
|
+
// Validate that we have at least one filter criteria
|
|
935
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
936
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
937
|
+
throw new Error(`findManyTradeExecutionHistory requires at least one filter criterion. Received empty where clause.`);
|
|
938
|
+
}
|
|
934
939
|
const response = await client.query({
|
|
935
940
|
query: FIND_MANY_TRADEEXECUTIONHISTORY,
|
|
936
941
|
variables: filteredVariables,
|
package/TradeOutcome.cjs
CHANGED
|
@@ -324,15 +324,6 @@ exports.TradeOutcome = {
|
|
|
324
324
|
const variables = {
|
|
325
325
|
where: {
|
|
326
326
|
id: props.id !== undefined ? props.id : undefined,
|
|
327
|
-
tradeId: props.tradeId !== undefined ? {
|
|
328
|
-
equals: props.tradeId
|
|
329
|
-
} : undefined,
|
|
330
|
-
symbol: props.symbol !== undefined ? {
|
|
331
|
-
equals: props.symbol
|
|
332
|
-
} : undefined,
|
|
333
|
-
accountId: props.accountId !== undefined ? {
|
|
334
|
-
equals: props.accountId
|
|
335
|
-
} : undefined,
|
|
336
327
|
},
|
|
337
328
|
data: {
|
|
338
329
|
id: props.id !== undefined ? {
|
|
@@ -714,15 +705,6 @@ exports.TradeOutcome = {
|
|
|
714
705
|
const variables = props.map(prop => ({
|
|
715
706
|
where: {
|
|
716
707
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
717
|
-
tradeId: prop.tradeId !== undefined ? {
|
|
718
|
-
equals: prop.tradeId
|
|
719
|
-
} : undefined,
|
|
720
|
-
symbol: prop.symbol !== undefined ? {
|
|
721
|
-
equals: prop.symbol
|
|
722
|
-
} : undefined,
|
|
723
|
-
accountId: prop.accountId !== undefined ? {
|
|
724
|
-
equals: prop.accountId
|
|
725
|
-
} : undefined,
|
|
726
708
|
},
|
|
727
709
|
data: {
|
|
728
710
|
id: prop.id !== undefined ? {
|
|
@@ -1188,6 +1170,11 @@ exports.TradeOutcome = {
|
|
|
1188
1170
|
},
|
|
1189
1171
|
};
|
|
1190
1172
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1173
|
+
// Validate that we have at least one filter criteria
|
|
1174
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
1175
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
1176
|
+
throw new Error(`findManyTradeOutcome requires at least one filter criterion. Received empty where clause.`);
|
|
1177
|
+
}
|
|
1191
1178
|
const response = await client.query({
|
|
1192
1179
|
query: FIND_MANY_TRADEOUTCOME,
|
|
1193
1180
|
variables: filteredVariables,
|
package/TradingPolicy.cjs
CHANGED
|
@@ -817,16 +817,6 @@ exports.TradingPolicy = {
|
|
|
817
817
|
const variables = {
|
|
818
818
|
where: {
|
|
819
819
|
id: props.id !== undefined ? props.id : undefined,
|
|
820
|
-
alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
|
|
821
|
-
miniModelId: props.miniModelId !== undefined ? {
|
|
822
|
-
equals: props.miniModelId
|
|
823
|
-
} : undefined,
|
|
824
|
-
normalModelId: props.normalModelId !== undefined ? {
|
|
825
|
-
equals: props.normalModelId
|
|
826
|
-
} : undefined,
|
|
827
|
-
advancedModelId: props.advancedModelId !== undefined ? {
|
|
828
|
-
equals: props.advancedModelId
|
|
829
|
-
} : undefined,
|
|
830
820
|
},
|
|
831
821
|
data: {
|
|
832
822
|
id: props.id !== undefined ? {
|
|
@@ -4608,16 +4598,6 @@ exports.TradingPolicy = {
|
|
|
4608
4598
|
const variables = props.map(prop => ({
|
|
4609
4599
|
where: {
|
|
4610
4600
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
4611
|
-
alpacaAccountId: prop.alpacaAccountId !== undefined ? prop.alpacaAccountId : undefined,
|
|
4612
|
-
miniModelId: prop.miniModelId !== undefined ? {
|
|
4613
|
-
equals: prop.miniModelId
|
|
4614
|
-
} : undefined,
|
|
4615
|
-
normalModelId: prop.normalModelId !== undefined ? {
|
|
4616
|
-
equals: prop.normalModelId
|
|
4617
|
-
} : undefined,
|
|
4618
|
-
advancedModelId: prop.advancedModelId !== undefined ? {
|
|
4619
|
-
equals: prop.advancedModelId
|
|
4620
|
-
} : undefined,
|
|
4621
4601
|
},
|
|
4622
4602
|
data: {
|
|
4623
4603
|
id: prop.id !== undefined ? {
|
|
@@ -6571,6 +6551,11 @@ exports.TradingPolicy = {
|
|
|
6571
6551
|
},
|
|
6572
6552
|
};
|
|
6573
6553
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
6554
|
+
// Validate that we have at least one filter criteria
|
|
6555
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
6556
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
6557
|
+
throw new Error(`findManyTradingPolicy requires at least one filter criterion. Received empty where clause.`);
|
|
6558
|
+
}
|
|
6574
6559
|
const response = await client.query({
|
|
6575
6560
|
query: FIND_MANY_TRADINGPOLICY,
|
|
6576
6561
|
variables: filteredVariables,
|
package/User.cjs
CHANGED
|
@@ -868,10 +868,6 @@ exports.User = {
|
|
|
868
868
|
const variables = {
|
|
869
869
|
where: {
|
|
870
870
|
id: props.id !== undefined ? props.id : undefined,
|
|
871
|
-
email: props.email !== undefined ? props.email : undefined,
|
|
872
|
-
name: props.name !== undefined ? {
|
|
873
|
-
equals: props.name
|
|
874
|
-
} : undefined,
|
|
875
871
|
},
|
|
876
872
|
data: {
|
|
877
873
|
id: props.id !== undefined ? {
|
|
@@ -4240,10 +4236,6 @@ exports.User = {
|
|
|
4240
4236
|
const variables = props.map(prop => ({
|
|
4241
4237
|
where: {
|
|
4242
4238
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
4243
|
-
email: prop.email !== undefined ? prop.email : undefined,
|
|
4244
|
-
name: prop.name !== undefined ? {
|
|
4245
|
-
equals: prop.name
|
|
4246
|
-
} : undefined,
|
|
4247
4239
|
},
|
|
4248
4240
|
data: {
|
|
4249
4241
|
id: prop.id !== undefined ? {
|
|
@@ -5967,6 +5959,11 @@ exports.User = {
|
|
|
5967
5959
|
},
|
|
5968
5960
|
};
|
|
5969
5961
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
5962
|
+
// Validate that we have at least one filter criteria
|
|
5963
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
5964
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
5965
|
+
throw new Error(`findManyUser requires at least one filter criterion. Received empty where clause.`);
|
|
5966
|
+
}
|
|
5970
5967
|
const response = await client.query({
|
|
5971
5968
|
query: FIND_MANY_USER,
|
|
5972
5969
|
variables: filteredVariables,
|
package/VerificationToken.cjs
CHANGED
|
@@ -901,6 +901,11 @@ exports.VerificationToken = {
|
|
|
901
901
|
},
|
|
902
902
|
};
|
|
903
903
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
904
|
+
// Validate that we have at least one filter criteria
|
|
905
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
906
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
907
|
+
throw new Error(`findManyVerificationToken requires at least one filter criterion. Received empty where clause.`);
|
|
908
|
+
}
|
|
904
909
|
const response = await client.query({
|
|
905
910
|
query: FIND_MANY_VERIFICATIONTOKEN,
|
|
906
911
|
variables: filteredVariables,
|
package/WaitlistEntry.cjs
CHANGED
|
@@ -733,10 +733,6 @@ exports.WaitlistEntry = {
|
|
|
733
733
|
const variables = {
|
|
734
734
|
where: {
|
|
735
735
|
id: props.id !== undefined ? props.id : undefined,
|
|
736
|
-
email: props.email !== undefined ? props.email : undefined,
|
|
737
|
-
status: props.status !== undefined ? {
|
|
738
|
-
equals: props.status
|
|
739
|
-
} : undefined,
|
|
740
736
|
},
|
|
741
737
|
data: {
|
|
742
738
|
id: props.id !== undefined ? {
|
|
@@ -4480,10 +4476,6 @@ exports.WaitlistEntry = {
|
|
|
4480
4476
|
const variables = props.map(prop => ({
|
|
4481
4477
|
where: {
|
|
4482
4478
|
id: prop.id !== undefined ? prop.id : undefined,
|
|
4483
|
-
email: prop.email !== undefined ? prop.email : undefined,
|
|
4484
|
-
status: prop.status !== undefined ? {
|
|
4485
|
-
equals: prop.status
|
|
4486
|
-
} : undefined,
|
|
4487
4479
|
},
|
|
4488
4480
|
data: {
|
|
4489
4481
|
id: prop.id !== undefined ? {
|
|
@@ -6414,6 +6406,11 @@ exports.WaitlistEntry = {
|
|
|
6414
6406
|
},
|
|
6415
6407
|
};
|
|
6416
6408
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
6409
|
+
// Validate that we have at least one filter criteria
|
|
6410
|
+
// GraphQL requires a non-empty where clause for findMany
|
|
6411
|
+
if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
|
|
6412
|
+
throw new Error(`findManyWaitlistEntry requires at least one filter criterion. Received empty where clause.`);
|
|
6413
|
+
}
|
|
6417
6414
|
const response = await client.query({
|
|
6418
6415
|
query: FIND_MANY_WAITLISTENTRY,
|
|
6419
6416
|
variables: filteredVariables,
|
package/client.cjs
CHANGED
|
@@ -177,22 +177,23 @@ async function enqueueOperation(operation, attempt = 0) {
|
|
|
177
177
|
resolve(result);
|
|
178
178
|
}
|
|
179
179
|
catch (error) {
|
|
180
|
-
const isRetryable = error instanceof Error &&
|
|
181
|
-
error.message.includes('
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
180
|
+
const isRetryable = error instanceof Error &&
|
|
181
|
+
(error.message.includes('Accelerate') ||
|
|
182
|
+
error.message.includes('code: 1016') ||
|
|
183
|
+
error.message.includes('ECONNREFUSED') ||
|
|
184
|
+
error.message.includes('ECONNRESET') ||
|
|
185
|
+
error.message.includes('ETIMEDOUT') ||
|
|
186
|
+
error.message.includes('fetch failed') ||
|
|
187
|
+
error.message.includes('socket hang up') ||
|
|
188
|
+
error.message.includes('network') ||
|
|
189
|
+
error.message.includes("Can't reach database server") ||
|
|
190
|
+
error.message.includes('Connection pool timeout') ||
|
|
191
|
+
error.message.includes('P2024') ||
|
|
192
|
+
error.message.includes('terminated') ||
|
|
193
|
+
error.message.includes('status code 408') ||
|
|
194
|
+
error.message.includes('status code 502') ||
|
|
195
|
+
error.message.includes('status code 503') ||
|
|
196
|
+
error.message.includes('status code 504'));
|
|
196
197
|
if (attempt < poolConfig.retryAttempts && isRetryable) {
|
|
197
198
|
const delay = poolConfig.retryDelay * Math.pow(2, attempt);
|
|
198
199
|
logger_1.logger.warn(`Apollo operation failed, retrying in ${delay}ms (attempt ${attempt + 1}/${poolConfig.retryAttempts})`, { error: error instanceof Error ? error.message : String(error) });
|
package/esm/ABTest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ABTest.d.ts","sourceRoot":"","sources":["../../src/ABTest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAsL7G,eAAO,MAAM,MAAM;IAEjB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IA4jD9G;;;;;;;OAOG;sBACqB,UAAU,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,YAAY;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAsIxK;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ABTest.d.ts","sourceRoot":"","sources":["../../src/ABTest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAsL7G,eAAO,MAAM,MAAM;IAEjB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IA4jD9G;;;;;;;OAOG;sBACqB,UAAU,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,YAAY;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAsIxK;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAm2L5G;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAszO5G;;;;;;OAMG;sBACqB,UAAU,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAk2LhI;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAmH5G;;;;;;;OAOG;eACc,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAgGlI;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC;IA4ElG;;;;;;;OAOG;oBACmB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC;CA4G1I,CAAC"}
|