@spaciv/sdk 0.1.14 → 0.1.16

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 (52) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AuthenticationApi.d.ts +4 -4
  3. package/dist/apis/AuthenticationApi.js +2 -2
  4. package/dist/apis/DashboardsApi.d.ts +12 -12
  5. package/dist/apis/DashboardsApi.js +6 -6
  6. package/dist/apis/ScenariosApi.d.ts +8 -8
  7. package/dist/apis/ScenariosApi.js +4 -4
  8. package/dist/apis/TopDownModelsApi.d.ts +4 -4
  9. package/dist/apis/TopDownModelsApi.js +2 -2
  10. package/dist/esm/apis/AuthenticationApi.d.ts +4 -4
  11. package/dist/esm/apis/AuthenticationApi.js +2 -2
  12. package/dist/esm/apis/DashboardsApi.d.ts +12 -12
  13. package/dist/esm/apis/DashboardsApi.js +6 -6
  14. package/dist/esm/apis/ScenariosApi.d.ts +8 -8
  15. package/dist/esm/apis/ScenariosApi.js +4 -4
  16. package/dist/esm/apis/TopDownModelsApi.d.ts +4 -4
  17. package/dist/esm/apis/TopDownModelsApi.js +2 -2
  18. package/dist/esm/models/CalcListEntry.d.ts +6 -0
  19. package/dist/esm/models/CalcListEntry.js +2 -0
  20. package/dist/esm/models/CalcRes.d.ts +6 -0
  21. package/dist/esm/models/CalcRes.js +4 -0
  22. package/dist/esm/models/ScenarioChangelogBody.d.ts +6 -0
  23. package/dist/esm/models/ScenarioChangelogBody.js +2 -0
  24. package/dist/esm/models/ScenarioCreate.d.ts +6 -0
  25. package/dist/esm/models/ScenarioCreate.js +2 -0
  26. package/dist/esm/models/ScenarioPatch.d.ts +12 -0
  27. package/dist/esm/models/ScenarioPatch.js +4 -0
  28. package/dist/esm/models/TopDownModelEntryUpdate.d.ts +6 -0
  29. package/dist/esm/models/TopDownModelEntryUpdate.js +2 -0
  30. package/dist/models/CalcListEntry.d.ts +6 -0
  31. package/dist/models/CalcListEntry.js +2 -0
  32. package/dist/models/CalcRes.d.ts +6 -0
  33. package/dist/models/CalcRes.js +4 -0
  34. package/dist/models/ScenarioChangelogBody.d.ts +6 -0
  35. package/dist/models/ScenarioChangelogBody.js +2 -0
  36. package/dist/models/ScenarioCreate.d.ts +6 -0
  37. package/dist/models/ScenarioCreate.js +2 -0
  38. package/dist/models/ScenarioPatch.d.ts +12 -0
  39. package/dist/models/ScenarioPatch.js +4 -0
  40. package/dist/models/TopDownModelEntryUpdate.d.ts +6 -0
  41. package/dist/models/TopDownModelEntryUpdate.js +2 -0
  42. package/package.json +1 -1
  43. package/src/apis/AuthenticationApi.ts +4 -4
  44. package/src/apis/DashboardsApi.ts +12 -12
  45. package/src/apis/ScenariosApi.ts +8 -8
  46. package/src/apis/TopDownModelsApi.ts +4 -4
  47. package/src/models/CalcListEntry.ts +8 -0
  48. package/src/models/CalcRes.ts +9 -0
  49. package/src/models/ScenarioChangelogBody.ts +8 -0
  50. package/src/models/ScenarioCreate.ts +8 -0
  51. package/src/models/ScenarioPatch.ts +16 -0
  52. package/src/models/TopDownModelEntryUpdate.ts +8 -0
@@ -48,7 +48,7 @@ export interface DashboardsApiUpdateCardsRequest {
48
48
  */
49
49
  export interface DashboardsApiInterface {
50
50
  /**
51
- * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
51
+ * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
52
52
  * @summary Create a dashboard
53
53
  * @param {DashboardPost} [dashboardPost]
54
54
  * @param {*} [options] Override http request option.
@@ -57,12 +57,12 @@ export interface DashboardsApiInterface {
57
57
  */
58
58
  createRaw(requestParameters: DashboardsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
59
59
  /**
60
- * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
60
+ * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
61
61
  * Create a dashboard
62
62
  */
63
63
  create(requestParameters: DashboardsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
64
64
  /**
65
- * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
65
+ * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
66
66
  * @summary Add a card to a dashboard
67
67
  * @param {string} id
68
68
  * @param {DashboardCardCreate} [dashboardCardCreate]
@@ -72,7 +72,7 @@ export interface DashboardsApiInterface {
72
72
  */
73
73
  createCardsRaw(requestParameters: DashboardsApiCreateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
74
74
  /**
75
- * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
75
+ * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
76
76
  * Add a card to a dashboard
77
77
  */
78
78
  createCards(requestParameters: DashboardsApiCreateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -163,7 +163,7 @@ export interface DashboardsApiInterface {
163
163
  */
164
164
  update(requestParameters: DashboardsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
165
165
  /**
166
- * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
166
+ * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
167
167
  * @summary Update a dashboard card
168
168
  * @param {string} id
169
169
  * @param {DashboardCardPatch} [dashboardCardPatch]
@@ -173,7 +173,7 @@ export interface DashboardsApiInterface {
173
173
  */
174
174
  updateCardsRaw(requestParameters: DashboardsApiUpdateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
175
175
  /**
176
- * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
176
+ * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
177
177
  * Update a dashboard card
178
178
  */
179
179
  updateCards(requestParameters: DashboardsApiUpdateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -183,22 +183,22 @@ export interface DashboardsApiInterface {
183
183
  */
184
184
  export declare class DashboardsApi extends runtime.BaseAPI implements DashboardsApiInterface {
185
185
  /**
186
- * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
186
+ * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
187
187
  * Create a dashboard
188
188
  */
189
189
  createRaw(requestParameters: DashboardsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
190
190
  /**
191
- * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
191
+ * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
192
192
  * Create a dashboard
193
193
  */
194
194
  create(requestParameters?: DashboardsApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
195
195
  /**
196
- * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
196
+ * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
197
197
  * Add a card to a dashboard
198
198
  */
199
199
  createCardsRaw(requestParameters: DashboardsApiCreateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
200
200
  /**
201
- * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
201
+ * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
202
202
  * Add a card to a dashboard
203
203
  */
204
204
  createCards(requestParameters: DashboardsApiCreateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -263,12 +263,12 @@ export declare class DashboardsApi extends runtime.BaseAPI implements Dashboards
263
263
  */
264
264
  update(requestParameters: DashboardsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
265
265
  /**
266
- * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
266
+ * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
267
267
  * Update a dashboard card
268
268
  */
269
269
  updateCardsRaw(requestParameters: DashboardsApiUpdateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
270
270
  /**
271
- * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
271
+ * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
272
272
  * Update a dashboard card
273
273
  */
274
274
  updateCards(requestParameters: DashboardsApiUpdateCardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -27,7 +27,7 @@ import { DashboardCardCreateToJSON, DashboardCardDeleteToJSON, DashboardCardPatc
27
27
  */
28
28
  export class DashboardsApi extends runtime.BaseAPI {
29
29
  /**
30
- * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
30
+ * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
31
31
  * Create a dashboard
32
32
  */
33
33
  createRaw(requestParameters, initOverrides) {
@@ -59,7 +59,7 @@ export class DashboardsApi extends runtime.BaseAPI {
59
59
  });
60
60
  }
61
61
  /**
62
- * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
62
+ * Creates a new dashboard for the current project and returns its UUID. If a dashboard with the supplied `id` already exists, the call is idempotent: it ensures the dashboard is indexed under the project and returns the existing ID without overwriting its content. The `account` ID is reserved for the account-level dashboard; project-scoped requests supplying it are rejected with 400. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Requires the *Edit org model* permission, and the *Variable controls* permission when any card has controls.
63
63
  * Create a dashboard
64
64
  */
65
65
  create() {
@@ -69,7 +69,7 @@ export class DashboardsApi extends runtime.BaseAPI {
69
69
  });
70
70
  }
71
71
  /**
72
- * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
72
+ * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
73
73
  * Add a card to a dashboard
74
74
  */
75
75
  createCardsRaw(requestParameters, initOverrides) {
@@ -100,7 +100,7 @@ export class DashboardsApi extends runtime.BaseAPI {
100
100
  });
101
101
  }
102
102
  /**
103
- * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
103
+ * Inserts a new card at the given zero-based `index` position in the dashboard\'s card list. Cards already at that position and beyond are shifted down. If `index` is out of range it is clamped to the nearest valid position. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the card has controls.
104
104
  * Add a card to a dashboard
105
105
  */
106
106
  createCards(requestParameters, initOverrides) {
@@ -347,7 +347,7 @@ export class DashboardsApi extends runtime.BaseAPI {
347
347
  });
348
348
  }
349
349
  /**
350
- * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
350
+ * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
351
351
  * Update a dashboard card
352
352
  */
353
353
  updateCardsRaw(requestParameters, initOverrides) {
@@ -378,7 +378,7 @@ export class DashboardsApi extends runtime.BaseAPI {
378
378
  });
379
379
  }
380
380
  /**
381
- * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items or a control is missing a variable or duplicates another control on the same card. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
381
+ * Applies a single action to a card on a dashboard. Use `moveCard` to swap two cards by their zero-based indices, `reorderCard` to move the card at `oldIndex` to `newIndex` (zero-based) while shifting the cards in between, or `updateCard` to replace the content of a card at a given index, including the order of its visualisation and control items. Out-of-range indices are silently ignored. Returns `400` when a row-break card has items, a control is missing a variable or duplicates another control on the same card, or a list entry\'s `hexCode` is not a colour such as `#1f77b4` or `#abc`. Returns `404` if the dashboard does not exist. Requires the *Edit org model* permission, and the *Variable controls* permission when the update adds, removes, reorders or changes a card\'s controls.
382
382
  * Update a dashboard card
383
383
  */
384
384
  updateCards(requestParameters, initOverrides) {
@@ -39,7 +39,7 @@ export interface ScenariosApiUpdateRequest {
39
39
  */
40
40
  export interface ScenariosApiInterface {
41
41
  /**
42
- * Creates a new scenario for the account and returns its UUID. Returns `400` if a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
42
+ * Creates a new scenario for the account and returns its UUID. The optional `hexCode` is a colour such as `#1f77b4` or `#abc`. Returns `400` if the colour is not a valid hex code or a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
43
43
  * @summary Create a scenario
44
44
  * @param {ScenarioCreate} [scenarioCreate]
45
45
  * @param {*} [options] Override http request option.
@@ -48,7 +48,7 @@ export interface ScenariosApiInterface {
48
48
  */
49
49
  createRaw(requestParameters: ScenariosApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
50
50
  /**
51
- * Creates a new scenario for the account and returns its UUID. Returns `400` if a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
51
+ * Creates a new scenario for the account and returns its UUID. The optional `hexCode` is a colour such as `#1f77b4` or `#abc`. Returns `400` if the colour is not a valid hex code or a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
52
52
  * Create a scenario
53
53
  */
54
54
  create(requestParameters: ScenariosApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
@@ -123,7 +123,7 @@ export interface ScenariosApiInterface {
123
123
  */
124
124
  listLayerVariables(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LayerVariablesRes>;
125
125
  /**
126
- * Updates the name, description, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. Returns `400` if a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
126
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
127
127
  * @summary Update a scenario
128
128
  * @param {string} id
129
129
  * @param {ScenarioPatch} [scenarioPatch]
@@ -133,7 +133,7 @@ export interface ScenariosApiInterface {
133
133
  */
134
134
  updateRaw(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
135
135
  /**
136
- * Updates the name, description, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. Returns `400` if a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
136
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
137
137
  * Update a scenario
138
138
  */
139
139
  update(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -143,12 +143,12 @@ export interface ScenariosApiInterface {
143
143
  */
144
144
  export declare class ScenariosApi extends runtime.BaseAPI implements ScenariosApiInterface {
145
145
  /**
146
- * Creates a new scenario for the account and returns its UUID. Returns `400` if a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
146
+ * Creates a new scenario for the account and returns its UUID. The optional `hexCode` is a colour such as `#1f77b4` or `#abc`. Returns `400` if the colour is not a valid hex code or a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
147
147
  * Create a scenario
148
148
  */
149
149
  createRaw(requestParameters: ScenariosApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
150
150
  /**
151
- * Creates a new scenario for the account and returns its UUID. Returns `400` if a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
151
+ * Creates a new scenario for the account and returns its UUID. The optional `hexCode` is a colour such as `#1f77b4` or `#abc`. Returns `400` if the colour is not a valid hex code or a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
152
152
  * Create a scenario
153
153
  */
154
154
  create(requestParameters?: ScenariosApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
@@ -203,12 +203,12 @@ export declare class ScenariosApi extends runtime.BaseAPI implements ScenariosAp
203
203
  */
204
204
  listLayerVariables(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LayerVariablesRes>;
205
205
  /**
206
- * Updates the name, description, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. Returns `400` if a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
206
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
207
207
  * Update a scenario
208
208
  */
209
209
  updateRaw(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
210
210
  /**
211
- * Updates the name, description, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. Returns `400` if a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
211
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
212
212
  * Update a scenario
213
213
  */
214
214
  update(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -27,7 +27,7 @@ import { LayerVariablesResFromJSON, ScenarioChangelogBodyFromJSON, ScenarioCreat
27
27
  */
28
28
  export class ScenariosApi extends runtime.BaseAPI {
29
29
  /**
30
- * Creates a new scenario for the account and returns its UUID. Returns `400` if a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
30
+ * Creates a new scenario for the account and returns its UUID. The optional `hexCode` is a colour such as `#1f77b4` or `#abc`. Returns `400` if the colour is not a valid hex code or a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
31
31
  * Create a scenario
32
32
  */
33
33
  createRaw(requestParameters, initOverrides) {
@@ -59,7 +59,7 @@ export class ScenariosApi extends runtime.BaseAPI {
59
59
  });
60
60
  }
61
61
  /**
62
- * Creates a new scenario for the account and returns its UUID. Returns `400` if a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
62
+ * Creates a new scenario for the account and returns its UUID. The optional `hexCode` is a colour such as `#1f77b4` or `#abc`. Returns `400` if the colour is not a valid hex code or a layer references an entity that does not exist. Requires the *Edit scenario planning* permission.
63
63
  * Create a scenario
64
64
  */
65
65
  create() {
@@ -267,7 +267,7 @@ export class ScenariosApi extends runtime.BaseAPI {
267
267
  });
268
268
  }
269
269
  /**
270
- * Updates the name, description, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. Returns `400` if a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
270
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
271
271
  * Update a scenario
272
272
  */
273
273
  updateRaw(requestParameters, initOverrides) {
@@ -298,7 +298,7 @@ export class ScenariosApi extends runtime.BaseAPI {
298
298
  });
299
299
  }
300
300
  /**
301
- * Updates the name, description, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. Returns `400` if a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
301
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
302
302
  * Update a scenario
303
303
  */
304
304
  update(requestParameters, initOverrides) {
@@ -169,7 +169,7 @@ export interface TopDownModelsApiInterface {
169
169
  */
170
170
  update(requestParameters: TopDownModelsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
171
171
  /**
172
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
172
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
173
173
  * @summary Create or update a top-down model entry
174
174
  * @param {string} id
175
175
  * @param {TopDownModelEntryUpdate} [topDownModelEntryUpdate]
@@ -179,7 +179,7 @@ export interface TopDownModelsApiInterface {
179
179
  */
180
180
  updateEntriesRaw(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
181
181
  /**
182
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
182
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
183
183
  * Create or update a top-down model entry
184
184
  */
185
185
  updateEntries(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -269,12 +269,12 @@ export declare class TopDownModelsApi extends runtime.BaseAPI implements TopDown
269
269
  */
270
270
  update(requestParameters: TopDownModelsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
271
271
  /**
272
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
272
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
273
273
  * Create or update a top-down model entry
274
274
  */
275
275
  updateEntriesRaw(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
276
276
  /**
277
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
277
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
278
278
  * Create or update a top-down model entry
279
279
  */
280
280
  updateEntries(requestParameters: TopDownModelsApiUpdateEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -359,7 +359,7 @@ export class TopDownModelsApi extends runtime.BaseAPI {
359
359
  });
360
360
  }
361
361
  /**
362
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
362
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
363
363
  * Create or update a top-down model entry
364
364
  */
365
365
  updateEntriesRaw(requestParameters, initOverrides) {
@@ -390,7 +390,7 @@ export class TopDownModelsApi extends runtime.BaseAPI {
390
390
  });
391
391
  }
392
392
  /**
393
- * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
393
+ * Upserts an entry on the specified top-down model. If an entry with the given ID already exists it is updated; otherwise a new entry is created. Supply the entry\'s ID in the request body (`id` field). A non-empty `objects` replaces the entry\'s stored objects and `clearObjects` removes them all; sending both returns `400`. Each `properties.map[].formula` must be a per-object expression: numbers, static property references and the add, subtract, multiply and divide operators. With `variable_controls` enabled, formulas may also reference numeric account variables by `account:<id>`; other variable references are rejected. `sumOf`, `select`, unknown operators and references to unknown properties or nodes are rejected with `400` naming the offending field. Returns `404` if the model does not exist. Requires the *Edit modification* permission.
394
394
  * Create or update a top-down model entry
395
395
  */
396
396
  updateEntries(requestParameters, initOverrides) {
@@ -24,6 +24,12 @@ export interface CalcListEntry {
24
24
  * @memberof CalcListEntry
25
25
  */
26
26
  _function: MaybeVarFunc;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof CalcListEntry
31
+ */
32
+ hexCode?: string;
27
33
  /**
28
34
  *
29
35
  * @type {string}
@@ -38,6 +38,7 @@ export function CalcListEntryFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  return {
40
40
  '_function': MaybeVarFuncFromJSON(json['function']),
41
+ 'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
41
42
  'name': json['name'],
42
43
  'params': (mapValues(json['params'], ParameterTypeFromJSON)),
43
44
  'scenario': MaybeVarStrFromJSON(json['scenario']),
@@ -52,6 +53,7 @@ export function CalcListEntryToJSONTyped(value, ignoreDiscriminator = false) {
52
53
  }
53
54
  return {
54
55
  'function': MaybeVarFuncToJSON(value['_function']),
56
+ 'hexCode': value['hexCode'],
55
57
  'name': value['name'],
56
58
  'params': (mapValues(value['params'], ParameterTypeToJSON)),
57
59
  'scenario': MaybeVarStrToJSON(value['scenario']),
@@ -22,6 +22,12 @@ export interface CalcRes {
22
22
  * @memberof CalcRes
23
23
  */
24
24
  axes: Array<CalcAxis>;
25
+ /**
26
+ *
27
+ * @type {Array<string>}
28
+ * @memberof CalcRes
29
+ */
30
+ columnHexCodes: Array<string>;
25
31
  /**
26
32
  *
27
33
  * @type {Array<number>}
@@ -18,6 +18,8 @@ import { CalcAxisFromJSON, CalcAxisToJSON, } from './CalcAxis';
18
18
  export function instanceOfCalcRes(value) {
19
19
  if (!('axes' in value) || value['axes'] === undefined)
20
20
  return false;
21
+ if (!('columnHexCodes' in value) || value['columnHexCodes'] === undefined)
22
+ return false;
21
23
  if (!('values' in value) || value['values'] === undefined)
22
24
  return false;
23
25
  return true;
@@ -31,6 +33,7 @@ export function CalcResFromJSONTyped(json, ignoreDiscriminator) {
31
33
  }
32
34
  return {
33
35
  'axes': (json['axes'].map(CalcAxisFromJSON)),
36
+ 'columnHexCodes': json['columnHexCodes'],
34
37
  'values': json['values'],
35
38
  };
36
39
  }
@@ -43,6 +46,7 @@ export function CalcResToJSONTyped(value, ignoreDiscriminator = false) {
43
46
  }
44
47
  return {
45
48
  'axes': (value['axes'].map(CalcAxisToJSON)),
49
+ 'columnHexCodes': value['columnHexCodes'],
46
50
  'values': value['values'],
47
51
  };
48
52
  }
@@ -28,6 +28,12 @@ export interface ScenarioChangelogBody {
28
28
  * @memberof ScenarioChangelogBody
29
29
  */
30
30
  description: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ScenarioChangelogBody
35
+ */
36
+ hexCode?: string;
31
37
  /**
32
38
  *
33
39
  * @type {Array<Layer>}
@@ -38,6 +38,7 @@ export function ScenarioChangelogBodyFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'createdAt': json['createdAt'],
40
40
  'description': json['description'],
41
+ 'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
41
42
  'layers': (json['layers'].map(LayerFromJSON)),
42
43
  'modifiedAt': json['modifiedAt'],
43
44
  'name': json['name'],
@@ -53,6 +54,7 @@ export function ScenarioChangelogBodyToJSONTyped(value, ignoreDiscriminator = fa
53
54
  return {
54
55
  'createdAt': value['createdAt'],
55
56
  'description': value['description'],
57
+ 'hexCode': value['hexCode'],
56
58
  'layers': (value['layers'].map(LayerToJSON)),
57
59
  'modifiedAt': value['modifiedAt'],
58
60
  'name': value['name'],
@@ -22,6 +22,12 @@ export interface ScenarioCreate {
22
22
  * @memberof ScenarioCreate
23
23
  */
24
24
  description: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ScenarioCreate
29
+ */
30
+ hexCode?: string;
25
31
  /**
26
32
  *
27
33
  * @type {Array<Layer>}
@@ -33,6 +33,7 @@ export function ScenarioCreateFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'description': json['description'],
36
+ 'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
36
37
  'layers': (json['layers'].map(LayerFromJSON)),
37
38
  'name': json['name'],
38
39
  };
@@ -46,6 +47,7 @@ export function ScenarioCreateToJSONTyped(value, ignoreDiscriminator = false) {
46
47
  }
47
48
  return {
48
49
  'description': value['description'],
50
+ 'hexCode': value['hexCode'],
49
51
  'layers': (value['layers'].map(LayerToJSON)),
50
52
  'name': value['name'],
51
53
  };
@@ -16,12 +16,24 @@ import type { Layer } from './Layer';
16
16
  * @interface ScenarioPatch
17
17
  */
18
18
  export interface ScenarioPatch {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ScenarioPatch
23
+ */
24
+ clearLayers?: boolean;
19
25
  /**
20
26
  *
21
27
  * @type {string}
22
28
  * @memberof ScenarioPatch
23
29
  */
24
30
  description?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ScenarioPatch
35
+ */
36
+ hexCode?: string;
25
37
  /**
26
38
  *
27
39
  * @type {Array<Layer>}
@@ -28,7 +28,9 @@ export function ScenarioPatchFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return json;
29
29
  }
30
30
  return {
31
+ 'clearLayers': json['clearLayers'] == null ? undefined : json['clearLayers'],
31
32
  'description': json['description'] == null ? undefined : json['description'],
33
+ 'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
32
34
  'layers': (json['layers'].map(LayerFromJSON)),
33
35
  'name': json['name'] == null ? undefined : json['name'],
34
36
  };
@@ -41,7 +43,9 @@ export function ScenarioPatchToJSONTyped(value, ignoreDiscriminator = false) {
41
43
  return value;
42
44
  }
43
45
  return {
46
+ 'clearLayers': value['clearLayers'],
44
47
  'description': value['description'],
48
+ 'hexCode': value['hexCode'],
45
49
  'layers': (value['layers'].map(LayerToJSON)),
46
50
  'name': value['name'],
47
51
  };
@@ -17,6 +17,12 @@ import type { FilterGroup } from './FilterGroup';
17
17
  * @interface TopDownModelEntryUpdate
18
18
  */
19
19
  export interface TopDownModelEntryUpdate {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof TopDownModelEntryUpdate
24
+ */
25
+ clearObjects?: boolean;
20
26
  /**
21
27
  *
22
28
  * @type {string}
@@ -31,6 +31,7 @@ export function TopDownModelEntryUpdateFromJSONTyped(json, ignoreDiscriminator)
31
31
  return json;
32
32
  }
33
33
  return {
34
+ 'clearObjects': json['clearObjects'] == null ? undefined : json['clearObjects'],
34
35
  'id': json['id'],
35
36
  'objects': (json['objects'].map(FilterGroupFromJSON)),
36
37
  'properties': json['properties'] == null ? undefined : TopDownModelPropertiesFromJSON(json['properties']),
@@ -44,6 +45,7 @@ export function TopDownModelEntryUpdateToJSONTyped(value, ignoreDiscriminator =
44
45
  return value;
45
46
  }
46
47
  return {
48
+ 'clearObjects': value['clearObjects'],
47
49
  'id': value['id'],
48
50
  'objects': (value['objects'].map(FilterGroupToJSON)),
49
51
  'properties': TopDownModelPropertiesToJSON(value['properties']),
@@ -24,6 +24,12 @@ export interface CalcListEntry {
24
24
  * @memberof CalcListEntry
25
25
  */
26
26
  _function: MaybeVarFunc;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof CalcListEntry
31
+ */
32
+ hexCode?: string;
27
33
  /**
28
34
  *
29
35
  * @type {string}
@@ -45,6 +45,7 @@ function CalcListEntryFromJSONTyped(json, ignoreDiscriminator) {
45
45
  }
46
46
  return {
47
47
  '_function': (0, MaybeVarFunc_1.MaybeVarFuncFromJSON)(json['function']),
48
+ 'hexCode': json['hexCode'] == null ? undefined : json['hexCode'],
48
49
  'name': json['name'],
49
50
  'params': ((0, runtime_1.mapValues)(json['params'], ParameterType_1.ParameterTypeFromJSON)),
50
51
  'scenario': (0, MaybeVarStr_1.MaybeVarStrFromJSON)(json['scenario']),
@@ -59,6 +60,7 @@ function CalcListEntryToJSONTyped(value, ignoreDiscriminator = false) {
59
60
  }
60
61
  return {
61
62
  'function': (0, MaybeVarFunc_1.MaybeVarFuncToJSON)(value['_function']),
63
+ 'hexCode': value['hexCode'],
62
64
  'name': value['name'],
63
65
  'params': ((0, runtime_1.mapValues)(value['params'], ParameterType_1.ParameterTypeToJSON)),
64
66
  'scenario': (0, MaybeVarStr_1.MaybeVarStrToJSON)(value['scenario']),
@@ -22,6 +22,12 @@ export interface CalcRes {
22
22
  * @memberof CalcRes
23
23
  */
24
24
  axes: Array<CalcAxis>;
25
+ /**
26
+ *
27
+ * @type {Array<string>}
28
+ * @memberof CalcRes
29
+ */
30
+ columnHexCodes: Array<string>;
25
31
  /**
26
32
  *
27
33
  * @type {Array<number>}