@cryptorobot.ai/client 0.0.8
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/app.d.ts +3 -0
- package/lib/authentication.d.ts +8 -0
- package/lib/channels.d.ts +3 -0
- package/lib/client.d.ts +81 -0
- package/lib/client.js +99 -0
- package/lib/configuration.d.ts +148 -0
- package/lib/declarations.d.ts +16 -0
- package/lib/helper.d.ts +22 -0
- package/lib/helpers/app.helper.d.ts +12 -0
- package/lib/helpers/backtest.helper.d.ts +12 -0
- package/lib/helpers/ccxt.helper.d.ts +15 -0
- package/lib/helpers/deployments.helper.d.ts +11 -0
- package/lib/helpers/handlebars.helper.d.ts +10 -0
- package/lib/helpers/logging.helper.d.ts +7 -0
- package/lib/helpers/trader.helper.d.ts +10 -0
- package/lib/hooks/application/setup-ccxt-load-marketplaces.d.ts +2 -0
- package/lib/hooks/application/setup-ccxt-load-markets.d.ts +2 -0
- package/lib/hooks/application/setup-config-preparation.d.ts +3 -0
- package/lib/hooks/application/setup-info.d.ts +3 -0
- package/lib/hooks/application/setup-load-indicators.d.ts +3 -0
- package/lib/hooks/application/setup-load-strategy-templates.d.ts +3 -0
- package/lib/hooks/backtest-copy-candles-from-user-data.d.ts +2 -0
- package/lib/hooks/backtest-generate-and-start.d.ts +2 -0
- package/lib/hooks/backtest-generate-config.d.ts +2 -0
- package/lib/hooks/backtest-generate-exchange-config.d.ts +2 -0
- package/lib/hooks/backtest-get-results.d.ts +2 -0
- package/lib/hooks/backtest-in-disk-clone-strategy.d.ts +2 -0
- package/lib/hooks/backtest-validate.d.ts +2 -0
- package/lib/hooks/check-required-credentials.d.ts +2 -0
- package/lib/hooks/enrich-webhook-to-event.d.ts +2 -0
- package/lib/hooks/exchanges/after-create-ccxt-balances-propagate-to-exchange.d.ts +2 -0
- package/lib/hooks/exchanges/after-find-ccxt-load-markets.d.ts +2 -0
- package/lib/hooks/exchanges/after-get-whitelist-blacklist-transform.d.ts +2 -0
- package/lib/hooks/exchanges/before-create-ccxt-get-balances.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-blacklist-validation-per-exchange.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-ccxt-connect-exchange.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-ccxt-load-markets.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-whitelist-blacklist-transform.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-whitelist-blacklist-validate.d.ts +2 -0
- package/lib/hooks/exchanges/download/after-create-get-recent-downloaded-data-info.d.ts +2 -0
- package/lib/hooks/exchanges/download/before-create-generate-config.d.ts +2 -0
- package/lib/hooks/exchanges/download/before-create-process-exchange-data-download.d.ts +2 -0
- package/lib/hooks/log-error.d.ts +2 -0
- package/lib/hooks/messages/messages-process-data.d.ts +2 -0
- package/lib/hooks/openai-process-request.d.ts +2 -0
- package/lib/hooks/pairs-transform.d.ts +2 -0
- package/lib/hooks/remove-container.d.ts +2 -0
- package/lib/hooks/set-default-strategy.d.ts +2 -0
- package/lib/hooks/setup-prepare-maildev-while-in-test-env.d.ts +3 -0
- package/lib/hooks/setup-stripe.d.ts +2 -0
- package/lib/hooks/strategies/disk-create-strategy.d.ts +2 -0
- package/lib/hooks/strategies/disk-remove-strategy.d.ts +2 -0
- package/lib/hooks/strategies/file-strategies-clone.d.ts +2 -0
- package/lib/hooks/stripe-check-subscription.d.ts +2 -0
- package/lib/hooks/stripe-create-payment-intent.d.ts +2 -0
- package/lib/hooks/stripe-is-subscription-active.d.ts +2 -0
- package/lib/hooks/stripe-sync-customer-data.d.ts +2 -0
- package/lib/hooks/tickers-fetch.d.ts +2 -0
- package/lib/hooks/traders/after-patch-file-candles-clone.d.ts +2 -0
- package/lib/hooks/traders/before-patch-folders-initialize.d.ts +2 -0
- package/lib/hooks/traders/before-patch-transform-pairlist-plugins.d.ts +2 -0
- package/lib/hooks/traders/container-api-control.d.ts +2 -0
- package/lib/hooks/traders/container-stop.d.ts +2 -0
- package/lib/hooks/traders/create-trader-container.d.ts +2 -0
- package/lib/hooks/traders/generate-exchange-config.d.ts +2 -0
- package/lib/hooks/traders/generate-trader-config.d.ts +2 -0
- package/lib/hooks/traders/pods-container-inspect.d.ts +2 -0
- package/lib/hooks/traders/pods-process-worker.d.ts +2 -0
- package/lib/hooks/users/email-verify-signup.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/logger.d.ts +1 -0
- package/lib/mongodb.d.ts +8 -0
- package/lib/prepare-for-publish.d.ts +1 -0
- package/lib/services/auth-management/auth-management.class.d.ts +1 -0
- package/lib/services/auth-management/auth-management.d.ts +7 -0
- package/lib/services/auth-management/auth-management.shared.d.ts +6 -0
- package/lib/services/auth-management/auth-management.shared.js +17 -0
- package/lib/services/auth-management/auth-management.utils.d.ts +1 -0
- package/lib/services/config/config.class.d.ts +14 -0
- package/lib/services/config/config.d.ts +10 -0
- package/lib/services/config/config.shared.d.ts +13 -0
- package/lib/services/config/config.shared.js +13 -0
- package/lib/services/custom/custom.class.d.ts +26 -0
- package/lib/services/custom/custom.d.ts +10 -0
- package/lib/services/custom/custom.shared.d.ts +13 -0
- package/lib/services/custom/custom.shared.js +13 -0
- package/lib/services/exchanges/balance/balance.class.d.ts +11 -0
- package/lib/services/exchanges/balance/balance.d.ts +11 -0
- package/lib/services/exchanges/balance/balance.schema.d.ts +711 -0
- package/lib/services/exchanges/balance/balance.shared.d.ts +13 -0
- package/lib/services/exchanges/balance/balance.shared.js +13 -0
- package/lib/services/exchanges/download/download.class.d.ts +11 -0
- package/lib/services/exchanges/download/download.d.ts +11 -0
- package/lib/services/exchanges/download/download.schema.d.ts +871 -0
- package/lib/services/exchanges/download/download.shared.d.ts +13 -0
- package/lib/services/exchanges/download/download.shared.js +13 -0
- package/lib/services/exchanges/download/webhooks/webhooks.class.d.ts +11 -0
- package/lib/services/exchanges/download/webhooks/webhooks.d.ts +11 -0
- package/lib/services/exchanges/download/webhooks/webhooks.schema.d.ts +541 -0
- package/lib/services/exchanges/download/webhooks/webhooks.shared.d.ts +13 -0
- package/lib/services/exchanges/download/webhooks/webhooks.shared.js +13 -0
- package/lib/services/exchanges/exchanges.class.d.ts +11 -0
- package/lib/services/exchanges/exchanges.d.ts +11 -0
- package/lib/services/exchanges/exchanges.schema.d.ts +835 -0
- package/lib/services/exchanges/exchanges.shared.d.ts +13 -0
- package/lib/services/exchanges/exchanges.shared.js +13 -0
- package/lib/services/exchanges/ticker/ticker.class.d.ts +11 -0
- package/lib/services/exchanges/ticker/ticker.d.ts +11 -0
- package/lib/services/exchanges/ticker/ticker.schema.d.ts +859 -0
- package/lib/services/exchanges/ticker/ticker.shared.d.ts +13 -0
- package/lib/services/exchanges/ticker/ticker.shared.js +13 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/mailer/mailer.class.d.ts +26 -0
- package/lib/services/mailer/mailer.d.ts +7 -0
- package/lib/services/mailer/mailer.shared.d.ts +13 -0
- package/lib/services/mailer/mailer.shared.js +13 -0
- package/lib/services/marketplaces/marketplaces.class.d.ts +14 -0
- package/lib/services/marketplaces/marketplaces.d.ts +10 -0
- package/lib/services/marketplaces/marketplaces.shared.d.ts +13 -0
- package/lib/services/marketplaces/marketplaces.shared.js +13 -0
- package/lib/services/markets/markets.class.d.ts +11 -0
- package/lib/services/markets/markets.d.ts +11 -0
- package/lib/services/markets/markets.schema.d.ts +503 -0
- package/lib/services/markets/markets.shared.d.ts +13 -0
- package/lib/services/markets/markets.shared.js +13 -0
- package/lib/services/messages/messages.class.d.ts +11 -0
- package/lib/services/messages/messages.d.ts +11 -0
- package/lib/services/messages/messages.schema.d.ts +711 -0
- package/lib/services/messages/messages.shared.d.ts +13 -0
- package/lib/services/messages/messages.shared.js +13 -0
- package/lib/services/strategies/ai/ai.class.d.ts +11 -0
- package/lib/services/strategies/ai/ai.d.ts +11 -0
- package/lib/services/strategies/ai/ai.schema.d.ts +287 -0
- package/lib/services/strategies/ai/ai.shared.d.ts +13 -0
- package/lib/services/strategies/ai/ai.shared.js +13 -0
- package/lib/services/strategies/ai/stream/stream.class.d.ts +26 -0
- package/lib/services/strategies/ai/stream/stream.d.ts +10 -0
- package/lib/services/strategies/ai/stream/stream.shared.d.ts +13 -0
- package/lib/services/strategies/ai/stream/stream.shared.js +13 -0
- package/lib/services/strategies/backtest/backtest.class.d.ts +11 -0
- package/lib/services/strategies/backtest/backtest.d.ts +11 -0
- package/lib/services/strategies/backtest/backtest.schema.d.ts +401 -0
- package/lib/services/strategies/backtest/backtest.shared.d.ts +13 -0
- package/lib/services/strategies/backtest/backtest.shared.js +13 -0
- package/lib/services/strategies/backtest/results/results.class.d.ts +11 -0
- package/lib/services/strategies/backtest/results/results.d.ts +11 -0
- package/lib/services/strategies/backtest/results/results.schema.d.ts +1115 -0
- package/lib/services/strategies/backtest/results/results.shared.d.ts +13 -0
- package/lib/services/strategies/backtest/results/results.shared.js +13 -0
- package/lib/services/strategies/blob/blob.class.d.ts +26 -0
- package/lib/services/strategies/blob/blob.d.ts +10 -0
- package/lib/services/strategies/blob/blob.shared.d.ts +13 -0
- package/lib/services/strategies/blob/blob.shared.js +13 -0
- package/lib/services/strategies/indicators/indicators.class.d.ts +11 -0
- package/lib/services/strategies/indicators/indicators.d.ts +11 -0
- package/lib/services/strategies/indicators/indicators.schema.d.ts +277 -0
- package/lib/services/strategies/indicators/indicators.shared.d.ts +13 -0
- package/lib/services/strategies/indicators/indicators.shared.js +13 -0
- package/lib/services/strategies/strategies.class.d.ts +11 -0
- package/lib/services/strategies/strategies.d.ts +11 -0
- package/lib/services/strategies/strategies.schema.d.ts +2279 -0
- package/lib/services/strategies/strategies.shared.d.ts +13 -0
- package/lib/services/strategies/strategies.shared.js +13 -0
- package/lib/services/strategies/templates/templates.class.d.ts +11 -0
- package/lib/services/strategies/templates/templates.d.ts +11 -0
- package/lib/services/strategies/templates/templates.schema.d.ts +269 -0
- package/lib/services/strategies/templates/templates.shared.d.ts +13 -0
- package/lib/services/strategies/templates/templates.shared.js +13 -0
- package/lib/services/stripe/charges/charges.class.d.ts +26 -0
- package/lib/services/stripe/charges/charges.d.ts +10 -0
- package/lib/services/stripe/charges/charges.shared.d.ts +13 -0
- package/lib/services/stripe/charges/charges.shared.js +13 -0
- package/lib/services/stripe/customers/cards/cards.class.d.ts +26 -0
- package/lib/services/stripe/customers/cards/cards.d.ts +10 -0
- package/lib/services/stripe/customers/cards/cards.shared.d.ts +13 -0
- package/lib/services/stripe/customers/cards/cards.shared.js +13 -0
- package/lib/services/stripe/customers/customers.class.d.ts +26 -0
- package/lib/services/stripe/customers/customers.d.ts +10 -0
- package/lib/services/stripe/customers/customers.shared.d.ts +13 -0
- package/lib/services/stripe/customers/customers.shared.js +13 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.class.d.ts +26 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.d.ts +10 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.shared.d.ts +13 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.shared.js +13 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.class.d.ts +26 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.d.ts +10 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.shared.d.ts +13 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.shared.js +13 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.class.d.ts +26 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.d.ts +10 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.shared.d.ts +13 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.shared.js +13 -0
- package/lib/services/stripe/products/products.class.d.ts +26 -0
- package/lib/services/stripe/products/products.d.ts +10 -0
- package/lib/services/stripe/products/products.shared.d.ts +13 -0
- package/lib/services/stripe/products/products.shared.js +13 -0
- package/lib/services/traders/pods/api/api.class.d.ts +11 -0
- package/lib/services/traders/pods/api/api.d.ts +11 -0
- package/lib/services/traders/pods/api/api.schema.d.ts +5149 -0
- package/lib/services/traders/pods/api/api.shared.d.ts +13 -0
- package/lib/services/traders/pods/api/api.shared.js +13 -0
- package/lib/services/traders/pods/blob/blob.class.d.ts +26 -0
- package/lib/services/traders/pods/blob/blob.d.ts +9 -0
- package/lib/services/traders/pods/blob/blob.shared.d.ts +13 -0
- package/lib/services/traders/pods/blob/blob.shared.js +13 -0
- package/lib/services/traders/pods/events/events.class.d.ts +11 -0
- package/lib/services/traders/pods/events/events.d.ts +11 -0
- package/lib/services/traders/pods/events/events.schema.d.ts +531 -0
- package/lib/services/traders/pods/events/events.shared.d.ts +13 -0
- package/lib/services/traders/pods/events/events.shared.js +13 -0
- package/lib/services/traders/pods/pods.class.d.ts +11 -0
- package/lib/services/traders/pods/pods.d.ts +11 -0
- package/lib/services/traders/pods/pods.schema.d.ts +3933 -0
- package/lib/services/traders/pods/pods.shared.d.ts +13 -0
- package/lib/services/traders/pods/pods.shared.js +13 -0
- package/lib/services/traders/pods/webhooks/webhooks.class.d.ts +11 -0
- package/lib/services/traders/pods/webhooks/webhooks.d.ts +11 -0
- package/lib/services/traders/pods/webhooks/webhooks.schema.d.ts +351 -0
- package/lib/services/traders/pods/webhooks/webhooks.shared.d.ts +13 -0
- package/lib/services/traders/pods/webhooks/webhooks.shared.js +13 -0
- package/lib/services/traders/traders.class.d.ts +11 -0
- package/lib/services/traders/traders.d.ts +11 -0
- package/lib/services/traders/traders.schema.d.ts +2825 -0
- package/lib/services/traders/traders.shared.d.ts +13 -0
- package/lib/services/traders/traders.shared.js +13 -0
- package/lib/services/users/users.class.d.ts +11 -0
- package/lib/services/users/users.d.ts +11 -0
- package/lib/services/users/users.helper.d.ts +9 -0
- package/lib/services/users/users.schema.d.ts +615 -0
- package/lib/services/users/users.shared.d.ts +13 -0
- package/lib/services/users/users.shared.js +13 -0
- package/lib/validators.d.ts +3 -0
- package/package.json +37 -0
- package/readme.md +41 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../../client';
|
|
3
|
+
import type { ExchangesTicker, ExchangesTickerData, ExchangesTickerPatch, ExchangesTickerQuery, ExchangesTickerService } from './ticker.class';
|
|
4
|
+
export type { ExchangesTicker, ExchangesTickerData, ExchangesTickerPatch, ExchangesTickerQuery };
|
|
5
|
+
export type ExchangesTickerClientService = Pick<ExchangesTickerService<Params<ExchangesTickerQuery>>, (typeof exchangesTickerMethods)[number]>;
|
|
6
|
+
export declare const exchangesTickerPath = "exchanges/ticker";
|
|
7
|
+
export declare const exchangesTickerMethods: readonly ["find", "get", "create", "patch", "remove"];
|
|
8
|
+
export declare const exchangesTickerClient: (client: ClientApplication) => void;
|
|
9
|
+
declare module '../../../client' {
|
|
10
|
+
interface ServiceTypes {
|
|
11
|
+
[exchangesTickerPath]: ExchangesTickerClientService;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exchangesTickerClient = exports.exchangesTickerMethods = exports.exchangesTickerPath = void 0;
|
|
4
|
+
exports.exchangesTickerPath = 'exchanges/ticker';
|
|
5
|
+
exports.exchangesTickerMethods = ['find', 'get', 'create', 'patch', 'remove'];
|
|
6
|
+
const exchangesTickerClient = (client) => {
|
|
7
|
+
const connection = client.get('connection');
|
|
8
|
+
client.use(exports.exchangesTickerPath, connection.service(exports.exchangesTickerPath), {
|
|
9
|
+
methods: exports.exchangesTickerMethods
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.exchangesTickerClient = exchangesTickerClient;
|
|
13
|
+
//# sourceMappingURL=ticker.shared.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Id, NullableId, Params, ServiceInterface } from '@feathersjs/feathers';
|
|
2
|
+
import type { Application } from '../../declarations';
|
|
3
|
+
type Mailer = any;
|
|
4
|
+
type MailerData = any;
|
|
5
|
+
type MailerPatch = any;
|
|
6
|
+
type MailerQuery = any;
|
|
7
|
+
export type { Mailer, MailerData, MailerPatch, MailerQuery };
|
|
8
|
+
export interface MailerServiceOptions {
|
|
9
|
+
app: Application;
|
|
10
|
+
}
|
|
11
|
+
export interface MailerParams extends Params<MailerQuery> {
|
|
12
|
+
}
|
|
13
|
+
export declare class MailerService<ServiceParams extends MailerParams = MailerParams> implements ServiceInterface<Mailer, MailerData, ServiceParams, MailerPatch> {
|
|
14
|
+
options: MailerServiceOptions;
|
|
15
|
+
constructor(options: MailerServiceOptions);
|
|
16
|
+
find(_params?: ServiceParams): Promise<Mailer[]>;
|
|
17
|
+
get(id: Id, _params?: ServiceParams): Promise<Mailer>;
|
|
18
|
+
create(data: MailerData, params?: ServiceParams): Promise<Mailer>;
|
|
19
|
+
create(data: MailerData[], params?: ServiceParams): Promise<Mailer[]>;
|
|
20
|
+
update(id: NullableId, data: MailerData, _params?: ServiceParams): Promise<Mailer>;
|
|
21
|
+
patch(id: NullableId, data: MailerPatch, _params?: ServiceParams): Promise<Mailer>;
|
|
22
|
+
remove(id: NullableId, _params?: ServiceParams): Promise<Mailer>;
|
|
23
|
+
}
|
|
24
|
+
export declare const getOptions: (app: Application) => {
|
|
25
|
+
app: Application;
|
|
26
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../client';
|
|
3
|
+
import type { Mailer, MailerData, MailerPatch, MailerQuery, MailerService } from './mailer.class';
|
|
4
|
+
export type { Mailer, MailerData, MailerPatch, MailerQuery };
|
|
5
|
+
export type MailerClientService = Pick<MailerService<Params<MailerQuery>>, (typeof mailerMethods)[number]>;
|
|
6
|
+
export declare const mailerPath = "mailer";
|
|
7
|
+
export declare const mailerMethods: readonly ["find", "get", "create", "patch", "remove"];
|
|
8
|
+
export declare const mailerClient: (client: ClientApplication) => void;
|
|
9
|
+
declare module '../../client' {
|
|
10
|
+
interface ServiceTypes {
|
|
11
|
+
[mailerPath]: MailerClientService;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mailerClient = exports.mailerMethods = exports.mailerPath = void 0;
|
|
4
|
+
exports.mailerPath = 'mailer';
|
|
5
|
+
exports.mailerMethods = ['find', 'get', 'create', 'patch', 'remove'];
|
|
6
|
+
const mailerClient = (client) => {
|
|
7
|
+
const connection = client.get('connection');
|
|
8
|
+
client.use(exports.mailerPath, connection.service(exports.mailerPath), {
|
|
9
|
+
methods: exports.mailerMethods
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.mailerClient = mailerClient;
|
|
13
|
+
//# sourceMappingURL=mailer.shared.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
3
|
+
import type { MongoDBAdapterParams, MongoDBAdapterOptions } from '@feathersjs/mongodb';
|
|
4
|
+
import type { Application } from '../../declarations';
|
|
5
|
+
type Marketplaces = any;
|
|
6
|
+
type MarketplacesData = any;
|
|
7
|
+
type MarketplacesPatch = any;
|
|
8
|
+
type MarketplacesQuery = any;
|
|
9
|
+
export type { Marketplaces, MarketplacesData, MarketplacesPatch, MarketplacesQuery };
|
|
10
|
+
export interface MarketplacesParams extends MongoDBAdapterParams<MarketplacesQuery> {
|
|
11
|
+
}
|
|
12
|
+
export declare class MarketplacesService<ServiceParams extends Params = MarketplacesParams> extends MongoDBService<Marketplaces, MarketplacesData, MarketplacesParams, MarketplacesPatch> {
|
|
13
|
+
}
|
|
14
|
+
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Application } from '../../declarations';
|
|
2
|
+
import { MarketplacesService } from './marketplaces.class';
|
|
3
|
+
import { marketplacesPath } from './marketplaces.shared';
|
|
4
|
+
export * from './marketplaces.class';
|
|
5
|
+
export declare const marketplaces: (app: Application) => void;
|
|
6
|
+
declare module '../../declarations' {
|
|
7
|
+
interface ServiceTypes {
|
|
8
|
+
[marketplacesPath]: MarketplacesService;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../client';
|
|
3
|
+
import type { Marketplaces, MarketplacesData, MarketplacesPatch, MarketplacesQuery, MarketplacesService } from './marketplaces.class';
|
|
4
|
+
export type { Marketplaces, MarketplacesData, MarketplacesPatch, MarketplacesQuery };
|
|
5
|
+
export type MarketplacesClientService = Pick<MarketplacesService<Params<MarketplacesQuery>>, (typeof marketplacesMethods)[number]>;
|
|
6
|
+
export declare const marketplacesPath = "marketplaces";
|
|
7
|
+
export declare const marketplacesMethods: readonly ["find", "get", "create", "patch", "remove"];
|
|
8
|
+
export declare const marketplacesClient: (client: ClientApplication) => void;
|
|
9
|
+
declare module '../../client' {
|
|
10
|
+
interface ServiceTypes {
|
|
11
|
+
[marketplacesPath]: MarketplacesClientService;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.marketplacesClient = exports.marketplacesMethods = exports.marketplacesPath = void 0;
|
|
4
|
+
exports.marketplacesPath = 'marketplaces';
|
|
5
|
+
exports.marketplacesMethods = ['find', 'get', 'create', 'patch', 'remove'];
|
|
6
|
+
const marketplacesClient = (client) => {
|
|
7
|
+
const connection = client.get('connection');
|
|
8
|
+
client.use(exports.marketplacesPath, connection.service(exports.marketplacesPath), {
|
|
9
|
+
methods: exports.marketplacesMethods
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.marketplacesClient = marketplacesClient;
|
|
13
|
+
//# sourceMappingURL=marketplaces.shared.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
3
|
+
import type { MongoDBAdapterParams, MongoDBAdapterOptions } from '@feathersjs/mongodb';
|
|
4
|
+
import type { Application } from '../../declarations';
|
|
5
|
+
import type { Markets, MarketsData, MarketsPatch, MarketsQuery } from './markets.schema';
|
|
6
|
+
export type { Markets, MarketsData, MarketsPatch, MarketsQuery };
|
|
7
|
+
export interface MarketsParams extends MongoDBAdapterParams<MarketsQuery> {
|
|
8
|
+
}
|
|
9
|
+
export declare class MarketsService<ServiceParams extends Params = MarketsParams> extends MongoDBService<Markets, MarketsData, MarketsParams, MarketsPatch> {
|
|
10
|
+
}
|
|
11
|
+
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Application } from '../../declarations';
|
|
2
|
+
import { MarketsService } from './markets.class';
|
|
3
|
+
import { marketsPath } from './markets.shared';
|
|
4
|
+
export * from './markets.class';
|
|
5
|
+
export * from './markets.schema';
|
|
6
|
+
export declare const markets: (app: Application) => void;
|
|
7
|
+
declare module '../../declarations' {
|
|
8
|
+
interface ServiceTypes {
|
|
9
|
+
[marketsPath]: MarketsService;
|
|
10
|
+
}
|
|
11
|
+
}
|