Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Kiryakov <stepan.kiryakov@envisionblockchain.com>
  • Loading branch information
Stepan-Kirjakov committed Dec 27, 2024
1 parent 0b6d7ff commit e52a3b7
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 16 deletions.
17 changes: 11 additions & 6 deletions indexer-api-gateway/src/dto/details/label.details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,21 @@ export class LabelOptionsDTO implements LabelOptions {

export class LabelAnalyticsDTO implements LabelAnalytics {
@ApiProperty({
description: 'Token',
example: '0.0.4481265',
description: 'Text search',
})
tokenId: string;
textSearch: string;

@ApiProperty({
description: 'Name',
example: 'Label Name',
description: 'Owner',
example: 'did:hedera:testnet:8Go53QCUXZ4nzSQMyoWovWCxseogGTMLDiHg14Fkz4VN_0.0.4481265',
})
owner?: string;

@ApiProperty({
description: 'Label Config',
type: 'object',
})
labelName: string;
config?: any;
}

export class LabelActivityDTO implements LabelActivity {
Expand Down
2 changes: 1 addition & 1 deletion indexer-api-gateway/src/dto/details/vp.details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class VPAnalyticsDTO implements VPAnalytics {
description: 'Token amount',
})
tokenAmount?: string;

@ApiProperty({
description: 'Label name',
})
Expand Down
2 changes: 1 addition & 1 deletion indexer-interfaces/src/interfaces/details/label.details.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DetailsActivity, DetailsHistory } from './details.interface.js';
import { DetailsActivity } from './details.interface.js';
import { Message } from '../message.interface.js';

/**
Expand Down
15 changes: 13 additions & 2 deletions indexer-interfaces/src/interfaces/details/statistic.details.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DetailsActivity, DetailsHistory } from './details.interface.js';
import { DetailsActivity } from './details.interface.js';
import { Message } from '../message.interface.js';

/**
Expand Down Expand Up @@ -35,7 +35,18 @@ export interface StatisticOptions {
* Statistic analytics
*/
export interface StatisticAnalytics {

/**
* Text search
*/
textSearch?: string;
/**
* Owner
*/
owner?: string;
/**
* Config
*/
config?: any;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ValidateNamespace } from './namespace.js';
import { NodeItemValidator } from './item-node-validator.js';
import { GroupType, IGroupItemConfig, IStepDocument, NavItemType } from '../interfaces/index.js';


export class GroupItemValidator {
public readonly type: NavItemType | null = NavItemType.Group;

Expand Down
2 changes: 1 addition & 1 deletion indexer-service/src/api/filters.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class FiltersService {
return new MessageError(error);
}
}

@MessagePattern(IndexerMessageAPI.GET_VP_FILTERS)
async getVpFilters() {
try {
Expand Down
2 changes: 1 addition & 1 deletion indexer-service/src/helpers/parsers/tool.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function parseToolFile(zipFile: any): Promise<IToolComponents> {
.filter((file) => /^tools\/.+/.test(file[0]))
.map((file) => file[1].async('string'))
);

const tool = JSON.parse(toolString);
const tags = tagsStringArray.map((item) => JSON.parse(item)) || [];
const schemas = schemasStringArray.map((item) => JSON.parse(item));
Expand Down
2 changes: 1 addition & 1 deletion indexer-worker-service/src/loaders/ipfs-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HttpNode } from './ipfs/http-node.js';
// import { IPFSNode } from './ipfs/ipfs-node.js'
// import { HeliaNode } from './ipfs/helia-node.js'
// import { KudoNode } from './ipfs/kudo-node.js';
import CID from "cids";
import CID from 'cids';

export class IPFSService {
private static readonly LOAD_TIMEOUT: number = 5 * 60 * 1000;
Expand Down
2 changes: 1 addition & 1 deletion indexer-worker-service/src/loaders/ipfs/http-node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios';
import CID from "cids";
import CID from 'cids';
import { BaseNode, CheckFileResponse } from './base-node';

export class HttpNode implements BaseNode {
Expand Down
2 changes: 1 addition & 1 deletion indexer-worker-service/src/services/message-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class MessageService {
const delay = Date.now() - MessageService.CYCLE_TIME;
const rows = await em.find(MessageCache,
{
type: "Message",
type: 'Message',
$or: [
{ status: MessageStatus.LOADING, lastUpdate: { $lt: delay } },
{ status: MessageStatus.COMPRESSED }
Expand Down

0 comments on commit e52a3b7

Please sign in to comment.