elseware-nodejs 1.2.1 → 1.3.1
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/README.md +0 -102
- package/dist/index.cjs +5421 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +5331 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -78,6 +78,28 @@ declare class AzureBlobService {
|
|
|
78
78
|
generateSasUrl(blobName: string, expiresInMinutes?: number): Promise<string>;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
interface CloudinaryConfig {
|
|
82
|
+
cloudName: string;
|
|
83
|
+
apiKey: string;
|
|
84
|
+
apiSecret: string;
|
|
85
|
+
rootFolder?: string;
|
|
86
|
+
}
|
|
87
|
+
interface UploadOptions {
|
|
88
|
+
folder?: string;
|
|
89
|
+
publicId?: string;
|
|
90
|
+
resourceType?: "image" | "video" | "raw" | "auto";
|
|
91
|
+
}
|
|
92
|
+
declare class CloudinaryService {
|
|
93
|
+
private rootFolder?;
|
|
94
|
+
constructor(config: CloudinaryConfig);
|
|
95
|
+
uploadFile(filePath: string, options?: UploadOptions): Promise<string>;
|
|
96
|
+
deleteFile(publicId: string): Promise<boolean>;
|
|
97
|
+
fileExists(publicId: string): Promise<boolean>;
|
|
98
|
+
generateUrl(publicId: string, options?: Record<string, any>): string;
|
|
99
|
+
createFolder(folder: string): Promise<void>;
|
|
100
|
+
private buildFolderPath;
|
|
101
|
+
}
|
|
102
|
+
|
|
81
103
|
interface DatabaseConfig {
|
|
82
104
|
uri: string;
|
|
83
105
|
}
|
|
@@ -1860,4 +1882,4 @@ declare function toMinutes(ms: number): number;
|
|
|
1860
1882
|
declare function toHours(ms: number): number;
|
|
1861
1883
|
declare function sleep(ms: number): Promise<void>;
|
|
1862
1884
|
|
|
1863
|
-
export { APIFactory, APIFeatures, APIResponse, AVLTree, AdjacencyList, AdjacencyMatrix, type AdjacentEdge, type AllowedOriginsOptions, AppError, type AzureBlobConfig, AzureBlobService, BPlusTree, BTree, BaseService, BinaryHeap, BinarySearchTree, BinaryTree, BloomFilter, CircularArray, CircularLinkedList, CircularQueue, ConsistentHash, CountMinSketch, type CrudService, type DatabaseConfig, Deque, type DirectedEdge, DirectedGraph, DisjointSetUnion, DoublyLinkedList, DynamicArray, type Edge, FenwickTree, FibNode, FibonacciHeap, GlobalErrorHandler, Graph, HashMap, HashSet, HyperLogLog, type Interval, IntervalTree, KDTree, LFUCache, LRUCache, type LoggerOptions, MaxHeap, MaxStack, MinHeap, MinStack, MultiSet, Node, OrderedSet, PairingHeap, PairingNode, type Point, type Point2D, PriorityQueue, type ProgressCallback, QuadTree, Queue, RadixTree, type Rect, RedBlackTree, SegmentTree, Set, SinglyLinkedList, SparseTable, SplayTree, Stack, StaticArray, SuffixArray, SuffixTree, TernarySearchTree, TreeNode, Trie, asyncHandler, authMiddleware, connectMongoDB, createAllowedOrigins, createCorsOptions, days, errorToString, hours, loadEnv, logger, milliseconds, minutes, seconds, sleep, toHours, toMinutes, toSeconds, validate };
|
|
1885
|
+
export { APIFactory, APIFeatures, APIResponse, AVLTree, AdjacencyList, AdjacencyMatrix, type AdjacentEdge, type AllowedOriginsOptions, AppError, type AzureBlobConfig, AzureBlobService, BPlusTree, BTree, BaseService, BinaryHeap, BinarySearchTree, BinaryTree, BloomFilter, CircularArray, CircularLinkedList, CircularQueue, type CloudinaryConfig, CloudinaryService, ConsistentHash, CountMinSketch, type CrudService, type DatabaseConfig, Deque, type DirectedEdge, DirectedGraph, DisjointSetUnion, DoublyLinkedList, DynamicArray, type Edge, FenwickTree, FibNode, FibonacciHeap, GlobalErrorHandler, Graph, HashMap, HashSet, HyperLogLog, type Interval, IntervalTree, KDTree, LFUCache, LRUCache, type LoggerOptions, MaxHeap, MaxStack, MinHeap, MinStack, MultiSet, Node, OrderedSet, PairingHeap, PairingNode, type Point, type Point2D, PriorityQueue, type ProgressCallback, QuadTree, Queue, RadixTree, type Rect, RedBlackTree, SegmentTree, Set, SinglyLinkedList, SparseTable, SplayTree, Stack, StaticArray, SuffixArray, SuffixTree, TernarySearchTree, TreeNode, Trie, type UploadOptions, asyncHandler, authMiddleware, connectMongoDB, createAllowedOrigins, createCorsOptions, days, errorToString, hours, loadEnv, logger, milliseconds, minutes, seconds, sleep, toHours, toMinutes, toSeconds, validate };
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,28 @@ declare class AzureBlobService {
|
|
|
78
78
|
generateSasUrl(blobName: string, expiresInMinutes?: number): Promise<string>;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
interface CloudinaryConfig {
|
|
82
|
+
cloudName: string;
|
|
83
|
+
apiKey: string;
|
|
84
|
+
apiSecret: string;
|
|
85
|
+
rootFolder?: string;
|
|
86
|
+
}
|
|
87
|
+
interface UploadOptions {
|
|
88
|
+
folder?: string;
|
|
89
|
+
publicId?: string;
|
|
90
|
+
resourceType?: "image" | "video" | "raw" | "auto";
|
|
91
|
+
}
|
|
92
|
+
declare class CloudinaryService {
|
|
93
|
+
private rootFolder?;
|
|
94
|
+
constructor(config: CloudinaryConfig);
|
|
95
|
+
uploadFile(filePath: string, options?: UploadOptions): Promise<string>;
|
|
96
|
+
deleteFile(publicId: string): Promise<boolean>;
|
|
97
|
+
fileExists(publicId: string): Promise<boolean>;
|
|
98
|
+
generateUrl(publicId: string, options?: Record<string, any>): string;
|
|
99
|
+
createFolder(folder: string): Promise<void>;
|
|
100
|
+
private buildFolderPath;
|
|
101
|
+
}
|
|
102
|
+
|
|
81
103
|
interface DatabaseConfig {
|
|
82
104
|
uri: string;
|
|
83
105
|
}
|
|
@@ -1860,4 +1882,4 @@ declare function toMinutes(ms: number): number;
|
|
|
1860
1882
|
declare function toHours(ms: number): number;
|
|
1861
1883
|
declare function sleep(ms: number): Promise<void>;
|
|
1862
1884
|
|
|
1863
|
-
export { APIFactory, APIFeatures, APIResponse, AVLTree, AdjacencyList, AdjacencyMatrix, type AdjacentEdge, type AllowedOriginsOptions, AppError, type AzureBlobConfig, AzureBlobService, BPlusTree, BTree, BaseService, BinaryHeap, BinarySearchTree, BinaryTree, BloomFilter, CircularArray, CircularLinkedList, CircularQueue, ConsistentHash, CountMinSketch, type CrudService, type DatabaseConfig, Deque, type DirectedEdge, DirectedGraph, DisjointSetUnion, DoublyLinkedList, DynamicArray, type Edge, FenwickTree, FibNode, FibonacciHeap, GlobalErrorHandler, Graph, HashMap, HashSet, HyperLogLog, type Interval, IntervalTree, KDTree, LFUCache, LRUCache, type LoggerOptions, MaxHeap, MaxStack, MinHeap, MinStack, MultiSet, Node, OrderedSet, PairingHeap, PairingNode, type Point, type Point2D, PriorityQueue, type ProgressCallback, QuadTree, Queue, RadixTree, type Rect, RedBlackTree, SegmentTree, Set, SinglyLinkedList, SparseTable, SplayTree, Stack, StaticArray, SuffixArray, SuffixTree, TernarySearchTree, TreeNode, Trie, asyncHandler, authMiddleware, connectMongoDB, createAllowedOrigins, createCorsOptions, days, errorToString, hours, loadEnv, logger, milliseconds, minutes, seconds, sleep, toHours, toMinutes, toSeconds, validate };
|
|
1885
|
+
export { APIFactory, APIFeatures, APIResponse, AVLTree, AdjacencyList, AdjacencyMatrix, type AdjacentEdge, type AllowedOriginsOptions, AppError, type AzureBlobConfig, AzureBlobService, BPlusTree, BTree, BaseService, BinaryHeap, BinarySearchTree, BinaryTree, BloomFilter, CircularArray, CircularLinkedList, CircularQueue, type CloudinaryConfig, CloudinaryService, ConsistentHash, CountMinSketch, type CrudService, type DatabaseConfig, Deque, type DirectedEdge, DirectedGraph, DisjointSetUnion, DoublyLinkedList, DynamicArray, type Edge, FenwickTree, FibNode, FibonacciHeap, GlobalErrorHandler, Graph, HashMap, HashSet, HyperLogLog, type Interval, IntervalTree, KDTree, LFUCache, LRUCache, type LoggerOptions, MaxHeap, MaxStack, MinHeap, MinStack, MultiSet, Node, OrderedSet, PairingHeap, PairingNode, type Point, type Point2D, PriorityQueue, type ProgressCallback, QuadTree, Queue, RadixTree, type Rect, RedBlackTree, SegmentTree, Set, SinglyLinkedList, SparseTable, SplayTree, Stack, StaticArray, SuffixArray, SuffixTree, TernarySearchTree, TreeNode, Trie, type UploadOptions, asyncHandler, authMiddleware, connectMongoDB, createAllowedOrigins, createCorsOptions, days, errorToString, hours, loadEnv, logger, milliseconds, minutes, seconds, sleep, toHours, toMinutes, toSeconds, validate };
|