@spaciv/sdk 0.1.5 → 0.1.7

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 (78) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/dist/apis/AccountsApi.d.ts +4 -4
  4. package/dist/apis/AccountsApi.js +2 -2
  5. package/dist/apis/FloorPlansApi.d.ts +13 -13
  6. package/dist/apis/FloorPlansApi.js +6 -6
  7. package/dist/apis/InternalApi.d.ts +57 -1
  8. package/dist/apis/InternalApi.js +83 -0
  9. package/dist/apis/ScriptsApi.d.ts +32 -9
  10. package/dist/apis/ScriptsApi.js +39 -4
  11. package/dist/esm/apis/AccountsApi.d.ts +4 -4
  12. package/dist/esm/apis/AccountsApi.js +2 -2
  13. package/dist/esm/apis/FloorPlansApi.d.ts +13 -13
  14. package/dist/esm/apis/FloorPlansApi.js +6 -6
  15. package/dist/esm/apis/InternalApi.d.ts +57 -1
  16. package/dist/esm/apis/InternalApi.js +84 -1
  17. package/dist/esm/apis/ScriptsApi.d.ts +32 -9
  18. package/dist/esm/apis/ScriptsApi.js +40 -5
  19. package/dist/esm/models/AccountCalculationUsageDay.d.ts +6 -0
  20. package/dist/esm/models/AccountCalculationUsageDay.js +4 -0
  21. package/dist/esm/models/FloorplanBrief.d.ts +12 -0
  22. package/dist/esm/models/FloorplanBrief.js +4 -0
  23. package/dist/esm/models/FloorplanGetBody.d.ts +12 -0
  24. package/dist/esm/models/FloorplanGetBody.js +4 -0
  25. package/dist/esm/models/FloorplanPatchParamsBody.d.ts +12 -0
  26. package/dist/esm/models/FloorplanPatchParamsBody.js +4 -0
  27. package/dist/esm/models/ScriptLimitOverrides.d.ts +62 -0
  28. package/dist/esm/models/ScriptLimitOverrides.js +51 -0
  29. package/dist/esm/models/ScriptLimitValues.d.ts +62 -0
  30. package/dist/esm/models/ScriptLimitValues.js +63 -0
  31. package/dist/esm/models/ScriptLimits.d.ts +62 -0
  32. package/dist/esm/models/ScriptLimits.js +63 -0
  33. package/dist/esm/models/ScriptLimitsResBody.d.ts +46 -0
  34. package/dist/esm/models/ScriptLimitsResBody.js +53 -0
  35. package/dist/esm/models/ScriptUsage.d.ts +50 -0
  36. package/dist/esm/models/ScriptUsage.js +55 -0
  37. package/dist/esm/models/ScriptUsageResBody.d.ts +103 -0
  38. package/dist/esm/models/ScriptUsageResBody.js +93 -0
  39. package/dist/esm/models/index.d.ts +6 -0
  40. package/dist/esm/models/index.js +6 -0
  41. package/dist/models/AccountCalculationUsageDay.d.ts +6 -0
  42. package/dist/models/AccountCalculationUsageDay.js +4 -0
  43. package/dist/models/FloorplanBrief.d.ts +12 -0
  44. package/dist/models/FloorplanBrief.js +4 -0
  45. package/dist/models/FloorplanGetBody.d.ts +12 -0
  46. package/dist/models/FloorplanGetBody.js +4 -0
  47. package/dist/models/FloorplanPatchParamsBody.d.ts +12 -0
  48. package/dist/models/FloorplanPatchParamsBody.js +4 -0
  49. package/dist/models/ScriptLimitOverrides.d.ts +62 -0
  50. package/dist/models/ScriptLimitOverrides.js +58 -0
  51. package/dist/models/ScriptLimitValues.d.ts +62 -0
  52. package/dist/models/ScriptLimitValues.js +70 -0
  53. package/dist/models/ScriptLimits.d.ts +62 -0
  54. package/dist/models/ScriptLimits.js +70 -0
  55. package/dist/models/ScriptLimitsResBody.d.ts +46 -0
  56. package/dist/models/ScriptLimitsResBody.js +60 -0
  57. package/dist/models/ScriptUsage.d.ts +50 -0
  58. package/dist/models/ScriptUsage.js +62 -0
  59. package/dist/models/ScriptUsageResBody.d.ts +103 -0
  60. package/dist/models/ScriptUsageResBody.js +101 -0
  61. package/dist/models/index.d.ts +6 -0
  62. package/dist/models/index.js +6 -0
  63. package/package.json +1 -1
  64. package/src/apis/AccountsApi.ts +4 -4
  65. package/src/apis/FloorPlansApi.ts +13 -13
  66. package/src/apis/InternalApi.ts +152 -0
  67. package/src/apis/ScriptsApi.ts +65 -8
  68. package/src/models/AccountCalculationUsageDay.ts +9 -0
  69. package/src/models/FloorplanBrief.ts +16 -0
  70. package/src/models/FloorplanGetBody.ts +16 -0
  71. package/src/models/FloorplanPatchParamsBody.ts +16 -0
  72. package/src/models/ScriptLimitOverrides.ts +105 -0
  73. package/src/models/ScriptLimitValues.ts +111 -0
  74. package/src/models/ScriptLimits.ts +111 -0
  75. package/src/models/ScriptLimitsResBody.ts +99 -0
  76. package/src/models/ScriptUsage.ts +93 -0
  77. package/src/models/ScriptUsageResBody.ts +183 -0
  78. package/src/models/index.ts +6 -0
@@ -30,6 +30,8 @@ function instanceOfAccountCalculationUsageDay(value) {
30
30
  return false;
31
31
  if (!('date' in value) || value['date'] === undefined)
32
32
  return false;
33
+ if (!('scripts' in value) || value['scripts'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  function AccountCalculationUsageDayFromJSON(json) {
@@ -44,6 +46,7 @@ function AccountCalculationUsageDayFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'ai': json['ai'],
45
47
  'build': json['build'],
46
48
  'date': (new Date(json['date'])),
49
+ 'scripts': json['scripts'],
47
50
  };
48
51
  }
49
52
  function AccountCalculationUsageDayToJSON(json) {
@@ -58,5 +61,6 @@ function AccountCalculationUsageDayToJSONTyped(value, ignoreDiscriminator = fals
58
61
  'ai': value['ai'],
59
62
  'build': value['build'],
60
63
  'date': ((value['date']).toISOString().substring(0, 10)),
64
+ 'scripts': value['scripts'],
61
65
  };
62
66
  }
@@ -15,12 +15,24 @@
15
15
  * @interface FloorplanBrief
16
16
  */
17
17
  export interface FloorplanBrief {
18
+ /**
19
+ * ID of the account file used as the background image, if one is set.
20
+ * @type {string}
21
+ * @memberof FloorplanBrief
22
+ */
23
+ backgroundFile?: string;
18
24
  /**
19
25
  *
20
26
  * @type {number}
21
27
  * @memberof FloorplanBrief
22
28
  */
23
29
  createdAt: number;
30
+ /**
31
+ * ID of the account file used as the foreground image, if one is set.
32
+ * @type {string}
33
+ * @memberof FloorplanBrief
34
+ */
35
+ foregroundFile?: string;
24
36
  /**
25
37
  *
26
38
  * @type {string}
@@ -42,7 +42,9 @@ function FloorplanBriefFromJSONTyped(json, ignoreDiscriminator) {
42
42
  return json;
43
43
  }
44
44
  return {
45
+ 'backgroundFile': json['backgroundFile'] == null ? undefined : json['backgroundFile'],
45
46
  'createdAt': json['createdAt'],
47
+ 'foregroundFile': json['foregroundFile'] == null ? undefined : json['foregroundFile'],
46
48
  'id': json['id'],
47
49
  'name': json['name'],
48
50
  'property': json['property'],
@@ -57,7 +59,9 @@ function FloorplanBriefToJSONTyped(value, ignoreDiscriminator = false) {
57
59
  return value;
58
60
  }
59
61
  return {
62
+ 'backgroundFile': value['backgroundFile'],
60
63
  'createdAt': value['createdAt'],
64
+ 'foregroundFile': value['foregroundFile'],
61
65
  'id': value['id'],
62
66
  'name': value['name'],
63
67
  'property': value['property'],
@@ -17,12 +17,24 @@ import type { FloorplanGetBodySpace } from './FloorplanGetBodySpace';
17
17
  * @interface FloorplanGetBody
18
18
  */
19
19
  export interface FloorplanGetBody {
20
+ /**
21
+ * ID of the account file used as the background image, if one is set.
22
+ * @type {string}
23
+ * @memberof FloorplanGetBody
24
+ */
25
+ backgroundFile?: string;
20
26
  /**
21
27
  *
22
28
  * @type {number}
23
29
  * @memberof FloorplanGetBody
24
30
  */
25
31
  createdAt: number;
32
+ /**
33
+ * ID of the account file used as the foreground image, if one is set.
34
+ * @type {string}
35
+ * @memberof FloorplanGetBody
36
+ */
37
+ foregroundFile?: string;
26
38
  /**
27
39
  *
28
40
  * @type {string}
@@ -46,7 +46,9 @@ function FloorplanGetBodyFromJSONTyped(json, ignoreDiscriminator) {
46
46
  return json;
47
47
  }
48
48
  return {
49
+ 'backgroundFile': json['backgroundFile'] == null ? undefined : json['backgroundFile'],
49
50
  'createdAt': json['createdAt'],
51
+ 'foregroundFile': json['foregroundFile'] == null ? undefined : json['foregroundFile'],
50
52
  'name': json['name'],
51
53
  'overlayOffset': (0, FloorplanGetBodyOverlayOffset_1.FloorplanGetBodyOverlayOffsetFromJSON)(json['overlayOffset']),
52
54
  'property': json['property'],
@@ -62,7 +64,9 @@ function FloorplanGetBodyToJSONTyped(value, ignoreDiscriminator = false) {
62
64
  return value;
63
65
  }
64
66
  return {
67
+ 'backgroundFile': value['backgroundFile'],
65
68
  'createdAt': value['createdAt'],
69
+ 'foregroundFile': value['foregroundFile'],
66
70
  'name': value['name'],
67
71
  'overlayOffset': (0, FloorplanGetBodyOverlayOffset_1.FloorplanGetBodyOverlayOffsetToJSON)(value['overlayOffset']),
68
72
  'property': value['property'],
@@ -17,12 +17,24 @@ import type { FloorplanCreateSpaceRepeated } from './FloorplanCreateSpaceRepeate
17
17
  * @interface FloorplanPatchParamsBody
18
18
  */
19
19
  export interface FloorplanPatchParamsBody {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof FloorplanPatchParamsBody
24
+ */
25
+ backgroundFile?: string;
20
26
  /**
21
27
  *
22
28
  * @type {number}
23
29
  * @memberof FloorplanPatchParamsBody
24
30
  */
25
31
  createdAt?: number;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof FloorplanPatchParamsBody
36
+ */
37
+ foregroundFile?: string;
26
38
  /**
27
39
  *
28
40
  * @type {string}
@@ -34,7 +34,9 @@ function FloorplanPatchParamsBodyFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
+ 'backgroundFile': json['backgroundFile'] == null ? undefined : json['backgroundFile'],
37
38
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
39
+ 'foregroundFile': json['foregroundFile'] == null ? undefined : json['foregroundFile'],
38
40
  'name': json['name'] == null ? undefined : json['name'],
39
41
  'overlayOffset': json['overlayOffset'] == null ? undefined : (0, FloorplanChangelogOverlayOffset_1.FloorplanChangelogOverlayOffsetFromJSON)(json['overlayOffset']),
40
42
  'property': json['property'] == null ? undefined : json['property'],
@@ -50,7 +52,9 @@ function FloorplanPatchParamsBodyToJSONTyped(value, ignoreDiscriminator = false)
50
52
  return value;
51
53
  }
52
54
  return {
55
+ 'backgroundFile': value['backgroundFile'],
53
56
  'createdAt': value['createdAt'],
57
+ 'foregroundFile': value['foregroundFile'],
54
58
  'name': value['name'],
55
59
  'overlayOffset': (0, FloorplanChangelogOverlayOffset_1.FloorplanChangelogOverlayOffsetToJSON)(value['overlayOffset']),
56
60
  'property': value['property'],
@@ -0,0 +1,62 @@
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 ScriptLimitOverrides
16
+ */
17
+ export interface ScriptLimitOverrides {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ScriptLimitOverrides
22
+ */
23
+ maxConcurrentRuns?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ScriptLimitOverrides
28
+ */
29
+ maxCreditsPerMonth?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ScriptLimitOverrides
34
+ */
35
+ maxEnabledScripts?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ScriptLimitOverrides
40
+ */
41
+ maxRunSeconds?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ScriptLimitOverrides
46
+ */
47
+ minCronIntervalSeconds?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ScriptLimitOverrides
52
+ */
53
+ webhookRequestsPerMinute?: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ScriptLimitOverrides interface.
57
+ */
58
+ export declare function instanceOfScriptLimitOverrides(value: object): value is ScriptLimitOverrides;
59
+ export declare function ScriptLimitOverridesFromJSON(json: any): ScriptLimitOverrides;
60
+ export declare function ScriptLimitOverridesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptLimitOverrides;
61
+ export declare function ScriptLimitOverridesToJSON(json: any): ScriptLimitOverrides;
62
+ export declare function ScriptLimitOverridesToJSONTyped(value?: ScriptLimitOverrides | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfScriptLimitOverrides = instanceOfScriptLimitOverrides;
17
+ exports.ScriptLimitOverridesFromJSON = ScriptLimitOverridesFromJSON;
18
+ exports.ScriptLimitOverridesFromJSONTyped = ScriptLimitOverridesFromJSONTyped;
19
+ exports.ScriptLimitOverridesToJSON = ScriptLimitOverridesToJSON;
20
+ exports.ScriptLimitOverridesToJSONTyped = ScriptLimitOverridesToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptLimitOverrides interface.
23
+ */
24
+ function instanceOfScriptLimitOverrides(value) {
25
+ return true;
26
+ }
27
+ function ScriptLimitOverridesFromJSON(json) {
28
+ return ScriptLimitOverridesFromJSONTyped(json, false);
29
+ }
30
+ function ScriptLimitOverridesFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'maxConcurrentRuns': json['maxConcurrentRuns'] == null ? undefined : json['maxConcurrentRuns'],
36
+ 'maxCreditsPerMonth': json['maxCreditsPerMonth'] == null ? undefined : json['maxCreditsPerMonth'],
37
+ 'maxEnabledScripts': json['maxEnabledScripts'] == null ? undefined : json['maxEnabledScripts'],
38
+ 'maxRunSeconds': json['maxRunSeconds'] == null ? undefined : json['maxRunSeconds'],
39
+ 'minCronIntervalSeconds': json['minCronIntervalSeconds'] == null ? undefined : json['minCronIntervalSeconds'],
40
+ 'webhookRequestsPerMinute': json['webhookRequestsPerMinute'] == null ? undefined : json['webhookRequestsPerMinute'],
41
+ };
42
+ }
43
+ function ScriptLimitOverridesToJSON(json) {
44
+ return ScriptLimitOverridesToJSONTyped(json, false);
45
+ }
46
+ function ScriptLimitOverridesToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'maxConcurrentRuns': value['maxConcurrentRuns'],
52
+ 'maxCreditsPerMonth': value['maxCreditsPerMonth'],
53
+ 'maxEnabledScripts': value['maxEnabledScripts'],
54
+ 'maxRunSeconds': value['maxRunSeconds'],
55
+ 'minCronIntervalSeconds': value['minCronIntervalSeconds'],
56
+ 'webhookRequestsPerMinute': value['webhookRequestsPerMinute'],
57
+ };
58
+ }
@@ -0,0 +1,62 @@
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 ScriptLimitValues
16
+ */
17
+ export interface ScriptLimitValues {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ScriptLimitValues
22
+ */
23
+ maxConcurrentRuns: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ScriptLimitValues
28
+ */
29
+ maxCreditsPerMonth: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ScriptLimitValues
34
+ */
35
+ maxEnabledScripts: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ScriptLimitValues
40
+ */
41
+ maxRunSeconds: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ScriptLimitValues
46
+ */
47
+ minCronIntervalSeconds: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ScriptLimitValues
52
+ */
53
+ webhookRequestsPerMinute: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ScriptLimitValues interface.
57
+ */
58
+ export declare function instanceOfScriptLimitValues(value: object): value is ScriptLimitValues;
59
+ export declare function ScriptLimitValuesFromJSON(json: any): ScriptLimitValues;
60
+ export declare function ScriptLimitValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptLimitValues;
61
+ export declare function ScriptLimitValuesToJSON(json: any): ScriptLimitValues;
62
+ export declare function ScriptLimitValuesToJSONTyped(value?: ScriptLimitValues | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.instanceOfScriptLimitValues = instanceOfScriptLimitValues;
17
+ exports.ScriptLimitValuesFromJSON = ScriptLimitValuesFromJSON;
18
+ exports.ScriptLimitValuesFromJSONTyped = ScriptLimitValuesFromJSONTyped;
19
+ exports.ScriptLimitValuesToJSON = ScriptLimitValuesToJSON;
20
+ exports.ScriptLimitValuesToJSONTyped = ScriptLimitValuesToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptLimitValues interface.
23
+ */
24
+ function instanceOfScriptLimitValues(value) {
25
+ if (!('maxConcurrentRuns' in value) || value['maxConcurrentRuns'] === undefined)
26
+ return false;
27
+ if (!('maxCreditsPerMonth' in value) || value['maxCreditsPerMonth'] === undefined)
28
+ return false;
29
+ if (!('maxEnabledScripts' in value) || value['maxEnabledScripts'] === undefined)
30
+ return false;
31
+ if (!('maxRunSeconds' in value) || value['maxRunSeconds'] === undefined)
32
+ return false;
33
+ if (!('minCronIntervalSeconds' in value) || value['minCronIntervalSeconds'] === undefined)
34
+ return false;
35
+ if (!('webhookRequestsPerMinute' in value) || value['webhookRequestsPerMinute'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ScriptLimitValuesFromJSON(json) {
40
+ return ScriptLimitValuesFromJSONTyped(json, false);
41
+ }
42
+ function ScriptLimitValuesFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'maxConcurrentRuns': json['maxConcurrentRuns'],
48
+ 'maxCreditsPerMonth': json['maxCreditsPerMonth'],
49
+ 'maxEnabledScripts': json['maxEnabledScripts'],
50
+ 'maxRunSeconds': json['maxRunSeconds'],
51
+ 'minCronIntervalSeconds': json['minCronIntervalSeconds'],
52
+ 'webhookRequestsPerMinute': json['webhookRequestsPerMinute'],
53
+ };
54
+ }
55
+ function ScriptLimitValuesToJSON(json) {
56
+ return ScriptLimitValuesToJSONTyped(json, false);
57
+ }
58
+ function ScriptLimitValuesToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'maxConcurrentRuns': value['maxConcurrentRuns'],
64
+ 'maxCreditsPerMonth': value['maxCreditsPerMonth'],
65
+ 'maxEnabledScripts': value['maxEnabledScripts'],
66
+ 'maxRunSeconds': value['maxRunSeconds'],
67
+ 'minCronIntervalSeconds': value['minCronIntervalSeconds'],
68
+ 'webhookRequestsPerMinute': value['webhookRequestsPerMinute'],
69
+ };
70
+ }
@@ -0,0 +1,62 @@
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 ScriptLimits
16
+ */
17
+ export interface ScriptLimits {
18
+ /**
19
+ * Runs the account may have in progress at once.
20
+ * @type {number}
21
+ * @memberof ScriptLimits
22
+ */
23
+ maxConcurrentRuns: number;
24
+ /**
25
+ * Credits the account's script runs may be charged in a calendar month (UTC). Once they are used, further runs are recorded as quota_exceeded and do not start.
26
+ * @type {number}
27
+ * @memberof ScriptLimits
28
+ */
29
+ maxCreditsPerMonth: number;
30
+ /**
31
+ * Scripts the account may have enabled at once.
32
+ * @type {number}
33
+ * @memberof ScriptLimits
34
+ */
35
+ maxEnabledScripts: number;
36
+ /**
37
+ * Longest a single run may take; a script's own timeout is capped to it.
38
+ * @type {number}
39
+ * @memberof ScriptLimits
40
+ */
41
+ maxRunSeconds: number;
42
+ /**
43
+ * Shortest time allowed between two scheduled runs of a script.
44
+ * @type {number}
45
+ * @memberof ScriptLimits
46
+ */
47
+ minCronIntervalSeconds: number;
48
+ /**
49
+ * Webhook calls each script accepts per minute, and at most in a burst.
50
+ * @type {number}
51
+ * @memberof ScriptLimits
52
+ */
53
+ webhookRequestsPerMinute: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ScriptLimits interface.
57
+ */
58
+ export declare function instanceOfScriptLimits(value: object): value is ScriptLimits;
59
+ export declare function ScriptLimitsFromJSON(json: any): ScriptLimits;
60
+ export declare function ScriptLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptLimits;
61
+ export declare function ScriptLimitsToJSON(json: any): ScriptLimits;
62
+ export declare function ScriptLimitsToJSONTyped(value?: ScriptLimits | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.instanceOfScriptLimits = instanceOfScriptLimits;
17
+ exports.ScriptLimitsFromJSON = ScriptLimitsFromJSON;
18
+ exports.ScriptLimitsFromJSONTyped = ScriptLimitsFromJSONTyped;
19
+ exports.ScriptLimitsToJSON = ScriptLimitsToJSON;
20
+ exports.ScriptLimitsToJSONTyped = ScriptLimitsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptLimits interface.
23
+ */
24
+ function instanceOfScriptLimits(value) {
25
+ if (!('maxConcurrentRuns' in value) || value['maxConcurrentRuns'] === undefined)
26
+ return false;
27
+ if (!('maxCreditsPerMonth' in value) || value['maxCreditsPerMonth'] === undefined)
28
+ return false;
29
+ if (!('maxEnabledScripts' in value) || value['maxEnabledScripts'] === undefined)
30
+ return false;
31
+ if (!('maxRunSeconds' in value) || value['maxRunSeconds'] === undefined)
32
+ return false;
33
+ if (!('minCronIntervalSeconds' in value) || value['minCronIntervalSeconds'] === undefined)
34
+ return false;
35
+ if (!('webhookRequestsPerMinute' in value) || value['webhookRequestsPerMinute'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ScriptLimitsFromJSON(json) {
40
+ return ScriptLimitsFromJSONTyped(json, false);
41
+ }
42
+ function ScriptLimitsFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'maxConcurrentRuns': json['maxConcurrentRuns'],
48
+ 'maxCreditsPerMonth': json['maxCreditsPerMonth'],
49
+ 'maxEnabledScripts': json['maxEnabledScripts'],
50
+ 'maxRunSeconds': json['maxRunSeconds'],
51
+ 'minCronIntervalSeconds': json['minCronIntervalSeconds'],
52
+ 'webhookRequestsPerMinute': json['webhookRequestsPerMinute'],
53
+ };
54
+ }
55
+ function ScriptLimitsToJSON(json) {
56
+ return ScriptLimitsToJSONTyped(json, false);
57
+ }
58
+ function ScriptLimitsToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'maxConcurrentRuns': value['maxConcurrentRuns'],
64
+ 'maxCreditsPerMonth': value['maxCreditsPerMonth'],
65
+ 'maxEnabledScripts': value['maxEnabledScripts'],
66
+ 'maxRunSeconds': value['maxRunSeconds'],
67
+ 'minCronIntervalSeconds': value['minCronIntervalSeconds'],
68
+ 'webhookRequestsPerMinute': value['webhookRequestsPerMinute'],
69
+ };
70
+ }
@@ -0,0 +1,46 @@
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 { ScriptLimitValues } from './ScriptLimitValues';
13
+ import type { ScriptLimitOverrides } from './ScriptLimitOverrides';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ScriptLimitsResBody
18
+ */
19
+ export interface ScriptLimitsResBody {
20
+ /**
21
+ * The code defaults for scripts.
22
+ * @type {ScriptLimitValues}
23
+ * @memberof ScriptLimitsResBody
24
+ */
25
+ defaults: ScriptLimitValues;
26
+ /**
27
+ * The limits that apply to the account.
28
+ * @type {ScriptLimitValues}
29
+ * @memberof ScriptLimitsResBody
30
+ */
31
+ effective: ScriptLimitValues;
32
+ /**
33
+ * This account's overrides; an absent field uses the default.
34
+ * @type {ScriptLimitOverrides}
35
+ * @memberof ScriptLimitsResBody
36
+ */
37
+ overrides: ScriptLimitOverrides;
38
+ }
39
+ /**
40
+ * Check if a given object implements the ScriptLimitsResBody interface.
41
+ */
42
+ export declare function instanceOfScriptLimitsResBody(value: object): value is ScriptLimitsResBody;
43
+ export declare function ScriptLimitsResBodyFromJSON(json: any): ScriptLimitsResBody;
44
+ export declare function ScriptLimitsResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptLimitsResBody;
45
+ export declare function ScriptLimitsResBodyToJSON(json: any): ScriptLimitsResBody;
46
+ export declare function ScriptLimitsResBodyToJSONTyped(value?: ScriptLimitsResBody | null, ignoreDiscriminator?: boolean): any;