@webda/models 4.0.0-beta.6 → 4.0.0-beta.7

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This module is part of Webda Application Framework that allows you to quickly develop applications with all modern prerequisites: Security, Extensibility, GraphQL, REST, CloudNative [https://webda.io](https://webda.io)
4
4
 
5
- <img src="https://webda.io/images/webda.svg" width="128" />
5
+ <img src="https://webda.io/img/webda.svg" width="128" />
6
6
 
7
7
  ![CI](https://github.com/loopingz/webda.io/workflows/CI/badge.svg)
8
8
 
@@ -128,6 +128,7 @@ Instance operations become `POST /models/:key/method`; static operations become
128
128
  - [Permissions](../../docs/pages/Modules/models/Permissions.md)
129
129
 
130
130
  <!-- README_FOOTER -->
131
+
131
132
  ## Sponsors
132
133
 
133
134
  <!--
@@ -136,12 +137,12 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
136
137
 
137
138
  Arize AI is a machine learning observability and model monitoring platform. It helps you visualize, monitor, and explain your machine learning models. [Learn more](https://arize.com)
138
139
 
139
- [<img src="https://arize.com/hubfs/arize/brand/arize-logomark-1.png" width="200">](https://arize.com)
140
+ [<img src="https://webda.io/img/sponsors/arize.svg" width="200">](https://arize.com)
140
141
 
141
142
  Loopingz is a software development company that provides consulting and development services. [Learn more](https://loopingz.com)
142
143
 
143
- [<img src="https://loopingz.com/images/logo.png" width="200">](https://loopingz.com)
144
+ [<img src="https://webda.io/img/sponsors/loopingz.png" width="200">](https://loopingz.com)
144
145
 
145
146
  Tellae is an innovative consulting firm specialized in cities transportation issues. We provide our clients, both public and private, with solutions to support your strategic and operational decisions. [Learn more](https://tellae.fr)
146
147
 
147
- [<img src="https://tellae.fr/" width="200">](https://tellae.fr)
148
+ [<img src="https://webda.io/img/sponsors/tellae.svg" width="200">](https://tellae.fr)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webda/models",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.0-beta.7",
4
4
  "description": "Webda Models implementation",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -14,7 +14,8 @@
14
14
  ],
15
15
  "files": [
16
16
  "lib",
17
- "package.json"
17
+ "package.json",
18
+ "webda.module.json"
18
19
  ],
19
20
  "author": "loopingz",
20
21
  "license": "LGPL-3.0-only",
@@ -28,7 +29,7 @@
28
29
  },
29
30
  "peerDependencies": {
30
31
  "@webda/ql": "4.0.0-beta.6",
31
- "@webda/utils": "4.0.0-beta.6"
32
+ "@webda/utils": "4.0.0-beta.7"
32
33
  },
33
34
  "publishConfig": {
34
35
  "access": "public"
@@ -40,9 +41,9 @@
40
41
  "type-fest": "^5.5.0",
41
42
  "vitest": "^4.1.2",
42
43
  "vite": "^6.0.0",
43
- "@webda/compiler": "^4.0.0-beta.6",
44
- "@webda/tsc-esm": "4.0.0-beta.6",
45
- "@webda/test": "^4.0.0-beta.6"
44
+ "@webda/compiler": "^4.0.0-beta.7",
45
+ "@webda/test": "^4.0.0-beta.6",
46
+ "@webda/tsc-esm": "4.0.0-beta.7"
46
47
  },
47
48
  "type": "module",
48
49
  "engines": {
@@ -0,0 +1,120 @@
1
+ {
2
+ "$schema": "https://webda.io/schemas/webda.module.v4.json",
3
+ "beans": {},
4
+ "deployers": {},
5
+ "moddas": {},
6
+ "models": {
7
+ "Webda/Model": {
8
+ "Plural": "Models",
9
+ "Import": "lib/model.model:Model",
10
+ "Relations": {},
11
+ "Ancestors": [],
12
+ "Subclasses": [
13
+ "Webda/UuidModel"
14
+ ],
15
+ "Reflection": {},
16
+ "Schemas": {
17
+ "Output": {
18
+ "$schema": "http://json-schema.org/draft-07/schema#",
19
+ "additionalProperties": false,
20
+ "description": "Model object definition\n\nThis is the core of many application",
21
+ "type": "object",
22
+ "$webda": "toDto$auto"
23
+ },
24
+ "Input": {
25
+ "$schema": "http://json-schema.org/draft-07/schema#",
26
+ "additionalProperties": false,
27
+ "description": "Model object definition\n\nThis is the core of many application",
28
+ "type": "object",
29
+ "$webda": "fromDto$auto"
30
+ },
31
+ "Stored": {
32
+ "$schema": "http://json-schema.org/draft-07/schema#",
33
+ "additionalProperties": false,
34
+ "description": "Model object definition\n\nThis is the core of many application",
35
+ "type": "object",
36
+ "$webda": "toJSON$return"
37
+ }
38
+ },
39
+ "Actions": {},
40
+ "Events": [],
41
+ "PrimaryKey": [],
42
+ "Identifier": "Webda/Model"
43
+ },
44
+ "Webda/UuidModel": {
45
+ "Plural": "UuidModels",
46
+ "Import": "lib/model.model:UuidModel",
47
+ "Relations": {},
48
+ "Ancestors": [
49
+ "Webda/Model"
50
+ ],
51
+ "Subclasses": [],
52
+ "Reflection": {
53
+ "uuid": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "Schemas": {
58
+ "Output": {
59
+ "$schema": "http://json-schema.org/draft-07/schema#",
60
+ "additionalProperties": false,
61
+ "description": "Simple model with a UUID",
62
+ "properties": {
63
+ "uuid": {
64
+ "description": "UUID of the model",
65
+ "format": "uuid",
66
+ "type": "string"
67
+ }
68
+ },
69
+ "required": [
70
+ "uuid"
71
+ ],
72
+ "type": "object",
73
+ "$webda": "toDto$auto"
74
+ },
75
+ "Input": {
76
+ "$schema": "http://json-schema.org/draft-07/schema#",
77
+ "additionalProperties": false,
78
+ "description": "Simple model with a UUID",
79
+ "properties": {
80
+ "uuid": {
81
+ "description": "UUID of the model",
82
+ "format": "uuid",
83
+ "type": "string"
84
+ }
85
+ },
86
+ "required": [
87
+ "uuid"
88
+ ],
89
+ "type": "object",
90
+ "$webda": "fromDto$auto"
91
+ },
92
+ "Stored": {
93
+ "$schema": "http://json-schema.org/draft-07/schema#",
94
+ "additionalProperties": false,
95
+ "description": "Simple model with a UUID",
96
+ "properties": {
97
+ "uuid": {
98
+ "description": "UUID of the model",
99
+ "format": "uuid",
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "uuid"
105
+ ],
106
+ "type": "object",
107
+ "$webda": "toJSON$return"
108
+ }
109
+ },
110
+ "Actions": {},
111
+ "Events": [],
112
+ "PrimaryKey": [
113
+ "uuid"
114
+ ],
115
+ "Identifier": "Webda/UuidModel"
116
+ }
117
+ },
118
+ "schemas": {},
119
+ "behaviors": {}
120
+ }