pontus-x_cli 0.0.6 → 1.0.0

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 (106) hide show
  1. package/README.md +558 -154
  2. package/bin/dev.js +7 -0
  3. package/bin/run.js +7 -0
  4. package/dist/commands/access.d.ts +9 -0
  5. package/dist/commands/access.js +23 -0
  6. package/dist/commands/access.js.map +1 -0
  7. package/dist/commands/change-price.d.ts +13 -0
  8. package/dist/commands/change-price.js +49 -0
  9. package/dist/commands/change-price.js.map +1 -0
  10. package/dist/commands/check-participant-compliance.d.ts +10 -0
  11. package/dist/commands/check-participant-compliance.js +54 -0
  12. package/dist/commands/check-participant-compliance.js.map +1 -0
  13. package/dist/commands/compute-results.d.ts +12 -0
  14. package/dist/commands/compute-results.js +40 -0
  15. package/dist/commands/compute-results.js.map +1 -0
  16. package/dist/commands/compute-status.d.ts +12 -0
  17. package/dist/commands/compute-status.js +40 -0
  18. package/dist/commands/compute-status.js.map +1 -0
  19. package/dist/commands/compute.d.ts +14 -0
  20. package/dist/commands/compute.js +66 -0
  21. package/dist/commands/compute.js.map +1 -0
  22. package/dist/commands/edit-algo.d.ts +16 -0
  23. package/dist/commands/edit-algo.js +51 -0
  24. package/dist/commands/edit-algo.js.map +1 -0
  25. package/dist/commands/edit-asset-url.d.ts +13 -0
  26. package/dist/commands/edit-asset-url.js +55 -0
  27. package/dist/commands/edit-asset-url.js.map +1 -0
  28. package/dist/commands/edit-trusted-algos.d.ts +13 -0
  29. package/dist/commands/edit-trusted-algos.js +54 -0
  30. package/dist/commands/edit-trusted-algos.js.map +1 -0
  31. package/dist/commands/export-private-key.d.ts +11 -0
  32. package/dist/commands/export-private-key.js +67 -0
  33. package/dist/commands/export-private-key.js.map +1 -0
  34. package/dist/commands/generate-asset-credentials.d.ts +15 -0
  35. package/dist/commands/generate-asset-credentials.js +59 -0
  36. package/dist/commands/generate-asset-credentials.js.map +1 -0
  37. package/dist/commands/generate-did-web.d.ts +10 -0
  38. package/dist/commands/generate-did-web.js +39 -0
  39. package/dist/commands/generate-did-web.js.map +1 -0
  40. package/dist/commands/generate-participant-credentials.d.ts +12 -0
  41. package/dist/commands/generate-participant-credentials.js +51 -0
  42. package/dist/commands/generate-participant-credentials.js.map +1 -0
  43. package/dist/commands/get.d.ts +9 -0
  44. package/dist/commands/get.js +23 -0
  45. package/dist/commands/get.js.map +1 -0
  46. package/dist/commands/login.d.ts +14 -0
  47. package/dist/commands/login.js +51 -0
  48. package/dist/commands/login.js.map +1 -0
  49. package/dist/commands/logout.d.ts +6 -0
  50. package/dist/commands/logout.js +24 -0
  51. package/dist/commands/logout.js.map +1 -0
  52. package/dist/commands/publish.d.ts +15 -0
  53. package/dist/commands/publish.js +107 -0
  54. package/dist/commands/publish.js.map +1 -0
  55. package/dist/commands/revoke.d.ts +12 -0
  56. package/dist/commands/revoke.js +50 -0
  57. package/dist/commands/revoke.js.map +1 -0
  58. package/dist/commands/self-description.d.ts +13 -0
  59. package/dist/commands/self-description.js +53 -0
  60. package/dist/commands/self-description.js.map +1 -0
  61. package/dist/config.d.ts +48 -0
  62. package/dist/config.js +106 -117
  63. package/dist/config.js.map +1 -1
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.js +3 -347
  66. package/dist/index.js.map +1 -1
  67. package/dist/lib/gaia-x_compliance/generate-credentials/index.d.ts +1 -0
  68. package/dist/lib/gaia-x_compliance/generate-credentials/index.js +176 -0
  69. package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -0
  70. package/dist/lib/gaia-x_compliance/generate-credentials/templates/dataset.hbs +75 -0
  71. package/dist/{gaia-x_compliance/generate-participant-credentials → lib/gaia-x_compliance/generate-credentials}/templates/participant.hbs +5 -1
  72. package/dist/lib/gaia-x_compliance/generate-credentials/templates/service.hbs +55 -0
  73. package/dist/lib/publishFromFile.d.ts +2 -0
  74. package/dist/lib/publishFromFile.js +143 -0
  75. package/dist/lib/publishFromFile.js.map +1 -0
  76. package/dist/types/schema.d.ts +2 -0
  77. package/dist/types/schema.js +8 -0
  78. package/dist/types/schema.js.map +1 -0
  79. package/dist/types/schema.json +474 -0
  80. package/dist/utils/connection.d.ts +13 -0
  81. package/dist/utils/connection.js +11 -19
  82. package/dist/utils/connection.js.map +1 -1
  83. package/oclif.manifest.json +830 -0
  84. package/package.json +69 -32
  85. package/dist/aquarius-query/index.js +0 -30
  86. package/dist/aquarius-query/index.js.map +0 -1
  87. package/dist/export-key-as-json/index.js +0 -27
  88. package/dist/export-key-as-json/index.js.map +0 -1
  89. package/dist/gaia-x_compliance/generate-did-web/index.js +0 -14
  90. package/dist/gaia-x_compliance/generate-did-web/index.js.map +0 -1
  91. package/dist/gaia-x_compliance/generate-participant-credentials/index.js +0 -161
  92. package/dist/gaia-x_compliance/generate-participant-credentials/index.js.map +0 -1
  93. package/dist/publish/samples/algo/index.js +0 -62
  94. package/dist/publish/samples/algo/index.js.map +0 -1
  95. package/dist/publish/samples/basic-predictor/index.js +0 -82
  96. package/dist/publish/samples/basic-predictor/index.js.map +0 -1
  97. package/dist/publish/samples/data/index.js +0 -55
  98. package/dist/publish/samples/data/index.js.map +0 -1
  99. package/dist/utils/index.js +0 -20
  100. package/dist/utils/index.js.map +0 -1
  101. package/dist/utils/package-version.js +0 -22
  102. package/dist/utils/package-version.js.map +0 -1
  103. package/dist/utils/publish-script-runner.js +0 -60
  104. package/dist/utils/publish-script-runner.js.map +0 -1
  105. /package/dist/{gaia-x_compliance/generate-participant-credentials → lib/gaia-x_compliance/generate-credentials}/templates/lrn-request.hbs +0 -0
  106. /package/dist/{gaia-x_compliance/generate-participant-credentials → lib/gaia-x_compliance/generate-credentials}/templates/tandc.hbs +0 -0
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.packageVersion = packageVersion;
4
- function packageVersion() {
5
- let packageJson;
6
- try {
7
- // Try to require the local package.json
8
- packageJson = require('../../package.json');
9
- }
10
- catch (localError) {
11
- try {
12
- // If local package.json is not found, require it from the installed package
13
- packageJson = require('pontus-x_cli/package.json');
14
- }
15
- catch (packageError) {
16
- console.error('Error: package.json not found locally or in the installed package.');
17
- process.exit(1);
18
- }
19
- }
20
- return packageJson.version;
21
- }
22
- //# sourceMappingURL=package-version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../src/utils/package-version.ts"],"names":[],"mappings":";;AAAA,wCAeC;AAfD,SAAgB,cAAc;IAC1B,IAAI,WAAW,CAAC;IAChB,IAAI,CAAC;QACD,wCAAwC;QACxC,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC;YACD,4EAA4E;YAC5E,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACvD,CAAC;QAAC,OAAO,YAAY,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YACpF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC;IACD,OAAO,WAAW,CAAC,OAAO,CAAC;AAC/B,CAAC"}
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.invokeFunctionFromFile = invokeFunctionFromFile;
37
- const fs = __importStar(require("fs"));
38
- const vm = __importStar(require("vm"));
39
- const ts = __importStar(require("typescript"));
40
- async function invokeFunctionFromFile(filePath, functionName, ...args) {
41
- // Read the TypeScript file content
42
- const tsContent = fs.readFileSync(filePath, 'utf8');
43
- // Transpile TypeScript to JavaScript
44
- const jsContent = ts.transpileModule(tsContent, {
45
- compilerOptions: { module: ts.ModuleKind.CommonJS }
46
- }).outputText;
47
- // Create a new context for the script
48
- const script = new vm.Script(jsContent);
49
- const context = vm.createContext({ require, console, module, exports });
50
- // Run the script in the context
51
- script.runInContext(context);
52
- // Invoke the function by name
53
- if (typeof context[functionName] === 'function') {
54
- return context[functionName](...args);
55
- }
56
- else {
57
- throw new Error(`Function ${functionName} not found in ${filePath}`);
58
- }
59
- }
60
- //# sourceMappingURL=publish-script-runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish-script-runner.js","sourceRoot":"","sources":["../../src/utils/publish-script-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wDAsBC;AA1BD,uCAAyB;AACzB,uCAAyB;AACzB,+CAAiC;AAE1B,KAAK,UAAU,sBAAsB,CAAC,QAAgB,EAAE,YAAoB,EAAE,GAAG,IAAW;IAC/F,mCAAmC;IACnC,MAAM,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEpD,qCAAqC;IACrC,MAAM,SAAS,GAAG,EAAE,CAAC,eAAe,CAAC,SAAS,EAAE;QAC5C,eAAe,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE;KACtD,CAAC,CAAC,UAAU,CAAC;IAEd,sCAAsC;IACtC,MAAM,MAAM,GAAG,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAExE,gCAAgC;IAChC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAE7B,8BAA8B;IAC9B,IAAI,OAAO,OAAO,CAAC,YAAY,CAAC,KAAK,UAAU,EAAE,CAAC;QAC9C,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1C,CAAC;SAAM,CAAC;QACJ,MAAM,IAAI,KAAK,CAAC,YAAY,YAAY,iBAAiB,QAAQ,EAAE,CAAC,CAAC;IACzE,CAAC;AACL,CAAC"}