@goweekdays/core 0.0.1 → 0.0.4
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/CHANGELOG.md +18 -0
- package/dist/index.d.ts +97 -568
- package/dist/index.js +18395 -4035
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18449 -4045
- package/dist/index.mjs.map +1 -1
- package/dist/public/handlebars/forget-password.hbs +12 -11
- package/dist/public/handlebars/sign-up.hbs +14 -0
- package/package.json +4 -3
- package/tsconfig.json +102 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,549 +1,14 @@
|
|
|
1
|
-
import { Request, Response, NextFunction } from 'express';
|
|
2
|
-
import * as winston from 'winston';
|
|
3
|
-
import jwt from 'jsonwebtoken';
|
|
4
|
-
import * as _redis_bloom_dist_commands_top_k_RESERVE from '@redis/bloom/dist/commands/top-k/RESERVE';
|
|
5
|
-
import * as _redis_bloom_dist_commands_top_k_QUERY from '@redis/bloom/dist/commands/top-k/QUERY';
|
|
6
|
-
import * as _redis_bloom_dist_commands_top_k_LIST from '@redis/bloom/dist/commands/top-k/LIST';
|
|
7
|
-
import * as _redis_bloom_dist_commands_top_k_LIST_WITHCOUNT from '@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT';
|
|
8
|
-
import * as _redis_bloom_dist_commands_top_k_INFO from '@redis/bloom/dist/commands/top-k/INFO';
|
|
9
|
-
import * as _redis_bloom_dist_commands_top_k_INCRBY from '@redis/bloom/dist/commands/top-k/INCRBY';
|
|
10
|
-
import * as _redis_bloom_dist_commands_top_k_COUNT from '@redis/bloom/dist/commands/top-k/COUNT';
|
|
11
|
-
import * as _redis_bloom_dist_commands_top_k_ADD from '@redis/bloom/dist/commands/top-k/ADD';
|
|
12
|
-
import * as _redis_bloom_dist_commands_t_digest_TRIMMED_MEAN from '@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN';
|
|
13
|
-
import * as _redis_bloom_dist_commands_t_digest_REVRANK from '@redis/bloom/dist/commands/t-digest/REVRANK';
|
|
14
|
-
import * as _redis_bloom_dist_commands_t_digest_RESET from '@redis/bloom/dist/commands/t-digest/RESET';
|
|
15
|
-
import * as _redis_bloom_dist_commands_t_digest_RANK from '@redis/bloom/dist/commands/t-digest/RANK';
|
|
16
|
-
import * as _redis_bloom_dist_commands_t_digest_QUANTILE from '@redis/bloom/dist/commands/t-digest/QUANTILE';
|
|
17
|
-
import * as _redis_bloom_dist_commands_t_digest_MIN from '@redis/bloom/dist/commands/t-digest/MIN';
|
|
18
|
-
import * as _redis_bloom_dist_commands_t_digest_MERGE from '@redis/bloom/dist/commands/t-digest/MERGE';
|
|
19
|
-
import * as _redis_bloom_dist_commands_t_digest_MAX from '@redis/bloom/dist/commands/t-digest/MAX';
|
|
20
|
-
import * as _redis_bloom_dist_commands_t_digest_INFO from '@redis/bloom/dist/commands/t-digest/INFO';
|
|
21
|
-
import * as _redis_bloom_dist_commands_t_digest_CREATE from '@redis/bloom/dist/commands/t-digest/CREATE';
|
|
22
|
-
import * as _redis_bloom_dist_commands_t_digest_CDF from '@redis/bloom/dist/commands/t-digest/CDF';
|
|
23
|
-
import * as _redis_bloom_dist_commands_t_digest_BYREVRANK from '@redis/bloom/dist/commands/t-digest/BYREVRANK';
|
|
24
|
-
import * as _redis_bloom_dist_commands_t_digest_BYRANK from '@redis/bloom/dist/commands/t-digest/BYRANK';
|
|
25
|
-
import * as _redis_bloom_dist_commands_t_digest_ADD from '@redis/bloom/dist/commands/t-digest/ADD';
|
|
26
|
-
import * as _redis_bloom_dist_commands_cuckoo_SCANDUMP from '@redis/bloom/dist/commands/cuckoo/SCANDUMP';
|
|
27
|
-
import * as _redis_bloom_dist_commands_cuckoo_RESERVE from '@redis/bloom/dist/commands/cuckoo/RESERVE';
|
|
28
|
-
import * as _redis_bloom_dist_commands_cuckoo_LOADCHUNK from '@redis/bloom/dist/commands/cuckoo/LOADCHUNK';
|
|
29
|
-
import * as _redis_bloom_dist_commands_cuckoo_INSERTNX from '@redis/bloom/dist/commands/cuckoo/INSERTNX';
|
|
30
|
-
import * as _redis_bloom_dist_commands_cuckoo_INSERT from '@redis/bloom/dist/commands/cuckoo/INSERT';
|
|
31
|
-
import * as _redis_bloom_dist_commands_cuckoo_INFO from '@redis/bloom/dist/commands/cuckoo/INFO';
|
|
32
|
-
import * as _redis_bloom_dist_commands_cuckoo_EXISTS from '@redis/bloom/dist/commands/cuckoo/EXISTS';
|
|
33
|
-
import * as _redis_bloom_dist_commands_cuckoo_DEL from '@redis/bloom/dist/commands/cuckoo/DEL';
|
|
34
|
-
import * as _redis_bloom_dist_commands_cuckoo_COUNT from '@redis/bloom/dist/commands/cuckoo/COUNT';
|
|
35
|
-
import * as _redis_bloom_dist_commands_cuckoo_ADDNX from '@redis/bloom/dist/commands/cuckoo/ADDNX';
|
|
36
|
-
import * as _redis_bloom_dist_commands_cuckoo_ADD from '@redis/bloom/dist/commands/cuckoo/ADD';
|
|
37
|
-
import * as _redis_bloom_dist_commands_count_min_sketch_QUERY from '@redis/bloom/dist/commands/count-min-sketch/QUERY';
|
|
38
|
-
import * as _redis_bloom_dist_commands_count_min_sketch_MERGE from '@redis/bloom/dist/commands/count-min-sketch/MERGE';
|
|
39
|
-
import * as _redis_bloom_dist_commands_count_min_sketch_INITBYPROB from '@redis/bloom/dist/commands/count-min-sketch/INITBYPROB';
|
|
40
|
-
import * as _redis_bloom_dist_commands_count_min_sketch_INITBYDIM from '@redis/bloom/dist/commands/count-min-sketch/INITBYDIM';
|
|
41
|
-
import * as _redis_bloom_dist_commands_count_min_sketch_INFO from '@redis/bloom/dist/commands/count-min-sketch/INFO';
|
|
42
|
-
import * as _redis_bloom_dist_commands_count_min_sketch_INCRBY from '@redis/bloom/dist/commands/count-min-sketch/INCRBY';
|
|
43
|
-
import * as _redis_bloom_dist_commands_bloom_SCANDUMP from '@redis/bloom/dist/commands/bloom/SCANDUMP';
|
|
44
|
-
import * as _redis_bloom_dist_commands_bloom_RESERVE from '@redis/bloom/dist/commands/bloom/RESERVE';
|
|
45
|
-
import * as _redis_bloom_dist_commands_bloom_MEXISTS from '@redis/bloom/dist/commands/bloom/MEXISTS';
|
|
46
|
-
import * as _redis_bloom_dist_commands_bloom_MADD from '@redis/bloom/dist/commands/bloom/MADD';
|
|
47
|
-
import * as _redis_bloom_dist_commands_bloom_LOADCHUNK from '@redis/bloom/dist/commands/bloom/LOADCHUNK';
|
|
48
|
-
import * as _redis_bloom_dist_commands_bloom_INSERT from '@redis/bloom/dist/commands/bloom/INSERT';
|
|
49
|
-
import * as _redis_bloom_dist_commands_bloom_INFO from '@redis/bloom/dist/commands/bloom/INFO';
|
|
50
|
-
import * as _redis_bloom_dist_commands_bloom_EXISTS from '@redis/bloom/dist/commands/bloom/EXISTS';
|
|
51
|
-
import * as _redis_bloom_dist_commands_bloom_CARD from '@redis/bloom/dist/commands/bloom/CARD';
|
|
52
|
-
import * as _redis_bloom_dist_commands_bloom_ADD from '@redis/bloom/dist/commands/bloom/ADD';
|
|
53
|
-
import * as _redis_time_series_dist_commands_MREVRANGE_WITHLABELS from '@redis/time-series/dist/commands/MREVRANGE_WITHLABELS';
|
|
54
|
-
import * as _redis_time_series_dist_commands_MREVRANGE from '@redis/time-series/dist/commands/MREVRANGE';
|
|
55
|
-
import * as _redis_time_series_dist_commands_MRANGE_WITHLABELS from '@redis/time-series/dist/commands/MRANGE_WITHLABELS';
|
|
56
|
-
import * as _redis_time_series_dist_commands_MRANGE from '@redis/time-series/dist/commands/MRANGE';
|
|
57
|
-
import * as _redis_time_series_dist_commands_REVRANGE from '@redis/time-series/dist/commands/REVRANGE';
|
|
58
|
-
import * as _redis_time_series_dist_commands_RANGE from '@redis/time-series/dist/commands/RANGE';
|
|
59
|
-
import * as _redis_time_series_dist_commands_QUERYINDEX from '@redis/time-series/dist/commands/QUERYINDEX';
|
|
60
|
-
import * as _redis_time_series_dist_commands_MGET_WITHLABELS from '@redis/time-series/dist/commands/MGET_WITHLABELS';
|
|
61
|
-
import * as _redis_time_series_dist_commands_MGET from '@redis/time-series/dist/commands/MGET';
|
|
62
|
-
import * as _redis_time_series_dist_commands_MADD from '@redis/time-series/dist/commands/MADD';
|
|
63
|
-
import * as _redis_time_series_dist_commands_INFO from '@redis/time-series/dist/commands/INFO';
|
|
64
|
-
import * as _redis_time_series_dist_commands_INFO_DEBUG from '@redis/time-series/dist/commands/INFO_DEBUG';
|
|
65
|
-
import * as _redis_time_series_dist_commands_INCRBY from '@redis/time-series/dist/commands/INCRBY';
|
|
66
|
-
import * as _redis_time_series_dist_commands_GET from '@redis/time-series/dist/commands/GET';
|
|
67
|
-
import * as _redis_time_series_dist_commands_DELETERULE from '@redis/time-series/dist/commands/DELETERULE';
|
|
68
|
-
import * as _redis_time_series_dist_commands_DEL from '@redis/time-series/dist/commands/DEL';
|
|
69
|
-
import * as _redis_time_series_dist_commands_DECRBY from '@redis/time-series/dist/commands/DECRBY';
|
|
70
|
-
import * as _redis_time_series_dist_commands_CREATERULE from '@redis/time-series/dist/commands/CREATERULE';
|
|
71
|
-
import * as _redis_time_series_dist_commands_CREATE from '@redis/time-series/dist/commands/CREATE';
|
|
72
|
-
import * as _redis_time_series_dist_commands_ALTER from '@redis/time-series/dist/commands/ALTER';
|
|
73
|
-
import * as _redis_time_series_dist_commands_ADD from '@redis/time-series/dist/commands/ADD';
|
|
74
|
-
import * as _redis_search_dist_commands_TAGVALS from '@redis/search/dist/commands/TAGVALS';
|
|
75
|
-
import * as _redis_search_dist_commands_SYNUPDATE from '@redis/search/dist/commands/SYNUPDATE';
|
|
76
|
-
import * as _redis_search_dist_commands_SYNDUMP from '@redis/search/dist/commands/SYNDUMP';
|
|
77
|
-
import * as _redis_search_dist_commands_SUGLEN from '@redis/search/dist/commands/SUGLEN';
|
|
78
|
-
import * as _redis_search_dist_commands_SUGGET from '@redis/search/dist/commands/SUGGET';
|
|
79
|
-
import * as _redis_search_dist_commands_SUGGET_WITHSCORES from '@redis/search/dist/commands/SUGGET_WITHSCORES';
|
|
80
|
-
import * as _redis_search_dist_commands_SUGGET_WITHSCORES_WITHPAYLOADS from '@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS';
|
|
81
|
-
import * as _redis_search_dist_commands_SUGGET_WITHPAYLOADS from '@redis/search/dist/commands/SUGGET_WITHPAYLOADS';
|
|
82
|
-
import * as _redis_search_dist_commands_SUGDEL from '@redis/search/dist/commands/SUGDEL';
|
|
83
|
-
import * as _redis_search_dist_commands_SUGADD from '@redis/search/dist/commands/SUGADD';
|
|
84
|
-
import * as _redis_search_dist_commands_SPELLCHECK from '@redis/search/dist/commands/SPELLCHECK';
|
|
85
|
-
import * as _redis_search_dist_commands_SEARCH_NOCONTENT from '@redis/search/dist/commands/SEARCH_NOCONTENT';
|
|
86
|
-
import * as _redis_search_dist_commands_SEARCH from '@redis/search/dist/commands/SEARCH';
|
|
87
|
-
import * as _redis_search_dist_commands_PROFILE_AGGREGATE from '@redis/search/dist/commands/PROFILE_AGGREGATE';
|
|
88
|
-
import * as _redis_search_dist_commands_PROFILE_SEARCH from '@redis/search/dist/commands/PROFILE_SEARCH';
|
|
89
|
-
import * as _redis_search_dist_commands_INFO from '@redis/search/dist/commands/INFO';
|
|
90
|
-
import * as _redis_search_dist_commands_EXPLAINCLI from '@redis/search/dist/commands/EXPLAINCLI';
|
|
91
|
-
import * as _redis_search_dist_commands_EXPLAIN from '@redis/search/dist/commands/EXPLAIN';
|
|
92
|
-
import * as _redis_search_dist_commands_DROPINDEX from '@redis/search/dist/commands/DROPINDEX';
|
|
93
|
-
import * as _redis_search_dist_commands_DICTDUMP from '@redis/search/dist/commands/DICTDUMP';
|
|
94
|
-
import * as _redis_search_dist_commands_DICTDEL from '@redis/search/dist/commands/DICTDEL';
|
|
95
|
-
import * as _redis_search_dist_commands_DICTADD from '@redis/search/dist/commands/DICTADD';
|
|
96
|
-
import * as _redis_search_dist_commands_CURSOR_READ from '@redis/search/dist/commands/CURSOR_READ';
|
|
97
|
-
import * as _redis_search_dist_commands_CURSOR_DEL from '@redis/search/dist/commands/CURSOR_DEL';
|
|
98
|
-
import * as _redis_search_dist_commands_CREATE from '@redis/search/dist/commands/CREATE';
|
|
99
|
-
import * as _redis_search_dist_commands_CONFIG_SET from '@redis/search/dist/commands/CONFIG_SET';
|
|
100
|
-
import * as _redis_search_dist_commands_CONFIG_GET from '@redis/search/dist/commands/CONFIG_GET';
|
|
101
|
-
import * as _redis_search_dist_commands_ALIASUPDATE from '@redis/search/dist/commands/ALIASUPDATE';
|
|
102
|
-
import * as _redis_search_dist_commands_ALIASDEL from '@redis/search/dist/commands/ALIASDEL';
|
|
103
|
-
import * as _redis_search_dist_commands_ALIASADD from '@redis/search/dist/commands/ALIASADD';
|
|
104
|
-
import * as _redis_search_dist_commands_AGGREGATE from '@redis/search/dist/commands/AGGREGATE';
|
|
105
|
-
import * as _redis_search_dist_commands_AGGREGATE_WITHCURSOR from '@redis/search/dist/commands/AGGREGATE_WITHCURSOR';
|
|
106
|
-
import * as _redis_search_dist_commands_ALTER from '@redis/search/dist/commands/ALTER';
|
|
107
|
-
import * as _redis_search_dist_commands__LIST from '@redis/search/dist/commands/_LIST';
|
|
108
|
-
import * as _redis_json_dist_commands_TYPE from '@redis/json/dist/commands/TYPE';
|
|
109
|
-
import * as _redis_json_dist_commands_STRLEN from '@redis/json/dist/commands/STRLEN';
|
|
110
|
-
import * as _redis_json_dist_commands_STRAPPEND from '@redis/json/dist/commands/STRAPPEND';
|
|
111
|
-
import * as _redis_json_dist_commands_SET from '@redis/json/dist/commands/SET';
|
|
112
|
-
import * as _redis_json_dist_commands_RESP from '@redis/json/dist/commands/RESP';
|
|
113
|
-
import * as _redis_json_dist_commands_OBJLEN from '@redis/json/dist/commands/OBJLEN';
|
|
114
|
-
import * as _redis_json_dist_commands_OBJKEYS from '@redis/json/dist/commands/OBJKEYS';
|
|
115
|
-
import * as _redis_json_dist_commands_NUMMULTBY from '@redis/json/dist/commands/NUMMULTBY';
|
|
116
|
-
import * as _redis_json_dist_commands_NUMINCRBY from '@redis/json/dist/commands/NUMINCRBY';
|
|
117
|
-
import * as _redis_json_dist_commands_MSET from '@redis/json/dist/commands/MSET';
|
|
118
|
-
import * as _redis_json_dist_commands_MGET from '@redis/json/dist/commands/MGET';
|
|
119
|
-
import * as _redis_json_dist_commands_MERGE from '@redis/json/dist/commands/MERGE';
|
|
120
|
-
import * as _redis_json_dist_commands_GET from '@redis/json/dist/commands/GET';
|
|
121
|
-
import * as _redis_json_dist_commands_FORGET from '@redis/json/dist/commands/FORGET';
|
|
122
|
-
import * as _redis_json_dist_commands_DEL from '@redis/json/dist/commands/DEL';
|
|
123
|
-
import * as _redis_json_dist_commands_DEBUG_MEMORY from '@redis/json/dist/commands/DEBUG_MEMORY';
|
|
124
|
-
import * as _redis_json_dist_commands_ARRTRIM from '@redis/json/dist/commands/ARRTRIM';
|
|
125
|
-
import * as _redis_json_dist_commands_ARRPOP from '@redis/json/dist/commands/ARRPOP';
|
|
126
|
-
import * as _redis_json_dist_commands_ARRLEN from '@redis/json/dist/commands/ARRLEN';
|
|
127
|
-
import * as _redis_json_dist_commands_ARRINSERT from '@redis/json/dist/commands/ARRINSERT';
|
|
128
|
-
import * as _redis_json_dist_commands_ARRINDEX from '@redis/json/dist/commands/ARRINDEX';
|
|
129
|
-
import * as _redis_json_dist_commands_ARRAPPEND from '@redis/json/dist/commands/ARRAPPEND';
|
|
130
|
-
import * as _redis_graph_dist_commands_SLOWLOG from '@redis/graph/dist/commands/SLOWLOG';
|
|
131
|
-
import * as _redis_graph_dist_commands_RO_QUERY from '@redis/graph/dist/commands/RO_QUERY';
|
|
132
|
-
import * as _redis_graph_dist_commands_QUERY from '@redis/graph/dist/commands/QUERY';
|
|
133
|
-
import * as _redis_graph_dist_commands_PROFILE from '@redis/graph/dist/commands/PROFILE';
|
|
134
|
-
import * as _redis_graph_dist_commands_LIST from '@redis/graph/dist/commands/LIST';
|
|
135
|
-
import * as _redis_graph_dist_commands_EXPLAIN from '@redis/graph/dist/commands/EXPLAIN';
|
|
136
|
-
import * as _redis_graph_dist_commands_DELETE from '@redis/graph/dist/commands/DELETE';
|
|
137
|
-
import * as _redis_graph_dist_commands_CONFIG_SET from '@redis/graph/dist/commands/CONFIG_SET';
|
|
138
|
-
import * as _redis_graph_dist_commands_CONFIG_GET from '@redis/graph/dist/commands/CONFIG_GET';
|
|
139
|
-
import { RedisClientType } from 'redis';
|
|
140
1
|
import * as mongodb from 'mongodb';
|
|
141
|
-
import {
|
|
2
|
+
import { ObjectId, ClientSession } from 'mongodb';
|
|
142
3
|
import * as bson from 'bson';
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
readonly statusCode: number;
|
|
146
|
-
readonly isOperational: boolean;
|
|
147
|
-
constructor(message: string, statusCode: number, isOperational?: boolean);
|
|
148
|
-
}
|
|
149
|
-
declare class BadRequestError extends AppError {
|
|
150
|
-
constructor(message?: string);
|
|
151
|
-
}
|
|
152
|
-
declare class UnauthorizedError extends AppError {
|
|
153
|
-
constructor(message?: string);
|
|
154
|
-
}
|
|
155
|
-
declare class NotFoundError extends AppError {
|
|
156
|
-
constructor(message?: string);
|
|
157
|
-
}
|
|
158
|
-
declare class InternalServerError extends AppError {
|
|
159
|
-
constructor(message?: string);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
declare const errorHandler: (err: AppError, req: Request, res: Response, next: NextFunction) => void;
|
|
163
|
-
|
|
164
|
-
declare function authMiddleware(access_token_secret?: string): (req: Request, res: Response, next: NextFunction) => void;
|
|
165
|
-
|
|
166
|
-
declare function hashPassword(password: string): Promise<string>;
|
|
167
|
-
|
|
168
|
-
declare function comparePassword(password: string, hashedPassword: string): Promise<boolean>;
|
|
169
|
-
|
|
170
|
-
declare const logger: winston.Logger;
|
|
171
|
-
|
|
172
|
-
interface MailerConfig {
|
|
173
|
-
email: string;
|
|
174
|
-
password: string;
|
|
175
|
-
host: string;
|
|
176
|
-
port: number;
|
|
177
|
-
secure: boolean;
|
|
178
|
-
}
|
|
179
|
-
declare class useMailer {
|
|
180
|
-
private config;
|
|
181
|
-
private transporter;
|
|
182
|
-
constructor(config: MailerConfig);
|
|
183
|
-
sendMail({ to, subject, text, html, sender, }: {
|
|
184
|
-
sender?: string;
|
|
185
|
-
to: string;
|
|
186
|
-
subject: string;
|
|
187
|
-
text?: string;
|
|
188
|
-
html?: string;
|
|
189
|
-
}): Promise<string>;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
declare function generateToken({ metadata, secret, options }?: {
|
|
193
|
-
metadata?: Record<string, unknown> | undefined;
|
|
194
|
-
secret: string;
|
|
195
|
-
options?: jwt.SignOptions | undefined;
|
|
196
|
-
}): string;
|
|
197
|
-
|
|
198
|
-
declare function paginate(items: any[], page: number | undefined, limit: number | undefined, length: number): {
|
|
199
|
-
items: any[];
|
|
200
|
-
pages: number;
|
|
201
|
-
pageRange: string;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
declare function initRedisClient(): Promise<void>;
|
|
205
|
-
declare function useRedisClient(): RedisClientType<{
|
|
206
|
-
graph: {
|
|
207
|
-
CONFIG_GET: typeof _redis_graph_dist_commands_CONFIG_GET;
|
|
208
|
-
configGet: typeof _redis_graph_dist_commands_CONFIG_GET;
|
|
209
|
-
CONFIG_SET: typeof _redis_graph_dist_commands_CONFIG_SET;
|
|
210
|
-
configSet: typeof _redis_graph_dist_commands_CONFIG_SET;
|
|
211
|
-
DELETE: typeof _redis_graph_dist_commands_DELETE;
|
|
212
|
-
delete: typeof _redis_graph_dist_commands_DELETE;
|
|
213
|
-
EXPLAIN: typeof _redis_graph_dist_commands_EXPLAIN;
|
|
214
|
-
explain: typeof _redis_graph_dist_commands_EXPLAIN;
|
|
215
|
-
LIST: typeof _redis_graph_dist_commands_LIST;
|
|
216
|
-
list: typeof _redis_graph_dist_commands_LIST;
|
|
217
|
-
PROFILE: typeof _redis_graph_dist_commands_PROFILE;
|
|
218
|
-
profile: typeof _redis_graph_dist_commands_PROFILE;
|
|
219
|
-
QUERY: typeof _redis_graph_dist_commands_QUERY;
|
|
220
|
-
query: typeof _redis_graph_dist_commands_QUERY;
|
|
221
|
-
RO_QUERY: typeof _redis_graph_dist_commands_RO_QUERY;
|
|
222
|
-
roQuery: typeof _redis_graph_dist_commands_RO_QUERY;
|
|
223
|
-
SLOWLOG: typeof _redis_graph_dist_commands_SLOWLOG;
|
|
224
|
-
slowLog: typeof _redis_graph_dist_commands_SLOWLOG;
|
|
225
|
-
};
|
|
226
|
-
json: {
|
|
227
|
-
ARRAPPEND: typeof _redis_json_dist_commands_ARRAPPEND;
|
|
228
|
-
arrAppend: typeof _redis_json_dist_commands_ARRAPPEND;
|
|
229
|
-
ARRINDEX: typeof _redis_json_dist_commands_ARRINDEX;
|
|
230
|
-
arrIndex: typeof _redis_json_dist_commands_ARRINDEX;
|
|
231
|
-
ARRINSERT: typeof _redis_json_dist_commands_ARRINSERT;
|
|
232
|
-
arrInsert: typeof _redis_json_dist_commands_ARRINSERT;
|
|
233
|
-
ARRLEN: typeof _redis_json_dist_commands_ARRLEN;
|
|
234
|
-
arrLen: typeof _redis_json_dist_commands_ARRLEN;
|
|
235
|
-
ARRPOP: typeof _redis_json_dist_commands_ARRPOP;
|
|
236
|
-
arrPop: typeof _redis_json_dist_commands_ARRPOP;
|
|
237
|
-
ARRTRIM: typeof _redis_json_dist_commands_ARRTRIM;
|
|
238
|
-
arrTrim: typeof _redis_json_dist_commands_ARRTRIM;
|
|
239
|
-
DEBUG_MEMORY: typeof _redis_json_dist_commands_DEBUG_MEMORY;
|
|
240
|
-
debugMemory: typeof _redis_json_dist_commands_DEBUG_MEMORY;
|
|
241
|
-
DEL: typeof _redis_json_dist_commands_DEL;
|
|
242
|
-
del: typeof _redis_json_dist_commands_DEL;
|
|
243
|
-
FORGET: typeof _redis_json_dist_commands_FORGET;
|
|
244
|
-
forget: typeof _redis_json_dist_commands_FORGET;
|
|
245
|
-
GET: typeof _redis_json_dist_commands_GET;
|
|
246
|
-
get: typeof _redis_json_dist_commands_GET;
|
|
247
|
-
MERGE: typeof _redis_json_dist_commands_MERGE;
|
|
248
|
-
merge: typeof _redis_json_dist_commands_MERGE;
|
|
249
|
-
MGET: typeof _redis_json_dist_commands_MGET;
|
|
250
|
-
mGet: typeof _redis_json_dist_commands_MGET;
|
|
251
|
-
MSET: typeof _redis_json_dist_commands_MSET;
|
|
252
|
-
mSet: typeof _redis_json_dist_commands_MSET;
|
|
253
|
-
NUMINCRBY: typeof _redis_json_dist_commands_NUMINCRBY;
|
|
254
|
-
numIncrBy: typeof _redis_json_dist_commands_NUMINCRBY;
|
|
255
|
-
NUMMULTBY: typeof _redis_json_dist_commands_NUMMULTBY;
|
|
256
|
-
numMultBy: typeof _redis_json_dist_commands_NUMMULTBY;
|
|
257
|
-
OBJKEYS: typeof _redis_json_dist_commands_OBJKEYS;
|
|
258
|
-
objKeys: typeof _redis_json_dist_commands_OBJKEYS;
|
|
259
|
-
OBJLEN: typeof _redis_json_dist_commands_OBJLEN;
|
|
260
|
-
objLen: typeof _redis_json_dist_commands_OBJLEN;
|
|
261
|
-
RESP: typeof _redis_json_dist_commands_RESP;
|
|
262
|
-
resp: typeof _redis_json_dist_commands_RESP;
|
|
263
|
-
SET: typeof _redis_json_dist_commands_SET;
|
|
264
|
-
set: typeof _redis_json_dist_commands_SET;
|
|
265
|
-
STRAPPEND: typeof _redis_json_dist_commands_STRAPPEND;
|
|
266
|
-
strAppend: typeof _redis_json_dist_commands_STRAPPEND;
|
|
267
|
-
STRLEN: typeof _redis_json_dist_commands_STRLEN;
|
|
268
|
-
strLen: typeof _redis_json_dist_commands_STRLEN;
|
|
269
|
-
TYPE: typeof _redis_json_dist_commands_TYPE;
|
|
270
|
-
type: typeof _redis_json_dist_commands_TYPE;
|
|
271
|
-
};
|
|
272
|
-
ft: {
|
|
273
|
-
_LIST: typeof _redis_search_dist_commands__LIST;
|
|
274
|
-
_list: typeof _redis_search_dist_commands__LIST;
|
|
275
|
-
ALTER: typeof _redis_search_dist_commands_ALTER;
|
|
276
|
-
alter: typeof _redis_search_dist_commands_ALTER;
|
|
277
|
-
AGGREGATE_WITHCURSOR: typeof _redis_search_dist_commands_AGGREGATE_WITHCURSOR;
|
|
278
|
-
aggregateWithCursor: typeof _redis_search_dist_commands_AGGREGATE_WITHCURSOR;
|
|
279
|
-
AGGREGATE: typeof _redis_search_dist_commands_AGGREGATE;
|
|
280
|
-
aggregate: typeof _redis_search_dist_commands_AGGREGATE;
|
|
281
|
-
ALIASADD: typeof _redis_search_dist_commands_ALIASADD;
|
|
282
|
-
aliasAdd: typeof _redis_search_dist_commands_ALIASADD;
|
|
283
|
-
ALIASDEL: typeof _redis_search_dist_commands_ALIASDEL;
|
|
284
|
-
aliasDel: typeof _redis_search_dist_commands_ALIASDEL;
|
|
285
|
-
ALIASUPDATE: typeof _redis_search_dist_commands_ALIASUPDATE;
|
|
286
|
-
aliasUpdate: typeof _redis_search_dist_commands_ALIASUPDATE;
|
|
287
|
-
CONFIG_GET: typeof _redis_search_dist_commands_CONFIG_GET;
|
|
288
|
-
configGet: typeof _redis_search_dist_commands_CONFIG_GET;
|
|
289
|
-
CONFIG_SET: typeof _redis_search_dist_commands_CONFIG_SET;
|
|
290
|
-
configSet: typeof _redis_search_dist_commands_CONFIG_SET;
|
|
291
|
-
CREATE: typeof _redis_search_dist_commands_CREATE;
|
|
292
|
-
create: typeof _redis_search_dist_commands_CREATE;
|
|
293
|
-
CURSOR_DEL: typeof _redis_search_dist_commands_CURSOR_DEL;
|
|
294
|
-
cursorDel: typeof _redis_search_dist_commands_CURSOR_DEL;
|
|
295
|
-
CURSOR_READ: typeof _redis_search_dist_commands_CURSOR_READ;
|
|
296
|
-
cursorRead: typeof _redis_search_dist_commands_CURSOR_READ;
|
|
297
|
-
DICTADD: typeof _redis_search_dist_commands_DICTADD;
|
|
298
|
-
dictAdd: typeof _redis_search_dist_commands_DICTADD;
|
|
299
|
-
DICTDEL: typeof _redis_search_dist_commands_DICTDEL;
|
|
300
|
-
dictDel: typeof _redis_search_dist_commands_DICTDEL;
|
|
301
|
-
DICTDUMP: typeof _redis_search_dist_commands_DICTDUMP;
|
|
302
|
-
dictDump: typeof _redis_search_dist_commands_DICTDUMP;
|
|
303
|
-
DROPINDEX: typeof _redis_search_dist_commands_DROPINDEX;
|
|
304
|
-
dropIndex: typeof _redis_search_dist_commands_DROPINDEX;
|
|
305
|
-
EXPLAIN: typeof _redis_search_dist_commands_EXPLAIN;
|
|
306
|
-
explain: typeof _redis_search_dist_commands_EXPLAIN;
|
|
307
|
-
EXPLAINCLI: typeof _redis_search_dist_commands_EXPLAINCLI;
|
|
308
|
-
explainCli: typeof _redis_search_dist_commands_EXPLAINCLI;
|
|
309
|
-
INFO: typeof _redis_search_dist_commands_INFO;
|
|
310
|
-
info: typeof _redis_search_dist_commands_INFO;
|
|
311
|
-
PROFILESEARCH: typeof _redis_search_dist_commands_PROFILE_SEARCH;
|
|
312
|
-
profileSearch: typeof _redis_search_dist_commands_PROFILE_SEARCH;
|
|
313
|
-
PROFILEAGGREGATE: typeof _redis_search_dist_commands_PROFILE_AGGREGATE;
|
|
314
|
-
profileAggregate: typeof _redis_search_dist_commands_PROFILE_AGGREGATE;
|
|
315
|
-
SEARCH: typeof _redis_search_dist_commands_SEARCH;
|
|
316
|
-
search: typeof _redis_search_dist_commands_SEARCH;
|
|
317
|
-
SEARCH_NOCONTENT: typeof _redis_search_dist_commands_SEARCH_NOCONTENT;
|
|
318
|
-
searchNoContent: typeof _redis_search_dist_commands_SEARCH_NOCONTENT;
|
|
319
|
-
SPELLCHECK: typeof _redis_search_dist_commands_SPELLCHECK;
|
|
320
|
-
spellCheck: typeof _redis_search_dist_commands_SPELLCHECK;
|
|
321
|
-
SUGADD: typeof _redis_search_dist_commands_SUGADD;
|
|
322
|
-
sugAdd: typeof _redis_search_dist_commands_SUGADD;
|
|
323
|
-
SUGDEL: typeof _redis_search_dist_commands_SUGDEL;
|
|
324
|
-
sugDel: typeof _redis_search_dist_commands_SUGDEL;
|
|
325
|
-
SUGGET_WITHPAYLOADS: typeof _redis_search_dist_commands_SUGGET_WITHPAYLOADS;
|
|
326
|
-
sugGetWithPayloads: typeof _redis_search_dist_commands_SUGGET_WITHPAYLOADS;
|
|
327
|
-
SUGGET_WITHSCORES_WITHPAYLOADS: typeof _redis_search_dist_commands_SUGGET_WITHSCORES_WITHPAYLOADS;
|
|
328
|
-
sugGetWithScoresWithPayloads: typeof _redis_search_dist_commands_SUGGET_WITHSCORES_WITHPAYLOADS;
|
|
329
|
-
SUGGET_WITHSCORES: typeof _redis_search_dist_commands_SUGGET_WITHSCORES;
|
|
330
|
-
sugGetWithScores: typeof _redis_search_dist_commands_SUGGET_WITHSCORES;
|
|
331
|
-
SUGGET: typeof _redis_search_dist_commands_SUGGET;
|
|
332
|
-
sugGet: typeof _redis_search_dist_commands_SUGGET;
|
|
333
|
-
SUGLEN: typeof _redis_search_dist_commands_SUGLEN;
|
|
334
|
-
sugLen: typeof _redis_search_dist_commands_SUGLEN;
|
|
335
|
-
SYNDUMP: typeof _redis_search_dist_commands_SYNDUMP;
|
|
336
|
-
synDump: typeof _redis_search_dist_commands_SYNDUMP;
|
|
337
|
-
SYNUPDATE: typeof _redis_search_dist_commands_SYNUPDATE;
|
|
338
|
-
synUpdate: typeof _redis_search_dist_commands_SYNUPDATE;
|
|
339
|
-
TAGVALS: typeof _redis_search_dist_commands_TAGVALS;
|
|
340
|
-
tagVals: typeof _redis_search_dist_commands_TAGVALS;
|
|
341
|
-
};
|
|
342
|
-
ts: {
|
|
343
|
-
ADD: typeof _redis_time_series_dist_commands_ADD;
|
|
344
|
-
add: typeof _redis_time_series_dist_commands_ADD;
|
|
345
|
-
ALTER: typeof _redis_time_series_dist_commands_ALTER;
|
|
346
|
-
alter: typeof _redis_time_series_dist_commands_ALTER;
|
|
347
|
-
CREATE: typeof _redis_time_series_dist_commands_CREATE;
|
|
348
|
-
create: typeof _redis_time_series_dist_commands_CREATE;
|
|
349
|
-
CREATERULE: typeof _redis_time_series_dist_commands_CREATERULE;
|
|
350
|
-
createRule: typeof _redis_time_series_dist_commands_CREATERULE;
|
|
351
|
-
DECRBY: typeof _redis_time_series_dist_commands_DECRBY;
|
|
352
|
-
decrBy: typeof _redis_time_series_dist_commands_DECRBY;
|
|
353
|
-
DEL: typeof _redis_time_series_dist_commands_DEL;
|
|
354
|
-
del: typeof _redis_time_series_dist_commands_DEL;
|
|
355
|
-
DELETERULE: typeof _redis_time_series_dist_commands_DELETERULE;
|
|
356
|
-
deleteRule: typeof _redis_time_series_dist_commands_DELETERULE;
|
|
357
|
-
GET: typeof _redis_time_series_dist_commands_GET;
|
|
358
|
-
get: typeof _redis_time_series_dist_commands_GET;
|
|
359
|
-
INCRBY: typeof _redis_time_series_dist_commands_INCRBY;
|
|
360
|
-
incrBy: typeof _redis_time_series_dist_commands_INCRBY;
|
|
361
|
-
INFO_DEBUG: typeof _redis_time_series_dist_commands_INFO_DEBUG;
|
|
362
|
-
infoDebug: typeof _redis_time_series_dist_commands_INFO_DEBUG;
|
|
363
|
-
INFO: typeof _redis_time_series_dist_commands_INFO;
|
|
364
|
-
info: typeof _redis_time_series_dist_commands_INFO;
|
|
365
|
-
MADD: typeof _redis_time_series_dist_commands_MADD;
|
|
366
|
-
mAdd: typeof _redis_time_series_dist_commands_MADD;
|
|
367
|
-
MGET: typeof _redis_time_series_dist_commands_MGET;
|
|
368
|
-
mGet: typeof _redis_time_series_dist_commands_MGET;
|
|
369
|
-
MGET_WITHLABELS: typeof _redis_time_series_dist_commands_MGET_WITHLABELS;
|
|
370
|
-
mGetWithLabels: typeof _redis_time_series_dist_commands_MGET_WITHLABELS;
|
|
371
|
-
QUERYINDEX: typeof _redis_time_series_dist_commands_QUERYINDEX;
|
|
372
|
-
queryIndex: typeof _redis_time_series_dist_commands_QUERYINDEX;
|
|
373
|
-
RANGE: typeof _redis_time_series_dist_commands_RANGE;
|
|
374
|
-
range: typeof _redis_time_series_dist_commands_RANGE;
|
|
375
|
-
REVRANGE: typeof _redis_time_series_dist_commands_REVRANGE;
|
|
376
|
-
revRange: typeof _redis_time_series_dist_commands_REVRANGE;
|
|
377
|
-
MRANGE: typeof _redis_time_series_dist_commands_MRANGE;
|
|
378
|
-
mRange: typeof _redis_time_series_dist_commands_MRANGE;
|
|
379
|
-
MRANGE_WITHLABELS: typeof _redis_time_series_dist_commands_MRANGE_WITHLABELS;
|
|
380
|
-
mRangeWithLabels: typeof _redis_time_series_dist_commands_MRANGE_WITHLABELS;
|
|
381
|
-
MREVRANGE: typeof _redis_time_series_dist_commands_MREVRANGE;
|
|
382
|
-
mRevRange: typeof _redis_time_series_dist_commands_MREVRANGE;
|
|
383
|
-
MREVRANGE_WITHLABELS: typeof _redis_time_series_dist_commands_MREVRANGE_WITHLABELS;
|
|
384
|
-
mRevRangeWithLabels: typeof _redis_time_series_dist_commands_MREVRANGE_WITHLABELS;
|
|
385
|
-
};
|
|
386
|
-
bf: {
|
|
387
|
-
ADD: typeof _redis_bloom_dist_commands_bloom_ADD;
|
|
388
|
-
add: typeof _redis_bloom_dist_commands_bloom_ADD;
|
|
389
|
-
CARD: typeof _redis_bloom_dist_commands_bloom_CARD;
|
|
390
|
-
card: typeof _redis_bloom_dist_commands_bloom_CARD;
|
|
391
|
-
EXISTS: typeof _redis_bloom_dist_commands_bloom_EXISTS;
|
|
392
|
-
exists: typeof _redis_bloom_dist_commands_bloom_EXISTS;
|
|
393
|
-
INFO: typeof _redis_bloom_dist_commands_bloom_INFO;
|
|
394
|
-
info: typeof _redis_bloom_dist_commands_bloom_INFO;
|
|
395
|
-
INSERT: typeof _redis_bloom_dist_commands_bloom_INSERT;
|
|
396
|
-
insert: typeof _redis_bloom_dist_commands_bloom_INSERT;
|
|
397
|
-
LOADCHUNK: typeof _redis_bloom_dist_commands_bloom_LOADCHUNK;
|
|
398
|
-
loadChunk: typeof _redis_bloom_dist_commands_bloom_LOADCHUNK;
|
|
399
|
-
MADD: typeof _redis_bloom_dist_commands_bloom_MADD;
|
|
400
|
-
mAdd: typeof _redis_bloom_dist_commands_bloom_MADD;
|
|
401
|
-
MEXISTS: typeof _redis_bloom_dist_commands_bloom_MEXISTS;
|
|
402
|
-
mExists: typeof _redis_bloom_dist_commands_bloom_MEXISTS;
|
|
403
|
-
RESERVE: typeof _redis_bloom_dist_commands_bloom_RESERVE;
|
|
404
|
-
reserve: typeof _redis_bloom_dist_commands_bloom_RESERVE;
|
|
405
|
-
SCANDUMP: typeof _redis_bloom_dist_commands_bloom_SCANDUMP;
|
|
406
|
-
scanDump: typeof _redis_bloom_dist_commands_bloom_SCANDUMP;
|
|
407
|
-
};
|
|
408
|
-
cms: {
|
|
409
|
-
INCRBY: typeof _redis_bloom_dist_commands_count_min_sketch_INCRBY;
|
|
410
|
-
incrBy: typeof _redis_bloom_dist_commands_count_min_sketch_INCRBY;
|
|
411
|
-
INFO: typeof _redis_bloom_dist_commands_count_min_sketch_INFO;
|
|
412
|
-
info: typeof _redis_bloom_dist_commands_count_min_sketch_INFO;
|
|
413
|
-
INITBYDIM: typeof _redis_bloom_dist_commands_count_min_sketch_INITBYDIM;
|
|
414
|
-
initByDim: typeof _redis_bloom_dist_commands_count_min_sketch_INITBYDIM;
|
|
415
|
-
INITBYPROB: typeof _redis_bloom_dist_commands_count_min_sketch_INITBYPROB;
|
|
416
|
-
initByProb: typeof _redis_bloom_dist_commands_count_min_sketch_INITBYPROB;
|
|
417
|
-
MERGE: typeof _redis_bloom_dist_commands_count_min_sketch_MERGE;
|
|
418
|
-
merge: typeof _redis_bloom_dist_commands_count_min_sketch_MERGE;
|
|
419
|
-
QUERY: typeof _redis_bloom_dist_commands_count_min_sketch_QUERY;
|
|
420
|
-
query: typeof _redis_bloom_dist_commands_count_min_sketch_QUERY;
|
|
421
|
-
};
|
|
422
|
-
cf: {
|
|
423
|
-
ADD: typeof _redis_bloom_dist_commands_cuckoo_ADD;
|
|
424
|
-
add: typeof _redis_bloom_dist_commands_cuckoo_ADD;
|
|
425
|
-
ADDNX: typeof _redis_bloom_dist_commands_cuckoo_ADDNX;
|
|
426
|
-
addNX: typeof _redis_bloom_dist_commands_cuckoo_ADDNX;
|
|
427
|
-
COUNT: typeof _redis_bloom_dist_commands_cuckoo_COUNT;
|
|
428
|
-
count: typeof _redis_bloom_dist_commands_cuckoo_COUNT;
|
|
429
|
-
DEL: typeof _redis_bloom_dist_commands_cuckoo_DEL;
|
|
430
|
-
del: typeof _redis_bloom_dist_commands_cuckoo_DEL;
|
|
431
|
-
EXISTS: typeof _redis_bloom_dist_commands_cuckoo_EXISTS;
|
|
432
|
-
exists: typeof _redis_bloom_dist_commands_cuckoo_EXISTS;
|
|
433
|
-
INFO: typeof _redis_bloom_dist_commands_cuckoo_INFO;
|
|
434
|
-
info: typeof _redis_bloom_dist_commands_cuckoo_INFO;
|
|
435
|
-
INSERT: typeof _redis_bloom_dist_commands_cuckoo_INSERT;
|
|
436
|
-
insert: typeof _redis_bloom_dist_commands_cuckoo_INSERT;
|
|
437
|
-
INSERTNX: typeof _redis_bloom_dist_commands_cuckoo_INSERTNX;
|
|
438
|
-
insertNX: typeof _redis_bloom_dist_commands_cuckoo_INSERTNX;
|
|
439
|
-
LOADCHUNK: typeof _redis_bloom_dist_commands_cuckoo_LOADCHUNK;
|
|
440
|
-
loadChunk: typeof _redis_bloom_dist_commands_cuckoo_LOADCHUNK;
|
|
441
|
-
RESERVE: typeof _redis_bloom_dist_commands_cuckoo_RESERVE;
|
|
442
|
-
reserve: typeof _redis_bloom_dist_commands_cuckoo_RESERVE;
|
|
443
|
-
SCANDUMP: typeof _redis_bloom_dist_commands_cuckoo_SCANDUMP;
|
|
444
|
-
scanDump: typeof _redis_bloom_dist_commands_cuckoo_SCANDUMP;
|
|
445
|
-
};
|
|
446
|
-
tDigest: {
|
|
447
|
-
ADD: typeof _redis_bloom_dist_commands_t_digest_ADD;
|
|
448
|
-
add: typeof _redis_bloom_dist_commands_t_digest_ADD;
|
|
449
|
-
BYRANK: typeof _redis_bloom_dist_commands_t_digest_BYRANK;
|
|
450
|
-
byRank: typeof _redis_bloom_dist_commands_t_digest_BYRANK;
|
|
451
|
-
BYREVRANK: typeof _redis_bloom_dist_commands_t_digest_BYREVRANK;
|
|
452
|
-
byRevRank: typeof _redis_bloom_dist_commands_t_digest_BYREVRANK;
|
|
453
|
-
CDF: typeof _redis_bloom_dist_commands_t_digest_CDF;
|
|
454
|
-
cdf: typeof _redis_bloom_dist_commands_t_digest_CDF;
|
|
455
|
-
CREATE: typeof _redis_bloom_dist_commands_t_digest_CREATE;
|
|
456
|
-
create: typeof _redis_bloom_dist_commands_t_digest_CREATE;
|
|
457
|
-
INFO: typeof _redis_bloom_dist_commands_t_digest_INFO;
|
|
458
|
-
info: typeof _redis_bloom_dist_commands_t_digest_INFO;
|
|
459
|
-
MAX: typeof _redis_bloom_dist_commands_t_digest_MAX;
|
|
460
|
-
max: typeof _redis_bloom_dist_commands_t_digest_MAX;
|
|
461
|
-
MERGE: typeof _redis_bloom_dist_commands_t_digest_MERGE;
|
|
462
|
-
merge: typeof _redis_bloom_dist_commands_t_digest_MERGE;
|
|
463
|
-
MIN: typeof _redis_bloom_dist_commands_t_digest_MIN;
|
|
464
|
-
min: typeof _redis_bloom_dist_commands_t_digest_MIN;
|
|
465
|
-
QUANTILE: typeof _redis_bloom_dist_commands_t_digest_QUANTILE;
|
|
466
|
-
quantile: typeof _redis_bloom_dist_commands_t_digest_QUANTILE;
|
|
467
|
-
RANK: typeof _redis_bloom_dist_commands_t_digest_RANK;
|
|
468
|
-
rank: typeof _redis_bloom_dist_commands_t_digest_RANK;
|
|
469
|
-
RESET: typeof _redis_bloom_dist_commands_t_digest_RESET;
|
|
470
|
-
reset: typeof _redis_bloom_dist_commands_t_digest_RESET;
|
|
471
|
-
REVRANK: typeof _redis_bloom_dist_commands_t_digest_REVRANK;
|
|
472
|
-
revRank: typeof _redis_bloom_dist_commands_t_digest_REVRANK;
|
|
473
|
-
TRIMMED_MEAN: typeof _redis_bloom_dist_commands_t_digest_TRIMMED_MEAN;
|
|
474
|
-
trimmedMean: typeof _redis_bloom_dist_commands_t_digest_TRIMMED_MEAN;
|
|
475
|
-
};
|
|
476
|
-
topK: {
|
|
477
|
-
ADD: typeof _redis_bloom_dist_commands_top_k_ADD;
|
|
478
|
-
add: typeof _redis_bloom_dist_commands_top_k_ADD;
|
|
479
|
-
COUNT: typeof _redis_bloom_dist_commands_top_k_COUNT;
|
|
480
|
-
count: typeof _redis_bloom_dist_commands_top_k_COUNT;
|
|
481
|
-
INCRBY: typeof _redis_bloom_dist_commands_top_k_INCRBY;
|
|
482
|
-
incrBy: typeof _redis_bloom_dist_commands_top_k_INCRBY;
|
|
483
|
-
INFO: typeof _redis_bloom_dist_commands_top_k_INFO;
|
|
484
|
-
info: typeof _redis_bloom_dist_commands_top_k_INFO;
|
|
485
|
-
LIST_WITHCOUNT: typeof _redis_bloom_dist_commands_top_k_LIST_WITHCOUNT;
|
|
486
|
-
listWithCount: typeof _redis_bloom_dist_commands_top_k_LIST_WITHCOUNT;
|
|
487
|
-
LIST: typeof _redis_bloom_dist_commands_top_k_LIST;
|
|
488
|
-
list: typeof _redis_bloom_dist_commands_top_k_LIST;
|
|
489
|
-
QUERY: typeof _redis_bloom_dist_commands_top_k_QUERY;
|
|
490
|
-
query: typeof _redis_bloom_dist_commands_top_k_QUERY;
|
|
491
|
-
RESERVE: typeof _redis_bloom_dist_commands_top_k_RESERVE;
|
|
492
|
-
reserve: typeof _redis_bloom_dist_commands_top_k_RESERVE;
|
|
493
|
-
};
|
|
494
|
-
}, Record<string, never>, Record<string, never>>;
|
|
495
|
-
|
|
496
|
-
declare function compileHandlebar({ context, filePath }?: {
|
|
497
|
-
context?: {} | undefined;
|
|
498
|
-
filePath?: string | undefined;
|
|
499
|
-
}): string;
|
|
500
|
-
|
|
501
|
-
declare function getDirectory(directory: string, filePath: string): string;
|
|
502
|
-
|
|
503
|
-
interface S3Config {
|
|
504
|
-
accessKeyId: string;
|
|
505
|
-
secretAccessKey: string;
|
|
506
|
-
endpoint: string;
|
|
507
|
-
region: string;
|
|
508
|
-
bucket: string;
|
|
509
|
-
}
|
|
510
|
-
declare class useS3 {
|
|
511
|
-
private config;
|
|
512
|
-
private client;
|
|
513
|
-
constructor(config: S3Config);
|
|
514
|
-
uploadObject({ key, body, metadata, contentType }: {
|
|
515
|
-
key: string;
|
|
516
|
-
body: string | Buffer;
|
|
517
|
-
metadata?: {
|
|
518
|
-
[key: string]: string;
|
|
519
|
-
};
|
|
520
|
-
contentType?: string;
|
|
521
|
-
}): Promise<string>;
|
|
522
|
-
deleteObject(key?: string): Promise<string>;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
interface AtlasConfig {
|
|
526
|
-
name?: string;
|
|
527
|
-
uri: string;
|
|
528
|
-
db: string;
|
|
529
|
-
}
|
|
530
|
-
declare class useAtlas {
|
|
531
|
-
private static client;
|
|
532
|
-
private static database;
|
|
533
|
-
static initialize(config: AtlasConfig): Promise<void>;
|
|
534
|
-
static getClient(): MongoClient | null;
|
|
535
|
-
static getDb(): Db | null;
|
|
536
|
-
static close(): Promise<void>;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
declare function prependZeros(value: number, length?: number): string;
|
|
540
|
-
|
|
541
|
-
declare function toObjectId(value: string | ObjectId): ObjectId;
|
|
4
|
+
import { Request, Response, NextFunction } from 'express';
|
|
5
|
+
import { paginate } from '@goweekdays/utils';
|
|
542
6
|
|
|
543
7
|
type TVerificationMetadata = {
|
|
544
8
|
name?: string;
|
|
545
9
|
app?: string;
|
|
546
10
|
role?: string;
|
|
11
|
+
referralCode?: string;
|
|
547
12
|
};
|
|
548
13
|
type TVerification = {
|
|
549
14
|
_id?: ObjectId;
|
|
@@ -592,12 +57,14 @@ type TKeyValuePair<K extends string | number | symbol = string, V = any> = {
|
|
|
592
57
|
};
|
|
593
58
|
|
|
594
59
|
declare function useVerificationService(): {
|
|
595
|
-
createForgetPassword: (email: string) => Promise<
|
|
60
|
+
createForgetPassword: (email: string) => Promise<string>;
|
|
596
61
|
createUserInvite: ({ email, metadata, }: {
|
|
597
62
|
email: string;
|
|
598
63
|
metadata: TKeyValuePair;
|
|
599
|
-
}) => Promise<ObjectId>;
|
|
600
|
-
verify: (id: string) => Promise<TVerification |
|
|
64
|
+
}) => Promise<bson.ObjectId>;
|
|
65
|
+
verify: (id: string) => Promise<TVerification | {
|
|
66
|
+
message: string;
|
|
67
|
+
}>;
|
|
601
68
|
getById: (id: string) => Promise<TVerification>;
|
|
602
69
|
getVerifications: ({ search, page, status, type, limit, }?: {
|
|
603
70
|
search?: string | undefined;
|
|
@@ -610,8 +77,12 @@ declare function useVerificationService(): {
|
|
|
610
77
|
pages: number;
|
|
611
78
|
pageRange: string;
|
|
612
79
|
}>;
|
|
613
|
-
cancelUserInvitation: (id:
|
|
614
|
-
updateStatusById: (_id: string
|
|
80
|
+
cancelUserInvitation: (id: string) => Promise<void>;
|
|
81
|
+
updateStatusById: (_id: string, status: string) => Promise<string>;
|
|
82
|
+
signUp: ({ email, metadata, }: {
|
|
83
|
+
email: string;
|
|
84
|
+
metadata: TKeyValuePair;
|
|
85
|
+
}) => Promise<bson.ObjectId>;
|
|
615
86
|
};
|
|
616
87
|
|
|
617
88
|
declare function useVerificationController(): {
|
|
@@ -669,9 +140,10 @@ type TUser = {
|
|
|
669
140
|
birthDay?: number;
|
|
670
141
|
birthYear?: number;
|
|
671
142
|
gender?: string;
|
|
672
|
-
type: string;
|
|
673
143
|
roles?: TUserRole[];
|
|
674
144
|
status?: string;
|
|
145
|
+
referralCode?: string;
|
|
146
|
+
referredBy?: string;
|
|
675
147
|
createdAt?: string;
|
|
676
148
|
updatedAt?: string;
|
|
677
149
|
deletedAt?: string;
|
|
@@ -689,9 +161,10 @@ declare class MUser implements TUser {
|
|
|
689
161
|
birthDay?: number;
|
|
690
162
|
birthYear?: number;
|
|
691
163
|
gender?: string;
|
|
692
|
-
type: string;
|
|
693
164
|
roles?: TUserRole[];
|
|
694
165
|
status?: string;
|
|
166
|
+
referralCode?: string;
|
|
167
|
+
referredBy?: string;
|
|
695
168
|
createdAt?: string;
|
|
696
169
|
updatedAt?: string;
|
|
697
170
|
deletedAt?: string;
|
|
@@ -741,6 +214,7 @@ declare function useUserRepo(): {
|
|
|
741
214
|
role: TUserRole;
|
|
742
215
|
}, session?: ClientSession) => Promise<void>;
|
|
743
216
|
getByEmailApp: (email: string, app: string) => Promise<TUser | null>;
|
|
217
|
+
getUserByReferralCode: (referralCode: string) => Promise<TUser | null>;
|
|
744
218
|
};
|
|
745
219
|
|
|
746
220
|
declare function useUserService(): {
|
|
@@ -786,6 +260,12 @@ declare function useUserService(): {
|
|
|
786
260
|
lastName?: string | undefined;
|
|
787
261
|
password?: string | undefined;
|
|
788
262
|
}) => Promise<bson.ObjectId>;
|
|
263
|
+
createUserBySignUp: ({ id, firstName, lastName, password, }?: {
|
|
264
|
+
id?: string | undefined;
|
|
265
|
+
firstName?: string | undefined;
|
|
266
|
+
lastName?: string | undefined;
|
|
267
|
+
password?: string | undefined;
|
|
268
|
+
}) => Promise<bson.ObjectId>;
|
|
789
269
|
};
|
|
790
270
|
|
|
791
271
|
declare function useUserController(): {
|
|
@@ -795,7 +275,7 @@ declare function useUserController(): {
|
|
|
795
275
|
updateBirthday: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
796
276
|
updateUserFieldById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
797
277
|
updateUserProfile: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
798
|
-
|
|
278
|
+
createUserByVerification: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
799
279
|
};
|
|
800
280
|
|
|
801
281
|
declare function useAuthService(): {
|
|
@@ -816,6 +296,7 @@ declare function useAuthController(): {
|
|
|
816
296
|
refreshToken: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
817
297
|
logout: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
818
298
|
resetPassword: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
299
|
+
signUp: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
819
300
|
};
|
|
820
301
|
|
|
821
302
|
type TRole = {
|
|
@@ -900,7 +381,7 @@ declare function useFileController(): {
|
|
|
900
381
|
};
|
|
901
382
|
|
|
902
383
|
declare function useRoleService(): {
|
|
903
|
-
createRole: (value: Pick<TRole, "
|
|
384
|
+
createRole: (value: Pick<TRole, "type" | "name" | "permissions">) => Promise<bson.ObjectId>;
|
|
904
385
|
getRoles: ({ search, page, limit, type, }?: {
|
|
905
386
|
search?: string | undefined;
|
|
906
387
|
page?: number | undefined;
|
|
@@ -1199,33 +680,29 @@ declare function useCapBldgActRepo(): {
|
|
|
1199
680
|
createIndex: () => Promise<void>;
|
|
1200
681
|
createTextIndex: () => Promise<void>;
|
|
1201
682
|
createCapBldgAct: (value: TCapBldgAct, session?: ClientSession) => Promise<string>;
|
|
1202
|
-
getById: (_id: string | ObjectId) => Promise<
|
|
1203
|
-
getCapBldgActs: (
|
|
1204
|
-
search?: string
|
|
1205
|
-
page?: number
|
|
1206
|
-
limit?: number
|
|
1207
|
-
sort?:
|
|
1208
|
-
status?: string
|
|
1209
|
-
}) => Promise<
|
|
1210
|
-
|
|
1211
|
-
pages: number;
|
|
1212
|
-
pageRange: string;
|
|
1213
|
-
}>;
|
|
1214
|
-
updateCapBldgActFieldById: ({ _id, field, value }?: {
|
|
683
|
+
getById: (_id: string | ObjectId) => Promise<TCapBldgAct | null>;
|
|
684
|
+
getCapBldgActs: (params?: {
|
|
685
|
+
search?: string;
|
|
686
|
+
page?: number;
|
|
687
|
+
limit?: number;
|
|
688
|
+
sort?: TKeyValuePair;
|
|
689
|
+
status?: string;
|
|
690
|
+
}) => Promise<ReturnType<typeof paginate>>;
|
|
691
|
+
updateCapBldgActFieldById: (params: {
|
|
1215
692
|
_id: string | ObjectId;
|
|
1216
693
|
field: string;
|
|
1217
694
|
value: string;
|
|
1218
695
|
}, session?: ClientSession) => Promise<string>;
|
|
1219
|
-
deleteCapBldgAct: (_id: string | ObjectId) => Promise<
|
|
1220
|
-
updateCapBldgActBasicInfo: (
|
|
696
|
+
deleteCapBldgAct: (_id: string | ObjectId) => Promise<any>;
|
|
697
|
+
updateCapBldgActBasicInfo: (params: {
|
|
1221
698
|
_id: string | ObjectId;
|
|
1222
699
|
value: TCapBldgActBasicInfo;
|
|
1223
700
|
}, session?: ClientSession) => Promise<void>;
|
|
1224
|
-
updateCapBldgActInitRevEval: (
|
|
701
|
+
updateCapBldgActInitRevEval: (params: {
|
|
1225
702
|
_id: string | ObjectId;
|
|
1226
703
|
value: TCapBldgActInitRevEval;
|
|
1227
704
|
}, session?: ClientSession) => Promise<void>;
|
|
1228
|
-
updateCapBldgActAssmtCriteria: (
|
|
705
|
+
updateCapBldgActAssmtCriteria: (params: {
|
|
1229
706
|
_id: string | ObjectId;
|
|
1230
707
|
value: TCapBldgActAssmtCriteria;
|
|
1231
708
|
}, session?: ClientSession) => Promise<void>;
|
|
@@ -1243,13 +720,13 @@ declare function useCapBldgActService(): {
|
|
|
1243
720
|
pages: number;
|
|
1244
721
|
pageRange: string;
|
|
1245
722
|
}>;
|
|
1246
|
-
getById: (id: string) => Promise<
|
|
723
|
+
getById: (id: string) => Promise<TCapBldgAct | null>;
|
|
1247
724
|
updateCapBldgActFieldById: ({ _id, field, value, }?: {
|
|
1248
725
|
_id?: string | undefined;
|
|
1249
726
|
field?: string | undefined;
|
|
1250
727
|
value?: string | undefined;
|
|
1251
728
|
}) => Promise<string>;
|
|
1252
|
-
deleteCapBldgAct: (id: string) => Promise<
|
|
729
|
+
deleteCapBldgAct: (id: string) => Promise<any>;
|
|
1253
730
|
updateCapBldgActBasicInfo: (_id: string, value: TCapBldgActBasicInfo) => Promise<void>;
|
|
1254
731
|
updateCapBldgActInitRevEval: (_id: string, value: TCapBldgActInitRevEval) => Promise<void>;
|
|
1255
732
|
updateCapBldgActAssmtCriteria: (_id: string, value: TCapBldgActAssmtCriteria) => Promise<void>;
|
|
@@ -1333,6 +810,54 @@ declare function useCommentController(): {
|
|
|
1333
810
|
getComments: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1334
811
|
};
|
|
1335
812
|
|
|
813
|
+
type TSubscription = {
|
|
814
|
+
_id?: ObjectId;
|
|
815
|
+
user: ObjectId | string;
|
|
816
|
+
subscriptionId: string;
|
|
817
|
+
status?: string;
|
|
818
|
+
createdAt?: string;
|
|
819
|
+
updatedAt?: string;
|
|
820
|
+
deletedAt?: string;
|
|
821
|
+
};
|
|
822
|
+
declare function MSubscription(value: TSubscription): TSubscription;
|
|
823
|
+
|
|
824
|
+
declare function useSubscriptionRepo(): {
|
|
825
|
+
createIndex: () => Promise<void>;
|
|
826
|
+
createUniqueIndex: () => Promise<void>;
|
|
827
|
+
add: (value: TSubscription) => Promise<ObjectId>;
|
|
828
|
+
getById: (_id: string | ObjectId) => Promise<TSubscription | null>;
|
|
829
|
+
getBySubscriptionId: (subscriptionId: string) => Promise<TSubscription | null>;
|
|
830
|
+
getByUserId: (user: string | ObjectId) => Promise<TSubscription | null>;
|
|
831
|
+
getSubscriptions: ({ search, page, limit, sort, status, }?: {
|
|
832
|
+
search?: string | undefined;
|
|
833
|
+
page?: number | undefined;
|
|
834
|
+
limit?: number | undefined;
|
|
835
|
+
sort?: {} | undefined;
|
|
836
|
+
status?: string | undefined;
|
|
837
|
+
}) => Promise<{
|
|
838
|
+
items: any[];
|
|
839
|
+
pages: number;
|
|
840
|
+
pageRange: string;
|
|
841
|
+
}>;
|
|
842
|
+
updateStatus: (_id: string | ObjectId, status: string) => Promise<string>;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
declare function useSubscriptionService(): {
|
|
846
|
+
getByUserId: (id: string) => Promise<TSubscription>;
|
|
847
|
+
getSubscriptionStatus: (subscriptionId: string) => Promise<any>;
|
|
848
|
+
cancelSubscription: (subscriptionId: string) => Promise<{
|
|
849
|
+
message: string;
|
|
850
|
+
}>;
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
declare function useSubscriptionController(): {
|
|
854
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
855
|
+
getByUserId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
856
|
+
getSubscriptions: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
857
|
+
getSubscriptionStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
858
|
+
cancelSubscription: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
859
|
+
};
|
|
860
|
+
|
|
1336
861
|
declare const MONGO_URI: string;
|
|
1337
862
|
declare const MONGO_DB: string;
|
|
1338
863
|
declare const PORT: number;
|
|
@@ -1348,6 +873,7 @@ declare const REFRESH_TOKEN_SECRET: string;
|
|
|
1348
873
|
declare const ACCESS_TOKEN_EXPIRY: string;
|
|
1349
874
|
declare const REFRESH_TOKEN_EXPIRY: string;
|
|
1350
875
|
declare const APP_ACCOUNT: string;
|
|
876
|
+
declare const APP_MAIN: string;
|
|
1351
877
|
declare const VERIFICATION_FORGET_PASSWORD_DURATION: string;
|
|
1352
878
|
declare const VERIFICATION_USER_INVITE_DURATION: string;
|
|
1353
879
|
declare const REDIS_HOST: string;
|
|
@@ -1362,5 +888,8 @@ declare const SPACES_SECRET_KEY: string;
|
|
|
1362
888
|
declare const SPACES_ENDPOINT: string;
|
|
1363
889
|
declare const SPACES_REGION: string;
|
|
1364
890
|
declare const SPACES_BUCKET: string;
|
|
891
|
+
declare const PAYPAL_CLIENT_ID: string;
|
|
892
|
+
declare const PAYPAL_CLIENT_SECRET: string;
|
|
893
|
+
declare const PAYPAL_API_URL: string;
|
|
1365
894
|
|
|
1366
|
-
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT,
|
|
895
|
+
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MCapBldgAct, MComment, MEntity, MFile, MONGO_DB, MONGO_URI, MRole, MSubscription, MToken, MUser, MUserRole, MVerification, MWorkflow, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PORT, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REFRESH_TOKEN_EXPIRY, REFRESH_TOKEN_SECRET, SECRET_KEY, SPACES_ACCESS_KEY, SPACES_BUCKET, SPACES_ENDPOINT, SPACES_REGION, SPACES_SECRET_KEY, TAttachment, TCapBldgAct, TCapBldgActAssmtCriteria, TCapBldgActBasicInfo, TCapBldgActInitRevEval, TComment, TEntity, TFile, TMiniRole, TRole, TSubscription, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, TWorkflow, TWorkflowStep, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, isDev, useAuthController, useAuthService, useCapBldgActController, useCapBldgActRepo, useCapBldgActService, useCommentController, useCommentRepo, useCommentService, useEntityController, useEntityRepo, useEntityService, useFileController, useFileRepo, useFileService, useRoleController, useRoleRepo, useRoleService, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useTokenRepo, useUserController, useUserRepo, useUserService, useVerificationController, useVerificationRepo, useVerificationService, useWorkflowController, useWorkflowRepo, useWorkflowService };
|