autosync_backend2 1.2.83 → 1.2.85
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/env.d.ts +2 -0
- package/dist/index.d.ts +125 -0
- package/dist/index.js +383 -211
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1606,6 +1606,115 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
1606
1606
|
};
|
|
1607
1607
|
});
|
|
1608
1608
|
|
|
1609
|
+
// node_modules/has-flag/index.js
|
|
1610
|
+
var require_has_flag = __commonJS((exports, module) => {
|
|
1611
|
+
module.exports = (flag, argv = process.argv) => {
|
|
1612
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
1613
|
+
const position = argv.indexOf(prefix + flag);
|
|
1614
|
+
const terminatorPosition = argv.indexOf("--");
|
|
1615
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
1616
|
+
};
|
|
1617
|
+
});
|
|
1618
|
+
|
|
1619
|
+
// node_modules/supports-color/index.js
|
|
1620
|
+
var require_supports_color = __commonJS((exports, module) => {
|
|
1621
|
+
var os = __require("os");
|
|
1622
|
+
var tty = __require("tty");
|
|
1623
|
+
var hasFlag = require_has_flag();
|
|
1624
|
+
var { env } = process;
|
|
1625
|
+
var forceColor;
|
|
1626
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
1627
|
+
forceColor = 0;
|
|
1628
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
1629
|
+
forceColor = 1;
|
|
1630
|
+
}
|
|
1631
|
+
if ("FORCE_COLOR" in env) {
|
|
1632
|
+
if (env.FORCE_COLOR === "true") {
|
|
1633
|
+
forceColor = 1;
|
|
1634
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
1635
|
+
forceColor = 0;
|
|
1636
|
+
} else {
|
|
1637
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
function translateLevel(level) {
|
|
1641
|
+
if (level === 0) {
|
|
1642
|
+
return false;
|
|
1643
|
+
}
|
|
1644
|
+
return {
|
|
1645
|
+
level,
|
|
1646
|
+
hasBasic: true,
|
|
1647
|
+
has256: level >= 2,
|
|
1648
|
+
has16m: level >= 3
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
1652
|
+
if (forceColor === 0) {
|
|
1653
|
+
return 0;
|
|
1654
|
+
}
|
|
1655
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
1656
|
+
return 3;
|
|
1657
|
+
}
|
|
1658
|
+
if (hasFlag("color=256")) {
|
|
1659
|
+
return 2;
|
|
1660
|
+
}
|
|
1661
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
1662
|
+
return 0;
|
|
1663
|
+
}
|
|
1664
|
+
const min = forceColor || 0;
|
|
1665
|
+
if (env.TERM === "dumb") {
|
|
1666
|
+
return min;
|
|
1667
|
+
}
|
|
1668
|
+
if (process.platform === "win32") {
|
|
1669
|
+
const osRelease = os.release().split(".");
|
|
1670
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
1671
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1672
|
+
}
|
|
1673
|
+
return 1;
|
|
1674
|
+
}
|
|
1675
|
+
if ("CI" in env) {
|
|
1676
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
|
|
1677
|
+
return 1;
|
|
1678
|
+
}
|
|
1679
|
+
return min;
|
|
1680
|
+
}
|
|
1681
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
1682
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
1683
|
+
}
|
|
1684
|
+
if (env.COLORTERM === "truecolor") {
|
|
1685
|
+
return 3;
|
|
1686
|
+
}
|
|
1687
|
+
if ("TERM_PROGRAM" in env) {
|
|
1688
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1689
|
+
switch (env.TERM_PROGRAM) {
|
|
1690
|
+
case "iTerm.app":
|
|
1691
|
+
return version >= 3 ? 3 : 2;
|
|
1692
|
+
case "Apple_Terminal":
|
|
1693
|
+
return 2;
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
1697
|
+
return 2;
|
|
1698
|
+
}
|
|
1699
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
1700
|
+
return 1;
|
|
1701
|
+
}
|
|
1702
|
+
if ("COLORTERM" in env) {
|
|
1703
|
+
return 1;
|
|
1704
|
+
}
|
|
1705
|
+
return min;
|
|
1706
|
+
}
|
|
1707
|
+
function getSupportLevel(stream) {
|
|
1708
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
1709
|
+
return translateLevel(level);
|
|
1710
|
+
}
|
|
1711
|
+
module.exports = {
|
|
1712
|
+
supportsColor: getSupportLevel,
|
|
1713
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
1714
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
1715
|
+
};
|
|
1716
|
+
});
|
|
1717
|
+
|
|
1609
1718
|
// node_modules/debug/src/node.js
|
|
1610
1719
|
var require_node = __commonJS((exports, module) => {
|
|
1611
1720
|
var tty = __require("tty");
|
|
@@ -1619,7 +1728,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
1619
1728
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1620
1729
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
1621
1730
|
try {
|
|
1622
|
-
const supportsColor = (
|
|
1731
|
+
const supportsColor = require_supports_color();
|
|
1623
1732
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
1624
1733
|
exports.colors = [
|
|
1625
1734
|
20,
|
|
@@ -20823,7 +20932,7 @@ var require_connection = __commonJS((exports, module) => {
|
|
|
20823
20932
|
module.exports = Connection;
|
|
20824
20933
|
});
|
|
20825
20934
|
|
|
20826
|
-
// node_modules/split2/index.js
|
|
20935
|
+
// node_modules/pgpass/node_modules/split2/index.js
|
|
20827
20936
|
var require_split2 = __commonJS((exports, module) => {
|
|
20828
20937
|
var { Transform: Transform2 } = __require("stream");
|
|
20829
20938
|
var { StringDecoder } = __require("string_decoder");
|
|
@@ -76653,7 +76762,7 @@ var require_buffer_indexof_polyfill = __commonJS(() => {
|
|
|
76653
76762
|
}
|
|
76654
76763
|
});
|
|
76655
76764
|
|
|
76656
|
-
// node_modules/traverse/index.js
|
|
76765
|
+
// node_modules/chainsaw/node_modules/traverse/index.js
|
|
76657
76766
|
var require_traverse = __commonJS((exports, module) => {
|
|
76658
76767
|
module.exports = Traverse;
|
|
76659
76768
|
function Traverse(obj2) {
|
|
@@ -93666,7 +93775,7 @@ var require_extend = __commonJS((exports, module) => {
|
|
|
93666
93775
|
};
|
|
93667
93776
|
});
|
|
93668
93777
|
|
|
93669
|
-
// node_modules/is-stream/index.js
|
|
93778
|
+
// node_modules/gaxios/node_modules/is-stream/index.js
|
|
93670
93779
|
var require_is_stream = __commonJS((exports, module) => {
|
|
93671
93780
|
var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
93672
93781
|
isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
@@ -154111,7 +154220,7 @@ var require_dist8 = __commonJS((exports) => {
|
|
|
154111
154220
|
exports.default = once;
|
|
154112
154221
|
});
|
|
154113
154222
|
|
|
154114
|
-
// node_modules/http-proxy-agent/node_modules/agent-base/dist/src/promisify.js
|
|
154223
|
+
// node_modules/teeny-request/node_modules/http-proxy-agent/node_modules/agent-base/dist/src/promisify.js
|
|
154115
154224
|
var require_promisify2 = __commonJS((exports) => {
|
|
154116
154225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
154117
154226
|
function promisify(fn) {
|
|
@@ -154130,7 +154239,7 @@ var require_promisify2 = __commonJS((exports) => {
|
|
|
154130
154239
|
exports.default = promisify;
|
|
154131
154240
|
});
|
|
154132
154241
|
|
|
154133
|
-
// node_modules/http-proxy-agent/node_modules/agent-base/dist/src/index.js
|
|
154242
|
+
// node_modules/teeny-request/node_modules/http-proxy-agent/node_modules/agent-base/dist/src/index.js
|
|
154134
154243
|
var require_src13 = __commonJS((exports, module) => {
|
|
154135
154244
|
var __importDefault = exports && exports.__importDefault || function(mod3) {
|
|
154136
154245
|
return mod3 && mod3.__esModule ? mod3 : { default: mod3 };
|
|
@@ -154306,7 +154415,7 @@ var require_src13 = __commonJS((exports, module) => {
|
|
|
154306
154415
|
module.exports = createAgent;
|
|
154307
154416
|
});
|
|
154308
154417
|
|
|
154309
|
-
// node_modules/http-proxy-agent/dist/agent.js
|
|
154418
|
+
// node_modules/teeny-request/node_modules/http-proxy-agent/dist/agent.js
|
|
154310
154419
|
var require_agent = __commonJS((exports) => {
|
|
154311
154420
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator3) {
|
|
154312
154421
|
function adopt(value) {
|
|
@@ -154438,7 +154547,7 @@ var require_agent = __commonJS((exports) => {
|
|
|
154438
154547
|
exports.default = HttpProxyAgent;
|
|
154439
154548
|
});
|
|
154440
154549
|
|
|
154441
|
-
// node_modules/http-proxy-agent/dist/index.js
|
|
154550
|
+
// node_modules/teeny-request/node_modules/http-proxy-agent/dist/index.js
|
|
154442
154551
|
var require_dist9 = __commonJS((exports, module) => {
|
|
154443
154552
|
var __importDefault = exports && exports.__importDefault || function(mod3) {
|
|
154444
154553
|
return mod3 && mod3.__esModule ? mod3 : { default: mod3 };
|
|
@@ -157124,7 +157233,7 @@ var require_src17 = __commonJS((exports) => {
|
|
|
157124
157233
|
exports.paginator = paginator;
|
|
157125
157234
|
});
|
|
157126
157235
|
|
|
157127
|
-
// node_modules/mime/Mime.js
|
|
157236
|
+
// node_modules/@google-cloud/storage/node_modules/mime/Mime.js
|
|
157128
157237
|
var require_Mime = __commonJS((exports, module) => {
|
|
157129
157238
|
function Mime() {
|
|
157130
157239
|
this._types = Object.create(null);
|
|
@@ -157173,17 +157282,17 @@ var require_Mime = __commonJS((exports, module) => {
|
|
|
157173
157282
|
module.exports = Mime;
|
|
157174
157283
|
});
|
|
157175
157284
|
|
|
157176
|
-
// node_modules/mime/types/standard.js
|
|
157285
|
+
// node_modules/@google-cloud/storage/node_modules/mime/types/standard.js
|
|
157177
157286
|
var require_standard = __commonJS((exports, module) => {
|
|
157178
157287
|
module.exports = { "application/andrew-inset": ["ez"], "application/applixware": ["aw"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomdeleted+xml": ["atomdeleted"], "application/atomsvc+xml": ["atomsvc"], "application/atsc-dwd+xml": ["dwd"], "application/atsc-held+xml": ["held"], "application/atsc-rsat+xml": ["rsat"], "application/bdoc": ["bdoc"], "application/calendar+xml": ["xcs"], "application/ccxml+xml": ["ccxml"], "application/cdfx+xml": ["cdfx"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cu-seeme": ["cu"], "application/dash+xml": ["mpd"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["es", "ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdt+xml": ["fdt"], "application/font-tdpfr": ["pfr"], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hjson": ["hjson"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/its+xml": ["its"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["js", "mjs"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lgr+xml": ["lgr"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mmt-aei+xml": ["maei"], "application/mmt-usd+xml": ["musd"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["mp4s", "m4p"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/n-quads": ["nq"], "application/n-triples": ["nt"], "application/node": ["cjs"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/p2p-overlay+xml": ["relo"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-signature": ["asc", "sig"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/provenance+xml": ["provx"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf", "owl"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/route-apd+xml": ["rapd"], "application/route-s-tsid+xml": ["sls"], "application/route-usd+xml": ["rusd"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/senml+xml": ["senmlx"], "application/sensml+xml": ["sensmlx"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/sieve": ["siv", "sieve"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/swid+xml": ["swidtag"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/toml": ["toml"], "application/trig": ["trig"], "application/ttml+xml": ["ttml"], "application/ubjson": ["ubj"], "application/urc-ressheet+xml": ["rsheet"], "application/urc-targetdesc+xml": ["td"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/xaml+xml": ["xaml"], "application/xcap-att+xml": ["xav"], "application/xcap-caps+xml": ["xca"], "application/xcap-diff+xml": ["xdf"], "application/xcap-el+xml": ["xel"], "application/xcap-ns+xml": ["xns"], "application/xenc+xml": ["xenc"], "application/xhtml+xml": ["xhtml", "xht"], "application/xliff+xml": ["xlf"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["*xsl", "xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": ["*3gpp"], "audio/adpcm": ["adp"], "audio/amr": ["amr"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mobile-xmf": ["mxmf"], "audio/mp3": ["*mp3"], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx", "opus"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/wav": ["wav"], "audio/wave": ["*wav"], "audio/webm": ["weba"], "audio/xm": ["xm"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/aces": ["exr"], "image/apng": ["apng"], "image/avif": ["avif"], "image/bmp": ["bmp"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/emf": ["emf"], "image/fits": ["fits"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/heic": ["heic"], "image/heic-sequence": ["heics"], "image/heif": ["heif"], "image/heif-sequence": ["heifs"], "image/hej2k": ["hej2"], "image/hsj2": ["hsj2"], "image/ief": ["ief"], "image/jls": ["jls"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jph": ["jph"], "image/jphc": ["jhc"], "image/jpm": ["jpm"], "image/jpx": ["jpx", "jpf"], "image/jxr": ["jxr"], "image/jxra": ["jxra"], "image/jxrs": ["jxrs"], "image/jxs": ["jxs"], "image/jxsc": ["jxsc"], "image/jxsi": ["jxsi"], "image/jxss": ["jxss"], "image/ktx": ["ktx"], "image/ktx2": ["ktx2"], "image/png": ["png"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/t38": ["t38"], "image/tiff": ["tif", "tiff"], "image/tiff-fx": ["tfx"], "image/webp": ["webp"], "image/wmf": ["wmf"], "message/disposition-notification": ["disposition-notification"], "message/global": ["u8msg"], "message/global-delivery-status": ["u8dsn"], "message/global-disposition-notification": ["u8mdn"], "message/global-headers": ["u8hdr"], "message/rfc822": ["eml", "mime"], "model/3mf": ["3mf"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["*x3db", "x3dbz"], "model/x3d+fastinfoset": ["x3db"], "model/x3d+vrml": ["*x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "model/x3d-vrml": ["x3dv"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["markdown", "md"], "text/mathml": ["mml"], "text/mdx": ["mdx"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/richtext": ["rtx"], "text/rtf": ["*rtf"], "text/sgml": ["sgml", "sgm"], "text/shex": ["shex"], "text/slim": ["slim", "slm"], "text/spdx": ["spdx"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vtt": ["vtt"], "text/xml": ["*xml"], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/iso.segment": ["m4s"], "video/jpeg": ["jpgv"], "video/jpm": ["*jpm", "jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/webm": ["webm"] };
|
|
157179
157288
|
});
|
|
157180
157289
|
|
|
157181
|
-
// node_modules/mime/types/other.js
|
|
157290
|
+
// node_modules/@google-cloud/storage/node_modules/mime/types/other.js
|
|
157182
157291
|
var require_other = __commonJS((exports, module) => {
|
|
157183
157292
|
module.exports = { "application/prs.cww": ["cww"], "application/vnd.1000minds.decision-model+xml": ["1km"], "application/vnd.3gpp.pic-bw-large": ["plb"], "application/vnd.3gpp.pic-bw-small": ["psb"], "application/vnd.3gpp.pic-bw-var": ["pvb"], "application/vnd.3gpp2.tcap": ["tcap"], "application/vnd.3m.post-it-notes": ["pwn"], "application/vnd.accpac.simply.aso": ["aso"], "application/vnd.accpac.simply.imp": ["imp"], "application/vnd.acucobol": ["acu"], "application/vnd.acucorp": ["atc", "acutc"], "application/vnd.adobe.air-application-installer-package+zip": ["air"], "application/vnd.adobe.formscentral.fcdt": ["fcdt"], "application/vnd.adobe.fxp": ["fxp", "fxpl"], "application/vnd.adobe.xdp+xml": ["xdp"], "application/vnd.adobe.xfdf": ["xfdf"], "application/vnd.ahead.space": ["ahead"], "application/vnd.airzip.filesecure.azf": ["azf"], "application/vnd.airzip.filesecure.azs": ["azs"], "application/vnd.amazon.ebook": ["azw"], "application/vnd.americandynamics.acc": ["acc"], "application/vnd.amiga.ami": ["ami"], "application/vnd.android.package-archive": ["apk"], "application/vnd.anser-web-certificate-issue-initiation": ["cii"], "application/vnd.anser-web-funds-transfer-initiation": ["fti"], "application/vnd.antix.game-component": ["atx"], "application/vnd.apple.installer+xml": ["mpkg"], "application/vnd.apple.keynote": ["key"], "application/vnd.apple.mpegurl": ["m3u8"], "application/vnd.apple.numbers": ["numbers"], "application/vnd.apple.pages": ["pages"], "application/vnd.apple.pkpass": ["pkpass"], "application/vnd.aristanetworks.swi": ["swi"], "application/vnd.astraea-software.iota": ["iota"], "application/vnd.audiograph": ["aep"], "application/vnd.balsamiq.bmml+xml": ["bmml"], "application/vnd.blueice.multipass": ["mpm"], "application/vnd.bmi": ["bmi"], "application/vnd.businessobjects": ["rep"], "application/vnd.chemdraw+xml": ["cdxml"], "application/vnd.chipnuts.karaoke-mmd": ["mmd"], "application/vnd.cinderella": ["cdy"], "application/vnd.citationstyles.style+xml": ["csl"], "application/vnd.claymore": ["cla"], "application/vnd.cloanto.rp9": ["rp9"], "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"], "application/vnd.cluetrust.cartomobile-config": ["c11amc"], "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"], "application/vnd.commonspace": ["csp"], "application/vnd.contact.cmsg": ["cdbcmsg"], "application/vnd.cosmocaller": ["cmc"], "application/vnd.crick.clicker": ["clkx"], "application/vnd.crick.clicker.keyboard": ["clkk"], "application/vnd.crick.clicker.palette": ["clkp"], "application/vnd.crick.clicker.template": ["clkt"], "application/vnd.crick.clicker.wordbank": ["clkw"], "application/vnd.criticaltools.wbs+xml": ["wbs"], "application/vnd.ctc-posml": ["pml"], "application/vnd.cups-ppd": ["ppd"], "application/vnd.curl.car": ["car"], "application/vnd.curl.pcurl": ["pcurl"], "application/vnd.dart": ["dart"], "application/vnd.data-vision.rdz": ["rdz"], "application/vnd.dbf": ["dbf"], "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"], "application/vnd.dece.ttml+xml": ["uvt", "uvvt"], "application/vnd.dece.unspecified": ["uvx", "uvvx"], "application/vnd.dece.zip": ["uvz", "uvvz"], "application/vnd.denovo.fcselayout-link": ["fe_launch"], "application/vnd.dna": ["dna"], "application/vnd.dolby.mlp": ["mlp"], "application/vnd.dpgraph": ["dpg"], "application/vnd.dreamfactory": ["dfac"], "application/vnd.ds-keypoint": ["kpxx"], "application/vnd.dvb.ait": ["ait"], "application/vnd.dvb.service": ["svc"], "application/vnd.dynageo": ["geo"], "application/vnd.ecowin.chart": ["mag"], "application/vnd.enliven": ["nml"], "application/vnd.epson.esf": ["esf"], "application/vnd.epson.msf": ["msf"], "application/vnd.epson.quickanime": ["qam"], "application/vnd.epson.salt": ["slt"], "application/vnd.epson.ssf": ["ssf"], "application/vnd.eszigno3+xml": ["es3", "et3"], "application/vnd.ezpix-album": ["ez2"], "application/vnd.ezpix-package": ["ez3"], "application/vnd.fdf": ["fdf"], "application/vnd.fdsn.mseed": ["mseed"], "application/vnd.fdsn.seed": ["seed", "dataless"], "application/vnd.flographit": ["gph"], "application/vnd.fluxtime.clip": ["ftc"], "application/vnd.framemaker": ["fm", "frame", "maker", "book"], "application/vnd.frogans.fnc": ["fnc"], "application/vnd.frogans.ltf": ["ltf"], "application/vnd.fsc.weblaunch": ["fsc"], "application/vnd.fujitsu.oasys": ["oas"], "application/vnd.fujitsu.oasys2": ["oa2"], "application/vnd.fujitsu.oasys3": ["oa3"], "application/vnd.fujitsu.oasysgp": ["fg5"], "application/vnd.fujitsu.oasysprs": ["bh2"], "application/vnd.fujixerox.ddd": ["ddd"], "application/vnd.fujixerox.docuworks": ["xdw"], "application/vnd.fujixerox.docuworks.binder": ["xbd"], "application/vnd.fuzzysheet": ["fzs"], "application/vnd.genomatix.tuxedo": ["txd"], "application/vnd.geogebra.file": ["ggb"], "application/vnd.geogebra.tool": ["ggt"], "application/vnd.geometry-explorer": ["gex", "gre"], "application/vnd.geonext": ["gxt"], "application/vnd.geoplan": ["g2w"], "application/vnd.geospace": ["g3w"], "application/vnd.gmx": ["gmx"], "application/vnd.google-apps.document": ["gdoc"], "application/vnd.google-apps.presentation": ["gslides"], "application/vnd.google-apps.spreadsheet": ["gsheet"], "application/vnd.google-earth.kml+xml": ["kml"], "application/vnd.google-earth.kmz": ["kmz"], "application/vnd.grafeq": ["gqf", "gqs"], "application/vnd.groove-account": ["gac"], "application/vnd.groove-help": ["ghf"], "application/vnd.groove-identity-message": ["gim"], "application/vnd.groove-injector": ["grv"], "application/vnd.groove-tool-message": ["gtm"], "application/vnd.groove-tool-template": ["tpl"], "application/vnd.groove-vcard": ["vcg"], "application/vnd.hal+xml": ["hal"], "application/vnd.handheld-entertainment+xml": ["zmm"], "application/vnd.hbci": ["hbci"], "application/vnd.hhe.lesson-player": ["les"], "application/vnd.hp-hpgl": ["hpgl"], "application/vnd.hp-hpid": ["hpid"], "application/vnd.hp-hps": ["hps"], "application/vnd.hp-jlyt": ["jlt"], "application/vnd.hp-pcl": ["pcl"], "application/vnd.hp-pclxl": ["pclxl"], "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"], "application/vnd.ibm.minipay": ["mpy"], "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"], "application/vnd.ibm.rights-management": ["irm"], "application/vnd.ibm.secure-container": ["sc"], "application/vnd.iccprofile": ["icc", "icm"], "application/vnd.igloader": ["igl"], "application/vnd.immervision-ivp": ["ivp"], "application/vnd.immervision-ivu": ["ivu"], "application/vnd.insors.igm": ["igm"], "application/vnd.intercon.formnet": ["xpw", "xpx"], "application/vnd.intergeo": ["i2g"], "application/vnd.intu.qbo": ["qbo"], "application/vnd.intu.qfx": ["qfx"], "application/vnd.ipunplugged.rcprofile": ["rcprofile"], "application/vnd.irepository.package+xml": ["irp"], "application/vnd.is-xpr": ["xpr"], "application/vnd.isac.fcs": ["fcs"], "application/vnd.jam": ["jam"], "application/vnd.jcp.javame.midlet-rms": ["rms"], "application/vnd.jisp": ["jisp"], "application/vnd.joost.joda-archive": ["joda"], "application/vnd.kahootz": ["ktz", "ktr"], "application/vnd.kde.karbon": ["karbon"], "application/vnd.kde.kchart": ["chrt"], "application/vnd.kde.kformula": ["kfo"], "application/vnd.kde.kivio": ["flw"], "application/vnd.kde.kontour": ["kon"], "application/vnd.kde.kpresenter": ["kpr", "kpt"], "application/vnd.kde.kspread": ["ksp"], "application/vnd.kde.kword": ["kwd", "kwt"], "application/vnd.kenameaapp": ["htke"], "application/vnd.kidspiration": ["kia"], "application/vnd.kinar": ["kne", "knp"], "application/vnd.koan": ["skp", "skd", "skt", "skm"], "application/vnd.kodak-descriptor": ["sse"], "application/vnd.las.las+xml": ["lasxml"], "application/vnd.llamagraphics.life-balance.desktop": ["lbd"], "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"], "application/vnd.lotus-1-2-3": ["123"], "application/vnd.lotus-approach": ["apr"], "application/vnd.lotus-freelance": ["pre"], "application/vnd.lotus-notes": ["nsf"], "application/vnd.lotus-organizer": ["org"], "application/vnd.lotus-screencam": ["scm"], "application/vnd.lotus-wordpro": ["lwp"], "application/vnd.macports.portpkg": ["portpkg"], "application/vnd.mapbox-vector-tile": ["mvt"], "application/vnd.mcd": ["mcd"], "application/vnd.medcalcdata": ["mc1"], "application/vnd.mediastation.cdkey": ["cdkey"], "application/vnd.mfer": ["mwf"], "application/vnd.mfmp": ["mfm"], "application/vnd.micrografx.flo": ["flo"], "application/vnd.micrografx.igx": ["igx"], "application/vnd.mif": ["mif"], "application/vnd.mobius.daf": ["daf"], "application/vnd.mobius.dis": ["dis"], "application/vnd.mobius.mbk": ["mbk"], "application/vnd.mobius.mqy": ["mqy"], "application/vnd.mobius.msl": ["msl"], "application/vnd.mobius.plc": ["plc"], "application/vnd.mobius.txf": ["txf"], "application/vnd.mophun.application": ["mpn"], "application/vnd.mophun.certificate": ["mpc"], "application/vnd.mozilla.xul+xml": ["xul"], "application/vnd.ms-artgalry": ["cil"], "application/vnd.ms-cab-compressed": ["cab"], "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"], "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"], "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"], "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"], "application/vnd.ms-excel.template.macroenabled.12": ["xltm"], "application/vnd.ms-fontobject": ["eot"], "application/vnd.ms-htmlhelp": ["chm"], "application/vnd.ms-ims": ["ims"], "application/vnd.ms-lrm": ["lrm"], "application/vnd.ms-officetheme": ["thmx"], "application/vnd.ms-outlook": ["msg"], "application/vnd.ms-pki.seccat": ["cat"], "application/vnd.ms-pki.stl": ["*stl"], "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"], "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"], "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"], "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"], "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"], "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"], "application/vnd.ms-project": ["mpp", "mpt"], "application/vnd.ms-word.document.macroenabled.12": ["docm"], "application/vnd.ms-word.template.macroenabled.12": ["dotm"], "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"], "application/vnd.ms-wpl": ["wpl"], "application/vnd.ms-xpsdocument": ["xps"], "application/vnd.mseq": ["mseq"], "application/vnd.musician": ["mus"], "application/vnd.muvee.style": ["msty"], "application/vnd.mynfc": ["taglet"], "application/vnd.neurolanguage.nlu": ["nlu"], "application/vnd.nitf": ["ntf", "nitf"], "application/vnd.noblenet-directory": ["nnd"], "application/vnd.noblenet-sealer": ["nns"], "application/vnd.noblenet-web": ["nnw"], "application/vnd.nokia.n-gage.ac+xml": ["*ac"], "application/vnd.nokia.n-gage.data": ["ngdat"], "application/vnd.nokia.n-gage.symbian.install": ["n-gage"], "application/vnd.nokia.radio-preset": ["rpst"], "application/vnd.nokia.radio-presets": ["rpss"], "application/vnd.novadigm.edm": ["edm"], "application/vnd.novadigm.edx": ["edx"], "application/vnd.novadigm.ext": ["ext"], "application/vnd.oasis.opendocument.chart": ["odc"], "application/vnd.oasis.opendocument.chart-template": ["otc"], "application/vnd.oasis.opendocument.database": ["odb"], "application/vnd.oasis.opendocument.formula": ["odf"], "application/vnd.oasis.opendocument.formula-template": ["odft"], "application/vnd.oasis.opendocument.graphics": ["odg"], "application/vnd.oasis.opendocument.graphics-template": ["otg"], "application/vnd.oasis.opendocument.image": ["odi"], "application/vnd.oasis.opendocument.image-template": ["oti"], "application/vnd.oasis.opendocument.presentation": ["odp"], "application/vnd.oasis.opendocument.presentation-template": ["otp"], "application/vnd.oasis.opendocument.spreadsheet": ["ods"], "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"], "application/vnd.oasis.opendocument.text": ["odt"], "application/vnd.oasis.opendocument.text-master": ["odm"], "application/vnd.oasis.opendocument.text-template": ["ott"], "application/vnd.oasis.opendocument.text-web": ["oth"], "application/vnd.olpc-sugar": ["xo"], "application/vnd.oma.dd2+xml": ["dd2"], "application/vnd.openblox.game+xml": ["obgx"], "application/vnd.openofficeorg.extension": ["oxt"], "application/vnd.openstreetmap.data+xml": ["osm"], "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"], "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"], "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"], "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"], "application/vnd.osgeo.mapguide.package": ["mgp"], "application/vnd.osgi.dp": ["dp"], "application/vnd.osgi.subsystem": ["esa"], "application/vnd.palm": ["pdb", "pqa", "oprc"], "application/vnd.pawaafile": ["paw"], "application/vnd.pg.format": ["str"], "application/vnd.pg.osasli": ["ei6"], "application/vnd.picsel": ["efif"], "application/vnd.pmi.widget": ["wg"], "application/vnd.pocketlearn": ["plf"], "application/vnd.powerbuilder6": ["pbd"], "application/vnd.previewsystems.box": ["box"], "application/vnd.proteus.magazine": ["mgz"], "application/vnd.publishare-delta-tree": ["qps"], "application/vnd.pvi.ptid1": ["ptid"], "application/vnd.quark.quarkxpress": ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"], "application/vnd.rar": ["rar"], "application/vnd.realvnc.bed": ["bed"], "application/vnd.recordare.musicxml": ["mxl"], "application/vnd.recordare.musicxml+xml": ["musicxml"], "application/vnd.rig.cryptonote": ["cryptonote"], "application/vnd.rim.cod": ["cod"], "application/vnd.rn-realmedia": ["rm"], "application/vnd.rn-realmedia-vbr": ["rmvb"], "application/vnd.route66.link66+xml": ["link66"], "application/vnd.sailingtracker.track": ["st"], "application/vnd.seemail": ["see"], "application/vnd.sema": ["sema"], "application/vnd.semd": ["semd"], "application/vnd.semf": ["semf"], "application/vnd.shana.informed.formdata": ["ifm"], "application/vnd.shana.informed.formtemplate": ["itp"], "application/vnd.shana.informed.interchange": ["iif"], "application/vnd.shana.informed.package": ["ipk"], "application/vnd.simtech-mindmapper": ["twd", "twds"], "application/vnd.smaf": ["mmf"], "application/vnd.smart.teacher": ["teacher"], "application/vnd.software602.filler.form+xml": ["fo"], "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"], "application/vnd.spotfire.dxp": ["dxp"], "application/vnd.spotfire.sfs": ["sfs"], "application/vnd.stardivision.calc": ["sdc"], "application/vnd.stardivision.draw": ["sda"], "application/vnd.stardivision.impress": ["sdd"], "application/vnd.stardivision.math": ["smf"], "application/vnd.stardivision.writer": ["sdw", "vor"], "application/vnd.stardivision.writer-global": ["sgl"], "application/vnd.stepmania.package": ["smzip"], "application/vnd.stepmania.stepchart": ["sm"], "application/vnd.sun.wadl+xml": ["wadl"], "application/vnd.sun.xml.calc": ["sxc"], "application/vnd.sun.xml.calc.template": ["stc"], "application/vnd.sun.xml.draw": ["sxd"], "application/vnd.sun.xml.draw.template": ["std"], "application/vnd.sun.xml.impress": ["sxi"], "application/vnd.sun.xml.impress.template": ["sti"], "application/vnd.sun.xml.math": ["sxm"], "application/vnd.sun.xml.writer": ["sxw"], "application/vnd.sun.xml.writer.global": ["sxg"], "application/vnd.sun.xml.writer.template": ["stw"], "application/vnd.sus-calendar": ["sus", "susp"], "application/vnd.svd": ["svd"], "application/vnd.symbian.install": ["sis", "sisx"], "application/vnd.syncml+xml": ["xsm"], "application/vnd.syncml.dm+wbxml": ["bdm"], "application/vnd.syncml.dm+xml": ["xdm"], "application/vnd.syncml.dmddf+xml": ["ddf"], "application/vnd.tao.intent-module-archive": ["tao"], "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"], "application/vnd.tmobile-livetv": ["tmo"], "application/vnd.trid.tpt": ["tpt"], "application/vnd.triscape.mxs": ["mxs"], "application/vnd.trueapp": ["tra"], "application/vnd.ufdl": ["ufd", "ufdl"], "application/vnd.uiq.theme": ["utz"], "application/vnd.umajin": ["umj"], "application/vnd.unity": ["unityweb"], "application/vnd.uoml+xml": ["uoml"], "application/vnd.vcx": ["vcx"], "application/vnd.visio": ["vsd", "vst", "vss", "vsw"], "application/vnd.visionary": ["vis"], "application/vnd.vsf": ["vsf"], "application/vnd.wap.wbxml": ["wbxml"], "application/vnd.wap.wmlc": ["wmlc"], "application/vnd.wap.wmlscriptc": ["wmlsc"], "application/vnd.webturbo": ["wtb"], "application/vnd.wolfram.player": ["nbp"], "application/vnd.wordperfect": ["wpd"], "application/vnd.wqd": ["wqd"], "application/vnd.wt.stf": ["stf"], "application/vnd.xara": ["xar"], "application/vnd.xfdl": ["xfdl"], "application/vnd.yamaha.hv-dic": ["hvd"], "application/vnd.yamaha.hv-script": ["hvs"], "application/vnd.yamaha.hv-voice": ["hvp"], "application/vnd.yamaha.openscoreformat": ["osf"], "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"], "application/vnd.yamaha.smaf-audio": ["saf"], "application/vnd.yamaha.smaf-phrase": ["spf"], "application/vnd.yellowriver-custom-menu": ["cmp"], "application/vnd.zul": ["zir", "zirz"], "application/vnd.zzazz.deck+xml": ["zaz"], "application/x-7z-compressed": ["7z"], "application/x-abiword": ["abw"], "application/x-ace-compressed": ["ace"], "application/x-apple-diskimage": ["*dmg"], "application/x-arj": ["arj"], "application/x-authorware-bin": ["aab", "x32", "u32", "vox"], "application/x-authorware-map": ["aam"], "application/x-authorware-seg": ["aas"], "application/x-bcpio": ["bcpio"], "application/x-bdoc": ["*bdoc"], "application/x-bittorrent": ["torrent"], "application/x-blorb": ["blb", "blorb"], "application/x-bzip": ["bz"], "application/x-bzip2": ["bz2", "boz"], "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"], "application/x-cdlink": ["vcd"], "application/x-cfs-compressed": ["cfs"], "application/x-chat": ["chat"], "application/x-chess-pgn": ["pgn"], "application/x-chrome-extension": ["crx"], "application/x-cocoa": ["cco"], "application/x-conference": ["nsc"], "application/x-cpio": ["cpio"], "application/x-csh": ["csh"], "application/x-debian-package": ["*deb", "udeb"], "application/x-dgc-compressed": ["dgc"], "application/x-director": ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"], "application/x-doom": ["wad"], "application/x-dtbncx+xml": ["ncx"], "application/x-dtbook+xml": ["dtb"], "application/x-dtbresource+xml": ["res"], "application/x-dvi": ["dvi"], "application/x-envoy": ["evy"], "application/x-eva": ["eva"], "application/x-font-bdf": ["bdf"], "application/x-font-ghostscript": ["gsf"], "application/x-font-linux-psf": ["psf"], "application/x-font-pcf": ["pcf"], "application/x-font-snf": ["snf"], "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"], "application/x-freearc": ["arc"], "application/x-futuresplash": ["spl"], "application/x-gca-compressed": ["gca"], "application/x-glulx": ["ulx"], "application/x-gnumeric": ["gnumeric"], "application/x-gramps-xml": ["gramps"], "application/x-gtar": ["gtar"], "application/x-hdf": ["hdf"], "application/x-httpd-php": ["php"], "application/x-install-instructions": ["install"], "application/x-iso9660-image": ["*iso"], "application/x-iwork-keynote-sffkey": ["*key"], "application/x-iwork-numbers-sffnumbers": ["*numbers"], "application/x-iwork-pages-sffpages": ["*pages"], "application/x-java-archive-diff": ["jardiff"], "application/x-java-jnlp-file": ["jnlp"], "application/x-keepass2": ["kdbx"], "application/x-latex": ["latex"], "application/x-lua-bytecode": ["luac"], "application/x-lzh-compressed": ["lzh", "lha"], "application/x-makeself": ["run"], "application/x-mie": ["mie"], "application/x-mobipocket-ebook": ["prc", "mobi"], "application/x-ms-application": ["application"], "application/x-ms-shortcut": ["lnk"], "application/x-ms-wmd": ["wmd"], "application/x-ms-wmz": ["wmz"], "application/x-ms-xbap": ["xbap"], "application/x-msaccess": ["mdb"], "application/x-msbinder": ["obd"], "application/x-mscardfile": ["crd"], "application/x-msclip": ["clp"], "application/x-msdos-program": ["*exe"], "application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"], "application/x-msmediaview": ["mvb", "m13", "m14"], "application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"], "application/x-msmoney": ["mny"], "application/x-mspublisher": ["pub"], "application/x-msschedule": ["scd"], "application/x-msterminal": ["trm"], "application/x-mswrite": ["wri"], "application/x-netcdf": ["nc", "cdf"], "application/x-ns-proxy-autoconfig": ["pac"], "application/x-nzb": ["nzb"], "application/x-perl": ["pl", "pm"], "application/x-pilot": ["*prc", "*pdb"], "application/x-pkcs12": ["p12", "pfx"], "application/x-pkcs7-certificates": ["p7b", "spc"], "application/x-pkcs7-certreqresp": ["p7r"], "application/x-rar-compressed": ["*rar"], "application/x-redhat-package-manager": ["rpm"], "application/x-research-info-systems": ["ris"], "application/x-sea": ["sea"], "application/x-sh": ["sh"], "application/x-shar": ["shar"], "application/x-shockwave-flash": ["swf"], "application/x-silverlight-app": ["xap"], "application/x-sql": ["sql"], "application/x-stuffit": ["sit"], "application/x-stuffitx": ["sitx"], "application/x-subrip": ["srt"], "application/x-sv4cpio": ["sv4cpio"], "application/x-sv4crc": ["sv4crc"], "application/x-t3vm-image": ["t3"], "application/x-tads": ["gam"], "application/x-tar": ["tar"], "application/x-tcl": ["tcl", "tk"], "application/x-tex": ["tex"], "application/x-tex-tfm": ["tfm"], "application/x-texinfo": ["texinfo", "texi"], "application/x-tgif": ["*obj"], "application/x-ustar": ["ustar"], "application/x-virtualbox-hdd": ["hdd"], "application/x-virtualbox-ova": ["ova"], "application/x-virtualbox-ovf": ["ovf"], "application/x-virtualbox-vbox": ["vbox"], "application/x-virtualbox-vbox-extpack": ["vbox-extpack"], "application/x-virtualbox-vdi": ["vdi"], "application/x-virtualbox-vhd": ["vhd"], "application/x-virtualbox-vmdk": ["vmdk"], "application/x-wais-source": ["src"], "application/x-web-app-manifest+json": ["webapp"], "application/x-x509-ca-cert": ["der", "crt", "pem"], "application/x-xfig": ["fig"], "application/x-xliff+xml": ["*xlf"], "application/x-xpinstall": ["xpi"], "application/x-xz": ["xz"], "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"], "audio/vnd.dece.audio": ["uva", "uvva"], "audio/vnd.digital-winds": ["eol"], "audio/vnd.dra": ["dra"], "audio/vnd.dts": ["dts"], "audio/vnd.dts.hd": ["dtshd"], "audio/vnd.lucent.voice": ["lvp"], "audio/vnd.ms-playready.media.pya": ["pya"], "audio/vnd.nuera.ecelp4800": ["ecelp4800"], "audio/vnd.nuera.ecelp7470": ["ecelp7470"], "audio/vnd.nuera.ecelp9600": ["ecelp9600"], "audio/vnd.rip": ["rip"], "audio/x-aac": ["aac"], "audio/x-aiff": ["aif", "aiff", "aifc"], "audio/x-caf": ["caf"], "audio/x-flac": ["flac"], "audio/x-m4a": ["*m4a"], "audio/x-matroska": ["mka"], "audio/x-mpegurl": ["m3u"], "audio/x-ms-wax": ["wax"], "audio/x-ms-wma": ["wma"], "audio/x-pn-realaudio": ["ram", "ra"], "audio/x-pn-realaudio-plugin": ["rmp"], "audio/x-realaudio": ["*ra"], "audio/x-wav": ["*wav"], "chemical/x-cdx": ["cdx"], "chemical/x-cif": ["cif"], "chemical/x-cmdf": ["cmdf"], "chemical/x-cml": ["cml"], "chemical/x-csml": ["csml"], "chemical/x-xyz": ["xyz"], "image/prs.btif": ["btif"], "image/prs.pti": ["pti"], "image/vnd.adobe.photoshop": ["psd"], "image/vnd.airzip.accelerator.azv": ["azv"], "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"], "image/vnd.djvu": ["djvu", "djv"], "image/vnd.dvb.subtitle": ["*sub"], "image/vnd.dwg": ["dwg"], "image/vnd.dxf": ["dxf"], "image/vnd.fastbidsheet": ["fbs"], "image/vnd.fpx": ["fpx"], "image/vnd.fst": ["fst"], "image/vnd.fujixerox.edmics-mmr": ["mmr"], "image/vnd.fujixerox.edmics-rlc": ["rlc"], "image/vnd.microsoft.icon": ["ico"], "image/vnd.ms-dds": ["dds"], "image/vnd.ms-modi": ["mdi"], "image/vnd.ms-photo": ["wdp"], "image/vnd.net-fpx": ["npx"], "image/vnd.pco.b16": ["b16"], "image/vnd.tencent.tap": ["tap"], "image/vnd.valve.source.texture": ["vtf"], "image/vnd.wap.wbmp": ["wbmp"], "image/vnd.xiff": ["xif"], "image/vnd.zbrush.pcx": ["pcx"], "image/x-3ds": ["3ds"], "image/x-cmu-raster": ["ras"], "image/x-cmx": ["cmx"], "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"], "image/x-icon": ["*ico"], "image/x-jng": ["jng"], "image/x-mrsid-image": ["sid"], "image/x-ms-bmp": ["*bmp"], "image/x-pcx": ["*pcx"], "image/x-pict": ["pic", "pct"], "image/x-portable-anymap": ["pnm"], "image/x-portable-bitmap": ["pbm"], "image/x-portable-graymap": ["pgm"], "image/x-portable-pixmap": ["ppm"], "image/x-rgb": ["rgb"], "image/x-tga": ["tga"], "image/x-xbitmap": ["xbm"], "image/x-xpixmap": ["xpm"], "image/x-xwindowdump": ["xwd"], "message/vnd.wfa.wsc": ["wsc"], "model/vnd.collada+xml": ["dae"], "model/vnd.dwf": ["dwf"], "model/vnd.gdl": ["gdl"], "model/vnd.gtw": ["gtw"], "model/vnd.mts": ["mts"], "model/vnd.opengex": ["ogex"], "model/vnd.parasolid.transmit.binary": ["x_b"], "model/vnd.parasolid.transmit.text": ["x_t"], "model/vnd.sap.vds": ["vds"], "model/vnd.usdz+zip": ["usdz"], "model/vnd.valve.source.compiled-map": ["bsp"], "model/vnd.vtu": ["vtu"], "text/prs.lines.tag": ["dsc"], "text/vnd.curl": ["curl"], "text/vnd.curl.dcurl": ["dcurl"], "text/vnd.curl.mcurl": ["mcurl"], "text/vnd.curl.scurl": ["scurl"], "text/vnd.dvb.subtitle": ["sub"], "text/vnd.fly": ["fly"], "text/vnd.fmi.flexstor": ["flx"], "text/vnd.graphviz": ["gv"], "text/vnd.in3d.3dml": ["3dml"], "text/vnd.in3d.spot": ["spot"], "text/vnd.sun.j2me.app-descriptor": ["jad"], "text/vnd.wap.wml": ["wml"], "text/vnd.wap.wmlscript": ["wmls"], "text/x-asm": ["s", "asm"], "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"], "text/x-component": ["htc"], "text/x-fortran": ["f", "for", "f77", "f90"], "text/x-handlebars-template": ["hbs"], "text/x-java-source": ["java"], "text/x-lua": ["lua"], "text/x-markdown": ["mkd"], "text/x-nfo": ["nfo"], "text/x-opml": ["opml"], "text/x-org": ["*org"], "text/x-pascal": ["p", "pas"], "text/x-processing": ["pde"], "text/x-sass": ["sass"], "text/x-scss": ["scss"], "text/x-setext": ["etx"], "text/x-sfv": ["sfv"], "text/x-suse-ymp": ["ymp"], "text/x-uuencode": ["uu"], "text/x-vcalendar": ["vcs"], "text/x-vcard": ["vcf"], "video/vnd.dece.hd": ["uvh", "uvvh"], "video/vnd.dece.mobile": ["uvm", "uvvm"], "video/vnd.dece.pd": ["uvp", "uvvp"], "video/vnd.dece.sd": ["uvs", "uvvs"], "video/vnd.dece.video": ["uvv", "uvvv"], "video/vnd.dvb.file": ["dvb"], "video/vnd.fvt": ["fvt"], "video/vnd.mpegurl": ["mxu", "m4u"], "video/vnd.ms-playready.media.pyv": ["pyv"], "video/vnd.uvvu.mp4": ["uvu", "uvvu"], "video/vnd.vivo": ["viv"], "video/x-f4v": ["f4v"], "video/x-fli": ["fli"], "video/x-flv": ["flv"], "video/x-m4v": ["m4v"], "video/x-matroska": ["mkv", "mk3d", "mks"], "video/x-mng": ["mng"], "video/x-ms-asf": ["asf", "asx"], "video/x-ms-vob": ["vob"], "video/x-ms-wm": ["wm"], "video/x-ms-wmv": ["wmv"], "video/x-ms-wmx": ["wmx"], "video/x-ms-wvx": ["wvx"], "video/x-msvideo": ["avi"], "video/x-sgi-movie": ["movie"], "video/x-smv": ["smv"], "x-conference/x-cooltalk": ["ice"] };
|
|
157184
157293
|
});
|
|
157185
157294
|
|
|
157186
|
-
// node_modules/mime/index.js
|
|
157295
|
+
// node_modules/@google-cloud/storage/node_modules/mime/index.js
|
|
157187
157296
|
var require_mime = __commonJS((exports, module) => {
|
|
157188
157297
|
var Mime = require_Mime();
|
|
157189
157298
|
module.exports = new Mime(require_standard(), require_other());
|
|
@@ -245825,7 +245934,9 @@ var EnvSchema = t.Object({
|
|
|
245825
245934
|
MBANK_CLIENT_ID: t.String(),
|
|
245826
245935
|
MBANK_CLIENT_SECRET: t.String(),
|
|
245827
245936
|
MBANK_USERNAME: t.String(),
|
|
245828
|
-
MBANK_PASSWORD: t.String()
|
|
245937
|
+
MBANK_PASSWORD: t.String(),
|
|
245938
|
+
POCKET_CLIENT_ID: t.String(),
|
|
245939
|
+
POCKET_CLIENT_SECRET: t.String()
|
|
245829
245940
|
});
|
|
245830
245941
|
var env3;
|
|
245831
245942
|
try {
|
|
@@ -279950,7 +280061,7 @@ var NOT_FOUND_MESSAGE = "\u0414\u0430\u043D\u0441 \u043E\u043B\u0434\u0441\u043E
|
|
|
279950
280061
|
var CompanyAccountLogic;
|
|
279951
280062
|
((CompanyAccountLogic) => {
|
|
279952
280063
|
CompanyAccountLogic.select = async (query, user2) => {
|
|
279953
|
-
const filter = and(eq(companyAccountTable.companyId, user2.companyId), or(eq(companyAccountTable.branchId, user2.branchId), isNull2(companyAccountTable.branchId))?.if(user2.kind === "CUSTOMER"), softDeletedFilter(companyAccountTable));
|
|
280064
|
+
const filter = and(eq(companyAccountTable.companyId, user2.companyId), or(eq(companyAccountTable.branchId, user2.branchId), isNull2(companyAccountTable.branchId))?.if(user2.kind === "CUSTOMER"), eq(companyAccountTable.branchId, query.branchId).if(user2.kind !== "CUSTOMER" && query.branchId), softDeletedFilter(companyAccountTable));
|
|
279954
280065
|
const baseQuery = db_default.select({
|
|
279955
280066
|
account: companyAccountTable,
|
|
279956
280067
|
totalCount: totalCountSql
|
|
@@ -285904,6 +286015,67 @@ var customerRoutes = new Elysia({
|
|
|
285904
286015
|
});
|
|
285905
286016
|
var customer_default = customerRoutes;
|
|
285906
286017
|
|
|
286018
|
+
// src/routes/crm/dashboard/admin/logic.ts
|
|
286019
|
+
var DashboardAdminLogic;
|
|
286020
|
+
((DashboardAdminLogic) => {
|
|
286021
|
+
DashboardAdminLogic.getVehicleCount = async () => {
|
|
286022
|
+
const [result] = await db_default.select({
|
|
286023
|
+
amount: count(crmVehicleTable.id).mapWith(Number)
|
|
286024
|
+
}).from(crmVehicleTable);
|
|
286025
|
+
return result ? result.amount : 0;
|
|
286026
|
+
};
|
|
286027
|
+
DashboardAdminLogic.getUbCabInspectionCount = async () => {
|
|
286028
|
+
const [result] = await db_default.select({
|
|
286029
|
+
amount: count(crmInspectionTable.id).mapWith(Number)
|
|
286030
|
+
}).from(crmInspectionTable);
|
|
286031
|
+
return result ? result.amount : 0;
|
|
286032
|
+
};
|
|
286033
|
+
DashboardAdminLogic.getWarehouseProductCount = async () => {
|
|
286034
|
+
const [result] = await db_default.select({
|
|
286035
|
+
amount: count(warehouseProductTable.id).mapWith(Number)
|
|
286036
|
+
}).from(warehouseProductTable);
|
|
286037
|
+
return result ? result.amount : 0;
|
|
286038
|
+
};
|
|
286039
|
+
DashboardAdminLogic.getWarehouseItemAmount = async () => {
|
|
286040
|
+
const [result] = await db_default.select({
|
|
286041
|
+
amount: sql3`sum(${warehouseItemTable.quantity} * ${warehouseProductTable.priceSell})`.mapWith(Number)
|
|
286042
|
+
}).from(warehouseItemTable).innerJoin(warehouseProductTable, eq(warehouseItemTable.productId, warehouseProductTable.id));
|
|
286043
|
+
return result ? result.amount : 0;
|
|
286044
|
+
};
|
|
286045
|
+
DashboardAdminLogic.getVehicleModelList = async () => {
|
|
286046
|
+
const result = await db_default.select({
|
|
286047
|
+
model: techdocVehicleKindTable.name,
|
|
286048
|
+
count: count(crmVehicleTable.id).mapWith(Number)
|
|
286049
|
+
}).from(techdocVehicleKindTable).where(eq(techdocVehicleKindTable.vehicleKindEnum, "MODEL")).leftJoin(crmVehicleTable, eq(crmVehicleTable.vehicleKindId, techdocVehicleKindTable.id)).orderBy((t2) => desc(t2.count)).limit(10);
|
|
286050
|
+
return result;
|
|
286051
|
+
};
|
|
286052
|
+
DashboardAdminLogic.getCpOrderItemTotalAmountByMonth = async () => {
|
|
286053
|
+
const result = await db_default.select({
|
|
286054
|
+
amount: sum(crmCpOrderItemTable.priceTotal).mapWith(Number),
|
|
286055
|
+
month: sql3`date_trunc('month', ${crmCpOrderItemTable.createdAt})`.as("month")
|
|
286056
|
+
}).from(crmCpOrderItemTable).groupBy((t2) => t2.month);
|
|
286057
|
+
return result;
|
|
286058
|
+
};
|
|
286059
|
+
DashboardAdminLogic.getCpOrderCountByMonth = async () => {
|
|
286060
|
+
const result = await db_default.select({
|
|
286061
|
+
count: count(crmCpOrderTable.id).mapWith(Number),
|
|
286062
|
+
month: sql3`date_trunc('month', ${crmCpOrderTable.createdAt})`.as("month")
|
|
286063
|
+
}).from(crmCpOrderTable).groupBy((t2) => t2.month);
|
|
286064
|
+
return result;
|
|
286065
|
+
};
|
|
286066
|
+
})(DashboardAdminLogic ||= {});
|
|
286067
|
+
var logic_default19 = DashboardAdminLogic;
|
|
286068
|
+
|
|
286069
|
+
// src/routes/crm/dashboard/admin/index.ts
|
|
286070
|
+
var dashboardAdminRoutes = new Elysia({
|
|
286071
|
+
prefix: "/admin",
|
|
286072
|
+
tags: ["CrmDashboardAdmin"]
|
|
286073
|
+
}).use(better_auth_default).guard({
|
|
286074
|
+
auth: true,
|
|
286075
|
+
userKind: "ADMIN"
|
|
286076
|
+
}).get("/vehicle-count", () => logic_default19.getVehicleCount()).get("/ub-cab-inspection-count", () => logic_default19.getUbCabInspectionCount()).get("/warehouse-product-count", () => logic_default19.getWarehouseProductCount()).get("/warehouse-item-amount", () => logic_default19.getWarehouseItemAmount()).get("/vehicle-model-list", () => logic_default19.getVehicleModelList()).get("/cp-order-item-total-amount-by-month", () => logic_default19.getCpOrderItemTotalAmountByMonth()).get("/cp-order-count-by-month", () => logic_default19.getCpOrderCountByMonth());
|
|
286077
|
+
var admin_default = dashboardAdminRoutes;
|
|
286078
|
+
|
|
285907
286079
|
// src/routes/crm/dashboard/logic.ts
|
|
285908
286080
|
var CrmDashboardLogic;
|
|
285909
286081
|
((CrmDashboardLogic) => {
|
|
@@ -285984,7 +286156,7 @@ var CrmDashboardLogic;
|
|
|
285984
286156
|
return result;
|
|
285985
286157
|
};
|
|
285986
286158
|
})(CrmDashboardLogic ||= {});
|
|
285987
|
-
var
|
|
286159
|
+
var logic_default20 = CrmDashboardLogic;
|
|
285988
286160
|
|
|
285989
286161
|
// src/routes/crm/dashboard/model.ts
|
|
285990
286162
|
var CrmDashboardModel;
|
|
@@ -285999,23 +286171,23 @@ var model_default15 = CrmDashboardModel;
|
|
|
285999
286171
|
var dashboardRoutes = new Elysia({
|
|
286000
286172
|
prefix: "/dashboard",
|
|
286001
286173
|
tags: ["CrmDashboard"]
|
|
286002
|
-
}).use(better_auth_default).guard({
|
|
286174
|
+
}).use(better_auth_default).use(admin_default).guard({
|
|
286003
286175
|
auth: true
|
|
286004
|
-
}).get("/car-count", async ({ user: user2, query }) =>
|
|
286176
|
+
}).get("/car-count", async ({ user: user2, query }) => logic_default20.getCarCount(user2, query), {
|
|
286005
286177
|
query: model_default15.baseQuery
|
|
286006
|
-
}).get("/cp-order-count", async ({ user: user2, query }) =>
|
|
286178
|
+
}).get("/cp-order-count", async ({ user: user2, query }) => logic_default20.getCpOrderCount(user2, query), {
|
|
286007
286179
|
query: model_default15.baseQuery
|
|
286008
|
-
}).get("/cp-order-service-count", async ({ user: user2, query }) =>
|
|
286180
|
+
}).get("/cp-order-service-count", async ({ user: user2, query }) => logic_default20.getCpOrderServiceCount(user2, query), {
|
|
286009
286181
|
query: model_default15.baseQuery
|
|
286010
|
-
}).get("/cp-order-total-amount", async ({ user: user2, query }) =>
|
|
286182
|
+
}).get("/cp-order-total-amount", async ({ user: user2, query }) => logic_default20.getCpOrderTotalAmount(user2, query), {
|
|
286011
286183
|
query: model_default15.baseQuery
|
|
286012
|
-
}).get("/most-sold-products", async ({ user: user2, query }) =>
|
|
286184
|
+
}).get("/most-sold-products", async ({ user: user2, query }) => logic_default20.getMostSelledProduct(user2, query), {
|
|
286013
286185
|
query: model_default15.baseQuery
|
|
286014
|
-
}).get("/most-sold-services", async ({ user: user2, query }) =>
|
|
286186
|
+
}).get("/most-sold-services", async ({ user: user2, query }) => logic_default20.getMostSelledService(user2, query), {
|
|
286015
286187
|
query: model_default15.baseQuery
|
|
286016
|
-
}).get("/most-sold-vehicles", async ({ user: user2, query }) =>
|
|
286188
|
+
}).get("/most-sold-vehicles", async ({ user: user2, query }) => logic_default20.getMostSelledVehicleKind(user2, query), {
|
|
286017
286189
|
query: model_default15.baseQuery
|
|
286018
|
-
}).get("/daily-sales", async ({ user: user2, query }) =>
|
|
286190
|
+
}).get("/daily-sales", async ({ user: user2, query }) => logic_default20.getCpOrderTotalAmountByDay(user2, query), {
|
|
286019
286191
|
query: model_default15.baseQuery
|
|
286020
286192
|
});
|
|
286021
286193
|
var dashboard_default = dashboardRoutes;
|
|
@@ -286331,7 +286503,7 @@ var CrmInspectionLogic;
|
|
|
286331
286503
|
};
|
|
286332
286504
|
};
|
|
286333
286505
|
})(CrmInspectionLogic ||= {});
|
|
286334
|
-
var
|
|
286506
|
+
var logic_default21 = CrmInspectionLogic;
|
|
286335
286507
|
|
|
286336
286508
|
// src/routes/crm/inspection/model.ts
|
|
286337
286509
|
var CrmInspectionModel;
|
|
@@ -286375,19 +286547,19 @@ var model_default17 = CrmInspectionModel;
|
|
|
286375
286547
|
var inspectionRoutes = new Elysia({
|
|
286376
286548
|
prefix: "/inspection",
|
|
286377
286549
|
tags: ["CrmInspection"]
|
|
286378
|
-
}).use(better_auth_default).get("/ubcab", async ({ query: { licensePlate } }) =>
|
|
286550
|
+
}).use(better_auth_default).get("/ubcab", async ({ query: { licensePlate } }) => logic_default21.selectUbCab(licensePlate), {
|
|
286379
286551
|
query: model_default17.selectUbCab,
|
|
286380
286552
|
auth: false
|
|
286381
|
-
}).guard({ auth: true }).get("/", async ({ query, user: user2 }) =>
|
|
286553
|
+
}).guard({ auth: true }).get("/", async ({ query, user: user2 }) => logic_default21.select(query, user2), {
|
|
286382
286554
|
query: model_default17.select
|
|
286383
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
286555
|
+
}).post("/", async ({ body, user: user2 }) => logic_default21.create(body, user2), {
|
|
286384
286556
|
body: model_default17.create
|
|
286385
|
-
}).get("/admin", async ({ query }) =>
|
|
286557
|
+
}).get("/admin", async ({ query }) => logic_default21.selectAdmin(query), {
|
|
286386
286558
|
query: model_default17.selectAdmin,
|
|
286387
286559
|
userKind: "ADMIN"
|
|
286388
286560
|
}).guard({
|
|
286389
286561
|
params: IdSchema
|
|
286390
|
-
}).get("/:id", async ({ params: { id }, user: user2 }) =>
|
|
286562
|
+
}).get("/:id", async ({ params: { id }, user: user2 }) => logic_default21.getById(id, user2)).post("/:id", async ({ params: { id }, user: user2 }) => logic_default21.approve(id, user2)).put("/:id", async ({ params: { id }, user: user2 }) => logic_default21.cancel(id, user2)).post("/:id/service-order", async ({ params: { id }, user: user2 }) => logic_default21.createCpOrder(id, user2));
|
|
286391
286563
|
var inspection_default = inspectionRoutes;
|
|
286392
286564
|
|
|
286393
286565
|
// src/routes/crm/reports/logic.ts
|
|
@@ -286729,7 +286901,7 @@ var CrmReportsLogic;
|
|
|
286729
286901
|
return getPaginationContent(result, query.pagination.size);
|
|
286730
286902
|
};
|
|
286731
286903
|
})(CrmReportsLogic ||= {});
|
|
286732
|
-
var
|
|
286904
|
+
var logic_default22 = CrmReportsLogic;
|
|
286733
286905
|
|
|
286734
286906
|
// src/routes/crm/reports/model.ts
|
|
286735
286907
|
var CrmReportsModel;
|
|
@@ -286839,52 +287011,52 @@ var reportsRoutes = new Elysia({
|
|
|
286839
287011
|
tags: ["CrmReports"]
|
|
286840
287012
|
}).use(better_auth_default).guard({
|
|
286841
287013
|
auth: true
|
|
286842
|
-
}).get("/sales", async ({ query, user: user2 }) =>
|
|
287014
|
+
}).get("/sales", async ({ query, user: user2 }) => logic_default22.salesReport(query, user2), {
|
|
286843
287015
|
query: model_default18.salesReportQuery
|
|
286844
|
-
}).get("/sales/summary", async ({ query, user: user2 }) =>
|
|
287016
|
+
}).get("/sales/summary", async ({ query, user: user2 }) => logic_default22.salesSummary(query, user2), {
|
|
286845
287017
|
query: model_default18.salesSummaryQuery
|
|
286846
|
-
}).get("/sales/by-period", async ({ query, user: user2 }) =>
|
|
287018
|
+
}).get("/sales/by-period", async ({ query, user: user2 }) => logic_default22.salesByPeriod(query, user2), {
|
|
286847
287019
|
query: model_default18.salesByPeriodQuery
|
|
286848
|
-
}).get("/sales/by-employee", async ({ query, user: user2 }) =>
|
|
287020
|
+
}).get("/sales/by-employee", async ({ query, user: user2 }) => logic_default22.salesByEmployee(query, user2), {
|
|
286849
287021
|
query: model_default18.salesByEmployeeQuery
|
|
286850
|
-
}).get("/payments", async ({ query, user: user2 }) =>
|
|
287022
|
+
}).get("/payments", async ({ query, user: user2 }) => logic_default22.paymentsReport(query, user2), {
|
|
286851
287023
|
query: model_default18.paymentsReportQuery
|
|
286852
287024
|
}).get("/sales/csv", async ({ query, user: user2, set: set2 }) => {
|
|
286853
|
-
const csvData = await
|
|
287025
|
+
const csvData = await logic_default22.exportSalesCSV(query, user2);
|
|
286854
287026
|
set2.headers["Content-Type"] = "text/csv";
|
|
286855
287027
|
set2.headers["Content-Disposition"] = 'attachment; filename="sales-report.csv"';
|
|
286856
287028
|
return csvData;
|
|
286857
287029
|
}, {
|
|
286858
287030
|
query: model_default18.csvExportQuery
|
|
286859
287031
|
}).get("/sales/summary/csv", async ({ query, user: user2, set: set2 }) => {
|
|
286860
|
-
const csvData = await
|
|
287032
|
+
const csvData = await logic_default22.exportSalesSummaryCSV(query, user2);
|
|
286861
287033
|
set2.headers["Content-Type"] = "text/csv";
|
|
286862
287034
|
set2.headers["Content-Disposition"] = 'attachment; filename="sales-summary.csv"';
|
|
286863
287035
|
return csvData;
|
|
286864
287036
|
}, {
|
|
286865
287037
|
query: model_default18.baseDateFilter
|
|
286866
287038
|
}).get("/sales/by-period/csv", async ({ query, user: user2, set: set2 }) => {
|
|
286867
|
-
const csvData = await
|
|
287039
|
+
const csvData = await logic_default22.exportSalesByPeriodCSV(query, user2);
|
|
286868
287040
|
set2.headers["Content-Type"] = "text/csv";
|
|
286869
287041
|
set2.headers["Content-Disposition"] = 'attachment; filename="sales-by-period.csv"';
|
|
286870
287042
|
return csvData;
|
|
286871
287043
|
}, {
|
|
286872
287044
|
query: model_default18.salesByPeriodQuery
|
|
286873
287045
|
}).get("/sales/by-employee/csv", async ({ query, user: user2, set: set2 }) => {
|
|
286874
|
-
const csvData = await
|
|
287046
|
+
const csvData = await logic_default22.exportSalesByEmployeeCSV(query, user2);
|
|
286875
287047
|
set2.headers["Content-Type"] = "text/csv";
|
|
286876
287048
|
set2.headers["Content-Disposition"] = 'attachment; filename="sales-by-employee.csv"';
|
|
286877
287049
|
return csvData;
|
|
286878
287050
|
}, {
|
|
286879
287051
|
query: model_default18.csvExportQuery
|
|
286880
287052
|
}).get("/payments/csv", async ({ query, user: user2, set: set2 }) => {
|
|
286881
|
-
const csvData = await
|
|
287053
|
+
const csvData = await logic_default22.exportPaymentsCSV(query, user2);
|
|
286882
287054
|
set2.headers["Content-Type"] = "text/csv";
|
|
286883
287055
|
set2.headers["Content-Disposition"] = 'attachment; filename="payments-report.csv"';
|
|
286884
287056
|
return csvData;
|
|
286885
287057
|
}, {
|
|
286886
287058
|
query: model_default18.csvExportQuery
|
|
286887
|
-
}).get("/cp-order", ({ query, user: user2 }) =>
|
|
287059
|
+
}).get("/cp-order", ({ query, user: user2 }) => logic_default22.cpOrderReport(query, user2), {
|
|
286888
287060
|
query: model_default18.cpOrderReport
|
|
286889
287061
|
});
|
|
286890
287062
|
var reports_default = reportsRoutes;
|
|
@@ -286948,7 +287120,7 @@ var CrmSpPackageProductLogic;
|
|
|
286948
287120
|
}).where(eq(crmSpPackageProductTable.id, id));
|
|
286949
287121
|
};
|
|
286950
287122
|
})(CrmSpPackageProductLogic ||= {});
|
|
286951
|
-
var
|
|
287123
|
+
var logic_default23 = CrmSpPackageProductLogic;
|
|
286952
287124
|
|
|
286953
287125
|
// src/routes/crm/spPackage/product/model.ts
|
|
286954
287126
|
var CrmSpPackageProductModel;
|
|
@@ -286968,17 +287140,17 @@ var productRoutes = new Elysia({
|
|
|
286968
287140
|
tags: ["CrmSpPackageProduct"]
|
|
286969
287141
|
}).use(better_auth_default).guard({
|
|
286970
287142
|
auth: true
|
|
286971
|
-
}).get("/", async ({ query }) =>
|
|
287143
|
+
}).get("/", async ({ query }) => logic_default23.select(query), {
|
|
286972
287144
|
query: model_default20.select
|
|
286973
|
-
}).post("/", async ({ body }) =>
|
|
287145
|
+
}).post("/", async ({ body }) => logic_default23.create(body), {
|
|
286974
287146
|
body: model_default20.create
|
|
286975
|
-
}).post("/many", async ({ body }) =>
|
|
287147
|
+
}).post("/many", async ({ body }) => logic_default23.createMany(body), {
|
|
286976
287148
|
body: t.Array(model_default20.create)
|
|
286977
287149
|
}).guard({
|
|
286978
287150
|
params: IdSchema
|
|
286979
|
-
}).put("/:id", async ({ params, body }) =>
|
|
287151
|
+
}).put("/:id", async ({ params, body }) => logic_default23.update(params.id, body), {
|
|
286980
287152
|
body: model_default20.update
|
|
286981
|
-
}).delete("/:id", async ({ params }) =>
|
|
287153
|
+
}).delete("/:id", async ({ params }) => logic_default23.remove(params.id));
|
|
286982
287154
|
var product_default = productRoutes;
|
|
286983
287155
|
|
|
286984
287156
|
// src/routes/crm/spPackage/service/logic.ts
|
|
@@ -287021,7 +287193,7 @@ var CrmSpPackageServiceLogic;
|
|
|
287021
287193
|
}).where(eq(crmSpPackageServiceTable.id, id));
|
|
287022
287194
|
};
|
|
287023
287195
|
})(CrmSpPackageServiceLogic ||= {});
|
|
287024
|
-
var
|
|
287196
|
+
var logic_default24 = CrmSpPackageServiceLogic;
|
|
287025
287197
|
|
|
287026
287198
|
// src/routes/crm/spPackage/service/model.ts
|
|
287027
287199
|
var CrmSpPackageServiceModel;
|
|
@@ -287041,17 +287213,17 @@ var serviceRoutes = new Elysia({
|
|
|
287041
287213
|
tags: ["CrmSpPackageService"]
|
|
287042
287214
|
}).use(better_auth_default).guard({
|
|
287043
287215
|
auth: true
|
|
287044
|
-
}).get("/", async ({ query }) =>
|
|
287216
|
+
}).get("/", async ({ query }) => logic_default24.select(query), {
|
|
287045
287217
|
query: model_default21.select
|
|
287046
|
-
}).post("/", async ({ body }) =>
|
|
287218
|
+
}).post("/", async ({ body }) => logic_default24.create(body), {
|
|
287047
287219
|
body: model_default21.create
|
|
287048
|
-
}).post("/many", async ({ body }) =>
|
|
287220
|
+
}).post("/many", async ({ body }) => logic_default24.createMany(body), {
|
|
287049
287221
|
body: t.Array(model_default21.create)
|
|
287050
287222
|
}).guard({
|
|
287051
287223
|
params: IdSchema
|
|
287052
|
-
}).put("/:id", async ({ params, body }) =>
|
|
287224
|
+
}).put("/:id", async ({ params, body }) => logic_default24.update(params.id, body), {
|
|
287053
287225
|
body: model_default21.update
|
|
287054
|
-
}).delete("/:id", async ({ params }) =>
|
|
287226
|
+
}).delete("/:id", async ({ params }) => logic_default24.remove(params.id));
|
|
287055
287227
|
var service_default = serviceRoutes;
|
|
287056
287228
|
|
|
287057
287229
|
// src/routes/crm/spPackage/index.ts
|
|
@@ -287163,7 +287335,7 @@ var InspectionFieldLogic;
|
|
|
287163
287335
|
}).where(eq(inspectionFieldTable.id, id));
|
|
287164
287336
|
};
|
|
287165
287337
|
})(InspectionFieldLogic ||= {});
|
|
287166
|
-
var
|
|
287338
|
+
var logic_default25 = InspectionFieldLogic;
|
|
287167
287339
|
|
|
287168
287340
|
// src/routes/fleet/inspection/field/model.ts
|
|
287169
287341
|
var InspectionFieldModel;
|
|
@@ -287181,13 +287353,13 @@ var fieldRoutes = new Elysia({
|
|
|
287181
287353
|
tags: ["InspectionField"]
|
|
287182
287354
|
}).use(better_auth_default).guard({
|
|
287183
287355
|
userKind: "ADMIN"
|
|
287184
|
-
}).post("/", async ({ body }) =>
|
|
287356
|
+
}).post("/", async ({ body }) => logic_default25.create(body), {
|
|
287185
287357
|
body: model_default23.create
|
|
287186
287358
|
}).guard({
|
|
287187
287359
|
params: IdSchema
|
|
287188
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
287360
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default25.update(id, body), {
|
|
287189
287361
|
body: model_default23.update
|
|
287190
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
287362
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default25.remove(id));
|
|
287191
287363
|
var field_default = fieldRoutes;
|
|
287192
287364
|
|
|
287193
287365
|
// src/routes/fleet/inspection/fieldGroup/logic.ts
|
|
@@ -287222,7 +287394,7 @@ var InspectionFieldGroupLogic;
|
|
|
287222
287394
|
}).where(eq(inspectionFieldGroupTable.id, id));
|
|
287223
287395
|
};
|
|
287224
287396
|
})(InspectionFieldGroupLogic ||= {});
|
|
287225
|
-
var
|
|
287397
|
+
var logic_default26 = InspectionFieldGroupLogic;
|
|
287226
287398
|
|
|
287227
287399
|
// src/routes/fleet/inspection/fieldGroup/model.ts
|
|
287228
287400
|
var InspectionFieldGroupModel;
|
|
@@ -287247,17 +287419,17 @@ var fieldGroupRoutes = new Elysia({
|
|
|
287247
287419
|
tags: ["InspectionFieldGroup"]
|
|
287248
287420
|
}).use(better_auth_default).guard({
|
|
287249
287421
|
userKind: "ADMIN"
|
|
287250
|
-
}).get("/", async ({ query }) =>
|
|
287422
|
+
}).get("/", async ({ query }) => logic_default26.select(query), {
|
|
287251
287423
|
query: model_default24.select,
|
|
287252
287424
|
userKind: undefined,
|
|
287253
287425
|
auth: true
|
|
287254
|
-
}).post("/", async ({ body }) =>
|
|
287426
|
+
}).post("/", async ({ body }) => logic_default26.create(body), {
|
|
287255
287427
|
body: model_default24.create
|
|
287256
287428
|
}).guard({
|
|
287257
287429
|
params: IdSchema
|
|
287258
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
287430
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default26.update(id, body), {
|
|
287259
287431
|
body: model_default24.update
|
|
287260
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
287432
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default26.remove(id)).get("/:id/field", async ({ params: { id } }) => logic_default25.select(id));
|
|
287261
287433
|
var fieldGroup_default = fieldGroupRoutes;
|
|
287262
287434
|
|
|
287263
287435
|
// src/routes/fleet/inspection/fieldResult/logic.ts
|
|
@@ -287320,7 +287492,7 @@ var InspectionFieldResultLogic;
|
|
|
287320
287492
|
}).where(and(eq(inspectionFieldResult.inspectionId, inspectionId), softDeletedFilter(inspectionFieldResult)));
|
|
287321
287493
|
};
|
|
287322
287494
|
})(InspectionFieldResultLogic ||= {});
|
|
287323
|
-
var
|
|
287495
|
+
var logic_default27 = InspectionFieldResultLogic;
|
|
287324
287496
|
|
|
287325
287497
|
// src/routes/fleet/inspection/fieldResult/model.ts
|
|
287326
287498
|
var InspectionFieldResultModel;
|
|
@@ -287343,13 +287515,13 @@ var model_default25 = InspectionFieldResultModel;
|
|
|
287343
287515
|
var fieldResultRoutes = new Elysia({
|
|
287344
287516
|
prefix: "/field-result",
|
|
287345
287517
|
tags: ["InspectionFieldResult"]
|
|
287346
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) =>
|
|
287518
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) => logic_default27.select(query), {
|
|
287347
287519
|
query: model_default25.select
|
|
287348
|
-
}).post("/create-or-update", async ({ body }) =>
|
|
287520
|
+
}).post("/create-or-update", async ({ body }) => logic_default27.createOrUpdate(body), {
|
|
287349
287521
|
body: model_default25.createOrUpdate
|
|
287350
287522
|
}).guard({
|
|
287351
287523
|
params: IdSchema
|
|
287352
|
-
}).delete("/inspection/:id/all", async ({ params: { id } }) =>
|
|
287524
|
+
}).delete("/inspection/:id/all", async ({ params: { id } }) => logic_default27.removeAll(id));
|
|
287353
287525
|
var fieldResult_default = fieldResultRoutes;
|
|
287354
287526
|
|
|
287355
287527
|
// src/routes/fleet/inspection/logic.ts
|
|
@@ -287393,7 +287565,7 @@ var InspectionLogic;
|
|
|
287393
287565
|
await db_default.delete(inspectionTable).where(eq(inspectionTable.id, id));
|
|
287394
287566
|
};
|
|
287395
287567
|
})(InspectionLogic ||= {});
|
|
287396
|
-
var
|
|
287568
|
+
var logic_default28 = InspectionLogic;
|
|
287397
287569
|
|
|
287398
287570
|
// src/routes/fleet/inspection/model.ts
|
|
287399
287571
|
var InspectionModel;
|
|
@@ -287452,7 +287624,7 @@ var InspectionScheduleLogic;
|
|
|
287452
287624
|
}).where(and(eq(inspectionScheduleTable.id, id), eq(inspectionScheduleTable.companyId, user2.companyId)));
|
|
287453
287625
|
};
|
|
287454
287626
|
})(InspectionScheduleLogic ||= {});
|
|
287455
|
-
var
|
|
287627
|
+
var logic_default29 = InspectionScheduleLogic;
|
|
287456
287628
|
|
|
287457
287629
|
// src/routes/fleet/inspection/schedule/model.ts
|
|
287458
287630
|
var InspectionScheduleModel;
|
|
@@ -287468,13 +287640,13 @@ var model_default27 = InspectionScheduleModel;
|
|
|
287468
287640
|
// src/routes/fleet/inspection/schedule/index.ts
|
|
287469
287641
|
var scheduleRoutes = new Elysia({
|
|
287470
287642
|
prefix: "/schedule"
|
|
287471
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query, user: user2 }) =>
|
|
287643
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query, user: user2 }) => logic_default29.select(query, user2), {
|
|
287472
287644
|
query: model_default27.select
|
|
287473
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
287645
|
+
}).post("/", async ({ body, user: user2 }) => logic_default29.create(body, user2), {
|
|
287474
287646
|
body: model_default27.create
|
|
287475
287647
|
}).guard({
|
|
287476
287648
|
params: IdSchema
|
|
287477
|
-
}).put("/:id", async ({ body, params: { id }, user: user2 }) =>
|
|
287649
|
+
}).put("/:id", async ({ body, params: { id }, user: user2 }) => logic_default29.update(id, body, user2), { body: model_default27.update }).delete("/:id", async ({ params: { id }, user: user2 }) => logic_default29.remove(id, user2));
|
|
287478
287650
|
var schedule_default = scheduleRoutes;
|
|
287479
287651
|
|
|
287480
287652
|
// src/routes/fleet/inspection/template/logic.ts
|
|
@@ -287539,7 +287711,7 @@ var InspectionTemplateLogic;
|
|
|
287539
287711
|
}).where(eq(inspectionTemplateFieldTable.id, id));
|
|
287540
287712
|
};
|
|
287541
287713
|
})(InspectionTemplateLogic ||= {});
|
|
287542
|
-
var
|
|
287714
|
+
var logic_default30 = InspectionTemplateLogic;
|
|
287543
287715
|
|
|
287544
287716
|
// src/routes/fleet/inspection/template/model.ts
|
|
287545
287717
|
var InspectionTemplateModel;
|
|
@@ -287564,31 +287736,31 @@ var templateRoutes = new Elysia({
|
|
|
287564
287736
|
tags: ["InspectionTemplate"]
|
|
287565
287737
|
}).use(better_auth_default).guard({
|
|
287566
287738
|
userKind: "COMPANY_ADMIN"
|
|
287567
|
-
}).get("/", async ({ query, user: user2 }) =>
|
|
287739
|
+
}).get("/", async ({ query, user: user2 }) => logic_default30.select(query, user2), {
|
|
287568
287740
|
query: model_default28.select
|
|
287569
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
287741
|
+
}).post("/", async ({ body, user: user2 }) => logic_default30.create(body, user2), {
|
|
287570
287742
|
body: model_default28.create
|
|
287571
287743
|
}).guard({
|
|
287572
287744
|
params: IdSchema
|
|
287573
|
-
}).get("/:id", async ({ params: { id }, user: user2 }) =>
|
|
287745
|
+
}).get("/:id", async ({ params: { id }, user: user2 }) => logic_default30.selectById(id, user2)).put("/:id", async ({ body, params: { id }, user: user2 }) => logic_default30.update(id, body, user2), {
|
|
287574
287746
|
body: model_default28.update
|
|
287575
|
-
}).delete("/:id", async ({ params: { id }, user: user2 }) =>
|
|
287747
|
+
}).delete("/:id", async ({ params: { id }, user: user2 }) => logic_default30.remove(id, user2)).get("/:id/field", async ({ params: { id } }) => logic_default30.selectField(id)).put("/field/:id", async ({ body, params: { id } }) => logic_default30.updateField(id, body), {
|
|
287576
287748
|
body: model_default28.updateField
|
|
287577
|
-
}).post("/:id/field", async ({ body, params: { id } }) =>
|
|
287749
|
+
}).post("/:id/field", async ({ body, params: { id } }) => logic_default30.addField(id, body), {
|
|
287578
287750
|
body: model_default28.createField
|
|
287579
|
-
}).delete("/field/:id", async ({ params: { id } }) =>
|
|
287751
|
+
}).delete("/field/:id", async ({ params: { id } }) => logic_default30.removeField(id));
|
|
287580
287752
|
var template_default = templateRoutes;
|
|
287581
287753
|
|
|
287582
287754
|
// src/routes/fleet/inspection/index.ts
|
|
287583
287755
|
var inspectionRoutes2 = new Elysia({
|
|
287584
287756
|
prefix: "/inspection"
|
|
287585
|
-
}).use(fieldGroup_default).use(field_default).use(fieldResult_default).use(template_default).use(schedule_default).use(better_auth_default).guard({ auth: true }).get("/", async ({ query, user: user2 }) =>
|
|
287757
|
+
}).use(fieldGroup_default).use(field_default).use(fieldResult_default).use(template_default).use(schedule_default).use(better_auth_default).guard({ auth: true }).get("/", async ({ query, user: user2 }) => logic_default28.select(query, user2), {
|
|
287586
287758
|
query: model_default26.select
|
|
287587
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
287759
|
+
}).post("/", async ({ body, user: user2 }) => logic_default28.create(body, user2).catch((err2) => console.error(err2)), {
|
|
287588
287760
|
body: model_default26.create
|
|
287589
287761
|
}).guard({
|
|
287590
287762
|
params: IdSchema
|
|
287591
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
287763
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default28.update(id, body), {
|
|
287592
287764
|
body: model_default26.update
|
|
287593
287765
|
});
|
|
287594
287766
|
var inspection_default2 = inspectionRoutes2;
|
|
@@ -287624,7 +287796,7 @@ var MachineLogic;
|
|
|
287624
287796
|
}).where(and(eq(companyMachineTable.id, id), eq(companyMachineTable.companyId, user2.companyId).if(user2.kind !== "ADMIN")));
|
|
287625
287797
|
};
|
|
287626
287798
|
})(MachineLogic ||= {});
|
|
287627
|
-
var
|
|
287799
|
+
var logic_default31 = MachineLogic;
|
|
287628
287800
|
|
|
287629
287801
|
// src/routes/fleet/machine/model.ts
|
|
287630
287802
|
var MachineModel;
|
|
@@ -287648,15 +287820,15 @@ var machineRoutes = new Elysia({
|
|
|
287648
287820
|
tags: ["FleetMachine"]
|
|
287649
287821
|
}).use(better_auth_default).guard({
|
|
287650
287822
|
auth: true
|
|
287651
|
-
}).get("/", async ({ query, user: user2 }) =>
|
|
287823
|
+
}).get("/", async ({ query, user: user2 }) => logic_default31.select(query, user2), {
|
|
287652
287824
|
query: model_default29.select
|
|
287653
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
287825
|
+
}).post("/", async ({ body, user: user2 }) => logic_default31.create(body, user2), {
|
|
287654
287826
|
body: model_default29.create
|
|
287655
287827
|
}).guard({
|
|
287656
287828
|
params: IdSchema
|
|
287657
|
-
}).put("/:id", async ({ body, params: { id }, user: user2 }) =>
|
|
287829
|
+
}).put("/:id", async ({ body, params: { id }, user: user2 }) => logic_default31.update(id, body, user2), {
|
|
287658
287830
|
body: model_default29.update
|
|
287659
|
-
}).delete("/:id", async ({ params: { id }, user: user2 }) =>
|
|
287831
|
+
}).delete("/:id", async ({ params: { id }, user: user2 }) => logic_default31.remove(id, user2));
|
|
287660
287832
|
var machine_default = machineRoutes;
|
|
287661
287833
|
|
|
287662
287834
|
// src/routes/fleet/ms/record/logic.ts
|
|
@@ -287680,7 +287852,7 @@ var MsRecordLogic;
|
|
|
287680
287852
|
await db_default.delete(maintenanceServiceRecordTable).where(eq(maintenanceServiceRecordTable.id, id));
|
|
287681
287853
|
};
|
|
287682
287854
|
})(MsRecordLogic ||= {});
|
|
287683
|
-
var
|
|
287855
|
+
var logic_default32 = MsRecordLogic;
|
|
287684
287856
|
|
|
287685
287857
|
// src/routes/fleet/ms/record/model.ts
|
|
287686
287858
|
var MsRecordModel;
|
|
@@ -287710,7 +287882,7 @@ var MsRecordProductLogic;
|
|
|
287710
287882
|
await db_default.update(maintenanceServiceRecordProductTable).set({ deletedAt: nowSql_helper_default }).where(eq(maintenanceServiceRecordProductTable.id, id));
|
|
287711
287883
|
};
|
|
287712
287884
|
})(MsRecordProductLogic ||= {});
|
|
287713
|
-
var
|
|
287885
|
+
var logic_default33 = MsRecordProductLogic;
|
|
287714
287886
|
|
|
287715
287887
|
// src/routes/fleet/ms/record/product/model.ts
|
|
287716
287888
|
var MsRecordProductModel;
|
|
@@ -287731,15 +287903,15 @@ var productRoutes2 = new Elysia({
|
|
|
287731
287903
|
tags: ["FleetMsRecordProduct"]
|
|
287732
287904
|
}).use(better_auth_default).guard({
|
|
287733
287905
|
auth: true
|
|
287734
|
-
}).get("/", async ({ query }) =>
|
|
287906
|
+
}).get("/", async ({ query }) => logic_default33.select(query), {
|
|
287735
287907
|
query: model_default31.select
|
|
287736
|
-
}).post("/", async ({ body }) =>
|
|
287908
|
+
}).post("/", async ({ body }) => logic_default33.create(body), {
|
|
287737
287909
|
body: model_default31.create
|
|
287738
287910
|
}).guard({
|
|
287739
287911
|
params: IdSchema
|
|
287740
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
287912
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default33.update(id, body), {
|
|
287741
287913
|
body: model_default31.update
|
|
287742
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
287914
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default33.remove(id));
|
|
287743
287915
|
var product_default2 = productRoutes2;
|
|
287744
287916
|
|
|
287745
287917
|
// src/routes/fleet/ms/record/index.ts
|
|
@@ -287748,15 +287920,15 @@ var recordRoutes = new Elysia({
|
|
|
287748
287920
|
tags: ["FleetMsRecord"]
|
|
287749
287921
|
}).use(product_default2).use(better_auth_default).guard({
|
|
287750
287922
|
auth: true
|
|
287751
|
-
}).get("/", async ({ query }) =>
|
|
287923
|
+
}).get("/", async ({ query }) => logic_default32.select(query), {
|
|
287752
287924
|
query: model_default30.select
|
|
287753
|
-
}).post("/", async ({ body }) =>
|
|
287925
|
+
}).post("/", async ({ body }) => logic_default32.create(body), {
|
|
287754
287926
|
body: model_default30.create
|
|
287755
287927
|
}).guard({
|
|
287756
287928
|
params: IdSchema
|
|
287757
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
287929
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default32.update(id, body), {
|
|
287758
287930
|
body: model_default30.update
|
|
287759
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
287931
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default32.remove(id));
|
|
287760
287932
|
var record_default = recordRoutes;
|
|
287761
287933
|
|
|
287762
287934
|
// src/routes/fleet/ms/index.ts
|
|
@@ -287833,7 +288005,7 @@ var PmPlanLogic;
|
|
|
287833
288005
|
}).where(and(eq(pmPlanTable.id, id), eq(pmPlanTable.companyId, user2.companyId)));
|
|
287834
288006
|
};
|
|
287835
288007
|
})(PmPlanLogic ||= {});
|
|
287836
|
-
var
|
|
288008
|
+
var logic_default34 = PmPlanLogic;
|
|
287837
288009
|
|
|
287838
288010
|
// src/routes/fleet/pm/plan/machine/logic.ts
|
|
287839
288011
|
var PmPlanLogic2;
|
|
@@ -287876,7 +288048,7 @@ var PmPlanLogic2;
|
|
|
287876
288048
|
}).where(and(eq(pmPlanMachineTable.id, id)));
|
|
287877
288049
|
};
|
|
287878
288050
|
})(PmPlanLogic2 ||= {});
|
|
287879
|
-
var
|
|
288051
|
+
var logic_default35 = PmPlanLogic2;
|
|
287880
288052
|
|
|
287881
288053
|
// src/routes/fleet/pm/plan/machine/model.ts
|
|
287882
288054
|
var PmPlanMachineModel;
|
|
@@ -287904,17 +288076,17 @@ var machineRoutes2 = new Elysia({
|
|
|
287904
288076
|
tags: ["PmPlanMachine"]
|
|
287905
288077
|
}).use(better_auth_default).guard({
|
|
287906
288078
|
auth: true
|
|
287907
|
-
}).get("/", async ({ query }) =>
|
|
288079
|
+
}).get("/", async ({ query }) => logic_default35.select(query), {
|
|
287908
288080
|
query: model_default32.select
|
|
287909
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
288081
|
+
}).post("/", async ({ body, user: user2 }) => logic_default35.create(body, user2), {
|
|
287910
288082
|
body: model_default32.create
|
|
287911
|
-
}).post("/many", async ({ body }) =>
|
|
288083
|
+
}).post("/many", async ({ body }) => logic_default35.createMany(body), {
|
|
287912
288084
|
body: model_default32.createMany
|
|
287913
288085
|
}).guard({
|
|
287914
288086
|
params: IdSchema
|
|
287915
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
288087
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default35.update(id, body), {
|
|
287916
288088
|
body: model_default32.update
|
|
287917
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
288089
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default35.remove(id));
|
|
287918
288090
|
var machine_default2 = machineRoutes2;
|
|
287919
288091
|
|
|
287920
288092
|
// src/routes/fleet/pm/plan/model.ts
|
|
@@ -287967,7 +288139,7 @@ var PmPlanProductLogic;
|
|
|
287967
288139
|
}).where(and(eq(pmPlanProductTable.id, id)));
|
|
287968
288140
|
};
|
|
287969
288141
|
})(PmPlanProductLogic ||= {});
|
|
287970
|
-
var
|
|
288142
|
+
var logic_default36 = PmPlanProductLogic;
|
|
287971
288143
|
|
|
287972
288144
|
// src/routes/fleet/pm/plan/product/model.ts
|
|
287973
288145
|
var PmPlanProductModel;
|
|
@@ -287992,17 +288164,17 @@ var productRoutes3 = new Elysia({
|
|
|
287992
288164
|
tags: ["PmPlanProduct"]
|
|
287993
288165
|
}).use(better_auth_default).guard({
|
|
287994
288166
|
auth: true
|
|
287995
|
-
}).get("/", async ({ query }) =>
|
|
288167
|
+
}).get("/", async ({ query }) => logic_default36.select(query), {
|
|
287996
288168
|
query: model_default34.select
|
|
287997
|
-
}).post("/", async ({ body }) =>
|
|
288169
|
+
}).post("/", async ({ body }) => logic_default36.create(body), {
|
|
287998
288170
|
body: model_default34.create
|
|
287999
|
-
}).post("/many", async ({ body }) =>
|
|
288171
|
+
}).post("/many", async ({ body }) => logic_default36.createMany(body), {
|
|
288000
288172
|
body: model_default34.createMany
|
|
288001
288173
|
}).guard({
|
|
288002
288174
|
params: IdSchema
|
|
288003
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
288175
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default36.update(id, body), {
|
|
288004
288176
|
body: model_default34.update
|
|
288005
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
288177
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default36.remove(id));
|
|
288006
288178
|
var product_default3 = productRoutes3;
|
|
288007
288179
|
|
|
288008
288180
|
// src/routes/fleet/pm/plan/index.ts
|
|
@@ -288011,15 +288183,15 @@ var planRoutes = new Elysia({
|
|
|
288011
288183
|
tags: ["PmPlan"]
|
|
288012
288184
|
}).use(better_auth_default).use(machine_default2).use(product_default3).guard({
|
|
288013
288185
|
userKind: "COMPANY_ADMIN"
|
|
288014
|
-
}).get("/", async ({ query, user: user2 }) =>
|
|
288186
|
+
}).get("/", async ({ query, user: user2 }) => logic_default34.select(query, user2), {
|
|
288015
288187
|
query: model_default33.select
|
|
288016
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
288188
|
+
}).post("/", async ({ body, user: user2 }) => logic_default34.create(body, user2), {
|
|
288017
288189
|
body: model_default33.create
|
|
288018
288190
|
}).guard({
|
|
288019
288191
|
params: IdSchema
|
|
288020
|
-
}).put("/:id", async ({ body, params: { id }, user: user2 }) =>
|
|
288192
|
+
}).put("/:id", async ({ body, params: { id }, user: user2 }) => logic_default34.update(id, body, user2), {
|
|
288021
288193
|
body: model_default33.update
|
|
288022
|
-
}).delete("/:id", async ({ params: { id }, user: user2 }) =>
|
|
288194
|
+
}).delete("/:id", async ({ params: { id }, user: user2 }) => logic_default34.remove(id, user2));
|
|
288023
288195
|
var plan_default = planRoutes;
|
|
288024
288196
|
|
|
288025
288197
|
// src/routes/fleet/pm/template/logic.ts
|
|
@@ -288054,7 +288226,7 @@ var PmTemplateLogic;
|
|
|
288054
288226
|
}).where(and(eq(pmTemplateTable.id, id), eq(pmTemplateTable.companyId, user2.companyId).if(user2.kind !== "ADMIN")));
|
|
288055
288227
|
};
|
|
288056
288228
|
})(PmTemplateLogic ||= {});
|
|
288057
|
-
var
|
|
288229
|
+
var logic_default37 = PmTemplateLogic;
|
|
288058
288230
|
|
|
288059
288231
|
// src/routes/fleet/pm/template/model.ts
|
|
288060
288232
|
var PmTemplateModel;
|
|
@@ -288097,7 +288269,7 @@ var PmTemplateProductLogic;
|
|
|
288097
288269
|
}).where(and(eq(pmTemplateProductTable.id, id)));
|
|
288098
288270
|
};
|
|
288099
288271
|
})(PmTemplateProductLogic ||= {});
|
|
288100
|
-
var
|
|
288272
|
+
var logic_default38 = PmTemplateProductLogic;
|
|
288101
288273
|
|
|
288102
288274
|
// src/routes/fleet/pm/template/product/model.ts
|
|
288103
288275
|
var PmTemplateProductModel;
|
|
@@ -288121,15 +288293,15 @@ var productRoutes4 = new Elysia({
|
|
|
288121
288293
|
tags: ["PmTemplateProduct"]
|
|
288122
288294
|
}).use(better_auth_default).guard({
|
|
288123
288295
|
userKind: "COMPANY_ADMIN"
|
|
288124
|
-
}).get("/", async ({ query }) =>
|
|
288296
|
+
}).get("/", async ({ query }) => logic_default38.select(query), {
|
|
288125
288297
|
query: model_default36.select
|
|
288126
|
-
}).post("/", async ({ body }) =>
|
|
288298
|
+
}).post("/", async ({ body }) => logic_default38.create(body), {
|
|
288127
288299
|
body: model_default36.create
|
|
288128
288300
|
}).guard({
|
|
288129
288301
|
params: IdSchema
|
|
288130
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
288302
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default38.update(id, body), {
|
|
288131
288303
|
body: model_default36.update
|
|
288132
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
288304
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default38.remove(id));
|
|
288133
288305
|
var product_default4 = productRoutes4;
|
|
288134
288306
|
|
|
288135
288307
|
// src/routes/fleet/pm/template/index.ts
|
|
@@ -288138,15 +288310,15 @@ var templateRoutes2 = new Elysia({
|
|
|
288138
288310
|
tags: ["PmTemplate"]
|
|
288139
288311
|
}).use(better_auth_default).use(product_default4).guard({
|
|
288140
288312
|
userKind: "COMPANY_ADMIN"
|
|
288141
|
-
}).get("/", async ({ query, user: user2 }) =>
|
|
288313
|
+
}).get("/", async ({ query, user: user2 }) => logic_default37.select(query, user2), {
|
|
288142
288314
|
query: model_default35.select
|
|
288143
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
288315
|
+
}).post("/", async ({ body, user: user2 }) => logic_default37.create(body, user2), {
|
|
288144
288316
|
body: model_default35.create
|
|
288145
288317
|
}).guard({
|
|
288146
288318
|
params: IdSchema
|
|
288147
|
-
}).put("/:id", async ({ body, params: { id }, user: user2 }) =>
|
|
288319
|
+
}).put("/:id", async ({ body, params: { id }, user: user2 }) => logic_default37.update(id, body, user2), {
|
|
288148
288320
|
body: model_default35.update
|
|
288149
|
-
}).delete("/:id", async ({ params: { id }, user: user2 }) =>
|
|
288321
|
+
}).delete("/:id", async ({ params: { id }, user: user2 }) => logic_default37.remove(id, user2));
|
|
288150
288322
|
var template_default2 = templateRoutes2;
|
|
288151
288323
|
|
|
288152
288324
|
// src/routes/fleet/pm/index.ts
|
|
@@ -288181,7 +288353,7 @@ var WorkOrderLogic;
|
|
|
288181
288353
|
}).where(eq(workOrderTable.id, id));
|
|
288182
288354
|
};
|
|
288183
288355
|
})(WorkOrderLogic ||= {});
|
|
288184
|
-
var
|
|
288356
|
+
var logic_default39 = WorkOrderLogic;
|
|
288185
288357
|
|
|
288186
288358
|
// src/routes/fleet/work-order/model.ts
|
|
288187
288359
|
var WorkOrderModel;
|
|
@@ -288228,7 +288400,7 @@ var WorkOrderTaskLogic;
|
|
|
288228
288400
|
}).where(eq(workOrderTaskTable.id, id));
|
|
288229
288401
|
};
|
|
288230
288402
|
})(WorkOrderTaskLogic ||= {});
|
|
288231
|
-
var
|
|
288403
|
+
var logic_default40 = WorkOrderTaskLogic;
|
|
288232
288404
|
|
|
288233
288405
|
// src/routes/fleet/work-order/task/model.ts
|
|
288234
288406
|
var WorkOrderTaskModel;
|
|
@@ -288250,30 +288422,30 @@ var model_default38 = WorkOrderTaskModel;
|
|
|
288250
288422
|
var workOrderTaskRoutes = new Elysia({
|
|
288251
288423
|
prefix: "/task",
|
|
288252
288424
|
tags: ["WorkOrderTask"]
|
|
288253
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) =>
|
|
288425
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) => logic_default40.select(query), {
|
|
288254
288426
|
query: model_default38.select
|
|
288255
|
-
}).post("/", async ({ body }) =>
|
|
288427
|
+
}).post("/", async ({ body }) => logic_default40.create(body), {
|
|
288256
288428
|
body: model_default38.create
|
|
288257
288429
|
}).guard({
|
|
288258
288430
|
params: IdSchema
|
|
288259
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
288431
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default40.update(id, body), {
|
|
288260
288432
|
body: model_default38.update
|
|
288261
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
288433
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default40.remove(id));
|
|
288262
288434
|
var task_default = workOrderTaskRoutes;
|
|
288263
288435
|
|
|
288264
288436
|
// src/routes/fleet/work-order/index.ts
|
|
288265
288437
|
var workOrderRoutes = new Elysia({
|
|
288266
288438
|
prefix: "/work-order",
|
|
288267
288439
|
tags: ["WorkOrder"]
|
|
288268
|
-
}).use(better_auth_default).use(task_default).guard({ auth: true }).get("/", async ({ query }) =>
|
|
288440
|
+
}).use(better_auth_default).use(task_default).guard({ auth: true }).get("/", async ({ query }) => logic_default39.select(query), {
|
|
288269
288441
|
query: model_default37.select
|
|
288270
|
-
}).post("/", async ({ body }) =>
|
|
288442
|
+
}).post("/", async ({ body }) => logic_default39.create(body), {
|
|
288271
288443
|
body: model_default37.create
|
|
288272
288444
|
}).guard({
|
|
288273
288445
|
params: IdSchema
|
|
288274
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
288446
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default39.update(id, body), {
|
|
288275
288447
|
body: model_default37.update
|
|
288276
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
288448
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default39.remove(id));
|
|
288277
288449
|
var work_order_default = workOrderRoutes;
|
|
288278
288450
|
|
|
288279
288451
|
// src/routes/fleet/index.ts
|
|
@@ -288362,7 +288534,7 @@ var NotificationChannelAuthUserLogic;
|
|
|
288362
288534
|
return subscriptions;
|
|
288363
288535
|
};
|
|
288364
288536
|
})(NotificationChannelAuthUserLogic ||= {});
|
|
288365
|
-
var
|
|
288537
|
+
var logic_default41 = NotificationChannelAuthUserLogic;
|
|
288366
288538
|
|
|
288367
288539
|
// src/routes/notification/channelAuthUser/model.ts
|
|
288368
288540
|
var NotificationChannelAuthUserModel;
|
|
@@ -288386,11 +288558,11 @@ var channelAuthUserRoutes = new Elysia({
|
|
|
288386
288558
|
tags: ["NotificationChannelAuthUser"]
|
|
288387
288559
|
}).use(better_auth_default).guard({
|
|
288388
288560
|
auth: true
|
|
288389
|
-
}).post("/subscribe", async ({ body }) =>
|
|
288561
|
+
}).post("/subscribe", async ({ body }) => logic_default41.subscribe(body), {
|
|
288390
288562
|
body: model_default39.subscribe
|
|
288391
288563
|
}).post("/unsubscribe", async ({ body }) => {
|
|
288392
288564
|
const { nmChannelId, authUserId } = body;
|
|
288393
|
-
return
|
|
288565
|
+
return logic_default41.unsubscribe(nmChannelId, authUserId);
|
|
288394
288566
|
}, {
|
|
288395
288567
|
body: t.Object({
|
|
288396
288568
|
nmChannelId: t.String({ format: "uuid" }),
|
|
@@ -288398,7 +288570,7 @@ var channelAuthUserRoutes = new Elysia({
|
|
|
288398
288570
|
})
|
|
288399
288571
|
}).put("/update", async ({ body }) => {
|
|
288400
288572
|
const { nmChannelId, authUserId, ...updateData } = body;
|
|
288401
|
-
return
|
|
288573
|
+
return logic_default41.update(nmChannelId, authUserId, updateData);
|
|
288402
288574
|
}, {
|
|
288403
288575
|
body: t.Composite([
|
|
288404
288576
|
model_default39.update,
|
|
@@ -288407,7 +288579,7 @@ var channelAuthUserRoutes = new Elysia({
|
|
|
288407
288579
|
authUserId: t.String()
|
|
288408
288580
|
})
|
|
288409
288581
|
])
|
|
288410
|
-
}).get("/my-channels", async ({ user: user2 }) =>
|
|
288582
|
+
}).get("/my-channels", async ({ user: user2 }) => logic_default41.getUserChannels(user2));
|
|
288411
288583
|
var channelAuthUser_default = channelAuthUserRoutes;
|
|
288412
288584
|
|
|
288413
288585
|
// src/routes/notification/channel/logic.ts
|
|
@@ -288447,7 +288619,7 @@ var NotificationChannelLogic;
|
|
|
288447
288619
|
}).where(eq(nmChannelTable.id, id));
|
|
288448
288620
|
};
|
|
288449
288621
|
})(NotificationChannelLogic ||= {});
|
|
288450
|
-
var
|
|
288622
|
+
var logic_default42 = NotificationChannelLogic;
|
|
288451
288623
|
|
|
288452
288624
|
// src/routes/notification/channel/model.ts
|
|
288453
288625
|
var NotificationChannelModel;
|
|
@@ -288472,15 +288644,15 @@ var channelRoutes = new Elysia({
|
|
|
288472
288644
|
tags: ["NotificationChannel"]
|
|
288473
288645
|
}).use(better_auth_default).guard({
|
|
288474
288646
|
auth: true
|
|
288475
|
-
}).get("/", async ({ query }) =>
|
|
288647
|
+
}).get("/", async ({ query }) => logic_default42.select(query), {
|
|
288476
288648
|
query: model_default40.select
|
|
288477
|
-
}).post("/", async ({ body }) =>
|
|
288649
|
+
}).post("/", async ({ body }) => logic_default42.create(body), {
|
|
288478
288650
|
body: model_default40.create
|
|
288479
288651
|
}).guard({
|
|
288480
288652
|
params: IdSchema
|
|
288481
|
-
}).put("/:id", async ({ params, body }) =>
|
|
288653
|
+
}).put("/:id", async ({ params, body }) => logic_default42.update(params.id, body), {
|
|
288482
288654
|
body: model_default40.update
|
|
288483
|
-
}).delete("/:id", async ({ params }) =>
|
|
288655
|
+
}).delete("/:id", async ({ params }) => logic_default42.remove(params.id));
|
|
288484
288656
|
var channel_default = channelRoutes;
|
|
288485
288657
|
|
|
288486
288658
|
// src/routes/notification/device/logic.ts
|
|
@@ -288533,7 +288705,7 @@ var NotificationDeviceLogic;
|
|
|
288533
288705
|
return result;
|
|
288534
288706
|
};
|
|
288535
288707
|
})(NotificationDeviceLogic ||= {});
|
|
288536
|
-
var
|
|
288708
|
+
var logic_default43 = NotificationDeviceLogic;
|
|
288537
288709
|
|
|
288538
288710
|
// src/routes/notification/device/model.ts
|
|
288539
288711
|
var NotificationDeviceModel;
|
|
@@ -288559,15 +288731,15 @@ var deviceRoutes = new Elysia({
|
|
|
288559
288731
|
tags: ["NotificationDevice"]
|
|
288560
288732
|
}).use(better_auth_default).guard({
|
|
288561
288733
|
auth: true
|
|
288562
|
-
}).get("/", async ({ query, user: user2 }) =>
|
|
288734
|
+
}).get("/", async ({ query, user: user2 }) => logic_default43.select(query, user2), {
|
|
288563
288735
|
query: model_default41.select
|
|
288564
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
288736
|
+
}).post("/", async ({ body, user: user2 }) => logic_default43.create(body, user2), {
|
|
288565
288737
|
body: model_default41.create
|
|
288566
288738
|
}).guard({
|
|
288567
288739
|
params: IdSchema
|
|
288568
|
-
}).put("/:id", async ({ params, body, user: user2 }) =>
|
|
288740
|
+
}).put("/:id", async ({ params, body, user: user2 }) => logic_default43.update(params.id, body, user2), {
|
|
288569
288741
|
body: model_default41.update
|
|
288570
|
-
}).delete("/:id", async ({ params, user: user2 }) =>
|
|
288742
|
+
}).delete("/:id", async ({ params, user: user2 }) => logic_default43.remove(params.id, user2));
|
|
288571
288743
|
var device_default = deviceRoutes;
|
|
288572
288744
|
|
|
288573
288745
|
// src/routes/notification/message/logic.ts
|
|
@@ -288601,7 +288773,7 @@ var NotificationMessageLogic;
|
|
|
288601
288773
|
return result;
|
|
288602
288774
|
};
|
|
288603
288775
|
})(NotificationMessageLogic ||= {});
|
|
288604
|
-
var
|
|
288776
|
+
var logic_default44 = NotificationMessageLogic;
|
|
288605
288777
|
|
|
288606
288778
|
// src/routes/notification/message/model.ts
|
|
288607
288779
|
var NotificationMessageModel;
|
|
@@ -288628,11 +288800,11 @@ var messageRoutes = new Elysia({
|
|
|
288628
288800
|
tags: ["NotificationMessage"]
|
|
288629
288801
|
}).use(better_auth_default).guard({
|
|
288630
288802
|
auth: true
|
|
288631
|
-
}).get("/", async ({ query }) =>
|
|
288803
|
+
}).get("/", async ({ query }) => logic_default44.select(query), {
|
|
288632
288804
|
query: model_default42.select
|
|
288633
288805
|
}).guard({
|
|
288634
288806
|
params: IdSchema
|
|
288635
|
-
}).put("/:id/state", async ({ params, body }) =>
|
|
288807
|
+
}).put("/:id/state", async ({ params, body }) => logic_default44.updateState(params.id, body), {
|
|
288636
288808
|
body: model_default42.updateState
|
|
288637
288809
|
});
|
|
288638
288810
|
var message_default = messageRoutes;
|
|
@@ -288827,7 +288999,7 @@ var NotificationLogic;
|
|
|
288827
288999
|
}).where(eq(nmNotificationTable.id, id));
|
|
288828
289000
|
};
|
|
288829
289001
|
})(NotificationLogic ||= {});
|
|
288830
|
-
var
|
|
289002
|
+
var logic_default45 = NotificationLogic;
|
|
288831
289003
|
|
|
288832
289004
|
// src/routes/notification/notification/model.ts
|
|
288833
289005
|
var NotificationModel;
|
|
@@ -288857,17 +289029,17 @@ var notificationRoutes = new Elysia({
|
|
|
288857
289029
|
tags: ["Notification"]
|
|
288858
289030
|
}).use(better_auth_default).guard({
|
|
288859
289031
|
auth: true
|
|
288860
|
-
}).get("/", async ({ query }) =>
|
|
289032
|
+
}).get("/", async ({ query }) => logic_default45.select(query), {
|
|
288861
289033
|
query: model_default43.select
|
|
288862
|
-
}).post("/", async ({ body }) =>
|
|
289034
|
+
}).post("/", async ({ body }) => logic_default45.create(body), {
|
|
288863
289035
|
body: model_default43.create
|
|
288864
|
-
}).post("/send", async ({ body }) =>
|
|
289036
|
+
}).post("/send", async ({ body }) => logic_default45.send(body), {
|
|
288865
289037
|
body: model_default43.send
|
|
288866
289038
|
}).guard({
|
|
288867
289039
|
params: IdSchema
|
|
288868
|
-
}).put("/:id", async ({ params, body }) =>
|
|
289040
|
+
}).put("/:id", async ({ params, body }) => logic_default45.update(params.id, body), {
|
|
288869
289041
|
body: model_default43.update
|
|
288870
|
-
}).delete("/:id", async ({ params }) =>
|
|
289042
|
+
}).delete("/:id", async ({ params }) => logic_default45.remove(params.id));
|
|
288871
289043
|
var notification_default = notificationRoutes;
|
|
288872
289044
|
|
|
288873
289045
|
// src/routes/notification/index.ts
|
|
@@ -289106,7 +289278,7 @@ var PermissionLogic;
|
|
|
289106
289278
|
return permissions;
|
|
289107
289279
|
};
|
|
289108
289280
|
})(PermissionLogic ||= {});
|
|
289109
|
-
var
|
|
289281
|
+
var logic_default46 = PermissionLogic;
|
|
289110
289282
|
|
|
289111
289283
|
// src/routes/permission/model.ts
|
|
289112
289284
|
var PermissionModel;
|
|
@@ -289137,7 +289309,7 @@ var permissionRoutes = new Elysia({
|
|
|
289137
289309
|
return permissionList;
|
|
289138
289310
|
}, {
|
|
289139
289311
|
permission: "PERMISSION_ADD"
|
|
289140
|
-
}).post("/", ({ body }) =>
|
|
289312
|
+
}).post("/", ({ body }) => logic_default46.addPermission(body), {
|
|
289141
289313
|
body: model_default44.addPermission,
|
|
289142
289314
|
permission: "PERMISSION_ADD",
|
|
289143
289315
|
beforeHandle({ status: status2, body, permissions, publicPermissions }) {
|
|
@@ -289147,7 +289319,7 @@ var permissionRoutes = new Elysia({
|
|
|
289147
289319
|
}
|
|
289148
289320
|
}).group("/group", (app2) => app2.guard({
|
|
289149
289321
|
permission: "PERMISSION_GROUP_ALL"
|
|
289150
|
-
}).get("/", async ({ query }) => await
|
|
289322
|
+
}).get("/", async ({ query }) => await logic_default46.selectGroups(query), {
|
|
289151
289323
|
query: model_default44.select
|
|
289152
289324
|
}).post("/", async ({ body }) => await groupService.create(body), {
|
|
289153
289325
|
body: model_default44.create
|
|
@@ -289195,7 +289367,7 @@ var TechdocProductCategoryLogic;
|
|
|
289195
289367
|
}).where(eq(techdocProductCategoryTable.id, id));
|
|
289196
289368
|
};
|
|
289197
289369
|
})(TechdocProductCategoryLogic ||= {});
|
|
289198
|
-
var
|
|
289370
|
+
var logic_default47 = TechdocProductCategoryLogic;
|
|
289199
289371
|
|
|
289200
289372
|
// src/routes/techdoc/productCategory/model.ts
|
|
289201
289373
|
var TechdocProductCategoryModel;
|
|
@@ -289218,13 +289390,13 @@ var model_default45 = TechdocProductCategoryModel;
|
|
|
289218
289390
|
var productCategoryRoutes = new Elysia({
|
|
289219
289391
|
prefix: "/product-category",
|
|
289220
289392
|
tags: ["TechdocProductCategory"]
|
|
289221
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) =>
|
|
289393
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) => logic_default47.select(query), {
|
|
289222
289394
|
query: model_default45.select
|
|
289223
|
-
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) =>
|
|
289395
|
+
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) => logic_default47.create(body), {
|
|
289224
289396
|
body: model_default45.create
|
|
289225
|
-
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) =>
|
|
289397
|
+
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) => logic_default47.update(id, body), {
|
|
289226
289398
|
body: model_default45.update
|
|
289227
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
289399
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default47.remove(id));
|
|
289228
289400
|
var productCategory_default = productCategoryRoutes;
|
|
289229
289401
|
|
|
289230
289402
|
// src/routes/techdoc/productKind/logic.ts
|
|
@@ -289259,7 +289431,7 @@ var TechdocProductKindLogic;
|
|
|
289259
289431
|
}).where(eq(techdocProductKindTable.id, id));
|
|
289260
289432
|
};
|
|
289261
289433
|
})(TechdocProductKindLogic ||= {});
|
|
289262
|
-
var
|
|
289434
|
+
var logic_default48 = TechdocProductKindLogic;
|
|
289263
289435
|
|
|
289264
289436
|
// src/routes/techdoc/productKind/model.ts
|
|
289265
289437
|
var TechdocProductKindModel;
|
|
@@ -289283,13 +289455,13 @@ var model_default46 = TechdocProductKindModel;
|
|
|
289283
289455
|
var productKindRoutes = new Elysia({
|
|
289284
289456
|
prefix: "/product-kind",
|
|
289285
289457
|
tags: ["TechdocProductKind"]
|
|
289286
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) =>
|
|
289458
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) => logic_default48.select(query), {
|
|
289287
289459
|
query: model_default46.select
|
|
289288
|
-
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) =>
|
|
289460
|
+
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) => logic_default48.create(body), {
|
|
289289
289461
|
body: model_default46.create
|
|
289290
|
-
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) =>
|
|
289462
|
+
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) => logic_default48.update(id, body), {
|
|
289291
289463
|
body: model_default46.update
|
|
289292
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
289464
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default48.remove(id));
|
|
289293
289465
|
var productKind_default = productKindRoutes;
|
|
289294
289466
|
|
|
289295
289467
|
// src/routes/techdoc/productKindRelate/logic.ts
|
|
@@ -289326,7 +289498,7 @@ var TechdocProductKindRelateLogic;
|
|
|
289326
289498
|
}).where(eq(techdocProductKindRelateTable.id, id));
|
|
289327
289499
|
};
|
|
289328
289500
|
})(TechdocProductKindRelateLogic ||= {});
|
|
289329
|
-
var
|
|
289501
|
+
var logic_default49 = TechdocProductKindRelateLogic;
|
|
289330
289502
|
|
|
289331
289503
|
// src/routes/techdoc/productKindRelate/model.ts
|
|
289332
289504
|
var TechdocProductKindRelateModel;
|
|
@@ -289352,13 +289524,13 @@ var model_default47 = TechdocProductKindRelateModel;
|
|
|
289352
289524
|
var productKindRelateRoutes = new Elysia({
|
|
289353
289525
|
prefix: "/product-kind-relate",
|
|
289354
289526
|
tags: ["TechdocProductKindRelate"]
|
|
289355
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) =>
|
|
289527
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) => logic_default49.select(query), {
|
|
289356
289528
|
query: model_default47.select
|
|
289357
|
-
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) =>
|
|
289529
|
+
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) => logic_default49.create(body), {
|
|
289358
289530
|
body: model_default47.create
|
|
289359
|
-
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) =>
|
|
289531
|
+
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) => logic_default49.update(id, body), {
|
|
289360
289532
|
body: model_default47.update
|
|
289361
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
289533
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default49.remove(id));
|
|
289362
289534
|
var productKindRelate_default = productKindRelateRoutes;
|
|
289363
289535
|
|
|
289364
289536
|
// src/routes/techdoc/serviceKind/logic.ts
|
|
@@ -289391,7 +289563,7 @@ var TechdocServiceKindLogic;
|
|
|
289391
289563
|
}).where(eq(techdocServiceKindTable.id, id));
|
|
289392
289564
|
};
|
|
289393
289565
|
})(TechdocServiceKindLogic ||= {});
|
|
289394
|
-
var
|
|
289566
|
+
var logic_default50 = TechdocServiceKindLogic;
|
|
289395
289567
|
|
|
289396
289568
|
// src/routes/techdoc/serviceKind/model.ts
|
|
289397
289569
|
var TechdocServiceKindModel;
|
|
@@ -289414,13 +289586,13 @@ var model_default48 = TechdocServiceKindModel;
|
|
|
289414
289586
|
var serviceKindRoutes2 = new Elysia({
|
|
289415
289587
|
prefix: "/service-kind",
|
|
289416
289588
|
tags: ["TechdocServiceKind"]
|
|
289417
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) =>
|
|
289589
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query }) => logic_default50.select(query), {
|
|
289418
289590
|
query: model_default48.select
|
|
289419
|
-
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) =>
|
|
289591
|
+
}).guard({ userKind: "ADMIN" }).post("/", async ({ body }) => logic_default50.create(body), {
|
|
289420
289592
|
body: model_default48.create
|
|
289421
|
-
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) =>
|
|
289593
|
+
}).guard({ params: IdSchema }).put("/:id", async ({ body, params: { id } }) => logic_default50.update(id, body), {
|
|
289422
289594
|
body: model_default48.update
|
|
289423
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
289595
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default50.remove(id));
|
|
289424
289596
|
var serviceKind_default2 = serviceKindRoutes2;
|
|
289425
289597
|
|
|
289426
289598
|
// src/routes/techdoc/supplier/logic.ts
|
|
@@ -289460,7 +289632,7 @@ var TechdocSupplierLogic;
|
|
|
289460
289632
|
}).where(eq(techdocSupplierTable.id, id));
|
|
289461
289633
|
};
|
|
289462
289634
|
})(TechdocSupplierLogic ||= {});
|
|
289463
|
-
var
|
|
289635
|
+
var logic_default51 = TechdocSupplierLogic;
|
|
289464
289636
|
|
|
289465
289637
|
// src/routes/techdoc/supplier/model.ts
|
|
289466
289638
|
var TechdocSupplierModel;
|
|
@@ -289484,18 +289656,18 @@ var model_default49 = TechdocSupplierModel;
|
|
|
289484
289656
|
var supplierRoutes = new Elysia({
|
|
289485
289657
|
prefix: "/supplier",
|
|
289486
289658
|
tags: ["TechdocSupplier"]
|
|
289487
|
-
}).use(better_auth_default).get("/", async ({ query, user: user2 }) =>
|
|
289659
|
+
}).use(better_auth_default).get("/", async ({ query, user: user2 }) => logic_default51.select(query, user2), {
|
|
289488
289660
|
query: model_default49.select,
|
|
289489
289661
|
auth: true
|
|
289490
289662
|
}).guard({
|
|
289491
289663
|
userKind: "ADMIN"
|
|
289492
|
-
}).post("/", async ({ body }) =>
|
|
289664
|
+
}).post("/", async ({ body }) => logic_default51.create(body), {
|
|
289493
289665
|
body: model_default49.create
|
|
289494
289666
|
}).guard({
|
|
289495
289667
|
params: IdSchema
|
|
289496
|
-
}).put("/:id", ({ body, params: { id } }) =>
|
|
289668
|
+
}).put("/:id", ({ body, params: { id } }) => logic_default51.update(id, body), {
|
|
289497
289669
|
body: model_default49.update
|
|
289498
|
-
}).delete("/:id", ({ params: { id } }) =>
|
|
289670
|
+
}).delete("/:id", ({ params: { id } }) => logic_default51.remove(id));
|
|
289499
289671
|
var supplier_default = supplierRoutes;
|
|
289500
289672
|
|
|
289501
289673
|
// src/routes/techdoc/vehicleKind/model.ts
|
|
@@ -289568,7 +289740,7 @@ var UomCategoryLogic;
|
|
|
289568
289740
|
}).where(and(eq(uomCategoryTable.id, id)));
|
|
289569
289741
|
};
|
|
289570
289742
|
})(UomCategoryLogic ||= {});
|
|
289571
|
-
var
|
|
289743
|
+
var logic_default52 = UomCategoryLogic;
|
|
289572
289744
|
|
|
289573
289745
|
// src/routes/uom/category/model.ts
|
|
289574
289746
|
var UomCategoryModel;
|
|
@@ -289587,15 +289759,15 @@ var categoryRoutes = new Elysia({
|
|
|
289587
289759
|
tags: ["UomCategory"]
|
|
289588
289760
|
}).use(better_auth_default).guard({
|
|
289589
289761
|
auth: true
|
|
289590
|
-
}).get("/", async ({ query }) =>
|
|
289762
|
+
}).get("/", async ({ query }) => logic_default52.select(query), {
|
|
289591
289763
|
query: model_default51.select
|
|
289592
|
-
}).post("/", async ({ body }) =>
|
|
289764
|
+
}).post("/", async ({ body }) => logic_default52.create(body), {
|
|
289593
289765
|
body: model_default51.create
|
|
289594
289766
|
}).guard({
|
|
289595
289767
|
params: IdSchema
|
|
289596
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
289768
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default52.update(id, body), {
|
|
289597
289769
|
body: model_default51.update
|
|
289598
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
289770
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default52.remove(id));
|
|
289599
289771
|
var category_default = categoryRoutes;
|
|
289600
289772
|
|
|
289601
289773
|
// src/routes/uom/conversion/logic.ts
|
|
@@ -289629,7 +289801,7 @@ var UomConversionLogic;
|
|
|
289629
289801
|
}).where(and(eq(uomConversionTable.id, id)));
|
|
289630
289802
|
};
|
|
289631
289803
|
})(UomConversionLogic ||= {});
|
|
289632
|
-
var
|
|
289804
|
+
var logic_default53 = UomConversionLogic;
|
|
289633
289805
|
|
|
289634
289806
|
// src/routes/uom/conversion/model.ts
|
|
289635
289807
|
var UomConversionModel;
|
|
@@ -289654,15 +289826,15 @@ var conversionRoutes = new Elysia({
|
|
|
289654
289826
|
tags: ["UomConversion"]
|
|
289655
289827
|
}).use(better_auth_default).guard({
|
|
289656
289828
|
auth: true
|
|
289657
|
-
}).get("/", async ({ query }) =>
|
|
289829
|
+
}).get("/", async ({ query }) => logic_default53.select(query), {
|
|
289658
289830
|
query: model_default52.select
|
|
289659
|
-
}).post("/", async ({ body }) =>
|
|
289831
|
+
}).post("/", async ({ body }) => logic_default53.create(body), {
|
|
289660
289832
|
body: model_default52.create
|
|
289661
289833
|
}).guard({
|
|
289662
289834
|
params: IdSchema
|
|
289663
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
289835
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default53.update(id, body), {
|
|
289664
289836
|
body: model_default52.update
|
|
289665
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
289837
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default53.remove(id));
|
|
289666
289838
|
var conversion_default = conversionRoutes;
|
|
289667
289839
|
|
|
289668
289840
|
// src/routes/uom/logic.ts
|
|
@@ -289696,7 +289868,7 @@ var UomLogic;
|
|
|
289696
289868
|
}).where(and(eq(uomTable.id, id)));
|
|
289697
289869
|
};
|
|
289698
289870
|
})(UomLogic ||= {});
|
|
289699
|
-
var
|
|
289871
|
+
var logic_default54 = UomLogic;
|
|
289700
289872
|
|
|
289701
289873
|
// src/routes/uom/model.ts
|
|
289702
289874
|
var UomModel;
|
|
@@ -289720,15 +289892,15 @@ var uomSchemaRoutes = new Elysia({
|
|
|
289720
289892
|
}).use(better_auth_default).use(category_default).use(conversion_default).guard({
|
|
289721
289893
|
userKind: "ADMIN",
|
|
289722
289894
|
tags: ["Uom"]
|
|
289723
|
-
}).get("/", async ({ query }) =>
|
|
289895
|
+
}).get("/", async ({ query }) => logic_default54.select(query), {
|
|
289724
289896
|
query: model_default53.select
|
|
289725
|
-
}).post("/", async ({ body }) =>
|
|
289897
|
+
}).post("/", async ({ body }) => logic_default54.create(body), {
|
|
289726
289898
|
body: model_default53.create
|
|
289727
289899
|
}).guard({
|
|
289728
289900
|
params: IdSchema
|
|
289729
|
-
}).put("/:id", async ({ body, params: { id } }) =>
|
|
289901
|
+
}).put("/:id", async ({ body, params: { id } }) => logic_default54.update(id, body), {
|
|
289730
289902
|
body: model_default53.update
|
|
289731
|
-
}).delete("/:id", async ({ params: { id } }) =>
|
|
289903
|
+
}).delete("/:id", async ({ params: { id } }) => logic_default54.remove(id));
|
|
289732
289904
|
var uom_default = uomSchemaRoutes;
|
|
289733
289905
|
|
|
289734
289906
|
// node_modules/generate-password/src/generate.js
|
|
@@ -289849,7 +290021,7 @@ var UserLogic;
|
|
|
289849
290021
|
totalCount: totalCountSql
|
|
289850
290022
|
}).from(user).where(filter).$dynamic();
|
|
289851
290023
|
const users = await pagination_helper_default(baseQuery, query.pagination);
|
|
289852
|
-
const userPermissions2 = await
|
|
290024
|
+
const userPermissions2 = await logic_default46.selectByUserId(users.map((u) => u.id));
|
|
289853
290025
|
const content = {
|
|
289854
290026
|
totalCount: users[0]?.totalCount ?? 0,
|
|
289855
290027
|
totalPage: users.length === 0 ? 0 : Math.ceil(users[0].totalCount / query.pagination.size)
|
|
@@ -289915,7 +290087,7 @@ var UserLogic;
|
|
|
289915
290087
|
});
|
|
289916
290088
|
};
|
|
289917
290089
|
})(UserLogic ||= {});
|
|
289918
|
-
var
|
|
290090
|
+
var logic_default55 = UserLogic;
|
|
289919
290091
|
|
|
289920
290092
|
// src/routes/user/schema.ts
|
|
289921
290093
|
var select = createSelectSchema(user);
|
|
@@ -289948,7 +290120,7 @@ var userRoutes = new Elysia({
|
|
|
289948
290120
|
}).use(better_auth_default).guard({
|
|
289949
290121
|
auth: true,
|
|
289950
290122
|
tags: ["User"]
|
|
289951
|
-
}).get("/", async ({ query, user: user2 }) =>
|
|
290123
|
+
}).get("/", async ({ query, user: user2 }) => logic_default55.select(query, user2), {
|
|
289952
290124
|
query: selectUserSchema,
|
|
289953
290125
|
userKind: "COMPANY_ADMIN"
|
|
289954
290126
|
}).get("/me", async ({ user: user2 }) => {
|
|
@@ -289982,10 +290154,10 @@ var userRoutes = new Elysia({
|
|
|
289982
290154
|
...user2,
|
|
289983
290155
|
company: company2
|
|
289984
290156
|
};
|
|
289985
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
290157
|
+
}).post("/", async ({ body, user: user2 }) => logic_default55.registerUser(body, user2), {
|
|
289986
290158
|
body: createUserSchema,
|
|
289987
290159
|
userKind: "COMPANY_ADMIN"
|
|
289988
|
-
}).put("/:id", async ({ body, user: user2, params: { id } }) =>
|
|
290160
|
+
}).put("/:id", async ({ body, user: user2, params: { id } }) => logic_default55.update(id, body, user2).catch((e) => console.log(e)), {
|
|
289989
290161
|
body: updateUserSchema,
|
|
289990
290162
|
userKind: "COMPANY_ADMIN"
|
|
289991
290163
|
});
|
|
@@ -290170,7 +290342,7 @@ var WarehouseWarehouseLogic;
|
|
|
290170
290342
|
}).where(and(eq(warehouseWarehouseTable.id, id), eq(warehouseWarehouseTable.companyId, user2.companyId), eq(warehouseWarehouseTable.branchId, user2.branchId).if(user2.kind !== "COMPANY_ADMIN")));
|
|
290171
290343
|
};
|
|
290172
290344
|
})(WarehouseWarehouseLogic ||= {});
|
|
290173
|
-
var
|
|
290345
|
+
var logic_default56 = WarehouseWarehouseLogic;
|
|
290174
290346
|
|
|
290175
290347
|
// src/routes/warehouse/warehouse/model.ts
|
|
290176
290348
|
var WarehouseWarehouseModel;
|
|
@@ -290195,17 +290367,17 @@ var model_default56 = WarehouseWarehouseModel;
|
|
|
290195
290367
|
var warehouseRoutes = new Elysia({
|
|
290196
290368
|
prefix: "/warehouse",
|
|
290197
290369
|
tags: ["Warehouse"]
|
|
290198
|
-
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query, user: user2 }) =>
|
|
290370
|
+
}).use(better_auth_default).guard({ auth: true }).get("/", async ({ query, user: user2 }) => logic_default56.select(query, user2), {
|
|
290199
290371
|
query: model_default56.select
|
|
290200
290372
|
}).guard({
|
|
290201
290373
|
userKind: "COMPANY_ADMIN"
|
|
290202
|
-
}).post("/", async ({ body, user: user2 }) =>
|
|
290374
|
+
}).post("/", async ({ body, user: user2 }) => logic_default56.create(body, user2), {
|
|
290203
290375
|
body: model_default56.create
|
|
290204
290376
|
}).guard({
|
|
290205
290377
|
params: IdSchema
|
|
290206
|
-
}).put("/:id", async ({ params: { id }, body, user: user2 }) =>
|
|
290378
|
+
}).put("/:id", async ({ params: { id }, body, user: user2 }) => logic_default56.update(id, body, user2), {
|
|
290207
290379
|
body: model_default56.update
|
|
290208
|
-
}).delete("/:id", async ({ params: { id }, user: user2 }) =>
|
|
290380
|
+
}).delete("/:id", async ({ params: { id }, user: user2 }) => logic_default56.remove(id, user2));
|
|
290209
290381
|
var warehouse_default = warehouseRoutes;
|
|
290210
290382
|
|
|
290211
290383
|
// src/routes/warehouse/index.ts
|