@vtecx/vtecxnext 1.0.6 → 1.0.8
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/dist/vtecxnext.d.ts +29 -0
- package/dist/vtecxnext.js +695 -93
- package/package.json +1 -1
package/dist/vtecxnext.d.ts
CHANGED
|
@@ -509,6 +509,29 @@ export declare const leaveGroup: (req: IncomingMessage, res: ServerResponse, gro
|
|
|
509
509
|
* @return feed (entry array)
|
|
510
510
|
*/
|
|
511
511
|
export declare const noGroupMember: (req: IncomingMessage, res: ServerResponse, uri: string) => Promise<any>;
|
|
512
|
+
/**
|
|
513
|
+
* Get groups
|
|
514
|
+
* @param req request (for authentication)
|
|
515
|
+
* @param res response (for authentication)
|
|
516
|
+
* @param uri group key
|
|
517
|
+
* @return feed (entry array)
|
|
518
|
+
*/
|
|
519
|
+
export declare const getGroups: (req: IncomingMessage, res: ServerResponse) => Promise<any>;
|
|
520
|
+
/**
|
|
521
|
+
* whether you are in the group
|
|
522
|
+
* @param req request (for authentication)
|
|
523
|
+
* @param res response (for authentication)
|
|
524
|
+
* @param uri group key
|
|
525
|
+
* @return true/false
|
|
526
|
+
*/
|
|
527
|
+
export declare const isGroupMember: (req: IncomingMessage, res: ServerResponse, uri: string) => Promise<boolean>;
|
|
528
|
+
/**
|
|
529
|
+
* whether you are in the admin group
|
|
530
|
+
* @param req request (for authentication)
|
|
531
|
+
* @param res response (for authentication)
|
|
532
|
+
* @return true/false
|
|
533
|
+
*/
|
|
534
|
+
export declare const isAdmin: (req: IncomingMessage, res: ServerResponse) => Promise<boolean>;
|
|
512
535
|
/**
|
|
513
536
|
* add user
|
|
514
537
|
* @param req request (for authentication)
|
|
@@ -722,3 +745,9 @@ export declare class VtecxNextError extends Error {
|
|
|
722
745
|
status: number;
|
|
723
746
|
constructor(status: number, message: string);
|
|
724
747
|
}
|
|
748
|
+
/**
|
|
749
|
+
* Fetch Error
|
|
750
|
+
*/
|
|
751
|
+
export declare class FetchError extends VtecxNextError {
|
|
752
|
+
constructor(message: string);
|
|
753
|
+
}
|