@managespace/sdk 0.0.171 → 0.0.172
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.
|
@@ -30,6 +30,12 @@ export interface TemplateField {
|
|
|
30
30
|
* @memberof TemplateField
|
|
31
31
|
*/
|
|
32
32
|
type: FieldType;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the field is required or not
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof TemplateField
|
|
37
|
+
*/
|
|
38
|
+
required: boolean;
|
|
33
39
|
/**
|
|
34
40
|
* The locations in the document the field appears
|
|
35
41
|
* @type {Array<FieldArea>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-field.d.ts","sourceRoot":"","sources":["../../../src/generated/models/template-field.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,
|
|
1
|
+
{"version":3,"file":"template-field.d.ts","sourceRoot":"","sources":["../../../src/generated/models/template-field.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAYjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahH"}
|
|
@@ -25,6 +25,8 @@ function instanceOfTemplateField(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('type' in value) || value['type'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('required' in value) || value['required'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('areas' in value) || value['areas'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
return true;
|
|
@@ -41,6 +43,7 @@ function TemplateFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
return {
|
|
42
44
|
'name': json['name'],
|
|
43
45
|
'type': (0, field_type_1.FieldTypeFromJSON)(json['type']),
|
|
46
|
+
'required': json['required'],
|
|
44
47
|
'areas': (json['areas'].map(field_area_1.FieldAreaFromJSON)),
|
|
45
48
|
'preferences': json['preferences'] == null ? undefined : (0, field_preferences_1.FieldPreferencesFromJSON)(json['preferences']),
|
|
46
49
|
};
|
|
@@ -57,6 +60,7 @@ function TemplateFieldToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
60
|
return {
|
|
58
61
|
'name': value['name'],
|
|
59
62
|
'type': (0, field_type_1.FieldTypeToJSON)(value['type']),
|
|
63
|
+
'required': value['required'],
|
|
60
64
|
'areas': (value['areas'].map(field_area_1.FieldAreaToJSON)),
|
|
61
65
|
'preferences': (0, field_preferences_1.FieldPreferencesToJSON)(value['preferences']),
|
|
62
66
|
};
|
package/package.json
CHANGED
|
@@ -53,6 +53,12 @@ export interface TemplateField {
|
|
|
53
53
|
* @memberof TemplateField
|
|
54
54
|
*/
|
|
55
55
|
type: FieldType;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the field is required or not
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof TemplateField
|
|
60
|
+
*/
|
|
61
|
+
required: boolean;
|
|
56
62
|
/**
|
|
57
63
|
* The locations in the document the field appears
|
|
58
64
|
* @type {Array<FieldArea>}
|
|
@@ -75,6 +81,7 @@ export interface TemplateField {
|
|
|
75
81
|
export function instanceOfTemplateField(value: object): value is TemplateField {
|
|
76
82
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
77
83
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
84
|
+
if (!('required' in value) || value['required'] === undefined) return false;
|
|
78
85
|
if (!('areas' in value) || value['areas'] === undefined) return false;
|
|
79
86
|
return true;
|
|
80
87
|
}
|
|
@@ -91,6 +98,7 @@ export function TemplateFieldFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
91
98
|
|
|
92
99
|
'name': json['name'],
|
|
93
100
|
'type': FieldTypeFromJSON(json['type']),
|
|
101
|
+
'required': json['required'],
|
|
94
102
|
'areas': ((json['areas'] as Array<any>).map(FieldAreaFromJSON)),
|
|
95
103
|
'preferences': json['preferences'] == null ? undefined : FieldPreferencesFromJSON(json['preferences']),
|
|
96
104
|
};
|
|
@@ -109,6 +117,7 @@ export function TemplateFieldToJSONTyped(value?: TemplateField | null, ignoreDis
|
|
|
109
117
|
|
|
110
118
|
'name': value['name'],
|
|
111
119
|
'type': FieldTypeToJSON(value['type']),
|
|
120
|
+
'required': value['required'],
|
|
112
121
|
'areas': ((value['areas'] as Array<any>).map(FieldAreaToJSON)),
|
|
113
122
|
'preferences': FieldPreferencesToJSON(value['preferences']),
|
|
114
123
|
};
|