@osdk/maker 0.14.0-beta.5 → 0.14.0-beta.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/CHANGELOG.md +7 -0
- package/build/browser/api/action/DefaultFormat.js +2 -0
- package/build/browser/api/action/DefaultFormat.js.map +1 -0
- package/build/browser/api/action/TableConfiguration.js +2 -0
- package/build/browser/api/action/TableConfiguration.js.map +1 -0
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js +9 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineCreateObjectAction.js +4 -2
- package/build/browser/api/defineCreateObjectAction.js.map +1 -1
- package/build/browser/api/defineCreateOrModifyObjectAction.js +4 -2
- package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js +8 -0
- package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineModifyObjectAction.js +4 -2
- package/build/browser/api/defineModifyObjectAction.js.map +1 -1
- package/build/browser/api/test/actions.test.js +1247 -1180
- package/build/browser/api/test/actions.test.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/cjs/index.cjs +30 -8
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +16 -4
- package/build/esm/api/action/DefaultFormat.js +2 -0
- package/build/esm/api/action/DefaultFormat.js.map +1 -0
- package/build/esm/api/action/TableConfiguration.js +2 -0
- package/build/esm/api/action/TableConfiguration.js.map +1 -0
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js +9 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineCreateObjectAction.js +4 -2
- package/build/esm/api/defineCreateObjectAction.js.map +1 -1
- package/build/esm/api/defineCreateOrModifyObjectAction.js +4 -2
- package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js +8 -0
- package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineModifyObjectAction.js +4 -2
- package/build/esm/api/defineModifyObjectAction.js.map +1 -1
- package/build/esm/api/test/actions.test.js +1247 -1180
- package/build/esm/api/test/actions.test.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/types/api/action/DefaultFormat.d.ts +1 -0
- package/build/types/api/action/DefaultFormat.d.ts.map +1 -0
- package/build/types/api/action/TableConfiguration.d.ts +8 -0
- package/build/types/api/action/TableConfiguration.d.ts.map +1 -0
- package/build/types/api/defineAction.d.ts +8 -4
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -24,7 +24,7 @@ import { defineOntology } from "../api/defineOntology.js";
|
|
|
24
24
|
const apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
|
|
25
25
|
const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
26
26
|
export default async function main(args = process.argv) {
|
|
27
|
-
const commandLineOpts = await yargs(hideBin(args)).version("0.14.0-beta.
|
|
27
|
+
const commandLineOpts = await yargs(hideBin(args)).version("0.14.0-beta.6" ?? "").wrap(Math.min(150, yargs().terminalWidth())).strict().help().options({
|
|
28
28
|
input: {
|
|
29
29
|
alias: "i",
|
|
30
30
|
describe: "Input file",
|
package/build/cjs/index.cjs
CHANGED
|
@@ -1705,7 +1705,7 @@ function addNamespaceIfNone(apiName) {
|
|
|
1705
1705
|
var apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
|
|
1706
1706
|
var uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
1707
1707
|
async function main(args = process.argv) {
|
|
1708
|
-
const commandLineOpts = await yargs__default.default(helpers.hideBin(args)).version("0.14.0-beta.
|
|
1708
|
+
const commandLineOpts = await yargs__default.default(helpers.hideBin(args)).version("0.14.0-beta.6").wrap(Math.min(150, yargs__default.default().terminalWidth())).strict().help().options({
|
|
1709
1709
|
input: {
|
|
1710
1710
|
alias: "i",
|
|
1711
1711
|
describe: "Input file",
|
|
@@ -2455,11 +2455,19 @@ function defineCreateInterfaceObjectAction(def) {
|
|
|
2455
2455
|
}],
|
|
2456
2456
|
parameterOrdering: def.parameterOrdering ?? createDefaultParameterOrdering(def, Object.keys(allProperties), parameters, CREATE_INTERFACE_OBJECT_PARAMETER),
|
|
2457
2457
|
...def.actionLevelValidation ? {
|
|
2458
|
-
|
|
2458
|
+
validation: convertValidationRule(def.actionLevelValidation, parameters)
|
|
2459
2459
|
} : {},
|
|
2460
|
+
...def.defaultFormat && {
|
|
2461
|
+
defaultFormat: def.defaultFormat
|
|
2462
|
+
},
|
|
2460
2463
|
...def.enableLayoutSwitch && {
|
|
2461
2464
|
enableLayoutSwitch: def.enableLayoutSwitch
|
|
2462
2465
|
},
|
|
2466
|
+
...def.tableConfiguration && {
|
|
2467
|
+
displayAndFormat: {
|
|
2468
|
+
table: def.tableConfiguration
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2463
2471
|
...def.sections && {
|
|
2464
2472
|
sections: Object.fromEntries(def.sections.map((section) => [section.id, section]))
|
|
2465
2473
|
},
|
|
@@ -2516,8 +2524,10 @@ function defineCreateObjectAction(def) {
|
|
|
2516
2524
|
...def.enableLayoutSwitch && {
|
|
2517
2525
|
enableLayoutSwitch: def.enableLayoutSwitch
|
|
2518
2526
|
},
|
|
2519
|
-
...def.
|
|
2520
|
-
displayAndFormat:
|
|
2527
|
+
...def.tableConfiguration && {
|
|
2528
|
+
displayAndFormat: {
|
|
2529
|
+
table: def.tableConfiguration
|
|
2530
|
+
}
|
|
2521
2531
|
},
|
|
2522
2532
|
...def.sections && {
|
|
2523
2533
|
sections: Object.fromEntries(def.sections.map((section) => [section.id, section]))
|
|
@@ -2590,8 +2600,10 @@ function defineCreateOrModifyObjectAction(def) {
|
|
|
2590
2600
|
...def.enableLayoutSwitch && {
|
|
2591
2601
|
enableLayoutSwitch: def.enableLayoutSwitch
|
|
2592
2602
|
},
|
|
2593
|
-
...def.
|
|
2594
|
-
displayAndFormat:
|
|
2603
|
+
...def.tableConfiguration && {
|
|
2604
|
+
displayAndFormat: {
|
|
2605
|
+
table: def.tableConfiguration
|
|
2606
|
+
}
|
|
2595
2607
|
},
|
|
2596
2608
|
...def.sections && {
|
|
2597
2609
|
sections: Object.fromEntries(def.sections.map((section) => [section.id, section]))
|
|
@@ -2903,9 +2915,17 @@ function defineModifyInterfaceObjectAction(def) {
|
|
|
2903
2915
|
...def.actionLevelValidation ? {
|
|
2904
2916
|
validation: convertValidationRule(def.actionLevelValidation, parameters)
|
|
2905
2917
|
} : {},
|
|
2918
|
+
...def.defaultFormat && {
|
|
2919
|
+
defaultFormat: def.defaultFormat
|
|
2920
|
+
},
|
|
2906
2921
|
...def.enableLayoutSwitch && {
|
|
2907
2922
|
enableLayoutSwitch: def.enableLayoutSwitch
|
|
2908
2923
|
},
|
|
2924
|
+
...def.tableConfiguration && {
|
|
2925
|
+
displayAndFormat: {
|
|
2926
|
+
table: def.tableConfiguration
|
|
2927
|
+
}
|
|
2928
|
+
},
|
|
2909
2929
|
...def.sections && {
|
|
2910
2930
|
sections: Object.fromEntries(def.sections.map((section) => [section.id, section]))
|
|
2911
2931
|
},
|
|
@@ -2977,8 +2997,10 @@ function defineModifyObjectAction(def) {
|
|
|
2977
2997
|
...def.enableLayoutSwitch && {
|
|
2978
2998
|
enableLayoutSwitch: def.enableLayoutSwitch
|
|
2979
2999
|
},
|
|
2980
|
-
...def.
|
|
2981
|
-
displayAndFormat:
|
|
3000
|
+
...def.tableConfiguration && {
|
|
3001
|
+
displayAndFormat: {
|
|
3002
|
+
table: def.tableConfiguration
|
|
3003
|
+
}
|
|
2982
3004
|
},
|
|
2983
3005
|
...def.sections && {
|
|
2984
3006
|
sections: Object.fromEntries(def.sections.map((section) => [section.id, section]))
|