@opra/common 1.0.0-alpha.29 → 1.0.0-alpha.30
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/browser.js +170 -161
- package/cjs/document/api-document.js +2 -0
- package/cjs/document/common/api-base.js +1 -0
- package/cjs/document/data-type/api-field.js +8 -7
- package/cjs/document/data-type/complex-type-base.js +3 -1
- package/cjs/document/data-type/simple-type.js +1 -6
- package/cjs/document/decorators/api-field-decorator.js +3 -4
- package/cjs/document/decorators/http-operation-entity.decorator.js +58 -59
- package/cjs/exception/opra-exception.js +1 -0
- package/cjs/helpers/object-utils.js +2 -2
- package/esm/document/api-document.js +2 -0
- package/esm/document/common/api-base.js +1 -0
- package/esm/document/data-type/api-field.js +8 -7
- package/esm/document/data-type/complex-type-base.js +3 -1
- package/esm/document/data-type/simple-type.js +1 -6
- package/esm/document/decorators/api-field-decorator.js +1 -2
- package/esm/document/decorators/http-operation-entity.decorator.js +14 -15
- package/esm/exception/opra-exception.js +1 -0
- package/esm/helpers/object-utils.js +2 -2
- package/package.json +3 -2
- package/types/document/data-type/api-field.d.ts +10 -0
- package/types/document/data-type/data-type.d.ts +1 -0
- package/types/document/http/http-parameter.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/common",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.30",
|
|
4
4
|
"description": "Opra common package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,10 +44,11 @@
|
|
|
44
44
|
"fast-tokenizer": "^1.3.0",
|
|
45
45
|
"lodash.omit": "^4.5.0",
|
|
46
46
|
"putil-isplainobject": "^1.1.5",
|
|
47
|
-
"putil-merge": "^3.
|
|
47
|
+
"putil-merge": "^3.13.0",
|
|
48
48
|
"putil-promisify": "^1.10.1",
|
|
49
49
|
"putil-varhelpers": "^1.6.5",
|
|
50
50
|
"reflect-metadata": "^0.2.2",
|
|
51
|
+
"tslib": "^2.6.3",
|
|
51
52
|
"uid": "^2.0.1",
|
|
52
53
|
"valgen": "^5.6.0"
|
|
53
54
|
},
|
|
@@ -14,6 +14,11 @@ export declare namespace ApiField {
|
|
|
14
14
|
interface Metadata extends Combine<{
|
|
15
15
|
type?: string | OpraSchema.DataType | TypeThunkAsync | EnumType.EnumObject | EnumType.EnumArray | object;
|
|
16
16
|
}, OpraSchema.Field> {
|
|
17
|
+
/**
|
|
18
|
+
* If set true, field will be available for server side only and
|
|
19
|
+
* will be removed while encoding to send to the client
|
|
20
|
+
*/
|
|
21
|
+
hidden?: boolean;
|
|
17
22
|
}
|
|
18
23
|
interface Options extends Partial<Metadata> {
|
|
19
24
|
}
|
|
@@ -62,6 +67,11 @@ declare class ApiFieldClass extends DocumentElement {
|
|
|
62
67
|
readonly readonly?: boolean;
|
|
63
68
|
readonly writeonly?: boolean;
|
|
64
69
|
readonly examples?: any[] | Record<string, any>;
|
|
70
|
+
/**
|
|
71
|
+
* If set true, field will be available for server side only and
|
|
72
|
+
* will be removed while encoding to send to the client
|
|
73
|
+
*/
|
|
74
|
+
readonly hidden?: boolean;
|
|
65
75
|
toJSON(): OpraSchema.Field;
|
|
66
76
|
}
|
|
67
77
|
export {};
|
|
@@ -41,11 +41,11 @@ export declare const HttpParameter: HttpParameterStatic;
|
|
|
41
41
|
*/
|
|
42
42
|
declare class HttpParameterClass extends Value {
|
|
43
43
|
readonly owner: DocumentElement;
|
|
44
|
+
location: OpraSchema.HttpParameterLocation;
|
|
44
45
|
keyParam?: boolean;
|
|
45
46
|
deprecated?: boolean | string;
|
|
46
47
|
required?: boolean;
|
|
47
48
|
arraySeparator?: string;
|
|
48
|
-
location: OpraSchema.HttpParameterLocation;
|
|
49
49
|
toJSON(): OpraSchema.HttpParameter;
|
|
50
50
|
}
|
|
51
51
|
export {};
|