@spaciv/sdk 0.1.7 → 0.1.9

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 (93) hide show
  1. package/.openapi-generator/FILES +2 -8
  2. package/README.md +2 -2
  3. package/dist/apis/AnalysisApi.d.ts +4 -4
  4. package/dist/apis/AnalysisApi.js +2 -2
  5. package/dist/apis/FloorPlansApi.d.ts +8 -8
  6. package/dist/apis/FloorPlansApi.js +4 -4
  7. package/dist/esm/apis/AnalysisApi.d.ts +4 -4
  8. package/dist/esm/apis/AnalysisApi.js +2 -2
  9. package/dist/esm/apis/FloorPlansApi.d.ts +8 -8
  10. package/dist/esm/apis/FloorPlansApi.js +4 -4
  11. package/dist/esm/models/{NodeOffset.d.ts → CalcAxis.d.ts} +27 -16
  12. package/dist/esm/models/{NodeOffset.js → CalcAxis.js} +25 -15
  13. package/dist/esm/models/{CalcNode.d.ts → CalcAxisMember.d.ts} +24 -18
  14. package/dist/esm/models/{CalcNode.js → CalcAxisMember.js} +17 -15
  15. package/dist/esm/models/CalcBody.d.ts +6 -0
  16. package/dist/esm/models/CalcBody.js +2 -0
  17. package/dist/esm/models/CalcErrorBody.d.ts +1 -0
  18. package/dist/esm/models/CalcErrorBody.js +2 -1
  19. package/dist/esm/models/CalcRes.d.ts +5 -6
  20. package/dist/esm/models/CalcRes.js +7 -8
  21. package/dist/esm/models/FloorplanCreateSpace.d.ts +12 -0
  22. package/dist/esm/models/FloorplanCreateSpace.js +4 -0
  23. package/dist/esm/models/FloorplanGetBody.d.ts +15 -0
  24. package/dist/esm/models/FloorplanGetBody.js +12 -0
  25. package/dist/esm/models/FloorplanGetBodySpace.d.ts +12 -0
  26. package/dist/esm/models/FloorplanGetBodySpace.js +4 -0
  27. package/dist/esm/models/FloorplanPatchParamsBody.d.ts +6 -0
  28. package/dist/esm/models/FloorplanPatchParamsBody.js +2 -0
  29. package/dist/esm/models/index.d.ts +2 -8
  30. package/dist/esm/models/index.js +2 -8
  31. package/dist/{esm/models/TwoDLegendEntry.d.ts → models/CalcAxis.d.ts} +27 -15
  32. package/dist/models/{TwoDLegendEntry.js → CalcAxis.js} +31 -19
  33. package/dist/models/{CalcNode.d.ts → CalcAxisMember.d.ts} +24 -18
  34. package/dist/models/{CalcNode.js → CalcAxisMember.js} +22 -20
  35. package/dist/models/CalcBody.d.ts +6 -0
  36. package/dist/models/CalcBody.js +2 -0
  37. package/dist/models/CalcErrorBody.d.ts +1 -0
  38. package/dist/models/CalcErrorBody.js +2 -1
  39. package/dist/models/CalcRes.d.ts +5 -6
  40. package/dist/models/CalcRes.js +7 -8
  41. package/dist/models/FloorplanCreateSpace.d.ts +12 -0
  42. package/dist/models/FloorplanCreateSpace.js +4 -0
  43. package/dist/models/FloorplanGetBody.d.ts +15 -0
  44. package/dist/models/FloorplanGetBody.js +13 -0
  45. package/dist/models/FloorplanGetBodySpace.d.ts +12 -0
  46. package/dist/models/FloorplanGetBodySpace.js +4 -0
  47. package/dist/models/FloorplanPatchParamsBody.d.ts +6 -0
  48. package/dist/models/FloorplanPatchParamsBody.js +2 -0
  49. package/dist/models/index.d.ts +2 -8
  50. package/dist/models/index.js +2 -8
  51. package/package.json +1 -1
  52. package/src/apis/AnalysisApi.ts +4 -4
  53. package/src/apis/FloorPlansApi.ts +8 -8
  54. package/src/models/{NodeOffset.ts → CalcAxis.ts} +43 -29
  55. package/src/models/{CalcNode.ts → CalcAxisMember.ts} +34 -26
  56. package/src/models/CalcBody.ts +8 -0
  57. package/src/models/CalcErrorBody.ts +2 -1
  58. package/src/models/CalcRes.ts +16 -23
  59. package/src/models/FloorplanCreateSpace.ts +16 -0
  60. package/src/models/FloorplanGetBody.ts +21 -0
  61. package/src/models/FloorplanGetBodySpace.ts +16 -0
  62. package/src/models/FloorplanPatchParamsBody.ts +8 -0
  63. package/src/models/index.ts +2 -8
  64. package/dist/esm/models/Legend.d.ts +0 -23
  65. package/dist/esm/models/Legend.js +0 -51
  66. package/dist/esm/models/LegendList.d.ts +0 -32
  67. package/dist/esm/models/LegendList.js +0 -43
  68. package/dist/esm/models/LegendOneOf.d.ts +0 -33
  69. package/dist/esm/models/LegendOneOf.js +0 -44
  70. package/dist/esm/models/LegendOneOf1.d.ts +0 -33
  71. package/dist/esm/models/LegendOneOf1.js +0 -44
  72. package/dist/esm/models/TwoDLegendEntry.js +0 -47
  73. package/dist/esm/models/TwoDLegendList.d.ts +0 -33
  74. package/dist/esm/models/TwoDLegendList.js +0 -44
  75. package/dist/models/Legend.d.ts +0 -23
  76. package/dist/models/Legend.js +0 -57
  77. package/dist/models/LegendList.d.ts +0 -32
  78. package/dist/models/LegendList.js +0 -50
  79. package/dist/models/LegendOneOf.d.ts +0 -33
  80. package/dist/models/LegendOneOf.js +0 -51
  81. package/dist/models/LegendOneOf1.d.ts +0 -33
  82. package/dist/models/LegendOneOf1.js +0 -51
  83. package/dist/models/NodeOffset.d.ts +0 -39
  84. package/dist/models/NodeOffset.js +0 -55
  85. package/dist/models/TwoDLegendEntry.d.ts +0 -38
  86. package/dist/models/TwoDLegendList.d.ts +0 -33
  87. package/dist/models/TwoDLegendList.js +0 -51
  88. package/src/models/Legend.ts +0 -76
  89. package/src/models/LegendList.ts +0 -66
  90. package/src/models/LegendOneOf.ts +0 -74
  91. package/src/models/LegendOneOf1.ts +0 -74
  92. package/src/models/TwoDLegendEntry.ts +0 -75
  93. package/src/models/TwoDLegendList.ts +0 -74
@@ -1,23 +0,0 @@
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
- import type { LegendOneOf } from './LegendOneOf';
13
- import type { LegendOneOf1 } from './LegendOneOf1';
14
- /**
15
- * @type Legend
16
- *
17
- * @export
18
- */
19
- export type Legend = LegendOneOf | LegendOneOf1;
20
- export declare function LegendFromJSON(json: any): Legend;
21
- export declare function LegendFromJSONTyped(json: any, ignoreDiscriminator: boolean): Legend;
22
- export declare function LegendToJSON(json: any): any;
23
- export declare function LegendToJSONTyped(value?: Legend | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * spaciv API
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@spaciv.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { instanceOfLegendOneOf, LegendOneOfFromJSONTyped, LegendOneOfToJSON, } from './LegendOneOf';
15
- import { instanceOfLegendOneOf1, LegendOneOf1FromJSONTyped, LegendOneOf1ToJSON, } from './LegendOneOf1';
16
- export function LegendFromJSON(json) {
17
- return LegendFromJSONTyped(json, false);
18
- }
19
- export function LegendFromJSONTyped(json, ignoreDiscriminator) {
20
- if (json == null) {
21
- return json;
22
- }
23
- if (typeof json !== 'object') {
24
- return json;
25
- }
26
- if (instanceOfLegendOneOf(json)) {
27
- return LegendOneOfFromJSONTyped(json, true);
28
- }
29
- if (instanceOfLegendOneOf1(json)) {
30
- return LegendOneOf1FromJSONTyped(json, true);
31
- }
32
- return {};
33
- }
34
- export function LegendToJSON(json) {
35
- return LegendToJSONTyped(json, false);
36
- }
37
- export function LegendToJSONTyped(value, ignoreDiscriminator = false) {
38
- if (value == null) {
39
- return value;
40
- }
41
- if (typeof value !== 'object') {
42
- return value;
43
- }
44
- if (instanceOfLegendOneOf(value)) {
45
- return LegendOneOfToJSON(value);
46
- }
47
- if (instanceOfLegendOneOf1(value)) {
48
- return LegendOneOf1ToJSON(value);
49
- }
50
- return {};
51
- }
@@ -1,32 +0,0 @@
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 LegendList
16
- */
17
- export interface LegendList {
18
- /**
19
- *
20
- * @type {Array<string>}
21
- * @memberof LegendList
22
- */
23
- list: Array<string>;
24
- }
25
- /**
26
- * Check if a given object implements the LegendList interface.
27
- */
28
- export declare function instanceOfLegendList(value: object): value is LegendList;
29
- export declare function LegendListFromJSON(json: any): LegendList;
30
- export declare function LegendListFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendList;
31
- export declare function LegendListToJSON(json: any): LegendList;
32
- export declare function LegendListToJSONTyped(value?: LegendList | null, ignoreDiscriminator?: boolean): any;
@@ -1,43 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * spaciv API
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@spaciv.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the LegendList interface.
16
- */
17
- export function instanceOfLegendList(value) {
18
- if (!('list' in value) || value['list'] === undefined)
19
- return false;
20
- return true;
21
- }
22
- export function LegendListFromJSON(json) {
23
- return LegendListFromJSONTyped(json, false);
24
- }
25
- export function LegendListFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'list': json['list'],
31
- };
32
- }
33
- export function LegendListToJSON(json) {
34
- return LegendListToJSONTyped(json, false);
35
- }
36
- export function LegendListToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'list': value['list'],
42
- };
43
- }
@@ -1,33 +0,0 @@
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
- import type { LegendList } from './LegendList';
13
- /**
14
- *
15
- * @export
16
- * @interface LegendOneOf
17
- */
18
- export interface LegendOneOf {
19
- /**
20
- *
21
- * @type {LegendList}
22
- * @memberof LegendOneOf
23
- */
24
- list: LegendList;
25
- }
26
- /**
27
- * Check if a given object implements the LegendOneOf interface.
28
- */
29
- export declare function instanceOfLegendOneOf(value: object): value is LegendOneOf;
30
- export declare function LegendOneOfFromJSON(json: any): LegendOneOf;
31
- export declare function LegendOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendOneOf;
32
- export declare function LegendOneOfToJSON(json: any): LegendOneOf;
33
- export declare function LegendOneOfToJSONTyped(value?: LegendOneOf | null, ignoreDiscriminator?: boolean): any;
@@ -1,44 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * spaciv API
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@spaciv.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { LegendListFromJSON, LegendListToJSON, } from './LegendList';
15
- /**
16
- * Check if a given object implements the LegendOneOf interface.
17
- */
18
- export function instanceOfLegendOneOf(value) {
19
- if (!('list' in value) || value['list'] === undefined)
20
- return false;
21
- return true;
22
- }
23
- export function LegendOneOfFromJSON(json) {
24
- return LegendOneOfFromJSONTyped(json, false);
25
- }
26
- export function LegendOneOfFromJSONTyped(json, ignoreDiscriminator) {
27
- if (json == null) {
28
- return json;
29
- }
30
- return {
31
- 'list': LegendListFromJSON(json['list']),
32
- };
33
- }
34
- export function LegendOneOfToJSON(json) {
35
- return LegendOneOfToJSONTyped(json, false);
36
- }
37
- export function LegendOneOfToJSONTyped(value, ignoreDiscriminator = false) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'list': LegendListToJSON(value['list']),
43
- };
44
- }
@@ -1,33 +0,0 @@
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
- import type { TwoDLegendList } from './TwoDLegendList';
13
- /**
14
- *
15
- * @export
16
- * @interface LegendOneOf1
17
- */
18
- export interface LegendOneOf1 {
19
- /**
20
- *
21
- * @type {TwoDLegendList}
22
- * @memberof LegendOneOf1
23
- */
24
- twoDList: TwoDLegendList;
25
- }
26
- /**
27
- * Check if a given object implements the LegendOneOf1 interface.
28
- */
29
- export declare function instanceOfLegendOneOf1(value: object): value is LegendOneOf1;
30
- export declare function LegendOneOf1FromJSON(json: any): LegendOneOf1;
31
- export declare function LegendOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendOneOf1;
32
- export declare function LegendOneOf1ToJSON(json: any): LegendOneOf1;
33
- export declare function LegendOneOf1ToJSONTyped(value?: LegendOneOf1 | null, ignoreDiscriminator?: boolean): any;
@@ -1,44 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * spaciv API
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@spaciv.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { TwoDLegendListFromJSON, TwoDLegendListToJSON, } from './TwoDLegendList';
15
- /**
16
- * Check if a given object implements the LegendOneOf1 interface.
17
- */
18
- export function instanceOfLegendOneOf1(value) {
19
- if (!('twoDList' in value) || value['twoDList'] === undefined)
20
- return false;
21
- return true;
22
- }
23
- export function LegendOneOf1FromJSON(json) {
24
- return LegendOneOf1FromJSONTyped(json, false);
25
- }
26
- export function LegendOneOf1FromJSONTyped(json, ignoreDiscriminator) {
27
- if (json == null) {
28
- return json;
29
- }
30
- return {
31
- 'twoDList': TwoDLegendListFromJSON(json['twoDList']),
32
- };
33
- }
34
- export function LegendOneOf1ToJSON(json) {
35
- return LegendOneOf1ToJSONTyped(json, false);
36
- }
37
- export function LegendOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'twoDList': TwoDLegendListToJSON(value['twoDList']),
43
- };
44
- }
@@ -1,47 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * spaciv API
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@spaciv.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the TwoDLegendEntry interface.
16
- */
17
- export function instanceOfTwoDLegendEntry(value) {
18
- if (!('list' in value) || value['list'] === undefined)
19
- return false;
20
- if (!('name' in value) || value['name'] === undefined)
21
- return false;
22
- return true;
23
- }
24
- export function TwoDLegendEntryFromJSON(json) {
25
- return TwoDLegendEntryFromJSONTyped(json, false);
26
- }
27
- export function TwoDLegendEntryFromJSONTyped(json, ignoreDiscriminator) {
28
- if (json == null) {
29
- return json;
30
- }
31
- return {
32
- 'list': json['list'],
33
- 'name': json['name'],
34
- };
35
- }
36
- export function TwoDLegendEntryToJSON(json) {
37
- return TwoDLegendEntryToJSONTyped(json, false);
38
- }
39
- export function TwoDLegendEntryToJSONTyped(value, ignoreDiscriminator = false) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'list': value['list'],
45
- 'name': value['name'],
46
- };
47
- }
@@ -1,33 +0,0 @@
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
- import type { TwoDLegendEntry } from './TwoDLegendEntry';
13
- /**
14
- *
15
- * @export
16
- * @interface TwoDLegendList
17
- */
18
- export interface TwoDLegendList {
19
- /**
20
- *
21
- * @type {Array<TwoDLegendEntry>}
22
- * @memberof TwoDLegendList
23
- */
24
- list: Array<TwoDLegendEntry>;
25
- }
26
- /**
27
- * Check if a given object implements the TwoDLegendList interface.
28
- */
29
- export declare function instanceOfTwoDLegendList(value: object): value is TwoDLegendList;
30
- export declare function TwoDLegendListFromJSON(json: any): TwoDLegendList;
31
- export declare function TwoDLegendListFromJSONTyped(json: any, ignoreDiscriminator: boolean): TwoDLegendList;
32
- export declare function TwoDLegendListToJSON(json: any): TwoDLegendList;
33
- export declare function TwoDLegendListToJSONTyped(value?: TwoDLegendList | null, ignoreDiscriminator?: boolean): any;
@@ -1,44 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * spaciv API
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@spaciv.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { TwoDLegendEntryFromJSON, TwoDLegendEntryToJSON, } from './TwoDLegendEntry';
15
- /**
16
- * Check if a given object implements the TwoDLegendList interface.
17
- */
18
- export function instanceOfTwoDLegendList(value) {
19
- if (!('list' in value) || value['list'] === undefined)
20
- return false;
21
- return true;
22
- }
23
- export function TwoDLegendListFromJSON(json) {
24
- return TwoDLegendListFromJSONTyped(json, false);
25
- }
26
- export function TwoDLegendListFromJSONTyped(json, ignoreDiscriminator) {
27
- if (json == null) {
28
- return json;
29
- }
30
- return {
31
- 'list': (json['list'].map(TwoDLegendEntryFromJSON)),
32
- };
33
- }
34
- export function TwoDLegendListToJSON(json) {
35
- return TwoDLegendListToJSONTyped(json, false);
36
- }
37
- export function TwoDLegendListToJSONTyped(value, ignoreDiscriminator = false) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'list': (value['list'].map(TwoDLegendEntryToJSON)),
43
- };
44
- }
@@ -1,23 +0,0 @@
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
- import type { LegendOneOf } from './LegendOneOf';
13
- import type { LegendOneOf1 } from './LegendOneOf1';
14
- /**
15
- * @type Legend
16
- *
17
- * @export
18
- */
19
- export type Legend = LegendOneOf | LegendOneOf1;
20
- export declare function LegendFromJSON(json: any): Legend;
21
- export declare function LegendFromJSONTyped(json: any, ignoreDiscriminator: boolean): Legend;
22
- export declare function LegendToJSON(json: any): any;
23
- export declare function LegendToJSONTyped(value?: Legend | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
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.LegendFromJSON = LegendFromJSON;
17
- exports.LegendFromJSONTyped = LegendFromJSONTyped;
18
- exports.LegendToJSON = LegendToJSON;
19
- exports.LegendToJSONTyped = LegendToJSONTyped;
20
- const LegendOneOf_1 = require("./LegendOneOf");
21
- const LegendOneOf1_1 = require("./LegendOneOf1");
22
- function LegendFromJSON(json) {
23
- return LegendFromJSONTyped(json, false);
24
- }
25
- function LegendFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- if (typeof json !== 'object') {
30
- return json;
31
- }
32
- if ((0, LegendOneOf_1.instanceOfLegendOneOf)(json)) {
33
- return (0, LegendOneOf_1.LegendOneOfFromJSONTyped)(json, true);
34
- }
35
- if ((0, LegendOneOf1_1.instanceOfLegendOneOf1)(json)) {
36
- return (0, LegendOneOf1_1.LegendOneOf1FromJSONTyped)(json, true);
37
- }
38
- return {};
39
- }
40
- function LegendToJSON(json) {
41
- return LegendToJSONTyped(json, false);
42
- }
43
- function LegendToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- if (typeof value !== 'object') {
48
- return value;
49
- }
50
- if ((0, LegendOneOf_1.instanceOfLegendOneOf)(value)) {
51
- return (0, LegendOneOf_1.LegendOneOfToJSON)(value);
52
- }
53
- if ((0, LegendOneOf1_1.instanceOfLegendOneOf1)(value)) {
54
- return (0, LegendOneOf1_1.LegendOneOf1ToJSON)(value);
55
- }
56
- return {};
57
- }
@@ -1,32 +0,0 @@
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 LegendList
16
- */
17
- export interface LegendList {
18
- /**
19
- *
20
- * @type {Array<string>}
21
- * @memberof LegendList
22
- */
23
- list: Array<string>;
24
- }
25
- /**
26
- * Check if a given object implements the LegendList interface.
27
- */
28
- export declare function instanceOfLegendList(value: object): value is LegendList;
29
- export declare function LegendListFromJSON(json: any): LegendList;
30
- export declare function LegendListFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendList;
31
- export declare function LegendListToJSON(json: any): LegendList;
32
- export declare function LegendListToJSONTyped(value?: LegendList | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfLegendList = instanceOfLegendList;
17
- exports.LegendListFromJSON = LegendListFromJSON;
18
- exports.LegendListFromJSONTyped = LegendListFromJSONTyped;
19
- exports.LegendListToJSON = LegendListToJSON;
20
- exports.LegendListToJSONTyped = LegendListToJSONTyped;
21
- /**
22
- * Check if a given object implements the LegendList interface.
23
- */
24
- function instanceOfLegendList(value) {
25
- if (!('list' in value) || value['list'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function LegendListFromJSON(json) {
30
- return LegendListFromJSONTyped(json, false);
31
- }
32
- function LegendListFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'list': json['list'],
38
- };
39
- }
40
- function LegendListToJSON(json) {
41
- return LegendListToJSONTyped(json, false);
42
- }
43
- function LegendListToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'list': value['list'],
49
- };
50
- }
@@ -1,33 +0,0 @@
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
- import type { LegendList } from './LegendList';
13
- /**
14
- *
15
- * @export
16
- * @interface LegendOneOf
17
- */
18
- export interface LegendOneOf {
19
- /**
20
- *
21
- * @type {LegendList}
22
- * @memberof LegendOneOf
23
- */
24
- list: LegendList;
25
- }
26
- /**
27
- * Check if a given object implements the LegendOneOf interface.
28
- */
29
- export declare function instanceOfLegendOneOf(value: object): value is LegendOneOf;
30
- export declare function LegendOneOfFromJSON(json: any): LegendOneOf;
31
- export declare function LegendOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendOneOf;
32
- export declare function LegendOneOfToJSON(json: any): LegendOneOf;
33
- export declare function LegendOneOfToJSONTyped(value?: LegendOneOf | null, ignoreDiscriminator?: boolean): any;