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.
- package/README.md +558 -154
- package/bin/dev.js +7 -0
- package/bin/run.js +7 -0
- package/dist/commands/access.d.ts +9 -0
- package/dist/commands/access.js +23 -0
- package/dist/commands/access.js.map +1 -0
- package/dist/commands/change-price.d.ts +13 -0
- package/dist/commands/change-price.js +49 -0
- package/dist/commands/change-price.js.map +1 -0
- package/dist/commands/check-participant-compliance.d.ts +10 -0
- package/dist/commands/check-participant-compliance.js +54 -0
- package/dist/commands/check-participant-compliance.js.map +1 -0
- package/dist/commands/compute-results.d.ts +12 -0
- package/dist/commands/compute-results.js +40 -0
- package/dist/commands/compute-results.js.map +1 -0
- package/dist/commands/compute-status.d.ts +12 -0
- package/dist/commands/compute-status.js +40 -0
- package/dist/commands/compute-status.js.map +1 -0
- package/dist/commands/compute.d.ts +14 -0
- package/dist/commands/compute.js +66 -0
- package/dist/commands/compute.js.map +1 -0
- package/dist/commands/edit-algo.d.ts +16 -0
- package/dist/commands/edit-algo.js +51 -0
- package/dist/commands/edit-algo.js.map +1 -0
- package/dist/commands/edit-asset-url.d.ts +13 -0
- package/dist/commands/edit-asset-url.js +55 -0
- package/dist/commands/edit-asset-url.js.map +1 -0
- package/dist/commands/edit-trusted-algos.d.ts +13 -0
- package/dist/commands/edit-trusted-algos.js +54 -0
- package/dist/commands/edit-trusted-algos.js.map +1 -0
- package/dist/commands/export-private-key.d.ts +11 -0
- package/dist/commands/export-private-key.js +67 -0
- package/dist/commands/export-private-key.js.map +1 -0
- package/dist/commands/generate-asset-credentials.d.ts +15 -0
- package/dist/commands/generate-asset-credentials.js +59 -0
- package/dist/commands/generate-asset-credentials.js.map +1 -0
- package/dist/commands/generate-did-web.d.ts +10 -0
- package/dist/commands/generate-did-web.js +39 -0
- package/dist/commands/generate-did-web.js.map +1 -0
- package/dist/commands/generate-participant-credentials.d.ts +12 -0
- package/dist/commands/generate-participant-credentials.js +51 -0
- package/dist/commands/generate-participant-credentials.js.map +1 -0
- package/dist/commands/get.d.ts +9 -0
- package/dist/commands/get.js +23 -0
- package/dist/commands/get.js.map +1 -0
- package/dist/commands/login.d.ts +14 -0
- package/dist/commands/login.js +51 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +6 -0
- package/dist/commands/logout.js +24 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/publish.d.ts +15 -0
- package/dist/commands/publish.js +107 -0
- package/dist/commands/publish.js.map +1 -0
- package/dist/commands/revoke.d.ts +12 -0
- package/dist/commands/revoke.js +50 -0
- package/dist/commands/revoke.js.map +1 -0
- package/dist/commands/self-description.d.ts +13 -0
- package/dist/commands/self-description.js +53 -0
- package/dist/commands/self-description.js.map +1 -0
- package/dist/config.d.ts +48 -0
- package/dist/config.js +106 -117
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -347
- package/dist/index.js.map +1 -1
- package/dist/lib/gaia-x_compliance/generate-credentials/index.d.ts +1 -0
- package/dist/lib/gaia-x_compliance/generate-credentials/index.js +176 -0
- package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -0
- package/dist/lib/gaia-x_compliance/generate-credentials/templates/dataset.hbs +75 -0
- package/dist/{gaia-x_compliance/generate-participant-credentials → lib/gaia-x_compliance/generate-credentials}/templates/participant.hbs +5 -1
- package/dist/lib/gaia-x_compliance/generate-credentials/templates/service.hbs +55 -0
- package/dist/lib/publishFromFile.d.ts +2 -0
- package/dist/lib/publishFromFile.js +143 -0
- package/dist/lib/publishFromFile.js.map +1 -0
- package/dist/types/schema.d.ts +2 -0
- package/dist/types/schema.js +8 -0
- package/dist/types/schema.js.map +1 -0
- package/dist/types/schema.json +474 -0
- package/dist/utils/connection.d.ts +13 -0
- package/dist/utils/connection.js +11 -19
- package/dist/utils/connection.js.map +1 -1
- package/oclif.manifest.json +830 -0
- package/package.json +69 -32
- package/dist/aquarius-query/index.js +0 -30
- package/dist/aquarius-query/index.js.map +0 -1
- package/dist/export-key-as-json/index.js +0 -27
- package/dist/export-key-as-json/index.js.map +0 -1
- package/dist/gaia-x_compliance/generate-did-web/index.js +0 -14
- package/dist/gaia-x_compliance/generate-did-web/index.js.map +0 -1
- package/dist/gaia-x_compliance/generate-participant-credentials/index.js +0 -161
- package/dist/gaia-x_compliance/generate-participant-credentials/index.js.map +0 -1
- package/dist/publish/samples/algo/index.js +0 -62
- package/dist/publish/samples/algo/index.js.map +0 -1
- package/dist/publish/samples/basic-predictor/index.js +0 -82
- package/dist/publish/samples/basic-predictor/index.js.map +0 -1
- package/dist/publish/samples/data/index.js +0 -55
- package/dist/publish/samples/data/index.js.map +0 -1
- package/dist/utils/index.js +0 -20
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/package-version.js +0 -22
- package/dist/utils/package-version.js.map +0 -1
- package/dist/utils/publish-script-runner.js +0 -60
- package/dist/utils/publish-script-runner.js.map +0 -1
- /package/dist/{gaia-x_compliance/generate-participant-credentials → lib/gaia-x_compliance/generate-credentials}/templates/lrn-request.hbs +0 -0
- /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"}
|
|
File without changes
|