@managespace/sdk 0.1.190 → 0.1.192

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.
@@ -14,8 +14,14 @@
14
14
  * @export
15
15
  */
16
16
  export declare const FieldConditionAction: {
17
- readonly show: "show";
18
- readonly hide: "hide";
17
+ readonly equal: "equal";
18
+ readonly not_equal: "not_equal";
19
+ readonly contains: "contains";
20
+ readonly not_contains: "not_contains";
21
+ readonly empty: "empty";
22
+ readonly not_empty: "not_empty";
23
+ readonly greater_than: "greater_than";
24
+ readonly less_than: "less_than";
19
25
  };
20
26
  export type FieldConditionAction = typeof FieldConditionAction[keyof typeof FieldConditionAction];
21
27
  export declare function instanceOfFieldConditionAction(value: any): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"field-condition-action.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-action.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
1
+ {"version":3,"file":"field-condition-action.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-action.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;CASvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
@@ -25,8 +25,14 @@ exports.FieldConditionActionToJSONTyped = FieldConditionActionToJSONTyped;
25
25
  * @export
26
26
  */
27
27
  exports.FieldConditionAction = {
28
- show: 'show',
29
- hide: 'hide'
28
+ equal: 'equal',
29
+ not_equal: 'not_equal',
30
+ contains: 'contains',
31
+ not_contains: 'not_contains',
32
+ empty: 'empty',
33
+ not_empty: 'not_empty',
34
+ greater_than: 'greater_than',
35
+ less_than: 'less_than'
30
36
  };
31
37
  function instanceOfFieldConditionAction(value) {
32
38
  for (const key in exports.FieldConditionAction) {
@@ -10,16 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Logical connector with the previous condition in the array. Omit for AND (the default); set `or` for OR.
14
14
  * @export
15
15
  */
16
16
  export declare const FieldConditionOperation: {
17
- readonly equal: "equal";
18
- readonly not_equal: "not_equal";
19
- readonly contains: "contains";
20
- readonly not_contains: "not_contains";
21
- readonly empty: "empty";
22
- readonly not_empty: "not_empty";
17
+ readonly or: "or";
23
18
  };
24
19
  export type FieldConditionOperation = typeof FieldConditionOperation[keyof typeof FieldConditionOperation];
25
20
  export declare function instanceOfFieldConditionOperation(value: any): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"field-condition-operation.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-operation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;CAO1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAG3G,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASrE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAErH;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,GAAG,GAAG,CAEzF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAEpH"}
1
+ {"version":3,"file":"field-condition-operation.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-operation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;CAE1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAG3G,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASrE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAErH;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,GAAG,GAAG,CAEzF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAEpH"}
@@ -21,16 +21,11 @@ exports.FieldConditionOperationFromJSONTyped = FieldConditionOperationFromJSONTy
21
21
  exports.FieldConditionOperationToJSON = FieldConditionOperationToJSON;
22
22
  exports.FieldConditionOperationToJSONTyped = FieldConditionOperationToJSONTyped;
23
23
  /**
24
- *
24
+ * Logical connector with the previous condition in the array. Omit for AND (the default); set `or` for OR.
25
25
  * @export
26
26
  */
27
27
  exports.FieldConditionOperation = {
28
- equal: 'equal',
29
- not_equal: 'not_equal',
30
- contains: 'contains',
31
- not_contains: 'not_contains',
32
- empty: 'empty',
33
- not_empty: 'not_empty'
28
+ or: 'or'
34
29
  };
35
30
  function instanceOfFieldConditionOperation(value) {
36
31
  for (const key in exports.FieldConditionOperation) {
@@ -30,11 +30,11 @@ export interface FieldCondition {
30
30
  */
31
31
  fieldName?: string;
32
32
  /**
33
- * The value to compare against.
33
+ * The value to compare against. Optional for `empty` / `not_empty` actions.
34
34
  * @type {string}
35
35
  * @memberof FieldCondition
36
36
  */
37
- value: string;
37
+ value?: string;
38
38
  /**
39
39
  *
40
40
  * @type {FieldConditionAction}
@@ -46,7 +46,7 @@ export interface FieldCondition {
46
46
  * @type {FieldConditionOperation}
47
47
  * @memberof FieldCondition
48
48
  */
49
- operation: FieldConditionOperation;
49
+ operation?: FieldConditionOperation;
50
50
  }
51
51
  /**
52
52
  * Check if a given object implements the FieldCondition interface.
@@ -1 +1 @@
1
- {"version":3,"file":"field-condition.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAO3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;;;OAIG;IACH,SAAS,EAAE,uBAAuB,CAAC;CACtC;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAK/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalH"}
1
+ {"version":3,"file":"field-condition.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAO3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACvC;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalH"}
@@ -25,12 +25,8 @@ const field_condition_action_1 = require("./field-condition-action");
25
25
  * Check if a given object implements the FieldCondition interface.
26
26
  */
27
27
  function instanceOfFieldCondition(value) {
28
- if (!('value' in value) || value['value'] === undefined)
29
- return false;
30
28
  if (!('action' in value) || value['action'] === undefined)
31
29
  return false;
32
- if (!('operation' in value) || value['operation'] === undefined)
33
- return false;
34
30
  return true;
35
31
  }
36
32
  function FieldConditionFromJSON(json) {
@@ -43,9 +39,9 @@ function FieldConditionFromJSONTyped(json, ignoreDiscriminator) {
43
39
  return {
44
40
  'fieldUuid': json['field_uuid'] == null ? undefined : json['field_uuid'],
45
41
  'fieldName': json['field_name'] == null ? undefined : json['field_name'],
46
- 'value': json['value'],
42
+ 'value': json['value'] == null ? undefined : json['value'],
47
43
  'action': (0, field_condition_action_1.FieldConditionActionFromJSON)(json['action']),
48
- 'operation': (0, field_condition_operation_1.FieldConditionOperationFromJSON)(json['operation']),
44
+ 'operation': json['operation'] == null ? undefined : (0, field_condition_operation_1.FieldConditionOperationFromJSON)(json['operation']),
49
45
  };
50
46
  }
51
47
  function FieldConditionToJSON(json) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.190",
3
+ "version": "0.1.192",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -19,8 +19,14 @@
19
19
  * @export
20
20
  */
21
21
  export const FieldConditionAction = {
22
- show: 'show',
23
- hide: 'hide'
22
+ equal: 'equal',
23
+ not_equal: 'not_equal',
24
+ contains: 'contains',
25
+ not_contains: 'not_contains',
26
+ empty: 'empty',
27
+ not_empty: 'not_empty',
28
+ greater_than: 'greater_than',
29
+ less_than: 'less_than'
24
30
  } as const;
25
31
  export type FieldConditionAction = typeof FieldConditionAction[keyof typeof FieldConditionAction];
26
32
 
@@ -15,16 +15,11 @@
15
15
 
16
16
 
17
17
  /**
18
- *
18
+ * Logical connector with the previous condition in the array. Omit for AND (the default); set `or` for OR.
19
19
  * @export
20
20
  */
21
21
  export const FieldConditionOperation = {
22
- equal: 'equal',
23
- not_equal: 'not_equal',
24
- contains: 'contains',
25
- not_contains: 'not_contains',
26
- empty: 'empty',
27
- not_empty: 'not_empty'
22
+ or: 'or'
28
23
  } as const;
29
24
  export type FieldConditionOperation = typeof FieldConditionOperation[keyof typeof FieldConditionOperation];
30
25
 
@@ -48,11 +48,11 @@ export interface FieldCondition {
48
48
  */
49
49
  fieldName?: string;
50
50
  /**
51
- * The value to compare against.
51
+ * The value to compare against. Optional for `empty` / `not_empty` actions.
52
52
  * @type {string}
53
53
  * @memberof FieldCondition
54
54
  */
55
- value: string;
55
+ value?: string;
56
56
  /**
57
57
  *
58
58
  * @type {FieldConditionAction}
@@ -64,7 +64,7 @@ export interface FieldCondition {
64
64
  * @type {FieldConditionOperation}
65
65
  * @memberof FieldCondition
66
66
  */
67
- operation: FieldConditionOperation;
67
+ operation?: FieldConditionOperation;
68
68
  }
69
69
 
70
70
 
@@ -73,9 +73,7 @@ export interface FieldCondition {
73
73
  * Check if a given object implements the FieldCondition interface.
74
74
  */
75
75
  export function instanceOfFieldCondition(value: object): value is FieldCondition {
76
- if (!('value' in value) || value['value'] === undefined) return false;
77
76
  if (!('action' in value) || value['action'] === undefined) return false;
78
- if (!('operation' in value) || value['operation'] === undefined) return false;
79
77
  return true;
80
78
  }
81
79
 
@@ -91,9 +89,9 @@ export function FieldConditionFromJSONTyped(json: any, ignoreDiscriminator: bool
91
89
 
92
90
  'fieldUuid': json['field_uuid'] == null ? undefined : json['field_uuid'],
93
91
  'fieldName': json['field_name'] == null ? undefined : json['field_name'],
94
- 'value': json['value'],
92
+ 'value': json['value'] == null ? undefined : json['value'],
95
93
  'action': FieldConditionActionFromJSON(json['action']),
96
- 'operation': FieldConditionOperationFromJSON(json['operation']),
94
+ 'operation': json['operation'] == null ? undefined : FieldConditionOperationFromJSON(json['operation']),
97
95
  };
98
96
  }
99
97