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