not-node 6.3.47 → 6.3.48
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/package.json +1 -1
- package/src/types.js +37 -0
package/package.json
CHANGED
package/src/types.js
CHANGED
|
@@ -132,4 +132,41 @@
|
|
|
132
132
|
* @property {function} [idGetter]
|
|
133
133
|
* @property {string} [client]
|
|
134
134
|
*/
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @typedef {object} notFieldSafety
|
|
138
|
+
* @property {Array<string>} create
|
|
139
|
+
* @property {Array<string>} update
|
|
140
|
+
* @property {Array<string>} read
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @typedef {Number|String|Array|Object|Date|import('mongoose').Types.ObjectId|import('mongoose').Schema.Types.Mixed} notFieldModelType
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @typedef {object} notFieldModel
|
|
149
|
+
* @property {notFieldModelType} type
|
|
150
|
+
* @property {any} default default value
|
|
151
|
+
* @property {boolean} [sortable] if field is sortable
|
|
152
|
+
* @property {boolean} [required] if required to be defined
|
|
153
|
+
* @property {notFieldSafety} [safe] safety requirements
|
|
154
|
+
* @property {string} [ref] mongoose model name, if type is ObjectId
|
|
155
|
+
* @property {string} [refPath] path to field with name of mongoose model this field value of ObjectId type reference to
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @typedef {object} notFieldUI
|
|
160
|
+
* @property {string} component name of component to render
|
|
161
|
+
* @property {string} [label] field label text or locale string
|
|
162
|
+
* @property {string} [placeholder] field placeholder text or locale string
|
|
163
|
+
* @property {boolean} [readonly] if component readonly or not
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @typedef {object} notField
|
|
168
|
+
* @property {notFieldUI} [ui]
|
|
169
|
+
* @property {notFieldModel} [model]
|
|
170
|
+
*/
|
|
171
|
+
|
|
135
172
|
module.exports = {};
|