trade-safety 1.7.0 → 1.8.0
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.
|
@@ -265,7 +265,30 @@ declare const tradeSafetyCheckResponseSchema: z.ZodObject<{
|
|
|
265
265
|
expert_reviewed_at?: string | null | undefined;
|
|
266
266
|
expert_reviewed_by?: string | null | undefined;
|
|
267
267
|
}>;
|
|
268
|
+
declare const postPreviewSchema: z.ZodObject<{
|
|
269
|
+
platform: z.ZodEnum<["twitter"]>;
|
|
270
|
+
author: z.ZodString;
|
|
271
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
text: z.ZodString;
|
|
273
|
+
text_preview: z.ZodString;
|
|
274
|
+
images: z.ZodArray<z.ZodString, "many">;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
platform: "twitter";
|
|
277
|
+
text: string;
|
|
278
|
+
author: string;
|
|
279
|
+
text_preview: string;
|
|
280
|
+
images: string[];
|
|
281
|
+
created_at?: string | null | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
platform: "twitter";
|
|
284
|
+
text: string;
|
|
285
|
+
author: string;
|
|
286
|
+
text_preview: string;
|
|
287
|
+
images: string[];
|
|
288
|
+
created_at?: string | null | undefined;
|
|
289
|
+
}>;
|
|
268
290
|
export type TradeSafetyCheckRepositoryResponse = z.infer<typeof tradeSafetyCheckResponseSchema>;
|
|
291
|
+
export type PostPreview = z.infer<typeof postPreviewSchema>;
|
|
269
292
|
export declare class TradeSafetyRepository extends BaseCrudRepository<TradeSafetyCheckRepositoryResponse> {
|
|
270
293
|
readonly resource = "trade-safety";
|
|
271
294
|
protected getDataSchema(): z.ZodObject<{
|
|
@@ -533,6 +556,11 @@ export declare class TradeSafetyRepository extends BaseCrudRepository<TradeSafet
|
|
|
533
556
|
expert_reviewed_at?: string | null | undefined;
|
|
534
557
|
expert_reviewed_by?: string | null | undefined;
|
|
535
558
|
}>;
|
|
559
|
+
/**
|
|
560
|
+
* Fetch post preview metadata from a social media URL
|
|
561
|
+
* POST /trade-safety/preview
|
|
562
|
+
*/
|
|
563
|
+
fetchPreview(url: string, fetchOptions?: RequestInit): Promise<PostPreview>;
|
|
536
564
|
}
|
|
537
565
|
export {};
|
|
538
566
|
//# sourceMappingURL=TradeSafetyRepository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradeSafetyRepository.d.ts","sourceRoot":"","sources":["../../src/repositories/TradeSafetyRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlC,CAAC;
|
|
1
|
+
{"version":3,"file":"TradeSafetyRepository.d.ts","sourceRoot":"","sources":["../../src/repositories/TradeSafetyRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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