fiscalia_bo-nest-helpers 0.1.46 → 0.1.47
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.
@@ -1,14 +1,15 @@
|
|
1
1
|
import 'dotenv/config';
|
2
2
|
import { HttpService } from '@nestjs/axios';
|
3
|
-
import {
|
3
|
+
import { IResponseDTO } from 'src/types';
|
4
|
+
import { ObjectLinkResponse, CreateShortLinkDto, CreateTemporalLinkDTO, LinkTempResponse } from './types';
|
4
5
|
export declare class MsShortLinkService {
|
5
6
|
private readonly httpService;
|
6
7
|
private requestHttpService;
|
7
8
|
constructor(httpService: HttpService);
|
8
|
-
create(data: CreateShortLinkDto):
|
9
|
+
create(data: CreateShortLinkDto): Promise<IResponseDTO<ObjectLinkResponse>>;
|
9
10
|
sl(hash: string): any;
|
10
|
-
view(linkId: string):
|
11
|
-
delete(linkId: string):
|
12
|
-
createTemporalLink(data: CreateTemporalLinkDTO):
|
11
|
+
view(linkId: string): Promise<IResponseDTO<ObjectLinkResponse>>;
|
12
|
+
delete(linkId: string): Promise<IResponseDTO<ObjectLinkResponse>>;
|
13
|
+
createTemporalLink(data: CreateTemporalLinkDTO): Promise<IResponseDTO<LinkTempResponse>>;
|
13
14
|
slTemp(hash: string): any;
|
14
15
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ms-shortlink.service.js","sourceRoot":"","sources":["../../src/ms-shortlink/ms-shortlink.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAuB;AACvB,2CAA4C;AAC5C,yCAA4C;
|
1
|
+
{"version":3,"file":"ms-shortlink.service.js","sourceRoot":"","sources":["../../src/ms-shortlink/ms-shortlink.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAuB;AACvB,2CAA4C;AAC5C,yCAA4C;AAS5C,8DAAmE;AAG5D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,YAA6B,WAAwB;QAAxB,gBAAW,GA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11
11
|
};
|
12
|
-
export type
|
12
|
+
export type ObjectLinkResponse = {
|
13
13
|
link: string;
|
14
14
|
appID: string;
|
15
15
|
hash: string;
|
@@ -20,3 +20,9 @@ export type CreateLinkResponse = {
|
|
20
20
|
updatedAt: string;
|
21
21
|
__v: number;
|
22
22
|
};
|
23
|
+
export type LinkTempResponse = {
|
24
|
+
link: string;
|
25
|
+
appID: string;
|
26
|
+
time: number;
|
27
|
+
hash: string;
|
28
|
+
};
|