@spaciv/sdk 0.1.9 → 0.1.10
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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/dist/apis/ContributionsApi.d.ts +4 -4
- package/dist/apis/ContributionsApi.js +2 -2
- package/dist/apis/DataCollectionApi.d.ts +12 -12
- package/dist/apis/DataCollectionApi.js +6 -6
- package/dist/esm/apis/ContributionsApi.d.ts +4 -4
- package/dist/esm/apis/ContributionsApi.js +2 -2
- package/dist/esm/apis/DataCollectionApi.d.ts +12 -12
- package/dist/esm/apis/DataCollectionApi.js +6 -6
- package/dist/esm/models/DatacollectionBody.d.ts +13 -0
- package/dist/esm/models/DatacollectionBody.js +5 -0
- package/dist/esm/models/DatacollectionChangelogBody.d.ts +13 -0
- package/dist/esm/models/DatacollectionChangelogBody.js +9 -0
- package/dist/esm/models/DatacollectionContributor.d.ts +38 -0
- package/dist/esm/models/DatacollectionContributor.js +47 -0
- package/dist/esm/models/GetDatacollectionRes.d.ts +6 -0
- package/dist/esm/models/GetDatacollectionRes.js +2 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/DatacollectionBody.d.ts +13 -0
- package/dist/models/DatacollectionBody.js +5 -0
- package/dist/models/DatacollectionChangelogBody.d.ts +13 -0
- package/dist/models/DatacollectionChangelogBody.js +9 -0
- package/dist/models/DatacollectionContributor.d.ts +38 -0
- package/dist/models/DatacollectionContributor.js +54 -0
- package/dist/models/GetDatacollectionRes.d.ts +6 -0
- package/dist/models/GetDatacollectionRes.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/ContributionsApi.ts +4 -4
- package/src/apis/DataCollectionApi.ts +12 -12
- package/src/models/DatacollectionBody.ts +23 -0
- package/src/models/DatacollectionChangelogBody.ts +25 -0
- package/src/models/DatacollectionContributor.ts +75 -0
- package/src/models/GetDatacollectionRes.ts +8 -0
- package/src/models/index.ts +1 -0
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
DatacollectionAuthenticationToJSON,
|
|
21
21
|
DatacollectionAuthenticationToJSONTyped,
|
|
22
22
|
} from './DatacollectionAuthentication';
|
|
23
|
+
import type { DatacollectionContributor } from './DatacollectionContributor';
|
|
24
|
+
import {
|
|
25
|
+
DatacollectionContributorFromJSON,
|
|
26
|
+
DatacollectionContributorFromJSONTyped,
|
|
27
|
+
DatacollectionContributorToJSON,
|
|
28
|
+
DatacollectionContributorToJSONTyped,
|
|
29
|
+
} from './DatacollectionContributor';
|
|
23
30
|
import type { Step } from './Step';
|
|
24
31
|
import {
|
|
25
32
|
StepFromJSON,
|
|
@@ -46,6 +53,12 @@ export interface DatacollectionBody {
|
|
|
46
53
|
* @memberof DatacollectionBody
|
|
47
54
|
*/
|
|
48
55
|
authenticationMode?: DatacollectionAuthentication;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof DatacollectionBody
|
|
60
|
+
*/
|
|
61
|
+
clearContributors?: boolean;
|
|
49
62
|
/**
|
|
50
63
|
*
|
|
51
64
|
* @type {boolean}
|
|
@@ -58,6 +71,12 @@ export interface DatacollectionBody {
|
|
|
58
71
|
* @memberof DatacollectionBody
|
|
59
72
|
*/
|
|
60
73
|
completeMessage?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<DatacollectionContributor>}
|
|
77
|
+
* @memberof DatacollectionBody
|
|
78
|
+
*/
|
|
79
|
+
contributors?: Array<DatacollectionContributor>;
|
|
61
80
|
/**
|
|
62
81
|
*
|
|
63
82
|
* @type {boolean}
|
|
@@ -155,8 +174,10 @@ export function DatacollectionBodyFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
155
174
|
|
|
156
175
|
'anonymisationProperty': json['anonymisationProperty'] == null ? undefined : json['anonymisationProperty'],
|
|
157
176
|
'authenticationMode': json['authenticationMode'] == null ? undefined : DatacollectionAuthenticationFromJSON(json['authenticationMode']),
|
|
177
|
+
'clearContributors': json['clearContributors'] == null ? undefined : json['clearContributors'],
|
|
158
178
|
'clearSteps': json['clearSteps'],
|
|
159
179
|
'completeMessage': json['completeMessage'] == null ? undefined : json['completeMessage'],
|
|
180
|
+
'contributors': json['contributors'] == null ? undefined : ((json['contributors'] as Array<any>).map(DatacollectionContributorFromJSON)),
|
|
160
181
|
'delete': json['delete'],
|
|
161
182
|
'description': json['description'] == null ? undefined : json['description'],
|
|
162
183
|
'end': json['end'] == null ? undefined : json['end'],
|
|
@@ -185,8 +206,10 @@ export function DatacollectionBodyToJSONTyped(value?: DatacollectionBody | null,
|
|
|
185
206
|
|
|
186
207
|
'anonymisationProperty': value['anonymisationProperty'],
|
|
187
208
|
'authenticationMode': DatacollectionAuthenticationToJSON(value['authenticationMode']),
|
|
209
|
+
'clearContributors': value['clearContributors'],
|
|
188
210
|
'clearSteps': value['clearSteps'],
|
|
189
211
|
'completeMessage': value['completeMessage'],
|
|
212
|
+
'contributors': value['contributors'] == null ? undefined : ((value['contributors'] as Array<any>).map(DatacollectionContributorToJSON)),
|
|
190
213
|
'delete': value['delete'],
|
|
191
214
|
'description': value['description'],
|
|
192
215
|
'end': value['end'],
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
DatacollectionAuthenticationToJSON,
|
|
21
21
|
DatacollectionAuthenticationToJSONTyped,
|
|
22
22
|
} from './DatacollectionAuthentication';
|
|
23
|
+
import type { DatacollectionContributor } from './DatacollectionContributor';
|
|
24
|
+
import {
|
|
25
|
+
DatacollectionContributorFromJSON,
|
|
26
|
+
DatacollectionContributorFromJSONTyped,
|
|
27
|
+
DatacollectionContributorToJSON,
|
|
28
|
+
DatacollectionContributorToJSONTyped,
|
|
29
|
+
} from './DatacollectionContributor';
|
|
23
30
|
import type { Step } from './Step';
|
|
24
31
|
import {
|
|
25
32
|
StepFromJSON,
|
|
@@ -52,6 +59,18 @@ export interface DatacollectionChangelogBody {
|
|
|
52
59
|
* @memberof DatacollectionChangelogBody
|
|
53
60
|
*/
|
|
54
61
|
completeMessage: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<DatacollectionContributor>}
|
|
65
|
+
* @memberof DatacollectionChangelogBody
|
|
66
|
+
*/
|
|
67
|
+
contributors: Array<DatacollectionContributor>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof DatacollectionChangelogBody
|
|
72
|
+
*/
|
|
73
|
+
contributorsUploaded: boolean;
|
|
55
74
|
/**
|
|
56
75
|
*
|
|
57
76
|
* @type {string}
|
|
@@ -121,6 +140,8 @@ export function instanceOfDatacollectionChangelogBody(value: object): value is D
|
|
|
121
140
|
if (!('anonymisationProperty' in value) || value['anonymisationProperty'] === undefined) return false;
|
|
122
141
|
if (!('authenticationMode' in value) || value['authenticationMode'] === undefined) return false;
|
|
123
142
|
if (!('completeMessage' in value) || value['completeMessage'] === undefined) return false;
|
|
143
|
+
if (!('contributors' in value) || value['contributors'] === undefined) return false;
|
|
144
|
+
if (!('contributorsUploaded' in value) || value['contributorsUploaded'] === undefined) return false;
|
|
124
145
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
125
146
|
if (!('end' in value) || value['end'] === undefined) return false;
|
|
126
147
|
if (!('inviteMessage' in value) || value['inviteMessage'] === undefined) return false;
|
|
@@ -147,6 +168,8 @@ export function DatacollectionChangelogBodyFromJSONTyped(json: any, ignoreDiscri
|
|
|
147
168
|
'anonymisationProperty': json['anonymisationProperty'],
|
|
148
169
|
'authenticationMode': DatacollectionAuthenticationFromJSON(json['authenticationMode']),
|
|
149
170
|
'completeMessage': json['completeMessage'],
|
|
171
|
+
'contributors': ((json['contributors'] as Array<any>).map(DatacollectionContributorFromJSON)),
|
|
172
|
+
'contributorsUploaded': json['contributorsUploaded'],
|
|
150
173
|
'description': json['description'],
|
|
151
174
|
'end': json['end'],
|
|
152
175
|
'inviteMessage': json['inviteMessage'],
|
|
@@ -174,6 +197,8 @@ export function DatacollectionChangelogBodyToJSONTyped(value?: DatacollectionCha
|
|
|
174
197
|
'anonymisationProperty': value['anonymisationProperty'],
|
|
175
198
|
'authenticationMode': DatacollectionAuthenticationToJSON(value['authenticationMode']),
|
|
176
199
|
'completeMessage': value['completeMessage'],
|
|
200
|
+
'contributors': ((value['contributors'] as Array<any>).map(DatacollectionContributorToJSON)),
|
|
201
|
+
'contributorsUploaded': value['contributorsUploaded'],
|
|
177
202
|
'description': value['description'],
|
|
178
203
|
'end': value['end'],
|
|
179
204
|
'inviteMessage': value['inviteMessage'],
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DatacollectionContributor
|
|
20
|
+
*/
|
|
21
|
+
export interface DatacollectionContributor {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof DatacollectionContributor
|
|
26
|
+
*/
|
|
27
|
+
nodes: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DatacollectionContributor
|
|
32
|
+
*/
|
|
33
|
+
user: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DatacollectionContributor interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDatacollectionContributor(value: object): value is DatacollectionContributor {
|
|
40
|
+
if (!('nodes' in value) || value['nodes'] === undefined) return false;
|
|
41
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DatacollectionContributorFromJSON(json: any): DatacollectionContributor {
|
|
46
|
+
return DatacollectionContributorFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DatacollectionContributorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatacollectionContributor {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'nodes': json['nodes'],
|
|
56
|
+
'user': json['user'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DatacollectionContributorToJSON(json: any): DatacollectionContributor {
|
|
61
|
+
return DatacollectionContributorToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DatacollectionContributorToJSONTyped(value?: DatacollectionContributor | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'nodes': value['nodes'],
|
|
72
|
+
'user': value['user'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -45,6 +45,12 @@ export interface GetDatacollectionRes {
|
|
|
45
45
|
* @memberof GetDatacollectionRes
|
|
46
46
|
*/
|
|
47
47
|
id: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetDatacollectionRes
|
|
52
|
+
*/
|
|
53
|
+
legacyContributors?: number;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {number}
|
|
@@ -84,6 +90,7 @@ export function GetDatacollectionResFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
84
90
|
'completed': json['completed'],
|
|
85
91
|
'datacollection': DatacollectionChangelogBodyFromJSON(json['datacollection']),
|
|
86
92
|
'id': json['id'],
|
|
93
|
+
'legacyContributors': json['legacyContributors'] == null ? undefined : json['legacyContributors'],
|
|
87
94
|
'started': json['started'],
|
|
88
95
|
'total': json['total'],
|
|
89
96
|
};
|
|
@@ -103,6 +110,7 @@ export function GetDatacollectionResToJSONTyped(value?: GetDatacollectionRes | n
|
|
|
103
110
|
'completed': value['completed'],
|
|
104
111
|
'datacollection': DatacollectionChangelogBodyToJSON(value['datacollection']),
|
|
105
112
|
'id': value['id'],
|
|
113
|
+
'legacyContributors': value['legacyContributors'],
|
|
106
114
|
'started': value['started'],
|
|
107
115
|
'total': value['total'],
|
|
108
116
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -148,6 +148,7 @@ export * from './DatacollectionAuthenticationOneOf2';
|
|
|
148
148
|
export * from './DatacollectionAuthenticationOneOf3';
|
|
149
149
|
export * from './DatacollectionBody';
|
|
150
150
|
export * from './DatacollectionChangelogBody';
|
|
151
|
+
export * from './DatacollectionContributor';
|
|
151
152
|
export * from './DatasetAddResponseBody';
|
|
152
153
|
export * from './DatasetChangelogBody';
|
|
153
154
|
export * from './DatasetChangelogData';
|