UNPKG

@darkpay/dark-types

Version:

JavaScript type definitions for Darkdot blockchain.

51 lines (50 loc) 1.29 kB
export declare type ElasticIndexTypes = 'all' | 'profiles' | 'storefronts' | 'products'; export declare type ElasticIndexName = 'darkdot_profiles' | 'darkdot_storefronts' | 'darkdot_products'; export declare type IElasticIndex = Record<string, ElasticIndexName>; export declare const ElasticIndex: IElasticIndex; export declare const AllElasticIndexes: ElasticIndexName[]; export declare const ElasticFields: { storefront: { name: string; handle: string; about: string; tags: string; }; product: { title: string; body: string; tags: string; shipzones: string; }; comment: { body: string; }; profile: { name: string; about: string; }; }; export declare type ElasticQueryParams = { indexes?: ElasticIndexTypes[]; q?: string; tags?: string[]; limit?: number; offset?: number; }; export declare type ElasticStorefrontDoc = { name?: string; handle?: string; about?: string; tags?: string[]; }; export declare type ElasticProductDoc = { storefrontId?: string; title?: string; body?: string; tags?: string[]; shipzones?: string[]; }; export declare type ElasticProfileDoc = { name?: string; about?: string; };