@adaptic/backend-legacy 0.0.1011 → 0.0.1013
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/esm/generated/typegraphql-prisma/enums/AnthropicModel.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/enums/AnthropicModel.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/enums/AnthropicModel.js.map +1 -1
- package/esm/generated/typegraphql-prisma/enums/AnthropicModel.mjs +2 -0
- package/esm/resolvers/custom/TradingSettingsResolver.d.ts +83 -0
- package/esm/resolvers/custom/TradingSettingsResolver.d.ts.map +1 -0
- package/esm/resolvers/custom/TradingSettingsResolver.js.map +1 -0
- package/esm/resolvers/custom/TradingSettingsResolver.mjs +491 -0
- package/esm/resolvers/custom/index.d.ts +1 -0
- package/esm/resolvers/custom/index.d.ts.map +1 -1
- package/esm/resolvers/custom/index.js.map +1 -1
- package/esm/resolvers/custom/index.mjs +1 -0
- package/generated/typegraphql-prisma/enums/AnthropicModel.cjs +2 -0
- package/generated/typegraphql-prisma/enums/AnthropicModel.d.ts +2 -0
- package/generated/typegraphql-prisma/enums/AnthropicModel.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enums/AnthropicModel.js.map +1 -1
- package/package.json +1 -1
- package/resolvers/custom/TradingSettingsResolver.cjs +481 -0
- package/resolvers/custom/TradingSettingsResolver.d.ts +83 -0
- package/resolvers/custom/TradingSettingsResolver.d.ts.map +1 -0
- package/resolvers/custom/TradingSettingsResolver.js.map +1 -0
- package/resolvers/custom/index.cjs +7 -1
- package/resolvers/custom/index.d.ts +1 -0
- package/resolvers/custom/index.d.ts.map +1 -1
- package/resolvers/custom/index.js.map +1 -1
- package/server.cjs +5 -1
|
@@ -38,6 +38,8 @@ const TypeGraphQL = __importStar(require("type-graphql"));
|
|
|
38
38
|
/** Anthropic Claude language models available for text generation. */
|
|
39
39
|
var AnthropicModel;
|
|
40
40
|
(function (AnthropicModel) {
|
|
41
|
+
AnthropicModel["CLAUDE_FABLE_5"] = "CLAUDE_FABLE_5";
|
|
42
|
+
AnthropicModel["CLAUDE_OPUS_5"] = "CLAUDE_OPUS_5";
|
|
41
43
|
AnthropicModel["CLAUDE_OPUS_4_7"] = "CLAUDE_OPUS_4_7";
|
|
42
44
|
AnthropicModel["CLAUDE_OPUS_4_6"] = "CLAUDE_OPUS_4_6";
|
|
43
45
|
AnthropicModel["CLAUDE_SONNET_4_6"] = "CLAUDE_SONNET_4_6";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** Anthropic Claude language models available for text generation. */
|
|
2
2
|
export declare enum AnthropicModel {
|
|
3
|
+
CLAUDE_FABLE_5 = "CLAUDE_FABLE_5",
|
|
4
|
+
CLAUDE_OPUS_5 = "CLAUDE_OPUS_5",
|
|
3
5
|
CLAUDE_OPUS_4_7 = "CLAUDE_OPUS_4_7",
|
|
4
6
|
CLAUDE_OPUS_4_6 = "CLAUDE_OPUS_4_6",
|
|
5
7
|
CLAUDE_SONNET_4_6 = "CLAUDE_SONNET_4_6",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicModel.d.ts","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/enums/AnthropicModel.ts"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,oBAAY,cAAc;IACxB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;CACtC"}
|
|
1
|
+
{"version":3,"file":"AnthropicModel.d.ts","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/enums/AnthropicModel.ts"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,oBAAY,cAAc;IACxB,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicModel.js","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/enums/AnthropicModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,sEAAsE;AACtE,IAAY,
|
|
1
|
+
{"version":3,"file":"AnthropicModel.js","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/enums/AnthropicModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,sEAAsE;AACtE,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,iDAA+B,CAAA;IAC/B,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;AACvC,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB;AACD,WAAW,CAAC,gBAAgB,CAAC,cAAc,EAAE;IAC3C,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iEAAiE;CAC/E,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptic/backend-legacy",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1013",
|
|
4
4
|
"description": "Backend executable CRUD functions with dynamic variables construction, and type definitions for the Adaptic AI platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
45
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.TradingSettingsResolver = exports.FundTradingOverridesPayload = exports.OrgTradingDefaultsPayload = exports.TradingSettingsInput = exports.TradingSettings = void 0;
|
|
49
|
+
const TypeGraphQL = __importStar(require("type-graphql"));
|
|
50
|
+
const GraphQLScalars = __importStar(require("graphql-scalars"));
|
|
51
|
+
const helpers_1 = require("../../generated/typegraphql-prisma/helpers.cjs");
|
|
52
|
+
/**
|
|
53
|
+
* Institutional trading settings — the org→fund policy-resolution layer.
|
|
54
|
+
*
|
|
55
|
+
* Trading settings are configured at two levels and stored as JSON blobs on the
|
|
56
|
+
* owning rows: organization defaults (`Organization.tradingDefaults`) and
|
|
57
|
+
* per-fund overrides (`Fund.tradingOverrides`). The effective settings resolve
|
|
58
|
+
* `fundOverride ?? orgDefault` field-by-field; the SYSTEM-default layer is owned
|
|
59
|
+
* by the engine/client at runtime (the platform layers its own
|
|
60
|
+
* `SYSTEM_TRADING_DEFAULTS`), so this API returns only what is explicitly stored
|
|
61
|
+
* — an unset field is `null`, never a fabricated default.
|
|
62
|
+
*
|
|
63
|
+
* All fields are nullable: a settings object carries only the keys an operator
|
|
64
|
+
* has actually set. Updates are partial merges — a field absent from the input
|
|
65
|
+
* leaves the stored value untouched.
|
|
66
|
+
*/
|
|
67
|
+
/** The 20 trading-settings field keys, in the platform's fragment order. */
|
|
68
|
+
const TRADING_SETTINGS_KEYS = [
|
|
69
|
+
'realTime',
|
|
70
|
+
'marketOpen',
|
|
71
|
+
'tradeAllocationPct',
|
|
72
|
+
'minPercentageChange',
|
|
73
|
+
'volumeThreshold',
|
|
74
|
+
'autoAllocation',
|
|
75
|
+
'allocation',
|
|
76
|
+
'cryptoTradingEnabled',
|
|
77
|
+
'cryptoTradingPairs',
|
|
78
|
+
'cryptoTradeAllocationPct',
|
|
79
|
+
'enablePortfolioTrailingStop',
|
|
80
|
+
'portfolioTrailPercent',
|
|
81
|
+
'portfolioProfitThresholdPercent',
|
|
82
|
+
'reducedPortfolioTrailPercent',
|
|
83
|
+
'defaultTrailingStopPercentage100',
|
|
84
|
+
'firstTrailReductionThreshold100',
|
|
85
|
+
'secondTrailReductionThreshold100',
|
|
86
|
+
'firstReducedTrailPercentage100',
|
|
87
|
+
'secondReducedTrailPercentage100',
|
|
88
|
+
'minimumPriceChangePercent100',
|
|
89
|
+
];
|
|
90
|
+
/** Institutional trading settings (all fields optional; unset ⇒ null). */
|
|
91
|
+
let TradingSettings = class TradingSettings {
|
|
92
|
+
};
|
|
93
|
+
exports.TradingSettings = TradingSettings;
|
|
94
|
+
__decorate([
|
|
95
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], TradingSettings.prototype, "realTime", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], TradingSettings.prototype, "marketOpen", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], TradingSettings.prototype, "tradeAllocationPct", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], TradingSettings.prototype, "minPercentageChange", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], TradingSettings.prototype, "volumeThreshold", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
116
|
+
__metadata("design:type", Object)
|
|
117
|
+
], TradingSettings.prototype, "autoAllocation", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
TypeGraphQL.Field((_type) => GraphQLScalars.JSONResolver, { nullable: true }),
|
|
120
|
+
__metadata("design:type", Object)
|
|
121
|
+
], TradingSettings.prototype, "allocation", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], TradingSettings.prototype, "cryptoTradingEnabled", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
TypeGraphQL.Field((_type) => [String], { nullable: true }),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], TradingSettings.prototype, "cryptoTradingPairs", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], TradingSettings.prototype, "cryptoTradeAllocationPct", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
136
|
+
__metadata("design:type", Object)
|
|
137
|
+
], TradingSettings.prototype, "enablePortfolioTrailingStop", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], TradingSettings.prototype, "portfolioTrailPercent", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
|
+
], TradingSettings.prototype, "portfolioProfitThresholdPercent", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
148
|
+
__metadata("design:type", Object)
|
|
149
|
+
], TradingSettings.prototype, "reducedPortfolioTrailPercent", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], TradingSettings.prototype, "defaultTrailingStopPercentage100", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
156
|
+
__metadata("design:type", Object)
|
|
157
|
+
], TradingSettings.prototype, "firstTrailReductionThreshold100", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], TradingSettings.prototype, "secondTrailReductionThreshold100", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
164
|
+
__metadata("design:type", Object)
|
|
165
|
+
], TradingSettings.prototype, "firstReducedTrailPercentage100", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], TradingSettings.prototype, "secondReducedTrailPercentage100", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
172
|
+
__metadata("design:type", Object)
|
|
173
|
+
], TradingSettings.prototype, "minimumPriceChangePercent100", void 0);
|
|
174
|
+
exports.TradingSettings = TradingSettings = __decorate([
|
|
175
|
+
TypeGraphQL.ObjectType('TradingSettings', {})
|
|
176
|
+
], TradingSettings);
|
|
177
|
+
/** Partial trading-settings patch for org-default / fund-override updates. */
|
|
178
|
+
let TradingSettingsInput = class TradingSettingsInput {
|
|
179
|
+
};
|
|
180
|
+
exports.TradingSettingsInput = TradingSettingsInput;
|
|
181
|
+
__decorate([
|
|
182
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
183
|
+
__metadata("design:type", Boolean)
|
|
184
|
+
], TradingSettingsInput.prototype, "realTime", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
187
|
+
__metadata("design:type", Boolean)
|
|
188
|
+
], TradingSettingsInput.prototype, "marketOpen", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
191
|
+
__metadata("design:type", Number)
|
|
192
|
+
], TradingSettingsInput.prototype, "tradeAllocationPct", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
195
|
+
__metadata("design:type", Number)
|
|
196
|
+
], TradingSettingsInput.prototype, "minPercentageChange", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
199
|
+
__metadata("design:type", Number)
|
|
200
|
+
], TradingSettingsInput.prototype, "volumeThreshold", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
203
|
+
__metadata("design:type", Boolean)
|
|
204
|
+
], TradingSettingsInput.prototype, "autoAllocation", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
TypeGraphQL.Field((_type) => GraphQLScalars.JSONResolver, { nullable: true }),
|
|
207
|
+
__metadata("design:type", Object)
|
|
208
|
+
], TradingSettingsInput.prototype, "allocation", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
211
|
+
__metadata("design:type", Boolean)
|
|
212
|
+
], TradingSettingsInput.prototype, "cryptoTradingEnabled", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
TypeGraphQL.Field((_type) => [String], { nullable: true }),
|
|
215
|
+
__metadata("design:type", Array)
|
|
216
|
+
], TradingSettingsInput.prototype, "cryptoTradingPairs", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
219
|
+
__metadata("design:type", Number)
|
|
220
|
+
], TradingSettingsInput.prototype, "cryptoTradeAllocationPct", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
TypeGraphQL.Field((_type) => Boolean, { nullable: true }),
|
|
223
|
+
__metadata("design:type", Boolean)
|
|
224
|
+
], TradingSettingsInput.prototype, "enablePortfolioTrailingStop", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
227
|
+
__metadata("design:type", Number)
|
|
228
|
+
], TradingSettingsInput.prototype, "portfolioTrailPercent", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
231
|
+
__metadata("design:type", Number)
|
|
232
|
+
], TradingSettingsInput.prototype, "portfolioProfitThresholdPercent", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
235
|
+
__metadata("design:type", Number)
|
|
236
|
+
], TradingSettingsInput.prototype, "reducedPortfolioTrailPercent", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
239
|
+
__metadata("design:type", Number)
|
|
240
|
+
], TradingSettingsInput.prototype, "defaultTrailingStopPercentage100", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
243
|
+
__metadata("design:type", Number)
|
|
244
|
+
], TradingSettingsInput.prototype, "firstTrailReductionThreshold100", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
247
|
+
__metadata("design:type", Number)
|
|
248
|
+
], TradingSettingsInput.prototype, "secondTrailReductionThreshold100", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
251
|
+
__metadata("design:type", Number)
|
|
252
|
+
], TradingSettingsInput.prototype, "firstReducedTrailPercentage100", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
255
|
+
__metadata("design:type", Number)
|
|
256
|
+
], TradingSettingsInput.prototype, "secondReducedTrailPercentage100", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
TypeGraphQL.Field((_type) => TypeGraphQL.Float, { nullable: true }),
|
|
259
|
+
__metadata("design:type", Number)
|
|
260
|
+
], TradingSettingsInput.prototype, "minimumPriceChangePercent100", void 0);
|
|
261
|
+
exports.TradingSettingsInput = TradingSettingsInput = __decorate([
|
|
262
|
+
TypeGraphQL.InputType('TradingSettingsInput', {})
|
|
263
|
+
], TradingSettingsInput);
|
|
264
|
+
/** Result of an org-defaults update: the org plus its resolved defaults. */
|
|
265
|
+
let OrgTradingDefaultsPayload = class OrgTradingDefaultsPayload {
|
|
266
|
+
};
|
|
267
|
+
exports.OrgTradingDefaultsPayload = OrgTradingDefaultsPayload;
|
|
268
|
+
__decorate([
|
|
269
|
+
TypeGraphQL.Field((_type) => String, { nullable: false }),
|
|
270
|
+
__metadata("design:type", String)
|
|
271
|
+
], OrgTradingDefaultsPayload.prototype, "id", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
TypeGraphQL.Field((_type) => String, { nullable: false }),
|
|
274
|
+
__metadata("design:type", String)
|
|
275
|
+
], OrgTradingDefaultsPayload.prototype, "name", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
TypeGraphQL.Field((_type) => TradingSettings, { nullable: true }),
|
|
278
|
+
__metadata("design:type", Object)
|
|
279
|
+
], OrgTradingDefaultsPayload.prototype, "tradingDefaults", void 0);
|
|
280
|
+
exports.OrgTradingDefaultsPayload = OrgTradingDefaultsPayload = __decorate([
|
|
281
|
+
TypeGraphQL.ObjectType('OrgTradingDefaultsPayload', {})
|
|
282
|
+
], OrgTradingDefaultsPayload);
|
|
283
|
+
/** Result of a fund-overrides update: the fund plus its resolved overrides. */
|
|
284
|
+
let FundTradingOverridesPayload = class FundTradingOverridesPayload {
|
|
285
|
+
};
|
|
286
|
+
exports.FundTradingOverridesPayload = FundTradingOverridesPayload;
|
|
287
|
+
__decorate([
|
|
288
|
+
TypeGraphQL.Field((_type) => String, { nullable: false }),
|
|
289
|
+
__metadata("design:type", String)
|
|
290
|
+
], FundTradingOverridesPayload.prototype, "id", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
TypeGraphQL.Field((_type) => String, { nullable: false }),
|
|
293
|
+
__metadata("design:type", String)
|
|
294
|
+
], FundTradingOverridesPayload.prototype, "name", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
TypeGraphQL.Field((_type) => TradingSettings, { nullable: true }),
|
|
297
|
+
__metadata("design:type", Object)
|
|
298
|
+
], FundTradingOverridesPayload.prototype, "tradingOverrides", void 0);
|
|
299
|
+
exports.FundTradingOverridesPayload = FundTradingOverridesPayload = __decorate([
|
|
300
|
+
TypeGraphQL.ObjectType('FundTradingOverridesPayload', {})
|
|
301
|
+
], FundTradingOverridesPayload);
|
|
302
|
+
/**
|
|
303
|
+
* Coerce a stored JSON settings blob into a plain record, dropping any
|
|
304
|
+
* non-object value (a corrupt/legacy scalar) to an empty record so callers
|
|
305
|
+
* always see a well-formed settings object.
|
|
306
|
+
*/
|
|
307
|
+
function toSettingsRecord(value) {
|
|
308
|
+
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
|
309
|
+
return value;
|
|
310
|
+
}
|
|
311
|
+
return {};
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Project a settings record onto exactly the known trading-settings keys,
|
|
315
|
+
* dropping any stray keys. Present keys keep their stored value (including an
|
|
316
|
+
* explicit `null`); absent keys are omitted so GraphQL resolves them to `null`.
|
|
317
|
+
*/
|
|
318
|
+
function projectSettings(record) {
|
|
319
|
+
const out = {};
|
|
320
|
+
for (const key of TRADING_SETTINGS_KEYS) {
|
|
321
|
+
if (key in record) {
|
|
322
|
+
out[key] = record[key];
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return out;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Merge a partial input patch onto an existing settings record. Only keys
|
|
329
|
+
* actually supplied in the patch (value !== undefined) overwrite; every other
|
|
330
|
+
* stored value is preserved. Returns a plain JSON-serialisable record.
|
|
331
|
+
*/
|
|
332
|
+
function mergeSettings(existing, patch) {
|
|
333
|
+
const merged = { ...projectSettings(existing) };
|
|
334
|
+
for (const key of TRADING_SETTINGS_KEYS) {
|
|
335
|
+
const next = patch[key];
|
|
336
|
+
if (next !== undefined) {
|
|
337
|
+
merged[key] = next;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return merged;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Custom resolver implementing the org→fund trading-settings policy layer over
|
|
344
|
+
* `Organization.tradingDefaults` and `Fund.tradingOverrides`.
|
|
345
|
+
*/
|
|
346
|
+
let TradingSettingsResolver = class TradingSettingsResolver {
|
|
347
|
+
/** Organization-level trading defaults (the stored blob; unset ⇒ null). */
|
|
348
|
+
async organizationTradingDefaults(orgId, ctx) {
|
|
349
|
+
const prisma = (0, helpers_1.getPrismaFromContext)(ctx);
|
|
350
|
+
const org = await prisma.organization.findUnique({
|
|
351
|
+
where: { id: orgId },
|
|
352
|
+
select: { tradingDefaults: true },
|
|
353
|
+
});
|
|
354
|
+
return projectSettings(toSettingsRecord(org === null || org === void 0 ? void 0 : org.tradingDefaults));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Effective settings for an org (and optional fund): `fundOverride ??
|
|
358
|
+
* orgDefault` field-by-field. Unset fields are null — the system-default
|
|
359
|
+
* layer is applied by the runtime/client, not fabricated here.
|
|
360
|
+
*/
|
|
361
|
+
async effectiveTradingSettings(orgId, ctx, fundId) {
|
|
362
|
+
const prisma = (0, helpers_1.getPrismaFromContext)(ctx);
|
|
363
|
+
const [org, fund] = await Promise.all([
|
|
364
|
+
prisma.organization.findUnique({
|
|
365
|
+
where: { id: orgId },
|
|
366
|
+
select: { tradingDefaults: true },
|
|
367
|
+
}),
|
|
368
|
+
fundId
|
|
369
|
+
? prisma.fund.findUnique({
|
|
370
|
+
where: { id: fundId },
|
|
371
|
+
select: { tradingOverrides: true },
|
|
372
|
+
})
|
|
373
|
+
: Promise.resolve(null),
|
|
374
|
+
]);
|
|
375
|
+
const orgDefaults = projectSettings(toSettingsRecord(org === null || org === void 0 ? void 0 : org.tradingDefaults));
|
|
376
|
+
const fundOverrides = projectSettings(toSettingsRecord(fund === null || fund === void 0 ? void 0 : fund.tradingOverrides));
|
|
377
|
+
const effective = {};
|
|
378
|
+
for (const key of TRADING_SETTINGS_KEYS) {
|
|
379
|
+
const fundVal = fundOverrides[key];
|
|
380
|
+
effective[key] =
|
|
381
|
+
fundVal !== undefined && fundVal !== null ? fundVal : orgDefaults[key];
|
|
382
|
+
}
|
|
383
|
+
return effective;
|
|
384
|
+
}
|
|
385
|
+
/** Merge a partial patch into the org's stored trading defaults. */
|
|
386
|
+
async updateOrgTradingDefaults(orgId, settings, ctx) {
|
|
387
|
+
const prisma = (0, helpers_1.getPrismaFromContext)(ctx);
|
|
388
|
+
const existing = await prisma.organization.findUnique({
|
|
389
|
+
where: { id: orgId },
|
|
390
|
+
select: { tradingDefaults: true },
|
|
391
|
+
});
|
|
392
|
+
if (!existing) {
|
|
393
|
+
throw new Error(`Organization ${orgId} not found`);
|
|
394
|
+
}
|
|
395
|
+
const merged = mergeSettings(toSettingsRecord(existing.tradingDefaults), settings);
|
|
396
|
+
const updated = await prisma.organization.update({
|
|
397
|
+
where: { id: orgId },
|
|
398
|
+
data: { tradingDefaults: merged },
|
|
399
|
+
select: { id: true, name: true, tradingDefaults: true },
|
|
400
|
+
});
|
|
401
|
+
return {
|
|
402
|
+
id: updated.id,
|
|
403
|
+
name: updated.name,
|
|
404
|
+
tradingDefaults: projectSettings(toSettingsRecord(updated.tradingDefaults)),
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
/** Merge a partial patch into the fund's stored trading overrides. */
|
|
408
|
+
async updateFundTradingOverrides(fundId, settings, ctx) {
|
|
409
|
+
const prisma = (0, helpers_1.getPrismaFromContext)(ctx);
|
|
410
|
+
const existing = await prisma.fund.findUnique({
|
|
411
|
+
where: { id: fundId },
|
|
412
|
+
select: { tradingOverrides: true },
|
|
413
|
+
});
|
|
414
|
+
if (!existing) {
|
|
415
|
+
throw new Error(`Fund ${fundId} not found`);
|
|
416
|
+
}
|
|
417
|
+
const merged = mergeSettings(toSettingsRecord(existing.tradingOverrides), settings);
|
|
418
|
+
const updated = await prisma.fund.update({
|
|
419
|
+
where: { id: fundId },
|
|
420
|
+
data: { tradingOverrides: merged },
|
|
421
|
+
select: { id: true, name: true, tradingOverrides: true },
|
|
422
|
+
});
|
|
423
|
+
return {
|
|
424
|
+
id: updated.id,
|
|
425
|
+
name: updated.name,
|
|
426
|
+
tradingOverrides: projectSettings(toSettingsRecord(updated.tradingOverrides)),
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
exports.TradingSettingsResolver = TradingSettingsResolver;
|
|
431
|
+
__decorate([
|
|
432
|
+
TypeGraphQL.Query((_returns) => TradingSettings, {
|
|
433
|
+
nullable: true,
|
|
434
|
+
description: 'Organization-level trading defaults (unset fields are null).',
|
|
435
|
+
}),
|
|
436
|
+
__param(0, TypeGraphQL.Arg('orgId', (_type) => String)),
|
|
437
|
+
__param(1, TypeGraphQL.Ctx()),
|
|
438
|
+
__metadata("design:type", Function),
|
|
439
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
440
|
+
__metadata("design:returntype", Promise)
|
|
441
|
+
], TradingSettingsResolver.prototype, "organizationTradingDefaults", null);
|
|
442
|
+
__decorate([
|
|
443
|
+
TypeGraphQL.Query((_returns) => TradingSettings, {
|
|
444
|
+
nullable: true,
|
|
445
|
+
description: 'Effective trading settings: fund override takes precedence over org default, field by field.',
|
|
446
|
+
}),
|
|
447
|
+
__param(0, TypeGraphQL.Arg('orgId', (_type) => String)),
|
|
448
|
+
__param(1, TypeGraphQL.Ctx()),
|
|
449
|
+
__param(2, TypeGraphQL.Arg('fundId', (_type) => String, { nullable: true })),
|
|
450
|
+
__metadata("design:type", Function),
|
|
451
|
+
__metadata("design:paramtypes", [String, Object, String]),
|
|
452
|
+
__metadata("design:returntype", Promise)
|
|
453
|
+
], TradingSettingsResolver.prototype, "effectiveTradingSettings", null);
|
|
454
|
+
__decorate([
|
|
455
|
+
TypeGraphQL.Mutation((_returns) => OrgTradingDefaultsPayload, {
|
|
456
|
+
nullable: false,
|
|
457
|
+
description: 'Update (partial-merge) the organization-level trading defaults.',
|
|
458
|
+
}),
|
|
459
|
+
__param(0, TypeGraphQL.Arg('orgId', (_type) => String)),
|
|
460
|
+
__param(1, TypeGraphQL.Arg('settings', (_type) => TradingSettingsInput)),
|
|
461
|
+
__param(2, TypeGraphQL.Ctx()),
|
|
462
|
+
__metadata("design:type", Function),
|
|
463
|
+
__metadata("design:paramtypes", [String, TradingSettingsInput, Object]),
|
|
464
|
+
__metadata("design:returntype", Promise)
|
|
465
|
+
], TradingSettingsResolver.prototype, "updateOrgTradingDefaults", null);
|
|
466
|
+
__decorate([
|
|
467
|
+
TypeGraphQL.Mutation((_returns) => FundTradingOverridesPayload, {
|
|
468
|
+
nullable: false,
|
|
469
|
+
description: 'Update (partial-merge) the fund-level trading overrides.',
|
|
470
|
+
}),
|
|
471
|
+
__param(0, TypeGraphQL.Arg('fundId', (_type) => String)),
|
|
472
|
+
__param(1, TypeGraphQL.Arg('settings', (_type) => TradingSettingsInput)),
|
|
473
|
+
__param(2, TypeGraphQL.Ctx()),
|
|
474
|
+
__metadata("design:type", Function),
|
|
475
|
+
__metadata("design:paramtypes", [String, TradingSettingsInput, Object]),
|
|
476
|
+
__metadata("design:returntype", Promise)
|
|
477
|
+
], TradingSettingsResolver.prototype, "updateFundTradingOverrides", null);
|
|
478
|
+
exports.TradingSettingsResolver = TradingSettingsResolver = __decorate([
|
|
479
|
+
TypeGraphQL.Resolver()
|
|
480
|
+
], TradingSettingsResolver);
|
|
481
|
+
//# sourceMappingURL=TradingSettingsResolver.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { PrismaClient, Prisma } from '@prisma/client';
|
|
2
|
+
/** Institutional trading settings (all fields optional; unset ⇒ null). */
|
|
3
|
+
export declare class TradingSettings {
|
|
4
|
+
realTime?: boolean | null;
|
|
5
|
+
marketOpen?: boolean | null;
|
|
6
|
+
tradeAllocationPct?: number | null;
|
|
7
|
+
minPercentageChange?: number | null;
|
|
8
|
+
volumeThreshold?: number | null;
|
|
9
|
+
autoAllocation?: boolean | null;
|
|
10
|
+
allocation?: Prisma.JsonValue | null;
|
|
11
|
+
cryptoTradingEnabled?: boolean | null;
|
|
12
|
+
cryptoTradingPairs?: string[] | null;
|
|
13
|
+
cryptoTradeAllocationPct?: number | null;
|
|
14
|
+
enablePortfolioTrailingStop?: boolean | null;
|
|
15
|
+
portfolioTrailPercent?: number | null;
|
|
16
|
+
portfolioProfitThresholdPercent?: number | null;
|
|
17
|
+
reducedPortfolioTrailPercent?: number | null;
|
|
18
|
+
defaultTrailingStopPercentage100?: number | null;
|
|
19
|
+
firstTrailReductionThreshold100?: number | null;
|
|
20
|
+
secondTrailReductionThreshold100?: number | null;
|
|
21
|
+
firstReducedTrailPercentage100?: number | null;
|
|
22
|
+
secondReducedTrailPercentage100?: number | null;
|
|
23
|
+
minimumPriceChangePercent100?: number | null;
|
|
24
|
+
}
|
|
25
|
+
/** Partial trading-settings patch for org-default / fund-override updates. */
|
|
26
|
+
export declare class TradingSettingsInput {
|
|
27
|
+
realTime?: boolean;
|
|
28
|
+
marketOpen?: boolean;
|
|
29
|
+
tradeAllocationPct?: number;
|
|
30
|
+
minPercentageChange?: number;
|
|
31
|
+
volumeThreshold?: number;
|
|
32
|
+
autoAllocation?: boolean;
|
|
33
|
+
allocation?: Prisma.InputJsonValue;
|
|
34
|
+
cryptoTradingEnabled?: boolean;
|
|
35
|
+
cryptoTradingPairs?: string[];
|
|
36
|
+
cryptoTradeAllocationPct?: number;
|
|
37
|
+
enablePortfolioTrailingStop?: boolean;
|
|
38
|
+
portfolioTrailPercent?: number;
|
|
39
|
+
portfolioProfitThresholdPercent?: number;
|
|
40
|
+
reducedPortfolioTrailPercent?: number;
|
|
41
|
+
defaultTrailingStopPercentage100?: number;
|
|
42
|
+
firstTrailReductionThreshold100?: number;
|
|
43
|
+
secondTrailReductionThreshold100?: number;
|
|
44
|
+
firstReducedTrailPercentage100?: number;
|
|
45
|
+
secondReducedTrailPercentage100?: number;
|
|
46
|
+
minimumPriceChangePercent100?: number;
|
|
47
|
+
}
|
|
48
|
+
/** Result of an org-defaults update: the org plus its resolved defaults. */
|
|
49
|
+
export declare class OrgTradingDefaultsPayload {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
tradingDefaults?: TradingSettings | null;
|
|
53
|
+
}
|
|
54
|
+
/** Result of a fund-overrides update: the fund plus its resolved overrides. */
|
|
55
|
+
export declare class FundTradingOverridesPayload {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
tradingOverrides?: TradingSettings | null;
|
|
59
|
+
}
|
|
60
|
+
/** GraphQL resolver context carrying the Prisma client. */
|
|
61
|
+
interface GraphQLContext {
|
|
62
|
+
prisma: PrismaClient;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Custom resolver implementing the org→fund trading-settings policy layer over
|
|
66
|
+
* `Organization.tradingDefaults` and `Fund.tradingOverrides`.
|
|
67
|
+
*/
|
|
68
|
+
export declare class TradingSettingsResolver {
|
|
69
|
+
/** Organization-level trading defaults (the stored blob; unset ⇒ null). */
|
|
70
|
+
organizationTradingDefaults(orgId: string, ctx: GraphQLContext): Promise<TradingSettings>;
|
|
71
|
+
/**
|
|
72
|
+
* Effective settings for an org (and optional fund): `fundOverride ??
|
|
73
|
+
* orgDefault` field-by-field. Unset fields are null — the system-default
|
|
74
|
+
* layer is applied by the runtime/client, not fabricated here.
|
|
75
|
+
*/
|
|
76
|
+
effectiveTradingSettings(orgId: string, ctx: GraphQLContext, fundId?: string): Promise<TradingSettings>;
|
|
77
|
+
/** Merge a partial patch into the org's stored trading defaults. */
|
|
78
|
+
updateOrgTradingDefaults(orgId: string, settings: TradingSettingsInput, ctx: GraphQLContext): Promise<OrgTradingDefaultsPayload>;
|
|
79
|
+
/** Merge a partial patch into the fund's stored trading overrides. */
|
|
80
|
+
updateFundTradingOverrides(fundId: string, settings: TradingSettingsInput, ctx: GraphQLContext): Promise<FundTradingOverridesPayload>;
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=TradingSettingsResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TradingSettingsResolver.d.ts","sourceRoot":"","sources":["../../../src/resolvers/custom/TradingSettingsResolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AA8C3D,0EAA0E;AAC1E,qBACa,eAAe;IAE1B,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAG1B,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAG5B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGnC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpC,eAAe,CAAC,EAAE,MAAM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,sEAAsE;IAKhE,0BAA0B,CACgB,MAAM,EAAE,MAAM,EAE5D,QAAQ,EAAE,oBAAoB,EACX,GAAG,EAAE,cAAc,GACrC,OAAO,CAAC,2BAA2B,CAAC;CA0BxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TradingSettingsResolver.js","sourceRoot":"","sources":["../../../src/resolvers/custom/TradingSettingsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAC5C,gEAAkD;AAElD,wEAAkF;AAElF;;;;;;;;;;;;;;GAcG;AAEH,4EAA4E;AAC5E,MAAM,qBAAqB,GAAG;IAC5B,UAAU;IACV,YAAY;IACZ,oBAAoB;IACpB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,YAAY;IACZ,sBAAsB;IACtB,oBAAoB;IACpB,0BAA0B;IAC1B,6BAA6B;IAC7B,uBAAuB;IACvB,iCAAiC;IACjC,8BAA8B;IAC9B,kCAAkC;IAClC,iCAAiC;IACjC,kCAAkC;IAClC,gCAAgC;IAChC,iCAAiC;IACjC,8BAA8B;CACtB,CAAC;AAKX,0EAA0E;AAEnE,IAAM,eAAe,GAArB,MAAM,eAAe;CA4D3B,CAAA;AA5DY,0CAAe;AAE1B;IADC,WAAW,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAChC;AAG1B;IADC,WAAW,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC9B;AAG5B;IADC,WAAW,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACjC;AAGnC;IADC,WAAW,CAAC,KAA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CAAC,CAAA;IAC5C,WAAA,WAAW,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAA;IAE5D,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;;6CADR,oBAAoB;;yEA2B/B;kCAvIU,uBAAuB;IADnC,WAAW,CAAC,QAAQ,EAAE;GACV,uBAAuB,CAwInC"}
|
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
* with custom aggregation queries and business logic
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.OptionsGreeksHistorySystemSummary = exports.OptionsGreeksHistoryCustomResolver = void 0;
|
|
8
|
+
exports.FundTradingOverridesPayload = exports.OrgTradingDefaultsPayload = exports.TradingSettingsInput = exports.TradingSettings = exports.TradingSettingsResolver = exports.OptionsGreeksHistorySystemSummary = exports.OptionsGreeksHistoryCustomResolver = void 0;
|
|
9
9
|
var OptionsGreeksHistoryCustomResolver_1 = require("./OptionsGreeksHistoryCustomResolver.cjs");
|
|
10
10
|
Object.defineProperty(exports, "OptionsGreeksHistoryCustomResolver", { enumerable: true, get: function () { return OptionsGreeksHistoryCustomResolver_1.OptionsGreeksHistoryCustomResolver; } });
|
|
11
11
|
var OptionsGreeksHistorySystemSummary_1 = require("./OptionsGreeksHistorySystemSummary.cjs");
|
|
12
12
|
Object.defineProperty(exports, "OptionsGreeksHistorySystemSummary", { enumerable: true, get: function () { return OptionsGreeksHistorySystemSummary_1.OptionsGreeksHistorySystemSummary; } });
|
|
13
|
+
var TradingSettingsResolver_1 = require("./TradingSettingsResolver.cjs");
|
|
14
|
+
Object.defineProperty(exports, "TradingSettingsResolver", { enumerable: true, get: function () { return TradingSettingsResolver_1.TradingSettingsResolver; } });
|
|
15
|
+
Object.defineProperty(exports, "TradingSettings", { enumerable: true, get: function () { return TradingSettingsResolver_1.TradingSettings; } });
|
|
16
|
+
Object.defineProperty(exports, "TradingSettingsInput", { enumerable: true, get: function () { return TradingSettingsResolver_1.TradingSettingsInput; } });
|
|
17
|
+
Object.defineProperty(exports, "OrgTradingDefaultsPayload", { enumerable: true, get: function () { return TradingSettingsResolver_1.OrgTradingDefaultsPayload; } });
|
|
18
|
+
Object.defineProperty(exports, "FundTradingOverridesPayload", { enumerable: true, get: function () { return TradingSettingsResolver_1.FundTradingOverridesPayload; } });
|
|
13
19
|
//# sourceMappingURL=index.js.map
|