@spaciv/sdk 0.1.2 → 0.1.3

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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/esm/models/VariableData.d.ts +2 -1
  4. package/dist/esm/models/VariableData.js +7 -0
  5. package/dist/esm/models/VariableDataOneOf2.d.ts +3 -3
  6. package/dist/esm/models/VariableDataOneOf2.js +4 -4
  7. package/dist/esm/models/VariableDataOneOf3.d.ts +3 -3
  8. package/dist/esm/models/VariableDataOneOf3.js +4 -4
  9. package/dist/esm/models/VariableDataOneOf4.d.ts +3 -3
  10. package/dist/esm/models/VariableDataOneOf4.js +4 -4
  11. package/dist/esm/models/VariableDataOneOf5.d.ts +3 -2
  12. package/dist/esm/models/VariableDataOneOf5.js +4 -3
  13. package/dist/esm/models/VariableDataOneOf6.d.ts +1 -1
  14. package/dist/esm/models/VariableDataOneOf6.js +3 -3
  15. package/dist/esm/models/VariableDataOneOf7.d.ts +32 -0
  16. package/dist/esm/models/VariableDataOneOf7.js +43 -0
  17. package/dist/esm/models/VariableDate.d.ts +50 -0
  18. package/dist/esm/models/VariableDate.js +55 -0
  19. package/dist/esm/models/index.d.ts +2 -0
  20. package/dist/esm/models/index.js +2 -0
  21. package/dist/models/VariableData.d.ts +2 -1
  22. package/dist/models/VariableData.js +7 -0
  23. package/dist/models/VariableDataOneOf2.d.ts +3 -3
  24. package/dist/models/VariableDataOneOf2.js +4 -4
  25. package/dist/models/VariableDataOneOf3.d.ts +3 -3
  26. package/dist/models/VariableDataOneOf3.js +4 -4
  27. package/dist/models/VariableDataOneOf4.d.ts +3 -3
  28. package/dist/models/VariableDataOneOf4.js +4 -4
  29. package/dist/models/VariableDataOneOf5.d.ts +3 -2
  30. package/dist/models/VariableDataOneOf5.js +4 -3
  31. package/dist/models/VariableDataOneOf6.d.ts +1 -1
  32. package/dist/models/VariableDataOneOf6.js +3 -3
  33. package/dist/models/VariableDataOneOf7.d.ts +32 -0
  34. package/dist/models/VariableDataOneOf7.js +50 -0
  35. package/dist/models/VariableDate.d.ts +50 -0
  36. package/dist/models/VariableDate.js +62 -0
  37. package/dist/models/index.d.ts +2 -0
  38. package/dist/models/index.js +2 -0
  39. package/package.json +1 -1
  40. package/src/models/VariableData.ts +14 -1
  41. package/src/models/VariableDataOneOf2.ts +11 -11
  42. package/src/models/VariableDataOneOf3.ts +11 -11
  43. package/src/models/VariableDataOneOf4.ts +11 -11
  44. package/src/models/VariableDataOneOf5.ts +13 -5
  45. package/src/models/VariableDataOneOf6.ts +4 -4
  46. package/src/models/VariableDataOneOf7.ts +66 -0
  47. package/src/models/VariableDate.ts +93 -0
  48. package/src/models/index.ts +2 -0
@@ -18,12 +18,12 @@ exports.VariableDataOneOf3FromJSON = VariableDataOneOf3FromJSON;
18
18
  exports.VariableDataOneOf3FromJSONTyped = VariableDataOneOf3FromJSONTyped;
19
19
  exports.VariableDataOneOf3ToJSON = VariableDataOneOf3ToJSON;
20
20
  exports.VariableDataOneOf3ToJSONTyped = VariableDataOneOf3ToJSONTyped;
21
- const VariableNumber_1 = require("./VariableNumber");
21
+ const VariableProperty_1 = require("./VariableProperty");
22
22
  /**
23
23
  * Check if a given object implements the VariableDataOneOf3 interface.
24
24
  */
25
25
  function instanceOfVariableDataOneOf3(value) {
26
- if (!('number' in value) || value['number'] === undefined)
26
+ if (!('node' in value) || value['node'] === undefined)
27
27
  return false;
28
28
  return true;
29
29
  }
@@ -35,7 +35,7 @@ function VariableDataOneOf3FromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'number': (0, VariableNumber_1.VariableNumberFromJSON)(json['number']),
38
+ 'node': (0, VariableProperty_1.VariablePropertyFromJSON)(json['node']),
39
39
  };
40
40
  }
41
41
  function VariableDataOneOf3ToJSON(json) {
@@ -46,6 +46,6 @@ function VariableDataOneOf3ToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'number': (0, VariableNumber_1.VariableNumberToJSON)(value['number']),
49
+ 'node': (0, VariableProperty_1.VariablePropertyToJSON)(value['node']),
50
50
  };
51
51
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { VariableObject } from './VariableObject';
12
+ import type { VariableNumber } from './VariableNumber';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { VariableObject } from './VariableObject';
18
18
  export interface VariableDataOneOf4 {
19
19
  /**
20
20
  *
21
- * @type {VariableObject}
21
+ * @type {VariableNumber}
22
22
  * @memberof VariableDataOneOf4
23
23
  */
24
- object: VariableObject;
24
+ number: VariableNumber;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the VariableDataOneOf4 interface.
@@ -18,12 +18,12 @@ exports.VariableDataOneOf4FromJSON = VariableDataOneOf4FromJSON;
18
18
  exports.VariableDataOneOf4FromJSONTyped = VariableDataOneOf4FromJSONTyped;
19
19
  exports.VariableDataOneOf4ToJSON = VariableDataOneOf4ToJSON;
20
20
  exports.VariableDataOneOf4ToJSONTyped = VariableDataOneOf4ToJSONTyped;
21
- const VariableObject_1 = require("./VariableObject");
21
+ const VariableNumber_1 = require("./VariableNumber");
22
22
  /**
23
23
  * Check if a given object implements the VariableDataOneOf4 interface.
24
24
  */
25
25
  function instanceOfVariableDataOneOf4(value) {
26
- if (!('object' in value) || value['object'] === undefined)
26
+ if (!('number' in value) || value['number'] === undefined)
27
27
  return false;
28
28
  return true;
29
29
  }
@@ -35,7 +35,7 @@ function VariableDataOneOf4FromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'object': (0, VariableObject_1.VariableObjectFromJSON)(json['object']),
38
+ 'number': (0, VariableNumber_1.VariableNumberFromJSON)(json['number']),
39
39
  };
40
40
  }
41
41
  function VariableDataOneOf4ToJSON(json) {
@@ -46,6 +46,6 @@ function VariableDataOneOf4ToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'object': (0, VariableObject_1.VariableObjectToJSON)(value['object']),
49
+ 'number': (0, VariableNumber_1.VariableNumberToJSON)(value['number']),
50
50
  };
51
51
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VariableObject } from './VariableObject';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface VariableDataOneOf5 {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {VariableObject}
21
22
  * @memberof VariableDataOneOf5
22
23
  */
23
- property: string;
24
+ object: VariableObject;
24
25
  }
25
26
  /**
26
27
  * Check if a given object implements the VariableDataOneOf5 interface.
@@ -18,11 +18,12 @@ exports.VariableDataOneOf5FromJSON = VariableDataOneOf5FromJSON;
18
18
  exports.VariableDataOneOf5FromJSONTyped = VariableDataOneOf5FromJSONTyped;
19
19
  exports.VariableDataOneOf5ToJSON = VariableDataOneOf5ToJSON;
20
20
  exports.VariableDataOneOf5ToJSONTyped = VariableDataOneOf5ToJSONTyped;
21
+ const VariableObject_1 = require("./VariableObject");
21
22
  /**
22
23
  * Check if a given object implements the VariableDataOneOf5 interface.
23
24
  */
24
25
  function instanceOfVariableDataOneOf5(value) {
25
- if (!('property' in value) || value['property'] === undefined)
26
+ if (!('object' in value) || value['object'] === undefined)
26
27
  return false;
27
28
  return true;
28
29
  }
@@ -34,7 +35,7 @@ function VariableDataOneOf5FromJSONTyped(json, ignoreDiscriminator) {
34
35
  return json;
35
36
  }
36
37
  return {
37
- 'property': json['property'],
38
+ 'object': (0, VariableObject_1.VariableObjectFromJSON)(json['object']),
38
39
  };
39
40
  }
40
41
  function VariableDataOneOf5ToJSON(json) {
@@ -45,6 +46,6 @@ function VariableDataOneOf5ToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  return value;
46
47
  }
47
48
  return {
48
- 'property': value['property'],
49
+ 'object': (0, VariableObject_1.VariableObjectToJSON)(value['object']),
49
50
  };
50
51
  }
@@ -20,7 +20,7 @@ export interface VariableDataOneOf6 {
20
20
  * @type {string}
21
21
  * @memberof VariableDataOneOf6
22
22
  */
23
- scenario: string;
23
+ property: string;
24
24
  }
25
25
  /**
26
26
  * Check if a given object implements the VariableDataOneOf6 interface.
@@ -22,7 +22,7 @@ exports.VariableDataOneOf6ToJSONTyped = VariableDataOneOf6ToJSONTyped;
22
22
  * Check if a given object implements the VariableDataOneOf6 interface.
23
23
  */
24
24
  function instanceOfVariableDataOneOf6(value) {
25
- if (!('scenario' in value) || value['scenario'] === undefined)
25
+ if (!('property' in value) || value['property'] === undefined)
26
26
  return false;
27
27
  return true;
28
28
  }
@@ -34,7 +34,7 @@ function VariableDataOneOf6FromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'scenario': json['scenario'],
37
+ 'property': json['property'],
38
38
  };
39
39
  }
40
40
  function VariableDataOneOf6ToJSON(json) {
@@ -45,6 +45,6 @@ function VariableDataOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
45
45
  return value;
46
46
  }
47
47
  return {
48
- 'scenario': value['scenario'],
48
+ 'property': value['property'],
49
49
  };
50
50
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * spaciv API
3
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@spaciv.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VariableDataOneOf7
16
+ */
17
+ export interface VariableDataOneOf7 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VariableDataOneOf7
22
+ */
23
+ scenario: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the VariableDataOneOf7 interface.
27
+ */
28
+ export declare function instanceOfVariableDataOneOf7(value: object): value is VariableDataOneOf7;
29
+ export declare function VariableDataOneOf7FromJSON(json: any): VariableDataOneOf7;
30
+ export declare function VariableDataOneOf7FromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableDataOneOf7;
31
+ export declare function VariableDataOneOf7ToJSON(json: any): VariableDataOneOf7;
32
+ export declare function VariableDataOneOf7ToJSONTyped(value?: VariableDataOneOf7 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * spaciv API
6
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@spaciv.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVariableDataOneOf7 = instanceOfVariableDataOneOf7;
17
+ exports.VariableDataOneOf7FromJSON = VariableDataOneOf7FromJSON;
18
+ exports.VariableDataOneOf7FromJSONTyped = VariableDataOneOf7FromJSONTyped;
19
+ exports.VariableDataOneOf7ToJSON = VariableDataOneOf7ToJSON;
20
+ exports.VariableDataOneOf7ToJSONTyped = VariableDataOneOf7ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VariableDataOneOf7 interface.
23
+ */
24
+ function instanceOfVariableDataOneOf7(value) {
25
+ if (!('scenario' in value) || value['scenario'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function VariableDataOneOf7FromJSON(json) {
30
+ return VariableDataOneOf7FromJSONTyped(json, false);
31
+ }
32
+ function VariableDataOneOf7FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'scenario': json['scenario'],
38
+ };
39
+ }
40
+ function VariableDataOneOf7ToJSON(json) {
41
+ return VariableDataOneOf7ToJSONTyped(json, false);
42
+ }
43
+ function VariableDataOneOf7ToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'scenario': value['scenario'],
49
+ };
50
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * spaciv API
3
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@spaciv.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VariableDate
16
+ */
17
+ export interface VariableDate {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof VariableDate
22
+ */
23
+ max: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof VariableDate
28
+ */
29
+ min: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof VariableDate
34
+ */
35
+ step: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof VariableDate
40
+ */
41
+ value: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the VariableDate interface.
45
+ */
46
+ export declare function instanceOfVariableDate(value: object): value is VariableDate;
47
+ export declare function VariableDateFromJSON(json: any): VariableDate;
48
+ export declare function VariableDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableDate;
49
+ export declare function VariableDateToJSON(json: any): VariableDate;
50
+ export declare function VariableDateToJSONTyped(value?: VariableDate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * spaciv API
6
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@spaciv.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVariableDate = instanceOfVariableDate;
17
+ exports.VariableDateFromJSON = VariableDateFromJSON;
18
+ exports.VariableDateFromJSONTyped = VariableDateFromJSONTyped;
19
+ exports.VariableDateToJSON = VariableDateToJSON;
20
+ exports.VariableDateToJSONTyped = VariableDateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VariableDate interface.
23
+ */
24
+ function instanceOfVariableDate(value) {
25
+ if (!('max' in value) || value['max'] === undefined)
26
+ return false;
27
+ if (!('min' in value) || value['min'] === undefined)
28
+ return false;
29
+ if (!('step' in value) || value['step'] === undefined)
30
+ return false;
31
+ if (!('value' in value) || value['value'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function VariableDateFromJSON(json) {
36
+ return VariableDateFromJSONTyped(json, false);
37
+ }
38
+ function VariableDateFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'max': json['max'],
44
+ 'min': json['min'],
45
+ 'step': json['step'],
46
+ 'value': json['value'],
47
+ };
48
+ }
49
+ function VariableDateToJSON(json) {
50
+ return VariableDateToJSONTyped(json, false);
51
+ }
52
+ function VariableDateToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'max': value['max'],
58
+ 'min': value['min'],
59
+ 'step': value['step'],
60
+ 'value': value['value'],
61
+ };
62
+ }
@@ -352,6 +352,8 @@ export * from './VariableDataOneOf3';
352
352
  export * from './VariableDataOneOf4';
353
353
  export * from './VariableDataOneOf5';
354
354
  export * from './VariableDataOneOf6';
355
+ export * from './VariableDataOneOf7';
356
+ export * from './VariableDate';
355
357
  export * from './VariableListRes';
356
358
  export * from './VariableNotFoundDetail';
357
359
  export * from './VariableNumber';
@@ -370,6 +370,8 @@ __exportStar(require("./VariableDataOneOf3"), exports);
370
370
  __exportStar(require("./VariableDataOneOf4"), exports);
371
371
  __exportStar(require("./VariableDataOneOf5"), exports);
372
372
  __exportStar(require("./VariableDataOneOf6"), exports);
373
+ __exportStar(require("./VariableDataOneOf7"), exports);
374
+ __exportStar(require("./VariableDate"), exports);
373
375
  __exportStar(require("./VariableListRes"), exports);
374
376
  __exportStar(require("./VariableNotFoundDetail"), exports);
375
377
  __exportStar(require("./VariableNumber"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaciv/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "OpenAPI client for @spaciv/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -68,13 +68,20 @@ import {
68
68
  VariableDataOneOf6FromJSONTyped,
69
69
  VariableDataOneOf6ToJSON,
70
70
  } from './VariableDataOneOf6';
71
+ import type { VariableDataOneOf7 } from './VariableDataOneOf7';
72
+ import {
73
+ instanceOfVariableDataOneOf7,
74
+ VariableDataOneOf7FromJSON,
75
+ VariableDataOneOf7FromJSONTyped,
76
+ VariableDataOneOf7ToJSON,
77
+ } from './VariableDataOneOf7';
71
78
 
72
79
  /**
73
80
  * @type VariableData
74
81
  *
75
82
  * @export
76
83
  */
77
- export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6;
84
+ export type VariableData = PropertySourceOneOf | VariableDataOneOf | VariableDataOneOf1 | VariableDataOneOf2 | VariableDataOneOf3 | VariableDataOneOf4 | VariableDataOneOf5 | VariableDataOneOf6 | VariableDataOneOf7;
78
85
 
79
86
  export function VariableDataFromJSON(json: any): VariableData {
80
87
  return VariableDataFromJSONTyped(json, false);
@@ -111,6 +118,9 @@ export function VariableDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
111
118
  if (instanceOfVariableDataOneOf6(json)) {
112
119
  return VariableDataOneOf6FromJSONTyped(json, true);
113
120
  }
121
+ if (instanceOfVariableDataOneOf7(json)) {
122
+ return VariableDataOneOf7FromJSONTyped(json, true);
123
+ }
114
124
  return {} as any;
115
125
  }
116
126
 
@@ -149,6 +159,9 @@ export function VariableDataToJSONTyped(value?: VariableData | null, ignoreDiscr
149
159
  if (instanceOfVariableDataOneOf6(value)) {
150
160
  return VariableDataOneOf6ToJSON(value as VariableDataOneOf6);
151
161
  }
162
+ if (instanceOfVariableDataOneOf7(value)) {
163
+ return VariableDataOneOf7ToJSON(value as VariableDataOneOf7);
164
+ }
152
165
  return {};
153
166
  }
154
167
 
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { VariableProperty } from './VariableProperty';
16
+ import type { VariableDate } from './VariableDate';
17
17
  import {
18
- VariablePropertyFromJSON,
19
- VariablePropertyFromJSONTyped,
20
- VariablePropertyToJSON,
21
- VariablePropertyToJSONTyped,
22
- } from './VariableProperty';
18
+ VariableDateFromJSON,
19
+ VariableDateFromJSONTyped,
20
+ VariableDateToJSON,
21
+ VariableDateToJSONTyped,
22
+ } from './VariableDate';
23
23
 
24
24
  /**
25
25
  *
@@ -29,17 +29,17 @@ import {
29
29
  export interface VariableDataOneOf2 {
30
30
  /**
31
31
  *
32
- * @type {VariableProperty}
32
+ * @type {VariableDate}
33
33
  * @memberof VariableDataOneOf2
34
34
  */
35
- node: VariableProperty;
35
+ dateRange: VariableDate;
36
36
  }
37
37
 
38
38
  /**
39
39
  * Check if a given object implements the VariableDataOneOf2 interface.
40
40
  */
41
41
  export function instanceOfVariableDataOneOf2(value: object): value is VariableDataOneOf2 {
42
- if (!('node' in value) || value['node'] === undefined) return false;
42
+ if (!('dateRange' in value) || value['dateRange'] === undefined) return false;
43
43
  return true;
44
44
  }
45
45
 
@@ -53,7 +53,7 @@ export function VariableDataOneOf2FromJSONTyped(json: any, ignoreDiscriminator:
53
53
  }
54
54
  return {
55
55
 
56
- 'node': VariablePropertyFromJSON(json['node']),
56
+ 'dateRange': VariableDateFromJSON(json['dateRange']),
57
57
  };
58
58
  }
59
59
 
@@ -68,7 +68,7 @@ export function VariableDataOneOf2ToJSONTyped(value?: VariableDataOneOf2 | null,
68
68
 
69
69
  return {
70
70
 
71
- 'node': VariablePropertyToJSON(value['node']),
71
+ 'dateRange': VariableDateToJSON(value['dateRange']),
72
72
  };
73
73
  }
74
74
 
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { VariableNumber } from './VariableNumber';
16
+ import type { VariableProperty } from './VariableProperty';
17
17
  import {
18
- VariableNumberFromJSON,
19
- VariableNumberFromJSONTyped,
20
- VariableNumberToJSON,
21
- VariableNumberToJSONTyped,
22
- } from './VariableNumber';
18
+ VariablePropertyFromJSON,
19
+ VariablePropertyFromJSONTyped,
20
+ VariablePropertyToJSON,
21
+ VariablePropertyToJSONTyped,
22
+ } from './VariableProperty';
23
23
 
24
24
  /**
25
25
  *
@@ -29,17 +29,17 @@ import {
29
29
  export interface VariableDataOneOf3 {
30
30
  /**
31
31
  *
32
- * @type {VariableNumber}
32
+ * @type {VariableProperty}
33
33
  * @memberof VariableDataOneOf3
34
34
  */
35
- number: VariableNumber;
35
+ node: VariableProperty;
36
36
  }
37
37
 
38
38
  /**
39
39
  * Check if a given object implements the VariableDataOneOf3 interface.
40
40
  */
41
41
  export function instanceOfVariableDataOneOf3(value: object): value is VariableDataOneOf3 {
42
- if (!('number' in value) || value['number'] === undefined) return false;
42
+ if (!('node' in value) || value['node'] === undefined) return false;
43
43
  return true;
44
44
  }
45
45
 
@@ -53,7 +53,7 @@ export function VariableDataOneOf3FromJSONTyped(json: any, ignoreDiscriminator:
53
53
  }
54
54
  return {
55
55
 
56
- 'number': VariableNumberFromJSON(json['number']),
56
+ 'node': VariablePropertyFromJSON(json['node']),
57
57
  };
58
58
  }
59
59
 
@@ -68,7 +68,7 @@ export function VariableDataOneOf3ToJSONTyped(value?: VariableDataOneOf3 | null,
68
68
 
69
69
  return {
70
70
 
71
- 'number': VariableNumberToJSON(value['number']),
71
+ 'node': VariablePropertyToJSON(value['node']),
72
72
  };
73
73
  }
74
74
 
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { VariableObject } from './VariableObject';
16
+ import type { VariableNumber } from './VariableNumber';
17
17
  import {
18
- VariableObjectFromJSON,
19
- VariableObjectFromJSONTyped,
20
- VariableObjectToJSON,
21
- VariableObjectToJSONTyped,
22
- } from './VariableObject';
18
+ VariableNumberFromJSON,
19
+ VariableNumberFromJSONTyped,
20
+ VariableNumberToJSON,
21
+ VariableNumberToJSONTyped,
22
+ } from './VariableNumber';
23
23
 
24
24
  /**
25
25
  *
@@ -29,17 +29,17 @@ import {
29
29
  export interface VariableDataOneOf4 {
30
30
  /**
31
31
  *
32
- * @type {VariableObject}
32
+ * @type {VariableNumber}
33
33
  * @memberof VariableDataOneOf4
34
34
  */
35
- object: VariableObject;
35
+ number: VariableNumber;
36
36
  }
37
37
 
38
38
  /**
39
39
  * Check if a given object implements the VariableDataOneOf4 interface.
40
40
  */
41
41
  export function instanceOfVariableDataOneOf4(value: object): value is VariableDataOneOf4 {
42
- if (!('object' in value) || value['object'] === undefined) return false;
42
+ if (!('number' in value) || value['number'] === undefined) return false;
43
43
  return true;
44
44
  }
45
45
 
@@ -53,7 +53,7 @@ export function VariableDataOneOf4FromJSONTyped(json: any, ignoreDiscriminator:
53
53
  }
54
54
  return {
55
55
 
56
- 'object': VariableObjectFromJSON(json['object']),
56
+ 'number': VariableNumberFromJSON(json['number']),
57
57
  };
58
58
  }
59
59
 
@@ -68,7 +68,7 @@ export function VariableDataOneOf4ToJSONTyped(value?: VariableDataOneOf4 | null,
68
68
 
69
69
  return {
70
70
 
71
- 'object': VariableObjectToJSON(value['object']),
71
+ 'number': VariableNumberToJSON(value['number']),
72
72
  };
73
73
  }
74
74