namirasoft-credential 1.4.0 → 1.4.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 (312) hide show
  1. package/dist/NamirasoftCredentialServer.d.ts +16 -0
  2. package/dist/NamirasoftCredentialServer.js +17 -1
  3. package/dist/NamirasoftCredentialServer.js.map +1 -1
  4. package/dist/NamirasoftCredentialServerAzure.d.ts +18 -0
  5. package/dist/NamirasoftCredentialServerAzure.js +64 -0
  6. package/dist/NamirasoftCredentialServerAzure.js.map +1 -0
  7. package/dist/NamirasoftCredentialServerAzureCategory.d.ts +16 -0
  8. package/dist/NamirasoftCredentialServerAzureCategory.js +56 -0
  9. package/dist/NamirasoftCredentialServerAzureCategory.js.map +1 -0
  10. package/dist/NamirasoftCredentialServerAzureField.d.ts +17 -0
  11. package/dist/NamirasoftCredentialServerAzureField.js +64 -0
  12. package/dist/NamirasoftCredentialServerAzureField.js.map +1 -0
  13. package/dist/NamirasoftCredentialServerAzureTag.d.ts +17 -0
  14. package/dist/NamirasoftCredentialServerAzureTag.js +64 -0
  15. package/dist/NamirasoftCredentialServerAzureTag.js.map +1 -0
  16. package/dist/NamirasoftCredentialServerGCP.d.ts +18 -0
  17. package/dist/NamirasoftCredentialServerGCP.js +64 -0
  18. package/dist/NamirasoftCredentialServerGCP.js.map +1 -0
  19. package/dist/NamirasoftCredentialServerGCPCategory.d.ts +16 -0
  20. package/dist/NamirasoftCredentialServerGCPCategory.js +56 -0
  21. package/dist/NamirasoftCredentialServerGCPCategory.js.map +1 -0
  22. package/dist/NamirasoftCredentialServerGCPField.d.ts +17 -0
  23. package/dist/NamirasoftCredentialServerGCPField.js +64 -0
  24. package/dist/NamirasoftCredentialServerGCPField.js.map +1 -0
  25. package/dist/NamirasoftCredentialServerGCPTag.d.ts +17 -0
  26. package/dist/NamirasoftCredentialServerGCPTag.js +64 -0
  27. package/dist/NamirasoftCredentialServerGCPTag.js.map +1 -0
  28. package/dist/command/AzureCategoryCommand.d.ts +4 -0
  29. package/dist/command/AzureCategoryCommand.js +21 -0
  30. package/dist/command/AzureCategoryCommand.js.map +1 -0
  31. package/dist/command/AzureCategoryCreateCommand.d.ts +5 -0
  32. package/dist/command/AzureCategoryCreateCommand.js +49 -0
  33. package/dist/command/AzureCategoryCreateCommand.js.map +1 -0
  34. package/dist/command/AzureCategoryDeleteCommand.d.ts +5 -0
  35. package/dist/command/AzureCategoryDeleteCommand.js +38 -0
  36. package/dist/command/AzureCategoryDeleteCommand.js.map +1 -0
  37. package/dist/command/AzureCategoryGetCommand.d.ts +5 -0
  38. package/dist/command/AzureCategoryGetCommand.js +38 -0
  39. package/dist/command/AzureCategoryGetCommand.js.map +1 -0
  40. package/dist/command/AzureCategoryListCommand.d.ts +5 -0
  41. package/dist/command/AzureCategoryListCommand.js +38 -0
  42. package/dist/command/AzureCategoryListCommand.js.map +1 -0
  43. package/dist/command/AzureCommand.d.ts +4 -0
  44. package/dist/command/AzureCommand.js +23 -0
  45. package/dist/command/AzureCommand.js.map +1 -0
  46. package/dist/command/AzureCreateCommand.d.ts +5 -0
  47. package/dist/command/AzureCreateCommand.js +121 -0
  48. package/dist/command/AzureCreateCommand.js.map +1 -0
  49. package/dist/command/AzureDeleteCommand.d.ts +5 -0
  50. package/dist/command/AzureDeleteCommand.js +38 -0
  51. package/dist/command/AzureDeleteCommand.js.map +1 -0
  52. package/dist/command/AzureFieldCommand.d.ts +4 -0
  53. package/dist/command/AzureFieldCommand.js +23 -0
  54. package/dist/command/AzureFieldCommand.js.map +1 -0
  55. package/dist/command/AzureFieldCreateCommand.d.ts +5 -0
  56. package/dist/command/AzureFieldCreateCommand.js +58 -0
  57. package/dist/command/AzureFieldCreateCommand.js.map +1 -0
  58. package/dist/command/AzureFieldDeleteCommand.d.ts +5 -0
  59. package/dist/command/AzureFieldDeleteCommand.js +38 -0
  60. package/dist/command/AzureFieldDeleteCommand.js.map +1 -0
  61. package/dist/command/AzureFieldGetCommand.d.ts +5 -0
  62. package/dist/command/AzureFieldGetCommand.js +38 -0
  63. package/dist/command/AzureFieldGetCommand.js.map +1 -0
  64. package/dist/command/AzureFieldListCommand.d.ts +5 -0
  65. package/dist/command/AzureFieldListCommand.js +38 -0
  66. package/dist/command/AzureFieldListCommand.js.map +1 -0
  67. package/dist/command/AzureFieldUpdateCommand.d.ts +5 -0
  68. package/dist/command/AzureFieldUpdateCommand.js +58 -0
  69. package/dist/command/AzureFieldUpdateCommand.js.map +1 -0
  70. package/dist/command/AzureGetCommand.d.ts +5 -0
  71. package/dist/command/AzureGetCommand.js +38 -0
  72. package/dist/command/AzureGetCommand.js.map +1 -0
  73. package/dist/command/AzureListCommand.d.ts +5 -0
  74. package/dist/command/AzureListCommand.js +38 -0
  75. package/dist/command/AzureListCommand.js.map +1 -0
  76. package/dist/command/AzureTagCommand.d.ts +4 -0
  77. package/dist/command/AzureTagCommand.js +23 -0
  78. package/dist/command/AzureTagCommand.js.map +1 -0
  79. package/dist/command/AzureTagCreateCommand.d.ts +5 -0
  80. package/dist/command/AzureTagCreateCommand.js +58 -0
  81. package/dist/command/AzureTagCreateCommand.js.map +1 -0
  82. package/dist/command/AzureTagDeleteCommand.d.ts +5 -0
  83. package/dist/command/AzureTagDeleteCommand.js +38 -0
  84. package/dist/command/AzureTagDeleteCommand.js.map +1 -0
  85. package/dist/command/AzureTagGetCommand.d.ts +5 -0
  86. package/dist/command/AzureTagGetCommand.js +38 -0
  87. package/dist/command/AzureTagGetCommand.js.map +1 -0
  88. package/dist/command/AzureTagListCommand.d.ts +5 -0
  89. package/dist/command/AzureTagListCommand.js +38 -0
  90. package/dist/command/AzureTagListCommand.js.map +1 -0
  91. package/dist/command/AzureTagUpdateCommand.d.ts +5 -0
  92. package/dist/command/AzureTagUpdateCommand.js +58 -0
  93. package/dist/command/AzureTagUpdateCommand.js.map +1 -0
  94. package/dist/command/AzureUpdateCommand.d.ts +5 -0
  95. package/dist/command/AzureUpdateCommand.js +121 -0
  96. package/dist/command/AzureUpdateCommand.js.map +1 -0
  97. package/dist/command/GCPCategoryCommand.d.ts +4 -0
  98. package/dist/command/GCPCategoryCommand.js +21 -0
  99. package/dist/command/GCPCategoryCommand.js.map +1 -0
  100. package/dist/command/GCPCategoryCreateCommand.d.ts +5 -0
  101. package/dist/command/GCPCategoryCreateCommand.js +49 -0
  102. package/dist/command/GCPCategoryCreateCommand.js.map +1 -0
  103. package/dist/command/GCPCategoryDeleteCommand.d.ts +5 -0
  104. package/dist/command/GCPCategoryDeleteCommand.js +38 -0
  105. package/dist/command/GCPCategoryDeleteCommand.js.map +1 -0
  106. package/dist/command/GCPCategoryGetCommand.d.ts +5 -0
  107. package/dist/command/GCPCategoryGetCommand.js +38 -0
  108. package/dist/command/GCPCategoryGetCommand.js.map +1 -0
  109. package/dist/command/GCPCategoryListCommand.d.ts +5 -0
  110. package/dist/command/GCPCategoryListCommand.js +38 -0
  111. package/dist/command/GCPCategoryListCommand.js.map +1 -0
  112. package/dist/command/GCPCommand.d.ts +4 -0
  113. package/dist/command/GCPCommand.js +23 -0
  114. package/dist/command/GCPCommand.js.map +1 -0
  115. package/dist/command/GCPCreateCommand.d.ts +5 -0
  116. package/dist/command/GCPCreateCommand.js +103 -0
  117. package/dist/command/GCPCreateCommand.js.map +1 -0
  118. package/dist/command/GCPDeleteCommand.d.ts +5 -0
  119. package/dist/command/GCPDeleteCommand.js +38 -0
  120. package/dist/command/GCPDeleteCommand.js.map +1 -0
  121. package/dist/command/GCPFieldCommand.d.ts +4 -0
  122. package/dist/command/GCPFieldCommand.js +23 -0
  123. package/dist/command/GCPFieldCommand.js.map +1 -0
  124. package/dist/command/GCPFieldCreateCommand.d.ts +5 -0
  125. package/dist/command/GCPFieldCreateCommand.js +58 -0
  126. package/dist/command/GCPFieldCreateCommand.js.map +1 -0
  127. package/dist/command/GCPFieldDeleteCommand.d.ts +5 -0
  128. package/dist/command/GCPFieldDeleteCommand.js +38 -0
  129. package/dist/command/GCPFieldDeleteCommand.js.map +1 -0
  130. package/dist/command/GCPFieldGetCommand.d.ts +5 -0
  131. package/dist/command/GCPFieldGetCommand.js +38 -0
  132. package/dist/command/GCPFieldGetCommand.js.map +1 -0
  133. package/dist/command/GCPFieldListCommand.d.ts +5 -0
  134. package/dist/command/GCPFieldListCommand.js +38 -0
  135. package/dist/command/GCPFieldListCommand.js.map +1 -0
  136. package/dist/command/GCPFieldUpdateCommand.d.ts +5 -0
  137. package/dist/command/GCPFieldUpdateCommand.js +58 -0
  138. package/dist/command/GCPFieldUpdateCommand.js.map +1 -0
  139. package/dist/command/GCPGetCommand.d.ts +5 -0
  140. package/dist/command/GCPGetCommand.js +38 -0
  141. package/dist/command/GCPGetCommand.js.map +1 -0
  142. package/dist/command/GCPListCommand.d.ts +5 -0
  143. package/dist/command/GCPListCommand.js +38 -0
  144. package/dist/command/GCPListCommand.js.map +1 -0
  145. package/dist/command/GCPTagCommand.d.ts +4 -0
  146. package/dist/command/GCPTagCommand.js +23 -0
  147. package/dist/command/GCPTagCommand.js.map +1 -0
  148. package/dist/command/GCPTagCreateCommand.d.ts +5 -0
  149. package/dist/command/GCPTagCreateCommand.js +58 -0
  150. package/dist/command/GCPTagCreateCommand.js.map +1 -0
  151. package/dist/command/GCPTagDeleteCommand.d.ts +5 -0
  152. package/dist/command/GCPTagDeleteCommand.js +38 -0
  153. package/dist/command/GCPTagDeleteCommand.js.map +1 -0
  154. package/dist/command/GCPTagGetCommand.d.ts +5 -0
  155. package/dist/command/GCPTagGetCommand.js +38 -0
  156. package/dist/command/GCPTagGetCommand.js.map +1 -0
  157. package/dist/command/GCPTagListCommand.d.ts +5 -0
  158. package/dist/command/GCPTagListCommand.js +38 -0
  159. package/dist/command/GCPTagListCommand.js.map +1 -0
  160. package/dist/command/GCPTagUpdateCommand.d.ts +5 -0
  161. package/dist/command/GCPTagUpdateCommand.js +58 -0
  162. package/dist/command/GCPTagUpdateCommand.js.map +1 -0
  163. package/dist/command/GCPUpdateCommand.d.ts +5 -0
  164. package/dist/command/GCPUpdateCommand.js +103 -0
  165. package/dist/command/GCPUpdateCommand.js.map +1 -0
  166. package/dist/command/cli.js +16 -0
  167. package/dist/command/cli.js.map +1 -1
  168. package/dist/index.d.ts +74 -0
  169. package/dist/index.js +74 -0
  170. package/dist/index.js.map +1 -1
  171. package/dist/meta/AzureCategoryMetaTable.d.ts +15 -0
  172. package/dist/meta/AzureCategoryMetaTable.js +38 -0
  173. package/dist/meta/AzureCategoryMetaTable.js.map +1 -0
  174. package/dist/meta/AzureFieldMetaTable.d.ts +16 -0
  175. package/dist/meta/AzureFieldMetaTable.js +39 -0
  176. package/dist/meta/AzureFieldMetaTable.js.map +1 -0
  177. package/dist/meta/AzureMetaTable.d.ts +19 -0
  178. package/dist/meta/AzureMetaTable.js +42 -0
  179. package/dist/meta/AzureMetaTable.js.map +1 -0
  180. package/dist/meta/AzureTagMetaTable.d.ts +16 -0
  181. package/dist/meta/AzureTagMetaTable.js +39 -0
  182. package/dist/meta/AzureTagMetaTable.js.map +1 -0
  183. package/dist/meta/GCPCategoryMetaTable.d.ts +15 -0
  184. package/dist/meta/GCPCategoryMetaTable.js +38 -0
  185. package/dist/meta/GCPCategoryMetaTable.js.map +1 -0
  186. package/dist/meta/GCPFieldMetaTable.d.ts +16 -0
  187. package/dist/meta/GCPFieldMetaTable.js +39 -0
  188. package/dist/meta/GCPFieldMetaTable.js.map +1 -0
  189. package/dist/meta/GCPMetaTable.d.ts +17 -0
  190. package/dist/meta/GCPMetaTable.js +40 -0
  191. package/dist/meta/GCPMetaTable.js.map +1 -0
  192. package/dist/meta/GCPTagMetaTable.d.ts +16 -0
  193. package/dist/meta/GCPTagMetaTable.js +39 -0
  194. package/dist/meta/GCPTagMetaTable.js.map +1 -0
  195. package/dist/meta/NamirasoftCredentialMetaDatabase.d.ts +16 -0
  196. package/dist/meta/NamirasoftCredentialMetaDatabase.js +16 -0
  197. package/dist/meta/NamirasoftCredentialMetaDatabase.js.map +1 -1
  198. package/dist/row/AzureCategoryRow.d.ts +8 -0
  199. package/dist/row/AzureCategoryRow.js +3 -0
  200. package/dist/row/AzureCategoryRow.js.map +1 -0
  201. package/dist/row/AzureFieldRow.d.ts +9 -0
  202. package/dist/row/AzureFieldRow.js +3 -0
  203. package/dist/row/AzureFieldRow.js.map +1 -0
  204. package/dist/row/AzureFullRow.d.ts +18 -0
  205. package/dist/row/AzureFullRow.js +3 -0
  206. package/dist/row/AzureFullRow.js.map +1 -0
  207. package/dist/row/AzureInputRow.d.ts +14 -0
  208. package/dist/row/AzureInputRow.js +3 -0
  209. package/dist/row/AzureInputRow.js.map +1 -0
  210. package/dist/row/AzureRow.d.ts +12 -0
  211. package/dist/row/AzureRow.js +3 -0
  212. package/dist/row/AzureRow.js.map +1 -0
  213. package/dist/row/AzureTagRow.d.ts +9 -0
  214. package/dist/row/AzureTagRow.js +3 -0
  215. package/dist/row/AzureTagRow.js.map +1 -0
  216. package/dist/row/GCPCategoryRow.d.ts +8 -0
  217. package/dist/row/GCPCategoryRow.js +3 -0
  218. package/dist/row/GCPCategoryRow.js.map +1 -0
  219. package/dist/row/GCPFieldRow.d.ts +9 -0
  220. package/dist/row/GCPFieldRow.js +3 -0
  221. package/dist/row/GCPFieldRow.js.map +1 -0
  222. package/dist/row/GCPFullRow.d.ts +16 -0
  223. package/dist/row/GCPFullRow.js +3 -0
  224. package/dist/row/GCPFullRow.js.map +1 -0
  225. package/dist/row/GCPInputRow.d.ts +12 -0
  226. package/dist/row/GCPInputRow.js +3 -0
  227. package/dist/row/GCPInputRow.js.map +1 -0
  228. package/dist/row/GCPRow.d.ts +10 -0
  229. package/dist/row/GCPRow.js +3 -0
  230. package/dist/row/GCPRow.js.map +1 -0
  231. package/dist/row/GCPTagRow.d.ts +9 -0
  232. package/dist/row/GCPTagRow.js +3 -0
  233. package/dist/row/GCPTagRow.js.map +1 -0
  234. package/package.json +2 -2
  235. package/src/NamirasoftCredentialServer.ts +25 -1
  236. package/src/NamirasoftCredentialServerAzure.ts +71 -0
  237. package/src/NamirasoftCredentialServerAzureCategory.ts +63 -0
  238. package/src/NamirasoftCredentialServerAzureField.ts +70 -0
  239. package/src/NamirasoftCredentialServerAzureTag.ts +70 -0
  240. package/src/NamirasoftCredentialServerGCP.ts +71 -0
  241. package/src/NamirasoftCredentialServerGCPCategory.ts +63 -0
  242. package/src/NamirasoftCredentialServerGCPField.ts +70 -0
  243. package/src/NamirasoftCredentialServerGCPTag.ts +70 -0
  244. package/src/command/AzureCategoryCommand.ts +38 -0
  245. package/src/command/AzureCategoryCreateCommand.ts +56 -0
  246. package/src/command/AzureCategoryDeleteCommand.ts +45 -0
  247. package/src/command/AzureCategoryGetCommand.ts +45 -0
  248. package/src/command/AzureCategoryListCommand.ts +45 -0
  249. package/src/command/AzureCommand.ts +40 -0
  250. package/src/command/AzureCreateCommand.ts +128 -0
  251. package/src/command/AzureDeleteCommand.ts +45 -0
  252. package/src/command/AzureFieldCommand.ts +40 -0
  253. package/src/command/AzureFieldCreateCommand.ts +65 -0
  254. package/src/command/AzureFieldDeleteCommand.ts +45 -0
  255. package/src/command/AzureFieldGetCommand.ts +45 -0
  256. package/src/command/AzureFieldListCommand.ts +45 -0
  257. package/src/command/AzureFieldUpdateCommand.ts +65 -0
  258. package/src/command/AzureGetCommand.ts +45 -0
  259. package/src/command/AzureListCommand.ts +45 -0
  260. package/src/command/AzureTagCommand.ts +40 -0
  261. package/src/command/AzureTagCreateCommand.ts +65 -0
  262. package/src/command/AzureTagDeleteCommand.ts +45 -0
  263. package/src/command/AzureTagGetCommand.ts +45 -0
  264. package/src/command/AzureTagListCommand.ts +45 -0
  265. package/src/command/AzureTagUpdateCommand.ts +65 -0
  266. package/src/command/AzureUpdateCommand.ts +128 -0
  267. package/src/command/GCPCategoryCommand.ts +38 -0
  268. package/src/command/GCPCategoryCreateCommand.ts +56 -0
  269. package/src/command/GCPCategoryDeleteCommand.ts +45 -0
  270. package/src/command/GCPCategoryGetCommand.ts +45 -0
  271. package/src/command/GCPCategoryListCommand.ts +45 -0
  272. package/src/command/GCPCommand.ts +40 -0
  273. package/src/command/GCPCreateCommand.ts +110 -0
  274. package/src/command/GCPDeleteCommand.ts +45 -0
  275. package/src/command/GCPFieldCommand.ts +40 -0
  276. package/src/command/GCPFieldCreateCommand.ts +65 -0
  277. package/src/command/GCPFieldDeleteCommand.ts +45 -0
  278. package/src/command/GCPFieldGetCommand.ts +45 -0
  279. package/src/command/GCPFieldListCommand.ts +45 -0
  280. package/src/command/GCPFieldUpdateCommand.ts +65 -0
  281. package/src/command/GCPGetCommand.ts +45 -0
  282. package/src/command/GCPListCommand.ts +45 -0
  283. package/src/command/GCPTagCommand.ts +40 -0
  284. package/src/command/GCPTagCreateCommand.ts +65 -0
  285. package/src/command/GCPTagDeleteCommand.ts +45 -0
  286. package/src/command/GCPTagGetCommand.ts +45 -0
  287. package/src/command/GCPTagListCommand.ts +45 -0
  288. package/src/command/GCPTagUpdateCommand.ts +65 -0
  289. package/src/command/GCPUpdateCommand.ts +110 -0
  290. package/src/command/cli.ts +16 -0
  291. package/src/index.ts +75 -1
  292. package/src/meta/AzureCategoryMetaTable.ts +58 -0
  293. package/src/meta/AzureFieldMetaTable.ts +60 -0
  294. package/src/meta/AzureMetaTable.ts +66 -0
  295. package/src/meta/AzureTagMetaTable.ts +60 -0
  296. package/src/meta/GCPCategoryMetaTable.ts +58 -0
  297. package/src/meta/GCPFieldMetaTable.ts +60 -0
  298. package/src/meta/GCPMetaTable.ts +62 -0
  299. package/src/meta/GCPTagMetaTable.ts +60 -0
  300. package/src/meta/NamirasoftCredentialMetaDatabase.ts +24 -0
  301. package/src/row/AzureCategoryRow.ts +29 -0
  302. package/src/row/AzureFieldRow.ts +30 -0
  303. package/src/row/AzureFullRow.ts +40 -0
  304. package/src/row/AzureInputRow.ts +36 -0
  305. package/src/row/AzureRow.ts +33 -0
  306. package/src/row/AzureTagRow.ts +30 -0
  307. package/src/row/GCPCategoryRow.ts +29 -0
  308. package/src/row/GCPFieldRow.ts +30 -0
  309. package/src/row/GCPFullRow.ts +38 -0
  310. package/src/row/GCPInputRow.ts +34 -0
  311. package/src/row/GCPRow.ts +31 -0
  312. package/src/row/GCPTagRow.ts +30 -0
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.NamirasoftCredentialServerGCPField = void 0;
13
+ const namirasoft_core_1 = require("namirasoft-core");
14
+ const NamirasoftCredentialServerBase_1 = require("./NamirasoftCredentialServerBase");
15
+ const namirasoft_core_2 = require("namirasoft-core");
16
+ class NamirasoftCredentialServerGCPField extends NamirasoftCredentialServerBase_1.NamirasoftCredentialServerBase {
17
+ constructor(server) {
18
+ super(server);
19
+ this.List = this.List.bind(this);
20
+ this.Get = this.Get.bind(this);
21
+ this.Create = this.Create.bind(this);
22
+ this.Update = this.Update.bind(this);
23
+ this.Delete = this.Delete.bind(this);
24
+ }
25
+ List(filters, page, size, sorts) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
28
+ let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
29
+ let path = `gcp/field/list`;
30
+ let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
31
+ return data;
32
+ });
33
+ }
34
+ Get(id) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ let path = `gcp/field/${id}`;
37
+ let { data } = yield this.server._get(path, {});
38
+ return data;
39
+ });
40
+ }
41
+ Create(entity_id, body) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ let path = `gcp/field/${entity_id}`;
44
+ let { data } = yield this.server._post(path, {}, body);
45
+ return data;
46
+ });
47
+ }
48
+ Update(entity_id, id, body) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ let path = `gcp/field/${entity_id}/${id}`;
51
+ let { data } = yield this.server._put(path, {}, body);
52
+ return data;
53
+ });
54
+ }
55
+ Delete(entity_id, id) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ let path = `gcp/field/${entity_id}/${id}`;
58
+ yield this.server._delete(path, {});
59
+ });
60
+ }
61
+ }
62
+ exports.NamirasoftCredentialServerGCPField = NamirasoftCredentialServerGCPField;
63
+ ;
64
+ //# sourceMappingURL=NamirasoftCredentialServerGCPField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCredentialServerGCPField.js","sourceRoot":"","sources":["../src/NamirasoftCredentialServerGCPField.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAG7C,qFAAkF;AAClF,qDAA2C;AAE3C,MAAa,kCAAmC,SAAQ,+DAA8B;IAElF,YAAY,MAAkC;QAE1C,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IACK,IAAI,CAAC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AiB,EAAE,EAAU;;YAEtC,IAAI,IAAI,GAAG,aAAa,SAAS,IAAI,EAAE,EAAE,CAAC;YAC1C,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;KAAA;CACJ;AA1CD,gFA0CC;AAAA,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { EntityTagInputRow } from "./row/EntityTagInputRow";
2
+ import { FilterItem } from "namirasoft-core";
3
+ import { GCPTagRow } from "./row/GCPTagRow";
4
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
5
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
6
+ import { SortItem } from "namirasoft-core";
7
+ export declare class NamirasoftCredentialServerGCPTag extends NamirasoftCredentialServerBase {
8
+ constructor(server: NamirasoftCredentialServer);
9
+ List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
10
+ rows: GCPTagRow[];
11
+ count: number;
12
+ }>;
13
+ Get(id: string): Promise<GCPTagRow>;
14
+ Create(entity_id: string, body: EntityTagInputRow): Promise<GCPTagRow>;
15
+ Update(entity_id: string, id: number, body: EntityTagInputRow): Promise<GCPTagRow>;
16
+ Delete(entity_id: string, id: number): Promise<void>;
17
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.NamirasoftCredentialServerGCPTag = void 0;
13
+ const namirasoft_core_1 = require("namirasoft-core");
14
+ const NamirasoftCredentialServerBase_1 = require("./NamirasoftCredentialServerBase");
15
+ const namirasoft_core_2 = require("namirasoft-core");
16
+ class NamirasoftCredentialServerGCPTag extends NamirasoftCredentialServerBase_1.NamirasoftCredentialServerBase {
17
+ constructor(server) {
18
+ super(server);
19
+ this.List = this.List.bind(this);
20
+ this.Get = this.Get.bind(this);
21
+ this.Create = this.Create.bind(this);
22
+ this.Update = this.Update.bind(this);
23
+ this.Delete = this.Delete.bind(this);
24
+ }
25
+ List(filters, page, size, sorts) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
28
+ let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
29
+ let path = `gcp/tag/list`;
30
+ let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
31
+ return data;
32
+ });
33
+ }
34
+ Get(id) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ let path = `gcp/tag/${id}`;
37
+ let { data } = yield this.server._get(path, {});
38
+ return data;
39
+ });
40
+ }
41
+ Create(entity_id, body) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ let path = `gcp/tag/${entity_id}`;
44
+ let { data } = yield this.server._post(path, {}, body);
45
+ return data;
46
+ });
47
+ }
48
+ Update(entity_id, id, body) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ let path = `gcp/tag/${entity_id}/${id}`;
51
+ let { data } = yield this.server._put(path, {}, body);
52
+ return data;
53
+ });
54
+ }
55
+ Delete(entity_id, id) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ let path = `gcp/tag/${entity_id}/${id}`;
58
+ yield this.server._delete(path, {});
59
+ });
60
+ }
61
+ }
62
+ exports.NamirasoftCredentialServerGCPTag = NamirasoftCredentialServerGCPTag;
63
+ ;
64
+ //# sourceMappingURL=NamirasoftCredentialServerGCPTag.js.map
@@ -0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E,EAAE,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAY,IAAI,EAAE,EAAE,CAAC,CAAC;YAC3D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,IAAuB;;YAEnD,IAAI,IAAI,GAAG,WAAW,SAAS,EAAE,CAAC;YAClC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,EAAU,EAAE,IAAuB;;YAE/D,IAAI,IAAI,GAAG,WAAW,SAAS,IAAI,EAAE,EAAE,CAAC;YACxC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACjE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,EAAU;;YAEtC,IAAI,IAAI,GAAG,WAAW,SAAS,IAAI,EAAE,EAAE,CAAC;YACxC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;KAAA;CACJ;AA1CD,4EA0CC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class AzureCategoryCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AzureCategoryCommand = void 0;
4
+ const AzureCategoryCreateCommand_1 = require("./AzureCategoryCreateCommand");
5
+ const AzureCategoryDeleteCommand_1 = require("./AzureCategoryDeleteCommand");
6
+ const AzureCategoryGetCommand_1 = require("./AzureCategoryGetCommand");
7
+ const AzureCategoryListCommand_1 = require("./AzureCategoryListCommand");
8
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
9
+ class AzureCategoryCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
10
+ constructor(argv) {
11
+ super(argv, {
12
+ "list": AzureCategoryListCommand_1.AzureCategoryListCommand,
13
+ "get": AzureCategoryGetCommand_1.AzureCategoryGetCommand,
14
+ "create": AzureCategoryCreateCommand_1.AzureCategoryCreateCommand,
15
+ "delete": AzureCategoryDeleteCommand_1.AzureCategoryDeleteCommand,
16
+ });
17
+ }
18
+ }
19
+ exports.AzureCategoryCommand = AzureCategoryCommand;
20
+ ;
21
+ //# sourceMappingURL=AzureCategoryCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AzureCategoryCommand.js","sourceRoot":"","sources":["../../src/command/AzureCategoryCommand.ts"],"names":[],"mappings":";;;AAoBA,6EAA0E;AAC1E,6EAA0E;AAC1E,uEAAoE;AACpE,yEAAsE;AACtE,6DAA2D;AAE3D,MAAa,oBAAqB,SAAQ,0CAAoB;IAE1D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,mDAAwB;YAChC,KAAK,EAAE,iDAAuB;YAC9B,QAAQ,EAAE,uDAA0B;YACpC,QAAQ,EAAE,uDAA0B;SACvC,CAAC,CAAC;IACP,CAAC;CACJ;AAXD,oDAWC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class AzureCategoryCreateCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AzureCategoryCreateCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class AzureCategoryCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["entity_id"], [
20
+ {
21
+ name: "category_id",
22
+ short: "",
23
+ description: "Provides the value of 'category_id' in body",
24
+ optional: false,
25
+ args: ["category_id"],
26
+ defaults: [""]
27
+ }
28
+ ]);
29
+ }
30
+ exec() {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ let token = this.app.storage.getNSAToken();
33
+ if (token == null)
34
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
35
+ let storage = new namirasoft_core_1.IStorageMemory();
36
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
37
+ manager.setValue(token, false);
38
+ let url = this.app.storage.getItem("ns-credential-server-url");
39
+ let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
40
+ let ans = yield server.azure_category.Create(this.arg_values[0], {
41
+ category_id: this.option_values.category_id
42
+ });
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ });
45
+ }
46
+ }
47
+ exports.AzureCategoryCreateCommand = AzureCategoryCreateCommand;
48
+ ;
49
+ //# sourceMappingURL=AzureCategoryCreateCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Az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gBAC7D,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA9BD,gEA8BC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class AzureCategoryDeleteCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AzureCategoryDeleteCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class AzureCategoryDeleteCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["entity_id", "id"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemory();
27
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-credential-server-url");
30
+ let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.azure_category.Delete(this.arg_values[0], this.arg_values[1]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.AzureCategoryDeleteCommand = AzureCategoryDeleteCommand;
37
+ ;
38
+ //# sourceMappingURL=AzureCategoryDeleteCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AzureCategoryDeleteCommand.js","sourceRoot":"","sources":["../../src/command/AzureCategoryDeleteCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,0BAA2B,SAAQ,sCAAgB;IAE5D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qHAAqH,CAAC,CAAC;YAC3I,IAAI,OAAO,GAAG,IAAI,gCAAc,EAAE,CAAC;YACnC,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;YAC/D,IAAI,MAAM,GAAG,IAAI,uDAA0B,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACjG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACrF,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,gEAmBC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class AzureCategoryGetCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AzureCategoryGetCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class AzureCategoryGetCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemory();
27
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-credential-server-url");
30
+ let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.azure_category.Get(this.arg_values[0]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.AzureCategoryGetCommand = AzureCategoryGetCommand;
37
+ ;
38
+ //# sourceMappingURL=AzureCategoryGetCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AzureCategoryGetCommand.js","sourceRoot":"","sources":["../../src/command/AzureCategoryGetCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,uBAAwB,SAAQ,sCAAgB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qHAAqH,CAAC,CAAC;YAC3I,IAAI,OAAO,GAAG,IAAI,gCAAc,EAAE,CAAC;YACnC,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;YAC/D,IAAI,MAAM,GAAG,IAAI,uDAA0B,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACjG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9D,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,0DAmBC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class AzureCategoryListCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AzureCategoryListCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class AzureCategoryListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["filters", "page", "size", "sorts"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemory();
27
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-credential-server-url");
30
+ let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.azure_category.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.AzureCategoryListCommand = AzureCategoryListCommand;
37
+ ;
38
+ //# sourceMappingURL=AzureCategoryListCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AzureCategoryListCommand.js","sourceRoot":"","sources":["../../src/command/AzureCategoryListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,wBAAyB,SAAQ,sCAAgB;IAE1D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1D,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qHAAqH,CAAC,CAAC;YAC3I,IAAI,OAAO,GAAG,IAAI,gCAAc,EAAE,CAAC;YACnC,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;YAC/D,IAAI,MAAM,GAAG,IAAI,uDAA0B,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACjG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3H,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,4DAmBC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class AzureCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AzureCommand = void 0;
4
+ const AzureCreateCommand_1 = require("./AzureCreateCommand");
5
+ const AzureDeleteCommand_1 = require("./AzureDeleteCommand");
6
+ const AzureGetCommand_1 = require("./AzureGetCommand");
7
+ const AzureListCommand_1 = require("./AzureListCommand");
8
+ const AzureUpdateCommand_1 = require("./AzureUpdateCommand");
9
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
10
+ class AzureCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
11
+ constructor(argv) {
12
+ super(argv, {
13
+ "list": AzureListCommand_1.AzureListCommand,
14
+ "get": AzureGetCommand_1.AzureGetCommand,
15
+ "create": AzureCreateCommand_1.AzureCreateCommand,
16
+ "update": AzureUpdateCommand_1.AzureUpdateCommand,
17
+ "delete": AzureDeleteCommand_1.AzureDeleteCommand,
18
+ });
19
+ }
20
+ }
21
+ exports.AzureCommand = AzureCommand;
22
+ ;
23
+ //# sourceMappingURL=AzureCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AzureCommand.js","sourceRoot":"","sources":["../../src/command/AzureCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA0D;AAC1D,6DAA0D;AAC1D,uDAAoD;AACpD,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA2D;AAE3D,MAAa,YAAa,SAAQ,0CAAoB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,mCAAgB;YACxB,KAAK,EAAE,iCAAe;YACtB,QAAQ,EAAE,uCAAkB;YAC5B,QAAQ,EAAE,uCAAkB;YAC5B,QAAQ,EAAE,uCAAkB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ;AAZD,oCAYC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class AzureCreateCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AzureCreateCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class AzureCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, [], [
20
+ {
21
+ name: "workspace_id",
22
+ short: "",
23
+ description: "Provides the value of 'workspace_id' in body",
24
+ optional: true,
25
+ args: ["workspace_id"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "name",
30
+ short: "",
31
+ description: "Provides the value of 'name' in body",
32
+ optional: false,
33
+ args: ["name"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "tenant_id",
38
+ short: "",
39
+ description: "Provides the value of 'tenant_id' in body",
40
+ optional: false,
41
+ args: ["tenant_id"],
42
+ defaults: [""]
43
+ },
44
+ {
45
+ name: "client_id",
46
+ short: "",
47
+ description: "Provides the value of 'client_id' in body",
48
+ optional: false,
49
+ args: ["client_id"],
50
+ defaults: [""]
51
+ },
52
+ {
53
+ name: "client_secret",
54
+ short: "",
55
+ description: "Provides the value of 'client_secret' in body",
56
+ optional: false,
57
+ args: ["client_secret"],
58
+ defaults: [""]
59
+ },
60
+ {
61
+ name: "description",
62
+ short: "",
63
+ description: "Provides the value of 'description' in body",
64
+ optional: false,
65
+ args: ["description"],
66
+ defaults: [""]
67
+ },
68
+ {
69
+ name: "azure_category",
70
+ short: "",
71
+ description: "Provides the value of 'azure_category' in body",
72
+ optional: false,
73
+ args: ["azure_category"],
74
+ defaults: [""]
75
+ },
76
+ {
77
+ name: "azure_field",
78
+ short: "",
79
+ description: "Provides the value of 'azure_field' in body",
80
+ optional: false,
81
+ args: ["azure_field"],
82
+ defaults: [""]
83
+ },
84
+ {
85
+ name: "azure_tag",
86
+ short: "",
87
+ description: "Provides the value of 'azure_tag' in body",
88
+ optional: false,
89
+ args: ["azure_tag"],
90
+ defaults: [""]
91
+ }
92
+ ]);
93
+ }
94
+ exec() {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ let token = this.app.storage.getNSAToken();
97
+ if (token == null)
98
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
99
+ let storage = new namirasoft_core_1.IStorageMemory();
100
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
101
+ manager.setValue(token, false);
102
+ let url = this.app.storage.getItem("ns-credential-server-url");
103
+ let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
104
+ let ans = yield server.azure.Create({
105
+ workspace_id: this.option_values.workspace_id,
106
+ name: this.option_values.name,
107
+ tenant_id: this.option_values.tenant_id,
108
+ client_id: this.option_values.client_id,
109
+ client_secret: this.option_values.client_secret,
110
+ description: this.option_values.description,
111
+ azure_category: this.option_values.azure_category,
112
+ azure_field: this.option_values.azure_field,
113
+ azure_tag: this.option_values.azure_tag
114
+ });
115
+ this.app.logger.success(JSON.stringify(ans));
116
+ });
117
+ }
118
+ }
119
+ exports.AzureCreateCommand = AzureCreateCommand;
120
+ ;
121
+ //# sourceMappingURL=AzureCreateCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AzureCreateCommand.js","sourceRoot":"","sources":["../../src/command/AzureCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,kBAAmB,SAAQ,sCAAgB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,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Y;gBAC7C,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,aAAa;gBAC/C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,cAAc;gBACjD,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;aAC1C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAtGD,gDAsGC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class AzureDeleteCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AzureDeleteCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCredentialServer_1 = require("../NamirasoftCredentialServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class AzureDeleteCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemory();
27
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-credential-server-url");
30
+ let server = new NamirasoftCredentialServer_1.NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.azure.Delete(this.arg_values[0]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.AzureDeleteCommand = AzureDeleteCommand;
37
+ ;
38
+ //# sourceMappingURL=AzureDeleteCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AzureDeleteCommand.js","sourceRoot":"","sources":["../../src/command/AzureDeleteCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,8EAA2E;AAC3E,2DAAkD;AAElD,MAAa,kBAAmB,SAAQ,sCAAgB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qHAAqH,CAAC,CAAC;YAC3I,IAAI,OAAO,GAAG,IAAI,gCAAc,EAAE,CAAC;YACnC,IAAI,OAAO,GAAG,IAAI,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