🎯 MapView v2.0 - Global Deployment Ready

 MAJOR FEATURES:
• Auto-zoom intelligence với smart bounds fitting
• Enhanced 3D GPS markers với pulsing effects
• Professional route display với 6-layer rendering
• Status-based parking icons với availability indicators
• Production-ready build optimizations

🗺️ AUTO-ZOOM FEATURES:
• Smart bounds fitting cho GPS + selected parking
• Adaptive padding (50px) cho visual balance
• Max zoom control (level 16) để tránh quá gần
• Dynamic centering khi không có selection

🎨 ENHANCED VISUALS:
• 3D GPS marker với multi-layer pulse effects
• Advanced parking icons với status colors
• Selection highlighting với animation
• Dimming system cho non-selected items

🛣️ ROUTE SYSTEM:
• OpenRouteService API integration
• Multi-layer route rendering (glow, shadow, main, animated)
• Real-time distance & duration calculation
• Visual route info trong popup

📱 PRODUCTION READY:
• SSR safe với dynamic imports
• Build errors resolved
• Global deployment via Vercel
• Optimized performance

🌍 DEPLOYMENT:
• Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app
• Bundle size: 22.8 kB optimized
• Global CDN distribution
• HTTPS enabled

💾 VERSION CONTROL:
• MapView-v2.0.tsx backup created
• MAPVIEW_VERSIONS.md documentation
• Full version history tracking
This commit is contained in:
2025-07-20 19:52:16 +07:00
parent 3203463a6a
commit c65cc97a33
64624 changed files with 7199453 additions and 6462 deletions

View File

@@ -0,0 +1,4 @@
import { RedisJSON } from '.';
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path: string, ...jsons: Array<RedisJSON>): Array<string>;
export declare function transformReply(): number | Array<number>;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, ...jsons) {
const args = ['JSON.ARRAPPEND', key, path];
for (const json of jsons) {
args.push((0, _1.transformRedisJsonArgument)(json));
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,5 @@
import { RedisJSON } from '.';
export declare const FIRST_KEY_INDEX = 1;
export declare const IS_READ_ONLY = true;
export declare function transformArguments(key: string, path: string, json: RedisJSON, start?: number, stop?: number): Array<string>;
export declare function transformReply(): number | Array<number>;

View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.IS_READ_ONLY = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
exports.IS_READ_ONLY = true;
function transformArguments(key, path, json, start, stop) {
const args = ['JSON.ARRINDEX', key, path, (0, _1.transformRedisJsonArgument)(json)];
if (start !== undefined && start !== null) {
args.push(start.toString());
if (stop !== undefined && stop !== null) {
args.push(stop.toString());
}
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,4 @@
import { RedisJSON } from '.';
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path: string, index: number, ...jsons: Array<RedisJSON>): Array<string>;
export declare function transformReply(): number | Array<number>;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, index, ...jsons) {
const args = ['JSON.ARRINSERT', key, path, index.toString()];
for (const json of jsons) {
args.push((0, _1.transformRedisJsonArgument)(json));
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,4 @@
export declare const FIRST_KEY_INDEX = 1;
export declare const IS_READ_ONLY = true;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): number | Array<number>;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.IS_READ_ONLY = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
exports.IS_READ_ONLY = true;
function transformArguments(key, path) {
const args = ['JSON.ARRLEN', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,4 @@
import { RedisJSON } from '.';
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path?: string, index?: number): Array<string>;
export declare function transformReply(reply: null | string | Array<null | string>): null | RedisJSON | Array<RedisJSON>;

View File

@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, index) {
const args = ['JSON.ARRPOP', key];
if (path) {
args.push(path);
if (index !== undefined && index !== null) {
args.push(index.toString());
}
}
return args;
}
exports.transformArguments = transformArguments;
function transformReply(reply) {
if (reply === null)
return null;
if (Array.isArray(reply)) {
return reply.map(_1.transformRedisJsonNullReply);
}
return (0, _1.transformRedisJsonNullReply)(reply);
}
exports.transformReply = transformReply;

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path: string, start: number, stop: number): Array<string>;
export declare function transformReply(): number | Array<number>;

View File

@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, start, stop) {
return ['JSON.ARRTRIM', key, path, start.toString(), stop.toString()];
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 2;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): number;

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 2;
function transformArguments(key, path) {
const args = ['JSON.DEBUG', 'MEMORY', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): number;

12
backend/node_modules/@redis/json/dist/commands/DEL.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path) {
const args = ['JSON.DEL', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): number;

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path) {
const args = ['JSON.FORGET', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,12 @@
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
export declare const FIRST_KEY_INDEX = 1;
export declare const IS_READ_ONLY = true;
interface GetOptions {
path?: string | Array<string>;
INDENT?: string;
NEWLINE?: string;
SPACE?: string;
NOESCAPE?: true;
}
export declare function transformArguments(key: string, options?: GetOptions): RedisCommandArguments;
export { transformRedisJsonNullReply as transformReply } from '.';

28
backend/node_modules/@redis/json/dist/commands/GET.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = exports.IS_READ_ONLY = exports.FIRST_KEY_INDEX = void 0;
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.FIRST_KEY_INDEX = 1;
exports.IS_READ_ONLY = true;
function transformArguments(key, options) {
let args = ['JSON.GET', key];
if (options?.path) {
args = (0, generic_transformers_1.pushVerdictArguments)(args, options.path);
}
if (options?.INDENT) {
args.push('INDENT', options.INDENT);
}
if (options?.NEWLINE) {
args.push('NEWLINE', options.NEWLINE);
}
if (options?.SPACE) {
args.push('SPACE', options.SPACE);
}
if (options?.NOESCAPE) {
args.push('NOESCAPE');
}
return args;
}
exports.transformArguments = transformArguments;
var _1 = require(".");
Object.defineProperty(exports, "transformReply", { enumerable: true, get: function () { return _1.transformRedisJsonNullReply; } });

View File

@@ -0,0 +1,4 @@
import { RedisJSON } from '.';
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path: string, json: RedisJSON): Array<string>;
export declare function transformReply(): 'OK';

View File

@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, json) {
return ['JSON.MERGE', key, path, (0, _1.transformRedisJsonArgument)(json)];
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,5 @@
import { RedisJSON } from '.';
export declare const FIRST_KEY_INDEX = 1;
export declare const IS_READ_ONLY = true;
export declare function transformArguments(keys: Array<string>, path: string): Array<string>;
export declare function transformReply(reply: Array<string | null>): Array<RedisJSON | null>;

18
backend/node_modules/@redis/json/dist/commands/MGET.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = exports.IS_READ_ONLY = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
exports.IS_READ_ONLY = true;
function transformArguments(keys, path) {
return [
'JSON.MGET',
...keys,
path
];
}
exports.transformArguments = transformArguments;
function transformReply(reply) {
return reply.map(_1.transformRedisJsonNullReply);
}
exports.transformReply = transformReply;

View File

@@ -0,0 +1,11 @@
import { RedisJSON } from '.';
import { RedisCommandArgument } from '@redis/client/dist/lib/commands';
export declare const FIRST_KEY_INDEX = 1;
interface JsonMSetItem {
key: RedisCommandArgument;
path: RedisCommandArgument;
value: RedisJSON;
}
export declare function transformArguments(items: Array<JsonMSetItem>): Array<string>;
export declare function transformReply(): 'OK';
export {};

18
backend/node_modules/@redis/json/dist/commands/MSET.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
function transformArguments(items) {
const args = new Array(1 + items.length * 3);
args[0] = 'JSON.MSET';
let argsIndex = 1;
for (let i = 0; i < items.length; i++) {
const item = items[i];
args[argsIndex++] = item.key;
args[argsIndex++] = item.path;
args[argsIndex++] = (0, _1.transformRedisJsonArgument)(item.value);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path: string, by: number): Array<string>;
export { transformNumbersReply as transformReply } from '.';

View File

@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, by) {
return ['JSON.NUMINCRBY', key, path, by.toString()];
}
exports.transformArguments = transformArguments;
var _1 = require(".");
Object.defineProperty(exports, "transformReply", { enumerable: true, get: function () { return _1.transformNumbersReply; } });

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path: string, by: number): Array<string>;
export { transformNumbersReply as transformReply } from '.';

View File

@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, by) {
return ['JSON.NUMMULTBY', key, path, by.toString()];
}
exports.transformArguments = transformArguments;
var _1 = require(".");
Object.defineProperty(exports, "transformReply", { enumerable: true, get: function () { return _1.transformNumbersReply; } });

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): Array<string> | null | Array<Array<string> | null>;

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path) {
const args = ['JSON.OBJKEYS', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): number | null | Array<number | null>;

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path) {
const args = ['JSON.OBJLEN', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,5 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path?: string): Array<string>;
type RESPReply = Array<string | number | RESPReply>;
export declare function transformReply(): RESPReply;
export {};

12
backend/node_modules/@redis/json/dist/commands/RESP.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path) {
const args = ['JSON.RESP', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,11 @@
import { RedisJSON } from '.';
export declare const FIRST_KEY_INDEX = 1;
interface NX {
NX: true;
}
interface XX {
XX: true;
}
export declare function transformArguments(key: string, path: string, json: RedisJSON, options?: NX | XX): Array<string>;
export declare function transformReply(): 'OK' | null;
export {};

16
backend/node_modules/@redis/json/dist/commands/SET.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path, json, options) {
const args = ['JSON.SET', key, path, (0, _1.transformRedisJsonArgument)(json)];
if (options?.NX) {
args.push('NX');
}
else if (options?.XX) {
args.push('XX');
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,6 @@
export declare const FIRST_KEY_INDEX = 1;
type AppendArguments = [key: string, append: string];
type AppendWithPathArguments = [key: string, path: string, append: string];
export declare function transformArguments(...[key, pathOrAppend, append]: AppendArguments | AppendWithPathArguments): Array<string>;
export declare function transformReply(): number | Array<number>;
export {};

View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
const _1 = require(".");
exports.FIRST_KEY_INDEX = 1;
function transformArguments(...[key, pathOrAppend, append]) {
const args = ['JSON.STRAPPEND', key];
if (append !== undefined && append !== null) {
args.push(pathOrAppend, (0, _1.transformRedisJsonArgument)(append));
}
else {
args.push((0, _1.transformRedisJsonArgument)(pathOrAppend));
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,4 @@
export declare const FIRST_KEY_INDEX = 1;
export declare const IS_READ_ONLY = true;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): number;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.IS_READ_ONLY = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
exports.IS_READ_ONLY = true;
function transformArguments(key, path) {
const args = ['JSON.STRLEN', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,3 @@
export declare const FIRST_KEY_INDEX = 1;
export declare function transformArguments(key: string, path?: string): Array<string>;
export declare function transformReply(): string | null | Array<string | null>;

12
backend/node_modules/@redis/json/dist/commands/TYPE.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, path) {
const args = ['JSON.TYPE', key];
if (path) {
args.push(path);
}
return args;
}
exports.transformArguments = transformArguments;

View File

@@ -0,0 +1,80 @@
import * as ARRAPPEND from './ARRAPPEND';
import * as ARRINDEX from './ARRINDEX';
import * as ARRINSERT from './ARRINSERT';
import * as ARRLEN from './ARRLEN';
import * as ARRPOP from './ARRPOP';
import * as ARRTRIM from './ARRTRIM';
import * as DEBUG_MEMORY from './DEBUG_MEMORY';
import * as DEL from './DEL';
import * as FORGET from './FORGET';
import * as GET from './GET';
import * as MERGE from './MERGE';
import * as MGET from './MGET';
import * as MSET from './MSET';
import * as NUMINCRBY from './NUMINCRBY';
import * as NUMMULTBY from './NUMMULTBY';
import * as OBJKEYS from './OBJKEYS';
import * as OBJLEN from './OBJLEN';
import * as RESP from './RESP';
import * as SET from './SET';
import * as STRAPPEND from './STRAPPEND';
import * as STRLEN from './STRLEN';
import * as TYPE from './TYPE';
declare const _default: {
ARRAPPEND: typeof ARRAPPEND;
arrAppend: typeof ARRAPPEND;
ARRINDEX: typeof ARRINDEX;
arrIndex: typeof ARRINDEX;
ARRINSERT: typeof ARRINSERT;
arrInsert: typeof ARRINSERT;
ARRLEN: typeof ARRLEN;
arrLen: typeof ARRLEN;
ARRPOP: typeof ARRPOP;
arrPop: typeof ARRPOP;
ARRTRIM: typeof ARRTRIM;
arrTrim: typeof ARRTRIM;
DEBUG_MEMORY: typeof DEBUG_MEMORY;
debugMemory: typeof DEBUG_MEMORY;
DEL: typeof DEL;
del: typeof DEL;
FORGET: typeof FORGET;
forget: typeof FORGET;
GET: typeof GET;
get: typeof GET;
MERGE: typeof MERGE;
merge: typeof MERGE;
MGET: typeof MGET;
mGet: typeof MGET;
MSET: typeof MSET;
mSet: typeof MSET;
NUMINCRBY: typeof NUMINCRBY;
numIncrBy: typeof NUMINCRBY;
NUMMULTBY: typeof NUMMULTBY;
numMultBy: typeof NUMMULTBY;
OBJKEYS: typeof OBJKEYS;
objKeys: typeof OBJKEYS;
OBJLEN: typeof OBJLEN;
objLen: typeof OBJLEN;
RESP: typeof RESP;
resp: typeof RESP;
SET: typeof SET;
set: typeof SET;
STRAPPEND: typeof STRAPPEND;
strAppend: typeof STRAPPEND;
STRLEN: typeof STRLEN;
strLen: typeof STRLEN;
TYPE: typeof TYPE;
type: typeof TYPE;
};
export default _default;
interface RedisJSONArray extends Array<RedisJSON> {
}
interface RedisJSONObject {
[key: string]: RedisJSON;
[key: number]: RedisJSON;
}
export type RedisJSON = null | boolean | number | string | Date | RedisJSONArray | RedisJSONObject;
export declare function transformRedisJsonArgument(json: RedisJSON): string;
export declare function transformRedisJsonReply(json: string): RedisJSON;
export declare function transformRedisJsonNullReply(json: string | null): RedisJSON | null;
export declare function transformNumbersReply(reply: string): number | Array<number>;

View File

@@ -0,0 +1,89 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformNumbersReply = exports.transformRedisJsonNullReply = exports.transformRedisJsonReply = exports.transformRedisJsonArgument = void 0;
const ARRAPPEND = require("./ARRAPPEND");
const ARRINDEX = require("./ARRINDEX");
const ARRINSERT = require("./ARRINSERT");
const ARRLEN = require("./ARRLEN");
const ARRPOP = require("./ARRPOP");
const ARRTRIM = require("./ARRTRIM");
const DEBUG_MEMORY = require("./DEBUG_MEMORY");
const DEL = require("./DEL");
const FORGET = require("./FORGET");
const GET = require("./GET");
const MERGE = require("./MERGE");
const MGET = require("./MGET");
const MSET = require("./MSET");
const NUMINCRBY = require("./NUMINCRBY");
const NUMMULTBY = require("./NUMMULTBY");
const OBJKEYS = require("./OBJKEYS");
const OBJLEN = require("./OBJLEN");
const RESP = require("./RESP");
const SET = require("./SET");
const STRAPPEND = require("./STRAPPEND");
const STRLEN = require("./STRLEN");
const TYPE = require("./TYPE");
exports.default = {
ARRAPPEND,
arrAppend: ARRAPPEND,
ARRINDEX,
arrIndex: ARRINDEX,
ARRINSERT,
arrInsert: ARRINSERT,
ARRLEN,
arrLen: ARRLEN,
ARRPOP,
arrPop: ARRPOP,
ARRTRIM,
arrTrim: ARRTRIM,
DEBUG_MEMORY,
debugMemory: DEBUG_MEMORY,
DEL,
del: DEL,
FORGET,
forget: FORGET,
GET,
get: GET,
MERGE,
merge: MERGE,
MGET,
mGet: MGET,
MSET,
mSet: MSET,
NUMINCRBY,
numIncrBy: NUMINCRBY,
NUMMULTBY,
numMultBy: NUMMULTBY,
OBJKEYS,
objKeys: OBJKEYS,
OBJLEN,
objLen: OBJLEN,
RESP,
resp: RESP,
SET,
set: SET,
STRAPPEND,
strAppend: STRAPPEND,
STRLEN,
strLen: STRLEN,
TYPE,
type: TYPE
};
function transformRedisJsonArgument(json) {
return JSON.stringify(json);
}
exports.transformRedisJsonArgument = transformRedisJsonArgument;
function transformRedisJsonReply(json) {
return JSON.parse(json);
}
exports.transformRedisJsonReply = transformRedisJsonReply;
function transformRedisJsonNullReply(json) {
if (json === null)
return null;
return transformRedisJsonReply(json);
}
exports.transformRedisJsonNullReply = transformRedisJsonNullReply;
function transformNumbersReply(reply) {
return JSON.parse(reply);
}
exports.transformNumbersReply = transformNumbersReply;