@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,51 +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.instanceOfLegendOneOf = instanceOfLegendOneOf;
17
- exports.LegendOneOfFromJSON = LegendOneOfFromJSON;
18
- exports.LegendOneOfFromJSONTyped = LegendOneOfFromJSONTyped;
19
- exports.LegendOneOfToJSON = LegendOneOfToJSON;
20
- exports.LegendOneOfToJSONTyped = LegendOneOfToJSONTyped;
21
- const LegendList_1 = require("./LegendList");
22
- /**
23
- * Check if a given object implements the LegendOneOf interface.
24
- */
25
- function instanceOfLegendOneOf(value) {
26
- if (!('list' in value) || value['list'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- function LegendOneOfFromJSON(json) {
31
- return LegendOneOfFromJSONTyped(json, false);
32
- }
33
- function LegendOneOfFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'list': (0, LegendList_1.LegendListFromJSON)(json['list']),
39
- };
40
- }
41
- function LegendOneOfToJSON(json) {
42
- return LegendOneOfToJSONTyped(json, false);
43
- }
44
- function LegendOneOfToJSONTyped(value, ignoreDiscriminator = false) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'list': (0, LegendList_1.LegendListToJSON)(value['list']),
50
- };
51
- }
@@ -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,51 +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.instanceOfLegendOneOf1 = instanceOfLegendOneOf1;
17
- exports.LegendOneOf1FromJSON = LegendOneOf1FromJSON;
18
- exports.LegendOneOf1FromJSONTyped = LegendOneOf1FromJSONTyped;
19
- exports.LegendOneOf1ToJSON = LegendOneOf1ToJSON;
20
- exports.LegendOneOf1ToJSONTyped = LegendOneOf1ToJSONTyped;
21
- const TwoDLegendList_1 = require("./TwoDLegendList");
22
- /**
23
- * Check if a given object implements the LegendOneOf1 interface.
24
- */
25
- function instanceOfLegendOneOf1(value) {
26
- if (!('twoDList' in value) || value['twoDList'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- function LegendOneOf1FromJSON(json) {
31
- return LegendOneOf1FromJSONTyped(json, false);
32
- }
33
- function LegendOneOf1FromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'twoDList': (0, TwoDLegendList_1.TwoDLegendListFromJSON)(json['twoDList']),
39
- };
40
- }
41
- function LegendOneOf1ToJSON(json) {
42
- return LegendOneOf1ToJSONTyped(json, false);
43
- }
44
- function LegendOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'twoDList': (0, TwoDLegendList_1.TwoDLegendListToJSON)(value['twoDList']),
50
- };
51
- }
@@ -1,39 +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 { CalcNode } from './CalcNode';
13
- /**
14
- *
15
- * @export
16
- * @interface NodeOffset
17
- */
18
- export interface NodeOffset {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof NodeOffset
23
- */
24
- day: string;
25
- /**
26
- *
27
- * @type {CalcNode}
28
- * @memberof NodeOffset
29
- */
30
- root: CalcNode;
31
- }
32
- /**
33
- * Check if a given object implements the NodeOffset interface.
34
- */
35
- export declare function instanceOfNodeOffset(value: object): value is NodeOffset;
36
- export declare function NodeOffsetFromJSON(json: any): NodeOffset;
37
- export declare function NodeOffsetFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeOffset;
38
- export declare function NodeOffsetToJSON(json: any): NodeOffset;
39
- export declare function NodeOffsetToJSONTyped(value?: NodeOffset | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +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.instanceOfNodeOffset = instanceOfNodeOffset;
17
- exports.NodeOffsetFromJSON = NodeOffsetFromJSON;
18
- exports.NodeOffsetFromJSONTyped = NodeOffsetFromJSONTyped;
19
- exports.NodeOffsetToJSON = NodeOffsetToJSON;
20
- exports.NodeOffsetToJSONTyped = NodeOffsetToJSONTyped;
21
- const CalcNode_1 = require("./CalcNode");
22
- /**
23
- * Check if a given object implements the NodeOffset interface.
24
- */
25
- function instanceOfNodeOffset(value) {
26
- if (!('day' in value) || value['day'] === undefined)
27
- return false;
28
- if (!('root' in value) || value['root'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function NodeOffsetFromJSON(json) {
33
- return NodeOffsetFromJSONTyped(json, false);
34
- }
35
- function NodeOffsetFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'day': json['day'],
41
- 'root': (0, CalcNode_1.CalcNodeFromJSON)(json['root']),
42
- };
43
- }
44
- function NodeOffsetToJSON(json) {
45
- return NodeOffsetToJSONTyped(json, false);
46
- }
47
- function NodeOffsetToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'day': value['day'],
53
- 'root': (0, CalcNode_1.CalcNodeToJSON)(value['root']),
54
- };
55
- }
@@ -1,38 +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 TwoDLegendEntry
16
- */
17
- export interface TwoDLegendEntry {
18
- /**
19
- *
20
- * @type {Array<string>}
21
- * @memberof TwoDLegendEntry
22
- */
23
- list: Array<string>;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof TwoDLegendEntry
28
- */
29
- name: string;
30
- }
31
- /**
32
- * Check if a given object implements the TwoDLegendEntry interface.
33
- */
34
- export declare function instanceOfTwoDLegendEntry(value: object): value is TwoDLegendEntry;
35
- export declare function TwoDLegendEntryFromJSON(json: any): TwoDLegendEntry;
36
- export declare function TwoDLegendEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TwoDLegendEntry;
37
- export declare function TwoDLegendEntryToJSON(json: any): TwoDLegendEntry;
38
- export declare function TwoDLegendEntryToJSONTyped(value?: TwoDLegendEntry | null, ignoreDiscriminator?: boolean): any;
@@ -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,51 +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.instanceOfTwoDLegendList = instanceOfTwoDLegendList;
17
- exports.TwoDLegendListFromJSON = TwoDLegendListFromJSON;
18
- exports.TwoDLegendListFromJSONTyped = TwoDLegendListFromJSONTyped;
19
- exports.TwoDLegendListToJSON = TwoDLegendListToJSON;
20
- exports.TwoDLegendListToJSONTyped = TwoDLegendListToJSONTyped;
21
- const TwoDLegendEntry_1 = require("./TwoDLegendEntry");
22
- /**
23
- * Check if a given object implements the TwoDLegendList interface.
24
- */
25
- function instanceOfTwoDLegendList(value) {
26
- if (!('list' in value) || value['list'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- function TwoDLegendListFromJSON(json) {
31
- return TwoDLegendListFromJSONTyped(json, false);
32
- }
33
- function TwoDLegendListFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'list': (json['list'].map(TwoDLegendEntry_1.TwoDLegendEntryFromJSON)),
39
- };
40
- }
41
- function TwoDLegendListToJSON(json) {
42
- return TwoDLegendListToJSONTyped(json, false);
43
- }
44
- function TwoDLegendListToJSONTyped(value, ignoreDiscriminator = false) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'list': (value['list'].map(TwoDLegendEntry_1.TwoDLegendEntryToJSON)),
50
- };
51
- }
@@ -1,76 +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
- import type { LegendOneOf } from './LegendOneOf';
16
- import {
17
- instanceOfLegendOneOf,
18
- LegendOneOfFromJSON,
19
- LegendOneOfFromJSONTyped,
20
- LegendOneOfToJSON,
21
- } from './LegendOneOf';
22
- import type { LegendOneOf1 } from './LegendOneOf1';
23
- import {
24
- instanceOfLegendOneOf1,
25
- LegendOneOf1FromJSON,
26
- LegendOneOf1FromJSONTyped,
27
- LegendOneOf1ToJSON,
28
- } from './LegendOneOf1';
29
-
30
- /**
31
- * @type Legend
32
- *
33
- * @export
34
- */
35
- export type Legend = LegendOneOf | LegendOneOf1;
36
-
37
- export function LegendFromJSON(json: any): Legend {
38
- return LegendFromJSONTyped(json, false);
39
- }
40
-
41
- export function LegendFromJSONTyped(json: any, ignoreDiscriminator: boolean): Legend {
42
- if (json == null) {
43
- return json;
44
- }
45
- if (typeof json !== 'object') {
46
- return json;
47
- }
48
- if (instanceOfLegendOneOf(json)) {
49
- return LegendOneOfFromJSONTyped(json, true);
50
- }
51
- if (instanceOfLegendOneOf1(json)) {
52
- return LegendOneOf1FromJSONTyped(json, true);
53
- }
54
- return {} as any;
55
- }
56
-
57
- export function LegendToJSON(json: any): any {
58
- return LegendToJSONTyped(json, false);
59
- }
60
-
61
- export function LegendToJSONTyped(value?: Legend | null, ignoreDiscriminator: boolean = false): any {
62
- if (value == null) {
63
- return value;
64
- }
65
- if (typeof value !== 'object') {
66
- return value;
67
- }
68
- if (instanceOfLegendOneOf(value)) {
69
- return LegendOneOfToJSON(value as LegendOneOf);
70
- }
71
- if (instanceOfLegendOneOf1(value)) {
72
- return LegendOneOf1ToJSON(value as LegendOneOf1);
73
- }
74
- return {};
75
- }
76
-
@@ -1,66 +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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface LegendList
20
- */
21
- export interface LegendList {
22
- /**
23
- *
24
- * @type {Array<string>}
25
- * @memberof LegendList
26
- */
27
- list: Array<string>;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the LegendList interface.
32
- */
33
- export function instanceOfLegendList(value: object): value is LegendList {
34
- if (!('list' in value) || value['list'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function LegendListFromJSON(json: any): LegendList {
39
- return LegendListFromJSONTyped(json, false);
40
- }
41
-
42
- export function LegendListFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendList {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'list': json['list'],
49
- };
50
- }
51
-
52
- export function LegendListToJSON(json: any): LegendList {
53
- return LegendListToJSONTyped(json, false);
54
- }
55
-
56
- export function LegendListToJSONTyped(value?: LegendList | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'list': value['list'],
64
- };
65
- }
66
-
@@ -1,74 +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
- import { mapValues } from '../runtime';
16
- import type { LegendList } from './LegendList';
17
- import {
18
- LegendListFromJSON,
19
- LegendListFromJSONTyped,
20
- LegendListToJSON,
21
- LegendListToJSONTyped,
22
- } from './LegendList';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface LegendOneOf
28
- */
29
- export interface LegendOneOf {
30
- /**
31
- *
32
- * @type {LegendList}
33
- * @memberof LegendOneOf
34
- */
35
- list: LegendList;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the LegendOneOf interface.
40
- */
41
- export function instanceOfLegendOneOf(value: object): value is LegendOneOf {
42
- if (!('list' in value) || value['list'] === undefined) return false;
43
- return true;
44
- }
45
-
46
- export function LegendOneOfFromJSON(json: any): LegendOneOf {
47
- return LegendOneOfFromJSONTyped(json, false);
48
- }
49
-
50
- export function LegendOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendOneOf {
51
- if (json == null) {
52
- return json;
53
- }
54
- return {
55
-
56
- 'list': LegendListFromJSON(json['list']),
57
- };
58
- }
59
-
60
- export function LegendOneOfToJSON(json: any): LegendOneOf {
61
- return LegendOneOfToJSONTyped(json, false);
62
- }
63
-
64
- export function LegendOneOfToJSONTyped(value?: LegendOneOf | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'list': LegendListToJSON(value['list']),
72
- };
73
- }
74
-
@@ -1,74 +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
- import { mapValues } from '../runtime';
16
- import type { TwoDLegendList } from './TwoDLegendList';
17
- import {
18
- TwoDLegendListFromJSON,
19
- TwoDLegendListFromJSONTyped,
20
- TwoDLegendListToJSON,
21
- TwoDLegendListToJSONTyped,
22
- } from './TwoDLegendList';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface LegendOneOf1
28
- */
29
- export interface LegendOneOf1 {
30
- /**
31
- *
32
- * @type {TwoDLegendList}
33
- * @memberof LegendOneOf1
34
- */
35
- twoDList: TwoDLegendList;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the LegendOneOf1 interface.
40
- */
41
- export function instanceOfLegendOneOf1(value: object): value is LegendOneOf1 {
42
- if (!('twoDList' in value) || value['twoDList'] === undefined) return false;
43
- return true;
44
- }
45
-
46
- export function LegendOneOf1FromJSON(json: any): LegendOneOf1 {
47
- return LegendOneOf1FromJSONTyped(json, false);
48
- }
49
-
50
- export function LegendOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): LegendOneOf1 {
51
- if (json == null) {
52
- return json;
53
- }
54
- return {
55
-
56
- 'twoDList': TwoDLegendListFromJSON(json['twoDList']),
57
- };
58
- }
59
-
60
- export function LegendOneOf1ToJSON(json: any): LegendOneOf1 {
61
- return LegendOneOf1ToJSONTyped(json, false);
62
- }
63
-
64
- export function LegendOneOf1ToJSONTyped(value?: LegendOneOf1 | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'twoDList': TwoDLegendListToJSON(value['twoDList']),
72
- };
73
- }
74
-