@amplication/code-gen-types
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "This library supplies all the contracts for Amplication Code Generation. The purpose is to make the contracts available for inclusion in plugins.", | ||
@@ -12,4 +12,12 @@ "main": "src/index.js", | ||
"peerDependencies": { | ||
"type-fest": "^3.11.0" | ||
} | ||
"type-fest": "^3.11.0", | ||
"fast-glob": "3.2.12", | ||
"normalize-path": "3.0.0", | ||
"ast-types": "0.14.2", | ||
"json-schema": "0.4.0", | ||
"prisma-schema-dsl-types": "1.1.2", | ||
"tslib": "2.5.0" | ||
}, | ||
"types": "./src/index.d.ts", | ||
"dependencies": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/boolean.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "boolean", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/boolean.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "boolean", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/createdAt.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "createdAt", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/createdAt.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "createdAt", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/dateTime.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "dateTime", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["timeZone", "dateOnly"], | ||
"properties": { | ||
"timeZone": { | ||
"type": "string", | ||
"enum": ["localTime", "serverTime"], | ||
"default": "localTime" | ||
}, | ||
"dateOnly": { | ||
"type": "boolean", | ||
"default": false | ||
"$id": "https://amplication.com/schema/entityfield/properties/dateTime.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "dateTime", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["timeZone", "dateOnly"], | ||
"properties": { | ||
"timeZone": { | ||
"type": "string", | ||
"enum": ["localTime", "serverTime"], | ||
"default": "localTime" | ||
}, | ||
"dateOnly": { | ||
"type": "boolean", | ||
"default": false | ||
} | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/decimalNumber.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "decimalNumber", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["minimumValue", "maximumValue", "precision"], | ||
"properties": { | ||
"databaseFieldType": { | ||
"type": "string", | ||
"description": "The database field scalar type", | ||
"enum": ["DECIMAL", "FLOAT"], | ||
"default": "DECIMAL" | ||
}, | ||
"minimumValue": { | ||
"type": "integer", | ||
"description": "The minimum value", | ||
"default": 0 | ||
}, | ||
"maximumValue": { | ||
"type": "integer", | ||
"description": "The maximum value", | ||
"default": 99999999999 | ||
}, | ||
"precision": { | ||
"type": "integer", | ||
"description": "The number of digits to the right of the decimal point", | ||
"minimum": 0, | ||
"maximum": 8, | ||
"default": 8 | ||
"$id": "https://amplication.com/schema/entityfield/properties/decimalNumber.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "decimalNumber", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["minimumValue", "maximumValue", "precision"], | ||
"properties": { | ||
"databaseFieldType": { | ||
"type": "string", | ||
"description": "The database field scalar type", | ||
"enum": ["DECIMAL", "FLOAT"], | ||
"default": "DECIMAL" | ||
}, | ||
"minimumValue": { | ||
"type": "integer", | ||
"description": "The minimum value", | ||
"default": 0 | ||
}, | ||
"maximumValue": { | ||
"type": "integer", | ||
"description": "The maximum value", | ||
"default": 99999999999 | ||
}, | ||
"precision": { | ||
"type": "integer", | ||
"description": "The number of digits to the right of the decimal point", | ||
"minimum": 0, | ||
"maximum": 8, | ||
"default": 8 | ||
} | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/email.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "email", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/email.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "email", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/geographicAddress.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "geographicAddress", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/geographicAddress.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "geographicAddress", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/id.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "id", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["idType"], | ||
"properties": { | ||
"idType": { | ||
"type": "string", | ||
"enum": ["CUID", "UUID", "AUTO_INCREMENT", "AUTO_INCREMENT_BIG_INT"], | ||
"default": "CUID" | ||
"$id": "https://amplication.com/schema/entityfield/properties/id.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "id", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["idType"], | ||
"properties": { | ||
"idType": { | ||
"type": "string", | ||
"enum": ["CUID", "UUID", "AUTO_INCREMENT", "AUTO_INCREMENT_BIG_INT"], | ||
"default": "CUID" | ||
} | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/json.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "json", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/json.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "json", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/lookup.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "lookup", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["relatedEntityId", "relatedFieldId", "allowMultipleSelection"], | ||
"properties": { | ||
"relatedEntityId": { | ||
"title": "Related Entity", | ||
"$ref": "#/definitions/EntityId", | ||
"default": null | ||
"$id": "https://amplication.com/schema/entityfield/properties/lookup.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "lookup", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["relatedEntityId", "relatedFieldId", "allowMultipleSelection"], | ||
"properties": { | ||
"relatedEntityId": { | ||
"title": "Related Entity", | ||
"$ref": "#/definitions/EntityId", | ||
"default": null | ||
}, | ||
"allowMultipleSelection": { | ||
"$ref": "#/definitions/RelationAllowMultiple", | ||
"default": false | ||
}, | ||
"fkHolder": { | ||
"title": "Foreign Key Holder", | ||
"$ref": "#/definitions/RelationFkHolder", | ||
"default": null | ||
}, | ||
"fkFieldName": { | ||
"title": "Foreign Key Field Name (Optional)", | ||
"type": "string", | ||
"default": null | ||
}, | ||
"relatedFieldId": { | ||
"title": "Related Field", | ||
"$ref": "#/definitions/EntityFieldId", | ||
"default": null | ||
} | ||
}, | ||
"allowMultipleSelection": { | ||
"$ref": "#/definitions/RelationAllowMultiple", | ||
"default": false | ||
}, | ||
"fkHolder": { | ||
"title": "Foreign Key Holder", | ||
"$ref": "#/definitions/RelationFkHolder", | ||
"default": null | ||
}, | ||
"fkFieldName": { | ||
"title": "Foreign Key Field Name (Optional)", | ||
"type": "string", | ||
"default": null | ||
}, | ||
"relatedFieldId": { | ||
"title": "Related Field", | ||
"$ref": "#/definitions/EntityFieldId", | ||
"default": null | ||
"definitions": { | ||
"EntityId": { | ||
"type": "string" | ||
}, | ||
"EntityFieldId": { | ||
"type": "string" | ||
}, | ||
"RelationAllowMultiple": { | ||
"type": "boolean" | ||
}, | ||
"RelationFkHolder": { | ||
"type": ["string", "null"] | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"EntityId": { | ||
"type": "string" | ||
}, | ||
"EntityFieldId": { | ||
"type": "string" | ||
}, | ||
"RelationAllowMultiple": { | ||
"type": "boolean" | ||
}, | ||
"RelationFkHolder": { | ||
"type": ["string", "null"] | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/multiLineText.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "multiLineText", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["maxLength"], | ||
"properties": { | ||
"maxLength": { | ||
"type": "integer", | ||
"description": "The maximum length of the field", | ||
"minimum": 1, | ||
"default": 256 | ||
"$id": "https://amplication.com/schema/entityfield/properties/multiLineText.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "multiLineText", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["maxLength"], | ||
"properties": { | ||
"maxLength": { | ||
"type": "integer", | ||
"description": "The maximum length of the field", | ||
"minimum": 1, | ||
"default": 256 | ||
} | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/multiSelectOptionSet.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "multiSelectOptionSet", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["options"], | ||
"properties": { | ||
"options": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["label", "value"], | ||
"properties": { | ||
"label": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string", | ||
"pattern": "^(?![0-9])[a-zA-Z0-9$_]+$" | ||
} | ||
"$id": "https://amplication.com/schema/entityfield/properties/multiSelectOptionSet.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "multiSelectOptionSet", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["options"], | ||
"properties": { | ||
"options": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["label", "value"], | ||
"properties": { | ||
"label": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string", | ||
"pattern": "^(?![0-9])[a-zA-Z0-9$_]+$" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/optionSet.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "optionSet", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["options"], | ||
"properties": { | ||
"options": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"required": ["label", "value"], | ||
"additionalProperties": false, | ||
"properties": { | ||
"label": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string", | ||
"pattern": "^(?![0-9])[a-zA-Z0-9$_]+$" | ||
} | ||
"$id": "https://amplication.com/schema/entityfield/properties/optionSet.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "optionSet", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["options"], | ||
"properties": { | ||
"options": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"required": ["label", "value"], | ||
"additionalProperties": false, | ||
"properties": { | ||
"label": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string", | ||
"pattern": "^(?![0-9])[a-zA-Z0-9$_]+$" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/password.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "password", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/password.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "password", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/roles.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "roles", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/roles.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "roles", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/singleLineText.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "singleLineText", | ||
"type": "object", | ||
"required": ["maxLength"], | ||
"additionalProperties": false, | ||
"properties": { | ||
"maxLength": { | ||
"type": "integer", | ||
"description": "The maximum length of the field", | ||
"minimum": 1, | ||
"default": 256 | ||
"$id": "https://amplication.com/schema/entityfield/properties/singleLineText.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "singleLineText", | ||
"type": "object", | ||
"required": ["maxLength"], | ||
"additionalProperties": false, | ||
"properties": { | ||
"maxLength": { | ||
"type": "integer", | ||
"description": "The maximum length of the field", | ||
"minimum": 1, | ||
"default": 256 | ||
} | ||
} | ||
} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/updatedAt.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "updatedAt", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/updatedAt.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "updatedAt", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/username.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "username", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
"$id": "https://amplication.com/schema/entityfield/properties/username.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "username", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": {} | ||
} |
{ | ||
"$id": "https://amplication.com/schema/entityfield/properties/wholeNumber.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "wholeNumber", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["minimumValue", "maximumValue"], | ||
"properties": { | ||
"databaseFieldType": { | ||
"type": "string", | ||
"description": "The database field scalar typee", | ||
"enum": ["INT", "BIG_INT"], | ||
"default": "INT" | ||
}, | ||
"minimumValue": { | ||
"type": "integer", | ||
"description": "The minimum value", | ||
"default": 0 | ||
}, | ||
"maximumValue": { | ||
"type": "integer", | ||
"description": "The maximum value", | ||
"default": 99999999999 | ||
"$id": "https://amplication.com/schema/entityfield/properties/wholeNumber.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "wholeNumber", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["minimumValue", "maximumValue"], | ||
"properties": { | ||
"databaseFieldType": { | ||
"type": "string", | ||
"description": "The database field scalar typee", | ||
"enum": ["INT", "BIG_INT"], | ||
"default": "INT" | ||
}, | ||
"minimumValue": { | ||
"type": "integer", | ||
"description": "The minimum value", | ||
"default": 0 | ||
}, | ||
"maximumValue": { | ||
"type": "integer", | ||
"description": "The maximum value", | ||
"default": 99999999999 | ||
} | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
154328
110
3618
1
7