@orizm/cli 2.2.5 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +13 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -10
- package/dist/cli.js.map +1 -1
- package/package.json +6 -5
package/dist/cli.js
CHANGED
|
@@ -437,7 +437,12 @@ function renderModuleTypes(mod) {
|
|
|
437
437
|
]);
|
|
438
438
|
const updateType = renderTypeBlock(`${name}UpdateInput`, [
|
|
439
439
|
"id?: string;",
|
|
440
|
-
...cols.map(
|
|
440
|
+
...cols.map(
|
|
441
|
+
(col) => renderColumnField(col, {
|
|
442
|
+
optional: !col.required,
|
|
443
|
+
suffix: "UpdateInput"
|
|
444
|
+
})
|
|
445
|
+
)
|
|
441
446
|
]);
|
|
442
447
|
return [rowType, createType, updateType].join("\n\n");
|
|
443
448
|
}
|
|
@@ -512,15 +517,7 @@ var cmsGenerateCommand = new Command("generate").description("generate orizm cli
|
|
|
512
517
|
// src/cms/pull/command.ts
|
|
513
518
|
import { Command as Command2 } from "commander";
|
|
514
519
|
|
|
515
|
-
// ../internal-shared/dist/chunk-
|
|
516
|
-
function assertValidUrlOrigin(origin) {
|
|
517
|
-
const url = new URL(origin);
|
|
518
|
-
if (url.origin !== origin) {
|
|
519
|
-
throw new Error(`${origin} is not a valid URL origin`);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
// ../../node_modules/.pnpm/openapi-fetch@0.17.0/node_modules/openapi-fetch/dist/index.mjs
|
|
520
|
+
// ../internal-shared/dist/chunk-TTAO2AN2.js
|
|
524
521
|
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
525
522
|
var supportsRequestInitExt = () => {
|
|
526
523
|
return typeof process === "object" && Number.parseInt(process?.versions?.node?.substring(0, 2)) >= 18 && process.versions.undici;
|
|
@@ -995,6 +992,12 @@ function removeTrailingSlash(url) {
|
|
|
995
992
|
}
|
|
996
993
|
return url;
|
|
997
994
|
}
|
|
995
|
+
function assertValidUrlOrigin(origin) {
|
|
996
|
+
const url = new URL(origin);
|
|
997
|
+
if (url.origin !== origin) {
|
|
998
|
+
throw new Error(`${origin} is not a valid URL origin`);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
998
1001
|
|
|
999
1002
|
// ../internal-shared/dist/api-clients/dev-v2-api-client.js
|
|
1000
1003
|
function createDeveloperAPIv2Client({
|