@happyvertical/smrt-scanner 0.61.3 → 0.61.4
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/chunks/{scanner-cMSVQGr1.js → scanner-DIX2ZSU8.js} +30 -9
- package/dist/chunks/{scanner-cMSVQGr1.js.map → scanner-DIX2ZSU8.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest-adapter.d.ts.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -4065,11 +4065,11 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
4065
4065
|
else if (fieldDecoratorOptions.required !== void 0) definition.required = fieldDecoratorOptions.required;
|
|
4066
4066
|
if (fieldDecoratorOptions.default !== void 0) definition.default = fieldDecoratorOptions.default;
|
|
4067
4067
|
if (fieldDecoratorOptions.related !== void 0) definition.related = fieldDecoratorOptions.related;
|
|
4068
|
-
if (fieldDecoratorOptions.description !== void 0) definition.description = fieldDecoratorOptions.description;
|
|
4069
|
-
if (fieldDecoratorOptions.min !== void 0) definition.min = fieldDecoratorOptions.min;
|
|
4070
|
-
if (fieldDecoratorOptions.max !== void 0) definition.max = fieldDecoratorOptions.max;
|
|
4071
|
-
if (fieldDecoratorOptions.minLength !== void 0) definition.minLength = fieldDecoratorOptions.minLength;
|
|
4072
|
-
if (fieldDecoratorOptions.maxLength !== void 0) definition.maxLength = fieldDecoratorOptions.maxLength;
|
|
4068
|
+
if (fieldDecoratorOptions.description !== void 0 && fieldDecoratorOptions.description !== null) definition.description = fieldDecoratorOptions.description;
|
|
4069
|
+
if (fieldDecoratorOptions.min !== void 0 && fieldDecoratorOptions.min !== null) definition.min = fieldDecoratorOptions.min;
|
|
4070
|
+
if (fieldDecoratorOptions.max !== void 0 && fieldDecoratorOptions.max !== null) definition.max = fieldDecoratorOptions.max;
|
|
4071
|
+
if (fieldDecoratorOptions.minLength !== void 0 && fieldDecoratorOptions.minLength !== null) definition.minLength = fieldDecoratorOptions.minLength;
|
|
4072
|
+
if (fieldDecoratorOptions.maxLength !== void 0 && fieldDecoratorOptions.maxLength !== null) definition.maxLength = fieldDecoratorOptions.maxLength;
|
|
4073
4073
|
if (Object.keys(fieldDecoratorOptions).length > 0) {
|
|
4074
4074
|
definition._meta = {
|
|
4075
4075
|
...definition._meta,
|
|
@@ -4082,6 +4082,10 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
4082
4082
|
...definition._meta,
|
|
4083
4083
|
...inference._meta
|
|
4084
4084
|
};
|
|
4085
|
+
if (inference.typeUnresolved) definition._meta = {
|
|
4086
|
+
...definition._meta,
|
|
4087
|
+
__typeUnresolved: true
|
|
4088
|
+
};
|
|
4085
4089
|
if (inference.underlyingType) definition._meta = {
|
|
4086
4090
|
...definition._meta,
|
|
4087
4091
|
underlyingType: inference.underlyingType
|
|
@@ -4093,6 +4097,16 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
4093
4097
|
if (fieldDecoratorOptions.sensitive === true) definition.sensitive = true;
|
|
4094
4098
|
if (fieldDecoratorOptions.readonly === true) definition.readonly = true;
|
|
4095
4099
|
if (typeof fieldDecoratorOptions.readPermission === "string") definition.readPermission = fieldDecoratorOptions.readPermission;
|
|
4100
|
+
definition._meta = {
|
|
4101
|
+
...definition._meta,
|
|
4102
|
+
__statedOptions: [.../* @__PURE__ */ new Set([
|
|
4103
|
+
...Object.keys(fieldDecoratorOptions).filter((key) => fieldDecoratorOptions[key] !== void 0),
|
|
4104
|
+
...Object.keys(inference._meta ?? {}).filter((key) => inference._meta?.[key] !== void 0),
|
|
4105
|
+
...inference.defaultValue !== void 0 ? ["default"] : [],
|
|
4106
|
+
...definition.enum !== void 0 ? ["enum"] : [],
|
|
4107
|
+
...definition.related !== void 0 ? ["related"] : []
|
|
4108
|
+
])].filter((key) => key !== "type")
|
|
4109
|
+
};
|
|
4096
4110
|
return definition;
|
|
4097
4111
|
}
|
|
4098
4112
|
/**
|
|
@@ -4253,6 +4267,7 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
4253
4267
|
_meta: {
|
|
4254
4268
|
sqlType: "UUID",
|
|
4255
4269
|
...parsedOptions ?? {},
|
|
4270
|
+
...required && !nullable && parsedOptions?.requiredFor === void 0 ? { requiredFor: "tenant-scope" } : {},
|
|
4256
4271
|
__tenancy: {
|
|
4257
4272
|
isTenantIdField: true,
|
|
4258
4273
|
autoFilter: parsedOptions?.autoFilter ?? true,
|
|
@@ -4332,8 +4347,13 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
4332
4347
|
options.__report = reportMetadata;
|
|
4333
4348
|
continue;
|
|
4334
4349
|
}
|
|
4335
|
-
|
|
4336
|
-
|
|
4350
|
+
const optionArgument = [
|
|
4351
|
+
"foreignKey",
|
|
4352
|
+
"crossPackageRef",
|
|
4353
|
+
"oneToMany",
|
|
4354
|
+
"manyToMany"
|
|
4355
|
+
].includes(decorator.name) ? decorator.arguments[1] : ["field", "meta"].includes(decorator.name) ? decorator.arguments[0] : void 0;
|
|
4356
|
+
const parsed = this.parseFieldDecoratorOptions(optionArgument);
|
|
4337
4357
|
if (parsed) Object.assign(options, parsed);
|
|
4338
4358
|
}
|
|
4339
4359
|
return options;
|
|
@@ -4552,7 +4572,8 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
4552
4572
|
return {
|
|
4553
4573
|
type: "json",
|
|
4554
4574
|
required: isRequired,
|
|
4555
|
-
source: "default"
|
|
4575
|
+
source: "default",
|
|
4576
|
+
typeUnresolved: true
|
|
4556
4577
|
};
|
|
4557
4578
|
}
|
|
4558
4579
|
/**
|
|
@@ -5140,4 +5161,4 @@ var OxcScanner = class {
|
|
|
5140
5161
|
//#endregion
|
|
5141
5162
|
export { isPrunedAgentSurfacePath as C, sourceMayDeclareAgentSurface as E, isAgentSurfaceSourcePath as S, scanSvelteAgentSurface as T, normalizeGlobSeparators as _, extractSmrtImports as a, emptyAgentSurface as b, parseRecipeFile as c, extractRecipes as d, resolveRecipes as f, discoverSourceFiles as g, resolveEnumValues as h, defaultCollectionName as i, parseSource as l, InheritanceResolver as m, parseUiSelectorsFile as n, parseAgentSurfaceFile as o, sourceMayDeclareRecipe as p, ManifestAdapter as r, parseFile as s, OxcScanner as t, deriveHelpFieldRefs as u, relativeGlobToCwd as v, mergeAgentSurfaces as w, extractAgentSurface as x, checkAgentSurfaceToolNames as y };
|
|
5142
5163
|
|
|
5143
|
-
//# sourceMappingURL=scanner-
|
|
5164
|
+
//# sourceMappingURL=scanner-DIX2ZSU8.js.map
|