backfarm 1.0.4 → 1.0.6

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.
Files changed (176) hide show
  1. package/dist/chunk-22GJTNKR.js +47 -0
  2. package/dist/chunk-22GJTNKR.js.map +1 -0
  3. package/dist/{chunk-XBJ3SJ26.js → chunk-2QNCQ5L5.js} +3 -3
  4. package/dist/chunk-2QNCQ5L5.js.map +1 -0
  5. package/dist/chunk-3DJ6GERS.js +17 -0
  6. package/dist/chunk-3DJ6GERS.js.map +1 -0
  7. package/dist/chunk-452DWS46.js +88 -0
  8. package/dist/chunk-452DWS46.js.map +1 -0
  9. package/dist/{chunk-UWIMSKL5.js → chunk-4L35JPDH.js} +2 -2
  10. package/dist/chunk-4L35JPDH.js.map +1 -0
  11. package/dist/{chunk-VFF4YFA3.js → chunk-5AJKFCEE.js} +3 -3
  12. package/dist/chunk-5AJKFCEE.js.map +1 -0
  13. package/dist/chunk-6BNQOIVA.js +34 -0
  14. package/dist/chunk-6BNQOIVA.js.map +1 -0
  15. package/dist/{chunk-P5XJG7OG.js → chunk-A7GR4LD2.js} +1 -1
  16. package/dist/chunk-A7GR4LD2.js.map +1 -0
  17. package/dist/chunk-EEQ2SXDE.js +32 -0
  18. package/dist/chunk-EEQ2SXDE.js.map +1 -0
  19. package/dist/chunk-EUWCMMGI.js +35 -0
  20. package/dist/chunk-EUWCMMGI.js.map +1 -0
  21. package/dist/chunk-HC4IDQP6.js +89 -0
  22. package/dist/chunk-HC4IDQP6.js.map +1 -0
  23. package/dist/{chunk-QVTKG7FD.js → chunk-HV3IQJH3.js} +3 -3
  24. package/dist/chunk-HV3IQJH3.js.map +1 -0
  25. package/dist/{chunk-X3R3RLXY.js → chunk-IZEPCXYK.js} +1 -1
  26. package/dist/chunk-IZEPCXYK.js.map +1 -0
  27. package/dist/{chunk-YTBSGKGF.js → chunk-J3P6W53K.js} +2 -2
  28. package/dist/chunk-J3P6W53K.js.map +1 -0
  29. package/dist/{chunk-EWQYVPOL.js → chunk-LE2SDA4O.js} +1 -1
  30. package/dist/chunk-LE2SDA4O.js.map +1 -0
  31. package/dist/chunk-M7PVDT2D.js +60 -0
  32. package/dist/chunk-M7PVDT2D.js.map +1 -0
  33. package/dist/chunk-O2ZDXQ2Z.js +44 -0
  34. package/dist/chunk-O2ZDXQ2Z.js.map +1 -0
  35. package/dist/{chunk-MNSQSU7T.js → chunk-O5ILFRFV.js} +2 -2
  36. package/dist/chunk-O5ILFRFV.js.map +1 -0
  37. package/dist/chunk-O76OK6Y7.js +40 -0
  38. package/dist/chunk-O76OK6Y7.js.map +1 -0
  39. package/dist/{chunk-W3W3X2OE.js → chunk-QW2GGDEG.js} +54 -19
  40. package/dist/chunk-QW2GGDEG.js.map +1 -0
  41. package/dist/chunk-RZ7XHAUV.js +74 -0
  42. package/dist/chunk-RZ7XHAUV.js.map +1 -0
  43. package/dist/{chunk-TP3K7DMH.js → chunk-U7BCM2WN.js} +2 -2
  44. package/dist/chunk-U7BCM2WN.js.map +1 -0
  45. package/dist/chunk-UPP2FW3G.js +336 -0
  46. package/dist/chunk-UPP2FW3G.js.map +1 -0
  47. package/dist/chunk-YA3MW2CJ.js +33 -0
  48. package/dist/chunk-YA3MW2CJ.js.map +1 -0
  49. package/dist/{chunk-SSFPGDA3.js → chunk-ZC33GE2U.js} +5 -5
  50. package/dist/chunk-ZC33GE2U.js.map +1 -0
  51. package/dist/{chunk-D7A4TEXY.js → chunk-ZC6ZFZ2J.js} +2 -2
  52. package/dist/chunk-ZC6ZFZ2J.js.map +1 -0
  53. package/dist/{chunk-ZMDJ45KH.js → chunk-ZGOMCU4T.js} +7 -7
  54. package/dist/chunk-ZGOMCU4T.js.map +1 -0
  55. package/dist/chunk-ZTTB4NMA.js +18 -0
  56. package/dist/chunk-ZTTB4NMA.js.map +1 -0
  57. package/dist/engine/cloudBucket/r2Storage.js +3 -3
  58. package/dist/engine/mondoDb/mongoDB.js +3 -3
  59. package/dist/engine/multer/multer_configs.js +2 -2
  60. package/dist/engine/server/server.d.ts +5 -3
  61. package/dist/engine/server/server.js +30 -9
  62. package/dist/engine/sql/mySql.d.ts +2 -2
  63. package/dist/engine/sql/mySql.js +3 -3
  64. package/dist/engine/sql/pgSql.js +3 -3
  65. package/dist/utility/libs/env.js +1 -1
  66. package/dist/utility/libs/index.d.ts +1772 -0
  67. package/dist/utility/libs/index.js +101 -0
  68. package/dist/utility/libs/interface.d.ts +5 -7
  69. package/dist/utility/libs/run-all.js +46 -0
  70. package/dist/utility/libs/run-all.js.map +1 -0
  71. package/dist/{chunk-LFRKRR7G.js → utility/libs/run-bucket.js} +4 -7
  72. package/dist/utility/libs/run-bucket.js.map +1 -0
  73. package/dist/utility/libs/run-node-server.js +35 -0
  74. package/dist/utility/libs/run-node-server.js.map +1 -0
  75. package/dist/utility/libs/types.d.ts +11 -31
  76. package/dist/utility/libs/types.js +1 -1
  77. package/dist/utility/libs/types.js.map +1 -1
  78. package/dist/utility/utilis/cloud_storage/deleteFile.js +7 -54
  79. package/dist/utility/utilis/cloud_storage/deleteFile.js.map +1 -1
  80. package/dist/utility/utilis/cloud_storage/deleteFiles.js +7 -83
  81. package/dist/utility/utilis/cloud_storage/deleteFiles.js.map +1 -1
  82. package/dist/utility/utilis/cloud_storage/downloadFile.js +8 -68
  83. package/dist/utility/utilis/cloud_storage/downloadFile.js.map +1 -1
  84. package/dist/utility/utilis/cloud_storage/downloadFiles.js +8 -82
  85. package/dist/utility/utilis/cloud_storage/downloadFiles.js.map +1 -1
  86. package/dist/utility/utilis/cloud_storage/uploadFile.js +6 -6
  87. package/dist/utility/utilis/cloud_storage/uploadFiles.d.ts +0 -64
  88. package/dist/utility/utilis/cloud_storage/uploadFiles.js +9 -43
  89. package/dist/utility/utilis/cloud_storage/uploadFiles.js.map +1 -1
  90. package/dist/utility/utilis/general/error_handler.js +1 -1
  91. package/dist/utility/utilis/general/file-operations.d.ts +7 -132
  92. package/dist/utility/utilis/general/file-operations.js +6 -4
  93. package/dist/utility/utilis/general/sqlDb.js.d.ts +0 -141
  94. package/dist/utility/utilis/general/sqlDb.js.js +2 -2
  95. package/dist/utility/utilis/general/uuids.d.ts +0 -43
  96. package/dist/utility/utilis/general/uuids.js +1 -1
  97. package/dist/utility/utilis/general/web.d.ts +2 -238
  98. package/dist/utility/utilis/general/web.js +4 -4
  99. package/dist/utility/utilis/mongoDb/buldWrite.d.ts +0 -44
  100. package/dist/utility/utilis/mongoDb/buldWrite.js +6 -28
  101. package/dist/utility/utilis/mongoDb/buldWrite.js.map +1 -1
  102. package/dist/utility/utilis/mongoDb/deleteDocument.d.ts +0 -45
  103. package/dist/utility/utilis/mongoDb/deleteDocument.js +6 -30
  104. package/dist/utility/utilis/mongoDb/deleteDocument.js.map +1 -1
  105. package/dist/utility/utilis/mongoDb/insertField.d.ts +2 -33
  106. package/dist/utility/utilis/mongoDb/insertField.js +7 -30
  107. package/dist/utility/utilis/mongoDb/insertField.js.map +1 -1
  108. package/dist/utility/utilis/mongoDb/insertFields.d.ts +2 -41
  109. package/dist/utility/utilis/mongoDb/insertFields.js +7 -32
  110. package/dist/utility/utilis/mongoDb/insertFields.js.map +1 -1
  111. package/dist/utility/utilis/mongoDb/updateFiled.d.ts +0 -56
  112. package/dist/utility/utilis/mongoDb/updateFiled.js +6 -36
  113. package/dist/utility/utilis/mongoDb/updateFiled.js.map +1 -1
  114. package/dist/utility/utilis/multer/upload_batch.js +5 -12
  115. package/dist/utility/utilis/multer/upload_batch.js.map +1 -1
  116. package/dist/utility/utilis/multer/upload_single.d.ts +41 -0
  117. package/dist/utility/utilis/multer/upload_single.js +5 -11
  118. package/dist/utility/utilis/multer/upload_single.js.map +1 -1
  119. package/dist/utility/utilis/postgres/executeQuery.d.ts +2 -205
  120. package/dist/utility/utilis/postgres/executeQuery.js +11 -41
  121. package/dist/utility/utilis/postgres/executeQuery.js.map +1 -1
  122. package/dist/utility/utilis/postgres/subSqlfiles/executeMySqlQuery.js +4 -4
  123. package/dist/utility/utilis/postgres/subSqlfiles/executePgQuery.js +4 -4
  124. package/dist/utility/utilis/server/app.js +30 -12
  125. package/dist/utility/utilis/server/app.js.map +1 -1
  126. package/dist/utility/utilis/server/server.d.ts +2 -2
  127. package/dist/utility/utilis/server/server.js +30 -20
  128. package/dist/utility/utilis/server/server.js.map +1 -1
  129. package/package.json +55 -56
  130. package/dist/chunk-5A3RVJNT.js +0 -19
  131. package/dist/chunk-5A3RVJNT.js.map +0 -1
  132. package/dist/chunk-D7A4TEXY.js.map +0 -1
  133. package/dist/chunk-EWQYVPOL.js.map +0 -1
  134. package/dist/chunk-ICFMWIIJ.js +0 -53
  135. package/dist/chunk-ICFMWIIJ.js.map +0 -1
  136. package/dist/chunk-LFRKRR7G.js.map +0 -1
  137. package/dist/chunk-MNSQSU7T.js.map +0 -1
  138. package/dist/chunk-NIOLLLJJ.js +0 -44
  139. package/dist/chunk-NIOLLLJJ.js.map +0 -1
  140. package/dist/chunk-P5XJG7OG.js.map +0 -1
  141. package/dist/chunk-QVTKG7FD.js.map +0 -1
  142. package/dist/chunk-SSFPGDA3.js.map +0 -1
  143. package/dist/chunk-TP3K7DMH.js.map +0 -1
  144. package/dist/chunk-UWIMSKL5.js.map +0 -1
  145. package/dist/chunk-VFF4YFA3.js.map +0 -1
  146. package/dist/chunk-W3W3X2OE.js.map +0 -1
  147. package/dist/chunk-X3R3RLXY.js.map +0 -1
  148. package/dist/chunk-XBJ3SJ26.js.map +0 -1
  149. package/dist/chunk-YTBSGKGF.js.map +0 -1
  150. package/dist/chunk-YWFCWT6R.js +0 -23
  151. package/dist/chunk-YWFCWT6R.js.map +0 -1
  152. package/dist/chunk-ZMDJ45KH.js.map +0 -1
  153. package/dist/engine/script/run-all.d.ts +0 -3
  154. package/dist/engine/script/run-all.js +0 -8
  155. package/dist/engine/script/run-bucket.d.ts +0 -3
  156. package/dist/engine/script/run-bucket.js +0 -8
  157. package/dist/engine/script/run-bucket.js.map +0 -1
  158. package/dist/engine/script/run-node-server.d.ts +0 -3
  159. package/dist/engine/script/run-node-server.js +0 -8
  160. package/dist/engine/script/run-node-server.js.map +0 -1
  161. package/dist/engine/server/app.d.ts +0 -5
  162. package/dist/engine/server/app.js +0 -10
  163. package/dist/engine/server/app.js.map +0 -1
  164. package/dist/utility/script/run-all.js +0 -8
  165. package/dist/utility/script/run-all.js.map +0 -1
  166. package/dist/utility/script/run-bucket.js +0 -8
  167. package/dist/utility/script/run-bucket.js.map +0 -1
  168. package/dist/utility/script/run-node-server.js +0 -8
  169. package/dist/utility/script/run-node-server.js.map +0 -1
  170. package/dist/utility/utilis/cloud_storage/s3Client.d.ts +0 -5
  171. package/dist/utility/utilis/cloud_storage/s3Client.js +0 -17
  172. package/dist/utility/utilis/cloud_storage/s3Client.js.map +0 -1
  173. /package/dist/{engine/script/run-all.js.map → utility/libs/index.js.map} +0 -0
  174. /package/dist/utility/{script → libs}/run-all.d.ts +0 -0
  175. /package/dist/utility/{script → libs}/run-bucket.d.ts +0 -0
  176. /package/dist/utility/{script → libs}/run-node-server.d.ts +0 -0
@@ -4,62 +4,6 @@ import 'mongodb';
4
4
  import 'express';
5
5
  import '../../libs/env.js';
6
6
 
7
- /**
8
- * Updates one or more documents in a MongoDB collection.
9
- *
10
- * By default, the function updates a single document matching the provided
11
- * query. When `updateMany` is set to `true`, all documents matching the query
12
- * are updated.
13
- *
14
- * @param params - Configuration options for the update operation.
15
- * @param params.dbName - The name of the MongoDB database.
16
- * @param params.collectionName - The name of the collection to update.
17
- * @param params.query - The MongoDB filter used to identify the documents.
18
- * @param params.updatable - The update operations or update pipeline to apply
19
- * to the matching documents.
20
- * @param params.updateMany - Whether to update all matching documents instead
21
- * of only the first matching document. Defaults to `false`.
22
- * @param params.options - Optional MongoDB update operation options.
23
- * @returns A promise resolving to a `CustomUpdateResult` containing the
24
- * `UpdateResult` on success or an `Error` on failure.
25
- *
26
- * @example
27
- * const result = await updateField({
28
- * dbName: 'my_database',
29
- * collectionName: 'users',
30
- * query: {
31
- * email: 'john@example.com',
32
- * },
33
- * updatable: {
34
- * $set: {
35
- * active: true,
36
- * },
37
- * },
38
- * });
39
- *
40
- * if (result.status) {
41
- * console.log('User updated successfully');
42
- * } else {
43
- * console.error(result.error);
44
- * }
45
- *
46
- * @example
47
- * const result = await updateField({
48
- * dbName: 'my_database',
49
- * collectionName: 'users',
50
- * query: {
51
- * active: false,
52
- * },
53
- * updatable: {
54
- * $set: {
55
- * status: 'inactive',
56
- * },
57
- * },
58
- * updateMany: true,
59
- * });
60
- *
61
- * // Updates all users matching the query.
62
- */
63
7
  declare const mongoUpdateField: (params: UpdateDocument) => Promise<CustomUpdateResult>;
64
8
 
65
9
  export { mongoUpdateField };
@@ -1,40 +1,10 @@
1
1
  import {
2
- getMongoServer
3
- } from "../../../chunk-XBJ3SJ26.js";
4
- import "../../../chunk-W3W3X2OE.js";
5
- import "../../../chunk-EWQYVPOL.js";
6
- import {
7
- __name
8
- } from "../../../chunk-7QVYU63E.js";
9
-
10
- // src/utility/utilis/mongoDb/updateFiled.ts
11
- var mongoUpdateField = /* @__PURE__ */ __name(async (params) => {
12
- const {
13
- dbName,
14
- collectionName,
15
- query,
16
- updatable,
17
- updateMany = false,
18
- options
19
- } = params;
20
- try {
21
- const db = getMongoServer().db(dbName);
22
- const collection = db.collection(collectionName);
23
- const result = updateMany ? await collection.updateMany(query, updatable, options) : await collection.updateOne(query, updatable, options);
24
- return {
25
- status: true,
26
- result,
27
- error: null
28
- };
29
- } catch (err) {
30
- const error = err instanceof Error ? err : new Error(String(err));
31
- return {
32
- status: false,
33
- result: null,
34
- error
35
- };
36
- }
37
- }, "mongoUpdateField");
2
+ mongoUpdateField
3
+ } from "../../../chunk-O76OK6Y7.js";
4
+ import "../../../chunk-2QNCQ5L5.js";
5
+ import "../../../chunk-QW2GGDEG.js";
6
+ import "../../../chunk-LE2SDA4O.js";
7
+ import "../../../chunk-7QVYU63E.js";
38
8
  export {
39
9
  mongoUpdateField
40
10
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/utility/utilis/mongoDb/updateFiled.ts"],"sourcesContent":["import type {CustomUpdateResult} from \"../../libs/types.js\";\r\nimport {getMongoServer} from \"../../../engine/mondoDb/mongoDB.js\";\r\nimport type {UpdateDocument} from \"../../libs/interface.js\";\r\n\r\n\r\n\r\n/**\r\n * Updates one or more documents in a MongoDB collection.\r\n *\r\n * By default, the function updates a single document matching the provided\r\n * query. When `updateMany` is set to `true`, all documents matching the query\r\n * are updated.\r\n *\r\n * @param params - Configuration options for the update operation.\r\n * @param params.dbName - The name of the MongoDB database.\r\n * @param params.collectionName - The name of the collection to update.\r\n * @param params.query - The MongoDB filter used to identify the documents.\r\n * @param params.updatable - The update operations or update pipeline to apply\r\n * to the matching documents.\r\n * @param params.updateMany - Whether to update all matching documents instead\r\n * of only the first matching document. Defaults to `false`.\r\n * @param params.options - Optional MongoDB update operation options.\r\n * @returns A promise resolving to a `CustomUpdateResult` containing the\r\n * `UpdateResult` on success or an `Error` on failure.\r\n *\r\n * @example\r\n * const result = await updateField({\r\n * dbName: 'my_database',\r\n * collectionName: 'users',\r\n * query: {\r\n * email: 'john@example.com',\r\n * },\r\n * updatable: {\r\n * $set: {\r\n * active: true,\r\n * },\r\n * },\r\n * });\r\n *\r\n * if (result.status) {\r\n * console.log('User updated successfully');\r\n * } else {\r\n * console.error(result.error);\r\n * }\r\n *\r\n * @example\r\n * const result = await updateField({\r\n * dbName: 'my_database',\r\n * collectionName: 'users',\r\n * query: {\r\n * active: false,\r\n * },\r\n * updatable: {\r\n * $set: {\r\n * status: 'inactive',\r\n * },\r\n * },\r\n * updateMany: true,\r\n * });\r\n *\r\n * // Updates all users matching the query.\r\n */\r\nexport const mongoUpdateField = async (\r\n params: UpdateDocument\r\n): Promise<CustomUpdateResult> => {\r\n const {\r\n dbName,\r\n collectionName,\r\n query,\r\n updatable,\r\n updateMany = false,\r\n options\r\n } = params;\r\n\r\n try {\r\n const db = getMongoServer().db(dbName);\r\n const collection = db.collection(collectionName);\r\n\r\n // Perform update with await\r\n const result = updateMany\r\n ? await collection.updateMany(query, updatable, options)\r\n : await collection.updateOne(query, updatable, options);\r\n\r\n return {\r\n status: true,\r\n result,\r\n error: null,\r\n };\r\n } catch (err) {\r\n const error = err instanceof Error ? err : new Error(String(err));\r\n\r\n return {\r\n status: false,\r\n result: null,\r\n error,\r\n };\r\n }\r\n};\r\n"],"mappings":";;;;;;;;;;AA8DO,IAAM,mBAAmB,8BAC5B,WAC8B;AAC9B,QAAM;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa;AAAA,IACb;AAAA,EACJ,IAAI;AAEJ,MAAI;AACA,UAAM,KAAK,eAAe,EAAE,GAAG,MAAM;AACrC,UAAM,aAAa,GAAG,WAAW,cAAc;AAG/C,UAAM,SAAS,aACT,MAAM,WAAW,WAAW,OAAO,WAAW,OAAO,IACrD,MAAM,WAAW,UAAU,OAAO,WAAW,OAAO;AAE1D,WAAO;AAAA,MACH,QAAQ;AAAA,MACR;AAAA,MACA,OAAO;AAAA,IACX;AAAA,EACJ,SAAS,KAAK;AACV,UAAM,QAAQ,eAAe,QAAQ,MAAM,IAAI,MAAM,OAAO,GAAG,CAAC;AAEhE,WAAO;AAAA,MACH,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR;AAAA,IACJ;AAAA,EACJ;AACJ,GAnCgC;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,16 +1,9 @@
1
1
  import {
2
- MAX_BATCH_FILES,
3
- multerInstance
4
- } from "../../../chunk-UWIMSKL5.js";
5
- import {
6
- ENV
7
- } from "../../../chunk-EWQYVPOL.js";
8
- import {
9
- __name
10
- } from "../../../chunk-7QVYU63E.js";
11
-
12
- // src/utility/utilis/multer/upload_batch.ts
13
- var upload_batch = /* @__PURE__ */ __name((fieldName = ENV.FILES, maxCount = MAX_BATCH_FILES) => multerInstance.array(fieldName, maxCount), "upload_batch");
2
+ upload_batch
3
+ } from "../../../chunk-ZTTB4NMA.js";
4
+ import "../../../chunk-4L35JPDH.js";
5
+ import "../../../chunk-LE2SDA4O.js";
6
+ import "../../../chunk-7QVYU63E.js";
14
7
  export {
15
8
  upload_batch
16
9
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/utility/utilis/multer/upload_batch.ts"],"sourcesContent":["import {MAX_BATCH_FILES, multerInstance} from \"../../../engine/multer/multer_configs.js\";\r\nimport {ENV} from \"../../libs/env.js\";\r\n\r\nexport const upload_batch = (fieldName: string = ENV.FILES, maxCount: number = MAX_BATCH_FILES) =>\r\n multerInstance.array(fieldName, maxCount);\r\n"],"mappings":";;;;;;;;;;;;AAGO,IAAM,eAAe,wBAAC,YAAoB,IAAI,OAAO,WAAmB,oBAC3E,eAAe,MAAM,WAAW,QAAQ,GADhB;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -2,6 +2,47 @@ import * as express from 'express';
2
2
  import * as qs from 'qs';
3
3
  import * as express_serve_static_core from 'express-serve-static-core';
4
4
 
5
+ /**
6
+ * Creates Multer middleware for handling a single file upload.
7
+ *
8
+ * The middleware expects one uploaded file from the specified
9
+ * `multipart/form-data` field and makes the uploaded file available through
10
+ * `req.file`.
11
+ *
12
+ * If no field name is provided, `ENV.FILE` is used as the default field name.
13
+ *
14
+ * @param fieldName - Name of the multipart/form-data field containing the
15
+ * uploaded file.
16
+ *
17
+ * @returns Multer middleware configured to process a single uploaded file.
18
+ *
19
+ * @example
20
+ * // Use the default field name.
21
+ * router.post(
22
+ * '/upload',
23
+ * upload_single(),
24
+ * uploadSingleFileApi
25
+ * );
26
+ *
27
+ * @example
28
+ * // Accept a single file from the "file" field.
29
+ * router.post(
30
+ * '/upload',
31
+ * upload_single('file'),
32
+ * uploadSingleFileApi
33
+ * );
34
+ *
35
+ * @example
36
+ * // Use a custom field name.
37
+ * router.post(
38
+ * '/profile-picture',
39
+ * upload_single('profilePicture'),
40
+ * uploadSingleFileApi
41
+ * );
42
+ *
43
+ * // The uploaded file will be available as:
44
+ * // req.file
45
+ */
5
46
  declare const upload_single: (fieldName?: string) => express.RequestHandler<express_serve_static_core.ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>;
6
47
 
7
48
  export { upload_single };
@@ -1,15 +1,9 @@
1
1
  import {
2
- multerInstance
3
- } from "../../../chunk-UWIMSKL5.js";
4
- import {
5
- ENV
6
- } from "../../../chunk-EWQYVPOL.js";
7
- import {
8
- __name
9
- } from "../../../chunk-7QVYU63E.js";
10
-
11
- // src/utility/utilis/multer/upload_single.ts
12
- var upload_single = /* @__PURE__ */ __name((fieldName = ENV.FILE) => multerInstance.single(fieldName), "upload_single");
2
+ upload_single
3
+ } from "../../../chunk-3DJ6GERS.js";
4
+ import "../../../chunk-4L35JPDH.js";
5
+ import "../../../chunk-LE2SDA4O.js";
6
+ import "../../../chunk-7QVYU63E.js";
13
7
  export {
14
8
  upload_single
15
9
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/utility/utilis/multer/upload_single.ts"],"sourcesContent":["import {multerInstance} from \"../../../engine/multer/multer_configs.js\";\r\nimport {ENV} from \"../../libs/env.js\";\r\n\r\nexport const upload_single = (fieldName: string = ENV.FILE) =>\r\n multerInstance.single(fieldName);\r\n"],"mappings":";;;;;;;;;;;AAGO,IAAM,gBAAgB,wBAAC,YAAoB,IAAI,SAClD,eAAe,OAAO,SAAS,GADN;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +1,4 @@
1
- import * as mysql from 'mysql2/promise';
1
+ import * as mysql2_promise from 'mysql2/promise';
2
2
  import * as pg from 'pg';
3
3
  import { QueryItems } from '../../libs/interface.js';
4
4
  import 'mongodb';
@@ -6,210 +6,7 @@ import '../../libs/types.js';
6
6
  import 'express';
7
7
  import '../../libs/env.js';
8
8
 
9
- /**
10
- * Executes one or more SQL queries using the database configured through
11
- * the `SQL_DB_URL` environment variable.
12
- *
13
- * The function automatically detects whether the configured database is
14
- * PostgreSQL or MySQL and delegates execution to the appropriate database
15
- * implementation.
16
- *
17
- * Supports structured CRUD operations (`insert_one`, `insert_many`, `select`,
18
- * `update`, and `delete`) as well as custom raw SQL queries.
19
- *
20
- * Parameterized conditions and raw queries are supported. The placeholder
21
- * syntax must match the configured database engine:
22
- *
23
- * - MySQL uses `?` placeholders.
24
- * - PostgreSQL uses `$1`, `$2`, `$3`, etc.
25
- *
26
- * The corresponding values are supplied through `conditionalParams` for
27
- * structured CRUD operations or `params` for raw SQL queries.
28
- *
29
- * @param query - The SQL operations to execute.
30
- * @param query.crud - Optional array of structured CRUD operations.
31
- * @param query.custom - Optional raw SQL query or array of raw SQL queries.
32
- *
33
- * @returns A promise resolving to the result returned by the PostgreSQL or
34
- * MySQL query executor. If the configured `SQL_DB_URL` does not represent a
35
- * supported database, an `Error` is returned.
36
- *
37
- * @example
38
- * // Insert a user.
39
- * //
40
- * // This operation is database-independent because the values are passed
41
- * // as an object and the underlying executor generates the appropriate SQL.
42
- * await executeQuery({
43
- * crud: [
44
- * {
45
- * insert_one: {
46
- * table: CONSTANTS.USER_INFOS,
47
- * item: {
48
- * [CONSTANTS.USER_PRIMARY_ID]: generateUniqueValue(32),
49
- * [CONSTANTS.USER_NAME]: 'Divyanshu',
50
- * [CONSTANTS.USER_EMAIL]: 'div@example.com',
51
- * [CONSTANTS.USER_GENDER]: CONSTANTS.GENDER_TYPE.MALE,
52
- * },
53
- * },
54
- * },
55
- * ],
56
- * });
57
- *
58
- * @example
59
- * // Select a user by email.
60
- * //
61
- * // MySQL:
62
- * // condition: 'user_email = ?'
63
- * //
64
- * // PostgreSQL:
65
- * // condition: 'user_email = $1'
66
- * //
67
- * // The value is supplied separately through conditionalParams.
68
- * await executeQuery({
69
- * crud: [
70
- * {
71
- * select: {
72
- * table: CONSTANTS.USER_INFOS,
73
- * columns: [
74
- * CONSTANTS.USER_PRIMARY_ID,
75
- * CONSTANTS.USER_NAME,
76
- * CONSTANTS.USER_EMAIL,
77
- * ],
78
- * condition: 'user_email = ?',
79
- * conditionalParams: ['div@example.com'],
80
- * },
81
- * },
82
- * ],
83
- * });
84
- *
85
- * @example
86
- * // Update a user's information.
87
- * //
88
- * // MySQL:
89
- * // condition: 'user_primary_id = ?'
90
- * //
91
- * // PostgreSQL:
92
- * // condition: 'user_primary_id = $1'
93
- * await executeQuery({
94
- * crud: [
95
- * {
96
- * update: {
97
- * table: CONSTANTS.USER_INFOS,
98
- * item: {
99
- * [CONSTANTS.USER_NAME]: 'Div',
100
- * [CONSTANTS.USER_PHONE_NUMBER]: '+1234567890',
101
- * },
102
- * condition: 'user_primary_id = ?',
103
- * conditionalParams: [
104
- * '550e8400-e29b-41d4-a716-446655440000',
105
- * ],
106
- * },
107
- * },
108
- * ],
109
- * });
110
- *
111
- * @example
112
- * // Delete a user.
113
- * //
114
- * // Replace `?` with `$1` when using PostgreSQL.
115
- * await executeQuery({
116
- * crud: [
117
- * {
118
- * delete: {
119
- * table: CONSTANTS.USER_INFOS,
120
- * condition: 'user_primary_id = ?',
121
- * conditionalParams: [
122
- * '550e8400-e29b-41d4-a716-446655440000',
123
- * ],
124
- * },
125
- * },
126
- * ],
127
- * });
128
- *
129
- * @example
130
- * // Execute a raw SQL query.
131
- * //
132
- * // MySQL:
133
- * // query: 'SELECT * FROM user_infos WHERE user_email = ?'
134
- * //
135
- * // PostgreSQL:
136
- * // query: 'SELECT * FROM user_infos WHERE user_email = $1'
137
- * await executeQuery({
138
- * custom: {
139
- * query: 'SELECT * FROM user_infos WHERE user_email = ?',
140
- * params: ['div@example.com'],
141
- * },
142
- * });
143
- *
144
- * @example
145
- * // Execute multiple operations in one call.
146
- * //
147
- * // The underlying executor handles the operations according to the
148
- * // configured database engine.
149
- * await executeQuery({
150
- * crud: [
151
- * {
152
- * insert_one: {
153
- * table: CONSTANTS.USER_INFOS,
154
- * item: {
155
- * [CONSTANTS.USER_PRIMARY_ID]: generateUniqueValue(32),
156
- * [CONSTANTS.USER_NAME]: 'Alice',
157
- * [CONSTANTS.USER_EMAIL]: 'alice@example.com',
158
- * },
159
- * },
160
- * },
161
- * {
162
- * update: {
163
- * table: CONSTANTS.USER_INFOS,
164
- * item: {
165
- * status: 'active',
166
- * },
167
- * condition: 'user_email = ?',
168
- * conditionalParams: ['alice@example.com'],
169
- * },
170
- * },
171
- * ],
172
- * });
173
- */
174
9
  declare const executeQuery: (query: QueryItems) => Promise<any[] | Error>;
175
- /**
176
- * Returns the connection pool for the SQL database configured through
177
- * the `SQL_DB_URL` environment variable.
178
- *
179
- * The database type is detected automatically from the connection URL.
180
- * If the URL represents a PostgreSQL database, the PostgreSQL connection
181
- * pool is returned. If it represents a MySQL database, the MySQL connection
182
- * pool is returned.
183
- *
184
- * This function acts as the database-agnostic entry point for obtaining
185
- * the application's SQL connection pool. Callers do not need to know
186
- * whether the application is currently using PostgreSQL or MySQL.
187
- *
188
- * The underlying pool is created lazily and reused across subsequent
189
- * calls through `getPgSqlPool()` or `getMySqlPool()`.
190
- *
191
- * @returns A promise resolving to the PostgreSQL or MySQL connection pool,
192
- * depending on the configured `SQL_DB_URL`. Returns `undefined` if the
193
- * configured database URL does not match a supported SQL database.
194
- *
195
- * @example
196
- * // Get the configured SQL connection pool.
197
- * const pool = await getPool();
198
- *
199
- * if (!pool) {
200
- * throw new Error('Unsupported SQL database configuration.');
201
- * }
202
- *
203
- * @example
204
- * // The same function works regardless of whether the application
205
- * // is configured to use PostgreSQL or MySQL.
206
- * const pool = await getPool();
207
- *
208
- * if (pool) {
209
- * // Use the returned pool with the appropriate database layer.
210
- * console.log('Database pool is ready.');
211
- * }
212
- */
213
- declare const getPool: () => Promise<pg.Pool | mysql.Pool | undefined>;
10
+ declare const getPool: () => Promise<pg.Pool | mysql2_promise.Pool | undefined>;
214
11
 
215
12
  export { executeQuery, getPool };
@@ -1,45 +1,15 @@
1
1
  import {
2
- executeMySqlQuery
3
- } from "../../../chunk-TP3K7DMH.js";
4
- import {
5
- executePgSqlQuery
6
- } from "../../../chunk-D7A4TEXY.js";
7
- import {
8
- isMySQL,
9
- isPostgreSQL
10
- } from "../../../chunk-MNSQSU7T.js";
11
- import {
12
- getMySqlPool
13
- } from "../../../chunk-QVTKG7FD.js";
14
- import {
15
- getPgSqlPool
16
- } from "../../../chunk-VFF4YFA3.js";
17
- import "../../../chunk-W3W3X2OE.js";
18
- import {
19
- ENV
20
- } from "../../../chunk-EWQYVPOL.js";
21
- import {
22
- __name
23
- } from "../../../chunk-7QVYU63E.js";
24
-
25
- // src/utility/utilis/postgres/executeQuery.ts
26
- var executeQuery = /* @__PURE__ */ __name(async (query) => {
27
- if (isPostgreSQL(ENV.SQL_DB_URL)) {
28
- return await executePgSqlQuery(query);
29
- } else if (isMySQL(ENV.SQL_DB_URL)) {
30
- return await executeMySqlQuery(query);
31
- } else {
32
- return new Error(`Unable to execute query. Please check the SQL_DB_URL in .env file and the db.sql file.`);
33
- }
34
- }, "executeQuery");
35
- var getPool = /* @__PURE__ */ __name(async () => {
36
- if (isPostgreSQL(ENV.SQL_DB_URL)) {
37
- return getPgSqlPool();
38
- }
39
- if (isMySQL(ENV.SQL_DB_URL)) {
40
- return getMySqlPool();
41
- }
42
- }, "getPool");
2
+ executeQuery,
3
+ getPool
4
+ } from "../../../chunk-22GJTNKR.js";
5
+ import "../../../chunk-U7BCM2WN.js";
6
+ import "../../../chunk-ZC6ZFZ2J.js";
7
+ import "../../../chunk-O5ILFRFV.js";
8
+ import "../../../chunk-HV3IQJH3.js";
9
+ import "../../../chunk-5AJKFCEE.js";
10
+ import "../../../chunk-QW2GGDEG.js";
11
+ import "../../../chunk-LE2SDA4O.js";
12
+ import "../../../chunk-7QVYU63E.js";
43
13
  export {
44
14
  executeQuery,
45
15
  getPool
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/utility/utilis/postgres/executeQuery.ts"],"sourcesContent":["import type {QueryItems} from \"../../libs/interface.js\";\r\nimport {isMySQL, isPostgreSQL} from \"../general/sqlDb.js.js\";\r\nimport {ENV} from \"../../libs/env.js\";\r\nimport {executePgSqlQuery} from \"./subSqlfiles/executePgQuery.js\";\r\nimport {executeMySqlQuery} from \"./subSqlfiles/executeMySqlQuery.js\";\r\nimport {getMySqlPool} from \"../../../engine/sql/mySql.js\";\r\nimport {getPgSqlPool} from \"../../../engine/sql/pgSql.js\";\r\n\r\n\r\n\r\n\r\n/**\r\n * Executes one or more SQL queries using the database configured through\r\n * the `SQL_DB_URL` environment variable.\r\n *\r\n * The function automatically detects whether the configured database is\r\n * PostgreSQL or MySQL and delegates execution to the appropriate database\r\n * implementation.\r\n *\r\n * Supports structured CRUD operations (`insert_one`, `insert_many`, `select`,\r\n * `update`, and `delete`) as well as custom raw SQL queries.\r\n *\r\n * Parameterized conditions and raw queries are supported. The placeholder\r\n * syntax must match the configured database engine:\r\n *\r\n * - MySQL uses `?` placeholders.\r\n * - PostgreSQL uses `$1`, `$2`, `$3`, etc.\r\n *\r\n * The corresponding values are supplied through `conditionalParams` for\r\n * structured CRUD operations or `params` for raw SQL queries.\r\n *\r\n * @param query - The SQL operations to execute.\r\n * @param query.crud - Optional array of structured CRUD operations.\r\n * @param query.custom - Optional raw SQL query or array of raw SQL queries.\r\n *\r\n * @returns A promise resolving to the result returned by the PostgreSQL or\r\n * MySQL query executor. If the configured `SQL_DB_URL` does not represent a\r\n * supported database, an `Error` is returned.\r\n *\r\n * @example\r\n * // Insert a user.\r\n * //\r\n * // This operation is database-independent because the values are passed\r\n * // as an object and the underlying executor generates the appropriate SQL.\r\n * await executeQuery({\r\n * crud: [\r\n * {\r\n * insert_one: {\r\n * table: CONSTANTS.USER_INFOS,\r\n * item: {\r\n * [CONSTANTS.USER_PRIMARY_ID]: generateUniqueValue(32),\r\n * [CONSTANTS.USER_NAME]: 'Divyanshu',\r\n * [CONSTANTS.USER_EMAIL]: 'div@example.com',\r\n * [CONSTANTS.USER_GENDER]: CONSTANTS.GENDER_TYPE.MALE,\r\n * },\r\n * },\r\n * },\r\n * ],\r\n * });\r\n *\r\n * @example\r\n * // Select a user by email.\r\n * //\r\n * // MySQL:\r\n * // condition: 'user_email = ?'\r\n * //\r\n * // PostgreSQL:\r\n * // condition: 'user_email = $1'\r\n * //\r\n * // The value is supplied separately through conditionalParams.\r\n * await executeQuery({\r\n * crud: [\r\n * {\r\n * select: {\r\n * table: CONSTANTS.USER_INFOS,\r\n * columns: [\r\n * CONSTANTS.USER_PRIMARY_ID,\r\n * CONSTANTS.USER_NAME,\r\n * CONSTANTS.USER_EMAIL,\r\n * ],\r\n * condition: 'user_email = ?',\r\n * conditionalParams: ['div@example.com'],\r\n * },\r\n * },\r\n * ],\r\n * });\r\n *\r\n * @example\r\n * // Update a user's information.\r\n * //\r\n * // MySQL:\r\n * // condition: 'user_primary_id = ?'\r\n * //\r\n * // PostgreSQL:\r\n * // condition: 'user_primary_id = $1'\r\n * await executeQuery({\r\n * crud: [\r\n * {\r\n * update: {\r\n * table: CONSTANTS.USER_INFOS,\r\n * item: {\r\n * [CONSTANTS.USER_NAME]: 'Div',\r\n * [CONSTANTS.USER_PHONE_NUMBER]: '+1234567890',\r\n * },\r\n * condition: 'user_primary_id = ?',\r\n * conditionalParams: [\r\n * '550e8400-e29b-41d4-a716-446655440000',\r\n * ],\r\n * },\r\n * },\r\n * ],\r\n * });\r\n *\r\n * @example\r\n * // Delete a user.\r\n * //\r\n * // Replace `?` with `$1` when using PostgreSQL.\r\n * await executeQuery({\r\n * crud: [\r\n * {\r\n * delete: {\r\n * table: CONSTANTS.USER_INFOS,\r\n * condition: 'user_primary_id = ?',\r\n * conditionalParams: [\r\n * '550e8400-e29b-41d4-a716-446655440000',\r\n * ],\r\n * },\r\n * },\r\n * ],\r\n * });\r\n *\r\n * @example\r\n * // Execute a raw SQL query.\r\n * //\r\n * // MySQL:\r\n * // query: 'SELECT * FROM user_infos WHERE user_email = ?'\r\n * //\r\n * // PostgreSQL:\r\n * // query: 'SELECT * FROM user_infos WHERE user_email = $1'\r\n * await executeQuery({\r\n * custom: {\r\n * query: 'SELECT * FROM user_infos WHERE user_email = ?',\r\n * params: ['div@example.com'],\r\n * },\r\n * });\r\n *\r\n * @example\r\n * // Execute multiple operations in one call.\r\n * //\r\n * // The underlying executor handles the operations according to the\r\n * // configured database engine.\r\n * await executeQuery({\r\n * crud: [\r\n * {\r\n * insert_one: {\r\n * table: CONSTANTS.USER_INFOS,\r\n * item: {\r\n * [CONSTANTS.USER_PRIMARY_ID]: generateUniqueValue(32),\r\n * [CONSTANTS.USER_NAME]: 'Alice',\r\n * [CONSTANTS.USER_EMAIL]: 'alice@example.com',\r\n * },\r\n * },\r\n * },\r\n * {\r\n * update: {\r\n * table: CONSTANTS.USER_INFOS,\r\n * item: {\r\n * status: 'active',\r\n * },\r\n * condition: 'user_email = ?',\r\n * conditionalParams: ['alice@example.com'],\r\n * },\r\n * },\r\n * ],\r\n * });\r\n */\r\nexport const executeQuery = async (query: QueryItems) => {\r\n\r\n if (isPostgreSQL(ENV.SQL_DB_URL)) {\r\n return await executePgSqlQuery(query)\r\n }\r\n else if (isMySQL(ENV.SQL_DB_URL)) {\r\n return await executeMySqlQuery(query)\r\n }\r\n else {\r\n return new Error(`Unable to execute query. Please check the SQL_DB_URL in .env file and the db.sql file.`);\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * Returns the connection pool for the SQL database configured through\r\n * the `SQL_DB_URL` environment variable.\r\n *\r\n * The database type is detected automatically from the connection URL.\r\n * If the URL represents a PostgreSQL database, the PostgreSQL connection\r\n * pool is returned. If it represents a MySQL database, the MySQL connection\r\n * pool is returned.\r\n *\r\n * This function acts as the database-agnostic entry point for obtaining\r\n * the application's SQL connection pool. Callers do not need to know\r\n * whether the application is currently using PostgreSQL or MySQL.\r\n *\r\n * The underlying pool is created lazily and reused across subsequent\r\n * calls through `getPgSqlPool()` or `getMySqlPool()`.\r\n *\r\n * @returns A promise resolving to the PostgreSQL or MySQL connection pool,\r\n * depending on the configured `SQL_DB_URL`. Returns `undefined` if the\r\n * configured database URL does not match a supported SQL database.\r\n *\r\n * @example\r\n * // Get the configured SQL connection pool.\r\n * const pool = await getPool();\r\n *\r\n * if (!pool) {\r\n * throw new Error('Unsupported SQL database configuration.');\r\n * }\r\n *\r\n * @example\r\n * // The same function works regardless of whether the application\r\n * // is configured to use PostgreSQL or MySQL.\r\n * const pool = await getPool();\r\n *\r\n * if (pool) {\r\n * // Use the returned pool with the appropriate database layer.\r\n * console.log('Database pool is ready.');\r\n * }\r\n */\r\nexport const getPool = async () => {\r\n if (isPostgreSQL(ENV.SQL_DB_URL)) {\r\n return getPgSqlPool()\r\n }\r\n if (isMySQL(ENV.SQL_DB_URL)) {\r\n return getMySqlPool()\r\n }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgLO,IAAM,eAAe,8BAAO,UAAsB;AAErD,MAAI,aAAa,IAAI,UAAU,GAAG;AAC9B,WAAO,MAAM,kBAAkB,KAAK;AAAA,EACxC,WACS,QAAQ,IAAI,UAAU,GAAG;AAC9B,WAAO,MAAM,kBAAkB,KAAK;AAAA,EACxC,OACK;AACD,WAAO,IAAI,MAAM,wFAAwF;AAAA,EAC7G;AAEJ,GAZ4B;AAwDrB,IAAM,UAAU,mCAAY;AAC/B,MAAI,aAAa,IAAI,UAAU,GAAG;AAC9B,WAAO,aAAa;AAAA,EACxB;AACA,MAAI,QAAQ,IAAI,UAAU,GAAG;AACzB,WAAO,aAAa;AAAA,EACxB;AACJ,GAPuB;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executeMySqlQuery
3
- } from "../../../../chunk-TP3K7DMH.js";
4
- import "../../../../chunk-QVTKG7FD.js";
5
- import "../../../../chunk-W3W3X2OE.js";
6
- import "../../../../chunk-EWQYVPOL.js";
3
+ } from "../../../../chunk-U7BCM2WN.js";
4
+ import "../../../../chunk-HV3IQJH3.js";
5
+ import "../../../../chunk-QW2GGDEG.js";
6
+ import "../../../../chunk-LE2SDA4O.js";
7
7
  import "../../../../chunk-7QVYU63E.js";
8
8
  export {
9
9
  executeMySqlQuery
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  executeCustom,
3
3
  executePgSqlQuery
4
- } from "../../../../chunk-D7A4TEXY.js";
5
- import "../../../../chunk-VFF4YFA3.js";
6
- import "../../../../chunk-W3W3X2OE.js";
7
- import "../../../../chunk-EWQYVPOL.js";
4
+ } from "../../../../chunk-ZC6ZFZ2J.js";
5
+ import "../../../../chunk-5AJKFCEE.js";
6
+ import "../../../../chunk-QW2GGDEG.js";
7
+ import "../../../../chunk-LE2SDA4O.js";
8
8
  import "../../../../chunk-7QVYU63E.js";
9
9
  export {
10
10
  executeCustom,
@@ -1,16 +1,34 @@
1
1
  import {
2
- app_default
3
- } from "../../../chunk-NIOLLLJJ.js";
4
- import "../../../chunk-W3W3X2OE.js";
5
- import "../../../chunk-EWQYVPOL.js";
6
- import {
7
- __name
8
- } from "../../../chunk-7QVYU63E.js";
9
-
10
- // src/utility/utilis/server/app.ts
11
- var getApp = /* @__PURE__ */ __name(() => {
12
- return app_default;
13
- }, "getApp");
2
+ getApp
3
+ } from "../../../chunk-UPP2FW3G.js";
4
+ import "../../../chunk-ZTTB4NMA.js";
5
+ import "../../../chunk-3DJ6GERS.js";
6
+ import "../../../chunk-EEQ2SXDE.js";
7
+ import "../../../chunk-6BNQOIVA.js";
8
+ import "../../../chunk-YA3MW2CJ.js";
9
+ import "../../../chunk-EUWCMMGI.js";
10
+ import "../../../chunk-O76OK6Y7.js";
11
+ import "../../../chunk-22GJTNKR.js";
12
+ import "../../../chunk-U7BCM2WN.js";
13
+ import "../../../chunk-ZC6ZFZ2J.js";
14
+ import "../../../chunk-452DWS46.js";
15
+ import "../../../chunk-O2ZDXQ2Z.js";
16
+ import "../../../chunk-ZGOMCU4T.js";
17
+ import "../../../chunk-A7GR4LD2.js";
18
+ import "../../../chunk-O5ILFRFV.js";
19
+ import "../../../chunk-M7PVDT2D.js";
20
+ import "../../../chunk-HC4IDQP6.js";
21
+ import "../../../chunk-RZ7XHAUV.js";
22
+ import "../../../chunk-IZEPCXYK.js";
23
+ import "../../../chunk-ZC33GE2U.js";
24
+ import "../../../chunk-J3P6W53K.js";
25
+ import "../../../chunk-2QNCQ5L5.js";
26
+ import "../../../chunk-4L35JPDH.js";
27
+ import "../../../chunk-HV3IQJH3.js";
28
+ import "../../../chunk-5AJKFCEE.js";
29
+ import "../../../chunk-QW2GGDEG.js";
30
+ import "../../../chunk-LE2SDA4O.js";
31
+ import "../../../chunk-7QVYU63E.js";
14
32
  export {
15
33
  getApp
16
34
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/utility/utilis/server/app.ts"],"sourcesContent":["import EXPRESS_APP from \"../../../engine/server/app.js\";\r\n\r\nexport const getApp = () => {\r\n return EXPRESS_APP;\r\n}\r\n"],"mappings":";;;;;;;;;;AAEO,IAAM,SAAS,6BAAM;AACxB,SAAO;AACX,GAFsB;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,5 +1,5 @@
1
- import * as http from 'node:http';
1
+ import * as node_http from 'node:http';
2
2
 
3
- declare const getServer: () => http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
3
+ declare const getServer: () => node_http.Server<typeof node_http.IncomingMessage, typeof node_http.ServerResponse>;
4
4
 
5
5
  export { getServer };