@pear-protocol/types 2.11.0 → 2.12.0
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/dist/auth/payloads.d.ts +3 -3
- package/dist/auth/payloads.js +1 -1
- package/dist/baskets/saved/entities.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.js +2 -0
- package/dist/common/refinement.d.ts +3 -3
- package/dist/common/trade-legs.js +1 -1
- package/dist/copy/entities.d.ts +186 -0
- package/dist/copy/entities.js +113 -0
- package/dist/copy/index.d.ts +4 -0
- package/dist/copy/index.js +4 -0
- package/dist/copy/payloads.d.ts +14 -0
- package/dist/copy/payloads.js +8 -0
- package/dist/copy/queries.d.ts +13 -0
- package/dist/copy/queries.js +16 -0
- package/dist/copy/responses.d.ts +332 -0
- package/dist/copy/responses.js +91 -0
- package/dist/execution/entities.d.ts +71 -71
- package/dist/execution/entities.js +1 -1
- package/dist/execution/queries.d.ts +2 -2
- package/dist/execution/responses.d.ts +40 -40
- package/dist/ladder/entities.d.ts +22 -17
- package/dist/ladder/queries.d.ts +5 -0
- package/dist/ladder/queries.js +6 -2
- package/dist/ladder/responses.d.ts +63 -48
- package/dist/misc/payloads.d.ts +26 -0
- package/dist/misc/payloads.js +27 -1
- package/dist/misc/responses.d.ts +8 -0
- package/dist/misc/responses.js +7 -1
- package/dist/notification/entities.d.ts +120 -0
- package/dist/notification/entities.js +59 -3
- package/dist/notification/responses.d.ts +60 -0
- package/dist/order/entities.d.ts +3 -3
- package/dist/position/entities.d.ts +1 -1
- package/dist/position/responses.d.ts +3 -1
- package/dist/position/responses.js +2 -0
- package/dist/schedule/entities.d.ts +18 -12
- package/dist/schedule/entities.js +2 -1
- package/dist/schedule/queries.d.ts +2 -2
- package/dist/schedule/responses.d.ts +12 -8
- package/dist/schedule/twap-config.js +1 -1
- package/dist/statistics/entities.d.ts +10 -0
- package/dist/statistics/entities.js +4 -0
- package/dist/statistics/responses.d.ts +10 -0
- package/dist/sync/payloads.d.ts +12 -0
- package/dist/sync/payloads.js +31 -3
- package/dist/tca/responses.d.ts +12 -12
- package/dist/trade/responses.d.ts +100 -100
- package/dist/trade-accounts/entities.d.ts +136 -12
- package/dist/trade-accounts/entities.js +41 -9
- package/dist/trade-accounts/payloads.d.ts +12 -0
- package/dist/trade-accounts/payloads.js +7 -1
- package/dist/trade-accounts/response.d.ts +963 -223
- package/dist/traders/index.d.ts +1 -0
- package/dist/traders/index.js +1 -0
- package/dist/traders/public.d.ts +4967 -0
- package/dist/traders/public.js +128 -0
- package/dist/trigger/common/index.d.ts +3 -2
- package/dist/trigger/common/index.js +1 -0
- package/dist/trigger/entities/index.d.ts +64 -48
- package/dist/trigger/entities/index.js +3 -3
- package/dist/trigger/queries.d.ts +2 -2
- package/dist/trigger/responses.d.ts +40 -30
- package/dist/vaults/entities.d.ts +1 -1
- package/dist/vaults/responses.d.ts +2 -2
- package/package.json +2 -2
|
@@ -13,11 +13,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
13
13
|
lighter_rhc: "lighter_rhc";
|
|
14
14
|
}>;
|
|
15
15
|
status: z.ZodEnum<{
|
|
16
|
+
ACTIVE: "ACTIVE";
|
|
17
|
+
FAILED: "FAILED";
|
|
16
18
|
CANCELLED: "CANCELLED";
|
|
17
19
|
IDLE: "IDLE";
|
|
18
|
-
ACTIVE: "ACTIVE";
|
|
19
20
|
COMPLETED: "COMPLETED";
|
|
20
|
-
FAILED: "FAILED";
|
|
21
21
|
}>;
|
|
22
22
|
error: z.ZodOptional<z.ZodString>;
|
|
23
23
|
createdAt: z.ZodString;
|
|
@@ -33,8 +33,8 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
33
33
|
lighter_rhc: "lighter_rhc";
|
|
34
34
|
}>;
|
|
35
35
|
status: z.ZodEnum<{
|
|
36
|
-
PENDING: "PENDING";
|
|
37
36
|
PARTIAL: "PARTIAL";
|
|
37
|
+
PENDING: "PENDING";
|
|
38
38
|
FILLED: "FILLED";
|
|
39
39
|
CANCELLED: "CANCELLED";
|
|
40
40
|
REJECTED: "REJECTED";
|
|
@@ -56,10 +56,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
56
56
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
57
57
|
}, z.core.$strip>], "type">>>;
|
|
58
58
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
59
|
-
PENDING: "PENDING";
|
|
60
59
|
PARTIAL: "PARTIAL";
|
|
61
|
-
COMPLETE: "COMPLETE";
|
|
62
60
|
NONE: "NONE";
|
|
61
|
+
PENDING: "PENDING";
|
|
62
|
+
COMPLETE: "COMPLETE";
|
|
63
63
|
}>>;
|
|
64
64
|
intent: z.ZodLiteral<"OPEN">;
|
|
65
65
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -106,11 +106,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
106
106
|
lighter_rhc: "lighter_rhc";
|
|
107
107
|
}>;
|
|
108
108
|
status: z.ZodEnum<{
|
|
109
|
+
ACTIVE: "ACTIVE";
|
|
110
|
+
FAILED: "FAILED";
|
|
109
111
|
CANCELLED: "CANCELLED";
|
|
110
112
|
IDLE: "IDLE";
|
|
111
|
-
ACTIVE: "ACTIVE";
|
|
112
113
|
COMPLETED: "COMPLETED";
|
|
113
|
-
FAILED: "FAILED";
|
|
114
114
|
}>;
|
|
115
115
|
error: z.ZodOptional<z.ZodString>;
|
|
116
116
|
createdAt: z.ZodString;
|
|
@@ -126,8 +126,8 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
126
126
|
lighter_rhc: "lighter_rhc";
|
|
127
127
|
}>;
|
|
128
128
|
status: z.ZodEnum<{
|
|
129
|
-
PENDING: "PENDING";
|
|
130
129
|
PARTIAL: "PARTIAL";
|
|
130
|
+
PENDING: "PENDING";
|
|
131
131
|
FILLED: "FILLED";
|
|
132
132
|
CANCELLED: "CANCELLED";
|
|
133
133
|
REJECTED: "REJECTED";
|
|
@@ -149,10 +149,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
149
149
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
150
150
|
}, z.core.$strip>], "type">>>;
|
|
151
151
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
152
|
-
PENDING: "PENDING";
|
|
153
152
|
PARTIAL: "PARTIAL";
|
|
154
|
-
COMPLETE: "COMPLETE";
|
|
155
153
|
NONE: "NONE";
|
|
154
|
+
PENDING: "PENDING";
|
|
155
|
+
COMPLETE: "COMPLETE";
|
|
156
156
|
}>>;
|
|
157
157
|
intent: z.ZodLiteral<"ADJUST">;
|
|
158
158
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -200,11 +200,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
200
200
|
lighter_rhc: "lighter_rhc";
|
|
201
201
|
}>;
|
|
202
202
|
status: z.ZodEnum<{
|
|
203
|
+
ACTIVE: "ACTIVE";
|
|
204
|
+
FAILED: "FAILED";
|
|
203
205
|
CANCELLED: "CANCELLED";
|
|
204
206
|
IDLE: "IDLE";
|
|
205
|
-
ACTIVE: "ACTIVE";
|
|
206
207
|
COMPLETED: "COMPLETED";
|
|
207
|
-
FAILED: "FAILED";
|
|
208
208
|
}>;
|
|
209
209
|
error: z.ZodOptional<z.ZodString>;
|
|
210
210
|
createdAt: z.ZodString;
|
|
@@ -220,8 +220,8 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
220
220
|
lighter_rhc: "lighter_rhc";
|
|
221
221
|
}>;
|
|
222
222
|
status: z.ZodEnum<{
|
|
223
|
-
PENDING: "PENDING";
|
|
224
223
|
PARTIAL: "PARTIAL";
|
|
224
|
+
PENDING: "PENDING";
|
|
225
225
|
FILLED: "FILLED";
|
|
226
226
|
CANCELLED: "CANCELLED";
|
|
227
227
|
REJECTED: "REJECTED";
|
|
@@ -243,10 +243,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
243
243
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
244
244
|
}, z.core.$strip>], "type">>>;
|
|
245
245
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
246
|
-
PENDING: "PENDING";
|
|
247
246
|
PARTIAL: "PARTIAL";
|
|
248
|
-
COMPLETE: "COMPLETE";
|
|
249
247
|
NONE: "NONE";
|
|
248
|
+
PENDING: "PENDING";
|
|
249
|
+
COMPLETE: "COMPLETE";
|
|
250
250
|
}>>;
|
|
251
251
|
intent: z.ZodLiteral<"CLOSE">;
|
|
252
252
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -265,11 +265,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
265
265
|
lighter_rhc: "lighter_rhc";
|
|
266
266
|
}>;
|
|
267
267
|
status: z.ZodEnum<{
|
|
268
|
+
ACTIVE: "ACTIVE";
|
|
269
|
+
FAILED: "FAILED";
|
|
268
270
|
CANCELLED: "CANCELLED";
|
|
269
271
|
IDLE: "IDLE";
|
|
270
|
-
ACTIVE: "ACTIVE";
|
|
271
272
|
COMPLETED: "COMPLETED";
|
|
272
|
-
FAILED: "FAILED";
|
|
273
273
|
}>;
|
|
274
274
|
error: z.ZodOptional<z.ZodString>;
|
|
275
275
|
createdAt: z.ZodString;
|
|
@@ -285,8 +285,8 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
285
285
|
lighter_rhc: "lighter_rhc";
|
|
286
286
|
}>;
|
|
287
287
|
status: z.ZodEnum<{
|
|
288
|
-
PENDING: "PENDING";
|
|
289
288
|
PARTIAL: "PARTIAL";
|
|
289
|
+
PENDING: "PENDING";
|
|
290
290
|
FILLED: "FILLED";
|
|
291
291
|
CANCELLED: "CANCELLED";
|
|
292
292
|
REJECTED: "REJECTED";
|
|
@@ -308,10 +308,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
308
308
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
309
309
|
}, z.core.$strip>], "type">>>;
|
|
310
310
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
311
|
-
PENDING: "PENDING";
|
|
312
311
|
PARTIAL: "PARTIAL";
|
|
313
|
-
COMPLETE: "COMPLETE";
|
|
314
312
|
NONE: "NONE";
|
|
313
|
+
PENDING: "PENDING";
|
|
314
|
+
COMPLETE: "COMPLETE";
|
|
315
315
|
}>>;
|
|
316
316
|
intent: z.ZodLiteral<"REVERSE">;
|
|
317
317
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -334,11 +334,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
334
334
|
lighter_rhc: "lighter_rhc";
|
|
335
335
|
}>;
|
|
336
336
|
status: z.ZodEnum<{
|
|
337
|
+
ACTIVE: "ACTIVE";
|
|
338
|
+
FAILED: "FAILED";
|
|
337
339
|
CANCELLED: "CANCELLED";
|
|
338
340
|
IDLE: "IDLE";
|
|
339
|
-
ACTIVE: "ACTIVE";
|
|
340
341
|
COMPLETED: "COMPLETED";
|
|
341
|
-
FAILED: "FAILED";
|
|
342
342
|
}>;
|
|
343
343
|
error: z.ZodOptional<z.ZodString>;
|
|
344
344
|
createdAt: z.ZodString;
|
|
@@ -354,8 +354,8 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
354
354
|
lighter_rhc: "lighter_rhc";
|
|
355
355
|
}>;
|
|
356
356
|
status: z.ZodEnum<{
|
|
357
|
-
PENDING: "PENDING";
|
|
358
357
|
PARTIAL: "PARTIAL";
|
|
358
|
+
PENDING: "PENDING";
|
|
359
359
|
FILLED: "FILLED";
|
|
360
360
|
CANCELLED: "CANCELLED";
|
|
361
361
|
REJECTED: "REJECTED";
|
|
@@ -377,10 +377,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
377
377
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
378
378
|
}, z.core.$strip>], "type">>>;
|
|
379
379
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
380
|
-
PENDING: "PENDING";
|
|
381
380
|
PARTIAL: "PARTIAL";
|
|
382
|
-
COMPLETE: "COMPLETE";
|
|
383
381
|
NONE: "NONE";
|
|
382
|
+
PENDING: "PENDING";
|
|
383
|
+
COMPLETE: "COMPLETE";
|
|
384
384
|
}>>;
|
|
385
385
|
intent: z.ZodLiteral<"OPEN">;
|
|
386
386
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -427,11 +427,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
427
427
|
lighter_rhc: "lighter_rhc";
|
|
428
428
|
}>;
|
|
429
429
|
status: z.ZodEnum<{
|
|
430
|
+
ACTIVE: "ACTIVE";
|
|
431
|
+
FAILED: "FAILED";
|
|
430
432
|
CANCELLED: "CANCELLED";
|
|
431
433
|
IDLE: "IDLE";
|
|
432
|
-
ACTIVE: "ACTIVE";
|
|
433
434
|
COMPLETED: "COMPLETED";
|
|
434
|
-
FAILED: "FAILED";
|
|
435
435
|
}>;
|
|
436
436
|
error: z.ZodOptional<z.ZodString>;
|
|
437
437
|
createdAt: z.ZodString;
|
|
@@ -447,8 +447,8 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
447
447
|
lighter_rhc: "lighter_rhc";
|
|
448
448
|
}>;
|
|
449
449
|
status: z.ZodEnum<{
|
|
450
|
-
PENDING: "PENDING";
|
|
451
450
|
PARTIAL: "PARTIAL";
|
|
451
|
+
PENDING: "PENDING";
|
|
452
452
|
FILLED: "FILLED";
|
|
453
453
|
CANCELLED: "CANCELLED";
|
|
454
454
|
REJECTED: "REJECTED";
|
|
@@ -470,10 +470,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
470
470
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
471
471
|
}, z.core.$strip>], "type">>>;
|
|
472
472
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
473
|
-
PENDING: "PENDING";
|
|
474
473
|
PARTIAL: "PARTIAL";
|
|
475
|
-
COMPLETE: "COMPLETE";
|
|
476
474
|
NONE: "NONE";
|
|
475
|
+
PENDING: "PENDING";
|
|
476
|
+
COMPLETE: "COMPLETE";
|
|
477
477
|
}>>;
|
|
478
478
|
intent: z.ZodLiteral<"ADJUST">;
|
|
479
479
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -521,11 +521,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
521
521
|
lighter_rhc: "lighter_rhc";
|
|
522
522
|
}>;
|
|
523
523
|
status: z.ZodEnum<{
|
|
524
|
+
ACTIVE: "ACTIVE";
|
|
525
|
+
FAILED: "FAILED";
|
|
524
526
|
CANCELLED: "CANCELLED";
|
|
525
527
|
IDLE: "IDLE";
|
|
526
|
-
ACTIVE: "ACTIVE";
|
|
527
528
|
COMPLETED: "COMPLETED";
|
|
528
|
-
FAILED: "FAILED";
|
|
529
529
|
}>;
|
|
530
530
|
error: z.ZodOptional<z.ZodString>;
|
|
531
531
|
createdAt: z.ZodString;
|
|
@@ -541,8 +541,8 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
541
541
|
lighter_rhc: "lighter_rhc";
|
|
542
542
|
}>;
|
|
543
543
|
status: z.ZodEnum<{
|
|
544
|
-
PENDING: "PENDING";
|
|
545
544
|
PARTIAL: "PARTIAL";
|
|
545
|
+
PENDING: "PENDING";
|
|
546
546
|
FILLED: "FILLED";
|
|
547
547
|
CANCELLED: "CANCELLED";
|
|
548
548
|
REJECTED: "REJECTED";
|
|
@@ -564,10 +564,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
564
564
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
565
565
|
}, z.core.$strip>], "type">>>;
|
|
566
566
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
567
|
-
PENDING: "PENDING";
|
|
568
567
|
PARTIAL: "PARTIAL";
|
|
569
|
-
COMPLETE: "COMPLETE";
|
|
570
568
|
NONE: "NONE";
|
|
569
|
+
PENDING: "PENDING";
|
|
570
|
+
COMPLETE: "COMPLETE";
|
|
571
571
|
}>>;
|
|
572
572
|
intent: z.ZodLiteral<"CLOSE">;
|
|
573
573
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -586,11 +586,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
586
586
|
lighter_rhc: "lighter_rhc";
|
|
587
587
|
}>;
|
|
588
588
|
status: z.ZodEnum<{
|
|
589
|
+
ACTIVE: "ACTIVE";
|
|
590
|
+
FAILED: "FAILED";
|
|
589
591
|
CANCELLED: "CANCELLED";
|
|
590
592
|
IDLE: "IDLE";
|
|
591
|
-
ACTIVE: "ACTIVE";
|
|
592
593
|
COMPLETED: "COMPLETED";
|
|
593
|
-
FAILED: "FAILED";
|
|
594
594
|
}>;
|
|
595
595
|
error: z.ZodOptional<z.ZodString>;
|
|
596
596
|
createdAt: z.ZodString;
|
|
@@ -606,8 +606,8 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
606
606
|
lighter_rhc: "lighter_rhc";
|
|
607
607
|
}>;
|
|
608
608
|
status: z.ZodEnum<{
|
|
609
|
-
PENDING: "PENDING";
|
|
610
609
|
PARTIAL: "PARTIAL";
|
|
610
|
+
PENDING: "PENDING";
|
|
611
611
|
FILLED: "FILLED";
|
|
612
612
|
CANCELLED: "CANCELLED";
|
|
613
613
|
REJECTED: "REJECTED";
|
|
@@ -629,10 +629,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
629
629
|
filledPrice: z.ZodOptional<z.ZodString>;
|
|
630
630
|
}, z.core.$strip>], "type">>>;
|
|
631
631
|
fulfillment: z.ZodOptional<z.ZodEnum<{
|
|
632
|
-
PENDING: "PENDING";
|
|
633
632
|
PARTIAL: "PARTIAL";
|
|
634
|
-
COMPLETE: "COMPLETE";
|
|
635
633
|
NONE: "NONE";
|
|
634
|
+
PENDING: "PENDING";
|
|
635
|
+
COMPLETE: "COMPLETE";
|
|
636
636
|
}>>;
|
|
637
637
|
intent: z.ZodLiteral<"REVERSE">;
|
|
638
638
|
orderType: z.ZodLiteral<"MARKET">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const LadderStatus: z.ZodEnum<{
|
|
3
|
-
CANCELLED: "CANCELLED";
|
|
4
3
|
ACTIVE: "ACTIVE";
|
|
4
|
+
CANCELLED: "CANCELLED";
|
|
5
5
|
COMPLETED: "COMPLETED";
|
|
6
6
|
}>;
|
|
7
7
|
export type LadderStatus = z.infer<typeof LadderStatus>;
|
|
@@ -23,8 +23,8 @@ export declare const Ladder: z.ZodObject<{
|
|
|
23
23
|
weighting: z.ZodDefault<z.ZodLiteral<"EQUAL">>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
status: z.ZodEnum<{
|
|
26
|
-
CANCELLED: "CANCELLED";
|
|
27
26
|
ACTIVE: "ACTIVE";
|
|
27
|
+
CANCELLED: "CANCELLED";
|
|
28
28
|
COMPLETED: "COMPLETED";
|
|
29
29
|
}>;
|
|
30
30
|
attachTriggers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -111,8 +111,8 @@ export declare const Ladder: z.ZodObject<{
|
|
|
111
111
|
lighter_rhc: "lighter_rhc";
|
|
112
112
|
}>;
|
|
113
113
|
status: z.ZodEnum<{
|
|
114
|
-
CANCELLED: "CANCELLED";
|
|
115
114
|
ACTIVE: "ACTIVE";
|
|
115
|
+
CANCELLED: "CANCELLED";
|
|
116
116
|
TRIGGERED: "TRIGGERED";
|
|
117
117
|
}>;
|
|
118
118
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -125,6 +125,7 @@ export declare const Ladder: z.ZodObject<{
|
|
|
125
125
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
126
126
|
SYSTEM: "SYSTEM";
|
|
127
127
|
POSITION_NETTED: "POSITION_NETTED";
|
|
128
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
128
129
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
129
130
|
}>>;
|
|
130
131
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -170,11 +171,11 @@ export declare const Ladder: z.ZodObject<{
|
|
|
170
171
|
STOP_LOSS: "STOP_LOSS";
|
|
171
172
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
172
173
|
}>;
|
|
173
|
-
semanticBracketType: z.
|
|
174
|
+
semanticBracketType: z.ZodEnum<{
|
|
174
175
|
NONE: "NONE";
|
|
175
176
|
STOP_LOSS: "STOP_LOSS";
|
|
176
177
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
177
|
-
}
|
|
178
|
+
}>;
|
|
178
179
|
createdAt: z.ZodString;
|
|
179
180
|
updatedAt: z.ZodString;
|
|
180
181
|
intent: z.ZodLiteral<"OPEN">;
|
|
@@ -322,8 +323,8 @@ export declare const Ladder: z.ZodObject<{
|
|
|
322
323
|
lighter_rhc: "lighter_rhc";
|
|
323
324
|
}>;
|
|
324
325
|
status: z.ZodEnum<{
|
|
325
|
-
CANCELLED: "CANCELLED";
|
|
326
326
|
ACTIVE: "ACTIVE";
|
|
327
|
+
CANCELLED: "CANCELLED";
|
|
327
328
|
TRIGGERED: "TRIGGERED";
|
|
328
329
|
}>;
|
|
329
330
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -336,6 +337,7 @@ export declare const Ladder: z.ZodObject<{
|
|
|
336
337
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
337
338
|
SYSTEM: "SYSTEM";
|
|
338
339
|
POSITION_NETTED: "POSITION_NETTED";
|
|
340
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
339
341
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
340
342
|
}>>;
|
|
341
343
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -381,11 +383,11 @@ export declare const Ladder: z.ZodObject<{
|
|
|
381
383
|
STOP_LOSS: "STOP_LOSS";
|
|
382
384
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
383
385
|
}>;
|
|
384
|
-
semanticBracketType: z.
|
|
386
|
+
semanticBracketType: z.ZodEnum<{
|
|
385
387
|
NONE: "NONE";
|
|
386
388
|
STOP_LOSS: "STOP_LOSS";
|
|
387
389
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
388
|
-
}
|
|
390
|
+
}>;
|
|
389
391
|
createdAt: z.ZodString;
|
|
390
392
|
updatedAt: z.ZodString;
|
|
391
393
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -579,8 +581,8 @@ export declare const Ladder: z.ZodObject<{
|
|
|
579
581
|
lighter_rhc: "lighter_rhc";
|
|
580
582
|
}>;
|
|
581
583
|
status: z.ZodEnum<{
|
|
582
|
-
CANCELLED: "CANCELLED";
|
|
583
584
|
ACTIVE: "ACTIVE";
|
|
585
|
+
CANCELLED: "CANCELLED";
|
|
584
586
|
TRIGGERED: "TRIGGERED";
|
|
585
587
|
}>;
|
|
586
588
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -593,6 +595,7 @@ export declare const Ladder: z.ZodObject<{
|
|
|
593
595
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
594
596
|
SYSTEM: "SYSTEM";
|
|
595
597
|
POSITION_NETTED: "POSITION_NETTED";
|
|
598
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
596
599
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
597
600
|
}>>;
|
|
598
601
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -638,11 +641,11 @@ export declare const Ladder: z.ZodObject<{
|
|
|
638
641
|
STOP_LOSS: "STOP_LOSS";
|
|
639
642
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
640
643
|
}>;
|
|
641
|
-
semanticBracketType: z.
|
|
644
|
+
semanticBracketType: z.ZodEnum<{
|
|
642
645
|
NONE: "NONE";
|
|
643
646
|
STOP_LOSS: "STOP_LOSS";
|
|
644
647
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
645
|
-
}
|
|
648
|
+
}>;
|
|
646
649
|
createdAt: z.ZodString;
|
|
647
650
|
updatedAt: z.ZodString;
|
|
648
651
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -868,8 +871,8 @@ export declare const Ladder: z.ZodObject<{
|
|
|
868
871
|
lighter_rhc: "lighter_rhc";
|
|
869
872
|
}>;
|
|
870
873
|
status: z.ZodEnum<{
|
|
871
|
-
CANCELLED: "CANCELLED";
|
|
872
874
|
ACTIVE: "ACTIVE";
|
|
875
|
+
CANCELLED: "CANCELLED";
|
|
873
876
|
TRIGGERED: "TRIGGERED";
|
|
874
877
|
}>;
|
|
875
878
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -882,6 +885,7 @@ export declare const Ladder: z.ZodObject<{
|
|
|
882
885
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
883
886
|
SYSTEM: "SYSTEM";
|
|
884
887
|
POSITION_NETTED: "POSITION_NETTED";
|
|
888
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
885
889
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
886
890
|
}>>;
|
|
887
891
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -927,11 +931,11 @@ export declare const Ladder: z.ZodObject<{
|
|
|
927
931
|
STOP_LOSS: "STOP_LOSS";
|
|
928
932
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
929
933
|
}>;
|
|
930
|
-
semanticBracketType: z.
|
|
934
|
+
semanticBracketType: z.ZodEnum<{
|
|
931
935
|
NONE: "NONE";
|
|
932
936
|
STOP_LOSS: "STOP_LOSS";
|
|
933
937
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
934
|
-
}
|
|
938
|
+
}>;
|
|
935
939
|
createdAt: z.ZodString;
|
|
936
940
|
updatedAt: z.ZodString;
|
|
937
941
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -1123,8 +1127,8 @@ export declare const Ladder: z.ZodObject<{
|
|
|
1123
1127
|
lighter_rhc: "lighter_rhc";
|
|
1124
1128
|
}>;
|
|
1125
1129
|
status: z.ZodEnum<{
|
|
1126
|
-
CANCELLED: "CANCELLED";
|
|
1127
1130
|
ACTIVE: "ACTIVE";
|
|
1131
|
+
CANCELLED: "CANCELLED";
|
|
1128
1132
|
TRIGGERED: "TRIGGERED";
|
|
1129
1133
|
}>;
|
|
1130
1134
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1137,6 +1141,7 @@ export declare const Ladder: z.ZodObject<{
|
|
|
1137
1141
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1138
1142
|
SYSTEM: "SYSTEM";
|
|
1139
1143
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1144
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1140
1145
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1141
1146
|
}>>;
|
|
1142
1147
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1182,11 +1187,11 @@ export declare const Ladder: z.ZodObject<{
|
|
|
1182
1187
|
STOP_LOSS: "STOP_LOSS";
|
|
1183
1188
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1184
1189
|
}>;
|
|
1185
|
-
semanticBracketType: z.
|
|
1190
|
+
semanticBracketType: z.ZodEnum<{
|
|
1186
1191
|
NONE: "NONE";
|
|
1187
1192
|
STOP_LOSS: "STOP_LOSS";
|
|
1188
1193
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1189
|
-
}
|
|
1194
|
+
}>;
|
|
1190
1195
|
createdAt: z.ZodString;
|
|
1191
1196
|
updatedAt: z.ZodString;
|
|
1192
1197
|
intent: z.ZodLiteral<"CLOSE">;
|
package/dist/ladder/queries.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export declare const LadderListParams: z.ZodObject<{
|
|
|
10
10
|
lighter: "lighter";
|
|
11
11
|
lighter_rhc: "lighter_rhc";
|
|
12
12
|
}>>;
|
|
13
|
+
status: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (("ACTIVE" | "CANCELLED" | "COMPLETED")[] & any[]) | undefined, ("ACTIVE" | "CANCELLED" | "COMPLETED")[]>, z.ZodArray<z.ZodEnum<{
|
|
14
|
+
ACTIVE: "ACTIVE";
|
|
15
|
+
CANCELLED: "CANCELLED";
|
|
16
|
+
COMPLETED: "COMPLETED";
|
|
17
|
+
}>>>>;
|
|
13
18
|
}, z.core.$strip>;
|
|
14
19
|
export type LadderListParamsInput = z.input<typeof LadderListParams>;
|
|
15
20
|
export type LadderListParams = z.output<typeof LadderListParams>;
|
package/dist/ladder/queries.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { normalizeArray, CursorFindParams } from '../common';
|
|
2
3
|
import { Connector } from '../connector';
|
|
4
|
+
import { LadderStatus } from './entities';
|
|
3
5
|
|
|
6
|
+
const StatusArray = z.preprocess((arg) => normalizeArray(arg), z.array(LadderStatus));
|
|
4
7
|
const LadderListParams = CursorFindParams.extend({
|
|
5
|
-
connector: Connector.optional()
|
|
8
|
+
connector: Connector.optional(),
|
|
9
|
+
status: StatusArray.optional()
|
|
6
10
|
});
|
|
7
11
|
|
|
8
12
|
export { LadderListParams };
|