@nlabs/reaktor 0.1.4 → 0.1.5
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/data/conversations.js +6 -5
- package/lib/data/files.d.ts +1 -1
- package/lib/data/files.js +40 -40
- package/lib/data/groups.d.ts +1 -1
- package/lib/data/groups.js +26 -26
- package/lib/data/images.d.ts +14 -7
- package/lib/data/images.js +439 -332
- package/lib/data/ios.js +1 -1
- package/lib/data/messages.js +27 -27
- package/lib/data/posts.js +5 -4
- package/lib/data/reactions.js +1 -1
- package/lib/data/s3.js +1 -1
- package/lib/data/subscription.js +1 -1
- package/lib/data/tags.d.ts +1 -1
- package/lib/data/tags.js +36 -36
- package/lib/data/users.d.ts +2 -0
- package/lib/data/users.js +64 -6
- package/lib/types/auth.d.ts +1 -0
- package/lib/types/files.d.ts +2 -2
- package/lib/types/images.d.ts +16 -2
- package/lib/utils/auth.js +11 -3
- package/package.json +5 -4
package/lib/data/images.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { PutObjectRequest } from 'aws-sdk/clients/s3';
|
|
3
|
+
import { ApiContext, ArangoDBLimit, ImageEdgeType, ImageLinkType, ImageOptions, ImageType, ImageUrlData } from '../types';
|
|
4
|
+
export declare const parseImageOptions: (options?: ImageOptions) => {
|
|
5
|
+
limit: ArangoDBLimit;
|
|
6
|
+
type: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const getImageOptional: (fields: string[]) => any;
|
|
3
9
|
export declare const getImageListByUser: (context: ApiContext, userId: string, from: number, to: number) => Promise<ImageType[]>;
|
|
10
|
+
export declare const getImageListByLink: (context: ApiContext, itemId: string, itemType: ImageLinkType, options: ImageOptions) => Promise<ImageType[]>;
|
|
4
11
|
export declare const getImageListByGroup: (context: ApiContext, params: any) => Promise<ImageType[]>;
|
|
5
12
|
export declare const getImage: (context: ApiContext, id: string) => Promise<ImageType>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const addImage: (context: ApiContext, image: ImageType) => Promise<ImageType>;
|
|
8
|
-
export declare const addImageEdge: (context: ApiContext, imageEdge: FileEdgeType) => Promise<object>;
|
|
9
|
-
export declare const deleteImage: (context: ApiContext, imgId: any) => Promise<ImageType>;
|
|
10
|
-
export declare const getPathUserImages: (userID: string, photoId: string, type: string, dir?: string) => string;
|
|
13
|
+
export declare const getPathUserImages: (sub: string, imgId: string, type: string, dir?: string) => string;
|
|
11
14
|
export declare const getUrlImages: (data: ImageUrlData) => string;
|
|
12
|
-
export declare const resizeSaveImage: (
|
|
15
|
+
export declare const resizeSaveImage: (context: ApiContext, imgId: string, buffer: Buffer, type?: string, s3Options?: PutObjectRequest) => Promise<ImageType>;
|
|
16
|
+
export declare const addImage: (context: ApiContext, image: ImageType, s3Options: PutObjectRequest) => Promise<ImageType>;
|
|
17
|
+
export declare const addImageEdge: (context: ApiContext, imageEdge: ImageEdgeType) => Promise<object>;
|
|
18
|
+
export declare const updateImage: (context: ApiContext, item: ImageType, s3Options: PutObjectRequest) => Promise<ImageType>;
|
|
19
|
+
export declare const deleteImage: (context: ApiContext, imgId: string) => Promise<ImageType>;
|