@cryptorobot.ai/client 0.0.38 → 0.0.40
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/lib/src/client.js +33 -3
- package/lib/src/services/agents/agents.class.d.ts +11 -0
- package/lib/src/services/agents/agents.d.ts +11 -0
- package/lib/src/services/agents/agents.schema.d.ts +2371 -0
- package/lib/src/services/agents/agents.shared.d.ts +13 -0
- package/lib/src/services/agents/agents.shared.js +13 -0
- package/lib/src/services/agents/prepare/prepare.class.d.ts +18 -0
- package/lib/src/services/agents/prepare/prepare.d.ts +11 -0
- package/lib/src/services/agents/prepare/prepare.schema.d.ts +285 -0
- package/lib/src/services/agents/prepare/prepare.shared.d.ts +13 -0
- package/lib/src/services/agents/prepare/prepare.shared.js +13 -0
- package/lib/src/services/agents/sessions/conversations/conversations.class.d.ts +11 -0
- package/lib/src/services/agents/sessions/conversations/conversations.d.ts +11 -0
- package/lib/src/services/agents/sessions/conversations/conversations.schema.d.ts +2561 -0
- package/lib/src/services/agents/sessions/conversations/conversations.shared.d.ts +13 -0
- package/lib/src/services/agents/sessions/conversations/conversations.shared.js +13 -0
- package/lib/src/services/agents/sessions/sessions.class.d.ts +11 -0
- package/lib/src/services/agents/sessions/sessions.d.ts +11 -0
- package/lib/src/services/agents/sessions/sessions.schema.d.ts +803 -0
- package/lib/src/services/agents/sessions/sessions.shared.d.ts +13 -0
- package/lib/src/services/agents/sessions/sessions.shared.js +13 -0
- package/lib/src/services/events/events.class.d.ts +11 -0
- package/lib/src/services/events/events.d.ts +11 -0
- package/lib/src/services/events/events.schema.d.ts +786 -0
- package/lib/src/services/events/events.shared.d.ts +13 -0
- package/lib/src/services/events/events.shared.js +13 -0
- package/lib/src/services/events/triggers/triggers.class.d.ts +11 -0
- package/lib/src/services/events/triggers/triggers.d.ts +11 -0
- package/lib/src/services/events/triggers/triggers.schema.d.ts +1582 -0
- package/lib/src/services/events/triggers/triggers.shared.d.ts +13 -0
- package/lib/src/services/events/triggers/triggers.shared.js +13 -0
- package/lib/src/services/events/types/types.class.d.ts +11 -0
- package/lib/src/services/events/types/types.d.ts +11 -0
- package/lib/src/services/events/types/types.schema.d.ts +688 -0
- package/lib/src/services/events/types/types.shared.d.ts +13 -0
- package/lib/src/services/events/types/types.shared.js +13 -0
- package/lib/src/services/exchanges/balance/balance.schema.d.ts +16 -16
- package/lib/src/services/exchanges/download/download.schema.d.ts +58 -17
- package/lib/src/services/exchanges/download/download.shared.d.ts +1 -1
- package/lib/src/services/exchanges/download/download.shared.js +1 -1
- package/lib/src/services/exchanges/download/webhooks/webhooks.schema.d.ts +4 -4
- package/lib/src/services/exchanges/exchanges.schema.d.ts +100 -100
- package/lib/src/services/exchanges/ohlcv/ohlcv.class.d.ts +19 -0
- package/lib/src/services/exchanges/ohlcv/ohlcv.d.ts +11 -0
- package/lib/src/services/exchanges/ohlcv/ohlcv.schema.d.ts +507 -0
- package/lib/src/services/exchanges/ohlcv/ohlcv.shared.d.ts +13 -0
- package/lib/src/services/exchanges/ohlcv/ohlcv.shared.js +13 -0
- package/lib/src/services/exchanges/ticker/ticker.schema.d.ts +68 -68
- package/lib/src/services/extensions/extensions.class.d.ts +11 -0
- package/lib/src/services/extensions/extensions.d.ts +11 -0
- package/lib/src/services/extensions/extensions.schema.d.ts +1275 -0
- package/lib/src/services/extensions/extensions.shared.d.ts +13 -0
- package/lib/src/services/extensions/extensions.shared.js +13 -0
- package/lib/src/services/keys/KeysService.d.ts +13 -0
- package/lib/src/services/keys/keys.class.d.ts +11 -0
- package/lib/src/services/keys/keys.d.ts +11 -0
- package/lib/src/services/keys/keys.schema.d.ts +719 -0
- package/lib/src/services/keys/keys.shared.d.ts +14 -0
- package/lib/src/services/keys/keys.shared.js +13 -0
- package/lib/src/services/messages/messages.schema.d.ts +64 -32
- package/lib/src/services/restricted/restricted.class.d.ts +26 -0
- package/lib/src/services/restricted/restricted.d.ts +21 -0
- package/lib/src/services/restricted/restricted.shared.d.ts +13 -0
- package/lib/src/services/restricted/restricted.shared.js +13 -0
- package/lib/src/services/strategies/backtest/backtest.schema.d.ts +127 -60
- package/lib/src/services/strategies/backtest/results/results.schema.d.ts +36 -36
- package/lib/src/services/strategies/generate/generate.class.d.ts +11 -0
- package/lib/src/services/strategies/generate/generate.d.ts +11 -0
- package/lib/src/services/strategies/generate/generate.schema.d.ts +429 -0
- package/lib/src/services/strategies/generate/generate.shared.d.ts +13 -0
- package/lib/src/services/strategies/generate/generate.shared.js +13 -0
- package/lib/src/services/strategies/hyperopt/hyperopt.schema.d.ts +16 -8
- package/lib/src/services/strategies/indicators/indicators.schema.d.ts +177 -97
- package/lib/src/services/strategies/indicators/talib/talib.class.d.ts +11 -0
- package/lib/src/services/strategies/indicators/talib/talib.d.ts +11 -0
- package/lib/src/services/strategies/indicators/talib/talib.schema.d.ts +443 -0
- package/lib/src/services/strategies/indicators/talib/talib.shared.d.ts +13 -0
- package/lib/src/services/strategies/indicators/talib/talib.shared.js +13 -0
- package/lib/src/services/strategies/strategies.schema.d.ts +2732 -327
- package/lib/src/services/strategies/templates/templates.schema.d.ts +2146 -16
- package/lib/src/services/tools/openapi/openapi.class.d.ts +34 -0
- package/lib/src/services/tools/openapi/openapi.d.ts +10 -0
- package/lib/src/services/tools/openapi/openapi.shared.d.ts +13 -0
- package/lib/src/services/tools/openapi/openapi.shared.js +13 -0
- package/lib/src/services/tools/tools.class.d.ts +11 -0
- package/lib/src/services/tools/tools.d.ts +11 -0
- package/lib/src/services/tools/tools.schema.d.ts +269 -0
- package/lib/src/services/tools/tools.shared.d.ts +13 -0
- package/lib/src/services/tools/tools.shared.js +13 -0
- package/lib/src/services/traders/pods/api/api.schema.d.ts +1650 -464
- package/lib/src/services/traders/pods/events/events.schema.d.ts +4 -4
- package/lib/src/services/traders/pods/pods.schema.d.ts +1539 -443
- package/lib/src/services/traders/traders.schema.d.ts +142 -142
- package/lib/src/services/users/users.class.d.ts +178 -3
- package/lib/src/services/users/users.schema.d.ts +123 -85
- package/lib/src/services/users/users.shared.d.ts +4 -3
- package/lib/src/services/users/users.shared.js +1 -1
- package/package.json +2 -3
- package/readme.md +1 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../client';
|
|
3
|
+
import type { Keys, KeysData, KeysPatch, KeysQuery } from './keys.class';
|
|
4
|
+
import type { KeysService } from './KeysService';
|
|
5
|
+
export type { Keys, KeysData, KeysPatch, KeysQuery };
|
|
6
|
+
export type KeysClientService = Pick<KeysService<Params<KeysQuery>>, (typeof keysMethods)[number]>;
|
|
7
|
+
export declare const keysPath = "keys";
|
|
8
|
+
export declare const keysMethods: readonly ["find", "get", "create", "patch", "remove"];
|
|
9
|
+
export declare const keysClient: (client: ClientApplication) => void;
|
|
10
|
+
declare module '../../client' {
|
|
11
|
+
interface ServiceTypes {
|
|
12
|
+
[keysPath]: KeysClientService;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.keysClient = exports.keysMethods = exports.keysPath = void 0;
|
|
4
|
+
exports.keysPath = 'keys';
|
|
5
|
+
exports.keysMethods = ['find', 'get', 'create', 'patch', 'remove'];
|
|
6
|
+
const keysClient = (client) => {
|
|
7
|
+
const connection = client.get('connection');
|
|
8
|
+
client.use(exports.keysPath, connection.service(exports.keysPath), {
|
|
9
|
+
methods: exports.keysMethods
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.keysClient = keysClient;
|
|
13
|
+
//# sourceMappingURL=keys.shared.js.map
|
|
@@ -66,8 +66,12 @@ export declare const messagesSchema: import("@feathersjs/typebox").TObject<{
|
|
|
66
66
|
resetAttempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TNumber]>>;
|
|
67
67
|
agreements: import("@feathersjs/typebox").TBoolean;
|
|
68
68
|
anon: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
|
|
69
|
-
bootstrap: import("@feathersjs/typebox").
|
|
70
|
-
|
|
69
|
+
bootstrap: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
70
|
+
strategy: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
71
|
+
traders: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
72
|
+
strategies: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
73
|
+
}>>;
|
|
74
|
+
onboarding: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TLiteral<"strategies">, import("@feathersjs/typebox").TLiteral<"traders">, import("@feathersjs/typebox").TLiteral<"exchanges">]>>;
|
|
71
75
|
contactId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
72
76
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
73
77
|
updatedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
@@ -97,9 +101,11 @@ export declare const messagesResolver: import("@feathersjs/schema").Resolver<{
|
|
|
97
101
|
} | undefined;
|
|
98
102
|
stripe?: any;
|
|
99
103
|
_id?: string | {} | undefined;
|
|
104
|
+
createdAt?: any;
|
|
105
|
+
updatedAt?: any;
|
|
106
|
+
avatar?: string | undefined;
|
|
100
107
|
googleId?: any;
|
|
101
108
|
appleId?: any;
|
|
102
|
-
avatar?: string | undefined;
|
|
103
109
|
title?: string | null | undefined;
|
|
104
110
|
company?: string | null | undefined;
|
|
105
111
|
language?: string | undefined;
|
|
@@ -135,21 +141,23 @@ export declare const messagesResolver: import("@feathersjs/schema").Resolver<{
|
|
|
135
141
|
resetExpires?: number | null | undefined;
|
|
136
142
|
resetAttempts?: number | null | undefined;
|
|
137
143
|
anon?: boolean | undefined;
|
|
138
|
-
|
|
144
|
+
bootstrap?: {
|
|
145
|
+
traders?: any;
|
|
146
|
+
strategy?: any;
|
|
147
|
+
strategies?: any;
|
|
148
|
+
} | undefined;
|
|
149
|
+
onboarding?: "traders" | "strategies" | "exchanges" | null | undefined;
|
|
139
150
|
contactId?: string | undefined;
|
|
140
|
-
createdAt?: any;
|
|
141
|
-
updatedAt?: any;
|
|
142
151
|
skipEmailVerification?: boolean | undefined;
|
|
143
152
|
email: string;
|
|
144
153
|
name: string;
|
|
145
154
|
agreements: boolean;
|
|
146
|
-
bootstrap: any;
|
|
147
155
|
} | undefined;
|
|
148
156
|
image?: string | undefined;
|
|
149
157
|
link?: string | undefined;
|
|
150
|
-
avatar?: string | undefined;
|
|
151
158
|
createdAt?: any;
|
|
152
159
|
updatedAt?: any;
|
|
160
|
+
avatar?: string | undefined;
|
|
153
161
|
userId?: string | undefined;
|
|
154
162
|
useRouter?: boolean | undefined;
|
|
155
163
|
read?: boolean | undefined;
|
|
@@ -174,9 +182,11 @@ export declare const messagesExternalResolver: import("@feathersjs/schema").Reso
|
|
|
174
182
|
} | undefined;
|
|
175
183
|
stripe?: any;
|
|
176
184
|
_id?: string | {} | undefined;
|
|
185
|
+
createdAt?: any;
|
|
186
|
+
updatedAt?: any;
|
|
187
|
+
avatar?: string | undefined;
|
|
177
188
|
googleId?: any;
|
|
178
189
|
appleId?: any;
|
|
179
|
-
avatar?: string | undefined;
|
|
180
190
|
title?: string | null | undefined;
|
|
181
191
|
company?: string | null | undefined;
|
|
182
192
|
language?: string | undefined;
|
|
@@ -212,21 +222,23 @@ export declare const messagesExternalResolver: import("@feathersjs/schema").Reso
|
|
|
212
222
|
resetExpires?: number | null | undefined;
|
|
213
223
|
resetAttempts?: number | null | undefined;
|
|
214
224
|
anon?: boolean | undefined;
|
|
215
|
-
|
|
225
|
+
bootstrap?: {
|
|
226
|
+
traders?: any;
|
|
227
|
+
strategy?: any;
|
|
228
|
+
strategies?: any;
|
|
229
|
+
} | undefined;
|
|
230
|
+
onboarding?: "traders" | "strategies" | "exchanges" | null | undefined;
|
|
216
231
|
contactId?: string | undefined;
|
|
217
|
-
createdAt?: any;
|
|
218
|
-
updatedAt?: any;
|
|
219
232
|
skipEmailVerification?: boolean | undefined;
|
|
220
233
|
email: string;
|
|
221
234
|
name: string;
|
|
222
235
|
agreements: boolean;
|
|
223
|
-
bootstrap: any;
|
|
224
236
|
} | undefined;
|
|
225
237
|
image?: string | undefined;
|
|
226
238
|
link?: string | undefined;
|
|
227
|
-
avatar?: string | undefined;
|
|
228
239
|
createdAt?: any;
|
|
229
240
|
updatedAt?: any;
|
|
241
|
+
avatar?: string | undefined;
|
|
230
242
|
userId?: string | undefined;
|
|
231
243
|
useRouter?: boolean | undefined;
|
|
232
244
|
read?: boolean | undefined;
|
|
@@ -299,8 +311,12 @@ export declare const messagesDataSchema: import("@feathersjs/typebox").TPick<imp
|
|
|
299
311
|
resetAttempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TNumber]>>;
|
|
300
312
|
agreements: import("@feathersjs/typebox").TBoolean;
|
|
301
313
|
anon: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
|
|
302
|
-
bootstrap: import("@feathersjs/typebox").
|
|
303
|
-
|
|
314
|
+
bootstrap: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
315
|
+
strategy: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
316
|
+
traders: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
317
|
+
strategies: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
318
|
+
}>>;
|
|
319
|
+
onboarding: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TLiteral<"strategies">, import("@feathersjs/typebox").TLiteral<"traders">, import("@feathersjs/typebox").TLiteral<"exchanges">]>>;
|
|
304
320
|
contactId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
305
321
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
306
322
|
updatedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
@@ -330,9 +346,11 @@ export declare const messagesDataResolver: import("@feathersjs/schema").Resolver
|
|
|
330
346
|
} | undefined;
|
|
331
347
|
stripe?: any;
|
|
332
348
|
_id?: string | {} | undefined;
|
|
349
|
+
createdAt?: any;
|
|
350
|
+
updatedAt?: any;
|
|
351
|
+
avatar?: string | undefined;
|
|
333
352
|
googleId?: any;
|
|
334
353
|
appleId?: any;
|
|
335
|
-
avatar?: string | undefined;
|
|
336
354
|
title?: string | null | undefined;
|
|
337
355
|
company?: string | null | undefined;
|
|
338
356
|
language?: string | undefined;
|
|
@@ -368,21 +386,23 @@ export declare const messagesDataResolver: import("@feathersjs/schema").Resolver
|
|
|
368
386
|
resetExpires?: number | null | undefined;
|
|
369
387
|
resetAttempts?: number | null | undefined;
|
|
370
388
|
anon?: boolean | undefined;
|
|
371
|
-
|
|
389
|
+
bootstrap?: {
|
|
390
|
+
traders?: any;
|
|
391
|
+
strategy?: any;
|
|
392
|
+
strategies?: any;
|
|
393
|
+
} | undefined;
|
|
394
|
+
onboarding?: "traders" | "strategies" | "exchanges" | null | undefined;
|
|
372
395
|
contactId?: string | undefined;
|
|
373
|
-
createdAt?: any;
|
|
374
|
-
updatedAt?: any;
|
|
375
396
|
skipEmailVerification?: boolean | undefined;
|
|
376
397
|
email: string;
|
|
377
398
|
name: string;
|
|
378
399
|
agreements: boolean;
|
|
379
|
-
bootstrap: any;
|
|
380
400
|
} | undefined;
|
|
381
401
|
image?: string | undefined;
|
|
382
402
|
link?: string | undefined;
|
|
383
|
-
avatar?: string | undefined;
|
|
384
403
|
createdAt?: any;
|
|
385
404
|
updatedAt?: any;
|
|
405
|
+
avatar?: string | undefined;
|
|
386
406
|
userId?: string | undefined;
|
|
387
407
|
useRouter?: boolean | undefined;
|
|
388
408
|
read?: boolean | undefined;
|
|
@@ -455,8 +475,12 @@ export declare const messagesPatchSchema: import("@feathersjs/typebox").TPartial
|
|
|
455
475
|
resetAttempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TNumber]>>;
|
|
456
476
|
agreements: import("@feathersjs/typebox").TBoolean;
|
|
457
477
|
anon: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
|
|
458
|
-
bootstrap: import("@feathersjs/typebox").
|
|
459
|
-
|
|
478
|
+
bootstrap: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
479
|
+
strategy: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
480
|
+
traders: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
481
|
+
strategies: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
482
|
+
}>>;
|
|
483
|
+
onboarding: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TLiteral<"strategies">, import("@feathersjs/typebox").TLiteral<"traders">, import("@feathersjs/typebox").TLiteral<"exchanges">]>>;
|
|
460
484
|
contactId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
461
485
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
462
486
|
updatedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
@@ -486,9 +510,11 @@ export declare const messagesPatchResolver: import("@feathersjs/schema").Resolve
|
|
|
486
510
|
} | undefined;
|
|
487
511
|
stripe?: any;
|
|
488
512
|
_id?: string | {} | undefined;
|
|
513
|
+
createdAt?: any;
|
|
514
|
+
updatedAt?: any;
|
|
515
|
+
avatar?: string | undefined;
|
|
489
516
|
googleId?: any;
|
|
490
517
|
appleId?: any;
|
|
491
|
-
avatar?: string | undefined;
|
|
492
518
|
title?: string | null | undefined;
|
|
493
519
|
company?: string | null | undefined;
|
|
494
520
|
language?: string | undefined;
|
|
@@ -524,21 +550,23 @@ export declare const messagesPatchResolver: import("@feathersjs/schema").Resolve
|
|
|
524
550
|
resetExpires?: number | null | undefined;
|
|
525
551
|
resetAttempts?: number | null | undefined;
|
|
526
552
|
anon?: boolean | undefined;
|
|
527
|
-
|
|
553
|
+
bootstrap?: {
|
|
554
|
+
traders?: any;
|
|
555
|
+
strategy?: any;
|
|
556
|
+
strategies?: any;
|
|
557
|
+
} | undefined;
|
|
558
|
+
onboarding?: "traders" | "strategies" | "exchanges" | null | undefined;
|
|
528
559
|
contactId?: string | undefined;
|
|
529
|
-
createdAt?: any;
|
|
530
|
-
updatedAt?: any;
|
|
531
560
|
skipEmailVerification?: boolean | undefined;
|
|
532
561
|
email: string;
|
|
533
562
|
name: string;
|
|
534
563
|
agreements: boolean;
|
|
535
|
-
bootstrap: any;
|
|
536
564
|
} | undefined;
|
|
537
565
|
image?: string | undefined;
|
|
538
566
|
link?: string | undefined;
|
|
539
|
-
avatar?: string | undefined;
|
|
540
567
|
createdAt?: any;
|
|
541
568
|
updatedAt?: any;
|
|
569
|
+
avatar?: string | undefined;
|
|
542
570
|
userId?: string | undefined;
|
|
543
571
|
useRouter?: boolean | undefined;
|
|
544
572
|
read?: boolean | undefined;
|
|
@@ -611,8 +639,12 @@ export declare const messagesQueryProperties: import("@feathersjs/typebox").TPic
|
|
|
611
639
|
resetAttempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TNumber]>>;
|
|
612
640
|
agreements: import("@feathersjs/typebox").TBoolean;
|
|
613
641
|
anon: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
|
|
614
|
-
bootstrap: import("@feathersjs/typebox").
|
|
615
|
-
|
|
642
|
+
bootstrap: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
643
|
+
strategy: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
644
|
+
traders: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
645
|
+
strategies: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
646
|
+
}>>;
|
|
647
|
+
onboarding: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNull, import("@feathersjs/typebox").TLiteral<"strategies">, import("@feathersjs/typebox").TLiteral<"traders">, import("@feathersjs/typebox").TLiteral<"exchanges">]>>;
|
|
616
648
|
contactId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
617
649
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
618
650
|
updatedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Id, NullableId, Params, ServiceInterface } from '@feathersjs/feathers';
|
|
2
|
+
import type { Application } from '../../declarations';
|
|
3
|
+
type Restricted = any;
|
|
4
|
+
type RestrictedData = any;
|
|
5
|
+
type RestrictedPatch = any;
|
|
6
|
+
type RestrictedQuery = any;
|
|
7
|
+
export type { Restricted, RestrictedData, RestrictedPatch, RestrictedQuery };
|
|
8
|
+
export interface RestrictedServiceOptions {
|
|
9
|
+
app: Application;
|
|
10
|
+
}
|
|
11
|
+
export interface RestrictedParams extends Params<RestrictedQuery> {
|
|
12
|
+
}
|
|
13
|
+
export declare class RestrictedService<ServiceParams extends RestrictedParams = RestrictedParams> implements ServiceInterface<Restricted, RestrictedData, ServiceParams, RestrictedPatch> {
|
|
14
|
+
options: RestrictedServiceOptions;
|
|
15
|
+
constructor(options: RestrictedServiceOptions);
|
|
16
|
+
find(_params?: ServiceParams): Promise<Restricted[]>;
|
|
17
|
+
get(id: Id, _params?: ServiceParams): Promise<Restricted>;
|
|
18
|
+
create(data: RestrictedData, params?: ServiceParams): Promise<Restricted>;
|
|
19
|
+
create(data: RestrictedData[], params?: ServiceParams): Promise<Restricted[]>;
|
|
20
|
+
update(id: NullableId, data: RestrictedData, _params?: ServiceParams): Promise<Restricted>;
|
|
21
|
+
patch(id: NullableId, data: RestrictedPatch, _params?: ServiceParams): Promise<Restricted>;
|
|
22
|
+
remove(id: NullableId, _params?: ServiceParams): Promise<Restricted>;
|
|
23
|
+
}
|
|
24
|
+
export declare const getOptions: (app: Application) => {
|
|
25
|
+
app: Application;
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Application } from '../../declarations';
|
|
2
|
+
import { RestrictedService } from './restricted.class';
|
|
3
|
+
import { restrictedPath } from './restricted.shared';
|
|
4
|
+
export * from './restricted.class';
|
|
5
|
+
/**
|
|
6
|
+
* Restricted service with API key scope-based authorization.
|
|
7
|
+
*
|
|
8
|
+
* This service enforces the following scope requirements:
|
|
9
|
+
*
|
|
10
|
+
* - 'read' scope: Required for find and get operations
|
|
11
|
+
* - 'write' scope: Required for create and patch operations
|
|
12
|
+
* - 'admin' scope: Required for remove operations
|
|
13
|
+
*
|
|
14
|
+
* Note: API keys with 'admin' scope automatically have access to all operations.
|
|
15
|
+
*/
|
|
16
|
+
export declare const restricted: (app: Application) => void;
|
|
17
|
+
declare module '../../declarations' {
|
|
18
|
+
interface ServiceTypes {
|
|
19
|
+
[restrictedPath]: RestrictedService;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../client';
|
|
3
|
+
import type { Restricted, RestrictedData, RestrictedPatch, RestrictedQuery, RestrictedService } from './restricted.class';
|
|
4
|
+
export type { Restricted, RestrictedData, RestrictedPatch, RestrictedQuery };
|
|
5
|
+
export type RestrictedClientService = Pick<RestrictedService<Params<RestrictedQuery>>, (typeof restrictedMethods)[number]>;
|
|
6
|
+
export declare const restrictedPath = "restricted";
|
|
7
|
+
export declare const restrictedMethods: readonly ["find", "get", "create", "patch", "remove"];
|
|
8
|
+
export declare const restrictedClient: (client: ClientApplication) => void;
|
|
9
|
+
declare module '../../client' {
|
|
10
|
+
interface ServiceTypes {
|
|
11
|
+
[restrictedPath]: RestrictedClientService;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.restrictedClient = exports.restrictedMethods = exports.restrictedPath = void 0;
|
|
4
|
+
exports.restrictedPath = 'restricted';
|
|
5
|
+
exports.restrictedMethods = ['find', 'get', 'create', 'patch', 'remove'];
|
|
6
|
+
const restrictedClient = (client) => {
|
|
7
|
+
const connection = client.get('connection');
|
|
8
|
+
client.use(exports.restrictedPath, connection.service(exports.restrictedPath), {
|
|
9
|
+
methods: exports.restrictedMethods
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.restrictedClient = restrictedClient;
|
|
13
|
+
//# sourceMappingURL=restricted.shared.js.map
|