@keshavsoft/kschema-cli 1.5.2 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/bin/{v2/commands/template → v7/commands/template/basic}/package.json +1 -1
  3. package/bin/{v4 → v7}/core/resolveCommand.js +3 -2
  4. package/package.json +4 -4
  5. package/bin/v2/commands/init.js +0 -20
  6. package/bin/v2/start.js +0 -23
  7. package/bin/v3/commands/init.js +0 -18
  8. package/bin/v3/commands/steps/announce.js +0 -3
  9. package/bin/v3/commands/steps/decideFolderName.js +0 -4
  10. package/bin/v3/commands/steps/locateDestination.js +0 -5
  11. package/bin/v3/commands/template/basic/Config/Schemas/BillsTable.json +0 -165
  12. package/bin/v3/commands/template/basic/Config/Schemas/ItemsTable.json +0 -200
  13. package/bin/v3/commands/template/basic/Config/Schemas/LedgerNames.json +0 -50
  14. package/bin/v3/commands/template/basic/Config/Schemas/StockItems.json +0 -45
  15. package/bin/v3/commands/template/basic/Data/BillsTable.json +0 -165
  16. package/bin/v3/commands/template/basic/Data/ItemsTable.json +0 -200
  17. package/bin/v3/commands/template/basic/Data/LedgerNames.json +0 -6
  18. package/bin/v3/commands/template/basic/Data/StockItems.json +0 -45
  19. package/bin/v3/commands/template/basic/app.js +0 -4
  20. package/bin/v3/commands/template/basic/package-lock.json +0 -21
  21. package/bin/v3/commands/template/basic/package.json +0 -13
  22. package/bin/v3/commands/template/basic/read.js +0 -8
  23. package/bin/v3/commands/template/basic/write.js +0 -8
  24. package/bin/v3/commands/template/express/.vscode/launch.json +0 -12
  25. package/bin/v3/commands/template/express/Config/api.json +0 -8
  26. package/bin/v3/commands/template/express/Config/schema.json +0 -8
  27. package/bin/v3/commands/template/express/Config/ui.json +0 -8
  28. package/bin/v3/commands/template/express/config.json +0 -4
  29. package/bin/v3/commands/test.js +0 -36
  30. package/bin/v3/start.js +0 -27
  31. package/bin/v4/commands/steps/createProject.js +0 -6
  32. package/bin/v4/commands/steps/decideTemplate.js +0 -3
  33. package/bin/v4/commands/steps/locateSource.js +0 -14
  34. package/bin/v4/commands/template/basic/.vscode/launch.json +0 -12
  35. package/bin/v4/commands/template/basic/Config/Schemas/BillsTable.json +0 -165
  36. package/bin/v4/commands/template/basic/Config/Schemas/ItemsTable.json +0 -200
  37. package/bin/v4/commands/template/basic/Config/Schemas/LedgerNames.json +0 -50
  38. package/bin/v4/commands/template/basic/Config/Schemas/StockItems.json +0 -45
  39. package/bin/v4/commands/template/basic/Config/api.json +0 -8
  40. package/bin/v4/commands/template/basic/Config/schema.json +0 -8
  41. package/bin/v4/commands/template/basic/Config/ui.json +0 -8
  42. package/bin/v4/commands/template/basic/Data/BillsTable.json +0 -165
  43. package/bin/v4/commands/template/basic/Data/ItemsTable.json +0 -200
  44. package/bin/v4/commands/template/basic/Data/LedgerNames.json +0 -6
  45. package/bin/v4/commands/template/basic/Data/StockItems.json +0 -45
  46. package/bin/v4/commands/template/basic/app.js +0 -4
  47. package/bin/v4/commands/template/basic/config.json +0 -4
  48. package/bin/v4/commands/template/basic/package-lock.json +0 -21
  49. package/bin/v4/commands/template/basic/package.json +0 -13
  50. package/bin/v4/commands/template/basic/read.js +0 -8
  51. package/bin/v4/commands/template/basic/write.js +0 -8
  52. package/bin/v4/commands/template/express/.env +0 -8
  53. package/bin/v4/commands/template/express/.env.local +0 -7
  54. package/bin/v4/commands/template/express/.vscode/launch.json +0 -12
  55. package/bin/v4/commands/template/express/Config/Schemas/BillsTable.json +0 -166
  56. package/bin/v4/commands/template/express/Config/Schemas/ItemsTable.json +0 -206
  57. package/bin/v4/commands/template/express/Config/Schemas/LedgerNames.json +0 -50
  58. package/bin/v4/commands/template/express/Config/Schemas/StockItems.json +0 -45
  59. package/bin/v4/commands/template/express/Config/api.json +0 -8
  60. package/bin/v4/commands/template/express/Config/schema.json +0 -8
  61. package/bin/v4/commands/template/express/Config/ui.json +0 -8
  62. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +0 -6
  63. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +0 -12
  64. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +0 -29
  65. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +0 -22
  66. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +0 -20
  67. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +0 -16
  68. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +0 -26
  69. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +0 -25
  70. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +0 -166
  71. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +0 -38
  72. package/bin/v4/commands/template/express/ForFrontEnd/Secured/buildProtected.js +0 -108
  73. package/bin/v4/commands/template/express/ForFrontEnd/Secured/latestVersion.js +0 -38
  74. package/bin/v4/commands/template/express/app.js +0 -33
  75. package/bin/v4/commands/template/express/config.json +0 -4
  76. package/bin/v4/commands/template/express/package.json +0 -18
  77. package/bin/v4/commands/test.js +0 -36
  78. package/bin/v5/commands/init.js +0 -23
  79. package/bin/v5/commands/steps/announce.js +0 -3
  80. package/bin/v5/commands/steps/createProject.js +0 -6
  81. package/bin/v5/commands/steps/decideTemplate.js +0 -3
  82. package/bin/v5/commands/steps/locateDestination.js +0 -5
  83. package/bin/v5/commands/steps/locateSource.js +0 -14
  84. package/bin/v5/commands/template/basic/.vscode/launch.json +0 -12
  85. package/bin/v5/commands/template/basic/Config/Schemas/BillsTable.json +0 -165
  86. package/bin/v5/commands/template/basic/Config/Schemas/ItemsTable.json +0 -200
  87. package/bin/v5/commands/template/basic/Config/Schemas/LedgerNames.json +0 -50
  88. package/bin/v5/commands/template/basic/Config/Schemas/StockItems.json +0 -45
  89. package/bin/v5/commands/template/basic/Config/api.json +0 -8
  90. package/bin/v5/commands/template/basic/Config/schema.json +0 -8
  91. package/bin/v5/commands/template/basic/Config/ui.json +0 -8
  92. package/bin/v5/commands/template/basic/Data/BillsTable.json +0 -165
  93. package/bin/v5/commands/template/basic/Data/ItemsTable.json +0 -200
  94. package/bin/v5/commands/template/basic/Data/LedgerNames.json +0 -6
  95. package/bin/v5/commands/template/basic/Data/StockItems.json +0 -45
  96. package/bin/v5/commands/template/basic/app.js +0 -4
  97. package/bin/v5/commands/template/basic/config.json +0 -4
  98. package/bin/v5/commands/template/basic/package-lock.json +0 -21
  99. package/bin/v5/commands/template/basic/package.json +0 -13
  100. package/bin/v5/commands/template/basic/read.js +0 -8
  101. package/bin/v5/commands/template/basic/write.js +0 -8
  102. package/bin/v5/commands/template/express/.env +0 -8
  103. package/bin/v5/commands/template/express/.env.local +0 -7
  104. package/bin/v5/commands/template/express/.vscode/launch.json +0 -12
  105. package/bin/v5/commands/template/express/Config/Schemas/BillsTable.json +0 -166
  106. package/bin/v5/commands/template/express/Config/Schemas/ItemsTable.json +0 -206
  107. package/bin/v5/commands/template/express/Config/Schemas/LedgerNames.json +0 -50
  108. package/bin/v5/commands/template/express/Config/Schemas/StockItems.json +0 -45
  109. package/bin/v5/commands/template/express/Config/api.json +0 -8
  110. package/bin/v5/commands/template/express/Config/schema.json +0 -8
  111. package/bin/v5/commands/template/express/Config/ui.json +0 -8
  112. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +0 -6
  113. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +0 -12
  114. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +0 -29
  115. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +0 -22
  116. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +0 -20
  117. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +0 -16
  118. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +0 -26
  119. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +0 -25
  120. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +0 -166
  121. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +0 -38
  122. package/bin/v5/commands/template/express/ForFrontEnd/Secured/buildProtected.js +0 -108
  123. package/bin/v5/commands/template/express/ForFrontEnd/Secured/latestVersion.js +0 -38
  124. package/bin/v5/commands/template/express/app.js +0 -33
  125. package/bin/v5/commands/template/express/config.json +0 -4
  126. package/bin/v5/commands/template/express/package.json +0 -18
  127. package/bin/v5/commands/test.js +0 -36
  128. package/bin/v5/core/parseInput.js +0 -10
  129. package/bin/v5/core/resolveCommand.js +0 -13
  130. package/bin/v5/core/resolveFolderName.js +0 -17
  131. package/bin/v5/start.js +0 -23
  132. package/generateSample.js +0 -19
  133. package/src/template/v1/Config/Schemas/BillsTable.json +0 -165
  134. package/src/template/v1/Config/Schemas/ItemsTable.json +0 -200
  135. package/src/template/v1/Config/Schemas/LedgerNames.json +0 -45
  136. package/src/template/v1/Config/Schemas/StockItems.json +0 -45
  137. package/src/template/v1/Config/api.json +0 -8
  138. package/src/template/v1/Config/schema.json +0 -8
  139. package/src/template/v1/Config/ui.json +0 -8
  140. package/src/template/v1/config.json +0 -4
  141. package/template/v1/Config/Schemas/BillsTable.json +0 -165
  142. package/template/v1/Config/Schemas/ItemsTable.json +0 -200
  143. package/template/v1/Config/Schemas/LedgerNames.json +0 -45
  144. package/template/v1/Config/Schemas/StockItems.json +0 -45
  145. package/template/v1/Config/api.json +0 -8
  146. package/template/v1/Config/schema.json +0 -8
  147. package/template/v1/Config/ui.json +0 -8
  148. package/template/v1/config.json +0 -4
  149. package/template/v2/Config/Schemas/BillsTable.json +0 -165
  150. package/template/v2/Config/Schemas/ItemsTable.json +0 -200
  151. package/template/v2/Config/Schemas/LedgerNames.json +0 -50
  152. package/template/v2/Config/Schemas/StockItems.json +0 -45
  153. package/template/v2/Config/api.json +0 -8
  154. package/template/v2/Config/schema.json +0 -8
  155. package/template/v2/Config/ui.json +0 -8
  156. package/template/v2/Data/BillsTable.json +0 -1
  157. package/template/v2/Data/ItemsTable.json +0 -1
  158. package/template/v2/Data/LedgerNames.json +0 -6
  159. package/template/v2/Data/StockItems.json +0 -1
  160. package/template/v2/config.json +0 -4
  161. package/template/v2/delete.js +0 -8
  162. package/template/v2/package.json +0 -15
  163. package/template/v2/read.js +0 -8
  164. package/template/v2/write.js +0 -8
  165. /package/bin/{v5 → v7}/commands/generateSamples.js +0 -0
  166. /package/bin/{v4 → v7}/commands/init.js +0 -0
  167. /package/bin/{v4 → v7}/commands/steps/announce.js +0 -0
  168. /package/bin/{v3 → v7}/commands/steps/createProject.js +0 -0
  169. /package/bin/{v3 → v7}/commands/steps/decideTemplate.js +0 -0
  170. /package/bin/{v4 → v7}/commands/steps/locateDestination.js +0 -0
  171. /package/bin/{v3 → v7}/commands/steps/locateSource.js +0 -0
  172. /package/bin/{v5 → v7}/commands/template/baseTemplate.js +0 -0
  173. /package/bin/{v2/commands/template → v7/commands/template/basic}/.vscode/launch.json +0 -0
  174. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/BillsTable.json +0 -0
  175. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/ItemsTable.json +0 -0
  176. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/LedgerNames.json +0 -0
  177. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/StockItems.json +0 -0
  178. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/api.json +0 -0
  179. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/schema.json +0 -0
  180. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/ui.json +0 -0
  181. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/BillsTable.json +0 -0
  182. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/ItemsTable.json +0 -0
  183. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/LedgerNames.json +0 -0
  184. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/StockItems.json +0 -0
  185. /package/bin/{v2/commands/template → v7/commands/template/basic}/app.js +0 -0
  186. /package/bin/{v2/commands/template → v7/commands/template/basic}/config.json +0 -0
  187. /package/bin/{v2/commands/template → v7/commands/template/basic}/package-lock.json +0 -0
  188. /package/bin/{v2/commands/template → v7/commands/template/basic}/read.js +0 -0
  189. /package/bin/{v2/commands/template → v7/commands/template/basic}/write.js +0 -0
  190. /package/bin/{v3 → v7}/commands/template/express/.env +0 -0
  191. /package/bin/{v3 → v7}/commands/template/express/.env.local +0 -0
  192. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/.vscode/launch.json +0 -0
  193. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/BillsTable.json +0 -0
  194. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/ItemsTable.json +0 -0
  195. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/LedgerNames.json +0 -0
  196. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/StockItems.json +0 -0
  197. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/Config/api.json +0 -0
  198. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/Config/schema.json +0 -0
  199. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/Config/ui.json +0 -0
  200. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +0 -0
  201. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +0 -0
  202. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +0 -0
  203. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +0 -0
  204. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +0 -0
  205. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +0 -0
  206. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +0 -0
  207. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +0 -0
  208. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +0 -0
  209. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +0 -0
  210. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/Secured/buildProtected.js +0 -0
  211. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/Secured/latestVersion.js +0 -0
  212. /package/bin/{v3 → v7}/commands/template/express/app.js +0 -0
  213. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/config.json +0 -0
  214. /package/bin/{v3 → v7}/commands/template/express/package.json +0 -0
  215. /package/bin/{v2 → v7}/commands/test.js +0 -0
  216. /package/bin/{v4 → v7}/core/parseInput.js +0 -0
  217. /package/bin/{v4 → v7}/core/resolveFolderName.js +0 -0
  218. /package/bin/{v4 → v7}/start.js +0 -0
@@ -1,50 +0,0 @@
1
- {
2
- "tableName": "LedgerNames",
3
- "columns": [
4
- {
5
- "field": "LedgerName",
6
- "title": "LedgerName",
7
- "unique": true,
8
- "type": "text",
9
- "isInput": true,
10
- "isAutoFocus": true,
11
- "defaultvalue": "KeshavSoft",
12
- "isConsider": true
13
- },
14
- {
15
- "field": "LedgerParentName",
16
- "title": "LedgerParentName",
17
- "type": "text",
18
- "isInput": true,
19
- "isConsider": true
20
- },
21
- {
22
- "field": "LedgerType",
23
- "title": "LedgerType",
24
- "type": "text",
25
- "isInput": true,
26
- "isConsider": true
27
- },
28
- {
29
- "field": "pk",
30
- "title": "pk",
31
- "primary": true
32
- }
33
- ],
34
- "data": [],
35
- "Vertical": [],
36
- "DataTableOptions": {
37
- "Header": {
38
- "autoFocus": "LedgerName"
39
- }
40
- },
41
- "NonSecured": {
42
- "SubRoutes": [
43
- "ShowAll",
44
- "Insert",
45
- "Pipe"
46
- ]
47
- },
48
- "PrimarykeyTableNames": [],
49
- "PrimarykeyTables": []
50
- }
@@ -1,45 +0,0 @@
1
- {
2
- "tableName": "StockItems",
3
- "columns": [
4
- {
5
- "field": "StockItemName",
6
- "title": "StockItemName",
7
- "unique": true,
8
- "type": "text",
9
- "isInput": true,
10
- "isAutoFocus": true,
11
- "defaultvalue": "KeshavSoft",
12
- "isConsider": true
13
- },
14
- {
15
- "field": "StockItemReservedName",
16
- "title": "StockItemReservedName",
17
- "type": "text",
18
- "isInput": true,
19
- "isConsider": true
20
- },
21
- {
22
- "field": "StockItemType",
23
- "title": "StockItemType",
24
- "type": "text",
25
- "isInput": true,
26
- "isConsider": true
27
- }
28
- ],
29
- "data": [],
30
- "Vertical": [],
31
- "DataTableOptions": {
32
- "Header": {
33
- "autoFocus": "StockItemName"
34
- }
35
- },
36
- "NonSecured": {
37
- "SubRoutes": [
38
- "ShowAll",
39
- "Pipe",
40
- "Insert"
41
- ]
42
- },
43
- "PrimarykeyTableNames": [],
44
- "PrimarykeyTables": []
45
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Tables": [
3
- "BillsTable",
4
- "ItemsTable",
5
- "LedgerNames",
6
- "StockItems"
7
- ]
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Tables": [
3
- "BillsTable",
4
- "ItemsTable",
5
- "LedgerNames",
6
- "StockItems"
7
- ]
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Tables": [
3
- "BillsTable",
4
- "ItemsTable",
5
- "LedgerNames",
6
- "StockItems"
7
- ]
8
- }
@@ -1 +0,0 @@
1
- []
@@ -1 +0,0 @@
1
- []
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "LedgerName": "Keshav",
4
- "pk": 1
5
- }
6
- ]
@@ -1 +0,0 @@
1
- []
@@ -1,4 +0,0 @@
1
- {
2
- "DataPath": "Data",
3
- "SchemaPath": "Config/Schemas"
4
- }
@@ -1,8 +0,0 @@
1
- import configJson from "./config.json" with { type: "json" };
2
- import { kschema } from "@keshavsoft/kschema";
3
-
4
- kschema.loadConfig(configJson);
5
-
6
- const isDeleted = kschema.table("LedgerNames").delete(1);
7
-
8
- console.log("isDeleted : ", isDeleted);
@@ -1,15 +0,0 @@
1
- {
2
- "name": "KeshavSoft",
3
- "version": "1.0.0",
4
- "description": "",
5
- "license": "ISC",
6
- "author": "",
7
- "type": "module",
8
- "main": "read.js",
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
11
- },
12
- "dependencies": {
13
- "@keshavsoft/kschema": "^1.7.4"
14
- }
15
- }
@@ -1,8 +0,0 @@
1
- import configJson from "./config.json" with { type: "json" };
2
- import { kschema } from "@keshavsoft/kschema";
3
-
4
- kschema.loadConfig(configJson);
5
-
6
- const data = kschema.table("LedgerNames").get();
7
-
8
- console.log("get Data : ", data);
@@ -1,8 +0,0 @@
1
- import configJson from "./config.json" with { type: "json" };
2
- import { kschema } from "@keshavsoft/kschema";
3
-
4
- kschema.loadConfig(configJson);
5
-
6
- const insertedPk = kschema.table("LedgerNames").insert({ LedgerName: "Keshav" });
7
-
8
- console.log("inserted Pk : ", insertedPk);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes