@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/common",
3
- "version": "1.0.0-alpha.29",
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.12.1",
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 {};
@@ -25,6 +25,7 @@ export declare namespace DataType {
25
25
  projection?: string[] | FieldsProjection | '*';
26
26
  ignoreReadonlyFields?: boolean;
27
27
  ignoreWriteonlyFields?: boolean;
28
+ ignoreHiddenFields?: boolean;
28
29
  }
29
30
  }
30
31
  interface DataTypeStatic {
@@ -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 {};